Look up a transaction's result on the ledger
lookup_transactionRetrieves an XRP Ledger transaction’s outcome by hash, including result code, ledger index, and validation status. Use it to verify whether a transaction succeeded or failed.
Instructions
Read a transaction's outcome from the XRP Ledger by its hash: the result code (for example tesSUCCESS for a successful transaction, or tecUNFUNDED_PAYMENT for one that failed), the ledger index it was included in, and whether it has been validated.
For the account that sent or received it, use lookup_account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tx_hash": "<tx_hash>"
},
"name": "lookup_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | ||
| tx_hash | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||