Para Swift SDK eliminates the complexity of blockchain integration by providing a unified interface for wallet creation, authentication, and multi-chain transactions in iOS applications.

Quick Start

ViewController.swift
// Initialize Para
let paraManager = ParaManager(
    environment: .beta,
    apiKey: "YOUR_API_KEY", 
    appScheme: "yourapp"
)

// Authenticate user
let authState = try await paraManager.initiateAuthFlow(auth: .email("user@example.com"))

// Handle login for existing user
if case .login = authState.stage {
    try await paraManager.handleLogin(
        authState: authState,
        authorizationController: authorizationController,
        webAuthenticationSession: webAuthenticationSession
    )
}

Sign Transactions

TransactionHandler.swift
// Get wallet
let wallets = try await paraManager.fetchWallets()
let evmWallet = wallets.first { $0.type == .evm }!
let solanaWallet = wallets.first { $0.type == .solana }!

// EVM transaction
let transaction = EVMTransaction(
    to: "0x742d35Cc6634C0532925a3b844Bc9e7595f6E2c0",
    value: BigUInt("1000000000000000")!, // 0.001 ETH in wei
    gasLimit: BigUInt("21000")!
)

let result = try await paraManager.signTransaction(
    walletId: evmWallet.id,
    transaction: transaction,
    chainId: "11155111", // Sepolia
    rpcUrl: "https://sepolia.infura.io/v3/YOUR_API_KEY"
)

// Solana message signing  
let signature = try await paraManager.signMessage(
    walletId: solanaWallet.id,
    message: "Hello, Solana!"
)

Next Steps