CrossmintWallets class final
Stateless convenience facade for wallet operations.
Mirrors the CrossmintWallets entry point used by the TS, Kotlin, and
Swift SDKs. For reactive state management (e.g. listening to wallet changes
in a widget tree), use CrossmintWalletController instead.
Unlike the controller, the facade does not auto-resolve signer configs.
Callers must provide fully-resolved configs (e.g. include the email address
in CrossmintEmailSignerConfig, or pre-create a device signer via
createDeviceSigner). The controller's createWallet() auto-populates
the authenticated user's email and creates device signer keys — the facade
intentionally skips this to remain stateless.
For email/phone OTP signers, pass onAuthRequired to handle OTP challenges.
For device signers, pass deviceSignerKeyStorage to enable key creation.
Constructors
- CrossmintWallets.from(CrossmintClient _client, {CrossmintSignerAuthRequiredCallback? onAuthRequired, DeviceSignerKeyStorage? deviceSignerKeyStorage})
-
Creates a CrossmintWallets facade backed by
client.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createDeviceSigner(
{DeviceSignerKeyStorage? storage, String? address}) → Future< CrossmintDeviceSignerDescriptor> - Creates a device signer descriptor.
-
createPasskeySigner(
{required String name, required CrossmintPasskeyConfig config}) → Future< CrossmintPasskeySignerConfig> - Creates a passkey signer configuration.
-
createWallet(
{required String chain, required CrossmintSignerConfig recovery, List< CrossmintSignerConfig> signers = const <CrossmintSignerConfig>[], String? owner, String? alias, List<String> plugins = const <String>[]}) → Future<CrossmintRuntimeWalletBase> - Creates a new wallet and returns a typed runtime wallet.
-
getWallet(
{required String chain, String? alias, List< String> plugins = const <String>[], CrossmintSignerConfig? recoverySigner}) → Future<CrossmintRuntimeWalletBase> - Retrieves an existing wallet and returns a typed runtime wallet.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited