Skip to main content

EXPERIMENTAL_receipt_to_tx RPC Method

Resolves a receipt ID back to its originating transaction hash and sender account by walking the receipt-to-transaction chain recursively.

Updated on
Jun 25, 2026

Parameters

receipt_id
string

The receipt ID to resolve back to its originating transaction

block_height
integer

(Optional) The block height near where the receipt was created. Acts as a hint that enables a fallback scan of execution outcomes when the receipt is not found in the receipt-to-transaction column, which is useful for cold-archival queries. Added in nearcore v2.13.0.

shard_id
integer

(Optional) The shard hint that narrows the fallback scan to a single shard at the hint height. Omitting it enumerates all tracked shards, which is more expensive. Added in nearcore v2.13.0.

window
integer

(Optional) The number of block heights (±window) around the hint to scan before the first resolved hop (default 5). It is capped by the node's receipt_to_tx_max_hint_window config (default 20). Added in nearcore v2.13.0.

Returns

transaction_hash
string

The hash of the originating transaction that produced this receipt

sender_account_id
string

The account ID of the transaction sender

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free