send

Send a transaction.

Argument #1-outputs

Type: json array, Required

Description: The outputs specified as key-value pairs. Each key may only appear once, i.e. there can only be one 'data' output, and no address may be duplicated. At least one output of either type must be specified. For convenience, a dictionary, which holds the key-value pairs directly, is also accepted.

     [
       {                       (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
         ...
       },
       {                       (json object)
         "data": "hex",        (string, required) A key-value pair. The key must be "data", the value is hex-encoded data
       },
       ...
     ]

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.

   Warning: the resulting transaction may become invalid if one of the unsafe inputs disappears.
   If that happens, you will need to fund the transaction with different inputs and republish it.
   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.
   The fee will be equally deducted from the amount of each specified output.
   Those recipients will receive less bitcoins than you enter in their corresponding amount field.
   If no outputs are specified here, the sender pays the fee.
   "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
  }