eth_getTransactionByHash on Doma
Everything below was measured on 2026-12-06 by calling eth_getTransactionByHash on Doma 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 Doma
Types of the 11 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on Doma if any of these is missing from their list.
| 0x2 EIP-1559 | 6 (55%) |
|---|---|
| 0x7e L1-to-L2 deposit (OP Stack) | 5 (45%) |
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 Doma transaction
A type 0x2 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).
{
"type": "0x2",
"chainId": "0x17cc5",
"nonce": "0x22f9a8",
"gas": "0x989680",
"maxFeePerGas": "0x3cc",
"maxPriorityFeePerGas": "0x2b2",
"to": "0x8c765cd16395264acf6282070caae734aea06bf9",
"value": "0x0",
"accessList": [],
"input": "0x0c130531eef89d52…(507 bytes)",
"r": "0x4034c6cb6376666c89c2b68b3f38aba94539fac8f1f9b677e340722038917323",
"s": "0x4e5633ee433ef30c9c579932dfae6f1928b4bc0498e290825a84bd8b8782e0e7",
"yParity": "0x1",
"v": "0x1",
"hash": "0xdca0398caaaa8e391423e4dbaff16ce58d0709c9a9f57df1da333658d1d86d14",
"blockHash": "0xea23e66a7cee3bab8d93c16efd21f656b6328b0f6d72d9a9ab600a6ea99439c3",
"blockNumber": "0x12644ad",
"transactionIndex": "0x1",
"blockTimestamp": "0x6b1502c9",
"from": "0x6119871b4eb66db137dcfad59655853ea6fe58ce",
"gasPrice": "0x3ad"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/doma?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionByHash","params":["0xdca0398caaaa8e391423e4dbaff16ce58d0709c9a9f57df1da333658d1d86d14"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/doma?key=YOUR_API_KEY"),
});
const tx = await client.getTransaction({ hash: "0xdca0398caaaa8e391423e4dbaff16ce58d0709c9a9f57df1da333658d1d86d14" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);Other methods on Doma
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionReceiptSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_feeHistorySupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_getProofSupported
- 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
- Mantle
- Gnosis
- Celo
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- Fantom
- 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
- Arc
- HashKey Chain
- Tea
- Metal L2
Frequently asked questions
Does Doma support eth_getTransactionByHash?
Yes. eth_getTransactionByHash answered on the SwiftNodes Doma endpoint when our weekly probe called it through the customer path (2026-12-06).
Which transaction types does Doma use?
In five recent blocks: 5 × 0x7e (L1-to-L2 deposit (OP Stack)), 6 × 0x2 (EIP-1559).
Why does eth_getTransactionByHash return null on Doma?
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.
Doma endpoints, live block height and WebSocket status are on the Doma RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.