TypeScript SDK

BaseAccountSDKWalletConnectionOptions

Options for connecting to a Base Account SDK wallet.

These options are passed to the connect method when connecting a Base Account wallet to your application.

type BaseAccountSDKWalletConnectionOptions = {
chain?: Chain;
client: ThirdwebClient;
};

Example

import { createThirdwebClient } from "thirdweb";
import { createWallet } from "thirdweb/wallets";
import { base } from "thirdweb/chains";
const client = createThirdwebClient({ clientId: "..." });
const wallet = createWallet("org.base.account");
const account = await wallet.connect({
client,
chain: base,
});