Pinata Blog Graphic 02_Connie Digital IPFS NFT
QmNwf1y29tTCfCDUnRGk2xVTxskoFCR8cEx4Ss8rdqrHKY

How to Create NFTs with IPFS and Digital Art

Connie Digital
Apr 14, 2020 · 4 min read

If you’ve been around the crypto space for the last 2 years then you’ve likely heard of Non Fungible Tokens (NFTs).

In short, NFTs are unique tokens that establish ownership among digital items (artwork, event tickets, game assets, etc.) which are easily traded peer-to-peer across a blockchain. You can learn more about NFTs here.

One popular NFT use case involves creating digital scarcity for digital artwork. In this post you’ll learn how artists (and creators more broadly) can use Pinata to pin artwork on the InterPlanetary File System (IPFS) when minting NFTs.

IPFS, CIDs and Pins

On IPFS, each file added to the system is identified using a content identifier (CID). Every unique file will have a unique CID. This allows someone to retrieve a particular piece of content by providing the CID of the desired file. When an artist adds a file to IPFS, the system will use the content of that file to create a unique hash; a digital fingerprint of the file.

It’s important to note that IPFS nodes treat stored data like a cache, meaning there is no guarantee the data will continue to be stored unless the CID is pinned. Pinning a CID is a way to tell an IPFS server that this data is important and should be retained long-term. Pinning is like saying,

“I’m important. Don’t delete me!”

To ensure important data is not discarded, pinning service providers such as Pinata exist to guarantee that data remains pinned. For artists, this means their NFT collectors are always able to access the original file of the artwork.

Here’s how an artist would accomplish this using OpenSea Storefronts and Pinata’s pinning service.

Pinning Artwork on IPFS

The first step is to log into Pinata and navigate to ‘Pinata Upload.’

On the upload file screen, click ‘Browse’ to locate and select the desired file. In this case, the file is an artwork PNG. Next, choose a custom name for the pin.

Note: custom naming is optional if you wish to name the pin something different than the original file name. Custom names are only for keeping track of things on Pinata. The actual name on IPFS will always be the original file name.

Pinata Connie Digital IPFS NFT Art
Pinata Connie Digital IPFS NFT Art

Next, click the ‘Preserve filename (wrap with directory)’ button to maintain the same filename across IPFS. Finally, click ‘Upload’ and wait for the system to confirm. After successfully uploading the file, head over to ‘Pin Explorer.’

The ‘Pin Explorer’ page is where file details are found, including: hashes (CIDs), file sizes and pinning status. In the screenshot below, you’ll notice the green indicator confirming the file is ‘Currently Pinned’ on IPFS.

Connie Digital IPFS NFT Art
Connie Digital IPFS NFT Art

Clicking on the IPFS Hash will open a new window where the file is stored. If you’ve not selected to ‘Preserve filename (wrap with directory)’ then simply copy this URL and head over to OpenSea Storefronts. If you have selected to ‘Preserve filename (wrap with directory)’ then you’ll need to grab the URL by clicking on the file name from the directory page. Copy it and head over to OpenSea Storefronts.

Connie Digital IPFS NFT Art
Connie Digital IPFS NFT Art

Minting NFT Art

Click ‘Create’ and begin uploading the artwork. Next, fill out the ‘Name’ and ‘Description’ fields with the name of the artwork and the artist statement.

Pinata Connie Digital IPFS NFT Art OpenSea
Pinata Connie Digital IPFS NFT Art OpenSea

In the ‘External Link’ field, paste the URL that was copied earlier. Adding the URL in this field links the NFT to the corresponding pinned file on IPFS.

Connie Digital IPFS NFT Art
Connie Digital IPFS NFT Art

Finally, click ‘Submit’ and sign the transaction to mint the NFT.

And done!

Congrats, you now know how to pin artwork on IPFS and mint a corresponding NFT. 😀 By using this combination of Pinata and OpenSea, artists minting on personal smart contracts can ensure persistence.

Further reading:

Learn more about my NFT Art:

Pinata

The Easiest Way to Use IPFS

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store