How to upload NFT metadata to IPFS for free

IPFS is natively integrated into Tatum and completely free to use. Learn how to store your NFT metadata in a few clicks.

Antonis Kazoulis
Tatum
3 min readNov 22, 2021

--

If you’re creating NFTs, you’ll need to store your NFT metadata (pictures, videos, audio files) in a secure, distributed database so it will always be connected to your NFTs. Metadata is what gives an NFT its unique value and is essentially what the NFT represents.

Following our video tutorial on how to upload NFT metadata to IPFS, we’ll show you how to do everything, step by step, in this guide. Follow these simple steps to easily store your NFT metadata on IPFS for free, for files up to 50 MB.

What is IPFS?

The InterPlanetary File System is a protocol and P2P network for storing and sharing data. Once data has been uploaded to IPFS, it cannot be altered and will live on in the decentralized storage database forever. For this reason, it’s an ideal place to store your NFT metadata.

Step 1: Store data

What’s important to note is that there are a couple of steps and a sequence of actions for storing your metadata. First, you upload the data on IPFS, then create a JSON scheme that references the uploaded file, then upload the JSON scheme to IPFS, and then include the IPFS hash of the JSON scheme in the NFT when you mint it.

Put simply, the NFT points to the metadata JSON, and metadata JSON points to the content you are actually attaching to the NFT.

Firstly, use the following API call to upload your metadata to IPFS:

What you need to do next is use the link/hash generated by the request and create a metadata JSON file that references it.

Step 2: Create a JSON metadata scheme

A JSON metadata scheme usually includes name, description, and image fields and looks like this:

The name should be the name of your NFT, the description should be a brief explanation of what the content is about, and the image will be the IPFS hash generated from the previous step. Don’t let the name “image” confuse you. This is the place you would upload the metadata hash for a video, image, audio file, or whatever else you want to include in your NFT.

Additionally, it would be good to preface the hash with “ipfs://” for future reference. You can then save the JSON file.

Step 3: Upload your saved JSON metadata scheme to IPFS

Using the same API call as step 1, you will then upload the saved JSON file and that will, in turn, generate another IPFS hash. This new hash is the one you can include in the “URL” field of the mint NFT API call when you want to mint a new NFT.

For a more detailed breakdown of the process, you can always refer to the dedicated guide in our how-to content library.

That’s a wrap!

You’ve just learned how to upload your NFT metadata on IPFS in a few simple steps.

If you want to dive deeper into what you can do using Tatum, we’d recommend checking out our:

Don’t forget to follow us on our Linkedin and Twitter to keep up with our news, and if you need any help along the way, please drop us a line on the Tatum Discord or subreddit.

Happy coding!

--

--

Antonis Kazoulis
Tatum
Writer for

Writing content that engages the mind and captures the imagination.