eth_getTransactionReceipt - Ethereum RPC Method
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.
Returns the receipt of a transaction by transaction hash on Ethereum. Receipt is only available for mined transactions.
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_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 DeFi protocols (60% market share), NFT marketplaces, DAOs, and enterprise dApps
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 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.
eth_estimateGas
Estimate gas required for transactions on Ethereum. Essential for optimizing transaction costs for DeFi protocols (60% market share), NFT marketplaces, DAOs, and enterprise dApps.