Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 562 Bytes

config.mdx

File metadata and controls

30 lines (19 loc) · 562 Bytes
title
Config

Overview of the Files 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.