Avalanche
Avalanche
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Avalanche
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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).
Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| 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.