Overview of the Pinata SDK Config

Usage

import { PinataSDK } from "pinata";

const pinata = new PinataSDK({
  pinataJwt: process.env.PINATA_JWT!,
  pinataGateway: "example-gateway.mypinata.cloud",
});

Parameters

pinataJwt

  • Type: string

The Pinata API JWT key that authorizes the SDK. Read more about API Keys.

pinataGateway (Optional)

  • Type: string

The domain of the Gateway included with your account. Read more about Gateways.