get the owner nft with "react-moralis" ?? , Lesson 15 with **"cloud"** #2302
-
Lesson 15 with "cloud" As per Patrick, after buying the nft, nft will not show in the marketplace because the buyer is not 0x000 ... I am trying to show 2 sections in NFTrmarket place ... so how can I get the owner nfts with react-moralis or I to have to use any other library .. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
create a new class in moralis like ownedNft . Then while buying the nft just append the bought nft to the moralis collections and cancel it when someone buys listening to events |
Beta Was this translation helpful? Give feedback.
-
@Irfanahmedkhan Just create the BoughtNFT collection in Moralis, and where you are removing the listing from ActiveItems on buying, there you should add that listing to the BoughtNFT collection. After that just like ActiveItems, get the BoughtNFT items on the marketplace. Also then you need to remove it when the owner sells that NFT! |
Beta Was this translation helpful? Give feedback.
@Irfanahmedkhan Just create the BoughtNFT collection in Moralis, and where you are removing the listing from ActiveItems on buying, there you should add that listing to the BoughtNFT collection. After that just like ActiveItems, get the BoughtNFT items on the marketplace.
Also then you need to remove it when the owner sells that NFT!