hello
as you know we have raw data in transactions that include much information how can this information distinct each part of the transaction belong to which standard, for example, is it erc20 or erc721 or erc1155?
thanks in advaace
hello
as you know we have raw data in transactions that include much information how can this information distinct each part of the transaction belong to which standard, for example, is it erc20 or erc721 or erc1155?
thanks in advaace
can you give an example of what information you have available?
in general you can check the interfaces that are implemented by a contract in order to determine the type of the contract
i have transaction information and all info about tx
yes it is great but many of the contracts donโt have the ABI and also there are some erc721 and 1155 doesnโt have supportsInterface function. am I right?
You only need an abi and then you can use it with other contracts too
Yes, there could be special cases. You can also use our api with a contract address to see if it recognize it as erc20 or as a nft contract. You can also look in logs to see if it is a transfer specific to an nft or one specific to an erc20 token (this part is more advanced)
very thanks your for your great advices, i did all of them but is there any documents to help me. i am so interested to know how you did in moralis. because i used the transfer also to distinguish but as you know there are again some cases you canโt classify it as nft or erc20.
really i am so interested to find a reliable method to classify nft and erc20.
dear @cryptokid thanks again.
Transfer type works most of the time to differentiate between erc20 and nfts. After that you check the interfaces to see what it matches. There will always be some edge cases with some contracts that have to be treated separately.