Docs

eth_getTransactionByHash - Polygon RPC Method

Retrieve transaction details by hash on Polygon. Essential for enterprise developers, gaming studios, and teams building high-throughput applications tracking transactions on the most adopted Ethereum scaling solution with 45,000+ dApps and enterprise partnerships.

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

Why Polygon? Build on the most adopted Ethereum scaling solution with 45,000+ dApps and enterprise partnerships with $4B+ TVL, sub-$0.01 transactions, 8M+ daily transactions, and zkEVM for enhanced security.

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 enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments
  • Block explorers - Display transaction information

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid transaction hash format