RPC method

eth_getTransactionByHash on Plasma

Supported on SwiftNodes

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

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

0x2 EIP-155932 (78%)
0x0 legacy9 (22%)

A real Plasma transaction

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

{
  "type": "0x2",
  "chainId": "0x2611",
  "nonce": "0x24afb",
  "gas": "0x13edf",
  "maxFeePerGas": "0xba43b7411",
  "maxPriorityFeePerGas": "0xba43b7400",
  "to": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb",
  "value": "0x0",
  "accessList": [],
  "input": "0x23b872dd00000000…(100 bytes)",
  "r": "0x3ac74f9868f99634d395449bb5adfc510481c7b44ece880289bc9e710b9aef57",
  "s": "0x103ead432c0329eed242c5f9c787c7bb1ff83d139d6b98a9b5839521bd9ff26e",
  "yParity": "0x1",
  "v": "0x1",
  "hash": "0xd04236854ac531f235d097ce949f091fccb2bdeba2b884e84e4ae41d066d124d",
  "blockHash": "0x42f15722ebaecdf3140912c387cbd8b3213f174043963c4930bb57715ae97064",
  "blockNumber": "0x2155b6a",
  "transactionIndex": "0x0",
  "from": "0x5400cf1767bae40194b1648b167265a27884054c",
  "gasPrice": "0xba43b7408"
}

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

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

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

Other methods on Plasma

eth_getTransactionByHash on other chains

Frequently asked questions

Does Plasma support eth_getTransactionByHash?

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

Which transaction types does Plasma use?

In five recent blocks: 32 × 0x2 (EIP-1559), 9 × 0x0 (legacy).

Why does eth_getTransactionByHash return null on Plasma?

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.

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.