3 ms·
Please link me up, I have checked and tried more than 20 results and none of them tell why or work.
by kang 9y ago
Please link me up, I have checked and tried more than 20 results and none of them tell why or work.
- decentralised 9y agoSorry for the delay in answering back. This is one example: https://github.com/bokkypoobah/TokenTrader/blob/master/contracts/TokenTraderFactory.sol#L286-L321 https://github.com/bokkypoobah/TokenTrader/blob/master/contr... Originally asked here: https://ethereum.stackexchange.com/questions/12757/detect-or-verify-reception-of-erc20-tokens-by-contract https://ethereum.stackexchange.com/questions/12757/detect-or... You can also check with MyEtherWallet: https://ethereum.stackexchange.com/questions/21082/use-mew-for-testing-smart-contract https://ethereum.stackexchange.com/questions/21082/use-mew-f... The short answer is that you need the contract code and ABI to check if it is a ERC20 compliant token or not but you can use http://testnet.etherscan.io/ http://testnet.etherscan.io/ (or the live version) to get this information.
- kang 9y agoSo manual then? To reach the ethereum genesis block programatically, starting from an erc20 token I give you, you need that "need the contract code" part which is centralised.
- decentralised 9y agoThere is a difference between tokens and the currency Ether so I'm not sure what you mean with the genesis block in regards to ERC20 tokens here. The contract that holds the ERC20 is hosted in every single node of the blockchain so it is not centralised at all.