Skip to content

RPC cookbook

Ștefan Talpalaru edited this page Dec 4, 2020 · 7 revisions

peers that advertise a single IP address and it's a reserved one

curl -sd '{"jsonrpc":"2.0","method":"peers","params":[],"id":1}' -H 'Content-Type: application/json' localhost:9190 | jq -r '.result.peers[].info | [.agentVersion,.addrs] | flatten | join(" ")' | grep '^\S\+ \S\+$' | grep -E '/127\.|/10\.|/0\.|/192\.168\.'

https://en.wikipedia.org/wiki/Reserved_IP_addresses

Clone this wiki locally