bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
18 lines (17 loc) • 798 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* addnode "node" "command" ( v2transport )
*
* Attempts to add or remove a node from the addnode list.
* Or try a connection to a node once.
* Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be
* full nodes/support SegWit as other outbound peers are (though such peers will not be synced from).
* Addnode connections are limited to 8 at a time and are counted separately from the -maxconnections limit.
*
*/
export function addNode(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'addnode', params: methodParams }, bitcoind);
}