Avalanche
Avalanche
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | blockTag | string | Sim | The block whose receipts to fetch. |
| Tipo | Descrição |
|---|---|
| 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.
| Código | Mensagem | Causa |
|---|---|---|
-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.Parâmetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"