Base
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Base
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_getBlockReceipts returns every transaction receipt in a given block in one call, instead of making you fetch them one hash at a time. Base is Coinbase's OP Stack rollup that uses ETH for gas, and its consumer and DeFi apps pack blocks with events, so a single batched receipt fetch is far cheaper than per-transaction calls. Point it at https://base.therpc.io/YOUR_API_KEY (chain ID 8453) with a block number or tag, and you get an array of receipts carrying status, gas used, effective gas price, and the full log set for each transaction in that L2 block.
Transfer logs in a block — USDC and other Base tokens — to keep balance tables in sync.status of "0x0") in a block for error analysis or alerting.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | blockTag | string | Sí | The block whose receipts to fetch. |
| Tipo | Descripción |
|---|---|
| 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 Base playground.
| Código | Mensaje | 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 calls — always prefer this for block-level receipt ingestion on Base.Parámetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"