RPC method

eth_getTransactionByHash on Mantle

Supported on SwiftNodes

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

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

0x7e L1-to-L2 deposit (OP Stack)5 (100%)

Fields beyond Ethereum's

Type 0x7e (L1-to-L2 deposit (OP Stack)) transactions carry extra fields. 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; ethValue: specific to this chain's node software, not part of the Ethereum JSON-RPC specification.

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

A real Mantle transaction

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

{
  "blockHash": "0xa0f2f7e077c652c89a20bbb5a6cf047f41d223b24056a00568ce1d06dfb0d379",
  "blockNumber": "0x6129942",
  "blockTimestamp": "0x6ace248c",
  "ethValue": "0x0",
  "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
  "gas": "0xf4240",
  "gasPrice": "0x0",
  "hash": "0xf7518f92d081128002d3c39fc345084599247a27e5b6fa23474e94a3500f1bd6",
  "input": "0x49e723830002943b…(178 bytes)",
  "mint": "0x0",
  "nonce": "0x26d3058",
  "r": "0x0",
  "s": "0x0",
  "sourceHash": "0x13ecd9ad1bfa0acb7f933dbf5f1e2be813e5fdd8a4e277f74789a91a7a6e3eeb",
  "to": "0x4200000000000000000000000000000000000015",
  "transactionIndex": "0x0",
  "type": "0x7e",
  "v": "0x0",
  "value": "0x0"
}

Example request

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

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

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

Other methods on Mantle

eth_getTransactionByHash on other chains

Frequently asked questions

Does Mantle support eth_getTransactionByHash?

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

Which transaction types does Mantle use?

In five recent blocks: 5 × 0x7e (L1-to-L2 deposit (OP Stack)).

Why does eth_getTransactionByHash return null on Mantle?

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.

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

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