Network
addnode
addnode "node" "add|remove|onetry"
The addnode
method attempts to add or remove a node from the addnode list, or to make a single attempt to connect to a node.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
clearbanned
clearbanned
The clearbanned
method clears all banned IPs.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
disconnectnode
disconnectnode "node"
The disconnectnode
method instructs the daemon to immediately disconnect from the specified node.
Use getpeerinfo
to determine the result.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getaddednodeinfo
getaddednodeinfo dns ( "node" )
The getaddednodeinfo
method returns information about the given added node, or all added nodes.
If dns
is set to false
, only a list of added nodes is returned. Otherwise, connection information is also provided.
::: tip Nodes added via onetry are not listed here. :::
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getconnectioncount
getconnectioncount
The getconnectioncount
method returns the number of connections to other nodes.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getdeprecationinfo
getdeprecationinfo
The getdeprecationinfo
method returns an object containing current version and deprecation block height.
::: tip This method is applicable only to the DIC main net. :::
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getnettotals
getnettotals
The getnettotals
method returns information about network traffic, including bytes in, bytes out, and current time.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getnetworkinfo
getnetworkinfo
The getnetworkinfo
method returns an object containing various state info regarding p2p networking.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getpeerinfo
getpeerinfo
The getpeerinfo
method returns data about each connected network node as a json array of objects.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listbanned
listbanned
The listbanned
method lists all banned IP addresses and subnets.
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
ping
ping
The ping
method requests that a ping be sent to all other nodes, to measure ping time.
Results provided in getpeerinfo
, pingtime
and pingwait
fields are decimal seconds.
The ping
command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
::: tip Use getpeerinfo to see ping results. :::
Arguments
Response
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
setban
setban "ip(/netmask)" "add|remove" (bantime) (absolute)
The setban
method attempts to add or remove an IP address (and subnet, if indicated) from the banned list.
Arguments
Response
::: tip Use listbanned to view results. :::
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
Last updated