RPC method

eth_getTransactionByHash on Ink

Supported on SwiftNodes

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

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

0x2 EIP-155943 (90%)
0x7e L1-to-L2 deposit (OP Stack)5 (10%)

Fields beyond Ethereum's

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

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

A real Ink transaction

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

{
  "accessList": [],
  "blockHash": "0x5cb07e69a859ab1367fa04c6651667145aac8f878d08608ced8f9ba13620aa09",
  "blockNumber": "0x37b148b",
  "blockTimestamp": "0x6ace2ab6",
  "chainId": "0xdef1",
  "from": "0x2ac1dc050aab495ff26c2156d5e4e53f14bdf618",
  "gas": "0x3d0900",
  "gasPrice": "0x124f82",
  "hash": "0xd7844b37db1834faad8216aa5461f35a694de3466d3b91b1ae4b1e944198773d",
  "input": "0xb9247c0dfba644a9…(163 bytes)",
  "maxFeePerGas": "0x30d52d",
  "maxPriorityFeePerGas": "0x124e57",
  "nonce": "0x1bee32",
  "r": "0xefbbc3534b0a6dceae459eb345f73c93a32b09ed1bd793192b24cc334d4f70e5",
  "s": "0x5ba52a7f8473a83364ae7313f2e9ff85f770c26e18194225b75a678fb3c6c7cc",
  "to": "0x2fa8df1bad9c12ff2cd47c6cad5618a466ee682e",
  "transactionIndex": "0x1",
  "type": "0x2",
  "v": "0x1",
  "value": "0x0",
  "yParity": "0x1"
}

Example request

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

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

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

Other methods on Ink

eth_getTransactionByHash on other chains

Frequently asked questions

Does Ink support eth_getTransactionByHash?

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

Which transaction types does Ink use?

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

Why does eth_getTransactionByHash return null on Ink?

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.

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

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