listassetindexallocations (4.1.2 RPC)
blockchain
control
generating
governance
governancewallet
mining
network
rawtransactions
syscoin
syscoinwallet
util
wallet
zmq
listassetindexallocations address
Return a list of asset allocations an address is associated with.
Arguments:
1. address (numeric, required) Address to find assets associated with.
Result:
[
{
"asset_allocation": (string) The unique key for this allocation
"asset_guid": (string) The guid of the asset
"symbol": (string) The asset symbol
"address": (string) The address of the owner of this allocation
"balance": (numeric) The current balance
"balance_zdag": (numeric) The zdag balance
"locked_outpoint": (string) The locked UTXO if applicable for this allocation
},
...
]
Examples:
> syscoin-cli listassetindexallocations sys1qw40fdue7g7r5ugw0epzk7xy24tywncm26hu4a7
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listassetindexallocations", "params": [sys1qw40fdue7g7r5ugw0epzk7xy24tywncm26hu4a7] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/