curl -X POST --data '{"jsonrpc":"2.0", "method":"net_dumpPeers", "id":21 }'
Copied!
Console Example
1
> net.dumpPeers()
Copied!
Returns:
Boolean
Output:
1
{
2
"id":21,
3
"jsonrpc":"2.0",
4
"result":true
5
}
Copied!
net_broadcasters
Returns the addresses of peers that have been selected by the peer as recipients of messages (transactions, blocks, addresses e.t.c) that need to be broadcast or forwarded. These broadcasters are separated into two categories namely:
Regular broadcasters
Random broadcasters
Regular broadcasters are peers that are actively connected and known by the node. They are acquainted and compatible with the node. Random broadcasters may not be known or compatible with the node. They are mostly used for broadcasting addresses to aid the network's discovery protocol.
Parameters
Curl Example:
1
curl -X POST --data '{"jsonrpc":"2.0", "method":"net_broadcasters", "id":21 }'