Transaction Methods

Methods for fetching transactions, waiting for receipts, estimating gas, and debugging execution traces.

waitForTransactionReceipt

Polls until a transaction reaches the specified status. Returns the transaction receipt.

ParameterTypeRequiredDescription
hashTransactionHashyes
statusTransactionStatusno
waitUntilTransactionReceiptWaitUntilno
intervalnumberno
retriesnumberno
fullTransactionbooleanno

Returns: GenLayerTransaction


waitForDecision

Polls until the stored transaction state contains a materialized decision.

ParameterTypeRequiredDescription
hashTransactionHashyes
intervalnumberno
retriesnumberno
fullTransactionbooleanno

Returns: GenLayerTransaction


waitForFinalization

Polls until the stored transaction state is finalized.

ParameterTypeRequiredDescription
hashTransactionHashyes
intervalnumberno
retriesnumberno
fullTransactionbooleanno

Returns: GenLayerTransaction


getTransactionLifecycle

advanced.getTransactionLifecycle exposes stored/projected status, resolution action/source, and active decision identity. Contract networks use one fixed-block lifecycle read. Finalize is an action, not a status or separate readiness field. A Studio deployment that does not yet serve gen_getTransactionLifecycle degrades to the stored status its consumer surface does prove, rather than failing the whole read.

ParameterTypeRequiredDescription
hashTransactionHashyes
timestampnumberno

Returns: TransactionProtocolLifecycle


getTransaction

Fetches a transaction with a simple stored lifecycle and split round data. Use advanced.getTransactionLifecycle for protocol projection/action details.

ParameterTypeRequiredDescription
hashTransactionHashyes

Returns: GenLayerTransaction


getTriggeredTransactionIds

Returns transaction IDs of child transactions created from emitted messages.

ParameterTypeRequiredDescription
hashTransactionHashyes

Returns: TransactionHash[]


debugTraceTransaction

Fetches the full execution trace including return data, stdout, stderr, and GenVM logs.

ParameterTypeRequiredDescription
hashTransactionHashyes
roundnumberno

Returns: DebugTraceResult


cancelTransaction

Cancels a pending transaction. Studio networks only.

ParameterTypeRequiredDescription
hashTransactionHashyes

Returns: {transaction_hash: string; status: string}


getTransactionQueuePosition

Returns the queue slot position of a transaction in the pending queue.

ParameterTypeRequiredDescription
hashTransactionHashyes

Returns: number


estimateTransactionGas

Estimates gas required for a transaction.

ParameterTypeRequiredDescription
fromAddressno
toAddressyes
data0x${string}no
valuebigintno

Returns: bigint