caver.rpc.net
Last updated
Last updated
caver.rpc.net
provides JSON-RPC call with net
name space.
Returns the network identifier (network ID) of the Klaytn Node.
Parameters
Name | Type | Description |
---|---|---|
Return Value
Promise
returns number
Type | Description |
---|---|
Example
Returns true
if the Klaytn Node is actively listening for network connections.
Parameters
Return Value
Promise
returns boolean
Example
Returns the number of peers currently connected to the Klaytn Node.
Parameters
Return Value
Promise
returns string
Example
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
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
Name | Type | Description |
---|---|---|
Type | Description |
---|---|
callback
function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
number
The network id.
callback
function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
boolean
true
when listening, otherwise false
.
callback
function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
string
The number of connected peers in hex.
callback
function
(optional) Optional callback, returns an error object as the first parameter and the result as the second.
object
The number of connected peers by type as well as the total number of connected peers.