Represent the serialized state of a partially built Transaction This format is designed to support transactions that have not been fully build allowing most properties to be omitted or set to null. It also supports unresolved object references, unresolved pure values, and Transaction Intents.

interface SerializedTransactionDataV2 {
    commands: Command[];
    expiration:
        | undefined
        | null
        | {
            Epoch: number;
        }
        | {
            None: true;
        };
    extensions?: {
        [key: string]: unknown;
    };
    gasData: GasData;
    inputs: CallArg[];
    sender: undefined | null | string;
    version: 2;
}

Properties

commands: Command[]

The commands to execute

expiration:
    | undefined
    | null
    | {
        Epoch: number;
    }
    | {
        None: true;
    }

The expiration of the transaction

extensions?: {
    [key: string]: unknown;
}

Extra metadata for implementation specific use-cases

gasData: GasData

The gas data

inputs: CallArg[]

The inputs to the transaction

sender: undefined | null | string

The sender of the transaction

version: 2