Uniform result of a programmatic transaction. broadcasted tells you whether the tx actually hit the network; everything needed to broadcast later (in "manual" mode) is on validityData.

interface ProgrammaticTxResult {
    broadcast?: RPCResponse;
    broadcasted: boolean;
    feeDem: string;
    feeOs: bigint;
    hash: string;
    skippedReason?: SkippedReason;
    transaction: Transaction;
    validityData: RPCResponseWithValidityData;
}

Properties

broadcast?: RPCResponse

Broadcast response, present only when broadcasted is true.

broadcasted: boolean

true if the transaction was broadcast to the network.

feeDem: string

Total fee, human-readable DEM string.

feeOs: bigint

Total fee, in OS (smallest unit).

hash: string

Transaction hash (as confirmed by the node).

skippedReason?: SkippedReason

Set when broadcasted is false, explaining why.

transaction: Transaction

The signed, confirmed transaction.

Raw validity data from confirm.