OMSClient is the entry point for wallet auth, signing, signature verification, ID tokens, transaction helpers, and balance queries.
Install
Add the package in Xcode with File -> Add Package Dependencies and enter the following git URL.0.1.0-alpha.4.
For CocoaPods, add the pod to your Podfile.
Create The Client
Create oneOMSClient when your app starts and keep it alive for the current app session.
publishableKey selects the matching OMS Wallet environment for client SDK calls.
The client exposes:
| Property | Use |
|---|---|
oms.wallet | Authentication, session state, wallet selection, signing, signature verification, ID tokens, and transactions. |
oms.indexer | Token balance and transaction history reads. |
oms.supportedNetworks | Networks supported by this SDK build. |
Authenticate With Email
Email auth is a two-step OTP flow.completeEmailAuth verifies the OTP, loads an existing wallet for the user, or creates one when needed. Wallet metadata and session state are persisted in the device keychain.
Send A Transaction
After authentication, send a native token transaction withoms.wallet.sendTransaction. Values are raw base-unit integer strings.
Polygon Amoy is a good first network for testing.