Ethereum
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Ethereum
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
eth_getBlockReceipts returns the receipt for every transaction in one Ethereum block in a single call. Each receipt carries the execution outcome — status (0x1 success, 0x0 failure), gasUsed and cumulativeGasUsed, the effectiveGasPrice that settled under EIP-1559, any contractAddress created, and the full logs array. Instead of one round-trip per transaction, you ask once by block tag and get the whole set, which is exactly what an indexer wants when ingesting a block on Ethereum mainnet. Point it at https://ethereum.therpc.io/YOUR_API_KEY (chain ID 1, native coin ETH) with a height or named tag.
gasUsed across receipts and multiply by each effectiveGasPrice to compute total fees paid in the block, in ETH.logs for ERC-20 Transfer events (topic0 0xddf252ad...) to advance token balances without a separate log query.status is 0x0 to find reverted transactions in the block and investigate why they failed.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockTag | string | Oui | The block whose receipts to fetch. |
| Type | Description |
|---|---|
| array of object | Array of receipt objects. Each receipt contains: transactionHash, transactionIndex, blockHash, blockNumber, from, to, contractAddress, gasUsed, cumulativeGasUsed, effectiveGasPrice, status ("0x1" success / "0x0" failure), logs, logsBloom, type. |
Try it live in the Ethereum playground.
| Code | Message | Cause |
|---|---|---|
-32602 | Invalid params | Block tag is unrecognised or malformed. |
-32000 | Block not found | The requested block does not exist or has been pruned. |
eth_getTransactionReceipt — one request versus hundreds, with far less latency and fewer compute units billed.Paramètres
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"