RPC method

eth_getTransactionByHash on Fantom

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Fantom through the same endpoint customers use, and is re-measured weekly.

What eth_getTransactionByHash does

Returns a transaction by its hash: sender, recipient, value, input data, gas fields and signature, plus the block it was included in. It returns null for a hash the node does not know, and a transaction still in the mempool has a null blockNumber.

Transaction types on Fantom

Types of the 7 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on Fantom if any of these is missing from their list.

0x0 legacy5 (71%)
0x2 EIP-15592 (29%)

A real Fantom transaction

A type 0x0 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).

{
  "blockHash": "0x0005717500000864d4b8407ea061eae67a3333ef41ac242163016815d8e928c3",
  "blockNumber": "0x75f175c",
  "from": "0x6b3b6681a15732b8c7f39ad3e21c10d8bea33029",
  "gas": "0x1b6f4",
  "gasPrice": "0x4092f351",
  "hash": "0xc6102dd859db0f7cb1ec5156a7406af768f75460183e348a49c3f28c781375d1",
  "input": "0xbca0d8c900000000…(324 bytes)",
  "nonce": "0xdc3",
  "to": "0x68e369edc0d374f86295690cbaa981ee3709c061",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x0",
  "v": "0x218",
  "r": "0xf0cb0f0fdacb010067502e48d28d6875d4d5d24ffa4ad9c6ea0da32a143dfb75",
  "s": "0x49d048acc7a7c3eaefcef7a90f32e96e398843c95932213738648889989e5556"
}

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_getTransactionByHash","params":["0xc6102dd859db0f7cb1ec5156a7406af768f75460183e348a49c3f28c781375d1"]}'
import { createPublicClient, http } from "viem";

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

const tx = await client.getTransaction({ hash: "0xc6102dd859db0f7cb1ec5156a7406af768f75460183e348a49c3f28c781375d1" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);

Other methods on Fantom

eth_getTransactionByHash on other chains

Frequently asked questions

Does Fantom support eth_getTransactionByHash?

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

Which transaction types does Fantom use?

In five recent blocks: 5 × 0x0 (legacy), 2 × 0x2 (EIP-1559).

Why does eth_getTransactionByHash return null on Fantom?

The node does not know the hash: it was never broadcast, it was dropped from the mempool, or it was sent to another chain. Check the hash and the chain ID before retrying.

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.