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.
BNB Smart Chain mints a block roughly every three seconds under Proof-of-Staked-Authority consensus, settling BNB transfers and BEP-20 token activity. A node has to keep pace with that head or it falls behind. eth_syncing tells you which side of the line a given node sits on. Point your client at https://bsc.therpc.io/YOUR_API_KEY against chain ID 56 and the call comes back in one of two shapes. A fully caught-up node answers with a flat false. A node still replaying history answers with a progress object that carries startingBlock, currentBlock, and highestBlock.
currentBlock against highestBlock.false.currentBlock over successive three-second intervals and watching whether it advances.Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| boolean | object | false when the node is fully synced. When syncing, returns an object with at minimum: startingBlock (hex), currentBlock (hex), highestBlock (hex). Additional fields vary by client (e.g. Geth includes snap-sync progress counters; Erigon includes syncStage/syncProgress). |
Try it live in the BNB Smart Chain playground.
| Código | Mensagem | Causa |
|---|---|---|
-32603 | Internal error | Node cannot determine sync state (e.g. no peers connected). |
false during specific sync phases even before they are truly caught up, so never treat a single false as proof the node holds the latest BNB Smart Chain head.