Cloning OpenSea NFT Boilerplate Questions

Hey man use this one

{
				"indexed": true,
				"internalType": "uint256",
				"name": "itemId",
				"type": "uint256"
			},
			{
				"indexed": true,
				"internalType": "address",
				"name": "nftContract",
				"type": "address"
			},
			{
				"indexed": true,
				"internalType": "uint256",
				"name": "tokenId",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "seller",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "owner",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "uint256",
				"name": "price",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "bool",
				"name": "sold",
				"type": "bool"
			},

		"name": "MarketItemCreated",
		"type": "event"
	},

seems like you’re missing a comma before name

sorry dont want to post links in here but if u looj=k on yt you will see them> while there are other optiions that have a more complete front end just keap in mind that on the data base side moralis is hands down the best,

Thanks a lot for your help, That’s what I did

description: Market Item Created
topic
MarketItemCreated ( uint, address, uint256, address, address, uint256, bool);
abi
			{
				"indexed": true,
				"internalType": "uint256",
				"name": "itemId",
				"type": "uint256"
			},
			{
				"indexed": true,
				"internalType": "address",
				"name": "nftContract",
				"type": "address"
			},
			{
				"indexed": true,
				"internalType": "uint256",
				"name": "tokenId",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "seller",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "owner",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "uint256",
				"name": "price",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "bool",
				"name": "sold",
				"type": "bool"
			},
		"name": "MarketItemCreated",
		"type": "event"
	},
address 0xc2cc3f7ccFA96CF8f447216a631Dd96846076F90
tableName CreatedMarketItem

but I got the same message Invalid ABI, please verify

ohhh my bad remove that trailing comma on the last line :raised_hands:

I really appreciate your help, but I got the same error message Invalid ABI, please verify

what changes did you made?

description: Market Item Created
topic
MarketItemCreated ( uint, address, uint256, address, address, uint256, bool);
abi
			{
				"indexed": true,
				"internalType": "uint256",
				"name": "itemId",
				"type": "uint256"
			},
			{
				"indexed": true,
				"internalType": "address",
				"name": "nftContract",
				"type": "address"
			},
			{
				"indexed": true,
				"internalType": "uint256",
				"name": "tokenId",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "seller",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "address",
				"name": "owner",
				"type": "address"
			},
			{
				"indexed": false,
				"internalType": "uint256",
				"name": "price",
				"type": "uint256"
			},
			{
				"indexed": false,
				"internalType": "bool",
				"name": "sold",
				"type": "bool"
			},
		"name": "MarketItemCreated",
		"type": "event"
	}
address 0xc2cc3f7ccFA96CF8f447216a631Dd96846076F90
tableName CreatedMarketItem

I do remove that trailing comma on the last line

niceee!

hmmm but wait seems like you’re missing one more bracket in the beginning, maybe that’s it?

Hi IAmJaysWay,

Thanks as always for replying. I’ve revisited this project after leaving it for a while and am still stumped on this error. I have attempted executing the createMarketItem function in Remix, but the result is still similar to that found when listing an NFT in the app (specifically, in Remix the listing transaction says it fails in MetaMask, but a PolygonTransaction is still received in the Moralis Dashboard anyway). In addition, I’ve tried making a few changes to the Sync event and none have yielded a successful result.

As a reminder, I am able to successfully perform a transaction with MetaMask to list an NFT and receive PolygonTransaction objects in the Moralis Dashboard whenever I want to list an NFT. However, no MarketItemCreated event object ever appears in the CreatedMarketItems table.

My Sync Event is shown in the images below:



I’ve been able to study the object that is returned after a successful transaction. From this I’ve found that the “event” attribute in the only object inside the “events” array is undefined, as shown in the image. I was wondering if this “event” attribute should not be undefined on an successful listing of an NFT?

I am having this error when loading the dapp

npm WARN tarball tarball data for ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git (null) seems to be corrupted. Trying again.

Hey, I had the same issue and you helped me a lot. I had to change names and it worked however I still experience @Apap 's issue of getting the NFT out on the Explore tab. I’m using Binance’s mainnet and I sold an NFT that I bought on some marketplace, it went into the contract, transactions are displayed, everything works just fine except the Explore Tab, my NFT doesn’t appear there

I do added one more bracket ({) in the beginning, but still the same error message

I didn’t see anything in my “Your Collections” tab. even I can’t but anything from Explore market. it shows This NFT is currently not for sale.

I don’t know what is the problem.

Please do the needful.

Thank you.

you need first to have some NFT in your wallet, then you can see them under your collection, and then you can list it for sale and then it will display on the Marketplace and then anyone can buy it and then you got your money in your wallet :slight_smile:

Hi, thanks for your reply. i have 2.5 matic in my wallet.

please try following and see:
Description: MarketItemCreated
Topic: MarketItemCreated ( uint , address, uint256, address, address, uint256 , bool )
Abi: {
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “uint256”,
“name”: “itemId”,
“type”: “uint256”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “nftContract”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “address”,
“name”: “seller”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “address”,
“name”: “owner”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “price”,
“type”: “uint256”
},
{
“indexed”: false,
“internalType”: “bool”,
“name”: “sold”,
“type”: “bool”
}
],
“name”: “MarketItemCreated”,
“type”: “event”
}

Address: 0xa3dDf4B68CCda6c9CB35AE1962c60aA5cb226E90
TableName: MarketItems

if you are in Polygon Mumbai

1 Like

Not the amount, you have to have NFT in your wallet at first :slight_smile:

1 Like

Thanks again. how can i add NFT to my wallet.

Please guide me to solve this.

Thank you.

i saw the following in collections.js

“0x13881”: [

{

  image:

    "https://lh3.googleusercontent.com/BWCni9INm--eqCK800BbRkL10zGyflxfPwTHt4XphMSWG3XZvPx1JyGdfU9vSor8K046DJg-Q8Y4ioUlWHiCZqgR_L00w4vcbA-w=s0",

  name: "Test Mages",

  addrs: "0x275d553f426355c20b134D944B5b28D31CDb83DA",

},

{

  image:

    "https://ipfs.moralis.io:2053/ipfs/QmfLbpeVHxReWKNLaXTPcWiafi49eoAL4gRwMGuXtx2Eqe/images/14.png",

  name: "Pixel Show",

  addrs: "0xCA34404dD8Bd6537BE76F3A51B379F8949bD7973",

},

],

How to create my own collections and add here.

Well there are many ways you can add them, by minting yourself or I think Moralis give some test for free (I don’t know) you have to ask them, but better choice there are a lot tutorials in YouTube on how to generate NFT and then deploy it yourself here is excellent and easy tutorial if you want complete all your own market :slight_smile:

The Stripes NFT - YouTube