RPC method

eth_getTransactionByHash on Avalanche

Supported on SwiftNodes

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

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

0x2 EIP-15599 (82%)
0x0 legacy2 (18%)

A real Avalanche transaction

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

{
  "blockHash": "0x097d6c37c7fdaf4f071c88b34c7965d076b1719847c041898f0656bfb297ce65",
  "blockNumber": "0x5cee1ee",
  "from": "0x01cd3260688efc1df7ab47d445703b32c86340cd",
  "gas": "0x3d0900",
  "gasPrice": "0x12a05f296",
  "maxFeePerGas": "0x25c684622",
  "maxPriorityFeePerGas": "0x96",
  "hash": "0xc342fe0131150adbf0fb00f7c7098d0edebfbfb6fa9aea8c07c5390e69a3e1d0",
  "input": "0x018b8e8e00000000…(3012 bytes)",
  "nonce": "0x462",
  "to": "0x0514830cdf85b444f8599325d9b8072f6c1c5549",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x2",
  "accessList": [],
  "chainId": "0xa86a",
  "v": "0x0",
  "r": "0x39fd375d25c92fd36a558c3433b064e7d8e211dcd677c0efefc92751cc2939cd",
  "s": "0x6bbe1e924deb1899fb9f175ba5ec4b600eaa2443a73764e45544961bc7fb6e0a",
  "yParity": "0x0"
}

Example request

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

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

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

Other methods on Avalanche

eth_getTransactionByHash on other chains

Frequently asked questions

Does Avalanche support eth_getTransactionByHash?

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

Which transaction types does Avalanche use?

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

Why does eth_getTransactionByHash return null on Avalanche?

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.

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

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