eth_getTransactionReceipt on Polygon
Everything below was measured on 2026-10-13 by calling eth_getTransactionReceipt on Polygon 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 Polygon: what we measured
| Fields | 14 |
|---|---|
| Receipt for an unknown hash | null |
| Size of the sample receipt | 2.9 KB |
Reading the fee and fields
The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Polygon 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 Polygon receipt
As our endpoint returned it; logs collapsed to a count and long hex values shortened.
{
"blockHash": "0x098e3cf197520995c465edf637af99571e2d14bdb95e4baefc5fcdd1405eb36c",
"blockNumber": "0x5b097ee",
"contractAddress": null,
"cumulativeGasUsed": "0x5208",
"effectiveGasPrice": "0xfc99250c4e",
"from": "0x501c43b2510da0ca6572e05b479e530ce3985646",
"gasUsed": "0x5208",
"logs": "2 logs",
"logsBloom": "0x0000000000000000…(256 bytes)",
"status": "0x1",
"to": "0x16ea50379dfca736efb9cd4afda6cf2cbd4b8e28",
"transactionHash": "0x9ed51731810c4a6402bdaa9061940d87f590ba18d85aa546c0a91ad820806e25",
"transactionIndex": "0x0",
"type": "0x2"
}Example request
curl -s https://rpc.swiftnodes.io/rpc/polygon?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x9ed51731810c4a6402bdaa9061940d87f590ba18d85aa546c0a91ad820806e25"]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/polygon?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 Polygon
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionByHashSupported
- 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_transactionNot available
eth_getTransactionReceipt on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- 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
- 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 Polygon support eth_getTransactionReceipt?
Yes. eth_getTransactionReceipt answered on the SwiftNodes Polygon endpoint when our weekly probe called it through the customer path (2026-10-13).
How do I get the total fee of a transaction on Polygon?
gasUsed × effectiveGasPrice from the receipt.
Why is the Polygon receipt null?
The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.
Polygon endpoints, live block height and WebSocket status are on the Polygon RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.