addconnection "address" "connection_type" v2transport
Open an outbound connection to a specified node. This RPC is for testing only.
Arguments
1. address (string, required) The IP address and port to attempt connecting to.
2. connection_type (string, required) Type of connection to open ("outbound-full-relay", "block-relay-only", "addr-fetch" or "feeler").
3. v2transport (boolean, required) Attempt to connect using BIP324 v2 transport protocol
Result
{ (json object)
"address" : "str", (string) Address of newly added connection.
"connection_type" : "str" (string) Type of connection opened.
}
Examples
> bitcoin-cli addconnection "192.168.0.6:8333" "outbound-full-relay" true
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "addconnection", "params": ["192.168.0.6:8333" "outbound-full-relay" true]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/