The common way to determine if an address is EOA or contract is to call `getCode` and check if the result is `0x` or `0x0`.
For example, this is MetaMask code doing this:
But it introduces some network delay, especially if the target contract is huge(for example, OpenSea contract), which may result in several seconds delay in a bad network situation.
Is there a way to optimize this?
[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