Pin a File to Pinata & Connect IPFS Desktop with Pinata

Pin a File to Pinata & Connect IPFS Desktop with Pinata

Pinning a file to Pinata for the IPFS network is useful to make sure that your file is always available. If you upload a file via the Pinata web interface, it is automatically pinned and stored on a Pinata server. If you use the IPFS Desktop program on your home computer, files that are not pinned will not be accessible when your computer is switched off. In this article, we will show you the advantages of Pinata, how you can link IPFS Desktop with Pinata and, of course, how you can create the required Secret Access Token at Pinata.

Since we already created a tutorial for you in a previous article where we show you how to add a file to Pinata, we will skip this step. However, we would like to draw your attention to something:

Files on Pinata are automatically pinned

Files on Pinata are automatically pinned, and if you don’t want the file to be pinned, you can “unpin” it, but you can’t necessarily undo this step (at least not in the free version). Your uploaded file is located on a server (node), which does not want to make its space available for “garbage” and because of this regularly empties its space. It then deletes what is not pinned. If you have unpinned your file, you can upload the file again and it will be pinned automatically. Another way is via IPFS Desktop. If you have connected both, you can control via IPFS Desktop which files should be pinned at Pinata and which not.

What are the advantages of using Pinata’s Pinning service?

As we just mentioned, there is a kind of cleaning mechanism in IPFS, which is also called garbage collector. If the garbage collector is active on a node, all unpinned files are deleted from a node. One reason for this is to effectively utilize storage capacity. In this sense… If you want to make a file available to the IPFS network that should always be accessible, pinning it via Pinata’s pinning service certainly makes sense, because its servers are usually active all the time. If you want to be even more sure that your file will not get lost, just pin your file not only to Pinata, but also within the IPFS Desktop, for example. How to connect the two is explained below.

Advantages of pinning a file to Pinata are the following:

  • Ability to quickly retrieve your file,
  • technical redundancy to ensure the availability of your file even if your node is inactive,
  • manageable costs when using the Pinata pinning service, even with a large number of large files,
  • more storage space,
  • reduction of your own administrative work.

The more often a file is pinned to different nodes, the more certain it is that the file will remain available to the network. Now we would like to show you how to connect IPFS Desktop with Pinata.

Connecting IPFS Desktop with Pinata – Instructions

While preparing for this article, we uploaded a dark logo of PayPodo to Pinata and also to IPFS Desktop. To learn how to make files available to the IPFS network via IPFS Desktop, click here (link). For the connection between IPFS Desktop and Pinata you need a Secret Access Token. Since we don’t have one yet, we’ll show you that first:

Create secret access token (1)

Log in to Pinata to create your keys. Then click on your “picture” in the top right corner. Now click on “+ New Key”.

Create secret access token (1):

Create secret access token (2)

Here you can make your desired settings and choose a name for the key at Key Name. Then click on “Create Key”.

Create secret access token (2):

The image that follows is secret. API Secret & JWT (the Secret Access Token) remain your secret. Copy the data and save it in a safe place.

Now we connect to Pinata.

Connect IPFS Desktop with Pinata – Step 1

In IPFS Desktop go to Settings and select “+Add Service”.

Connect IPFS Desktop with Pinata – Step 2

Select “Pinata”.

Connect IPFS Desktop with Pinata – Step 3

Now you will be asked for your Secret Assess Token. Paste it into the predefined field to allow a connection and click “save”.

Connecting IPFS Desktop to Pinata -Step 3

Connect IPFS Desktop with Pinata – Step 4

IPFS Desktop is now connected with Pinata.

Select pinning service on IPFS Desktop

If we go to Files after this procedure, we see that our “PayPodo Darl-Logo.png” has an icon in the Pin Status column indicating that it is pinned to Pinata. With IPFS Desktop, it’s not basically set to automatically pin an upload to your node. As a result, I’ll now show you where within IPFS Desktop you can select your desired pinning service.

Click on the three dots in the line of your file and then on “Set pinning”.

Set pinning 1

Select the pinning service you want to use. In our case we also select “Local node”. Then click on “Apply”.

If a file is pinned only on your local node, you will see only the icon of a pin without a cloud in the line of the file. As already mentioned above, you can control from IPFS Desktop very well what should be pinned at Pinata and what not. If you pin something to Pinata within IPFS Desktop, please check in Pinata if the transfer of the information has already taken place before you disable your IPFS Desktop.

We note that pinning at Pinata saves resources of your node, but for more security in terms of availability, connecting multiple pinning services is beneficial.

Table of Content

Mastercard
VISA
SEPA
SWIFT
PCI Security Standards Council
Mastercard
VISA
SEPA
SWIFT

PCI Security Standards Council

Subscribe to our newsletter and get all the latest news as a PayPodo insider!

Would you like to receive all the latest news from PayPodo? Then you’ve come to the right place! Register today and don’t miss anything anymore!

PayPodo operates under CustomHash AG, a company registered in Germany with Legal Entity Identifier 391200VTCFSYUNN7YA32 and with offices at Oberwallstraße 6/4, 10117 Berlin, Germany. CustomHash AG (Certificate) is an authorized Electronic Money Institution intermediary of Verified Payments UAB (Licence No. 27), which is a licensed Electronic Money Institution supervised by Bank of Lithuania under the Electronic Money Regulations.