UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

15 lines 633 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * disconnectnode ( "address" nodeid ) * * Immediately disconnects from the specified peer node. * Strictly one out of 'address' and 'nodeid' can be provided to identify the node. * To disconnect by nodeid, either set 'address' to the empty string, or call using the named 'nodeid' argument only. * */ export function disconnectNode(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'disconnectnode', params: methodParams }, bitcoind); } //# sourceMappingURL=disconnect-node.js.map