transactionByHash
Look up a transaction by hash. Returns null, with an error in the response, when no indexed transaction has this hash.
transactionByHash(hash: String!): TransactionArguments
Transaction hash: 64 hex characters. For a fee-bump transaction, the outer (fee-bump) hash. Any other format returns an INVALID_TRANSACTION_HASH error.
Returns
Transaction hash, 64 hex characters. For a fee-bump transaction, the outer (fee-bump) hash.
Fee charged for the transaction, in stroops.
Transaction result code, as the XDR TransactionResultCode name (for example TransactionResultCodeTxSuccess).
Sequence number of the ledger that included this transaction.
Close time of the ledger that included this transaction.
Whether this transaction is a fee-bump transaction.
When the indexer persisted this transaction.
Operations contained in this transaction, in application order.
Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.
Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.
Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.
Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.
Accounts and contracts that participated in this transaction. Each one has this transaction in its transactions history.
State changes produced by this transaction, in ledger order.
Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.
Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.
Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.
Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.
query TransactionByHash($hash: String!) {
transactionByHash(hash: $hash) {
hash
feeCharged
resultCode
ledgerNumber
ledgerCreatedAt
isFeeBump
}
}{
"hash": "string"
}{
"data": {
"transactionByHash": {
"hash": "string",
"feeCharged": "value",
"resultCode": "string",
"ledgerNumber": "value",
"ledgerCreatedAt": "value",
"isFeeBump": true
}
}
}query TransactionByHash($hash: String!) {
transactionByHash(hash: $hash) {
hash
feeCharged
resultCode
ledgerNumber
ledgerCreatedAt
isFeeBump
}
}{
"hash": "string"
}{
"data": {
"transactionByHash": {
"hash": "string",
"feeCharged": "value",
"resultCode": "string",
"ledgerNumber": "value",
"ledgerCreatedAt": "value",
"isFeeBump": true
}
}
}