The Network API lists the amount of nodes connecting within a given timeframe and provides a list of all the nodes which have connected with the API node.
network/verb/noun
The minimum required components of the URI are:
network/verb/noun
Filtering, sorting, operators or queries are not supported for this API.
The following verbs are currently supported by this API command-set:
list
- Returns a list of the nodes seen by the API node.
The following nouns are supported for this API command-set:
[node
] - A computer running the Nexus wallet and connected to the network.
Returns a list of the nodes data which have tried to connect to the API node.
network/list/noun
This command supports the nodes
noun.
{
"result": [
{
"address": "165.56.208.5",
"lastseen": 1680462906,
"latency": 170
},
{
"address": "67.129.172.102",
"lastseen": 1680459481,
"latency": 199
},
],
"info": {
"method": "network/list",
"status": "active",
"address": "117.192.117.207:49743",
"latency": "2.997864 ms"
}
}
address
: The IP address of the node.
lastseen
: The last seen unix timestamp for the node.
latency
: The latency of the node.
To count all the nodes seen by the API node:
network/list/nodes/address/count limit=none
To count the nodes seen by the API node in the last 24 hours:
network/list/nodes/address/count limit=none where='results.lastseen>since(`24 hours`);'
To get a list of first 100 nodes seen in the last 24 hours sorted by lastseen
in ascending order.
network/list/nodes/ limit=100 sort=lastseen order=asc where='results.lastseen>since(`24 hours`);'