Look up a transaction by hash, optionally with decoded data and logs
Returns the transaction(s) matching a single hash. Optionally embeds logs and resolves method/event signatures to human-readable form.
Pass transactionHash. Multi-chain dispatch is automatic — Ankr will search across supported chains and return the transaction with its blockchain field populated. Use includeLogs, decodeTxData, and decodeLogs for richer responses; you can optionally scope the search with the blockchain array.
Part of the Query API product (700 compute units per call, $0.00007 at base rate).
Request
- Base URLhttps://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": 1,
"jsonrpc": "2.0",
"method": "ankr_getTransactionsByHash",
"params": {
"blockchain": [
"eth"
],
"transactionHash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
"decodeTxData": true,
"decodeLogs": true
}
}Response
Success. JSON-RPC result envelope contains the transactions array (usually a single entry). JSON-RPC errors are returned with HTTP 200; check the response body for an error key.
Changes
No recorded changes to this operation across all 1 revision of this API.