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.
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
| Property | Use |
|---|---|
oms.wallet | Authentication, session state, wallet selection, message signing, ID tokens, and transactions. |
oms.indexer | Token balance 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.
On testnets, fee options are automatically sponsored, so Polygon Amoy is a good first network for testing.