RPC method

eth_getTransactionReceipt on Fantom

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionReceipt on Fantom 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 Fantom: what we measured

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

Reading the fee and fields

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

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

{
  "blockHash": "0x0005717500000864d4b8407ea061eae67a3333ef41ac242163016815d8e928c3",
  "blockNumber": "0x75f175c",
  "contractAddress": null,
  "cumulativeGasUsed": "0x1b277",
  "effectiveGasPrice": "0x4092f351",
  "from": "0x6b3b6681a15732b8c7f39ad3e21c10d8bea33029",
  "gasUsed": "0x1b277",
  "logs": "3 logs",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "status": "0x1",
  "to": "0x68e369edc0d374f86295690cbaa981ee3709c061",
  "transactionHash": "0xc6102dd859db0f7cb1ec5156a7406af768f75460183e348a49c3f28c781375d1",
  "transactionIndex": "0x0",
  "type": "0x0"
}

Example request

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

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/fantom?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 Fantom

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Fantom support eth_getTransactionReceipt?

Yes. eth_getTransactionReceipt answered on the SwiftNodes Fantom endpoint when our weekly probe called it through the customer path (2026-10-13).

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

gasUsed × effectiveGasPrice from the receipt.

Why is the Fantom receipt null?

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

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

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