bread type
, and bakerynft.
croissant
and 30-day membership
.src
folder, then open the config.js
file in the code editor. Here, you’ll be able to name your collection, insert a custom description that will show up on OpenSea, and insert the token’s base uri (more on this later).growEditionSizeTo
can be adjusted to how many NFTs you want in your collection.config.js
file in the text editor.npm install
then hit enter. (Note: you’ll need either node and yarn installed)npm install
, a node modules folder will be created containing all of this project’s dependencies. This is necessary for it to work.node index.js
config.js
file. Don’t worry about baseuri
yet.CID
” which is used to identify our content on the interplanetary file system. Copy the CID
of the images folder you just uploaded, then head back on over to your code editor.src/config.js
file, this is where we will do some trickery. It is imperative you do not run node index.js
again unless you want to upload the images again and start over.node update_info.js
.baseUri.
config.js
, head on back to the terminal to run our node update_info.js
command and we’ll have the metadata we're looking for.external_url
: This is the URL that will appear below the asset's image on OpenSea and will allow users to leave OpenSea and view the item on your sitedescription
A human readable description of the item. Markdown is supported.name
Name of the item.attributes
These are the attributes for the item, which will show up on the OpenSea page for the item. (see below)background_color
Background color of the item on OpenSea. Must be a six-character hexadecimal without a pre-pended #.animation_url
A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA. Animation_url also supports HTML pages, allowing you to build rich experiences and interactive NFTs using JavaScript canvas, WebGL, and more. Scripts and relative paths within the HTML page are now supported. However, access to browser extensions is not supported.youtube_url
A URL to a YouTube videobaseUri
generated that we uploaded to IPFS and use this to see it all work.ren .*json *
in the build folder, removing the json file extensions for all of the files. (your mileage may vary here).setBaseTokenURI
. In the field, type ipfs://YOUR-JSON-CID-HERE/
https://testnets-api.opensea.io/asset/YOURLOCKADDRESSHERE/1/validate
to make sure OpenSea shows the right data! (Note: you’ll have to have at least a single key purchased) to view on OpenSea.