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 Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash format |
Related Methods
eth_getTransactionReceipt- Get transaction receipteth_sendRawTransaction- Send transaction
eth_sendRawTransaction
Submit signed transactions to Scroll. Essential for broadcasting transactions for zero-migration DeFi protocols, zkEVM-native dApps, and 100+ ecosystem projects with native Ethereum tooling.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Scroll. Essential for verifying transaction execution for zero-migration DeFi protocols, zkEVM-native dApps, and 100+ ecosystem projects with native Ethereum tooling.