Guys, does anyone know how to check the type of contract without calling its methods? So far I see only one way - use web3.js, call contract methods with ABI, analyze the responses/errors and than figure out which interface contract implements (for example, call TransferSingle method and if it's not there, then it's not ERC-1155)
May 31, 2022, 6:20 PM
if the contract supports EIP165 you could use supportsInterface, ERC721 implements it but ERC20 doesnt
May 31, 2022, 7:24 PM
good idea, thank you!
Jun 1, 2022, 4:08 AM