Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt

Use this file to discover all available pages before exploring further.

This quickstart walks through the minimum OMS Wallet SDK flow: install an SDK, create or configure the client, authenticate with email OTP, and send a first transaction from the embedded wallet.
Swift and Kotlin are native app SDKs. TypeScript is best for web, Node, and JavaScript apps.

1. Get project credentials

Go to the Polygon project dashboard, create an account, and set up a new project. Copy your project access key and project ID.

2. Install an SDK

pnpm add @0xsequence/typescript-sdk@alpha viem

3. Create the client

Create the client once when your app starts, then reuse it for wallet operations.
import { OMSClient } from '@0xsequence/typescript-sdk'

const oms = new OMSClient({
  publicApiKey: 'YOUR_PROJECT_ACCESS_KEY',
  projectId: 'YOUR_PROJECT_ID',
})

4. Authenticate with email

Email authentication is a two-step OTP flow. Start auth, show your OTP input, then complete auth with the user-entered code.
await oms.wallet.startEmailAuth({ email: 'user@example.com' })

const { walletAddress } = await oms.wallet.completeEmailAuth({ code: '123456' })

console.log('Wallet address:', walletAddress)

5. Send a first transaction

Send a native token transaction on Polygon Amoy. Values are raw base-unit values. On supported testnets, fee options are automatically sponsored.
import { Networks } from '@0xsequence/typescript-sdk'
import { parseEther, type Address } from 'viem'

const recipient = '0xRecipient' as Address

const tx = await oms.wallet.sendTransaction({
  network: Networks.amoy,
  to: recipient,
  value: parseEther('0'),
})

console.log('Transaction:', tx.txnHash ?? tx.txnId)

Next steps

SDK Overview

Compare supported SDKs and find the detailed reference for each one.

Send USDC

Send an ERC-20 transfer from an embedded wallet.

Authentication

Review auth options, wallet selection, and wallet creation where each SDK supports them.

Balances & History

Read token balances and raw base-unit values through the SDK indexer clients.