2

I am trying to determine if the NFT I own is an ERC20 token, or what it should be, an ERC721 token. Here is the link to the contract and the link to the source code. It's on the C chain of Avalanche written w/Solidity.

https://cchain.explorer.avax.network/address/0xE935193fE3E9580f6796302C5F33a1f6Cc1A7b4E/transactions

https://cchain.explorer.avax.network/address/0xE935193fE3E9580f6796302C5F33a1f6Cc1A7b4E/contracts

1 Answer 1

0

The only way to truly verify this is to look at the code of the smart contract and take no chances (which is 500 lines and I'm not going to spend time doing that right now).

You can then validate that the interface is what you want (ERC721 in this case), and that the implementation code implements this interface satisfactorily (for example there's no point in a function named transfer if it does something entirely different like minting tokens).

By clicking on read contract and write contract on the token page, you can get an overview of what functions are available.

I can already see that the function ownerOf is missing, which should be available if following the official ERC721 standard.

It also has some balance-related functions which are more often found in ERC20-like tokens.

3
  • I really appreciate this response. Are you a dev that is interested in taking on a for hire project to write a new smart contract?
    – C R
    Sep 3, 2021 at 21:11
  • Perhaps. Feel free to email my crypto address: [email protected] Sep 4, 2021 at 17:52
  • @CR If you are still looking for smart contract developers, I have little free time, but you can get in touch with me here: linkedin.com/in/davidpcallanan Feb 18, 2022 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.