Docs

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 CodeMessageDescription
-32602Invalid paramsInvalid transaction hash

Note: Returns null if transaction is not yet mined.