sendmany - Pastel RPC

sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ["address",...] "change-address" )

Send multiple times. Amounts are decimal numbers with at most 8 digits of precision.

Arguments:
1. "fromaccount"           (string, required) MUST be set to the empty string "" to represent the default account. Passing any other string will result in an error.
2. "amounts"               (string, required) A json object with addresses and amounts
    {
      "address":amount     (numeric) The Pastel address is the key, the numeric amount in PSL 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. subtractfeefromamount   (string, optional) A json array with addresses.
                            The fee will be equally deducted from the amount of each selected address.
                            Those recipients will receive less Pastel 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
      ,...
    ]
6. "change-address" (string, optional, default="original") The destination address to send the change to, can be one of the following:
	- "original" - Send the change to the original address (default);
	- "new" - Send the change to the new generated t-address
	- <change t-address> - Send the change to the given Pastel t-address

Result:
"transactionid"            (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:
> pastel-cli sendmany "" "{\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.01,\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.02}"

Send two amounts to two different addresses setting the confirmation and comment:
> pastel-cli sendmany "" "{\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.01,\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.02}" 6 "testing"

Send two amounts to two different addresses, subtract fee from amount:
> pastel-cli sendmany "" "{\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.01,\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.02}" 1 "" "[\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\",\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\"]"

As a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": ["", "{\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.01,\"PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n\":0.02}", 6, "testing"] }' -H 'content-type: text/plain;' http://127.0.0.1:9932/


Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node