Avalanche
Avalanche
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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).
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.