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.
The environment to use for the Capsule SDK.
The API key for authentication.
Optional URI to override the default JavaScript bridge.
The relying party ID for WebAuthn operations.
Initializes the Capsule SDK. Call this method immediately after constructing an instance.
Clears storage associated with the Capsule SDK.
Whether to retain the Paillier secret key.
Sets the email of the currently logged in user.
The email to set.
Gets the email of the currently logged in user, if one exists.
Logs in a user using passkeys.
Generates a passkey for the user.
The user’s email.
The biometrics ID obtained from verification.
Determines if a user exists with the given email address.
The email to check.
Creates a new user with the given email address.
The email for the new user.
Supplies email verification code obtained from prompting the user.
The verification code to verify.
Sets up two-factor authentication for the user.
The URI for setting up 2FA in an authenticator app.
Turns on two-factor authentication for the user.
The verification code for enabling 2FA.
Checks if 2FA is enabled for the user.
Creates a wallet for the user.
Whether to skip distributable wallet creation.
Signs a message using the specified wallet.
The ID of the wallet to use for signing.
The base64-encoded message to sign.
Signs a transaction using the specified wallet.
The ID of the wallet to use for signing.
The RLP encoded transaction in base64.
The chain ID of the network.
Sends a transaction using the specified wallet.
The ID of the wallet to use for sending.
The RLP encoded transaction in base64.
The chain ID of the network.
Logs the user out.
Instructs the SDK to dispose of any resources that require explicit disposal.
Was this page helpful?