Package com.klaytn.caver
Class JsonRpc2_0Net
- java.lang.Object
-
- com.klaytn.caver.JsonRpc2_0Net
-
-
Field Summary
Fields Modifier and Type Field Description protected org.web3j.protocol.Web3jService
web3jService
Deprecated.
-
Constructor Summary
Constructors Constructor Description JsonRpc2_0Net(org.web3j.protocol.Web3jService web3jService)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.web3j.protocol.core.Request<?,Bytes>
getNetworkId()
Deprecated.Returns the network identifier (network ID).org.web3j.protocol.core.Request<?,Quantity>
getPeerCount()
Deprecated.Returns the number of peers currently connected to the client.org.web3j.protocol.core.Request<?,KlayPeerCount>
getPeerCountByType()
Deprecated.Returns the number of connected nodes by type and the total number of connected nodes.org.web3j.protocol.core.Request<?,Boolean>
isListening()
Deprecated.Returns true if the client is actively listening for network connections.
-
-
-
Method Detail
-
getNetworkId
public org.web3j.protocol.core.Request<?,Bytes> getNetworkId()
Deprecated.Description copied from interface:Net
Returns the network identifier (network ID).- Specified by:
getNetworkId
in interfaceNet
- Returns:
- Bytes - The integer of the network identifier.
-
isListening
public org.web3j.protocol.core.Request<?,Boolean> isListening()
Deprecated.Description copied from interface:Net
Returns true if the client is actively listening for network connections.- Specified by:
isListening
in interfaceNet
- Returns:
- Boolean - true when listening, otherwise false
-
getPeerCount
public org.web3j.protocol.core.Request<?,Quantity> getPeerCount()
Deprecated.Description copied from interface:Net
Returns the number of peers currently connected to the client.- Specified by:
getPeerCount
in interfaceNet
- Returns:
- Quantity - Integer of the number of connected peers.
-
getPeerCountByType
public org.web3j.protocol.core.Request<?,KlayPeerCount> getPeerCountByType()
Deprecated.Description copied from interface:Net
Returns the number of connected nodes by type and the total number of connected nodes.- Specified by:
getPeerCountByType
in interfaceNet
- Returns:
- KlayPeerCount - The number of connected peers by type as well as the total number of connected peers.
-
-