Getavalanchepeerinfo

getavalanchepeerinfo

Returns data about each connected avalanche peer as a json array of objects.

Result:
[                       (json array)
  {                     (json object)
    "peerid" : n,       (numeric) The peer id
    "proof" : "hex",    (string) The avalanche proof used by this peer
    "nodes" : [         (json array)
      n,                (numeric) Node id, as returned by getpeerinfo
      ...
    ]
  },
  ...
]

Examples:
> bitcoin-cli getavalanchepeerinfo 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getavalanchepeerinfo", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/