eth_getTransactionReceipt on zkSync Era
Everything below was measured on 2026-11-29 by calling eth_getTransactionReceipt on zkSync Era 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 zkSync Era: what we measured
| Fields | 17 (3 beyond the Ethereum set) |
|---|---|
| Receipt for an unknown hash | null |
| Size of the sample receipt | 3.8 KB |
Reading the fee and fields
Beyond the Ethereum fields, zkSync Era receipts carry 3 more. l1BatchNumber: the L1 batch that includes the block or transaction; l1BatchTxIndex: the transaction's position inside its L1 batch; l2ToL1Logs: messages from L2 to L1 emitted by the transaction.
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 zkSync Era receipt
As our endpoint returned it; logs collapsed to a count and long hex values shortened.
{
"blockHash": "0xf7e5bfeef9d18d830c79420522973c1a70d2211c487bbe8b61dd76a4ce2a7c1a",
"blockNumber": "0x45c15f2",
"contractAddress": null,
"cumulativeGasUsed": "0x0",
"effectiveGasPrice": "0x2b275d0",
"from": "0x4e5bc1cd2c421ecfef65395b3237f90a97178c55",
"gasUsed": "0x1f0f0",
"l1BatchNumber": null,
"l1BatchTxIndex": null,
"l2ToL1Logs": [],
"logs": "4 logs",
"logsBloom": "0x0000000000040000…(256 bytes)",
"status": "0x1",
"to": "0x5a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e",
"transactionHash": "0x645b62c7596db6ad9e00ca9fdd33fd5c9ea5cac2d50d69f808a60488d6412400",
"transactionIndex": "0x0",
"type": "0x0"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/zksync?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x645b62c7596db6ad9e00ca9fdd33fd5c9ea5cac2d50d69f808a60488d6412400"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/zksync?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 zkSync Era
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionByHashSupported
- eth_callSupported
- eth_estimateGasNot measured
- eth_gasPriceSupported
- eth_feeHistorySupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_getProofNot available
- eth_createAccessListNot available
- debug_traceCallSupported
- trace_blockNot available
- trace_transactionNot available
eth_getTransactionReceipt on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Linea
- Scroll
- 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 zkSync Era support eth_getTransactionReceipt?
Yes. eth_getTransactionReceipt answered on the SwiftNodes zkSync Era 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 zkSync Era?
gasUsed × effectiveGasPrice from the receipt.
Why is the zkSync Era receipt null?
The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.
zkSync Era endpoints, live block height and WebSocket status are on the zkSync Era RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.