getTransaction
Clients will poll this to tell when the transaction has been completed.
This method will use 10 Compute Units.
Reference: Here
Parameters
hash (string)(required) Transaction hash to query, as a hex-encoded string
Returns
statusstring - The current status of the transaction by hashAllowed values:SUCCESSNOT_FOUNDFAILED
latestLedgerstring - The latest ledger known to Soroban-RPC at the time it handled thegetTransaction()request.latestLedgerCloseTimestring - The unix timestamp of the close time of the latest ledger known to Soroban-RPC at the time it handled thegetTransaction()request.oldestLedgerstring - The oldest ledger ingested by Soroban-RPC at the time it handled thegetTransaction()request.oldestLedgerCloseTimestring - The unix timestamp of the close time of the oldest ledger ingested by Soroban-RPC at the time it handled thegetTransaction()request.ledgerstring - (optional) The sequence of the ledger which included the transaction. This field is only present ifstatusisSUCCESSorFAILED.createdAtstring - (optional) The unix timestamp of when the transaction was included in the ledger. This field is only present ifstatusisSUCCESSorFAILED.applicationOrdernumber - (optional) The index of the transaction among all transactions included in the ledger. This field is only present ifstatusisSUCCESSorFAILED.feeBumpboolean - (optional) Indicates whether the transaction was fee bumped. This field is only present ifstatusisSUCCESSorFAILED.envelopeXdrstring - (optional) A base64 encoded string of the raw TransactionEnvelope XDR struct for this transaction.resultXdrstring - (optional) A base64 encoded string of the raw TransactionResult XDR struct for this transaction. This field is only present ifstatusisSUCCESSorFAILED.resultMetaXdrstring (optional) A base64 encoded string of the raw TransactionResultMeta XDR struct for this transaction.
Last updated
Was this helpful?