Cloning OpenSea NFT Boilerplate Questions

Hi @BooneBergsma,

Have you synced the smart contract with your Moralis server and if so are the newly listed items showing up in your DB in the MarketItems class? The boilerplate queries you DB to check whether or not the item is for sale on your marketplace, hope this helps.

@pkgujjar,

Sorry to hear the trust wallet issue, it may be that at the time of building this tutorial the ethereum-boilerplate had some issues with trust wallet… can you check if it works fine on the latest ethereum-boilerplate :crossed_fingers: and if it works on there bring it over to your marketplace repo?

Hi @Ednut,

You are free to fork this project and work on it as you wish as long as you follow the MIT licence doc that is provided in the repo as well :slight_smile:

Hello All,
I have a collection of around 5000 NFT, I put the address in opensea and all shown but when I put the same address in your NFT Boilerplate project at collection code, it only shows 10 NFT under Explorer Market but show all under your collection tap (because all mint in the same account), now my NFT collection shown on opensea, shown on Your Collection but only show 10 of them under Explorer Market? even though it said Collection Size: 5000 in Explorer Market but only display 10 NFT?
any idea please?

Thanks. I did sync and it shows in the DB


but still not showing up in the boilerplate app Market tab or Transaction tab

Please share any help you can here ethereum-boilerplate-NFT-Marketplace still can’t figure out why the NFT is not showing for sale even though the Create Market Item transaction did happen on chain. HELP NEEDED!!!

Is Lazy-minting added or possible to add?

It should be possible to add with Moralis, the difference is you just need to have the tokens stored in DB instead of deploy them to the blockchain :raised_hands:

1 Like

It is possible to display all 5000, but it will take a while to load, under

{inputValue !== “explore” &&
NFTTokenIds.slice(0, 20).map((nft, index) => (
<Card
hoverable
actions={[

<FileSearchOutlined
onClick={() =>
window.open(
${getExplorer(chainId)}address/${nft.token_address},
“_blank”
)
}
/>

simply delete “0,20” from NFTTokenIds.slice

and also taking away the limit from useNFTTokenIds.jsx

under this line of code

} = useMoralisWeb3ApiCall(token.getAllTokenIds, {
chain: chainId,
address: addr,
limit: 10,
});

Thank you very much joteo,

it works now but takes like ages to load? what I have done is:

NFTTokenIds.slice(0, 5000).map((nft, index) =>…

and set limit to 5000

} = useMoralisWeb3ApiCall(token.getAllTokenIds, {
chain: chainId,
address: addr,
limit: 5000,
});

but first I got undefined collection, and got following message:
message=“Unable to fetch all NFT metadata… We are searching for a solution, please try again later!”

then load all NFT but as I said it takes long long time?
Is there any way to reduce the time of loading? lets say I divided my collection to 1000 and then put each under different image and name but the problem is all 5000 have the same address? so it will load the same 1000 in each collection?
any suggestions I really appreciate it…

@BooneBergsma,

Have you followed along the tutorial or just working with the final code repo? The final code repo queries a class called “MarketItems” as opposed to “CreatedMarketItems”, so you will have to change the class you are querying in the NFTTokenIds.jsx and NFTMarketTransaction.jsx like so:

const queryMarketItems = useMoralisQuery("MarketItems");
1 Like

Hi @ennng,

You could do something where you use the offset parameter with the limit parameter in the token.getAllTokenIds() web3Api call.

Say you set the limit to 20 and offset to 20 initially and then have a “Load More” button on your site. Every-time it is pressed you do a new token.getAllTokenIds() call with offest = current offset + 20. Then just concatenate the result to your already fetched NFTs and display this on the NFT collection page :slight_smile:

Hello, not sure Im missing something, but it seems that once you list an NFT on the marketplace for sale, its stays there until its bought, I dont see anyway of withdrawing / canceling the sale so that the NFT is transferred back to the user/seller wallet?

Hey @ClintonK,

Yes the boilerplate, doesn’t have this built in, but people in the community have had the same idea and added this functionality themselves. You could start by checking this post :slight_smile:

Hope this helps!

1 Like

Thanks for this, could you please provide the code in the dapp you used for the cancel button?

Hi All, @IAmJaysWay,

In the file helpers/networks.js are 2 id’s exchanged…
The kovan testnet is id: 0x2a and Ropsten is id: 0x4 !

so it must be:

  "0x2a": {
    currencySymbol: "ETH",
    blockExplorerUrl: "https://kovan.etherscan.io/",
  },
  "0x4": {
    currencySymbol: "ETH",
    blockExplorerUrl: "https://rinkeby.etherscan.io/",
  },```

Success!
1 Like

@IAMJaysWay Thanks - this is what I need :slight_smile:

1 Like

You are a GENIUS! Thank you :slight_smile:

1 Like

:slight_smile: please now help figure out why I am getting this error


“Unable to fetch all NFT metadata… We are searching for a solution, please try again later!”