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.
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 no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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 | Mensaje | 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.