Is it possible to query another node's asset balances?

+1 vote
Hi Multichain Team,

Is it possible to query another node's asset balances? Suppose I have a 2 node setup and I can get the asset balances for 1st node by calling gettotalbalances on 1st node? Can I somehow get the asset balances of the 2nd node on the 1st node itself?

Thanks.
asked Jul 25, 2016 by amanc

1 Answer

0 votes

Yes, for this you should use a watch-only address - use the importaddress API to add any address to the node and start tracking its balance. Various query balancing APIs have an includeWatchOnly parameter which sets whether or not to include watch-only addresses in the outputs or totals.

answered Jul 25, 2016 by MultiChain
Can we do this without importing address?
No - that's what importaddress is for.
...