For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 hash

    • Allowed values:SUCCESSNOT_FOUNDFAILED

  • latestLedger string - The latest ledger known to Soroban-RPC at the time it handled the getTransaction() request.

  • latestLedgerCloseTime string - The unix timestamp of the close time of the latest ledger known to Soroban-RPC at the time it handled the getTransaction() request.

  • oldestLedger string - The oldest ledger ingested by Soroban-RPC at the time it handled the getTransaction() request.

  • oldestLedgerCloseTime string - The unix timestamp of the close time of the oldest ledger ingested by Soroban-RPC at the time it handled the getTransaction() request.

  • ledger string - (optional) The sequence of the ledger which included the transaction. This field is only present if status is SUCCESS or FAILED.

  • createdAt string - (optional) The unix timestamp of when the transaction was included in the ledger. This field is only present if status is SUCCESS or FAILED.

  • applicationOrder number - (optional) The index of the transaction among all transactions included in the ledger. This field is only present if status is SUCCESS or FAILED.

  • feeBump boolean - (optional) Indicates whether the transaction was fee bumped. This field is only present if status is SUCCESS or FAILED.

  • 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 if status is SUCCESS or FAILED.

  • resultMetaXdr string (optional) A base64 encoded string of the raw TransactionResultMeta XDR struct for this transaction.

Last updated

Was this helpful?