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.
The environment to use for the Capsule SDK.
The API key for authentication.
Initializes the Capsule SDK within the WebView.
Checks if a user exists with the given email.
The email to check.
Whether the user exists.
Creates a new user with the given email.
The email for the new user.
Logs in a user using passkeys.
The authorization controller for handling passkey operations.
Verifies an email using a verification code.
The verification code sent to the user’s email.
The biometrics ID associated with the verification.
Generates a passkey for the user.
The user’s email.
The biometrics ID obtained from verification.
The authorization controller for handling passkey operations.
Sets up two-factor authentication for the user.
The URI for setting up 2FA in an authenticator app.
Enables two-factor authentication for the user.
Checks if 2FA is set up for the user.
Whether 2FA is set up.
Creates a new wallet for the user.
Whether to skip distributable wallet creation.
Fetches all wallets associated with the user.
An array of user wallets.
Signs a message using the specified wallet.
The ID of the wallet to use for signing.
The message to sign.
The signed message.
Signs a transaction using the specified wallet.
The ID of the wallet to use for signing.
The RLP encoded transaction.
The chain ID of the network.
The signed transaction.
Sends a transaction using the specified wallet.
The ID of the wallet to use for sending.
The RLP encoded transaction.
The chain ID of the network.
The transaction signature.
Was this page helpful?