Flutter
Capsule Class
The Capsule
class provides a Flutter interface for the Capsule SDK, managing wallet operations,
authentication, and transactions.
Properties
The environment configuration for the Capsule SDK.
The API key used for authentication with Capsule services.
Optional URI to override the default JavaScript bridge.
The relying party ID for WebAuthn operations.
Methods
Constructs a new Capsule instance.
Initializes the Capsule SDK. Call this method immediately after constructing an instance.
Clears storage associated with the Capsule SDK.
Sets the email of the currently logged in user.
Gets the email of the currently logged in user, if one exists.
Logs in a user using passkeys.
Generates a passkey for the user.
Determines if a user exists with the given email address.
Creates a new user with the given email address.
Supplies email verification code obtained from prompting the user.
Sets up two-factor authentication for the user.
Turns on two-factor authentication for the user.
Checks if 2FA is enabled for the user.
Creates a wallet for the user.
Signs a message using the specified wallet.
Signs a transaction using the specified wallet.
Sends a transaction using the specified wallet.
Logs the user out.
Instructs the SDK to dispose of any resources that require explicit disposal.
Was this page helpful?