SendTransactionResponse

@Serializable
data class SendTransactionResponse(val status: SendTransactionStatus, val hash: String? = null, val latestLedger: Long? = null, val latestLedgerCloseTime: Long? = null, val errorResultXdr: String? = null, val diagnosticEventsXdr: List<String>? = null)

Response for JSON-RPC method sendTransaction.

Returns the status of a submitted transaction. The transaction may be pending, duplicate, require retry, or have an error.

See also

Constructors

Link copied to clipboard
constructor(status: SendTransactionStatus, hash: String? = null, latestLedger: Long? = null, latestLedgerCloseTime: Long? = null, errorResultXdr: String? = null, diagnosticEventsXdr: List<String>? = null)

Properties

Link copied to clipboard

List of base64-encoded DiagnosticEvent XDR objects for debugging (may be null)

Link copied to clipboard

Base64-encoded TransactionResult XDR (only present for ERROR status)

Link copied to clipboard
val hash: String?

Transaction hash (hex-encoded), present for PENDING and DUPLICATE status

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

The submission status of the transaction

Functions

Link copied to clipboard

Parses the diagnosticEventsXdr field from a list of base64-encoded strings to a list of DiagnosticEvent XDR objects.

Link copied to clipboard

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