send
send [{"address":amount},{"data":"hex"},...] ( conf_target "estimate_mode" fee_rate options )
EXPERIMENTAL warning: this call may be changed in future releases.
Send a transaction.
Argument #1 – outputs
Type: json array, required
- The outputs (key-value pairs), where none of the keys are duplicated.
-
Each address can appear only once, and there can be only one ‘data’ object. For convenience, a dictionary that holds key-value pairs directly is also accepted.
Argument #2 – conf_target
Type: numeric, optional, default=wallet -txconfirmtarget
Confirmation target in blocks
Argument #3 – estimate_mode
Type: string, optional, default=unset
- The fee estimate mode, must be one of (case insensitive):
-
“unset” “economical” “conservative”
Argument #4 – fee_rate
Type: numeric or string, optional, default=not set, fall back to wallet fee estimation
Specify a fee rate in sat/vB.
Argument #5 – options
Type: json object, optional
- Type: json object, optional
-
“locktime”: numeric, optional, default=0
Specifies the raw locktime. A non-zero value also activates locktime on the inputs.“lock_unspents”: bool, optional, default=false
Locks the selected unspent outputs.“psbt”: bool, optional, default=automatic
Always returns a PSBT (Partially Signed Bitcoin Transaction), implyingadd_to_wallet=false
.-
“subtract_fee_from_outputs”: json array, optional, default=empty array
Specifies outputs from which the fee will be subtracted, given as integer indices. The fee will be equally deducted from the amount of each specified output, meaning those recipients will receive less BitcoinEvos than the entered amount. If no outputs are specified, the sender will cover the fee.Example:
-
vout_index: numeric
The zero-based output index, before a change output is added.
-
vout_index: numeric
“replaceable”: bool, optional, default=wallet default
Marks the transaction as BIP125 replaceable, allowing it to be replaced with a transaction that has higher fees.
Result
Examples
Send 0.1 BTCE with a confirmation target of 6 blocks in economical fee estimate mode:
Send 0.2 BTCE with a fee rate of 1.1 sat/vB using positional arguments:
Send 0.2 BTCE with a fee rate of 1 sat/vB using the options argument:
Send 0.3 BTCE with a fee rate of 25 sat/vB using named arguments:
To create a transaction that should confirm in the next block, with a specific input, and return the result without adding it to the wallet or broadcasting to the network, specify the above options.