eth_getTransactionReceipt on opBNB
Everything below was measured on 2026-11-29 by calling eth_getTransactionReceipt on opBNB through the same endpoint customers use, and is re-measured weekly.
What eth_getTransactionReceipt does
Returns the outcome of a mined transaction: status (1 success, 0 reverted), gas used, the effective gas price, the logs it emitted and any contract it created. It returns null until the transaction is in a block.
eth_getTransactionReceipt on opBNB: what we measured
| Fields | 20 (6 beyond the Ethereum set) |
|---|---|
| Receipt for an unknown hash | null |
| Size of the sample receipt | 9.6 KB |
Reading the fee and fields
Beyond the Ethereum fields, opBNB receipts carry 6 more. l1BaseFeeScalar: the weight of Ethereum's execution base fee in the L1 fee (post-Ecotone formula); l1BlobBaseFee: the Ethereum blob base fee the L1 fee was priced with; l1BlobBaseFeeScalar: the weight of Ethereum's blob base fee in the L1 fee; l1Fee: the L1 data fee in wei, charged on top of gasUsed × effectiveGasPrice. Add it to get the real cost; l1GasPrice: the Ethereum base fee the L1 fee was priced with; l1GasUsed: the L1 gas the transaction's compressed data was estimated to use.
A hash the node has not seen returns null, not an error, so poll until it is non-null (viem's waitForTransactionReceipt does this) and give up after a timeout.
A real opBNB receipt
As our endpoint returned it; logs collapsed to a count and long hex values shortened.
{
"blockHash": "0x9b95a077fbb6a98b8f8b3e603c7933b8c0de742a2f7b15e3965305adad8b15a2",
"blockNumber": "0xc979bf1",
"contractAddress": null,
"cumulativeGasUsed": "0x5e00e",
"effectiveGasPrice": "0x0",
"from": "0x0b6f2031f586a95c166c5e4b78984ae5dd981ea6",
"gasUsed": "0x51eef",
"l1BaseFeeScalar": "0x109a0",
"l1BlobBaseFee": "0x1",
"l1BlobBaseFeeScalar": "0x9fe98",
"l1Fee": "0x0",
"l1GasPrice": "0x2faf081",
"l1GasUsed": "0x1d20",
"logs": "12 logs",
"logsBloom": "0x0400000000000000…(256 bytes)",
"status": "0x1",
"to": "0x80ca104d4dc59d42862b801792abb1909f5a7e5d",
"transactionHash": "0x75065484b1b4fc208d3c9c1e09d8b5b6aaa3fee9ad562a948a0861366120d4f1",
"transactionIndex": "0x1",
"type": "0x0"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x75065484b1b4fc208d3c9c1e09d8b5b6aaa3fee9ad562a948a0861366120d4f1"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/opbnb?key=YOUR_API_KEY"),
});
const receipt = await client.waitForTransactionReceipt({ hash, timeout: 60_000 });
if (receipt.status !== "success") throw new Error("reverted");
// Total cost on opBNB: execution plus the L1 data fee
const execution = receipt.gasUsed * receipt.effectiveGasPrice;
const total = execution + (receipt.l1Fee ?? 0n);Other methods on opBNB
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionByHashSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_feeHistorySupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_getProofSupported
- eth_createAccessListSupported
- debug_traceCallSupported
- trace_blockSupported
- trace_transactionSupported
eth_getTransactionReceipt on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Linea
- Scroll
- zkSync Era
- Mantle
- Gnosis
- Celo
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- Fantom
- Lisk
- Hemi
- X Layer
- BOB
- Plasma
- Fraxtal
- Zora
- Story
- Soneium
- Sei
- Hyperliquid
- Taiko
- Morph
- Ink
- Katana
- Ethereum Classic
- Mode
- Flare
- Core
- Chiliz
- Telos EVM
- Tempo
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
Frequently asked questions
Does opBNB support eth_getTransactionReceipt?
Yes. eth_getTransactionReceipt answered on the SwiftNodes opBNB endpoint when our weekly probe called it through the customer path (2026-11-29).
How do I get the total fee of a transaction on opBNB?
Add the receipt's l1Fee to gasUsed × effectiveGasPrice.
Why is the opBNB receipt null?
The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.
opBNB endpoints, live block height and WebSocket status are on the opBNB RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.