I am implementing support of multiple tokens in my application. I want to listen new token received transactions.
I got that I need to decode the input data in any transaction to get the toAddress and Amount of token transferred. But I am confused at a point how can I know if token is really transferred or not? because method in input data can be different for different contracts.
So I know that transfer, transferFrom are methods used to transfer the token. so I can confirm if token-transfer is happened. But I found Transfer and Sweep two methods for a contract. (for eg. Omisego Contract, Omisego Transaction-1, Omisego Transaction). but then I found depositToken method for another contract(for eg. Sharder Contract Sharder Transaction).
So my questions.
- How can I get a list of transfer-methods for different tokens?(for eg. transfer-transferFrom for Omisego, depositToken for Sharder etc..)
- is Mint method too a type of token transfer method, its here Omisego Contract?
- or may be, if transaction is on Etherscan, assume tokens/ETH are always transferred from one address to another address/contract.
Thanks in advance for the help.