sendall

Spend the value of all (or specific) confirmed UTXOs 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.

Argument #1-recipients

Type: json array, Required

Description: 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.

     [
       "address",              (string, required) A bitcoin address which receives an equal share of the unspecified amount.
       {                       (json object)
         "address": amount,    (numeric or string, required) A key-value pair. The key (string) is the bitcoin address, the value (float or string) is the amount in BTC
         ...
       },
       ...
     ]

Argument #2-conf_target

Type: number (int), Optional
Default=wallet -txconfirmtarget

Description: Confirmation target in blocks

Argument #3-estimate_mode

Type: string, Optional
Default="unset"

Description: The fee estimate mode, must be one of (case insensitive): "unset" "economical" "conservative"

Argument #4-fee_rate

Type: numeric or string, Optional

Description: Specify a fee rate in sat/vB.

Argument #5-options

Type: json object, Optional

Description: Options object that can be used to pass named arguments, listed below. Only solvable inputs can be used. Watch-only destinations are solvable if the public key and/or output script was imported, e.g. with 'importpubkey' or 'importmulti' with the 'pubkeys' or 'desc' field. "unset" "economical" "conservative" Allows this transaction to be replaced by a transaction with higher fees Used for fee estimation during coin selection. "scripts": [ (json array, optional, default=[]) Scripts involved in this transaction. "script", (string) A script ... ], "descriptors": [ (json array, optional, default=[]) Descriptors that provide solving data for this transaction. "descriptor", (string) A descriptor ... ], }

     {
       "pubkeys": [        (json array, optional, default=[]) Public keys involved in this transaction.
         "pubkey",         (string) A public key
         ...
       ],

Result

  {                             (json object)
    "complete" : true|false,    (boolean) If the transaction has a complete set of signatures
    "txid" : "hex",             (string, optional) The transaction id for the send. Only 1 transaction is created regardless of the number of addresses.
    "hex" : "hex",              (string, optional) If add_to_wallet is false, the hex-encoded raw transaction with signature(s)
    "psbt" : "str"              (string, optional) If more signatures are needed, or if add_to_wallet is false, the base64-encoded (partially) signed transaction
  }