Avalanche
Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
net_peerCount returns the number of peers an Avalanche C-Chain node is currently connected to, encoded as a hex integer — for example "0x1a" means 26 peers. Peer count is a quick proxy for how well a node is meshed into the network and able to receive blocks and broadcast transactions. On the C-Chain — the EVM chain where AVAX pays for gas, secured by Snowman/Avalanche consensus — a node with healthy peering keeps pace with the chain's one-to-two-second block cadence. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a).
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| string | Hex-encoded peer count, e.g. `"0x1a"` = 26 peers. |
Try it live in the Avalanche playground.
https://avalanche.therpc.io/YOUR_API_KEY, the returned count reflects a backend node's own peering, not anything specific to your request or your traffic.