In this guide, we will look into how you can effortlessly store the metadata of an NFT on IPFS. Note that storing the metadata on IPFS will happen during the creation of the token-type (NFT tenplate).
📘
Storing the metadata on IPFS will not allow you to update it in the future.
Prerequisutes
You already have an NFT collection (contract) created using the NFT-API. View the guide if you haven't.
contractAddress: The public address of your contract.
Request Endpoint:
HTTP
POST /api/v2/token-types/creations
Example Request
We will use the create token-type endpoint and within the request body, we will specify the storage type for the metadata.
HTTP
POST /api/v2/token-types/creations
Request Body
📘
At the very end, in the storage object, we have defined the "type": "ipfs".