UNPKG

bitcoin-cli-ts

Version:

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

16 lines (15 loc) 613 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * getbalance ( "dummy" minconf include_watchonly avoid_reuse ) * * Returns the total available balance. * The available balance is what the wallet considers currently spendable, and is * thus affected by options which limit spendability such as -spendzeroconfchange. * */ export function getBalance(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'getbalance', params: methodParams }, bitcoind); }