EthgoGo Ethereum SDK
GitHub
  • Introduction
    • Overview
    • Eth
    • Net
  • Application Binary Interface
    • Signer
    • Wallet
  • Contract
    • Ethereum Name Service
    • Etherscan
    • 4byte
    • Abigen
    • Version
    • Ens Resolve
    • 4byte
  • Introduction
    • Overview
    • Eth
    • Net
      • #PeerCount
  • Application Binary Interface
    • Signer
    • Wallet
  • Contract
    • Ethereum Name Service
    • Etherscan
    • 4byte
    • Abigen
    • Version
    • Ens Resolve
    • 4byte

Net

PeerCount#

PeerCount returns number of peers currently connected to the client.

count, err := client.Net().PeerCount()

Output:

  • count (uint64): Number of peers connected.
Eth
Application Binary Interface

Powered by Umbracle
Edit this page on GitHub
  • PeerCount