sendmany "" {"address":amount} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" fee_rate verbose )
Send multiple times. Amounts are double-precision floating point numbers.
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
Type: string, required
Must be set to "" for backwards compatibility.
Type: 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 DGB is the value }
Type: numeric, optional
Ignored dummy value
Type: string, optional
A comment
Type: json array, optional
[ "address", (string) Subtract fee from this address ... ]
Type: boolean, optional, default=wallet default
Allow this transaction to be replaced by a transaction with higher fees via BIP 125
Type: numeric, optional, default=wallet -txconfirmtarget
Confirmation target in blocks
Type: string, optional, default=unset
Type: numeric or string, optional, default=not set, fall back to wallet fee estimation
Specify a fee rate in sat/vB.
Name | Type | Description |
---|---|---|
hex | string | The transaction id for the send. Only 1 transaction is created regardless of |
{ (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. }
Send two amounts to two different addresses::
digibyte-cli sendmany "" "{\"SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA\":0.01,\"SdUzSYHyKdc2kZtM3DBkQeqc5MdeDXLjFi\":0.02}"
Send two amounts to two different addresses setting the confirmation and comment::
digibyte-cli sendmany "" "{\"SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA\":0.01,\"SdUzSYHyKdc2kZtM3DBkQeqc5MdeDXLjFi\":0.02}" 6 "testing"
Send two amounts to two different addresses, subtract fee from amount::
digibyte-cli sendmany "" "{\"SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA\":0.01,\"SdUzSYHyKdc2kZtM3DBkQeqc5MdeDXLjFi\":0.02}" 1 "" "[\"SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA\",\"SdUzSYHyKdc2kZtM3DBkQeqc5MdeDXLjFi\"]"
As a JSON-RPC call:
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "sendmany", "params": ["", {"SXXgn4BX1wTXrCxAtwtiB2r3DPg7nnhjYA":0.01,"SdUzSYHyKdc2kZtM3DBkQeqc5MdeDXLjFi":0.02}, 6, "testing"]}' -H 'content-type: text/plain;' http://127.0.0.1:14022/