List total storage in bytes
import { PinataSDK } from "pinata"; const pinata = new PinataSDK({ pinataJwt: process.env.PINATA_JWT!, pinataGateway: "example-gateway.mypinata.cloud", }); const pinnedFiles = await pinata.usage.totalStorageSize();
number
Total storage used in bytes