Ethereum
Ethereum
Ethereum
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
net_peerCount reports how many peers an Ethereum execution node is currently connected to on the devp2p network. Those peers are how the node receives new mainnet blocks every 12-second slot and learns about pending ETH transactions before they are mined, so the count is a direct read on how well-connected the node is. Call it against https://ethereum.therpc.io/YOUR_API_KEY on chain ID 1 and the answer comes back as a hex-encoded integer, for example "0x1a" for 26 peers. Decode it to base 10 yourself; the JSON-RPC layer does not do that for you.
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| string | Hex-encoded peer count, e.g. `"0x1a"` = 26 peers. |
Try it live in the Ethereum playground.
eth_call or eth_getBalance results are stale.