RPC method

eth_getTransactionReceipt on BNB Smart Chain

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_getTransactionReceipt on BNB Smart Chain 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 BNB Smart Chain: what we measured

Fields14
Receipt for an unknown hashnull
Size of the sample receipt1021 bytes

Reading the fee and fields

The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: BNB Smart Chain receipts carry no separate L1 or data fee field.

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 BNB Smart Chain receipt

As our endpoint returned it; logs collapsed to a count and long hex values shortened.

{
  "blockHash": "0xdc8ce8dde1af1fd90a80e78c08df70595414ca795e7f1939f7ce4a7e533e36a4",
  "blockNumber": "0x820da8c",
  "contractAddress": null,
  "cumulativeGasUsed": "0xca80",
  "effectiveGasPrice": "0x0",
  "from": "0x042e06f3d7cbb572d51b7199d303579393fff041",
  "gasUsed": "0xca80",
  "logs": "0 logs",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "status": "0x1",
  "to": "0xc7d4187cbda07f4b5be04418b9723b5faf65db5c",
  "transactionHash": "0xa2d479a3852804bcb2d60faa1c026ea5775239204b245694ce0b4f92b9006334",
  "transactionIndex": "0x0",
  "type": "0x0"
}

Example request

curl -s https://rpc.swiftnodes.io/rpc/bsc?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0xa2d479a3852804bcb2d60faa1c026ea5775239204b245694ce0b4f92b9006334"]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/bsc?key=YOUR_API_KEY"),
});

const receipt = await client.waitForTransactionReceipt({ hash, timeout: 60_000 });
if (receipt.status !== "success") throw new Error("reverted");

const total = receipt.gasUsed * receipt.effectiveGasPrice;

Other methods on BNB Smart Chain

eth_getTransactionReceipt on other chains

Frequently asked questions

Does BNB Smart Chain support eth_getTransactionReceipt?

Yes. eth_getTransactionReceipt answered on the SwiftNodes BNB Smart Chain 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 BNB Smart Chain?

gasUsed × effectiveGasPrice from the receipt.

Why is the BNB Smart Chain receipt null?

The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.

BNB Smart Chain endpoints, live block height and WebSocket status are on the BNB Smart Chain RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.