BNB Smart Chain
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
BNB Smart Chain
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.| # | 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 BNB Smart Chain 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 per transaction — make it your default for that job.Paramètres
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"