Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Japanese version: /ja/doc/rpc/transactions-and-receipts.html

Transaction & Receipt Methods

TL;DR

  • Transaction lookups are keyed by eth_tx_hash.
  • Receipt lookups can explicitly return PossiblyPruned/Pruned.

Methods

  • eth_getTransactionByHash -> rpc_eth_get_transaction_by_eth_hash
  • eth_getTransactionReceipt -> rpc_eth_get_transaction_receipt_with_status_by_eth_hash

Notes

  • tx_id is an internal key; use eth_tx_hash for external integrations.
  • For internal operations that directly use tx_id, call rpc_eth_get_transaction_receipt_with_status_by_tx_id.
  • During migration/corrupt states, methods can return state unavailable.

Sources

  • tools/rpc-gateway/src/handlers.ts
  • crates/ic-evm-rpc/src/lib.rs