Skip to main content
The Swift SDK supports iOS 15+, macOS 12+, and Swift 6.2+.

Install the SDK

In Xcode, choose File > Add Package Dependencies, enter the repository URL, and select the latest tagged release available to your project.
For CocoaPods, add the published pod to your Podfile.
Import the package in files that use it.

Create the client

Create one OMSWallet when your app starts and keep it alive. The publishable key selects the OMS project and environment.
Use omsWallet.wallet for authenticated wallet operations and omsWallet.indexer for read-only balance and history queries.

Authenticate with email

Send an OTP, collect the code in your UI, and complete authentication. Automatic wallet selection is the default: the SDK activates the first matching wallet or creates one when needed.
The completed session is persisted and restored when you create OMSWallet on a later app launch.

Send a transaction

An active wallet session is required. This example submits a zero-value transaction on Polygon Amoy and waits for the default status resolution.
The SDK prepares, executes, and waits for status. See send transactions for other transaction inputs, fee selection, and status handling.