Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tandris

Pages: [1]
1
Technical Support / How to use get_asset_holders?
« on: March 05, 2018, 02:32:47 pm »
I would like call the get_asset_holders asset api method to list the holders of my UIA, but I have some issues with it. At first I've tried it on the test network which worked:
Code: [Select]
> bash-3.2$ wscat -c wss://node.testnet.bitshares.eu/ws
> {"id":2,"method":"call","params":[1,"login",["",""]]}
< {"id":2,"jsonrpc":"2.0","result":true}
> {"id":2,"method":"call","params":[1,"asset",[]]}
< {"id":2,"jsonrpc":"2.0","result":2}
> {"id":1, "method":"call", "params":[2,"get_asset_holders",["1.3.15", 0, 100]]}
< {"id":1,"jsonrpc":"2.0","result":[{"name":"testz","account_id":"1.2.35","amount":10000}]}

After that I tried it on some live public full nodes, but I think the public nodes does not have the asset API enabled because the 'asset' call failed with an assertion error.
So I tried to start a full node according to the docs on bitshares-core github page with the memory reduction settings enabled. On my private node the ws calls are working but only for a few assets like BTS, USD etc. and not for my UIA. I think this could be a configuration issue on my private node, because when I call the lookup_asset_symbols method with the of my UIA it returns with an empty array while it works on every other public node.

Could you help me how to configure my private node to list all the UAI assets? Is there a public node where the asset API is accessible?

Pages: [1]