I have been evaluating the Moralis https://deep-index.moralis.io/api-docs/#/token/getNftTransfersFromToBlock REST API to index NFT(ERC721) transfers. When I query using swagger with the following parameters,
- chain - polygon
- startBlock - 22202892
- endBlock - 22202892
I see the below transaction hash displayed as “ERC-721” transaction. However it’s a ERC-20 transfer. 0xe314f0dd90819fa287230842f4553d8e2b8a91d85a685224dd4471420373a4bf.
Since I am relying on contractType = ERC721 to filter the data from the response, this seems to be an issue with the detection of contract type.
My requirement is to pull ERC721 NFT transfers between two block numbers in an incremental order.
I also have observed that it is taking considerable time to see the real time NFT transfers via Moralis API. I can see the transfer in polygonscan.com, but it takes 10 mins to appear through REST API.
Thank you, looking forward to your reply.