getavalanchepeerinfo ( "proofid" )
Returns data about an avalanche peer as a json array of objects. If no proofid is provided, returns data about all the peers.
Arguments:
1. proofid (string, optional) The hex encoded avalanche proof identifier.
Result:
[ (json array)
{ (json object)
"avalanche_peerid" : n, (numeric) The avalanche internal peer identifier
"availability_score" : n, (numeric) The agreggated availability score of this peer's nodes
"proofid" : "hex", (string) The avalanche proof id used by this peer
"proof" : "hex", (string) The avalanche proof used by this peer
"nodecount" : n, (numeric) The number of nodes for this peer
"node_list" : [ (json array)
n, (numeric) Node id, as returned by getpeerinfo
...
]
},
...
]
Examples:
> bitcoin-cli getavalanchepeerinfo
> bitcoin-cli getavalanchepeerinfo "proofid"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getavalanchepeerinfo", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getavalanchepeerinfo", "params": ["proofid"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/