You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a question than a bug report. I am investigating the proper way to find out that a transaction is either Transfer, PlaceOrder or CancelOrder. For example the response for block number 1675624 looks like so:
@YordanPavlov I've updated the decoder as a separate npm library.
The new interface here use different functions to handle different type of tx, and change decode into a try-catch test for all available types.
I'm also thinking about adding more types and run it with a loop.
@antoncoding Thanks Anton, but I guess my original question still stands, what would be the way to know if I should call decodeTransfer or decodePlaceOrder or other. Thanks!
This is more of a question than a bug report. I am investigating the proper way to find out that a transaction is either Transfer, PlaceOrder or CancelOrder. For example the response for block number 1675624 looks like so:
Trying to decode the first of those transactions as all of the possible types returns meaningful result. The results are like so:
As there is nothing in the response specifying the type, what would be the proper way to find it out.
Thanks!
The text was updated successfully, but these errors were encountered: