caver.rpc.net
caver.rpc.net
provides JSON-RPC call with net
name space.
caver.rpc.net.getNetworkId
Returns the network identifier (network ID) of the Klaytn Node.
Parameters
Return Value
Promise
returns number
Example
caver.rpc.net.isListening
Returns true
if the Klaytn Node is actively listening for network connections.
Parameters
Return Value
Promise
returns boolean
Example
caver.rpc.net.getPeerCount
Returns the number of peers currently connected to the Klaytn Node.
Parameters
Return Value
Promise
returns string
Example
caver.rpc.net.getPeerCountByType
Returns the number of connected nodes by type and the total number of connected nodes with key/value pairs.
Parameters
Return Value
Promise
returns object
Example
Last updated