UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

16 lines 944 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * 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. * */ export function sendAll(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'sendall', params: methodParams }, bitcoind); } //# sourceMappingURL=send-all.js.map