OMSClient is the React Native entry point for wallet auth, session state, signing, transactions, ID tokens, access management, balance reads, and transaction history. The package also exports unit-conversion helpers.
Install
Install the React Native package from npm. React Native autolinking connects the included native modules fromnode_modules.
pod install from the ios directory, or run npx pod-install, after installing the package.
React Native CLI apps are supported through autolinking. Expo Go is not supported; use an Expo development build, such as one created with prebuild or EAS Build.
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.
Create The Client
Create oneOMSClient when your app starts and reuse it for wallet operations.
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, access management, and transactions. |
oms.indexer | Token balance and transaction history reads. |
oms.supportedNetworks | Networks supported by this SDK build. |
parseUnits and formatUnits helpers are also exported 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 SDK.
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.