RPC method

eth_getTransactionByHash on Ethereum Classic

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Ethereum Classic 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 Ethereum Classic

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

0x0 legacy5 (100%)

A real Ethereum Classic transaction

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

{
  "blockHash": "0x0bb80d1c4b953be062a98df946e428ff582644609fe7fe8054798e9dffd42667",
  "blockNumber": "0x1858557",
  "from": "0x092b7c8a60f8930783ac2e282ae7419d3c3deb83",
  "gas": "0x651d",
  "gasPrice": "0x3b9aca00",
  "hash": "0x649eafd65fef2955a59da825f76987f08786a51717e72b51fcad5354a3278919",
  "input": "0x456d2030352f3130…(284 bytes)",
  "nonce": "0x12029",
  "to": "0x092b7c8a60f8930783ac2e282ae7419d3c3deb83",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x0",
  "chainId": "0x3d",
  "v": "0x9d",
  "r": "0xa6f6332d3199e079ce1249744e4ea3457f6b8da29d40283aaa9098f00181e761",
  "s": "0x36f1a1bb75f57e80a88507a6abafb8c3d5a80dbd7860da12749a08fd9b962873"
}

Example request

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

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

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

Other methods on Ethereum Classic

eth_getTransactionByHash on other chains

Frequently asked questions

Does Ethereum Classic support eth_getTransactionByHash?

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

Which transaction types does Ethereum Classic use?

In five recent blocks: 5 × 0x0 (legacy).

Why does eth_getTransactionByHash return null on Ethereum Classic?

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.

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

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