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