sendmany "" {"address":amount} ( minconf "comment" ["address",...] )
Send multiple times. Amounts are double-precision floating point numbers.
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
Arguments:
1. dummy (string, required) Must be set to "" for backwards compatibility.
2. amounts (json object, required) The addresses and amounts
{
"address": amount, (numeric or string, required) The bitcoin address is the key, the numeric amount (can be string) in XEC is the value
}
3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times.
4. comment (string, optional) A comment
5. subtractfeefrom (json array, optional) The addresses.
The fee will be equally deducted from the amount of each selected address.
Those recipients will receive less bitcoins than you enter in their corresponding amount field.
If no addresses are specified here, the sender pays the fee.
[
"address", (string) Subtract fee from this address
...
]
Result:
"hex" (string) The transaction id for the send. Only 1 transaction is created regardless of the number of addresses.
Examples:
Send two amounts to two different addresses:
> bitcoin-cli sendmany "" "{\"bchtest:qplljx455cznj2yrtdhj0jcm7syxlzqnaqt0ku5kjl\":0.01,\"bchtest:qzmnuh8t24yrxq4mvjakt84r7j3f9tunlvm2p7qef9\":0.02}"
Send two amounts to two different addresses setting the confirmation and comment:
> bitcoin-cli sendmany "" "{\"bchtest:qplljx455cznj2yrtdhj0jcm7syxlzqnaqt0ku5kjl\":0.01,\"bchtest:qzmnuh8t24yrxq4mvjakt84r7j3f9tunlvm2p7qef9\":0.02}" 6 "testing"
Send two amounts to two different addresses, subtract fee from amount:
> bitcoin-cli sendmany "" "{\"bchtest:qplljx455cznj2yrtdhj0jcm7syxlzqnaqt0ku5kjl\":0.01,\"bchtest:qzmnuh8t24yrxq4mvjakt84r7j3f9tunlvm2p7qef9\":0.02}" 1 "" "[\"bchtest:qplljx455cznj2yrtdhj0jcm7syxlzqnaqt0ku5kjl\",\"bchtest:qzmnuh8t24yrxq4mvjakt84r7j3f9tunlvm2p7qef9\"]"
As a JSON-RPC call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "sendmany", "params": ["", {"bchtest:qplljx455cznj2yrtdhj0jcm7syxlzqnaqt0ku5kjl":0.01,"bchtest:qzmnuh8t24yrxq4mvjakt84r7j3f9tunlvm2p7qef9":0.02}, 6, "testing"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/