So I can go to Etherscan, type my ETH address and then it shows me all the ERC20 tokens I have linked to my address. How does it do it?
If I understand correctly, ERC20 token is just a smart contract on EVM. Token itself doesn't exist as Ether, the token is just a variable, and some state within the smart contract. So how does the Etherscan know what tokens I have? That information is scattered in many different smart contracts deployed on Ethereum, isn't it? Does the etherscan query all the ERC20 smart contracts with "balanceOf(address)" to receive the info which tokens do I have? THat would seem like a LOT of work just to print my balance
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments