Ok but i build this based on my color scheme and layout preferences but it not connect on trust wallet on phone
It custom code that I add in the opensea moralis tutorial file. let me know how we can connect?
Hi, I tried your code and there seems to be an error
failed to compile.
./src/components/NFTCreatePolygon/components/InputForm.jsx
Module not found: Can’t resolve ‘…/Truffle/build/nft_create.jsx’
Hi joteo,
You’re right: file was at that position in file-tree , but ignored by .gitignore !
I have replaced and renamed it to abi.jsx in same folder as InputForm.jsx …
Success!
Thank you, it looks awesome
when am done with this tutorial, can i use the clone for commmercial purposes
Hey guys, is there a way to “batch call” a smart-contract function in 1 transaction with Moralis or web3? Or the only solution is to create a proxy contract?
Thanks in advance!
Also, thanks for the nice minting addition @CasNWK ! I might grab it as well
HELP PLEASE I posted the problems I am having here ethereum-boilerplate-NFT-Marketplace please check out so I don’t repost same info in here and get hit for spam.
You can see the Create Market Item transaction went through but the boilerplate is not showing the NFT for sale and I cant buy it from another https://testnet.snowtrace.io/address/0x2ff7aa3fc6b24277376860523e3702f01cd930f8
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.
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 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
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
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…
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");
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