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. Arguments: 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 Result: "txid" (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: > 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;' http://127.0.0.1:6969/
Okcash Core RPC documentation.
Okcash version: 5.0.0.3
OK RPC docs at:Github
Rawtransactions
Smsg
Wallet
addmultisigaddress
backupwallet
clearwallettransactions
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getnewstealthaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
importprivkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
move
reservebalance
rewindchain
sendmany
sendtoaddress
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange
backupwallet
clearwallettransactions
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getnewstealthaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
importprivkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
move
reservebalance
rewindchain
sendmany
sendtoaddress
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange