eth_getTransactionByHash on Berachain
Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Berachain 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 Berachain
Types of the 9 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on Berachain if any of these is missing from their list.
| 0x7e L1-to-L2 deposit (OP Stack) | 5 (56%) |
|---|---|
| 0x0 legacy | 2 (22%) |
| 0x2 EIP-1559 | 2 (22%) |
A real Berachain transaction
A type 0x0 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).
{
"type": "0x0",
"chainId": "0x138de",
"nonce": "0x6bb9b",
"gasPrice": "0x7ab4ac5b6",
"gas": "0x493e0",
"to": "0xe301e48f77963d3f7dbd2a4796962bd7f3867fb4",
"value": "0x0",
"input": "0x5023b4df00000000…(228 bytes)",
"r": "0x2a44ee6d70039df17cf5cb1b080694b1b018e3d813004adbd2be403fd3bc12de",
"s": "0x2e94bf7c101df2ec4b09940b846fc52f3dabecdbad67ebe7b1dccfac4e936dc6",
"v": "0x271e0",
"hash": "0x68cebf5de614f4909059bfcd9e0f910f86501b5ce2c7cff8258d8acf1e827224",
"blockHash": "0xf2f667e898367ad2289a53af842f2743ad2dd1862c8faa8b40eab8816d54ae83",
"blockNumber": "0x1a2b403",
"transactionIndex": "0x1",
"from": "0xb2ac79c3df22f3eae8fbdc0627995a5b610dc357"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/berachain?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionByHash","params":["0x68cebf5de614f4909059bfcd9e0f910f86501b5ce2c7cff8258d8acf1e827224"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/berachain?key=YOUR_API_KEY"),
});
const tx = await client.getTransaction({ hash: "0x68cebf5de614f4909059bfcd9e0f910f86501b5ce2c7cff8258d8acf1e827224" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);Other methods on Berachain
- 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_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
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- 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 Berachain support eth_getTransactionByHash?
Yes. eth_getTransactionByHash answered on the SwiftNodes Berachain endpoint when our weekly probe called it through the customer path (2026-10-13).
Which transaction types does Berachain use?
In five recent blocks: 5 × 0x7e (L1-to-L2 deposit (OP Stack)), 2 × 0x0 (legacy), 2 × 0x2 (EIP-1559).
Why does eth_getTransactionByHash return null on Berachain?
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.
Berachain endpoints, live block height and WebSocket status are on the Berachain RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.