eth_getTransactionByHash - Ethereum RPC Method
Retrieve transaction details by hash on Ethereum. Essential for DeFi developers, NFT creators, and enterprise blockchain teams tracking transactions on the world's leading smart contract platform with the largest developer ecosystem.
Returns the information about a transaction by transaction hash on Ethereum.
Why Ethereum? Build on the world's leading smart contract platform with the largest developer ecosystem with battle-tested security, institutional adoption, and unmatched ecosystem with $166B+ TVL.
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 DeFi protocols (60% market share), NFT marketplaces, DAOs, and enterprise dApps
- 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 Ethereum. Essential for broadcasting transactions for DeFi protocols (60% market share), NFT marketplaces, DAOs, and enterprise dApps.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Ethereum. Essential for verifying transaction execution for DeFi protocols (60% market share), NFT marketplaces, DAOs, and enterprise dApps.