webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
341 stars 207 forks source link

[API-Backend] [Blockchain-Sync-Server] Support user owned NFTs on Polygon #2249

Closed hamzatrq closed 2 years ago

hamzatrq commented 2 years ago

Our app allow users to use any NFT that they own, inside the webaverse app. For that purpose we need to fetching of all of the user's NFTs even those that are not minted on our smart contracts.

Currently we only need to support Polygon. On our sidechain we will only be supporting our official contract and on Ethereum we already have opensea.

Instead of indexing the whole polygon chain. We can use Moralis' NFT api to fetch all the tokens both ERC721 and ERC1155 that a user owns and then caching the fetched NFT metadata for later use.

hamzatrq commented 2 years ago

Also the opensea's api for fetching user NFTs should be moved to backend api endpoint.