You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getpeerinfo returns an object, result, containing an object, peers, which is an array: curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"getpeerinfo","params":[],"id":1}' http://127.0.0.1:8820/rpc/v2
The text was updated successfully, but these errors were encountered:
NotoriousPyro
changed the title
getpeerinfo returns a poorly-formatted JSON repsonse in v2.
getpeerinfo returns a poorly-formatted JSON response in v2.
Feb 28, 2018
Similarly to #225, #226 and #234
getpeerinfo returns an object, result, containing an object, peers, which is an array:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"getpeerinfo","params":[],"id":1}' http://127.0.0.1:8820/rpc/v2
It would be easier to interface with the API with less chance of breakage if result was an array in this instance instead:
The text was updated successfully, but these errors were encountered: