eth_getTransactionByHash on Soneium
Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Soneium 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 Soneium
Types of the 20 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on Soneium if any of these is missing from their list.
| 0x2 EIP-1559 | 15 (75%) |
|---|---|
| 0x7e L1-to-L2 deposit (OP Stack) | 5 (25%) |
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.
Transactions include blockTimestamp, so you get the block time without a second call for the block.
A real Soneium transaction
A type 0x2 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).
{
"type": "0x2",
"chainId": "0x74c",
"nonce": "0x7cdd2",
"gas": "0x4f223",
"maxFeePerGas": "0xfd72d0",
"maxPriorityFeePerGas": "0x186a0",
"to": "0x0000000071727de22e5e9d8baf0edac6f37da032",
"value": "0x0",
"accessList": [],
"input": "0x765e827f00000000…(1476 bytes)",
"r": "0x3e81810bdebc3248fd367e5dd06303c311a4a2f01637e094947e8f75348613f",
"s": "0x6ebae8d18027a429b6c727910d1dfee7459ce0ad4f899da825f324529e3a2839",
"yParity": "0x0",
"v": "0x0",
"hash": "0xfb664ec80135599d4545a9d93060a14ad9850868c941c37ad1b318b932e46dcd",
"blockHash": "0x1ab692bd507f060a1b0aae574ca41a46ab3518fc583e5ac699d46155da025d7c",
"blockNumber": "0x1c04e94",
"transactionIndex": "0x1",
"blockTimestamp": "0x6ace26c7",
"from": "0xcd2fda710b56b0cdbcb41f2b1d0210ed6f972b75",
"gasPrice": "0xc7e3e0"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/soneium?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionByHash","params":["0xfb664ec80135599d4545a9d93060a14ad9850868c941c37ad1b318b932e46dcd"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/soneium?key=YOUR_API_KEY"),
});
const tx = await client.getTransaction({ hash: "0xfb664ec80135599d4545a9d93060a14ad9850868c941c37ad1b318b932e46dcd" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);Other methods on Soneium
- 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_getProofSupported
- eth_createAccessListSupported
- debug_traceCallNot available
- trace_blockNot available
- trace_transactionNot available
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
- MegaETH
- Fantom
- Lisk
- Hemi
- X Layer
- BOB
- Plasma
- Fraxtal
- Zora
- Story
- 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 Soneium support eth_getTransactionByHash?
Yes. eth_getTransactionByHash answered on the SwiftNodes Soneium endpoint when our weekly probe called it through the customer path (2026-10-13).
Which transaction types does Soneium use?
In five recent blocks: 5 × 0x7e (L1-to-L2 deposit (OP Stack)), 15 × 0x2 (EIP-1559).
Why does eth_getTransactionByHash return null on Soneium?
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.
Soneium endpoints, live block height and WebSocket status are on the Soneium RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.