eth_getTransactionByHash on MegaETH
Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on MegaETH 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 MegaETH
Types of the 94 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on MegaETH if any of these is missing from their list.
| 0x2 EIP-1559 | 50 (53%) |
|---|---|
| 0x0 legacy | 40 (43%) |
| 0x7e L1-to-L2 deposit (OP Stack) | 4 (4%) |
Fields beyond Ethereum's
Type 0x7e (L1-to-L2 deposit (OP Stack)) transactions carry extra fields. sourceHash: the unique ID of an L1-to-L2 deposit, derived from its L1 origin; mint: the amount of ETH minted on L2 by a deposit; depositReceiptVersion: the version of the deposit receipt format.
A real MegaETH transaction
A type 0x0 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).
{
"type": "0x0",
"chainId": "0x10e6",
"nonce": "0x1006993c",
"gasPrice": "0x0",
"gas": "0x253e8c4e4",
"to": "0x6342000000000000000000000000000000000001",
"value": "0x0",
"input": "0x01caec1300000000…(196 bytes)",
"r": "0xc82693f112b5650f991e4fa4e4c3ef30c950ce7e5afcd66a86a73c5bf7cbe0e6",
"s": "0x66b6b734b4f948e0d25ec4ce7a6cc385972b52664ad245c0a0aace7052af3f6a",
"v": "0x21f0",
"hash": "0x56ed4bf3c282a419b5df8f651528d3bfa04ac52c8190ac6b19c8397a9675d6ab",
"blockHash": "0x700e0b95ba60695ee53f371a772fd707e9337d61a440b7124e3b56b0a09bc780",
"blockNumber": "0x1bc0649",
"transactionIndex": "0x1",
"from": "0xa887dcb9d5f39ef79272801d05abdf707cfbbd1d"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/megaeth?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionByHash","params":["0x56ed4bf3c282a419b5df8f651528d3bfa04ac52c8190ac6b19c8397a9675d6ab"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/megaeth?key=YOUR_API_KEY"),
});
const tx = await client.getTransaction({ hash: "0x56ed4bf3c282a419b5df8f651528d3bfa04ac52c8190ac6b19c8397a9675d6ab" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);Other methods on MegaETH
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionReceiptSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_feeHistorySupported
- eth_getProofNot available
- eth_createAccessListSupported
- debug_traceCallSupported
- trace_blockSupported
- trace_transactionSupported
eth_getTransactionByHash on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Linea
- Scroll
- zkSync Era
- Blast
- Mantle
- Gnosis
- Celo
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- Fantom
- Lisk
- Hemi
- X Layer
- BOB
- Plasma
- Fraxtal
- Zora
- Story
- Soneium
- Sei
- Hyperliquid
- Taiko
- Morph
- Ink
- Katana
- Ethereum Classic
- opBNB
- Mode
- Flare
- Core
- Chiliz
- Telos EVM
- Tempo
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
Frequently asked questions
Does MegaETH support eth_getTransactionByHash?
Yes. eth_getTransactionByHash answered on the SwiftNodes MegaETH endpoint when our weekly probe called it through the customer path (2026-10-13).
Which transaction types does MegaETH use?
In five recent blocks: 4 × 0x7e (L1-to-L2 deposit (OP Stack)), 40 × 0x0 (legacy), 50 × 0x2 (EIP-1559).
Why does eth_getTransactionByHash return null on MegaETH?
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.
MegaETH endpoints, live block height and WebSocket status are on the MegaETH RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.