RPC method

eth_getTransactionByHash on Ronin

Supported on SwiftNodes

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

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

0x0 legacy550 (96%)
0x2 EIP-155916 (3%)
0x7e L1-to-L2 deposit (OP Stack)5 (1%)

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 Ronin transaction

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

{
  "blockHash": "0xfb15f59b9e34828e311f4b5dfa583b236e2ccea128810983df17519f194cea3c",
  "blockNumber": "0x3b54fa1",
  "blockTimestamp": "0x6ace2d35",
  "chainId": "0x7e4",
  "from": "0x6f6e2e0e548af422af070c9125c9f22dbadf4b84",
  "gas": "0x5208",
  "gasPrice": "0x51f5e24e0",
  "hash": "0xc871287cddfc89ff2b2d819c3774c95468a4cd028b422b78a669a13a5dc403b7",
  "input": "0x",
  "nonce": "0x13",
  "r": "0xbdb3b6a6f404f0a46e071e935e7240a4166c64ba370b7347da1831d515df499e",
  "s": "0x32c8dac19e9310d5109cdc52a6c432c6d694cb8647c0caa8e2e46e86b7779b50",
  "to": "0x43f18c07525ae8675cd0ef037a0c9cf7fe38d371",
  "transactionIndex": "0x1",
  "type": "0x0",
  "v": "0xfec",
  "value": "0x4354f2eb3bd640"
}

Example request

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

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

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

Other methods on Ronin

eth_getTransactionByHash on other chains

Frequently asked questions

Does Ronin support eth_getTransactionByHash?

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

Which transaction types does Ronin use?

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

Why does eth_getTransactionByHash return null on Ronin?

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.

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

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