Storage SDK

The ThirdwebSDK class includes storage out of the box, available by using sdk.storage:

The @thirdweb-dev/storage Package

Storage is also available as it’s own package, separate from the @thirdweb-dev/sdk package.

This is useful if you want to use storage without the rest of the SDK.

npm install @thirdweb-dev/storage

Once installed, import and instantiate the ThirdwebStorage class:

import { ThirdwebStorage } from "@thirdweb-dev/storage";
const storage = new ThirdwebStorage({
secretKey: "YOUR_SECRET_KEY", // You can get one from dashboard settings
});

Configuration

Customize the behavior of the ThirdwebStorage class by passing in a custom ThirdwebStorageConfig object.