BNB Smart Chain
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_getBlockReceipts hands back the receipt for every transaction in one BNB Smart Chain block from a single request. Each receipt carries status flags, gas used, effective gas price (in BNB), and the full event logs for that transaction. BSC is the BNB-fee EVM whose validators pack blocks roughly every three seconds, so a busy slot can hold hundreds of receipts. One bulk fetch beats firing a separate request per transaction. Aim the call at https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 and the node streams the whole block's receipts as one array.
status is "0x0" to surface reverts for error triage.| # | 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 BNB Smart Chain 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 per transaction — make it your default for that job.Parámetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"