Integrate https://web3js.readthedocs.io/en/v1.5.2/web3-eth.html#getcode on the Account model.
This can then be used to check if there is a smart contract at the address.
We us the Account model as account's simply represent an address (EOA or smart contract) as opposed to Contract model which is for smart contracts only.
Integrate https://web3js.readthedocs.io/en/v1.5.2/web3-eth.html#getcode on the Account model. This can then be used to check if there is a smart contract at the address. We us the Account model as account's simply represent an address (EOA or smart contract) as opposed to Contract model which is for smart contracts only.