@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines • 774 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'addnode', params: methodParams }, bitcoind);
}
//# sourceMappingURL=add-node.js.map