Language

Choose a language

/build/rpc / btc

getaddrmaninfo

getaddrmaninfo Provides information about the node's address manager by returning the number of addresses in the `new` and `tried` tables and their sum for all networks. Result: { (json object) json object with network type as keys "network" : { (json object) the network (ipv4, ipv6, onion, i2p, cjdns, all_networks) "new" : n, (numeric) number of addresses in the new table, which represent potential peers the node has discovered but hasn't yet successfully connected to. "tried" : n, (numeric) number of addresses in the tried table, which represent peers the node has successfully connected to in the past. "total" : n (numeric) total number of addresses in both new/tried tables }, ... } Examples: > bitcoin-cli getaddrmaninfo > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getaddrmaninfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

getaddrmaninfo() → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"getaddrmaninfo","params":[]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

No parameters.

Result

Type:  any

{ (json object) json object with network type as keys "network" : { (json object) the network (ipv4, ipv6, onion, i2p, cjdns, all_networks) "new" : n, (numeric) number of addresses in the new table, which represent potential peers the node has discovered but hasn't yet successfully connected to. "tried" : n, (numeric) number of addresses in the tried table, which represent peers the node has successfully connected to in the past. "total" : n (numeric) total number of addresses in both new/tried tables }, ... }

Source: services/core-node/bcore/src/rpc/net.cpp:1066

C++ symbol: getaddrmaninfo