Classes
SmartWalletSDK
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:
Parameters
Parameter | Type |
---|---|
user | UserParams |
chain | EVMSmartWalletChain |
walletParams | WalletParams |
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
Parameter | Type |
---|---|
__namedParameters | SmartWalletSDKInitParams |
Returns
Throws
error if the api key is not formatted correctly.
Defined in
packages/client/wallets/smart-wallet/src/SmartWalletSDK.ts:33