Para Docs home page
1.0 (LTS)
Search Para Docs...
⌘K
Ask AI
Get Access
Get Access
Search...
Navigation
API & Troubleshooting
Swift SDK API
General
Web
Node & Server
React Native
Flutter
Swift
Community
Introduction
Overview
Mobile Examples
Setup
Setup
Guides
EVM Integration
Solana Integration
Cosmos Integration
Social Login
Session Management
Wallet Pregeneration
External Wallets
API & Troubleshooting
Swift API
Troubleshooting
On this page
ParaManager Class
Properties
Methods
API & Troubleshooting
Swift SDK API
Copy page
Swift API for Para SDK
Copy page
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.
Hide Parameters
environment
ParaEnvironment
The environment to use for the Para SDK.
apiKey
String
The API key for authentication.
initPara()
Function
Initializes the Para SDK within the WebView.
checkIfUserExists(email:)
Function
Checks if a user exists with the given email.
Hide Parameters
email
String
The email to check.
Hide Returns
exists
Bool
Whether the user exists.
createUser(email:)
Function
Creates a new user with the given email.
Hide Parameters
email
String
The email for the new user.
login(authorizationController:)
Function
Logs in a user using passkeys.
Hide Parameters
authorizationController
AuthorizationController
The authorization controller for handling passkey operations.
verify(verificationCode:)
Function
Verifies an email using a verification code.
Hide Parameters
verificationCode
String
The verification code sent to the user’s email.
Hide Returns
biometricsId
String
The biometrics ID associated with the verification.
generatePasskey(email:biometricsId:authorizationController:)
Function
Generates a passkey for the user.
Hide Parameters
email
String
The user’s email.
biometricsId
String
The biometrics ID obtained from verification.
authorizationController
AuthorizationController
The authorization controller for handling passkey operations.
setup2FA()
Function
Sets up two-factor authentication for the user.
Hide Returns
uri
String
The URI for setting up 2FA in an authenticator app.
enable2FA()
Function
Enables two-factor authentication for the user.
is2FASetup()
Function
Checks if 2FA is set up for the user.
Hide Returns
isSetup
Bool
Whether 2FA is set up.
createWallet(skipDistributable:)
Function
Creates a new wallet for the user.
Hide Parameters
skipDistributable
Bool
Whether to skip distributable wallet creation.
fetchWallets()
Function
Fetches all wallets associated with the user.
Hide Returns
wallets
[Wallet]
An array of user wallets.
signMessage(walletId:message:)
Function
Signs a message using the specified wallet.
Hide Parameters
walletId
String
The ID of the wallet to use for signing.
message
String
The message to sign.
Hide Returns
signature
String
The signed message.
signTransaction(walletId:rlpEncodedTx:chainId:)
Function
Signs a transaction using the specified wallet.
Hide Parameters
walletId
String
The ID of the wallet to use for signing.
rlpEncodedTx
String
The RLP encoded transaction.
chainId
String
The chain ID of the network.
Hide Returns
signature
String
The signed transaction.
sendTransaction(walletId:rlpEncodedTx:chainId:)
Function
Sends a transaction using the specified wallet.
Hide Parameters
walletId
String
The ID of the wallet to use for sending.
rlpEncodedTx
String
The RLP encoded transaction.
chainId
String
The chain ID of the network.
Hide Returns
signature
String
The transaction signature.
External Wallets
Troubleshooting
Assistant
Responses are generated using AI and may contain mistakes.