Base
Base
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
net_peerCount returns how many peers a Base node is currently connected to, encoded as a hex integer (for example "0x1a" is 26 peers). Base is Coinbase's OP Stack optimistic rollup that settles to Ethereum with gas paid in ETH, and a node leans on its peer set to receive newly sequenced blocks and gossip transactions; a healthy peer count is what keeps it in step with the ~2-second block cadence. Query it at https://base.therpc.io/YOUR_API_KEY on chain ID 8453 (hex 0x2105) and decode the hex to a decimal count.
Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| string | Hex-encoded peer count, e.g. `"0x1a"` = 26 peers. |
Try it live in the Base playground.
https://base.therpc.io/YOUR_API_KEY returns the peer count of whichever backend Base node served your request, not a number tied to your account or session — so the value reflects the provider's infrastructure, not yours.