List of supported RPC methods for w3.Client in the net-namespace.
Listening returns whether the client is actively listening for network connections.
var listening bool
client.Call(
net.Listening().Returns(&listening),
)PeerCount returns the number of peers connected to the node.
var peerCount int
client.Call(
net.PeerCount().Returns(&peerCount),
)Version returns the network ID (e.g. 1 for mainnet).
var version int
client.Call(
net.Version().Returns(&version),
)