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[];
}
| Name | Type |
|---|---|
events | EventId[] |
kind | "Genesis" |
objects | string[] |
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;
}
| Name | Type |
|---|---|
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[];
}
| Name | Type | Description |
|---|---|---|
inputs | IotaCallArg[] | Input objects or primitive values |
kind | "ProgrammableTransaction" | - |
transactions | IotaTransaction[] | 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;
}
| Name | Type |
|---|---|
epoch | string |
kind | "AuthenticatorStateUpdateV1" |
new_active_jwks | IotaActiveJwk[] |
round | string |
{
epoch: string;
kind: "RandomnessStateUpdate";
random_bytes: number[];
randomness_round: string;
}
| Name | Type |
|---|---|
epoch | string |
kind | "RandomnessStateUpdate" |
random_bytes | number[] |
randomness_round | string |
{
kind: "EndOfEpochTransaction";
transactions: IotaEndOfEpochTransactionKind[];
}
| Name | Type |
|---|---|
kind | "EndOfEpochTransaction" |
transactions | IotaEndOfEpochTransactionKind[] |