Docs

eth_getTransactionByHash - Scroll RPC Method

Retrieve transaction details by hash on Scroll. Essential for Ethereum developers, DeFi builders, and teams requiring seamless mainnet migration tracking transactions on the largest zkEVM by market share with $750M+ TVL and bytecode-level Ethereum equivalence.

Returns the information about a transaction by transaction hash on Scroll.

Why Scroll? Build on the largest zkEVM by market share with $750M+ TVL and bytecode-level Ethereum equivalence with bytecode-level EVM equivalence, native Hardhat/Remix/MetaMask support, decentralized proof validation, and Scroll SDK for L2/L3 deployment.

Use Cases

The eth_getTransactionByHash method is essential for:

  • Transaction tracking - Get details of pending or confirmed transactions
  • Payment verification - Verify transaction parameters
  • Debugging - Analyze transaction data for zero-migration DeFi protocols, zkEVM-native dApps, and 100+ ecosystem projects with native Ethereum tooling
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format