Arbitrum One
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Arbitrum One
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
net_peerCount returns the number of peers currently connected to the node as a hex-encoded integer — for example "0x1a" for 26 peers. On Arbitrum One (chain ID 42161), the Optimistic Rollup that settles to Ethereum and meters gas in ETH, Nitro nodes connect to peers to receive the sequencer's transaction feed and propagate L2 blocks, so the peer count is a quick gauge of how well a node is wired into the network. Query it against https://arbitrum.therpc.io/YOUR_API_KEY with no parameters; remember to convert the hex string to decimal before using it in dashboards or thresholds.
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 Arbitrum One playground.