OMSClient is the TypeScript entry point for wallet auth, transactions, message signing, and balance queries. Use the SDK Networks registry for network arguments and viem helpers for EVM values such as Address, Abi, and raw base-unit bigint amounts.
Install
Install the published SDK package. The quickstart examples also useviem helpers such as parseEther, Address, and typed ABI definitions, so install it as a direct dependency too.
Create The Client
publishableKey selects the matching OMS Wallet environment for client SDK calls.
The client exposes:
| Property | Use |
|---|---|
oms.wallet | Authentication, session state, wallet selection, message signing, 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.
Send A Transaction
After authentication, send a native token transaction withoms.wallet.sendTransaction. Values are raw base-unit bigint values.
Polygon Amoy is a good first network for testing.