bitcoind.app
CommandsGuidesContact ↗
Home/Network/addnode
Network

addnode

Attempts to add or remove a node from the addnode list, or try a connection once.

Parameters

nodestringREQUIRED
The node IP:port
commandstringREQUIRED
"add", "remove", or "onetry"

Returns

nullnull on success

Code Examples

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

Example Response

null
← Previous
submitheader
Next →
clearbanned

More Network Commands

clearbanneddisconnectnodegetaddednodeinfogetconnectioncountgetnettotalsgetnetworkinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗