Hi,
(apologies upfront for the verbosity of this question)
I have created a single asset called AssetX which can be divided up into one hundred pieces i.e.
- "issue toAnAddress AssetX 1 0.01"
Having created AssetX on NodeA, I decide to make an offer for AssetX from a separate node and address. On NodeB I first ring fence some of AssetB in exchange for AssetX. I do this using a preparelockunspent i.e.
- "preparelockunspent '{"AssetB":10}"
I then create the offer itself using createrawexchange i.e
- "createrawexchange txid vout '{"AssetX":0.10}'"
using the resulting hex code for the offer I then jump back onto NodeA and accept the offer by performing
- preparelockunspent '{"AssetX":0.10}'
- appendrawexchange OfferHexCodeVal txid vout '{"AssetB":10}'
- sendrawtransaction appendedRawExcahngeHexVal
When the balance of NodeA is checked (gettotalbalances) we see that its amount of AssetX has decreased by 10% and its amount of AssetB has increased by 10. The inverse is true for NodeB.
What I would like to know is, if there were multiple nodes making offers for AssetX, and the owner of AssetX accepted all of these offers, then is there a way of identifying the addresses to which portions of AssetX have been distributed? I need to build a view of this information so that I can provide something to this effect...
AssetX distributed as follows:
NodeB: has 10% of AssetX
NodeC: has 70% of AssetX
NodeD: has 20% of AssetX
I understand that this may require stringing a number of MultiChain API calls together and parsing appropriately but as of yet I am unable to identify how best to do this.
Thanks in advance.
MultiChain details:
"version" : "1.0 alpha 19",
"protocolversion" : 10005,