RPC method

eth_getTransactionByHash on Scroll

Supported on SwiftNodes

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

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

0x2 EIP-15594 (80%)
0x0 legacy1 (20%)

A real Scroll transaction

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

{
  "blockHash": "0x90251290c397cdc9fa6b902c692e281a9c81f5e1a0828bbb68a19e95e857fbde",
  "blockNumber": "0x21b8f50",
  "from": "0x127b15f37acbeaa4188a3388689445ae892787bc",
  "gas": "0xb370",
  "gasPrice": "0x1d52c",
  "maxFeePerGas": "0x3a9f4",
  "maxPriorityFeePerGas": "0x64",
  "hash": "0xe57cf3b488d096c02acda3a4f8ede38643cba1696fd3cca32e51b8d3c0b5bc91",
  "input": "0x39455d3a00000000…(68 bytes)",
  "nonce": "0x1e89c1",
  "to": "0x5300000000000000000000000000000000000002",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x2",
  "accessList": [
    {
      "address": "0x5300000000000000000000000000000000000003",
      "storageKeys": [
        "0xfd0fa31df33b74343804002bd42904a8c44a2dcbd3183a6da4a6ea591f04e318"
      ]
    }
  ],
  "chainId": "0x82750",
  "v": "0x1",
  "r": "0x33ee40b6b9fe40b4571c0f549c83b75d42b2dd72f57fdcb5ae8d7c65edbb9c77",
  "s": "0x229c6e9dafc7d33d4ea2e92bd5ce20aaa02d6d4f9662a03aa4783bdd71a7f617",
  "yParity": "0x1"
}

Example request

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

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

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

Other methods on Scroll

eth_getTransactionByHash on other chains

Frequently asked questions

Does Scroll support eth_getTransactionByHash?

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

Which transaction types does Scroll use?

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

Why does eth_getTransactionByHash return null on Scroll?

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.

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

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