addpeeraddress (hidden command)

Bitcoin Core 28.0 RPC

addpeeraddress "address" port ( tried )

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

Arguments

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

Result

{                            (json object)
  "success" : true|false,    (boolean) whether the peer address was successfully added to the address manager table
  "error" : "str"            (string, optional) error description, if the address could not be added
}

Examples

> bitcoin-cli addpeeraddress "1.2.3.4" 8333 true
> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "addpeeraddress", "params": ["1.2.3.4", 8333, true]}' -H 'content-type: application/json' http://127.0.0.1:8332/