Skip to main content

IotaTransactionBlockKind

@iota/iota-sdk


@iota/iota-sdk / client / IotaTransactionBlockKind

Type Alias: IotaTransactionBlockKind

IotaTransactionBlockKind = { events: EventId[]; kind: "Genesis"; objects: string[]; } | { commit_timestamp_ms: string; consensus_commit_digest: string; consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments; epoch: string; kind: "ConsensusCommitPrologueV1"; round: string; sub_dag_index?: string | null; } | { inputs: IotaCallArg[]; kind: "ProgrammableTransaction"; transactions: IotaTransaction[]; } | { epoch: string; kind: "RandomnessStateUpdate"; random_bytes: number[]; randomness_round: string; } | { added_addresses: string[]; added_objects: string[]; added_packages: string[]; epoch: string; kind: "TransactionDenyRulesUpdate"; move_authenticator_disabled: boolean; package_publish_disabled: boolean; package_upgrade_disabled: boolean; receiving_objects_disabled: boolean; removed_addresses: string[]; removed_objects: string[]; removed_packages: string[]; round: string; shared_object_disabled: boolean; user_transaction_disabled: boolean; } | { kind: "EndOfEpochTransaction"; transactions: IotaEndOfEpochTransactionKind[]; }

Defined in: sdk/typescript/src/client/types/generated.ts:1637

Union Members​

Type Literal​

{ events: EventId[]; kind: "Genesis"; objects: string[]; }

A system transaction used for initializing the initial state of the chain.


Type Literal​

{ commit_timestamp_ms: string; consensus_commit_digest: string; consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments; epoch: string; kind: "ConsensusCommitPrologueV1"; round: string; sub_dag_index?: string | null; }

A system transaction marking the start of a series of transactions scheduled as part of a checkpoint


Type Literal​

{ inputs: IotaCallArg[]; kind: "ProgrammableTransaction"; transactions: IotaTransaction[]; }

A series of transactions where the results of one transaction can be used in future transactions

inputs​

inputs: IotaCallArg[]

Input objects or primitive values

kind​

kind: "ProgrammableTransaction"

transactions​

transactions: IotaTransaction[]

The transactions to be executed sequentially. A failure in any transaction will result in the failure of the entire programmable transaction block.


Type Literal​

{ epoch: string; kind: "RandomnessStateUpdate"; random_bytes: number[]; randomness_round: string; }

A transaction which updates global randomness state


Type Literal​

{ added_addresses: string[]; added_objects: string[]; added_packages: string[]; epoch: string; kind: "TransactionDenyRulesUpdate"; move_authenticator_disabled: boolean; package_publish_disabled: boolean; package_upgrade_disabled: boolean; receiving_objects_disabled: boolean; removed_addresses: string[]; removed_objects: string[]; removed_packages: string[]; round: string; shared_object_disabled: boolean; user_transaction_disabled: boolean; }

A transaction which applies an add/remove delta to the on-chain transaction deny rules


Type Literal​

{ kind: "EndOfEpochTransaction"; transactions: IotaEndOfEpochTransactionKind[]; }

The transaction which occurs only at the end of the epoch