ParaManager Class
The ParaManager
class provides a Swift interface for the Para SDK, managing wallet operations, authentication, and
transactions.
Properties
The current wallet associated with the ParaManager.
The current session state of the Para SDK.
The environment configuration for the Para SDK.
The API key used for authentication with Para services.
The WebKit view used for handling web-based operations.
Methods
init(environment:apiKey:)
Initializes a new ParaManager instance.
The environment to use for the Para SDK.
The API key for authentication.
Initializes the Para SDK within the WebView.
checkIfUserExists(email:)
Checks if a user exists with the given email.
Creates a new user with the given email.
The email for the new user.
login(authorizationController:)
Logs in a user using passkeys.
The authorization controller for handling passkey operations.
verify(verificationCode:)
Verifies an email using a verification code.
The verification code sent to the user’s email.
The biometrics ID associated with the verification.
generatePasskey(email:biometricsId:authorizationController:)
Generates a passkey for the user.
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.
createWallet(skipDistributable:)
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.
signMessage(walletId:message:)
Signs a message using the specified wallet.
The ID of the wallet to use for signing.
signTransaction(walletId:rlpEncodedTx:chainId:)
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.
sendTransaction(walletId:rlpEncodedTx:chainId:)
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.