z_sendmany - Pastel RPC
z_sendmany "fromaddress" [{"address":... ,"amount":...},...] ( minconf ) ( fee ) Send multiple times. Amounts are decimal numbers with at most 8 digits of precision. Change generated from a taddr flows to a new taddr address. Change generated from a zaddr returns to itself. When sending coinbase UTXOs to a zaddr, change is not allowed. The entire value of the UTXO(s) must be consumed. Arguments: 1. "fromaddress" (string, required) The taddr or zaddr to send the funds from. 2. "amounts" (array, required) An array of json objects representing the amounts to send. [{ "address": address (string, required) The address is a taddr or zaddr "amount": amount (numeric, required) The numeric amount in " + CURRENCY_UNIT + " is the value "memo": memo (string, optional) If the address is a zaddr, raw data represented in hexadecimal string format }, ... ] 3. minconf (numeric, optional, default=1) Only use funds confirmed at least this many times. 4. fee (numeric, optional, default=0.10The fee amount to attach to this transaction. Result: "operationid" (string) An operationid to pass to z_getoperationstatus to get the result of the operation. Examples: > pastel-cli z_sendmany "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" '[{"address": "PzSSk8QJFqjo133DoFZvn9wwcCxt5RYeeLFJZRgws6xgJ3LroqRgXKNkhkG3ENmC8oe82UTr3PHcQB9mw7DSLXhyP6atQQ5" ,"amount": 5.0}]' > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_sendmany", "params": ["PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n", [{"address": "PzSSk8QJFqjo133DoFZvn9wwcCxt5RYeeLFJZRgws6xgJ3LroqRgXKNkhkG3ENmC8oe82UTr3PHcQB9mw7DSLXhyP6atQQ5" ,"amount": 5.0}]] }' -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
Addressindex
Blockchain
Control
Generating
Mining
Mnode
Network
Rawtransactions
Wallet
addmultisigaddress
backupwallet
dumpprivkey
dumpwallet
encryptwallet
fixmissingtxs
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
gettransaction
gettxfee
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddressamounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
scanburntransactions
scanformissingtxs
sendfrom
sendmany
sendtoaddress
setaccount
settxfee
signmessage
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getnewaddress(type)
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listoperationids
z_listreceivedbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_sendmanywithchangetosender
z_shieldcoinbase
z_viewtransaction
zcbenchmark