get_transaction
Look up a transaction by its txid. Searches the mempool first, then the confirmed chain.
Params
{ "hash": "<64-hex tx_id>" }
Result (mempool)
{
"tx_id": "fb8a634f...8c",
"tx_hex": "01000000...",
"in_mempool": true
}
Result (confirmed)
{
"tx_id": "fb8a634f...8c",
"tx_hex": "01000000...",
"in_mempool": false,
"block_hash": "5c1b9e...e7",
"block_height": 5553
}
tx_hex is the canonical serialized form (the exact bytes used to compute
tx_id). To recover output amounts and locking scripts, deserialize tx_hex
using Exfer's transaction format (see
EXFER.md §4–5).
Errors
-32602 Transaction not found— unknown txid, or evicted from mempool, or reorged out of the chain.