Generate Metadata
Helping you to generate and pin HIP412 compliant metadata for your minted NFTs in your collection inside of IPFS through NFT storage.
Last updated
Helping you to generate and pin HIP412 compliant metadata for your minted NFTs in your collection inside of IPFS through NFT storage.
Last updated
Metadata is what we refer to as a structure that conforms to HIP412, to ensure that it is processable for down-stream clients such as wallets like Hashpack. Upon successful validation, you will be provided a CID as a unique reference to an IPFS pin for minting NFTs.
You should handle the media uploads by default, this is handled through the tools provided by filebase, or using NFTup for directories.
Below is an example of valid metadata, but the validation has been handcrafted in the API to strictly handle many variations of HIP412, based on spec and examples.
If your JSON structure does not comply with the rules of the aforementioned HIP a status of 422 will be returned with a detailed error response on the issue.
Remember, for complete management of NFT over an API for the creation, minting, metadata generation, and advanced transfer feature you need both the NFT_STORAGE_TOKEN and MIRROR_NODE_URL set.
POST
https://hedera-serverless-consensus.vercel.app/api/nft/metadata
Generate the metadata based on a valid structure
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
x-api-key*
String
The API_SECRET_KEY from the client's environment variables.
{}*
json
Compliant HIP412 JSON structure