#
Network Commands
#
addnode
Category: Network | Version: v1.2.14+
Attempts to add or remove a node from the addnode list, or tries a connection to a node once.
Syntax
addnode "node" "add|remove|onetry"
Parameters
Result
No return value on success.
Examples
## Add a node to the addnode list
verus -testnet addnode "192.168.0.6:18842" "add"
## Try connecting to a node once
verus -testnet addnode "192.168.0.6:18842" "onetry"
## Remove a node from the list
verus -testnet addnode "192.168.0.6:18842" "remove"
Common Errors
Related Commands
— View added nodesgetaddednodeinfo — Disconnect a specific nodedisconnectnode — View connected peersgetpeerinfo
Notes
- Nodes added with
addwill be persistently reconnected to. onetryattempts a single connection without adding to the persistent list.- Use
getaddednodeinfoto verify added nodes.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
clearbanned
Category: Network | Version: v1.2.14+
Clear all banned IPs from the ban list.
Syntax
clearbanned
Parameters
None.
Result
No return value on success.
Examples
verus -testnet clearbanned
Common Errors
None typical — this command always succeeds.
Related Commands
— Add or remove an IP from the ban listsetban — List all banned IPslistbanned
Notes
- Removes all entries from the ban list at once.
- Use
listbannedbefore running to verify what will be cleared.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
disconnectnode
Category: Network | Version: v1.2.14+
Immediately disconnects from the specified node.
Syntax
disconnectnode "node"
Parameters
Result
No return value on success.
Examples
verus -testnet disconnectnode "192.168.0.6:18842"
Common Errors
Related Commands
— Add/remove nodes from the connection listaddnode — List connected peers to find node addressesgetpeerinfo
Notes
- The disconnection is immediate.
- The node may reconnect if it's in the addnode list or connects inbound.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getaddednodeinfo
Category: Network | Version: v1.2.14+
Returns information about added nodes. If dns is false, only a list of added nodes is returned; otherwise connected information is also available.
Syntax
getaddednodeinfo dns ( "node" )
Parameters
Result
[
{
"addednode": "192.168.0.201",
"connected": true|false,
"addresses": [
{
"address": "192.168.0.201:8233",
"connected": "outbound"
}
]
}
]
Examples
## Query all added nodes (no nodes added in this example)
verus -testnet getaddednodeinfo true
Testnet output:
[
]
Common Errors
Related Commands
— Add nodes to the listaddnode — View all connected peersgetpeerinfo
Notes
- Only nodes added via
addnode "add"appear here.onetrynodes are not listed. - Empty result means no nodes have been manually added.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getconnectioncount
Category: Network | Version: v1.2.14+
Returns the number of connections to other nodes.
Syntax
getconnectioncount
Parameters
None.
Result
Examples
verus -testnet getconnectioncount
Testnet output:
5
Common Errors
None typical.
Related Commands
— Detailed info about each connectiongetpeerinfo — General network state infogetnetworkinfo
Notes
- Includes both inbound and outbound connections.
- A count of 0 may indicate network issues or that the node is still starting up.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getdeprecationinfo
Category: Network | Version: v1.2.14+
Returns an object containing the current version and deprecation block height. Applicable only on mainnet.
Syntax
getdeprecationinfo
Parameters
None.
Result
{
"version": 2000753,
"subversion": "/MagicBean:2.0.7-3/",
"deprecationheight": 4453160
}
Examples
verus -testnet getdeprecationinfo
Testnet output:
{
"version": 2000753,
"subversion": "/MagicBean:2.0.7-3/",
"deprecationheight": 4453160
}
Common Errors
None typical.
Related Commands
getinfo— General server information — Network-specific infogetnetworkinfo
Notes
- The deprecation height is the block at which this daemon version will automatically shut down, forcing operators to upgrade.
- On testnet, the deprecation height still applies but may differ from mainnet.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getnettotals
Category: Network | Version: v1.2.14+
Returns information about network traffic, including bytes in, bytes out, and current time.
Syntax
getnettotals
Parameters
None.
Result
{
"totalbytesrecv": 19372173,
"totalbytessent": 8385281,
"timemillis": 1770450604273
}
Examples
verus -testnet getnettotals
Testnet output:
{
"totalbytesrecv": 19372173,
"totalbytessent": 8385281,
"timemillis": 1770450604273
}
Common Errors
None typical.
Related Commands
— General network state infogetnetworkinfo — Per-peer traffic statsgetpeerinfo
Notes
- Values are cumulative since daemon start.
- Useful for monitoring bandwidth usage.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getnetworkinfo
Category: Network | Version: v1.2.14+
Returns an object containing various state info regarding P2P networking.
Syntax
getnetworkinfo
Parameters
None.
Result
Examples
verus -testnet getnetworkinfo
Testnet output:
{
"version": 2000753,
"subversion": "/MagicBean:2.0.7-3/",
"protocolversion": 170010,
"localservices": "0000000000000005",
"timeoffset": 0,
"connections": 5,
"networks": [
{
"name": "ipv4",
"limited": false,
"reachable": true,
"proxy": "",
"proxy_randomize_credentials": false
},
{
"name": "ipv6",
"limited": false,
"reachable": true,
"proxy": "",
"proxy_randomize_credentials": false
},
{
"name": "onion",
"limited": true,
"reachable": false,
"proxy": "",
"proxy_randomize_credentials": false
}
],
"relayfee": 0.00000100,
"localaddresses": [],
"warnings": ""
}
Common Errors
None typical.
Related Commands
— Detailed per-peer infogetpeerinfo — Just the connection countgetconnectioncount — Traffic statsgetnettotals
Notes
- The
networksarray shows reachability for ipv4, ipv6, and onion (Tor). localservicesis a bitmask of services this node offers.- Empty
localaddressesmeans the node is not advertising a public address.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
getpeerinfo
Category: Network | Version: v1.2.14+
Returns data about each connected network node as a JSON array of objects.
Syntax
getpeerinfo
Parameters
None.
Result
Array of peer objects with the following fields:
Examples
verus -testnet getpeerinfo
Testnet output (first peer):
{
"id": 7,
"addr": "135.181.184.117:18842",
"addrlocal": "75.159.130.74:9527",
"services": "0000000000000005",
"tls_established": true,
"tls_verified": false,
"lastsend": 1770450600,
"lastrecv": 1770450599,
"bytessent": 706304,
"bytesrecv": 2011655,
"conntime": 1770408356,
"timeoffset": 0,
"pingtime": 0.168548,
"version": 170010,
"subver": "/MagicBean:2.0.73/",
"inbound": false,
"startingheight": 926330,
"banscore": 0,
"synced_headers": 926998,
"synced_blocks": 926998,
"inflight": [],
"addr_processed": 178,
"addr_rate_limited": 0,
"whitelisted": false
}
Common Errors
None typical.
Related Commands
— Quick connection countgetconnectioncount — Add/remove nodesaddnode — Disconnect a peerdisconnectnode
Notes
tls_establishedandtls_verifiedshow TLS connection security status.banscoreaccumulates as a peer misbehaves; at threshold (default 100), the peer is banned.pingtimeis measured in decimal seconds.- Use peer
addrvalues withdisconnectnodeoraddnode.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
listbanned
Category: Network | Version: v1.2.14+
List all banned IPs/Subnets.
Syntax
listbanned
Parameters
None.
Result
Array of banned entries. Empty array if no bans exist.
Examples
verus -testnet listbanned
Testnet output:
[]
Common Errors
None typical.
Related Commands
— Add or remove banssetban — Clear all bansclearbanned
Notes
- Each entry includes the banned IP/subnet, ban creation time, and expiry time.
- Empty result means no IPs are currently banned.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
ping
Category: Network | Version: v1.2.14+
Requests that a ping be sent to all other nodes, to measure ping time. Results are available in getpeerinfo via pingtime and pingwait fields.
Syntax
ping
Parameters
None.
Result
No return value (void). This is an asynchronous command.
Examples
## Send ping to all peers
verus -testnet ping
## Then check results
verus -testnet getpeerinfo
## Look for "pingtime" field in each peer's output
Common Errors
None typical.
Related Commands
— View ping results ingetpeerinfopingtimeandpingwaitfields
Notes
- Asynchronous:
pingreturns immediately with no output. The actual ping measurement happens in the background. - Results are available via
getpeerinfo— checkpingtime(last completed ping) andpingwait(pending ping). - The ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
- Values are in decimal seconds.
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2
#
setban
Category: Network | Version: v1.2.14+
Attempts to add or remove an IP/Subnet from the banned list.
Syntax
setban "ip(/netmask)" "add|remove" (bantime) (absolute)
Parameters
Result
No return value on success.
Examples
## Ban a single IP for 24 hours (default)
verus -testnet setban "192.168.0.6" "add"
## Ban an IP for 1 day explicitly
verus -testnet setban "192.168.0.6" "add" 86400
## Ban a subnet
verus -testnet setban "192.168.0.0/24" "add"
## Remove a ban
verus -testnet setban "192.168.0.6" "remove"
Common Errors
Related Commands
— List all banned IPslistbanned — Clear all bansclearbanned
Notes
- Default ban duration is 24 hours unless overridden.
- The
-bantimestartup argument sets the default ban duration globally. - Supports CIDR notation for subnet bans (e.g.,
/24).
Tested On
- VRSCTEST — Block height: 926996 | Version: v1.2.14-2