BNB Smart Chain
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
BNB Smart Chain
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Reach for debug_traceBlockByNumber when you think in heights rather than hashes. You name a block by its hex number or by a tag like latest, earliest, or pending, and the node returns an opcode-level trace of every transaction it contains. That addressing fits the common jobs: walking a contiguous range of heights, or grabbing whatever block sits at the tip right now. BNB Smart Chain (BSC) mints those blocks roughly every three seconds and charges gas in BNB, so the tip moves fast. Point the call at chain ID 56 via https://bsc.therpc.io/YOUR_API_KEY. A full-block replay is heavy work, and it needs a debug-enabled archive node to reach back past the recent window.
callTracer, mapping how value moves transaction to transaction.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | blockNumber | string | Sim | Block to trace. |
| 2 | options | object | Não | Same tracer configuration object as debug_traceTransaction. |
| Tipo | Descrição |
|---|---|
| array | Array of per-transaction trace results in block order. Each element has the same shape as debug_traceTransaction output for the active tracer. |
Try it live in the BNB Smart Chain playground.
| Código | Mensagem | Causa |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Block number is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or archive state is unavailable for that number. |
latest tag works but races the three-second cadence, so the height you trace can advance between request and response, and lower tiers may rate-limit the call.Parâmetros
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.