Create a New Trait Template
Last updated
Last updated
Follow these steps to create a Trait Template:
Open a JSON editor such as Visual Studio Code or Sublime Text, and create a new JSON file. Alternatively, you can start with our sample JSON file.
Traits must be represented as objects with the following attributes:
value
: This field represents the value or title of the Trait (e.g., 'Background 1' or 'Sunglasses').
trait_type
: This field defines the type of the trait and is used to group a series of traits under one category. On NFT Marketplaces, the trait_type
is displayed as Attributes.
renderOrder
: This field specifies the order in which the trait should be rendered. For instance, renderOrder
0 will not show up visually on the NFT, while renderOrder
1 is typically the Background, and so on.
imageUrl
: This field provides a URL to an image of the trait, such as a background or an accessory. Learn how to generate the imageUrl
in the Media Upload section of our documentation.
Here's an example of a unique trait in JSON code, including an imageUrl
field that points to an image hosted on Arweave:
Add as many traits as needed for your collection. There is no limit to the number of traits that can be included in a Trait Template.
Save the JSON file and upload it to the Degen Engine Trait Template submission page, or send it to the API.
After following these steps, you're ready to begin minting traits.