Skip to main content
This quickstart creates an active wallet with email OTP and submits a zero-value transaction on Polygon Amoy.

Install the SDK

The package supports browser applications and Node.js 22 or newer.

Create the client

OMSWallet exposes two clients with different state models:
  • omsWallet.wallet holds one active wallet session. Authentication, transactions, and signing use this stateful client.
  • omsWallet.indexer is an independent read-only client. It can query any address without an active wallet session.

Authenticate with email OTP

The default automatic selection activates the first existing Ethereum wallet or creates and activates one when none exists. The browser client persists the completed session so a later OMSWallet instance can restore it.

Send a test transaction

sendTransaction prepares, executes, and waits up to 60 seconds by default for a transaction hash or terminal status. txnHash remains optional because submission status can still be unresolved when the wait ends. Continue with authentication for Google, Apple, custom OIDC, and manual wallet selection. See send transactions for contract calls, fee behavior, and status handling.