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
status
string - The current status of the transaction by hashAllowed values:SUCCESSNOT_FOUNDFAILED
latestLedger
string - The latest ledger known to Soroban-RPC at the time it handled thegetTransaction()
request.latestLedgerCloseTime
string - The unix timestamp of the close time of the latest ledger known to Soroban-RPC at the time it handled thegetTransaction()
request.oldestLedger
string - The oldest ledger ingested by Soroban-RPC at the time it handled thegetTransaction()
request.oldestLedgerCloseTime
string - The unix timestamp of the close time of the oldest ledger ingested by Soroban-RPC at the time it handled thegetTransaction()
request.ledger
string - (optional) The sequence of the ledger which included the transaction. This field is only present ifstatus
isSUCCESS
orFAILED
.createdAt
string - (optional) The unix timestamp of when the transaction was included in the ledger. This field is only present ifstatus
isSUCCESS
orFAILED
.applicationOrder
number - (optional) The index of the transaction among all transactions included in the ledger. This field is only present ifstatus
isSUCCESS
orFAILED
.feeBump
boolean - (optional) Indicates whether the transaction was fee bumped. This field is only present ifstatus
isSUCCESS
orFAILED
.envelopeXdr
string - (optional) A base64 encoded string of the raw TransactionEnvelope XDR struct for this transaction.resultXdr
string - (optional) A base64 encoded string of the raw TransactionResult XDR struct for this transaction. This field is only present ifstatus
isSUCCESS
orFAILED
.resultMetaXdr
string (optional) A base64 encoded string of the raw TransactionResultMeta XDR struct for this transaction.
Last updated