createWallet<
C
>(options
):Promise
<Wallet
<C
>>
Create a new wallet, can only be called on the server side
Type Parameter |
---|
C extends Chain |
Parameter | Type | Description |
---|---|---|
options | WalletArgsFor <C > | Wallet options |
Promise
<Wallet
<C
>>
A new wallet
packages/wallets/src/sdk.ts:50
getOrCreateWallet<
C
>(options
):Promise
<Wallet
<C
>>
Get or create a wallet, can only be called on the client side
Type Parameter |
---|
C extends Chain |
Parameter | Type | Description |
---|---|---|
options | WalletArgsFor <C > | Wallet options |
Promise
<Wallet
<C
>>
An existing wallet or a new wallet
packages/wallets/src/sdk.ts:31
getWallet<
C
>(walletLocator
,options
):Promise
<Wallet
<C
>>
Get an existing wallet by its locator, can only be called on the server side
Type Parameter |
---|
C extends Chain |
Parameter | Type | Description |
---|---|---|
walletLocator | string | Wallet locator |
options | WalletArgsFor <C > | Wallet options |
Promise
<Wallet
<C
>>
A wallet if found, throws WalletNotAvailableError if not found
packages/wallets/src/sdk.ts:41
static
from(crossmint
):CrossmintWallets
Initialize the Wallets SDK
Parameter | Type | Description |
---|---|---|
crossmint | Crossmint | Crossmint data (use createCrossmint to initialize) |
A new CrossmintWallets instance
packages/wallets/src/sdk.ts:21