UNPKG

bitcoin-cli-ts

Version:

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

21 lines (20 loc) 1.15 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.sendAll = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * sendall ["address",{"address":amount,...},...] ( conf_target "estimate_mode" fee_rate options ) * * EXPERIMENTAL warning: this call may be changed in future releases. * Spend the value of all (or specific) confirmed UTXOs and unconfirmed change in the wallet to one or more recipients. * Unconfirmed inbound UTXOs and locked UTXOs will not be spent. Sendall will respect the avoid_reuse wallet flag. * If your wallet contains many small inputs, either because it received tiny payments or as a result of accumulating change, consider using `send_max` to exclude inputs that are worth less than the fees needed to spend them. * */ function sendAll(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'sendall', params: methodParams }, bitcoind); } exports.sendAll = sendAll;