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.
A healthy BNB Smart Chain node needs a solid set of peers to pick up freshly minted blocks promptly, since the PoSA chain produces one every few seconds and charges fees in BNB. net_peerCount reports how many peers the node currently holds open connections with, encoded as a hexadecimal integer such as "0x1a" for twenty-six peers. Issue the call to https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 and decode the hex value to read the live total. A node well wired into the BSC gossip mesh keeps that number comfortably above zero so blocks propagate without delay.
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| string | Hex-encoded peer count, e.g. `"0x1a"` = 26 peers. |
Try it live in the BNB Smart Chain playground.