Skip to main content

Type Alias: IotaTransactionBlockKind

type 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: "AuthenticatorStateUpdateV1";
new_active_jwks: IotaActiveJwk[];
round: string;
}
| {
epoch: string;
kind: "RandomnessStateUpdate";
random_bytes: number[];
randomness_round: string;
}
| {
kind: "EndOfEpochTransaction";
transactions: IotaEndOfEpochTransactionKind[];
};

Type Declaration

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

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

{
commit_timestamp_ms: string;
consensus_commit_digest: string;
consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
epoch: string;
kind: "ConsensusCommitPrologueV1";
round: string;
sub_dag_index?: string | null;
}
NameType
commit_timestamp_msstring
consensus_commit_digeststring
consensus_determined_version_assignmentsConsensusDeterminedVersionAssignments
epochstring
kind"ConsensusCommitPrologueV1"
roundstring
sub_dag_index?string | null
{
inputs: IotaCallArg[];
kind: "ProgrammableTransaction";
transactions: IotaTransaction[];
}
NameTypeDescription
inputsIotaCallArg[]Input objects or primitive values
kind"ProgrammableTransaction"-
transactionsIotaTransaction[]The transactions to be executed sequentially. A failure in any transaction will result in the failure of the entire programmable transaction block.
{
epoch: string;
kind: "AuthenticatorStateUpdateV1";
new_active_jwks: IotaActiveJwk[];
round: string;
}
NameType
epochstring
kind"AuthenticatorStateUpdateV1"
new_active_jwksIotaActiveJwk[]
roundstring
{
epoch: string;
kind: "RandomnessStateUpdate";
random_bytes: number[];
randomness_round: string;
}
NameType
epochstring
kind"RandomnessStateUpdate"
random_bytesnumber[]
randomness_roundstring
{
kind: "EndOfEpochTransaction";
transactions: IotaEndOfEpochTransactionKind[];
}
NameType
kind"EndOfEpochTransaction"
transactionsIotaEndOfEpochTransactionKind[]