Build your own marketplace in minutes

OpenSea provides a one-stop shop for creating your own customizable marketplace for your non-fungible token (NFT) project. Allow users to smoothly buy and sell your items, get custom stats and analytics, and earn revenue when your items get traded.


2. Adding metadata

Once you've deployed your contract, you'll need a way for each individual item to show up properly on OpenSea (as well as other websites that support non-fungible tokens). This is where off-chain metadata comes in to play! Each token identifier in your ERC721 contract will have corresponding metadata URI that returns additional important information about the item, such as the item's name, image, description, etc. To find this URI, we use the tokenURI method in ERC721 and the uri method in ERC1155. A simple example of this metadata is:

  "name": "Herbie Starbelly",
  "description": "Friendly OpenSea Creature that enjoys long swims in the ocean.",
  "image": "",
  "attributes": [...]

There's quite a lot you can do with metadata -- including adding rankings, boosts, animations, dates, and much more! We think you'll definitely want to explore it in full, so please see our dedicated metadata standards documentation for this piece of the tutorial.

What's next?

So, you've got your own metadata API. You'll need to hook it up to a token contract, so change the line here to use the URL for your API, then redeploy your contract and mint a few test items. Once you've done that, proceed to the next section for more info on viewing your assets on OpenSea.

Updated 12 days ago

2. Adding metadata

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.