Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib

A client library for the https://nft.storage/ service. It provides a convenient interface for working with the Raw HTTP API from a web browser or Node.js and comes bundled with TS for out-of-the box type inference and better IntelliSense.

example
import { NFTStorage, File, Blob } from "nft.storage"
const client = new NFTStorage({ token: API_TOKEN })

const cid = await client.storeBlob(new Blob(['hello world']))

Index

Type aliases

CIDString

CIDString: lib/interface

Type parameters

    CarReader

    CarReader: lib/interface

    Type parameters

      Deal

      Type parameters

        Pin

        Type parameters

          Service

          Service: lib/interface

          Type parameters

            TokenType

            TokenType<T>: lib/interface

            Type parameters

            • T

            Variables

            Blob

            Blob: {} = globalThis.Blob

            Type declaration

              File

              File: {} = globalThis.File

              Type declaration

                FormData

                FormData: {} = globalThis.FormData

                Type declaration

                  Functions

                  Const toGatewayURL

                  Generated using TypeDoc