Docs

Client

A client is the entry point to the thirdweb SDK. It is required for all other actions.

Create a client

For "client-side" usage

import { createThirdwebClient } from "thirdweb";
const client = createThirdwebClient({
clientId: "<your_client_id>",
});

For "server-side" usage

import { createThirdwebClient } from "thirdweb";
const client = createThirdwebClient({
secretKey: "<your_secret_key>",
});