What is the best way to list all transfers of an asset?I am parsing the NHZ asset markets, and whenever an inconsistency shows up, there is usually a bug in my code. Which I then fix, and all is cool. This time, however, I didn't understand it - at first. Then I realized, there is probably an important API function missing? Please follow my train of thought ...
What made me wonder: The asset 4033048123059509069 (HZSPHERE) got issued, then there were numberOfTrades=0, but now the issuerAccount (6108610928966611972) has no HZSPHERE assets left. It is the only asset with this results.
Thinking deeper I realized, the assets might have been not traded, but 'transferred'. And yes, after manual digging in "getAccountTransactions"
http://localhost:7776/nhz?requestType=getAccountTransactions&account=6108610928966611972 I find 6 tx, one AssetIssuance of 15000000, and 5 tx of
13956751
364655
44445
2000
632149
... which miraculously :-) add up to ... 15000000
The 5 are of
type: 2 ("Colored coins")
subtype: 1 ("Asset transfer")
(in brackets what 'getConstants' told me -
http://localhost:7776/nhz?requestType=getConstants )
So YEAH: My original riddle is solved.BUT the way to the goal is too far, IMHO.
getTrades does not help, it results in []
http://localhost:7776/nhz?requestType=getTrades&asset=4033048123059509069 getTransfers (my own invention

) results in "Incorrect request"
http://localhost:7776/nhz?requestType=getTransfers&asset=4033048123059509069
What is the best way to list all transfers of an asset in HZ?Thanks a lot!
:-)