horizontalsystems/ethereum-kit-ios

Token info from ContractAddress

just-poster opened this issue · 2 comments

Hi, is there a possibility to get token info(name, coin, precision) from ContractAddress, using your toolkit?
In your example project, erc20 tokens information is hardcoded.

Hi, no, there is no such possibility in EthereumKit. But we have implemented alternative solution for our Add Erc20 Token feature in Unstoppable app:

https://github.com/horizontalsystems/unstoppable-wallet-ios/blob/master/UnstoppableWallet/UnstoppableWallet/Core/Providers/Erc20ContractInfoProvider.swift

This solution uses Etherscan for getting token info from transaction list.

Thanks for the answer, I will use the same approach and close this issue.