RPC method

eth_getTransactionReceipt on Hemi

Supported on SwiftNodes

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

Fields20 (6 beyond the Ethereum set)
Receipt for an unknown hashnull
Size of the sample receipt2.3 KB

Reading the fee and fields

Beyond the Ethereum fields, Hemi 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.

gasUsed × effectiveGasPrice is not the whole cost on Hemi. In the sample receipt below, execution cost 287,760,158,450 wei and the L1 data fee (l1Fee) 2,183,053,677,978 wei, so 88.3% of what the sender paid was the L1 fee. A wallet or accounting tool that ignores l1Fee understates fees.

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 Hemi receipt

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

{
  "blockHash": "0x9057f0453f7d2e9b511fa878e079efa303727650ed017a5beca35d23817922c4",
  "blockNumber": "0x578ebb",
  "contractAddress": null,
  "cumulativeGasUsed": "0x2afed",
  "effectiveGasPrice": "0x241e9a",
  "from": "0x6ceea412473ca1506385bb740bc3010b018076d4",
  "gasUsed": "0x1dadd",
  "l1BaseFeeScalar": "0xf4240",
  "l1BlobBaseFee": "0xeadad8",
  "l1BlobBaseFeeScalar": "0x0",
  "l1Fee": "0x1fc4823959a",
  "l1GasPrice": "0xf242a01",
  "l1GasUsed": "0x2191",
  "logs": "2 logs",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "status": "0x1",
  "to": "0x47261a5ed80255f7756e860b394a91e5e647be80",
  "transactionHash": "0x77809398be3ee68e659dd44fde1484c1412e415511fef6cace87c52c3b3c7045",
  "transactionIndex": "0x1",
  "type": "0x2"
}

Example request

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

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

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

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

Other methods on Hemi

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Hemi support eth_getTransactionReceipt?

Yes. eth_getTransactionReceipt answered on the SwiftNodes Hemi endpoint when our weekly probe called it through the customer path (2026-11-15).

How do I get the total fee of a transaction on Hemi?

Add the receipt's l1Fee to gasUsed × effectiveGasPrice.

Why is the Hemi receipt null?

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

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

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