RPC method

eth_getTransactionReceipt on Mantle

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionReceipt on Mantle through the same endpoint customers use, and is re-measured weekly.

What eth_getTransactionReceipt does

Returns the outcome of a mined transaction: status (1 success, 0 reverted), gas used, the effective gas price, the logs it emitted and any contract it created. It returns null until the transaction is in a block.

eth_getTransactionReceipt on Mantle: what we measured

Fields15 (1 beyond the Ethereum set)
Receipt for an unknown hashnull
Size of the sample receipt1.0 KB

Reading the fee and fields

Beyond the Ethereum fields, Mantle receipts carry one more. depositNonce: the nonce of an L1-to-L2 deposit transaction.

The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Mantle receipts carry no separate L1 or data fee field.

A hash the node has not seen returns null, not an error, so poll until it is non-null (viem's waitForTransactionReceipt does this) and give up after a timeout.

A real Mantle receipt

As our endpoint returned it; logs collapsed to a count and long hex values shortened.

{
  "blockHash": "0xa0f2f7e077c652c89a20bbb5a6cf047f41d223b24056a00568ce1d06dfb0d379",
  "blockNumber": "0x6129942",
  "contractAddress": null,
  "cumulativeGasUsed": "0xe08f",
  "depositNonce": "0x26d3058",
  "effectiveGasPrice": "0x0",
  "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
  "gasUsed": "0xe08f",
  "logs": "0 logs",
  "logsBloom": "0x0000000000000000…(256 bytes)",
  "status": "0x1",
  "to": "0x4200000000000000000000000000000000000015",
  "transactionHash": "0xf7518f92d081128002d3c39fc345084599247a27e5b6fa23474e94a3500f1bd6",
  "transactionIndex": "0x0",
  "type": "0x7e"
}

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_getTransactionReceipt","params":["0xf7518f92d081128002d3c39fc345084599247a27e5b6fa23474e94a3500f1bd6"]}'
import { createPublicClient, http } from "viem";

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

const receipt = await client.waitForTransactionReceipt({ hash, timeout: 60_000 });
if (receipt.status !== "success") throw new Error("reverted");

// Total cost on Mantle: execution plus the L1 data fee
const execution = receipt.gasUsed * receipt.effectiveGasPrice;
const total = execution + (receipt.l1Fee ?? 0n);

Other methods on Mantle

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Mantle support eth_getTransactionReceipt?

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

How do I get the total fee of a transaction on Mantle?

Add the receipt's l1Fee to gasUsed × effectiveGasPrice.

Why is the Mantle receipt null?

The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.

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.