bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 650 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* 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) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'disconnectnode', params: methodParams }, bitcoind);
}