Skip to main content

Transaction

Description of a transaction, the unit of activity on Sui.

type Transaction implements Node {
digest: String!
effects: TransactionEffects
expiration: Epoch
gasInput: GasInput
id: ID!
kind: TransactionKind
sender: Address
signatures: [UserSignature!]!
transactionBcs: Base64
transactionJson: JSON
}

Fields​

Transaction.digest ● String! non-null scalar​

A 32-byte hash that uniquely identifies the transaction contents, encoded in Base58.

Transaction.effects ● TransactionEffects object​

The results to the chain of executing this transaction.

Transaction.expiration ● Epoch object​

This field is set by senders of a transaction block. It is an epoch reference that sets a deadline after which validators will no longer consider the transaction valid. By default, there is no deadline for when a transaction must execute.

Transaction.gasInput ● GasInput object​

The gas input field provides information on what objects were used as gas as well as the owner of the gas object(s) and information on the gas price and budget.

Transaction.id ● ID! non-null scalar​

The transaction's globally unique identifier, which can be passed to Query.node to refetch it.

Transaction.kind ● TransactionKind union​

The type of this transaction as well as the commands and/or parameters comprising the transaction of this kind.

Transaction.sender ● Address object​

The address corresponding to the public key that signed this transaction. System transactions do not have senders.

Transaction.signatures ● [UserSignature!]! non-null object​

User signatures for this transaction.

Transaction.transactionBcs ● Base64 scalar​

The Base64-encoded BCS serialization of this transaction, as a TransactionData.

Transaction.transactionJson ● JSON scalar​

The transaction as a JSON blob, matching the gRPC proto format (excluding BCS).

Interfaces​

Node interface​

An interface implemented by types that can be uniquely identified by a globally unique ID, following the GraphQL Global Object Identification specification.

Returned By​

multiGetTransactions query ● transaction query

Member Of​

CoinMetadata object ● DynamicField object ● Event object ● IObject interface ● MoveObject object ● MovePackage object ● Object object ● TransactionConnection object ● TransactionEdge object ● TransactionEffects object