Comprehensive API reference for the Para Swift SDK
The Para Swift SDK provides a comprehensive toolkit for integrating non-custodial wallet functionality, passkey-based authentication, and blockchain interactions into your native iOS applications.
ParaManager Class
The ParaManager class is the central component for managing user authentication, wallet operations, and session state.
Properties
[Wallet]
An array of Wallet objects currently associated with the authenticated user. This list is updated after operations like fetchWallets() or createWallet().
ParaSessionState
The current session state of the Para SDK (e.g., .unknown, .inactive, .active, .activeLoggedIn).
ParaEnvironment
The environment configuration for the Para SDK (e.g., .beta, .prod).
String
The API key used for authenticating with Para services.
Bool
Indicates if the ParaManager and its underlying WebView are initialized and ready to process requests.
Initialization
Function
Initializes a new ParaManager instance.
Hide Parameters
ParaEnvironment
The Para environment to use (e.g., .beta, .prod).
String
Your Para API key.
String?
Optional. Your app’s custom URL scheme (e.g., “yourapp://”). Defaults to the app’s bundle identifier. Used for OAuth and other redirection flows.
Authentication Methods
Function
Starts the authentication (signup or login) process for a user with the specified email or phone number. When a default WebAuthenticationSession is registered via setDefaultWebAuthenticationSession(_:), hosted Para One Click flows are handled automatically and the returned state’s stage will be .done.
Hide Parameters
Auth
The authentication identifier: .email(String) for email or .phone(String) for a full phone number (e.g., “+15551234567”).
Hide Returns
AuthState
An AuthState object indicating the next step in the flow (e.g., .done when hosted auth completed, .verify for new users, .login for existing users).
Function
Stores a WebAuthenticationSession that the SDK reuses for hosted login, signup, and OAuth flows.
Hide Parameters
WebAuthenticationSession?
The shared session to reuse. Pass nil to clear the default and fall back to per-call overrides.
Function
Submits the verification code (OTP) received by the user via email or SMS.
Hide Parameters
String
The verification code entered by the user.
Hide Returns
AuthState
An AuthState object, typically with stage == .signup, indicating the user is verified and needs to choose a signup method (passkey or password).
Function
Requests a new verification code to be sent to the user’s email or phone.
Function
Checks if a specific signup method (passkey or password) is available based on the current AuthState.
Hide Parameters
SignupMethod
The signup method to check (e.g., .passkey).
AuthState
The current AuthState (should have stage == .signup).
Hide Returns
Bool
true if the method is available, false otherwise.
Function
Completes the signup process for a new, verified user using the chosen method (passkey or password). This typically includes creating a passkey/password and the first wallet.
Hide Parameters
AuthState
The current AuthState (must have stage == .signup).
SignupMethod
The chosen signup method (.passkey or .password).
AuthorizationController
An ASAuthorizationController instance for handling Passkey UI operations.
WebAuthenticationSession?
Optional override for web-based authentication (e.g., password setup). Defaults to the session registered via setDefaultWebAuthenticationSession(_:).
Function
Checks if a specific login method (passkey or password) is available for an existing user.
Hide Parameters
LoginMethod
The login method to check (e.g., .passkey).
AuthState
The current AuthState (should have stage == .login).
Hide Returns
Bool
true if the method is available, false otherwise.
Function
Logs in an existing user, automatically determining and using the preferred available method (passkey or password).
Hide Parameters
AuthState
The current AuthState (must have stage == .login).
AuthorizationController
An ASAuthorizationController instance for Passkey UI.
WebAuthenticationSession?
Optional override for web-based login (e.g., password). Defaults to the session registered via setDefaultWebAuthenticationSession(_:).
Function
Logs in a user directly using their passkey.
Hide Parameters
AuthorizationController
An ASAuthorizationController instance for Passkey UI.
String?
Optional. The user’s email if known, to help filter passkeys.
String?
Optional. The user’s full phone number if known, to help filter passkeys. If both email and phone are nil, the system prompts for any available passkey.
Function
Generates and registers a new passkey for the user. Typically called during signup when authState.stage == .signup and SignupMethod.passkey is chosen.
Hide Parameters
String
The user’s identifier (email or full phone number).
String
The passkeyId obtained from AuthState.passkeyId when authState.stage == .signup.
AuthorizationController
An ASAuthorizationController instance for Passkey UI.
Function
Presents a web URL (typically for password setup/login) using a web authentication session.
Hide Parameters
String
The URL to present (e.g., authState.passwordUrl).
WebAuthenticationSession?
Optional override. Defaults to the session registered via setDefaultWebAuthenticationSession(_:).
Hide Returns
URL?
The callback URL if authentication was successful via direct callback, or nil on failure/cancellation.
Function
Initiates and handles the entire OAuth flow with the specified provider (e.g., Google, Apple, Discord).
This includes user authentication with the provider, Para account lookup/creation, and passkey setup if it’s a new Para user.
Hide Parameters
OAuthProvider
The OAuth provider to use (e.g., .google).
WebAuthenticationSession?
Optional override for handling the OAuth web flow. Defaults to the session registered via setDefaultWebAuthenticationSession(_:).
AuthorizationController
An ASAuthorizationController for potential passkey setup.
Hide Returns
Void
Returns nothing on success. Throws ParaError or other authentication-related errors on failure.
Function
Logs into Para using an externally managed wallet (e.g., MetaMask).
Hide Parameters
ExternalWalletInfo
Information about the external wallet, including its address and type.
Session Management Methods
Function
Checks if there is an active session and the user is fully authenticated (e.g., passkey/password set up).
Hide Returns
Bool
true if the user is fully logged in, false otherwise.
Function
Checks if there is any active session with Para, even if the user is not fully logged in (e.g., pending verification).
Hide Returns
Bool
true if there is any active session, false otherwise.
Function
Exports the current session for backup or transfer purposes.
Hide Returns
String
The session data as a string that can be saved and restored later.
Function
Logs out the current user and clears all session data.
Function
Gets the current user’s persisted authentication details.
Hide Returns
AuthState?
The current user’s authentication state, or nil if no user is authenticated. The ‘stage’ will be set to ‘login’ for active sessions.
Function
Manually checks and updates the current session state. This method waits for the Para WebView to be ready and updates the session state accordingly.
Wallet Management Methods
Function
Retrieves all wallets associated with the current user.
Hide Returns
[Wallet]
An array of Wallet objects associated with the user.
Function
Creates a new wallet for the authenticated user. This method initiates wallet creation and refreshes the internal wallets list. Observe the paraManager.wallets property for the new wallet.
Hide Parameters
WalletType
The type of wallet to create (e.g., .evm, .solana, .cosmos).
Bool
Whether to skip the distributable key generation step.
Function
Retrieves the email of the currently authenticated user, if available and the session was initiated with an email.
Hide Returns
String
The user’s email address.
Function
(Advanced) Distributes a new share for an existing wallet.
Hide Parameters
String
The ID of the wallet.
String
The user share to distribute.
Function
Gets the balance for any wallet type. This unified method works with all wallet types (EVM, Solana, Cosmos).
Hide Parameters
String
The ID of the wallet.
String?
Optional token identifier (contract address for EVM, mint address for Solana, etc.).
String?
Optional RPC URL (recommended for Solana and Cosmos to avoid 403/CORS issues).
String?
Optional bech32 prefix for Cosmos (e.g., “juno”, “stars”).
String?
Optional denom for Cosmos balances (e.g., “ujuno”, “ustars”).
Hide Returns
String
The balance as a string (format depends on the chain).
Function
Synchronizes required wallets by creating any missing non-optional wallet types. This should be called after successful authentication for new users.
Hide Returns
[Wallet]
Array of newly created wallets, if any.
Transfer Methods
Function
Transfers tokens using an EVM wallet. This method builds, signs, and broadcasts the transaction in one call.
Hide Parameters
String
The ID of the EVM wallet to use for the transfer.
String
The recipient address.
String
The amount to send in wei (smallest unit).
String?
Optional. The chain ID for the EVM network. If not provided, uses the wallet’s default chain.
String?
Optional. Custom RPC URL for the transaction. If not provided, uses the default RPC for the chain.
Hide Returns
TransferResult
A TransferResult object containing transaction details.
Hide Note
This method is only available for EVM wallets. Solana and Cosmos wallets must use signing methods only.
Signing Methods
Function
Signs an arbitrary message using the specified wallet.
Hide Parameters
String
The ID of the wallet to use for signing.
String
The raw message string to sign. The SDK will Base64-encode this string before signing.
Int?
Optional. Timeout for the signing operation in milliseconds.
Hide Returns
SignatureResult
A SignatureResult object containing the signature and metadata.
Function
Signs a transaction object using the specified wallet. The method accepts any Encodable transaction type (EVMTransaction, SolanaTransaction, CosmosTransaction) and handles chain-specific formatting internally.
Hide Parameters
String
The ID of the wallet to use for signing.
Encodable
The transaction object to sign. Can be EVMTransaction, SolanaTransaction, or CosmosTransaction.
Int?
Optional. Timeout for the signing operation in milliseconds.
Hide Returns
SignatureResult
A SignatureResult containing the signed transaction. For EVM, this includes the complete RLP-encoded transaction in signedTransaction. For Solana/Cosmos, if only a signature is available (e.g., pre-serialized transactions), it’s provided in signedTransaction. Use result.transactionData (computed property) to get the value for broadcasting.
For EVM transactions, the returned SignatureResult contains the complete RLP-encoded transaction ready for broadcasting via eth_sendRawTransaction.
Function
Signs an RLP-encoded EVM transaction string using the private key of the specified wallet. This method is maintained for backward compatibility.
Hide Parameters
String
The ID of the EVM wallet to use for signing.
String
The RLP-encoded transaction as a hex string. The SDK will Base64-encode this string.
String
The chain ID of the EVM network.
Int?
Optional. Timeout for the signing operation in milliseconds.
Hide Returns
String
The resulting transaction signature as a hex string.
Two-Factor Authentication (2FA) Methods
Function
Initiates the setup process for 2FA.
Hide Returns
TwoFactorSetupResponse
Returns .alreadySetup if 2FA is already configured, or .needsSetup(uri: String) containing the URI to be displayed in an authenticator app (e.g., as a QR code).
Function
Enables 2FA for the user after they have scanned the URI and entered the code from their authenticator app.
Hide Parameters
String
The 2FA code from the user’s authenticator app.
MetaMaskConnector Class
The MetaMaskConnector class enables integration with MetaMask wallet for external wallet operations and authentication.
Properties
Bool
Indicates whether the connector is currently connected to MetaMask.
[String]
Array of connected MetaMask account addresses.
String?
The current chain ID from MetaMask (e.g., “0x1” for Ethereum mainnet, “0xaa36a7” for Sepolia).
Initialization
Function
Initializes a new MetaMaskConnector instance.
Hide Parameters
ParaManager
The ParaManager instance.
String
Your app’s URL scheme for deep link callbacks.
MetaMaskConfig
Configuration object containing app metadata.
Methods
Function
Processes incoming deep link URLs from MetaMask responses.
Hide Parameters
URL
The incoming URL to process.
Function
Initiates connection to MetaMask and requests account access. This method is async throws. Upon successful connection, the accounts, chainId, and isConnected properties of the MetaMaskConnector instance are updated. ParaManager.loginExternalWallet is also called internally.
Function
Requests MetaMask to sign a message with the specified account.
Hide Parameters
String
The message string to be signed.
String
The account address to use for signing.
Hide Returns
String
The resulting signature from MetaMask.
Function
Sends a transaction through MetaMask using the specified account.
Hide Parameters
EVMTransaction or [String: String]
The transaction object or dictionary containing transaction parameters.
String
The account address to use for the transaction.
Hide Returns
String
The transaction hash returned by MetaMask.
Error Types
Error
The main error type for Para SDK operations.
Hide Cases
Case
An error occurred while executing JavaScript bridge code.
Case
The JavaScript bridge did not respond in time.
Case
A general error occurred.
Case
Feature not implemented yet.
Error
Errors specific to MetaMask connector operations.
Hide Cases
Case
Another MetaMask operation is already in progress.
Case
Failed to construct a valid URL for MetaMask communication.
Case
Received an invalid or unexpected response from MetaMask.
Case
An error reported by the MetaMask app itself (e.g., user rejection code 4001).
Case
MetaMask app is not installed on the device.
Error
Errors specific to CosmosTransaction operations.
Hide Cases
Case
Invalid address format.
Case
Invalid amount format.
Case
Invalid denomination.
Case
Invalid chain prefix.
Case
Transaction encoding failed.
Error
Errors related to authorization handling in external wallet operations.
Hide Cases
Case
Invalid response received from authorization process.
Case
Authorization was cancelled by the user.
CosmosChain
Enum
Supported Cosmos chains with testnet configurations.
Hide Cases
Case
Cosmos Hub network with chain ID “provider”, prefix “cosmos” and default denom “uatom” (testnet).
Case
Osmosis network with chain ID “osmo-test-5”, prefix “osmo” and default denom “uosmo” (testnet).
Case
Juno network with chain ID “uni-6”, prefix “juno” and default denom “ujuno” (testnet).
Case
Stargaze network with chain ID “elgafar-1”, prefix “stars” and default denom “ustars” (testnet).
Hide Properties
String
The chain ID for this network.
String
The bech32 prefix for this chain.
String
Default denomination for this chain.
String
Default RPC URL for this chain’s testnet.
CosmosSigningMethod
Enum
Signing method for Cosmos transactions.
Hide Cases
Case
Legacy Amino JSON signing method for backward compatibility.
Case
Modern Proto/Direct binary signing method (recommended - more efficient).
CosmosTransaction
Struct
A struct representing a Cosmos transaction with messages, fees, and metadata.
Hide Properties
[CosmosMessage]
The transaction messages.
CosmosFee
Transaction fee.
String?
Optional memo.
CosmosSigningMethod
Preferred signing method (defaults to proto).
Hide Static Methods
Function
Convenience initializer for creating token transfer transactions.
CosmosSignResponse
Struct
Response from a Cosmos transaction signing operation.
Hide Properties
CosmosSignature
The signature information.
[String: Any]
The signed document.
CosmosCoin
Struct
Represents a coin amount in Cosmos with denomination and amount.
Hide Properties
String
The token denomination (e.g., “uatom”).
String
The amount as a string in the smallest unit.
Hide Initializers
Function
Creates a new coin with string amount.
Function
Creates a new coin with UInt64 amount.
CosmosFee
Struct
Represents transaction fees in Cosmos.
Hide Properties
[CosmosCoin]
Array of fee coins.
String
Gas limit as a string.
Hide Initializers
Function
Creates a fee with array of coins.
Function
Convenience initializer for simple fee.
Type Definitions
SignatureResult
Struct
Result of a message or transaction signing operation.
Hide Properties
String
For transaction signing: Contains the complete signed transaction ready for broadcasting (RLP-encoded for EVM, serialized for other chains).
For message signing: Contains just the signature.
Note: The bridge returns signature for messages and signedTransaction for transactions, but Swift SDK normalizes both to signedTransaction for consistency.
String
Computed property that returns the signed transaction data for broadcasting.
String
The ID of the wallet that performed the signing.
String
The wallet type that signed (e.g., “evm”, “solana”, “cosmos”).
AuthState
Struct
Authentication state returned by authentication operations.
Hide Properties
AuthStage
The stage of authentication (.verify, .signup, .login).
String
The Para userId for the currently authenticating user.
String?
Email address if using email auth.
String?
Phone number if using phone auth.
String?
Display name for the authenticating user.
String?
Profile picture URL for the authenticating user.
String?
Username for the authenticating user.
String?
URL for passkey authentication.
String?
ID for the passkey.
String?
URL for passkey authentication on a known device.
String?
URL for password authentication.
[BiometricHint]?
Biometric hints for the user’s devices.
TransferResult
Struct
Result returned from a successful EVM transfer operation.
Hide Properties
String
The transaction hash on the blockchain.
String
The sender address.
String
The recipient address.
String
The amount transferred in wei (smallest unit).
String
The chain ID where the transaction was broadcast.
Auth
Enum
Authentication type for initiateAuthFlow method.
Hide Cases
Case
Email-based authentication.
Case
Phone-based authentication with full phone number including country code.
OAuthProvider
Enum
Supported OAuth provider types for authentication.
Hide Cases
Case
Google authentication provider.
Case
Discord authentication provider.
Case
Apple authentication provider.
SignupMethod & LoginMethod
Enum
The possible methods for signup when the stage is .signup.
Hide Cases
Case
Passkey-based signup.
Case
Password-based signup.
Enum
The possible methods for login when the stage is .login.
Hide Cases
Case
Passkey-based login.
Case
Password-based login.
Case
Passkey login on a known device.
Wallet
Struct
Represents a wallet associated with a Para user account.
Hide Properties
String
Unique identifier for the wallet.
WalletType
The type of wallet (e.g., .evm, .solana, .cosmos).
String?
Primary public address of the wallet.
String?
Secondary address (e.g., Cosmos bech32 address for Cosmos wallets).
Configuration object for MetaMask connector initialization.
Hide Properties
String
The name of your application as displayed in MetaMask.
String
Your application’s identifier (typically the bundle identifier).
String
The API version to use (e.g., “1.0”).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Para Docs","description":"Para is the most comprehensive wallet and authentication suite for crypto applications.","colors":{"primary":"#FF4E00","light":"#FF4E00","dark":"#FF4E00"},"logo":{"light":"https://mintcdn.com/getpara/30lQMU2mHiFlT8O0/logo/light.svg?fit=max\u0026auto=format\u0026n=30lQMU2mHiFlT8O0\u0026q=85\u0026s=342b25f634bb7c26fefb0769da8f0555","dark":"https://mintcdn.com/getpara/30lQMU2mHiFlT8O0/logo/dark.svg?fit=max\u0026auto=format\u0026n=30lQMU2mHiFlT8O0\u0026q=85\u0026s=6404d8529516f7e178e3781b864656c9"},"favicon":"https://mintcdn.com/getpara/K-Gy3Q2JkFCvA3gr/favicon.svg?fit=max\u0026auto=format\u0026n=K-Gy3Q2JkFCvA3gr\u0026q=85\u0026s=877317a7a2973b619ffca0cc05e46195","api":{"playground":{"display":"interactive"}},"appearance":{"default":"light","strict":true},"background":{"decoration":"windows","color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"icon":"slack","href":"https://join.slack.com/t/para-community/shared_invite/zt-304keeulc-Oqs4eusCUAJEpE9DBwAqrg","label":"Community"}],"primary":{"type":"button","label":"Get Access","href":"https://developer.getpara.com/"}},"footer":{"socials":{"x":"https://x.com/get_para","github":"https://github.com/getpara","linkedin":"https://www.linkedin.com/company/parahq","slack":"https://join.slack.com/t/para-community/shared_invite/zt-304keeulc-Oqs4eusCUAJEpE9DBwAqrg","website":"https://getpara.com"}},"search":{"prompt":"Search Para Docs..."},"seo":{"indexing":"all"},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"section","latex":false},"integrations":{"ga4":{"measurementId":"G-J2BJTJZW8H"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"getpara","hasAudioNarration":false,"actualSubdomain":"getpara","customDomains":["docs.getpara.com"],"gitSource":{"type":"github","owner":"capsule-org","repo":"docs-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afc52fa8d58fd8eef02e6de","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API Reference","count":730},{"language":"default","tag":"Reference","count":575},{"language":"default","tag":"Build","count":436},{"language":"default","tag":"React \u0026 Web","count":273},{"language":"default","tag":"React Native","count":224},{"language":"default","tag":"React Hooks","count":139},{"language":"default","tag":"Types \u0026 Configuration","count":130},{"language":"default","tag":"Client Methods","count":122},{"language":"default","tag":"Transact on Chains","count":103},{"language":"default","tag":"REST API","count":100}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"v3/swift/api/sdk","slug":"/v3/swift/api/sdk","pageMetadata":{"title":"Swift SDK API Reference","description":"Comprehensive API reference for the Para Swift SDK","sidebarTitle":"API Reference","icon":"code","keywords":["swift sdk api","swift api reference","swift paramanager","swift authentication api","swift wallet api","swift signing api","swift passkey api","swift blockchain api","swift sdk methods","swift para api"],"href":"/v3/swift/api/sdk"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Comprehensive API reference for the Para Swift SDK\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Para Swift SDK provides a comprehensive toolkit for integrating non-custodial wallet functionality, passkey-based authentication, and blockchain interactions into your native iOS applications.`}),`\n`,_jsx(Heading,{level:`2`,id:`paramanager-class`,children:`ParaManager Class`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`ParaManager`}),` class is the central component for managing user authentication, wallet operations, and session state.`]}),`\n`,_jsx(Heading,{level:`3`,id:`properties`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`wallets`,type:`[Wallet]`,id:`param-wallets`,children:_jsxs(_components.p,{children:[`An array of `,_jsx(_components.code,{children:`Wallet`}),` objects currently associated with the authenticated user. This list is updated after operations like `,_jsx(_components.code,{children:`fetchWallets()`}),` or `,_jsx(_components.code,{children:`createWallet()`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`sessionState`,type:`ParaSessionState`,id:`param-session-state`,children:_jsxs(_components.p,{children:[`The current session state of the Para SDK (e.g., `,_jsx(_components.code,{children:`.unknown`}),`, `,_jsx(_components.code,{children:`.inactive`}),`, `,_jsx(_components.code,{children:`.active`}),`, `,_jsx(_components.code,{children:`.activeLoggedIn`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`environment`,type:`ParaEnvironment`,id:`param-environment`,children:_jsxs(_components.p,{children:[`The environment configuration for the Para SDK (e.g., `,_jsx(_components.code,{children:`.beta`}),`, `,_jsx(_components.code,{children:`.prod`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`apiKey`,type:`String`,id:`param-api-key`,children:_jsx(_components.p,{children:`The API key used for authenticating with Para services.`})}),`\n`,_jsx(ResponseField,{name:`isReady`,type:`Bool`,id:`param-is-ready`,children:_jsxs(_components.p,{children:[`Indicates if the `,_jsx(_components.code,{children:`ParaManager`}),` and its underlying WebView are initialized and ready to process requests.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`initialization`,children:`Initialization`}),`\n`,_jsxs(ResponseField,{name:`init(environment:apiKey:appScheme:)`,type:`Function`,id:`param-init-environment-api-key-app-scheme`,children:[_jsxs(_components.p,{children:[`Initializes a new `,_jsx(_components.code,{children:`ParaManager`}),` instance.`]}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`environment`,type:`ParaEnvironment`,id:`param-environment-1`,children:_jsxs(_components.p,{children:[`The Para environment to use (e.g., `,_jsx(_components.code,{children:`.beta`}),`, `,_jsx(_components.code,{children:`.prod`}),`).`]})}),_jsx(ResponseField,{name:`apiKey`,type:`String`,id:`param-api-key-1`,children:_jsx(_components.p,{children:`Your Para API key.`})}),_jsx(ResponseField,{name:`appScheme`,type:`String?`,id:`param-app-scheme`,children:_jsx(_components.p,{children:`Optional. Your app’s custom URL scheme (e.g., “yourapp://”). Defaults to the app’s bundle identifier. Used for OAuth and other redirection flows.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`authentication-methods`,children:`Authentication Methods`}),`\n`,_jsxs(ResponseField,{name:`initiateAuthFlow(auth:)`,type:`Function`,id:`param-initiate-auth-flow-auth`,children:[_jsxs(_components.p,{children:[`Starts the authentication (signup or login) process for a user with the specified email or phone number. When a default `,_jsx(_components.code,{children:`WebAuthenticationSession`}),` is registered via `,_jsx(_components.code,{children:`setDefaultWebAuthenticationSession(_:)`}),`, hosted Para One Click flows are handled automatically and the returned state’s `,_jsx(_components.code,{children:`stage`}),` will be `,_jsx(_components.code,{children:`.done`}),`.`]}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`auth`,type:`Auth`,id:`param-auth`,children:_jsxs(_components.p,{children:[`The authentication identifier: `,_jsx(_components.code,{children:`.email(String)`}),` for email or `,_jsx(_components.code,{children:`.phone(String)`}),` for a full phone number (e.g., “+15551234567”).`]})})}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`AuthState`}),` object indicating the next step in the flow (e.g., `,_jsx(_components.code,{children:`.done`}),` when hosted auth completed, `,_jsx(_components.code,{children:`.verify`}),` for new users, `,_jsx(_components.code,{children:`.login`}),` for existing users).`]})})})]}),`\n`,_jsxs(ResponseField,{name:`setDefaultWebAuthenticationSession(_:)`,type:`Function`,id:`param-set-default-web-authentication-session`,children:[_jsxs(_components.p,{children:[`Stores a `,_jsx(_components.code,{children:`WebAuthenticationSession`}),` that the SDK reuses for hosted login, signup, and OAuth flows.`]}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`session`,type:`WebAuthenticationSession?`,id:`param-session`,children:_jsxs(_components.p,{children:[`The shared session to reuse. Pass `,_jsx(_components.code,{children:`nil`}),` to clear the default and fall back to per-call overrides.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`handleVerificationCode(verificationCode:)`,type:`Function`,id:`param-handle-verification-code-verification-code`,children:[_jsx(_components.p,{children:`Submits the verification code (OTP) received by the user via email or SMS.`}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`verificationCode`,type:`String`,id:`param-verification-code`,children:_jsx(_components.p,{children:`The verification code entered by the user.`})})}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state-1`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`AuthState`}),` object, typically with `,_jsx(_components.code,{children:`stage == .signup`}),`, indicating the user is verified and needs to choose a signup method (passkey or password).`]})})})]}),`\n`,_jsx(ResponseField,{name:`resendVerificationCode()`,type:`Function`,id:`param-resend-verification-code`,children:_jsx(_components.p,{children:`Requests a new verification code to be sent to the user’s email or phone.`})}),`\n`,_jsxs(ResponseField,{name:`isSignupMethodAvailable(method:authState:)`,type:`Function`,id:`param-is-signup-method-available-method-auth-state`,children:[_jsxs(_components.p,{children:[`Checks if a specific signup method (passkey or password) is available based on the current `,_jsx(_components.code,{children:`AuthState`}),`.`]}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`method`,type:`SignupMethod`,id:`param-method`,children:_jsxs(_components.p,{children:[`The signup method to check (e.g., `,_jsx(_components.code,{children:`.passkey`}),`).`]})}),_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state-2`,children:_jsxs(_components.p,{children:[`The current `,_jsx(_components.code,{children:`AuthState`}),` (should have `,_jsx(_components.code,{children:`stage == .signup`}),`).`]})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`isAvailable`,type:`Bool`,id:`param-is-available`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if the method is available, `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`handleSignup(authState:method:authorizationController:webAuthenticationSession:)`,type:`Function`,id:`param-handle-signup-auth-state-method-authorization-controller-web-authentication-session`,children:[_jsx(_components.p,{children:`Completes the signup process for a new, verified user using the chosen method (passkey or password). This typically includes creating a passkey/password and the first wallet.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state-3`,children:_jsxs(_components.p,{children:[`The current `,_jsx(_components.code,{children:`AuthState`}),` (must have `,_jsx(_components.code,{children:`stage == .signup`}),`).`]})}),_jsx(ResponseField,{name:`method`,type:`SignupMethod`,id:`param-method-1`,children:_jsxs(_components.p,{children:[`The chosen signup method (`,_jsx(_components.code,{children:`.passkey`}),` or `,_jsx(_components.code,{children:`.password`}),`).`]})}),_jsx(ResponseField,{name:`authorizationController`,type:`AuthorizationController`,id:`param-authorization-controller`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`ASAuthorizationController`}),` instance for handling Passkey UI operations.`]})}),_jsx(ResponseField,{name:`webAuthenticationSession`,type:`WebAuthenticationSession?`,id:`param-web-authentication-session`,children:_jsxs(_components.p,{children:[`Optional override for web-based authentication (e.g., password setup). Defaults to the session registered via `,_jsx(_components.code,{children:`setDefaultWebAuthenticationSession(_:)`}),`.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`isLoginMethodAvailable(method:authState:)`,type:`Function`,id:`param-is-login-method-available-method-auth-state`,children:[_jsx(_components.p,{children:`Checks if a specific login method (passkey or password) is available for an existing user.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`method`,type:`LoginMethod`,id:`param-method-2`,children:_jsxs(_components.p,{children:[`The login method to check (e.g., `,_jsx(_components.code,{children:`.passkey`}),`).`]})}),_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state-4`,children:_jsxs(_components.p,{children:[`The current `,_jsx(_components.code,{children:`AuthState`}),` (should have `,_jsx(_components.code,{children:`stage == .login`}),`).`]})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`isAvailable`,type:`Bool`,id:`param-is-available-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if the method is available, `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`handleLogin(authState:authorizationController:webAuthenticationSession:)`,type:`Function`,id:`param-handle-login-auth-state-authorization-controller-web-authentication-session`,children:[_jsx(_components.p,{children:`Logs in an existing user, automatically determining and using the preferred available method (passkey or password).`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`authState`,type:`AuthState`,id:`param-auth-state-5`,children:_jsxs(_components.p,{children:[`The current `,_jsx(_components.code,{children:`AuthState`}),` (must have `,_jsx(_components.code,{children:`stage == .login`}),`).`]})}),_jsx(ResponseField,{name:`authorizationController`,type:`AuthorizationController`,id:`param-authorization-controller-1`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`ASAuthorizationController`}),` instance for Passkey UI.`]})}),_jsx(ResponseField,{name:`webAuthenticationSession`,type:`WebAuthenticationSession?`,id:`param-web-authentication-session-1`,children:_jsxs(_components.p,{children:[`Optional override for web-based login (e.g., password). Defaults to the session registered via `,_jsx(_components.code,{children:`setDefaultWebAuthenticationSession(_:)`}),`.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`loginWithPasskey(authorizationController:email:phone:)`,type:`Function`,id:`param-login-with-passkey-authorization-controller-email-phone`,children:[_jsx(_components.p,{children:`Logs in a user directly using their passkey.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`authorizationController`,type:`AuthorizationController`,id:`param-authorization-controller-2`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`ASAuthorizationController`}),` instance for Passkey UI.`]})}),_jsx(ResponseField,{name:`email`,type:`String?`,id:`param-email`,children:_jsx(_components.p,{children:`Optional. The user’s email if known, to help filter passkeys.`})}),_jsx(ResponseField,{name:`phone`,type:`String?`,id:`param-phone`,children:_jsx(_components.p,{children:`Optional. The user’s full phone number if known, to help filter passkeys. If both email and phone are nil, the system prompts for any available passkey.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`generatePasskey(identifier:biometricsId:authorizationController:)`,type:`Function`,id:`param-generate-passkey-identifier-biometrics-id-authorization-controller`,children:[_jsxs(_components.p,{children:[`Generates and registers a new passkey for the user. Typically called during signup when `,_jsx(_components.code,{children:`authState.stage == .signup`}),` and `,_jsx(_components.code,{children:`SignupMethod.passkey`}),` is chosen.`]}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`identifier`,type:`String`,id:`param-identifier`,children:_jsx(_components.p,{children:`The user’s identifier (email or full phone number).`})}),_jsx(ResponseField,{name:`biometricsId`,type:`String`,id:`param-biometrics-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`passkeyId`}),` obtained from `,_jsx(_components.code,{children:`AuthState.passkeyId`}),` when `,_jsx(_components.code,{children:`authState.stage == .signup`}),`.`]})}),_jsx(ResponseField,{name:`authorizationController`,type:`AuthorizationController`,id:`param-authorization-controller-3`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`ASAuthorizationController`}),` instance for Passkey UI.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`presentPasswordUrl(_ url:webAuthenticationSession:)`,type:`Function`,id:`param-present-password-url-url-web-authentication-session`,children:[_jsx(_components.p,{children:`Presents a web URL (typically for password setup/login) using a web authentication session.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`url`,type:`String`,id:`param-url`,children:_jsxs(_components.p,{children:[`The URL to present (e.g., `,_jsx(_components.code,{children:`authState.passwordUrl`}),`).`]})}),_jsx(ResponseField,{name:`webAuthenticationSession`,type:`WebAuthenticationSession?`,id:`param-web-authentication-session-2`,children:_jsxs(_components.p,{children:[`Optional override. Defaults to the session registered via `,_jsx(_components.code,{children:`setDefaultWebAuthenticationSession(_:)`}),`.`]})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`callbackURL`,type:`URL?`,id:`param-callback-url`,children:_jsx(_components.p,{children:`The callback URL if authentication was successful via direct callback, or nil on failure/cancellation.`})})})]}),`\n`,_jsxs(ResponseField,{name:`handleOAuth(provider:webAuthenticationSession:authorizationController:)`,type:`Function`,id:`param-handle-o-auth-provider-web-authentication-session-authorization-controller`,children:[_jsx(_components.p,{children:`Initiates and handles the entire OAuth flow with the specified provider (e.g., Google, Apple, Discord).\nThis includes user authentication with the provider, Para account lookup/creation, and passkey setup if it’s a new Para user.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`provider`,type:`OAuthProvider`,id:`param-provider`,children:_jsxs(_components.p,{children:[`The OAuth provider to use (e.g., `,_jsx(_components.code,{children:`.google`}),`).`]})}),_jsx(ResponseField,{name:`webAuthenticationSession`,type:`WebAuthenticationSession?`,id:`param-web-authentication-session-3`,children:_jsxs(_components.p,{children:[`Optional override for handling the OAuth web flow. Defaults to the session registered via `,_jsx(_components.code,{children:`setDefaultWebAuthenticationSession(_:)`}),`.`]})}),_jsx(ResponseField,{name:`authorizationController`,type:`AuthorizationController`,id:`param-authorization-controller-4`,children:_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`ASAuthorizationController`}),` for potential passkey setup.`]})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`result`,type:`Void`,id:`param-result`,children:_jsx(_components.p,{children:`Returns nothing on success. Throws ParaError or other authentication-related errors on failure.`})})})]}),`\n`,_jsxs(ResponseField,{name:`loginExternalWallet(wallet:)`,type:`Function`,id:`param-login-external-wallet-wallet`,children:[_jsx(_components.p,{children:`Logs into Para using an externally managed wallet (e.g., MetaMask).`}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`wallet`,type:`ExternalWalletInfo`,id:`param-wallet`,children:_jsx(_components.p,{children:`Information about the external wallet, including its address and type.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`session-management-methods`,children:`Session Management Methods`}),`\n`,_jsxs(ResponseField,{name:`isFullyLoggedIn()`,type:`Function`,id:`param-is-fully-logged-in`,children:[_jsx(_components.p,{children:`Checks if there is an active session and the user is fully authenticated (e.g., passkey/password set up).`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`isLoggedIn`,type:`Bool`,id:`param-is-logged-in`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if the user is fully logged in, `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`isSessionActive()`,type:`Function`,id:`param-is-session-active`,children:[_jsx(_components.p,{children:`Checks if there is any active session with Para, even if the user is not fully logged in (e.g., pending verification).`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`isActive`,type:`Bool`,id:`param-is-active`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if there is any active session, `,_jsx(_components.code,{children:`false`}),` otherwise.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`exportSession()`,type:`Function`,id:`param-export-session`,children:[_jsx(_components.p,{children:`Exports the current session for backup or transfer purposes.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`sessionData`,type:`String`,id:`param-session-data`,children:_jsx(_components.p,{children:`The session data as a string that can be saved and restored later.`})})})]}),`\n`,_jsx(ResponseField,{name:`logout()`,type:`Function`,id:`param-logout`,children:_jsx(_components.p,{children:`Logs out the current user and clears all session data.`})}),`\n`,_jsxs(ResponseField,{name:`getCurrentUserAuthDetails()`,type:`Function`,id:`param-get-current-user-auth-details`,children:[_jsx(_components.p,{children:`Gets the current user’s persisted authentication details.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`authState`,type:`AuthState?`,id:`param-auth-state-6`,children:_jsx(_components.p,{children:`The current user’s authentication state, or nil if no user is authenticated. The ‘stage’ will be set to ‘login’ for active sessions.`})})})]}),`\n`,_jsx(ResponseField,{name:`checkSessionState()`,type:`Function`,id:`param-check-session-state`,children:_jsx(_components.p,{children:`Manually checks and updates the current session state. This method waits for the Para WebView to be ready and updates the session state accordingly.`})}),`\n`,_jsx(Heading,{level:`3`,id:`wallet-management-methods`,children:`Wallet Management Methods`}),`\n`,_jsxs(ResponseField,{name:`fetchWallets()`,type:`Function`,id:`param-fetch-wallets`,children:[_jsx(_components.p,{children:`Retrieves all wallets associated with the current user.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`wallets`,type:`[Wallet]`,id:`param-wallets-1`,children:_jsxs(_components.p,{children:[`An array of `,_jsx(_components.code,{children:`Wallet`}),` objects associated with the user.`]})})})]}),`\n`,_jsxs(ResponseField,{name:`createWallet(type:skipDistributable:)`,type:`Function`,id:`param-create-wallet-type-skip-distributable`,children:[_jsxs(_components.p,{children:[`Creates a new wallet for the authenticated user. This method initiates wallet creation and refreshes the internal `,_jsx(_components.code,{children:`wallets`}),` list. Observe the `,_jsx(_components.code,{children:`paraManager.wallets`}),` property for the new wallet.`]}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`type`,type:`WalletType`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of wallet to create (e.g., `,_jsx(_components.code,{children:`.evm`}),`, `,_jsx(_components.code,{children:`.solana`}),`, `,_jsx(_components.code,{children:`.cosmos`}),`).`]})}),_jsx(ResponseField,{name:`skipDistributable`,type:`Bool`,id:`param-skip-distributable`,children:_jsx(_components.p,{children:`Whether to skip the distributable key generation step.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`getEmail()`,type:`Function`,id:`param-get-email`,children:[_jsx(_components.p,{children:`Retrieves the email of the currently authenticated user, if available and the session was initiated with an email.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`email`,type:`String`,id:`param-email-1`,children:_jsx(_components.p,{children:`The user’s email address.`})})})]}),`\n`,_jsxs(ResponseField,{name:`distributeNewWalletShare(walletId:userShare:)`,type:`Function`,id:`param-distribute-new-wallet-share-wallet-id-user-share`,children:[_jsx(_components.p,{children:`(Advanced) Distributes a new share for an existing wallet.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id`,children:_jsx(_components.p,{children:`The ID of the wallet.`})}),_jsx(ResponseField,{name:`userShare`,type:`String`,id:`param-user-share`,children:_jsx(_components.p,{children:`The user share to distribute.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`getBalance(walletId:token:rpcUrl:chainPrefix:denom:)`,type:`Function`,id:`param-get-balance-wallet-id-token-rpc-url-chain-prefix-denom`,children:[_jsx(_components.p,{children:`Gets the balance for any wallet type. This unified method works with all wallet types (EVM, Solana, Cosmos).`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-1`,children:_jsx(_components.p,{children:`The ID of the wallet.`})}),_jsx(ResponseField,{name:`token`,type:`String?`,id:`param-token`,children:_jsx(_components.p,{children:`Optional token identifier (contract address for EVM, mint address for Solana, etc.).`})}),_jsx(ResponseField,{name:`rpcUrl`,type:`String?`,id:`param-rpc-url`,children:_jsx(_components.p,{children:`Optional RPC URL (recommended for Solana and Cosmos to avoid 403/CORS issues).`})}),_jsx(ResponseField,{name:`chainPrefix`,type:`String?`,id:`param-chain-prefix`,children:_jsx(_components.p,{children:`Optional bech32 prefix for Cosmos (e.g., “juno”, “stars”).`})}),_jsx(ResponseField,{name:`denom`,type:`String?`,id:`param-denom`,children:_jsx(_components.p,{children:`Optional denom for Cosmos balances (e.g., “ujuno”, “ustars”).`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`balance`,type:`String`,id:`param-balance`,children:_jsx(_components.p,{children:`The balance as a string (format depends on the chain).`})})})]}),`\n`,_jsxs(ResponseField,{name:`synchronizeRequiredWallets()`,type:`Function`,id:`param-synchronize-required-wallets`,children:[_jsx(_components.p,{children:`Synchronizes required wallets by creating any missing non-optional wallet types. This should be called after successful authentication for new users.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`wallets`,type:`[Wallet]`,id:`param-wallets-2`,children:_jsx(_components.p,{children:`Array of newly created wallets, if any.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`transfer-methods`,children:`Transfer Methods`}),`\n`,_jsxs(ResponseField,{name:`transfer(walletId:to:amount:chainId:rpcUrl:)`,type:`Function`,id:`param-transfer-wallet-id-to-amount-chain-id-rpc-url`,children:[_jsx(_components.p,{children:`Transfers tokens using an EVM wallet. This method builds, signs, and broadcasts the transaction in one call.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-2`,children:_jsx(_components.p,{children:`The ID of the EVM wallet to use for the transfer.`})}),_jsx(ResponseField,{name:`to`,type:`String`,id:`param-to`,children:_jsx(_components.p,{children:`The recipient address.`})}),_jsx(ResponseField,{name:`amount`,type:`String`,id:`param-amount`,children:_jsx(_components.p,{children:`The amount to send in wei (smallest unit).`})}),_jsx(ResponseField,{name:`chainId`,type:`String?`,id:`param-chain-id`,children:_jsx(_components.p,{children:`Optional. The chain ID for the EVM network. If not provided, uses the wallet’s default chain.`})}),_jsx(ResponseField,{name:`rpcUrl`,type:`String?`,id:`param-rpc-url-1`,children:_jsx(_components.p,{children:`Optional. Custom RPC URL for the transaction. If not provided, uses the default RPC for the chain.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`result`,type:`TransferResult`,id:`param-result-1`,children:_jsx(_components.p,{children:`A TransferResult object containing transaction details.`})})}),_jsx(Expandable,{title:`Note`,defaultOpen:`true`,children:_jsx(_components.p,{children:`This method is only available for EVM wallets. Solana and Cosmos wallets must use signing methods only.`})})]}),`\n`,_jsx(Heading,{level:`3`,id:`signing-methods`,children:`Signing Methods`}),`\n`,_jsxs(ResponseField,{name:`signMessage(walletId:message:timeoutMs:)`,type:`Function`,id:`param-sign-message-wallet-id-message-timeout-ms`,children:[_jsx(_components.p,{children:`Signs an arbitrary message using the specified wallet.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-3`,children:_jsx(_components.p,{children:`The ID of the wallet to use for signing.`})}),_jsx(ResponseField,{name:`message`,type:`String`,id:`param-message`,children:_jsx(_components.p,{children:`The raw message string to sign. The SDK will Base64-encode this string before signing.`})}),_jsx(ResponseField,{name:`timeoutMs`,type:`Int?`,id:`param-timeout-ms`,children:_jsx(_components.p,{children:`Optional. Timeout for the signing operation in milliseconds.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`result`,type:`SignatureResult`,id:`param-result-2`,children:_jsx(_components.p,{children:`A SignatureResult object containing the signature and metadata.`})})})]}),`\n`,_jsxs(ResponseField,{name:`signTransaction(walletId:transaction:timeoutMs:)`,type:`Function`,id:`param-sign-transaction-wallet-id-transaction-timeout-ms`,children:[_jsx(_components.p,{children:`Signs a transaction object using the specified wallet. The method accepts any Encodable transaction type (EVMTransaction, SolanaTransaction, CosmosTransaction) and handles chain-specific formatting internally.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-4`,children:_jsx(_components.p,{children:`The ID of the wallet to use for signing.`})}),_jsx(ResponseField,{name:`transaction`,type:`Encodable`,id:`param-transaction`,children:_jsx(_components.p,{children:`The transaction object to sign. Can be EVMTransaction, SolanaTransaction, or CosmosTransaction.`})}),_jsx(ResponseField,{name:`timeoutMs`,type:`Int?`,id:`param-timeout-ms-1`,children:_jsx(_components.p,{children:`Optional. Timeout for the signing operation in milliseconds.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`result`,type:`SignatureResult`,id:`param-result-3`,children:_jsxs(_components.p,{children:[`A SignatureResult containing the signed transaction. For EVM, this includes the complete RLP-encoded transaction in `,_jsx(_components.code,{children:`signedTransaction`}),`. For Solana/Cosmos, if only a signature is available (e.g., pre-serialized transactions), it’s provided in `,_jsx(_components.code,{children:`signedTransaction`}),`. Use `,_jsx(_components.code,{children:`result.transactionData`}),` (computed property) to get the value for broadcasting.`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`For EVM transactions, the returned `,_jsx(_components.code,{children:`SignatureResult`}),` contains the complete RLP-encoded transaction ready for broadcasting via `,_jsx(_components.code,{children:`eth_sendRawTransaction`}),`.`]})})]}),`\n`,_jsxs(ResponseField,{name:`signTransaction(walletId:rlpEncodedTx:chainId:timeoutMs:)`,type:`Function`,id:`param-sign-transaction-wallet-id-rlp-encoded-tx-chain-id-timeout-ms`,children:[_jsx(_components.p,{children:`Signs an RLP-encoded EVM transaction string using the private key of the specified wallet. This method is maintained for backward compatibility.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-5`,children:_jsx(_components.p,{children:`The ID of the EVM wallet to use for signing.`})}),_jsx(ResponseField,{name:`rlpEncodedTx`,type:`String`,id:`param-rlp-encoded-tx`,children:_jsx(_components.p,{children:`The RLP-encoded transaction as a hex string. The SDK will Base64-encode this string.`})}),_jsx(ResponseField,{name:`chainId`,type:`String`,id:`param-chain-id-1`,children:_jsx(_components.p,{children:`The chain ID of the EVM network.`})}),_jsx(ResponseField,{name:`timeoutMs`,type:`Int?`,id:`param-timeout-ms-2`,children:_jsx(_components.p,{children:`Optional. Timeout for the signing operation in milliseconds.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`signature`,type:`String`,id:`param-signature`,children:_jsx(_components.p,{children:`The resulting transaction signature as a hex string.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`two-factor-authentication-2fa-methods`,children:`Two-Factor Authentication (2FA) Methods`}),`\n`,_jsxs(ResponseField,{name:`setup2fa()`,type:`Function`,id:`param-setup2fa`,children:[_jsx(_components.p,{children:`Initiates the setup process for 2FA.`}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`response`,type:`TwoFactorSetupResponse`,id:`param-response`,children:_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`.alreadySetup`}),` if 2FA is already configured, or `,_jsx(_components.code,{children:`.needsSetup(uri: String)`}),` containing the URI to be displayed in an authenticator app (e.g., as a QR code).`]})})})]}),`\n`,_jsxs(ResponseField,{name:`enable2fa(verificationCode:)`,type:`Function`,id:`param-enable2fa-verification-code`,children:[_jsx(_components.p,{children:`Enables 2FA for the user after they have scanned the URI and entered the code from their authenticator app.`}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`verificationCode`,type:`String`,id:`param-verification-code-1`,children:_jsx(_components.p,{children:`The 2FA code from the user’s authenticator app.`})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`metamaskconnector-class`,children:`MetaMaskConnector Class`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`MetaMaskConnector`}),` class enables integration with MetaMask wallet for external wallet operations and authentication.`]}),`\n`,_jsx(Heading,{level:`3`,id:`properties-2`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`isConnected`,type:`Bool`,id:`param-is-connected`,children:_jsx(_components.p,{children:`Indicates whether the connector is currently connected to MetaMask.`})}),`\n`,_jsx(ResponseField,{name:`accounts`,type:`[String]`,id:`param-accounts`,children:_jsx(_components.p,{children:`Array of connected MetaMask account addresses.`})}),`\n`,_jsx(ResponseField,{name:`chainId`,type:`String?`,id:`param-chain-id-2`,children:_jsx(_components.p,{children:`The current chain ID from MetaMask (e.g., “0x1” for Ethereum mainnet, “0xaa36a7” for Sepolia).`})}),`\n`,_jsx(Heading,{level:`3`,id:`initialization-2`,children:`Initialization`}),`\n`,_jsxs(ResponseField,{name:`init(para:appUrl:config:)`,type:`Function`,id:`param-init-para-app-url-config`,children:[_jsxs(_components.p,{children:[`Initializes a new `,_jsx(_components.code,{children:`MetaMaskConnector`}),` instance.`]}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`para`,type:`ParaManager`,id:`param-para`,children:_jsx(_components.p,{children:`The ParaManager instance.`})}),_jsx(ResponseField,{name:`appUrl`,type:`String`,id:`param-app-url`,children:_jsx(_components.p,{children:`Your app’s URL scheme for deep link callbacks.`})}),_jsx(ResponseField,{name:`config`,type:`MetaMaskConfig`,id:`param-config`,children:_jsx(_components.p,{children:`Configuration object containing app metadata.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`methods`,children:`Methods`}),`\n`,_jsxs(ResponseField,{name:`handleURL(_:)`,type:`Function`,id:`param-handle-url`,children:[_jsx(_components.p,{children:`Processes incoming deep link URLs from MetaMask responses.`}),_jsx(Expandable,{title:`Parameters`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`url`,type:`URL`,id:`param-url-1`,children:_jsx(_components.p,{children:`The incoming URL to process.`})})})]}),`\n`,_jsx(ResponseField,{name:`connect()`,type:`Function`,id:`param-connect`,children:_jsxs(_components.p,{children:[`Initiates connection to MetaMask and requests account access. This method is `,_jsx(_components.code,{children:`async throws`}),`. Upon successful connection, the `,_jsx(_components.code,{children:`accounts`}),`, `,_jsx(_components.code,{children:`chainId`}),`, and `,_jsx(_components.code,{children:`isConnected`}),` properties of the `,_jsx(_components.code,{children:`MetaMaskConnector`}),` instance are updated. `,_jsx(_components.code,{children:`ParaManager.loginExternalWallet`}),` is also called internally.`]})}),`\n`,_jsxs(ResponseField,{name:`signMessage(_:account:)`,type:`Function`,id:`param-sign-message-account`,children:[_jsx(_components.p,{children:`Requests MetaMask to sign a message with the specified account.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`message`,type:`String`,id:`param-message-1`,children:_jsx(_components.p,{children:`The message string to be signed.`})}),_jsx(ResponseField,{name:`account`,type:`String`,id:`param-account`,children:_jsx(_components.p,{children:`The account address to use for signing.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`signature`,type:`String`,id:`param-signature-1`,children:_jsx(_components.p,{children:`The resulting signature from MetaMask.`})})})]}),`\n`,_jsxs(ResponseField,{name:`sendTransaction(_:account:)`,type:`Function`,id:`param-send-transaction-account`,children:[_jsx(_components.p,{children:`Sends a transaction through MetaMask using the specified account.`}),_jsxs(Expandable,{title:`Parameters`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`transaction`,type:`EVMTransaction or [String: String]`,id:`param-transaction-1`,children:_jsx(_components.p,{children:`The transaction object or dictionary containing transaction parameters.`})}),_jsx(ResponseField,{name:`account`,type:`String`,id:`param-account-1`,children:_jsx(_components.p,{children:`The account address to use for the transaction.`})})]}),_jsx(Expandable,{title:`Returns`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`transactionHash`,type:`String`,id:`param-transaction-hash`,children:_jsx(_components.p,{children:`The transaction hash returned by MetaMask.`})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-types`,children:`Error Types`}),`\n`,_jsxs(ResponseField,{name:`ParaError`,type:`Error`,id:`param-para-error`,children:[_jsx(_components.p,{children:`The main error type for Para SDK operations.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`bridgeError(String)`,type:`Case`,id:`param-bridge-error-string`,children:_jsx(_components.p,{children:`An error occurred while executing JavaScript bridge code.`})}),_jsx(ResponseField,{name:`bridgeTimeoutError`,type:`Case`,id:`param-bridge-timeout-error`,children:_jsx(_components.p,{children:`The JavaScript bridge did not respond in time.`})}),_jsx(ResponseField,{name:`error(String)`,type:`Case`,id:`param-error-string`,children:_jsx(_components.p,{children:`A general error occurred.`})}),_jsx(ResponseField,{name:`notImplemented(String)`,type:`Case`,id:`param-not-implemented-string`,children:_jsx(_components.p,{children:`Feature not implemented yet.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`MetaMaskError`,type:`Error`,id:`param-meta-mask-error`,children:[_jsx(_components.p,{children:`Errors specific to MetaMask connector operations.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`alreadyProcessing`,type:`Case`,id:`param-already-processing`,children:_jsx(_components.p,{children:`Another MetaMask operation is already in progress.`})}),_jsx(ResponseField,{name:`invalidURL`,type:`Case`,id:`param-invalid-url`,children:_jsx(_components.p,{children:`Failed to construct a valid URL for MetaMask communication.`})}),_jsx(ResponseField,{name:`invalidResponse`,type:`Case`,id:`param-invalid-response`,children:_jsx(_components.p,{children:`Received an invalid or unexpected response from MetaMask.`})}),_jsx(ResponseField,{name:`metaMaskError(code: Int, message: String)`,type:`Case`,id:`param-meta-mask-error-code-int-message-string`,children:_jsx(_components.p,{children:`An error reported by the MetaMask app itself (e.g., user rejection code 4001).`})}),_jsx(ResponseField,{name:`notInstalled`,type:`Case`,id:`param-not-installed`,children:_jsx(_components.p,{children:`MetaMask app is not installed on the device.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`CosmosTransactionError`,type:`Error`,id:`param-cosmos-transaction-error`,children:[_jsx(_components.p,{children:`Errors specific to CosmosTransaction operations.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`invalidAddress(String)`,type:`Case`,id:`param-invalid-address-string`,children:_jsx(_components.p,{children:`Invalid address format.`})}),_jsx(ResponseField,{name:`invalidAmount(String)`,type:`Case`,id:`param-invalid-amount-string`,children:_jsx(_components.p,{children:`Invalid amount format.`})}),_jsx(ResponseField,{name:`invalidDenom(String)`,type:`Case`,id:`param-invalid-denom-string`,children:_jsx(_components.p,{children:`Invalid denomination.`})}),_jsx(ResponseField,{name:`invalidPrefix(String)`,type:`Case`,id:`param-invalid-prefix-string`,children:_jsx(_components.p,{children:`Invalid chain prefix.`})}),_jsx(ResponseField,{name:`encodingFailed(String)`,type:`Case`,id:`param-encoding-failed-string`,children:_jsx(_components.p,{children:`Transaction encoding failed.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`AuthorizationHandlingError`,type:`Error`,id:`param-authorization-handling-error`,children:[_jsx(_components.p,{children:`Errors related to authorization handling in external wallet operations.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`invalidResponse`,type:`Case`,id:`param-invalid-response-1`,children:_jsx(_components.p,{children:`Invalid response received from authorization process.`})}),_jsx(ResponseField,{name:`authorizationCancelled`,type:`Case`,id:`param-authorization-cancelled`,children:_jsx(_components.p,{children:`Authorization was cancelled by the user.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmoschain`,children:`CosmosChain`}),`\n`,_jsxs(ResponseField,{name:`CosmosChain`,type:`Enum`,id:`param-cosmos-chain`,children:[_jsx(_components.p,{children:`Supported Cosmos chains with testnet configurations.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`cosmos`,type:`Case`,id:`param-cosmos`,children:_jsx(_components.p,{children:`Cosmos Hub network with chain ID “provider”, prefix “cosmos” and default denom “uatom” (testnet).`})}),_jsx(ResponseField,{name:`osmosis`,type:`Case`,id:`param-osmosis`,children:_jsx(_components.p,{children:`Osmosis network with chain ID “osmo-test-5”, prefix “osmo” and default denom “uosmo” (testnet).`})}),_jsx(ResponseField,{name:`juno`,type:`Case`,id:`param-juno`,children:_jsx(_components.p,{children:`Juno network with chain ID “uni-6”, prefix “juno” and default denom “ujuno” (testnet).`})}),_jsx(ResponseField,{name:`stargaze`,type:`Case`,id:`param-stargaze`,children:_jsx(_components.p,{children:`Stargaze network with chain ID “elgafar-1”, prefix “stars” and default denom “ustars” (testnet).`})})]}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`chainId`,type:`String`,id:`param-chain-id-3`,children:_jsx(_components.p,{children:`The chain ID for this network.`})}),_jsx(ResponseField,{name:`prefix`,type:`String`,id:`param-prefix`,children:_jsx(_components.p,{children:`The bech32 prefix for this chain.`})}),_jsx(ResponseField,{name:`defaultDenom`,type:`String`,id:`param-default-denom`,children:_jsx(_components.p,{children:`Default denomination for this chain.`})}),_jsx(ResponseField,{name:`rpcUrl`,type:`String`,id:`param-rpc-url-2`,children:_jsx(_components.p,{children:`Default RPC URL for this chain’s testnet.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmossigningmethod`,children:`CosmosSigningMethod`}),`\n`,_jsxs(ResponseField,{name:`CosmosSigningMethod`,type:`Enum`,id:`param-cosmos-signing-method`,children:[_jsx(_components.p,{children:`Signing method for Cosmos transactions.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`amino`,type:`Case`,id:`param-amino`,children:_jsx(_components.p,{children:`Legacy Amino JSON signing method for backward compatibility.`})}),_jsx(ResponseField,{name:`proto`,type:`Case`,id:`param-proto`,children:_jsx(_components.p,{children:`Modern Proto/Direct binary signing method (recommended - more efficient).`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmostransaction`,children:`CosmosTransaction`}),`\n`,_jsxs(ResponseField,{name:`CosmosTransaction`,type:`Struct`,id:`param-cosmos-transaction`,children:[_jsx(_components.p,{children:`A struct representing a Cosmos transaction with messages, fees, and metadata.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`messages`,type:`[CosmosMessage]`,id:`param-messages`,children:_jsx(_components.p,{children:`The transaction messages.`})}),_jsx(ResponseField,{name:`fee`,type:`CosmosFee`,id:`param-fee`,children:_jsx(_components.p,{children:`Transaction fee.`})}),_jsx(ResponseField,{name:`memo`,type:`String?`,id:`param-memo`,children:_jsx(_components.p,{children:`Optional memo.`})}),_jsx(ResponseField,{name:`signingMethod`,type:`CosmosSigningMethod`,id:`param-signing-method`,children:_jsx(_components.p,{children:`Preferred signing method (defaults to proto).`})})]}),_jsx(Expandable,{title:`Static Methods`,defaultOpen:`true`,children:_jsx(ResponseField,{name:`transfer(fromAddress:toAddress:amount:denom:feeDenom:feeAmount:gas:memo:signingMethod:)`,type:`Function`,id:`param-transfer-from-address-to-address-amount-denom-fee-denom-fee-amount-gas-memo-signing-method`,children:_jsx(_components.p,{children:`Convenience initializer for creating token transfer transactions.`})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmossignresponse`,children:`CosmosSignResponse`}),`\n`,_jsxs(ResponseField,{name:`CosmosSignResponse`,type:`Struct`,id:`param-cosmos-sign-response`,children:[_jsx(_components.p,{children:`Response from a Cosmos transaction signing operation.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`signature`,type:`CosmosSignature`,id:`param-signature-2`,children:_jsx(_components.p,{children:`The signature information.`})}),_jsx(ResponseField,{name:`signedDoc`,type:`[String: Any]`,id:`param-signed-doc`,children:_jsx(_components.p,{children:`The signed document.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmoscoin`,children:`CosmosCoin`}),`\n`,_jsxs(ResponseField,{name:`CosmosCoin`,type:`Struct`,id:`param-cosmos-coin`,children:[_jsx(_components.p,{children:`Represents a coin amount in Cosmos with denomination and amount.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`denom`,type:`String`,id:`param-denom-1`,children:_jsx(_components.p,{children:`The token denomination (e.g., “uatom”).`})}),_jsx(ResponseField,{name:`amount`,type:`String`,id:`param-amount-1`,children:_jsx(_components.p,{children:`The amount as a string in the smallest unit.`})})]}),_jsxs(Expandable,{title:`Initializers`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`init(denom:amount:)`,type:`Function`,id:`param-init-denom-amount`,children:_jsx(_components.p,{children:`Creates a new coin with string amount.`})}),_jsx(ResponseField,{name:`init(denom:amount:)`,type:`Function`,id:`param-init-denom-amount-1`,children:_jsx(_components.p,{children:`Creates a new coin with UInt64 amount.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cosmosfee`,children:`CosmosFee`}),`\n`,_jsxs(ResponseField,{name:`CosmosFee`,type:`Struct`,id:`param-cosmos-fee`,children:[_jsx(_components.p,{children:`Represents transaction fees in Cosmos.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`amount`,type:`[CosmosCoin]`,id:`param-amount-2`,children:_jsx(_components.p,{children:`Array of fee coins.`})}),_jsx(ResponseField,{name:`gas`,type:`String`,id:`param-gas`,children:_jsx(_components.p,{children:`Gas limit as a string.`})})]}),_jsxs(Expandable,{title:`Initializers`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`init(amount:gas:)`,type:`Function`,id:`param-init-amount-gas`,children:_jsx(_components.p,{children:`Creates a fee with array of coins.`})}),_jsx(ResponseField,{name:`init(denom:amount:gas:)`,type:`Function`,id:`param-init-denom-amount-gas`,children:_jsx(_components.p,{children:`Convenience initializer for simple fee.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`type-definitions`,children:`Type Definitions`}),`\n`,_jsx(Heading,{level:`3`,id:`signatureresult`,children:`SignatureResult`}),`\n`,_jsxs(ResponseField,{name:`SignatureResult`,type:`Struct`,id:`param-signature-result`,children:[_jsx(_components.p,{children:`Result of a message or transaction signing operation.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`signedTransaction`,type:`String`,id:`param-signed-transaction`,children:_jsxs(_components.p,{children:[`For transaction signing: Contains the complete signed transaction ready for broadcasting (RLP-encoded for EVM, serialized for other chains).\nFor message signing: Contains just the signature.\nNote: The bridge returns `,_jsx(_components.code,{children:`signature`}),` for messages and `,_jsx(_components.code,{children:`signedTransaction`}),` for transactions, but Swift SDK normalizes both to `,_jsx(_components.code,{children:`signedTransaction`}),` for consistency.`]})}),_jsx(ResponseField,{name:`transactionData`,type:`String`,computed:`true`,id:`param-transaction-data`,children:_jsx(_components.p,{children:`Computed property that returns the signed transaction data for broadcasting.`})}),_jsx(ResponseField,{name:`walletId`,type:`String`,id:`param-wallet-id-6`,children:_jsx(_components.p,{children:`The ID of the wallet that performed the signing.`})}),_jsx(ResponseField,{name:`type`,type:`String`,id:`param-type-1`,children:_jsx(_components.p,{children:`The wallet type that signed (e.g., “evm”, “solana”, “cosmos”).`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`authstate`,children:`AuthState`}),`\n`,_jsxs(ResponseField,{name:`AuthState`,type:`Struct`,id:`param-auth-state-7`,children:[_jsx(_components.p,{children:`Authentication state returned by authentication operations.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`stage`,type:`AuthStage`,id:`param-stage`,children:_jsxs(_components.p,{children:[`The stage of authentication (`,_jsx(_components.code,{children:`.verify`}),`, `,_jsx(_components.code,{children:`.signup`}),`, `,_jsx(_components.code,{children:`.login`}),`).`]})}),_jsx(ResponseField,{name:`userId`,type:`String`,id:`param-user-id`,children:_jsx(_components.p,{children:`The Para userId for the currently authenticating user.`})}),_jsx(ResponseField,{name:`email`,type:`String?`,id:`param-email-2`,children:_jsx(_components.p,{children:`Email address if using email auth.`})}),_jsx(ResponseField,{name:`phone`,type:`String?`,id:`param-phone-1`,children:_jsx(_components.p,{children:`Phone number if using phone auth.`})}),_jsx(ResponseField,{name:`displayName`,type:`String?`,id:`param-display-name`,children:_jsx(_components.p,{children:`Display name for the authenticating user.`})}),_jsx(ResponseField,{name:`pfpUrl`,type:`String?`,id:`param-pfp-url`,children:_jsx(_components.p,{children:`Profile picture URL for the authenticating user.`})}),_jsx(ResponseField,{name:`username`,type:`String?`,id:`param-username`,children:_jsx(_components.p,{children:`Username for the authenticating user.`})}),_jsx(ResponseField,{name:`passkeyUrl`,type:`String?`,id:`param-passkey-url`,children:_jsx(_components.p,{children:`URL for passkey authentication.`})}),_jsx(ResponseField,{name:`passkeyId`,type:`String?`,id:`param-passkey-id`,children:_jsx(_components.p,{children:`ID for the passkey.`})}),_jsx(ResponseField,{name:`passkeyKnownDeviceUrl`,type:`String?`,id:`param-passkey-known-device-url`,children:_jsx(_components.p,{children:`URL for passkey authentication on a known device.`})}),_jsx(ResponseField,{name:`passwordUrl`,type:`String?`,id:`param-password-url`,children:_jsx(_components.p,{children:`URL for password authentication.`})}),_jsx(ResponseField,{name:`biometricHints`,type:`[BiometricHint]?`,id:`param-biometric-hints`,children:_jsx(_components.p,{children:`Biometric hints for the user’s devices.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`transferresult`,children:`TransferResult`}),`\n`,_jsxs(ResponseField,{name:`TransferResult`,type:`Struct`,id:`param-transfer-result`,children:[_jsx(_components.p,{children:`Result returned from a successful EVM transfer operation.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`hash`,type:`String`,id:`param-hash`,children:_jsx(_components.p,{children:`The transaction hash on the blockchain.`})}),_jsx(ResponseField,{name:`from`,type:`String`,id:`param-from`,children:_jsx(_components.p,{children:`The sender address.`})}),_jsx(ResponseField,{name:`to`,type:`String`,id:`param-to-1`,children:_jsx(_components.p,{children:`The recipient address.`})}),_jsx(ResponseField,{name:`amount`,type:`String`,id:`param-amount-3`,children:_jsx(_components.p,{children:`The amount transferred in wei (smallest unit).`})}),_jsx(ResponseField,{name:`chainId`,type:`String`,id:`param-chain-id-4`,children:_jsx(_components.p,{children:`The chain ID where the transaction was broadcast.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`auth`,children:`Auth`}),`\n`,_jsxs(ResponseField,{name:`Auth`,type:`Enum`,id:`param-auth-1`,children:[_jsx(_components.p,{children:`Authentication type for initiateAuthFlow method.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`email(String)`,type:`Case`,id:`param-email-string`,children:_jsx(_components.p,{children:`Email-based authentication.`})}),_jsx(ResponseField,{name:`phone(String)`,type:`Case`,id:`param-phone-string`,children:_jsx(_components.p,{children:`Phone-based authentication with full phone number including country code.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`oauthprovider`,children:`OAuthProvider`}),`\n`,_jsxs(ResponseField,{name:`OAuthProvider`,type:`Enum`,id:`param-o-auth-provider`,children:[_jsx(_components.p,{children:`Supported OAuth provider types for authentication.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`google`,type:`Case`,id:`param-google`,children:_jsx(_components.p,{children:`Google authentication provider.`})}),_jsx(ResponseField,{name:`discord`,type:`Case`,id:`param-discord`,children:_jsx(_components.p,{children:`Discord authentication provider.`})}),_jsx(ResponseField,{name:`apple`,type:`Case`,id:`param-apple`,children:_jsx(_components.p,{children:`Apple authentication provider.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`signupmethod-\u0026-loginmethod`,children:`SignupMethod \u0026 LoginMethod`}),`\n`,_jsxs(ResponseField,{name:`SignupMethod`,type:`Enum`,id:`param-signup-method`,children:[_jsx(_components.p,{children:`The possible methods for signup when the stage is .signup.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`passkey`,type:`Case`,id:`param-passkey`,children:_jsx(_components.p,{children:`Passkey-based signup.`})}),_jsx(ResponseField,{name:`password`,type:`Case`,id:`param-password`,children:_jsx(_components.p,{children:`Password-based signup.`})})]})]}),`\n`,_jsxs(ResponseField,{name:`LoginMethod`,type:`Enum`,id:`param-login-method`,children:[_jsx(_components.p,{children:`The possible methods for login when the stage is .login.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`passkey`,type:`Case`,id:`param-passkey-1`,children:_jsx(_components.p,{children:`Passkey-based login.`})}),_jsx(ResponseField,{name:`password`,type:`Case`,id:`param-password-1`,children:_jsx(_components.p,{children:`Password-based login.`})}),_jsx(ResponseField,{name:`passkeyKnownDevice`,type:`Case`,id:`param-passkey-known-device`,children:_jsx(_components.p,{children:`Passkey login on a known device.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`wallet`,children:`Wallet`}),`\n`,_jsxs(ResponseField,{name:`Wallet`,type:`Struct`,id:`param-wallet-1`,children:[_jsx(_components.p,{children:`Represents a wallet associated with a Para user account.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`id`,type:`String`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the wallet.`})}),_jsx(ResponseField,{name:`type`,type:`WalletType`,id:`param-type-2`,children:_jsxs(_components.p,{children:[`The type of wallet (e.g., `,_jsx(_components.code,{children:`.evm`}),`, `,_jsx(_components.code,{children:`.solana`}),`, `,_jsx(_components.code,{children:`.cosmos`}),`).`]})}),_jsx(ResponseField,{name:`address`,type:`String?`,id:`param-address`,children:_jsx(_components.p,{children:`Primary public address of the wallet.`})}),_jsx(ResponseField,{name:`addressSecondary`,type:`String?`,id:`param-address-secondary`,children:_jsx(_components.p,{children:`Secondary address (e.g., Cosmos bech32 address for Cosmos wallets).`})}),_jsx(ResponseField,{name:`publicKey`,type:`String?`,id:`param-public-key`,children:_jsx(_components.p,{children:`Public key of the wallet.`})}),_jsx(ResponseField,{name:`scheme`,type:`String?`,id:`param-scheme`,children:_jsx(_components.p,{children:`Scheme used by the wallet.`})}),_jsx(ResponseField,{name:`createdAt`,type:`Date?`,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp when the wallet was created.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`wallettype`,children:`WalletType`}),`\n`,_jsxs(ResponseField,{name:`WalletType`,type:`Enum`,id:`param-wallet-type`,children:[_jsx(_components.p,{children:`Supported wallet types for Para wallets.`}),_jsxs(Expandable,{title:`Cases`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`evm`,type:`Case`,id:`param-evm`,children:_jsx(_components.p,{children:`Ethereum Virtual Machine compatible wallet (Ethereum, Polygon, etc.).`})}),_jsx(ResponseField,{name:`solana`,type:`Case`,id:`param-solana`,children:_jsx(_components.p,{children:`Solana blockchain wallet.`})}),_jsx(ResponseField,{name:`cosmos`,type:`Case`,id:`param-cosmos-1`,children:_jsx(_components.p,{children:`Cosmos ecosystem wallet supporting bech32 addresses.`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`metamaskconfig`,children:`MetaMaskConfig`}),`\n`,_jsxs(ResponseField,{name:`MetaMaskConfig`,type:`Struct`,id:`param-meta-mask-config`,children:[_jsx(_components.p,{children:`Configuration object for MetaMask connector initialization.`}),_jsxs(Expandable,{title:`Properties`,defaultOpen:`true`,children:[_jsx(ResponseField,{name:`appName`,type:`String`,id:`param-app-name`,children:_jsx(_components.p,{children:`The name of your application as displayed in MetaMask.`})}),_jsx(ResponseField,{name:`appId`,type:`String`,id:`param-app-id`,children:_jsx(_components.p,{children:`Your application’s identifier (typically the bundle identifier).`})}),_jsx(ResponseField,{name:`apiVersion`,type:`String`,id:`param-api-version`,children:_jsx(_components.p,{children:`The API version to use (e.g., “1.0”).`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Swift SDK API Reference","description":"Comprehensive API reference for the Para Swift SDK","sidebarTitle":"API Reference","icon":"code","keywords":["swift sdk api","swift api reference","swift paramanager","swift authentication api","swift wallet api","swift signing api","swift passkey api","swift blockchain api","swift sdk methods","swift para api"],"href":"/v3/swift/api/sdk"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"ParaManager Class","slug":"paramanager-class","depth":2,"children":[{"title":"Properties","slug":"properties","depth":3,"children":[]},{"title":"Initialization","slug":"initialization","depth":3,"children":[]},{"title":"Authentication Methods","slug":"authentication-methods","depth":3,"children":[]},{"title":"Session Management Methods","slug":"session-management-methods","depth":3,"children":[]},{"title":"Wallet Management Methods","slug":"wallet-management-methods","depth":3,"children":[]},{"title":"Transfer Methods","slug":"transfer-methods","depth":3,"children":[]},{"title":"Signing Methods","slug":"signing-methods","depth":3,"children":[]},{"title":"Two-Factor Authentication (2FA) Methods","slug":"two-factor-authentication-2fa-methods","depth":3,"children":[]}]},{"title":"MetaMaskConnector Class","slug":"metamaskconnector-class","depth":2,"children":[{"title":"Properties","slug":"properties-2","depth":3,"children":[]},{"title":"Initialization","slug":"initialization-2","depth":3,"children":[]},{"title":"Methods","slug":"methods","depth":3,"children":[]}]},{"title":"Error Types","slug":"error-types","depth":2,"children":[{"title":"CosmosChain","slug":"cosmoschain","depth":3,"children":[]},{"title":"CosmosSigningMethod","slug":"cosmossigningmethod","depth":3,"children":[]},{"title":"CosmosTransaction","slug":"cosmostransaction","depth":3,"children":[]},{"title":"CosmosSignResponse","slug":"cosmossignresponse","depth":3,"children":[]},{"title":"CosmosCoin","slug":"cosmoscoin","depth":3,"children":[]},{"title":"CosmosFee","slug":"cosmosfee","depth":3,"children":[]}]},{"title":"Type Definitions","slug":"type-definitions","depth":2,"children":[{"title":"SignatureResult","slug":"signatureresult","depth":3,"children":[]},{"title":"AuthState","slug":"authstate","depth":3,"children":[]},{"title":"TransferResult","slug":"transferresult","depth":3,"children":[]},{"title":"Auth","slug":"auth","depth":3,"children":[]},{"title":"OAuthProvider","slug":"oauthprovider","depth":3,"children":[]},{"title":"SignupMethod \u0026 LoginMethod","slug":"signupmethod-\u0026-loginmethod","depth":3,"children":[]},{"title":"Wallet","slug":"wallet","depth":3,"children":[]},{"title":"WalletType","slug":"wallettype","depth":3,"children":[]},{"title":"MetaMaskConfig","slug":"metamaskconfig","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/getpara/98686b284aa093b7/tab-sync.js"],"subdomain":"getpara","siteName":"Para Docs","title":"Swift SDK API Reference - Para Docs","navMaps":{"firstHrefInVersion":{"3.0 (Current)":{"href":"/v3/swift/api/sdk","matchLevel":0},"2.0 (LTS)":{"href":"/v2/swift/api/sdk","matchLevel":1,"canonicalOverride":true}},"firstHrefInLanguage":{}},"lastModified":"2026-05-28T22:09:48.947Z","originalFileLocation":"v3/swift/api/sdk.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Comprehensive API reference for the Para Swift SDK\">\u003cmeta data-mint-head name=\"application-name\" content=\"Para Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Swift SDK API Reference - Para Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Comprehensive API reference for the Para Swift SDK\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Para Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getpara.com/v3/swift/api/sdk\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://getpara.mintlify.site/_mintlify/api/og/v2?division=Build+Wallet+UI\u0026amp;title=Swift+SDK+API+Reference\u0026amp;description=Comprehensive+API+reference+for+the+Para+Swift+SDK\u0026amp;theme=9bcd94a33232818c8c210ebd\u0026amp;signature=bd8495247cb0cdbf7fa56ae5d497125c49cae995e791c7e4d06092387984f437\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Swift SDK API Reference - Para Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Comprehensive API reference for the Para Swift SDK\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://getpara.mintlify.site/_mintlify/api/og/v2?division=Build+Wallet+UI\u0026amp;title=Swift+SDK+API+Reference\u0026amp;description=Comprehensive+API+reference+for+the+Para+Swift+SDK\u0026amp;theme=9bcd94a33232818c8c210ebd\u0026amp;signature=bd8495247cb0cdbf7fa56ae5d497125c49cae995e791c7e4d06092387984f437\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/getpara/0DxXdBBXXRUUv88T/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Para Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF4E00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getpara.com/v3/swift/api/sdk\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v3/swift/api/sdk.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getpara.com/#organization\",\"name\":\"Para Docs\",\"url\":\"https://docs.getpara.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/getpara/30lQMU2mHiFlT8O0/logo/light.svg?fit=max\u0026auto=format\u0026n=30lQMU2mHiFlT8O0\u0026q=85\u0026s=342b25f634bb7c26fefb0769da8f0555\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getpara.com#website\",\"name\":\"Para Docs\",\"url\":\"https://docs.getpara.com\",\"publisher\":{\"@id\":\"https://docs.getpara.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getpara.com/v3/swift/api/sdk#webpage\",\"url\":\"https://docs.getpara.com/v3/swift/api/sdk\",\"name\":\"Swift SDK API Reference\",\"description\":\"Comprehensive API reference for the Para Swift SDK\",\"dateModified\":\"2026-05-28T22:09:48.947Z\",\"isPartOf\":{\"@id\":\"https://docs.getpara.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getpara.com/v3/swift/api/sdk#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getpara.com/v3/swift/api/sdk#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Para Docs\",\"item\":\"https://docs.getpara.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Swift SDK API Reference\",\"item\":\"https://docs.getpara.com/v3/swift/api/sdk\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.getpara.com/v3/swift/api/sdk#article\",\"headline\":\"Swift SDK API Reference\",\"name\":\"Swift SDK API Reference\",\"description\":\"Comprehensive API reference for the Para Swift SDK\",\"url\":\"https://docs.getpara.com/v3/swift/api/sdk\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getpara.com/v3/swift/api/sdk#webpage\"},\"dateModified\":\"2026-05-28T22:09:48.947Z\",\"keywords\":\"swift sdk api, swift api reference, swift paramanager, swift authentication api, swift wallet api, swift signing api, swift passkey api, swift blockchain api, swift sdk methods, swift para api\",\"publisher\":{\"@id\":\"https://docs.getpara.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getpara.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Para Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Para Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v3/swift/api/sdk.md","siteName":"Para Docs","nav":{"global":{"anchors":[]},"versions":[{"version":"3.0 (Current)","default":true,"tag":"Latest","tabs":[{"tab":"Plan","icon":"compass","pages":[{"title":"Plan","href":"/v3/introduction/welcome"}]},{"tab":"Build","icon":"code","anchors":[{"anchor":"React \u0026 Web","icon":"react","pages":[{"title":"React \u0026 Web","href":"/v3/react/quickstart"}]},{"anchor":"REST API","icon":"server","pages":[{"title":"REST API","href":"/v3/rest/overview"}]},{"anchor":"Node \u0026 Server","icon":"server","pages":[{"title":"Node \u0026 Server","href":"/v3/server/overview"}]},{"anchor":"React Native","icon":"react","pages":[{"title":"React Native","href":"/v3/react-native/quickstart"}]},{"anchor":"Flutter","icon":"flutter","pages":[{"title":"Flutter","href":"/v3/flutter/overview"}]},{"anchor":"Swift","icon":"swift","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Swift SDK Overview","sidebarTitle":"Overview","icon":"swift","href":"/v3/swift/overview"},{"title":"Mobile Examples","sidebarTitle":"Code Examples","icon":"github","href":"/v3/swift/examples"}]},{"group":"Set Up Project","icon":"wrench","pages":[{"title":"Setup","sidebarTitle":"Swift Setup","icon":"swift","href":"/v3/swift/setup"},{"group":"Developer Portal","icon":"gear","pages":[{"title":"Get Your API Key","sidebarTitle":"Get Your API Key","icon":"key","href":"/v3/swift/setup/developer-portal-setup"},{"title":"Developer Portal Email Branding","sidebarTitle":"Brand Your Emails","icon":"envelope","href":"/v3/swift/setup/developer-portal-email-branding"},{"title":"Developer Portal Payment Integration","sidebarTitle":"Set Up Fiat Onramps","icon":"credit-card","href":"/v3/swift/setup/developer-portal-payments"},{"title":"Developer Portal Security Settings","sidebarTitle":"Manage App Security","icon":"shield","href":"/v3/swift/setup/developer-portal-security"}]}]},{"group":"Add Authentication","icon":"user","pages":[{"title":"Email \u0026 Phone Login","sidebarTitle":"Email \u0026 Phone Login","icon":"mobile","href":"/v3/swift/guides/email-phone-login"},{"title":"Social Login","sidebarTitle":"Social Login","icon":"mobile","href":"/v3/swift/guides/social-login"},{"title":"External Wallets","sidebarTitle":"Connect External Wallets","description":"Instructions for using external wallets with the ParaSwift SDK.","icon":"mobile","href":"/v3/swift/guides/external-wallets"}]},{"group":"Build Wallet UI","icon":"sliders","pages":[{"title":"Swift SDK API Reference","sidebarTitle":"API Reference","icon":"code","href":"/v3/swift/api/sdk"}]},{"group":"Transact on Chains","icon":"code","pages":[{"title":"EVM Integration","description":"Transfer ETH and interact with EVM chains using Para's unified wallet architecture","sidebarTitle":"Use with EVM","icon":"ethereum","href":"/v3/swift/guides/evm"},{"title":"Solana Integration","icon":"sun-bright","sidebarTitle":"Use with Solana","href":"/v3/swift/guides/solana"},{"title":"Cosmos Integration","icon":"atom","sidebarTitle":"Use with Cosmos","href":"/v3/swift/guides/cosmos"},{"title":"Stellar Integration","sidebarTitle":"Use with Stellar","icon":"star","href":"/v3/swift/guides/stellar"}]},{"group":"Manage Sessions","icon":"clock","pages":[{"title":"Swift Session Management","icon":"key-skeleton","sidebarTitle":"Manage Sessions","href":"/v3/swift/guides/sessions"}]},{"group":"Add Advanced Features","icon":"key","pages":[{"title":"Wallet Pregeneration \u0026 Claiming","icon":"wallet","sidebarTitle":"Pregenerate Wallets","href":"/v3/swift/guides/pregen"},{"title":"Account Abstraction","sidebarTitle":"Account Abstraction","icon":"sparkles","href":"/v3/swift/guides/account-abstraction"}]},{"group":"Debug and Launch","icon":"list-check","pages":[{"title":"Troubleshooting","sidebarTitle":"Fix Common Issues","icon":"wrench","href":"/v3/swift/troubleshooting"}]}]},{"anchor":"Partner Network","icon":"list-check","pages":[{"title":"Partner Network","href":"/v3/walkthroughs/overview"}]}]},{"tab":"Tools","icon":"terminal","pages":[{"title":"Tools","href":"/v3/developer-tools/overview"}]},{"tab":"Reference","icon":"book-open","pages":[{"title":"Reference","href":"/v3/references/overview"}]}]},{"version":"2.0 (LTS)","pages":[{"title":"2.0 (LTS)","href":"/v2/swift/api/sdk"}]}]},"basePath":"","title":"Swift SDK API Reference - Para Docs","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}