status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.86k stars 984 forks source link

Get full list of supported tokens from backend #20380

Open dlipicar opened 1 month ago

dlipicar commented 2 weeks ago

@Khushboo-dev-cpp could you point us to the status-go endpoint we need to use to get the full list of collectibles? I think mobile does not have this at the moment

Khushboo-dev-cpp commented 2 weeks ago

@Khushboo-dev-cpp could you point us to the status-go endpoint we need to use to get the full list of collectibles? I think mobile does not have this at the moment

collectibles? or tokens? erc 20?

dlipicar commented 2 weeks ago

@Khushboo-dev-cpp could you point us to the status-go endpoint we need to use to get the full list of collectibles? I think mobile does not have this at the moment

collectibles? or tokens? erc 20?

I'll blame it on lack of sleep. I meant erc20 tokens. Basically what we use to fill the all_tokens model

Khushboo-dev-cpp commented 2 weeks ago

Hey so we get a list of supported tokens which can include repeating entries for each token for each network via this api wallet_getTokenList We then process it to combine it to non repeating items per token. wallet_fetchMarketValues wallet_fetchTokenDetails wallet_fetchPrices are used to get other details about the tokens.

https://github.com/status-im/status-desktop/blob/dc554f8ea2f9611d919051763b523dab4e28d0bd/src/app_service/service/token/service.nim#L357 is file that handles all of it