🔐
Trust Enterprises
  • Getting Started
  • Intro video course
    • Introduction of the Trust Enterprises project [2:16]
    • Deployment of your first Serverless client [6:29]
    • Using Postman with the Trust Enterprises API [6:33]
    • Installation of the Trust Enterprises Laravel package [7:51]
    • Basic interaction with your client with Laravel. [10:28]
  • Deployment
    • Vercel
    • Environment Variables
    • Github Actions
  • REST API
    • Overview
    • Inscriptions
      • Deploy an Inscription
      • Mint an Inscription
      • Burn an Inscription
      • Transfer an Inscription
    • NFT Ecosystem
      • Create an NFT Collection
      • Generate Metadata
      • Mint an NFT
      • Transfer an NFT
      • Claiming NFTs through Passes
    • Accounts
    • Tokens
      • Create a token
      • Bequesting a token
      • Token Holdings and Balance
    • Topics
      • Get topic info
      • Creating a new topic
      • Updating a topic
    • Consensus Messages
    • Balance
    • Status
    • Webhooks
  • The Laravel Client
    • Overview
    • Installation
    • Interacting with your client
    • Create a Marketplace
    • Manage your Inscription Flow
    • Checking account balances and sending tokens
  • Contributing
    • Local Development
      • Architecture Rationale
    • Contributing Guidelines
    • Changelog
  • Links
    • Github
    • Trust Enterprises
    • Postman Documentation
    • Hedera Network Status
    • Remote Software Development
Powered by GitBook
On this page
  • Overview
  • Environment Variables

Was this helpful?

  1. REST API
  2. NFT Ecosystem

Generate Metadata

Helping you to generate and pin HIP412 compliant metadata for your minted NFTs in your collection inside of IPFS through NFT storage.

PreviousCreate an NFT CollectionNextMint an NFT

Last updated 1 year ago

Was this helpful?

Overview

Metadata is what we refer to as a structure , to ensure that it is processable for down-stream clients such as wallets like . 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, or 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.

Environment Variables

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

Headers

Name
Type
Description

x-api-key*

String

The API_SECRET_KEY from the client's environment variables.

Request Body

Name
Type
Description

{}*

json

Compliant HIP412 JSON structure

{
    // Response
}
{
    // Response
}
{
    // Response
}
Environment Variables
that conforms to HIP412
Hashpack
tools provided by filebase
using NFTup
Basic metadata to generate CID