recommended way to get asset distribution

+1 vote

Hi Multichain folks,

What is the recommended way to get the current distribution on an asset? Basically, all the addresses that have the asset and the amount in each address.

My impression is that: If Node A issues the asset and then sends it to an address that is only in the wallet of Node B, then if I query Node A with getmultibalances for the asset, then I will only get the asset balances that are in addresses that the Node A wallet is tracking. 

What I've done is to use streams to broadcast to all nodes when addresses are created so that they can be watched in all nodes wallets. Then I can use getmultibalances.

I'm wondering if there is another (better, easier) way? 

asked Sep 14, 2017 by StevenChan

1 Answer

0 votes

It's possible to subscribe to an asset in MultiChain, and then query the transactions of that asset using listassettransactions. But this won't directly give you the balance for each address of that asset, and currently I'm afraid there is no API in MultiChain to provide these balances directly.

answered Sep 15, 2017 by MultiChain
...