Skip to main content

getTransaction RPC Method

Determines when a transaction has been completed.

Updated on
Feb 21, 2024

getTransaction RPC Method

Parameters

hash
string
REQUIRED
The transaction hash to query

Returns

result
object
A result object with the following field:
status
string
The current status of the transaction. It can be one of SUCCESS, NOT_FOUND and FAILED
latestLedger
string
The latest ledger known at the time it handles the transaction
latestLedgerCloseTime
string
The UNIX timestamp of the latest ledger close time known at the time it handles the transaction
oldestLedger
string
The oldest ledger handled at the time of the request
ledger
string
The ledger sequence which included the transaction. This field is only present if the status is FAILED or SUCCESS
createdAt
string
The UNIX timestamp of when the transaction was included in the ledger
applicationOrder
integer
The index of the transaction among all transactions included in the ledger
feeBump
boolean
It indicates whether the transaction was fee bumped. This field is only present if the status is FAILED or SUCCESS
envelope_xdr
string
A base64-encoded representation of the raw TransactionEnvelope XDR struct associated with this transaction
resultXdr
string
A base64-encoded string representing the raw TransactionResult XDR struct for this transaction, which is included in the response only when the status is either SUCCESS or FAILED
result_meta_xdr
string
A base64-encoded representation of the raw TransactionResultMeta XDR struct associated with this transaction
Request
1
curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 8675309,
6
"method": "getTransaction",
7
"params": {
8
"hash": "YOUR_TRANSACTION_HASH"
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free