Advertisement
anonymousvntk

Untitled

Jun 21st, 2021
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. if (eachToken.networkId === 'bsc') chainId = 'binance-smart-chain';
  2. if (eachToken.networkId === 'eth') chainId = 'ethereum';
  3. if (eachToken.networkId === 'hecochain') chainId = 'huobi-token';
  4. let route = `https://api.coingecko.com/api/v3/coins/${chainId}/contract/${eachToken.tokenAddress.toLowerCase()}`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement