sendmany

sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" fee_rate verbose )

Sends multiple transactions. The amounts are specified as double-precision floating point numbers.

If the wallet is encrypted, the wallet passphrase must be set using the walletpassphrase call before proceeding.

Argument #1 – dummy

Type: string, required

Must be set to “” for backwards compatibility.

Argument #2 – amounts

Type: json object, required

The addresses and amounts

{
  "address": amount,    (numeric or string, required) The bitcoinevo address is the key, the numeric amount (can be string) in BTCE is the value
}

Argument #3 – minconf

Type: numeric, optional

Ignored dummy value

Argument #4 – comment

Type: string, optional

A comment

Argument #5 – subtractfeefrom

Type: json array, optional

The addresses.

The fee will be equally deducted from the amount of each selected address, meaning those recipients will receive fewer BitcoinEvos than the entered amounts. If no addresses are specified, the sender will cover the fee.

[
  "address",            (string) Subtract fee from this address
  ...
]

Argument #6 – replaceable

Type: boolean, optional, default=wallet default

Allows the transaction to be replaced by one with higher fees via BIP 125.

Argument #7 – conf_target

Type: numeric, optional, default=wallet -txconfirmtarget

Specifies the confirmation target in blocks.

Argument #8 – estimate_mode

Type: string, optional, default=unset

Specifies the fee estimate mode. Must be one of the following (case insensitive):
  • "unset"
  • "economical"
  • "conservative"
  • Argument #9 – fee_rate

    Type: numeric or string, optional, default=not set (falls back to wallet fee estimation)

    Specify a fee rate in sat/vB.

    Result (if verbose is not set or set to false)

    Name

    Type

    Description

    hex

    string

    The transaction id for the send. Only 1 transaction is created regardless of

    Result (if verbose is set to true)

    {                          (json object)
      "txid" : "hex",          (string) The transaction id for the send. Only 1 transaction is created regardless of
                               the number of addresses.
      "fee reason" : "str"     (string) The transaction fee reason.
    }
    

    Examples

    Send two amounts to two different addresses::

    bitcoinevo-cli sendmany "" "{\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\":0.01,\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\":0.02}"
    

    Send two amounts to two different addresses setting the confirmation and comment::

    bitcoinevo-cli sendmany "" "{\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\":0.01,\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\":0.02}" 6 "testing"
    

    Send two amounts to two different addresses, subtract fee from amount::

    bitcoinevo-cli sendmany "" "{\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\":0.01,\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\":0.02}" 1 "" "[\"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl\",\"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3\"]"
    

    As a JSON-RPC call:

    curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "sendmany", "params": ["", {"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl":0.01,"bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3":0.02}, 6, "testing"]}' -H 'content-type: text/plain;' http://127.0.0.1:7332/