eth_getTransactionReceipt on Linea
Everything below was measured on 2026-11-29 by calling eth_getTransactionReceipt on Linea through the same endpoint customers use, and is re-measured weekly.
What eth_getTransactionReceipt does
Returns the outcome of a mined transaction: status (1 success, 0 reverted), gas used, the effective gas price, the logs it emitted and any contract it created. It returns null until the transaction is in a block.
eth_getTransactionReceipt on Linea: what we measured
| Fields | 14 |
|---|---|
| Receipt for an unknown hash | null |
| Size of the sample receipt | 5.3 KB |
Reading the fee and fields
The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Linea receipts carry no separate L1 or data fee field.
A hash the node has not seen returns null, not an error, so poll until it is non-null (viem's waitForTransactionReceipt does this) and give up after a timeout.
A real Linea receipt
As our endpoint returned it; logs collapsed to a count and long hex values shortened.
{
"blockHash": "0x5270150911f3f961b3bd0422f5c21d4b4cbbcf27337e5941eed7bd2560d4715c",
"blockNumber": "0x1f39124",
"contractAddress": null,
"cumulativeGasUsed": "0x427ba",
"effectiveGasPrice": "0x860cc0f",
"from": "0x433713df632ac453efd07f7ae750a5db9d5aabe6",
"gasUsed": "0x427ba",
"logs": "7 logs",
"logsBloom": "0x0002041000000000…(256 bytes)",
"status": "0x1",
"to": "0x0000000071727de22e5e9d8baf0edac6f37da032",
"transactionHash": "0xcc58304641b5a35a210445dd1f68c10104317fbef6f1388155ba8bf01fe37ecb",
"transactionIndex": "0x0",
"type": "0x2"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/linea?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0xcc58304641b5a35a210445dd1f68c10104317fbef6f1388155ba8bf01fe37ecb"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/linea?key=YOUR_API_KEY"),
});
const receipt = await client.waitForTransactionReceipt({ hash, timeout: 60_000 });
if (receipt.status !== "success") throw new Error("reverted");
const total = receipt.gasUsed * receipt.effectiveGasPrice;Other methods on Linea
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionByHashSupported
- 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_getTransactionReceipt on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Scroll
- zkSync Era
- Mantle
- Gnosis
- Celo
- Berachain
- 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 Linea support eth_getTransactionReceipt?
Yes. eth_getTransactionReceipt answered on the SwiftNodes Linea endpoint when our weekly probe called it through the customer path (2026-11-29).
How do I get the total fee of a transaction on Linea?
gasUsed × effectiveGasPrice from the receipt.
Why is the Linea receipt null?
The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.
Linea endpoints, live block height and WebSocket status are on the Linea RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.