Methods

getOrCreateWallet()

getOrCreateWallet(user, chain, walletParams): Promise<EVMSmartWallet>

Retrieves or creates a wallet for the specified user. The default configuration is a PasskeySigner with the name, which is displayed to the user during creation or signing prompts, derived from the provided jwt.

Example using the default passkey signer:

const wallet = await smartWalletSDK.getOrCreateWallet({ jwt: "xxx" }, "base");

Parameters

ParameterType
userUserParams
chainEVMSmartWalletChain
walletParamsWalletParams

Returns

Promise<EVMSmartWallet>

Defined in

packages/client/wallets/smart-wallet/src/SmartWalletSDK.ts:70


init()

static init(__namedParameters): SmartWalletSDK

Initializes the SDK with the client side API key obtained from the Crossmint console.

Parameters

ParameterType
__namedParametersSmartWalletSDKInitParams

Returns

SmartWalletSDK

Throws

error if the api key is not formatted correctly.

Defined in

packages/client/wallets/smart-wallet/src/SmartWalletSDK.ts:33