eth_getTransactionByHash - opBNB RPC Method
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.
Returns the information about a transaction by transaction hash on opBNB.
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_getTransactionByHash method is essential for:
- Transaction tracking - Get details of pending or confirmed transactions
- Payment verification - Verify transaction parameters
- Debugging - Analyze transaction data for fully on-chain games, high-frequency DeFi, and cost-sensitive applications on BNB Chain
- 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 opBNB. Essential for broadcasting transactions for fully on-chain games, high-frequency DeFi, and cost-sensitive applications on BNB Chain.
eth_getTransactionReceipt
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.