ParaManager Class

The ParaManager class provides a Swift interface for the Para SDK, managing wallet operations, authentication, and transactions.

Properties

wallet
Wallet?
The current wallet associated with the ParaManager.
sessionState
ParaSessionState
The current session state of the Para SDK.
environment
ParaEnvironment
The environment configuration for the Para SDK.
apiKey
String
The API key used for authentication with Para services.
webView
WKWebView
The WebKit view used for handling web-based operations.

Methods

init(environment:apiKey:)
Function
Initializes a new ParaManager instance.
initPara()
Function
Initializes the Para SDK within the WebView.
checkIfUserExists(email:)
Function
Checks if a user exists with the given email.
createUser(email:)
Function
Creates a new user with the given email.
login(authorizationController:)
Function
Logs in a user using passkeys.
verify(verificationCode:)
Function
Verifies an email using a verification code.
generatePasskey(email:biometricsId:authorizationController:)
Function
Generates a passkey for the user.
setup2FA()
Function
Sets up two-factor authentication for the user.
enable2FA()
Function
Enables two-factor authentication for the user.
is2FASetup()
Function
Checks if 2FA is set up for the user.
createWallet(skipDistributable:)
Function
Creates a new wallet for the user.
fetchWallets()
Function
Fetches all wallets associated with the user.
signMessage(walletId:message:)
Function
Signs a message using the specified wallet.
signTransaction(walletId:rlpEncodedTx:chainId:)
Function
Signs a transaction using the specified wallet.
sendTransaction(walletId:rlpEncodedTx:chainId:)
Function
Sends a transaction using the specified wallet.