addpeeraddress (hidden command)

Bitcoin Core 26.0 RPC

addpeeraddress "address" port ( tried )

Add the address of a potential peer to the address manager. This RPC is for testing only.


1. address    (string, required) The IP address of the peer
2. port       (numeric, required) The port of the peer
3. tried      (boolean, optional, default=false) If true, attempt to add the peer to the tried addresses table


{                            (json object)
  "success" : true|false     (boolean) whether the peer address was successfully added to the address manager


> bitcoin-cli addpeeraddress "" 8333 true
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "addpeeraddress", "params": ["", 8333, true]}' -H 'content-type: text/plain;'