UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

23 lines (19 loc) 508 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetConnectionCountParams = { bitcoind: Bitcoind } /** * getconnectioncount * * Returns the number of connections to other nodes. * */ export function getConnectionCount(params: GetConnectionCountParams) { const { bitcoind, ...methodParams } = params return request( { method: 'getconnectioncount', params: methodParams }, bitcoind ) }