Swift
CapsuleManager Class
The CapsuleManager
class provides a Swift interface for the Capsule SDK, managing wallet
operations, authentication, and transactions.
Properties
The current wallet associated with the CapsuleManager.
The current session state of the Capsule SDK.
The environment configuration for the Capsule SDK.
The API key used for authentication with Capsule services.
The WebKit view used for handling web-based operations.
Methods
Initializes a new CapsuleManager instance.
Initializes the Capsule SDK within the WebView.
Checks if a user exists with the given email.
Creates a new user with the given email.
Logs in a user using passkeys.
Verifies an email using a verification code.
Generates a passkey for the user.
Sets up two-factor authentication for the user.
Enables two-factor authentication for the user.
Checks if 2FA is set up for the user.
Creates a new wallet for the user.
Fetches all wallets associated with the user.
Signs a message using the specified wallet.
Signs a transaction using the specified wallet.
Sends a transaction using the specified wallet.
Was this page helpful?