eth_getTransactionReceipt - Polygon RPC Method
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.
Returns the receipt of a transaction by transaction hash on Polygon. Receipt is only available for mined transactions.
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_getTransactionReceipt method is essential for:
- Transaction confirmation - Verify transaction was mined successfully
- Gas analysis - Check actual gas used vs estimated
- Event parsing - Read emitted events from logs
- Status verification - Confirm success/failure for enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid transaction hash |
Note: Returns null if transaction is not yet mined.
Related Methods
eth_getTransactionByHash- Get transaction detailseth_getLogs- Query logs by filter
eth_getTransactionByHash
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.
eth_estimateGas
Estimate gas required for transactions on Polygon. Essential for optimizing transaction costs for enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments.