Docs

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 CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format