pub struct SendallParams {
pub recipients: Vec<Value>,
pub conf_target: Option<i64>,
pub estimate_mode: Option<String>,
pub fee_rate: Option<Value>,
pub options: Option<Value>,
}Expand description
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.
Fields§
§recipients: Vec<Value>The sendall destinations. Each address may only appear once. Optionally some recipients can be specified with an amount to perform payments, but at least one address must appear without a specified amount.
conf_target: Option<i64>Confirmation target in blocks
estimate_mode: Option<String>The fee estimate mode, must be one of (case insensitive): unset, economical, conservative unset means no mode set (economical mode is used if the transaction is replaceable; otherwise, conservative mode is used). economical estimates use a shorter time horizon, making them more responsive to short-term drops in the prevailing fee market. This mode potentially returns a lower fee rate estimate. conservative estimates use a longer time horizon, making them less responsive to short-term drops in the prevailing fee market. This mode potentially returns a higher fee rate estimate.
fee_rate: Option<Value>Specify a fee rate in sat/vB.
options: Option<Value>