module Web3::NetCalls

Public Instance Methods

net_listening() click to toggle source

See github.com/ethereum/wiki/wiki/JSON-RPC#net_listening

# File net_calls.rb, line 16
def net_listening()
response = do_request("net_listening")
response["result"]
end
net_peerCount() click to toggle source

See github.com/ethereum/wiki/wiki/JSON-RPC#net_peercount

# File net_calls.rb, line 10
def net_peerCount()
response = do_request("net_peerCount")
to_decimal response["result"]
end
net_version() click to toggle source

See github.com/ethereum/wiki/wiki/JSON-RPC#net_version

# File net_calls.rb, line 4
def net_version()
response = do_request("net_version")
response["result"]
end