Documentation exported from Syscoin Core 4.2.2

assetsendmany (4.2.2 RPC)

blockchain

control

evo

evowallet

generating

governance

governancewallet

masternode

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

assetsendmany "asset_guid" [assetsendobjects,...]

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

Arguments:
1. asset_guid                       (string, required) Asset guid.
2. amounts                          (json array, required) Array of asset send objects.
     [
       {                            (json object, required) An assetsend obj
         "address": "str",          (string, required) Address to transfer to
         "asset_amount": amount,    (numeric or string, required) Amount of asset to send
         "sys_amount": amount,      (numeric or string) Amount of Syscoin to send
         "NFTID": "str",            (string) Optional NFT ID to send
       },
       ...
     ]

Result:
{                    (json object)
  "txid" : "hex"     (string) The transaction id
}

Examples:
> syscoin-cli assetsendmany "asset_guid" '[{"address":"sysaddress1","amount":100},{"address":"sysaddress2","amount":200}]'
> syscoin-cli assetsendmany "asset_guid" "[{\"address\":\"sysaddress1\",\"amount\":100},{\"address\":\"sysaddress2\",\"amount\":200}]"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "assetsendmany", "params": ["asset_guid",'[{"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": "assetsendmany", "params": ["asset_guid","[{\"address\":\"sysaddress1\",\"amount\":100},{\"address\":\"sysaddress2\",\"amount\":200}]"]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/