createServerWallet

Create a server wallet.

Example

import { Engine } from "thirdweb";
const serverWallet = await Engine.createServerWallet({
client,
label: "My Server Wallet",
});
console.log(serverWallet.address);
console.log(serverWallet.smartAccountAddress);
function createServerWallet(
): Promise<{ address: string; smartAccountAddress?: string }>;

Parameters

The parameters for the server wallet.

Type

let params: { client: ThirdwebClient; label: string };

Returns

let returnType: Promise<{
address: string;
smartAccountAddress?: string;
}>;

The server wallet signer address and the predicted smart account address.