public class Net
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.web3j.protocol.Web3jService |
web3jService |
Constructor and Description |
---|
Net(org.web3j.protocol.Web3jService web3jService) |
Modifier and Type | Method and Description |
---|---|
org.web3j.protocol.core.Request<?,Bytes> |
getNetworkID()
Returns the network identifier (network ID).
|
org.web3j.protocol.core.Request<?,Quantity> |
getPeerCount()
Returns the number of peers currently connected to the client.
|
org.web3j.protocol.core.Request<?,KlayPeerCount> |
getPeerCountByType()
Returns the number of connected nodes by type and the total number of connected nodes.
|
org.web3j.protocol.core.Request<?,Boolean> |
isListening()
Returns true if the client is actively listening for network connections.
|
public org.web3j.protocol.core.Request<?,Bytes> getNetworkID()
public org.web3j.protocol.core.Request<?,Boolean> isListening()
public org.web3j.protocol.core.Request<?,Quantity> getPeerCount()
public org.web3j.protocol.core.Request<?,KlayPeerCount> getPeerCountByType()