PeerCount
Returns the number of p2p peers as reported by the net_peerCount method.
func PeerCount() (count uint64, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, _ := alchemy.Core.PeerCount()
}
Returns the number of p2p peers as reported by the net_peerCount method.
func PeerCount() (count uint64, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
res, _ := alchemy.Core.PeerCount()
}