eth_getTransactionReceipt - opBNB RPC Method
Get transaction receipt with status and logs on opBNB. Essential for verifying transaction execution for fully on-chain games, high-frequency DeFi, and cost-sensitive applications on BNB Chain.
Returns the receipt of a transaction by transaction hash on opBNB. Receipt is only available for mined transactions.
Why opBNB? Build on Binance's high-performance L2 processing 100M+ daily transactions with the lowest L2 gas fees with sub-$0.0001 gas fees, 5-10K TPS, sub-second block times via Volta/Maxwell upgrades, and OP Stack architecture.
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 fully on-chain games, high-frequency DeFi, and cost-sensitive applications on BNB Chain
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 opBNB. Essential for GameFi developers, high-frequency dApp builders, and teams requiring BNB Chain integration tracking transactions on Binance's high-performance L2 processing 100M+ daily transactions with the lowest L2 gas fees.
eth_estimateGas
Estimate gas required for transactions on opBNB. Essential for optimizing transaction costs for fully on-chain games, high-frequency DeFi, and cost-sensitive applications on BNB Chain.