RPC method

eth_getTransactionReceipt on Plasma

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionReceipt on Plasma 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 Plasma: what we measured

Fields14
Receipt for an unknown hashnull
Size of the sample receipt2.2 KB

Reading the fee and fields

The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Plasma 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 Plasma receipt

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

{
  "type": "0x2",
  "status": "0x1",
  "cumulativeGasUsed": "0xbf22",
  "logs": "2 logs",
  "logsBloom": "0x0000000040000000…(256 bytes)",
  "transactionHash": "0xd04236854ac531f235d097ce949f091fccb2bdeba2b884e84e4ae41d066d124d",
  "transactionIndex": "0x0",
  "blockHash": "0x42f15722ebaecdf3140912c387cbd8b3213f174043963c4930bb57715ae97064",
  "blockNumber": "0x2155b6a",
  "gasUsed": "0xbf22",
  "effectiveGasPrice": "0xba43b7408",
  "from": "0x5400cf1767bae40194b1648b167265a27884054c",
  "to": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
  "contractAddress": null
}

Example request

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

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

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

const total = receipt.gasUsed * receipt.effectiveGasPrice;

Other methods on Plasma

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Plasma support eth_getTransactionReceipt?

Yes. eth_getTransactionReceipt answered on the SwiftNodes Plasma 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 Plasma?

gasUsed × effectiveGasPrice from the receipt.

Why is the Plasma receipt null?

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

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

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