bitcoind.app
CommandsGuidesContact ↗
Home/Network/addpeeraddress
Network

addpeeraddress

Add the address of a peer to the address manager to be tried during connection attempts. Primarily for testing.

Parameters

addressstringREQUIRED
The IP address of the peer
portnumberREQUIRED
The port of the peer
triedbooleanoptional
Add to tried table instead of new. Default: false

Returns

objectObject with success status

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"addpeeraddress","params":["192.168.0.6",8333]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "success": true
}
← Previous
scantxoutset
Next →
getzmqnotifications

More Network Commands

addnodeclearbanneddisconnectnodegetaddednodeinfogetconnectioncountgetnettotals

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗