UNPKG

bitcoin-cli-ts

Version:

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

14 lines (13 loc) 489 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * addconnection "address" "connection_type" v2transport * * Open an outbound connection to a specified node. This RPC is for testing only. * */ export function addConnection(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'addconnection', params: methodParams }, bitcoind); }