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.
A BSC block closes about every three seconds, and on a busy one that can mean a few hundred transactions packed with BEP-20 transfers and DeFi calls. trace_block hands you the call-tree trace for all of them at once. Pass a height in hex or a tag like latest; you get back a single flat array where each entry names a call, create, or self-destruct action and carries the transactionPosition of the transaction that produced it. Point the request at chain ID 56 on https://bsc.therpc.io/YOUR_API_KEY. This is the block-wide view, tuned for fund-flow and MEV work rather than opcode-by-opcode debugging. It is heavy, and it only runs against a trace-enabled archive node.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockParameter | string | Oui | Block whose transactions to trace. |
| Type | Description |
|---|---|
| array | Flat array of all trace objects across all transactions in the block. Each object has the same shape as individual entries from trace_transaction, with `transactionPosition` indicating which transaction it belongs to. |
Try it live in the BNB Smart Chain playground.
| Code | Message | Cause |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client. |
-32602 | Invalid params | blockParameter is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or trace archive data is unavailable. |
pending tag for production data. Those traces can still change before the block finalizes.Paramètres
hex block number or "latest" | "earliest" | "pending"