RPC method

eth_getTransactionByHash on HashKey Chain

Supported on SwiftNodes

Everything below was measured on 2026-12-06 by calling eth_getTransactionByHash on HashKey Chain 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 HashKey Chain

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

0x7e L1-to-L2 deposit (OP Stack)5 (83%)
0x2 EIP-15591 (17%)

Fields beyond Ethereum's

Type 0x7e (L1-to-L2 deposit (OP Stack)) transactions carry extra fields. sourceHash: the unique ID of an L1-to-L2 deposit, derived from its L1 origin; mint: the amount of ETH minted on L2 by a deposit; depositReceiptVersion: the version of the deposit receipt format.

Transactions include blockTimestamp, so you get the block time without a second call for the block.

A real HashKey Chain transaction

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

{
  "type": "0x2",
  "chainId": "0xb1",
  "nonce": "0xb5c0e",
  "gas": "0x151ba",
  "maxFeePerGas": "0xe8d53da680",
  "maxPriorityFeePerGas": "0x989680",
  "to": "0xa9936032058f6fd085d670773ddbb2724fa75646",
  "value": "0x0",
  "accessList": [],
  "input": "0x56d3d57000000000…(132 bytes)",
  "r": "0xf165b35d303a52f4533ceae3093f98cd9b6af1b6f3566dd6419ab71e19041e08",
  "s": "0x171133b976491c99864ae939b21b96a660569416f2fc3f16bbe60ccb3da2f090",
  "yParity": "0x1",
  "v": "0x1",
  "hash": "0x9848bf072bb456abfb959dbb7010fea32d1b04fb73763440f25335fd6e2d411e",
  "blockHash": "0xa777a8c87e530e1726a65a393de2d728ea14e71ca4e413284680fe1d5999f594",
  "blockNumber": "0x1da7cd7",
  "transactionIndex": "0x1",
  "blockTimestamp": "0x6b15032d",
  "from": "0xa1c832ed74d1599686f6f9c5c6cc6960927d7431",
  "gasPrice": "0x746aeb1e80"
}

Example request

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

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

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

Other methods on HashKey Chain

eth_getTransactionByHash on other chains

Frequently asked questions

Does HashKey Chain support eth_getTransactionByHash?

Yes. eth_getTransactionByHash answered on the SwiftNodes HashKey Chain endpoint when our weekly probe called it through the customer path (2026-12-06).

Which transaction types does HashKey Chain use?

In five recent blocks: 5 × 0x7e (L1-to-L2 deposit (OP Stack)), 1 × 0x2 (EIP-1559).

Why does eth_getTransactionByHash return null on HashKey Chain?

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.

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

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