GetTransactionResponse

@Serializable
data class GetTransactionResponse(val status: GetTransactionStatus, val txHash: String? = null, val latestLedger: Long? = null, val latestLedgerCloseTime: Long? = null, val oldestLedger: Long? = null, val oldestLedgerCloseTime: Long? = null, val applicationOrder: Int? = null, val feeBump: Boolean? = null, val envelopeXdr: String? = null, val resultXdr: String? = null, val resultMetaXdr: String? = null, val ledger: Long? = null, val createdAt: Long? = null, val events: Events? = null)

Response for JSON-RPC method getTransaction.

Contains information about a specific transaction, including its status, XDR data, and ledger information.

See also

Constructors

Link copied to clipboard
constructor(status: GetTransactionStatus, txHash: String? = null, latestLedger: Long? = null, latestLedgerCloseTime: Long? = null, oldestLedger: Long? = null, oldestLedgerCloseTime: Long? = null, applicationOrder: Int? = null, feeBump: Boolean? = null, envelopeXdr: String? = null, resultXdr: String? = null, resultMetaXdr: String? = null, ledger: Long? = null, createdAt: Long? = null, events: Events? = null)

Properties

Link copied to clipboard

The index of the transaction among all transactions included in the ledger (null if not found)

Link copied to clipboard

Unix timestamp of when the transaction was included in the ledger (null if not found)

Link copied to clipboard

Base64-encoded TransactionEnvelope XDR (null if not found)

Link copied to clipboard

Transaction events data (null if not found or no events)

Link copied to clipboard

Whether this transaction is a fee bump transaction (null if not found)

Link copied to clipboard

The latest ledger known to Soroban RPC at the time it handled the request

Link copied to clipboard

Unix timestamp of when the latest ledger was closed

Link copied to clipboard
val ledger: Long?

The ledger sequence number that included this transaction (null if not found)

Link copied to clipboard

The oldest ledger retained by Soroban RPC

Link copied to clipboard

Unix timestamp of when the oldest ledger was closed

Link copied to clipboard

Base64-encoded TransactionMeta XDR (null if not found)

Link copied to clipboard

Base64-encoded TransactionResult XDR (null if not found)

Link copied to clipboard

The current status of the transaction

Link copied to clipboard

The transaction hash (hex-encoded)

Functions

Link copied to clipboard

Extracts the created contract ID from a deploy contract transaction.

Link copied to clipboard

Extracts the return value from a successful Soroban contract invocation.

Link copied to clipboard

Extracts the WASM hash (ID) from an upload contract WASM transaction.

Link copied to clipboard

Parses the envelopeXdr field from a base64-encoded string to a TransactionEnvelope XDR object.

Link copied to clipboard

Parses the resultMetaXdr field from a base64-encoded string to a TransactionMeta XDR object.

Link copied to clipboard

Parses the resultXdr field from a base64-encoded string to a TransactionResult XDR object.