as I stated on the title because I am very confuse on how to know if the token is ERC20 or ERC233. I bought Thore Cash on Mercatox and I didnt know if it is ERC20 or ERC233 but they said they supported the swap but i just want to make sure.
The easiest and reliable way to determine which standard a token is following is to look at its source code. The easy and fairly trustable path to that is to
- head over to Etherscan.io
- find the token by searching for its address or name
- double check with a trusted source that you got the right smart contract address, there are thousands of fake token contracts out there. Take it from one of your own transactions for example.
- In the Profile Summary on the right, click the contract address, then click the "contract" tab
- hit ctrl+F or cmd+F and search for ERC. This will probably yield ERC20 and possibly other numbers corresponding to other types of tokens, which usually are a superset of ERC20.
If that does not yield satisfactory results:
- search for a piece of code that is specific to this kind of token, e.g. as suggested by Rob Hitchens for ERC233: "tokenFallback", or "extcodesize", which must appear in the transfer function.