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 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 Polygon. Essential for broadcasting transactions for enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments.
eth_getTransactionReceipt
Get transaction receipt with status and logs on Polygon. Essential for verifying transaction execution for enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments.