Summary
We call this endpoint https://indexer.mainnet.vechain.org/swagger-ui/index.html#/NFT/getOwnedNFTs and get the nfts owned by the user.
VERY IMPORTANT: there are scam NFTs so we need to exclude scam collections. We should ask VeWorld the address of the contract that returns scam NFT collections.
"Hard thing" -> we need to see first everything grouped per collection, then on click see all the nfts of that collection, then on click we see the details of the nft.
At this point we may need to follow the ERC721 standard of calling getTokenUri/tokenURI in the contract of the collection, which will return the ipfs url of the metadata -> then we call the ipfs url to get the metadata object (we already have some ipfs decoding and calling stuff taht we use for the avatar of the user and the profile information attached to the vet domain)
Basic Example
No response
Summary
We call this endpoint https://indexer.mainnet.vechain.org/swagger-ui/index.html#/NFT/getOwnedNFTs and get the nfts owned by the user.
VERY IMPORTANT: there are scam NFTs so we need to exclude scam collections. We should ask VeWorld the address of the contract that returns scam NFT collections.
"Hard thing" -> we need to see first everything grouped per collection, then on click see all the nfts of that collection, then on click we see the details of the nft.
At this point we may need to follow the ERC721 standard of calling
getTokenUri/tokenURIin the contract of the collection, which will return the ipfs url of the metadata -> then we call the ipfs url to get the metadata object (we already have some ipfs decoding and calling stuff taht we use for the avatar of the user and the profile information attached to the vet domain)Basic Example
No response