Install
Install the React Native wrapper package from npm. The wrapper includes the native iOS and Android projects that React Native autolinking consumes fromnode_modules.
io.github.0xsequence:oms-client-kotlin-sdk:0.1.0-alpha.2 from Maven, and iOS resolves oms-client-swift-sdk 0.1.0-alpha.2 from CocoaPods through the wrapper package.
Bare React Native apps are supported through normal autolinking. Expo apps need a development build, Expo prebuild/EAS Build, or the bare workflow because Expo Go cannot load custom native code.
Android apps need minSdk 26, compileSdk 34 or newer, and Java 17 compile options. iOS apps need deployment target 15.0 or newer. OIDC redirect auth also requires the app to configure its own URL scheme or app links.
Configure The SDK
Callconfigure once before using wallet, signing, transaction, balance, or access APIs.
| API Area | Use |
|---|---|
| Authentication | Email OTP, OIDC ID-token auth, OIDC redirect auth, wallet selection, and wallet creation. |
| Session | Wallet address lookup, session metadata, ID tokens, access management, and sign out. |
| Blockchain | Supported-network listing, native token transactions, contract calls, signing, verification, fee selection, and transaction status checks. |
| Balances & History | Token balance and native token balance reads. |
| Unit helpers | parseUnits and formatUnits for raw base-unit string conversion. |
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 by the underlying native SDKs.
Send A Transaction
After authentication, send a native token transaction withsendTransaction. Values are raw base-unit integer strings.
On testnets, fee options are automatically sponsored, so Polygon Amoy is a good first network for testing.