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) DEPRECATED: The agreggated availability score of this peer's nodes. This score is no longer computed starting with version 0.30.12 and is always 0. This field is only returned if the -deprecatedrpc=peer_availability_score option is enabled.
"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/