RPC method

eth_getTransactionReceipt on Berachain

Supported on SwiftNodes

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

Fields14
Receipt for an unknown hashnull
Size of the sample receipt2.2 KB

Reading the fee and fields

The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Berachain 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 Berachain receipt

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

{
  "type": "0x2",
  "status": "0x1",
  "cumulativeGasUsed": "0x1a864",
  "logs": "2 logs",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "transactionHash": "0xbbaafca666ca2300a4133a69acc448d5f2d58a9ea426897b1892b623e01cb41e",
  "transactionIndex": "0x1",
  "blockHash": "0x2a05d0c8cf1ab366026819fa9f8d5082c1e861140fc09c06d7315fa10fbce422",
  "blockNumber": "0x1c18277",
  "gasUsed": "0x1a864",
  "effectiveGasPrice": "0x77359400",
  "from": "0xd67da12dc33d9730d9341bbfa4f0b67d0688b28b",
  "to": "0x3567afda6e990bfca2dd7f19d6547b585d224bc2",
  "contractAddress": null
}

Example request

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

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

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

// Total cost on Berachain: execution plus the L1 data fee
const execution = receipt.gasUsed * receipt.effectiveGasPrice;
const total = execution + (receipt.l1Fee ?? 0n);

Other methods on Berachain

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Berachain support eth_getTransactionReceipt?

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

Add the receipt's l1Fee to gasUsed × effectiveGasPrice.

Why is the Berachain receipt null?

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

Berachain endpoints, live block height and WebSocket status are on the Berachain RPC page.

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