bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines (16 loc) • 968 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../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.
*
*/
export function sendAll(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'sendall', params: methodParams }, bitcoind);
}