Documentation exported from Syscoin Core 4.1.2

assetallocationsendmany (4.1.2 RPC)

blockchain

control

generating

governance

governancewallet

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

assetallocationsendmany asset_guid "addressfrom" [assetallocationsend object]... ( "witness" )

Send an asset allocation you own to another address. Maximum recipients is 250.

Arguments:
1. asset_guid                 (numeric, required) Asset guid
2. addressfrom                (string, required) Address that owns this asset allocation
3. amounts                    (json array, required) Array of assetallocationsend objects
     [
       {                      (json object) The assetallocationsend object
         "address": "str",    (string) Address to transfer to
         "amount": amount,    (numeric or string) Quantity of asset to send
       },
       ...
     ]
4. witness                    (string, optional, default="") Witness address that will sign for web-of-trust notarization of this transaction

Result:
{
  "hex": "hexstring"       (string) the unsigned transaction hexstring.
}

Examples:
> syscoin-cli assetallocationsendmany "assetguid" "addressfrom" '[{"address":"sysaddress1","amount":100},{"address":"sysaddress2","amount":200}]' ""
> syscoin-cli assetallocationsendmany "assetguid" "addressfrom" "[{\"address\":\"sysaddress1\",\"amount\":100},{\"address\":\"sysaddress2\",\"amount\":200}]" ""
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "assetallocationsendmany", "params": ["assetguid", "addressfrom", '[{"address":"sysaddress1","amount":100},{"address":"sysaddress2","amount":200}]', ""] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "assetallocationsendmany", "params": ["assetguid", "addressfrom", "[{\"address\":\"sysaddress1\",\"amount\":100},{\"address\":\"sysaddress2\",\"amount\":200}]", ""] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/