Avalanche
Avalanche
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_getBlockReceipts returns every transaction receipt for an Avalanche C-Chain block in a single call — each with its logs, gas used, effective gas price (in AVAX wei), and success/failure status. For indexers it collapses what would otherwise be one request per transaction into one round trip, which matters on a chain that finalizes blocks every one to two seconds. Pass a block tag to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114) and get the whole block's receipts back as an array.
Transfer logs in a block to update token balances for assets like USDC or WAVAX.status "0x0") in a block for error analysis and alerting.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockTag | string | 是 | The block whose receipts to fetch. |
| 类型 | 描述 |
|---|---|
| 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 Avalanche playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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 — always prefer this for block-level receipt ingestion on the C-Chain.参数
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"