sendmany - Okcash RPC

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

sendmany  {address:amount,...} [minconf=1] [comment]
amounts are double-precision floating point numbers

Send multiple times. Amounts are double-precision floating point numbers.

1. "fromaccount"         (string, required) DEPRECATED. The account to send the funds from. Should be "" for the default account
2. "amounts"             (string, required) A json object with addresses and amounts
      "address":amount   (numeric or string) The Okcash address is the key, the numeric amount (can be string) in OK 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

"txid"                   (string) The transaction id for the send. Only 1 transaction is created regardless of 
                                    the number of addresses.


Send two amounts to two different addresses:
> okcashd sendmany "" "{\"PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg\":0.01,\"PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz\":0.02}"

Send two amounts to two different addresses, setting the confirmation and comment:
> okcashd sendmany "" "{\"PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg\":0.01,\"PFenePkaLR13uAttTPGtZRuNqyvUbU9tFz\":0.02}" 6 "testing"

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

Okcash Core RPC documentation.

Okcash version:

OK RPC docs at:Github