Cloning OpenSea NFT Boilerplate Questions

@ivan can I hire you :slight_smile:

Hey, I am having an issue with the NFT not being displayed at all, I have fully completed the tutorial and everything else works, but the NFT’s still do not show under the NFT Tab. How can I add them, I could not find anything in the video that shows the steps of the NFT’s being added.

Also is there a possibility if I would want to add the NFT’s directly by myself I can do that?

I have tried debugging, used different versions, but still no avail. The past tutorials do lead to many bugs, and conflicts due to updates, but I did follow the most recent one and I am experiencing the issue with this one.

Any help will be greatly appreciated, thank you!

This is absolutely amazing! The one thing im trying to figure out before i begin this journey to cloning OpenSea or Rarible, is whether I’m able to deploy on another blockchain other than those found on Moralis. I’m trying to deploy on Fuse Network specifically.

One last thing, when i go to list an NFT i am getting a gas estimation error in metamask. Shows 0.4+ BNB. Everything else worked itself out but i am having this issue while trying to test the listing function

do you have enough BNB in your account when trying to execute that transaction?

Figured it out, had to approve the marketplace contract to use the token beforehand. Is there a simple way to execute that during the market creation? or would that need to be a separate thing altogether

After cloning the final code repo, I ran npm install and installed the dependencies, changed the .env.example to .env and assigned my AppID and ServerURL values from my Moralis account. Now, when I run npm start I get this React error on my browser: “Error: A cross-origin error was thrown. React doesn’t have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.”.

I tried Cleaning my local storage in Dev Tools from Chrome but nothing. What am I doing wrong? Here I leave the github repo which I cloned

1 Like

I cloned the final code of this tutorial. NFTs not working on testnet (rinkeby). When I try to show a collection of a testnet in Rinkeby it doesnt load anything or it gives me “Unhandled Rejection (TypeError): Failed to fetch”. Ethereum mainnet collections work just fine. Also, my NFTs in rinkeby dont show here, but they do on OpenSea testnet. My Moralis server is set in the project and I set it up as Rinkeby when I created it. Why is this happening? Thanks

1 Like

Having the same issue here. I think that is an issue that needs to be investigated by the team.
my problem:

is your problem due to Rinkeby network not working but working on Mainnet? that seems to be my issue but im not sure if your problem is related to this. maybe i missed something tho

Hmmm not sure - I thought they may be linked

1 Like

Hi all,

The team knows about some cases where they may be occasional issues with fetching NFT images and are working on fixing these, but you can also expect some error handling updates to be pushed to the boilerplate soon to make it a bit more user-friendly :slight_smile:

can you give examples NFTs that are on OpenSea and you don’t see? Did you try with web3api to see if there is data for those NFTs?

For example, the crypto dino collection on the testnet (contract: “0xcC14dd8E6673fEE203366115D3f9240b079a4930”) is not showing. Also, OpenSea testnet shows my NFTs that I minted from the smart contract I am working on. None of these are showing on my NFT Balances section of the clone Dapp. In fact, I never got to see anything there.

I havent tried web3api for checking data in those NFTs since I dont know exactly how to do that but there is data on those NFTs, I can see that on OpenSea (testnet)

Thank you

it looks like this works:

x = await Moralis.Web3API.token.getTokenIdMetadata({address:"0xcc14dd8e6673fee203366115d3f9240b079a4930", token_id: "620", chain: "rinkeby"})

=>

{
    "token_address": "0xcc14dd8e6673fee203366115d3f9240b079a4930",
    "token_id": "620",
    "block_number_minted": "9771525",
    "owner_of": "0x22b076afa91747d945cffbf7be3fd58ead57a02c",
    "block_number": "9772281",
    "amount": "1",
    "contract_type": "ERC721",
    "name": "Crypto_Dino",
    "symbol": "CDNO",
    "token_uri": "https://ipfs.moralis.io:2053/ipfs/QmNe2Jxm3aqVmByTMdud3z2pDiAYARBfLTEFg1Z7iiK3rj/620.json",
    "metadata": null,
    "synced_at": null,
    "is_valid": 0,
    "syncing": 1,
    "frozen": 0
}

this means that it may not be an issue related to web3api not returning that data

I followed to do everything with Youtube, but when i tried to sell nft with transaction fee , nothing happened on CreatedMarketItems on moralis, ( of course i made smart contract with the code in repo https://github.com/ethereum-boilerplate/ethereum-nft-marketplace-boilerplate/blob/main/src/contracts/marketplaceBoilerplate.sol)

please help me !!! i have struggled with the issue since a week ago

1 Like

Hi @lion33,

The CreatedMarketItems table should update any time you make a transaction with the smart contract with the createMarketSale function. So I would first try putting an NFT for sale through e.g. Remix if you deployed the smart contract there. If this still doesn’t update your CreatedMarketItems table, there is most likely something to fix with your Sync event on the Moralis server where you watch for createMarketSale events to occur.

Hope this helps!

Is possible to set the NFT to purchase with different tokens, ETH, USDC, on ETH, or on polygon Matic, DAI, and custom token.

Hey @joop,

Yeah you can do this, you’ll just need some solidity knowledge for this to be able to set the desired token as the required token for purchasing the NFT put up for sale :slight_smile:

1 Like

is there any method to add NFT Details page or Popup?