RPC method

eth_getTransactionByHash on Linea

Supported on SwiftNodes

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

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

0x2 EIP-15596 (75%)
0x0 legacy2 (25%)

Fields beyond Ethereum's

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

A real Linea transaction

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

{
  "blockHash": "0x258e89a25d09f3664ed4392854f598c1347ec3199daa64183deb0984c288b4ab",
  "blockNumber": "0x1ed0a83",
  "blockTimestamp": "0x6ace24e8",
  "from": "0xd82def4400793894fb175f3b1ba6e4402c92c98c",
  "gas": "0x7a120",
  "gasPrice": "0x257a80e",
  "hash": "0x8d278cb78077b04a9a612fe5f526532a97cfdb9d318b0b62befcddc2f50e5000",
  "input": "0x24856bc300000000…(484 bytes)",
  "nonce": "0x206c48",
  "to": "0x85974429677c2a701af470b82f3118e74307826e",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x0",
  "chainId": "0xe708",
  "v": "0x1ce34",
  "r": "0xa92277d8d68c641395dae7a1693bdddea58155475e15fb49df81978d61a909b",
  "s": "0x6b8cd84503656c9dd0cac84fb5665af1f421822edaacb6bb62dfe19aa8e5e922"
}

Example request

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

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

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

Other methods on Linea

eth_getTransactionByHash on other chains

Frequently asked questions

Does Linea support eth_getTransactionByHash?

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

Which transaction types does Linea use?

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

Why does eth_getTransactionByHash return null on Linea?

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.

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

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