DEV Community

Cover image for How to Save the Data in IPFS Using the Pinata(2023)
Jerome Pangilinan
Jerome Pangilinan

Posted on • Edited on

How to Save the Data in IPFS Using the Pinata(2023)

Hello Everyone! Thank you for your interest in my article.
This is Crypto Ninja's first article.
And I hope my experience will help you.

In this guide you'll learn how to create Pinata public and private Api keys and secret keys. We'll also look at how to use these keys in NFT Marketplace.

Generally, developers save data in IPFS using the Infura.
But we can save the data using the Piñata.
If we use Piñata API, first we have to create account in Piñata Cloud.
If you create a piñata cloud account, you can see a screen as follows.
Image description

And then let's create API Keys.
First click "Api keys" button on left slider bar and then click "New Key" button on right top.
You can see a screen as follows.

Image description

Type key name in "Key Name" field and then click "Create Key" button.
Now is important.
Image description

You can see three keys.(API Key, API Secret, JWT).
You have to copy and save these!


We just created piñata cloud account and API key, Secret key and JWT.
To be next, let's see how to use them.

Image description

This is the Pinata.ts file.

Image description

This is the part that use Pinata API Key, Secret Key and JWT.

Image description

Image description
Here is the repo
Until here, we saw how to create piñata cloud account and API Key, Secret Key and JWT and then how to use these Keys.
Thank you again for your time to read my article.

Top comments (8)

Collapse
 
pottoku profile image
Jason Aloyan

It really helped me

Collapse
 
vriusninja profile image
Kendy Wong

Your article is very useful.

Collapse
 
cryptoninja1210 profile image
Jerome Pangilinan

Thank you.

Collapse
 
jellyfish9629 profile image
jellyfish9629

Wow. Excellent, Brilliant, In a nutshell, your first blog is very good. Will see your after life successful. Good luck.
Image description

Collapse
 
sweetcoding115 profile image
Happy Coding • Edited

Congratulations on successfully building your first Open Source idea ! It's impressive to see how you did it in a short time. Your blog post provides valuable insights into your journey and the challenges you faced. Keep up the great work, and I look forward to seeing your future article!
Image description

Collapse
 
cryptoninja1210 profile image
Jerome Pangilinan

Thank you for your image.

Collapse
 
aokinorio profile image
AokiNorio

Thank you, Ninja.
It's so helpful. I hope your next article.

Collapse
 
cryptoninja1210 profile image
Jerome Pangilinan

Thank you for you reply. I will