IPFS SDK
Getting Started
Get up and running with the IPFS SDK
The Pinata Typescript SDK is an all-in-one tool for everything you might need, from uploading content, using Dedicated Gateways, even user or group management!
1. Installation and Setup
Install with your package manager of choice
Import and initialize the SDK in your codebase with the following variables
The
PINATA_JWT
is a secret key, be sure to initialize the SDK in a secure environment and practice basic variable security practices. If you need to upload from a client environment, consider using signed JWTs2. Upload a File
This will return an object like the following
3. Retrieve a File
Use the CID or IpfsHash
from the upload to fetch a file