Skip to main content
⚠️ This is the beta version of the Sui GraphQL schema. The beta schema will replace the alpha GraphQL schema upon its official release.

TransactionKind

Different types of transactions that can be executed on the Sui network.

union TransactionKind = GenesisTransaction | ConsensusCommitPrologueTransaction | ChangeEpochTransaction | RandomnessStateUpdateTransaction | AuthenticatorStateUpdateTransaction | EndOfEpochTransaction | ProgrammableTransaction

Possible types

TransactionKind.GenesisTransaction object

System transaction that initializes the network and writes the initial set of objects on-chain.

TransactionKind.ConsensusCommitPrologueTransaction object

System transaction that runs at the beginning of a checkpoint, and is responsible for setting the current value of the clock, based on the timestamp from consensus.

TransactionKind.ChangeEpochTransaction object

A system transaction that updates epoch information on-chain (increments the current epoch). Executed by the system once per epoch, without using gas. Epoch change transactions cannot be submitted by users, because validators will refuse to sign them.

This transaction kind is deprecated in favour of EndOfEpochTransaction.

TransactionKind.RandomnessStateUpdateTransaction object

System transaction to update the source of on-chain randomness.

TransactionKind.AuthenticatorStateUpdateTransaction object

TransactionKind.EndOfEpochTransaction object

System transaction that supersedes ChangeEpochTransaction as the new way to run transactions at the end of an epoch. Behaves similarly to ChangeEpochTransaction but can accommodate other optional transactions to run at the end of the epoch.

TransactionKind.ProgrammableTransaction object

Member Of

Transaction object