AlphaWallet / alpha-wallet-android

An advanced Ethereum mobile wallet
https://www.alphawallet.com
MIT License
596 stars 529 forks source link

How to add a token as a "main token" that appears when opening the wallet. #1865

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello! Sorry for opening another ticket. I wanted to know how can we add an specific token (Doge for example in BSC) to appear in the main screen like the active chain tokens that always appear in the wallet. Thanks!

JamesSmartCell commented 3 years ago

Hi @CodahUY do you mean; encode this into the wallet in source, or always display it for a user?

The latter is quite easy, go to 'add / hide tokens' on the main page, find the token in the list and switch it on. It'll always appear.

If the former; we haven't added this in yet, but it's a good idea. We can add a list similar to 'known_contract.json' which forces tokens in the list to always be shown.

ghost commented 3 years ago

In code, so if a new user opens the wallet that token will appear by default. That would be good if the wallet has its own token maybe.

JamesSmartCell commented 3 years ago

Hi, @CodahUy I have added instructions on how to do this in the readme on the Android AlphaWallet repo front page.