Skip to main content
Welcoming cross-network users means supporting the wallets they already use. On Polygon, SODAX works with any EVM wallet that can sign for Polygon mainnet (chain ID 137), such as MetaMask or Rabby. On the networks your users arrive from, it is Phantom, Suiet, Lobstr, and more. SODAX gives you both through one interface, so wallet plumbing never becomes the integration. There are no Polygon-specific account requirements: any EVM account works. The gas token is POL; wallets or tooling that still label it MATIC refer to the same native balance.

React apps: @sodax/wallet-sdk-react

The React package wraps each chain family’s native wallet SDK (wagmi for EVM networks, including Polygon) behind a uniform connector interface with a single persisted store.
Mount the provider with the chains you serve. Polygon is an entry under EVM, alongside any other EVM network you support. Set its rpcUrl: without one, the wagmi transport falls back to viem’s default for Polygon.
Then connect and read accounts with the same three hooks for every chain family:
One EVM connection covers every EVM network, so the wallet may be on a different network than Polygon when your user acts. useEvmSwitchChain({ xChainId: ChainKeys.POLYGON_MAINNET }) returns isWrongChain and a handleSwitchChain callback to prompt the switch.

Bridging to SDK calls

useWalletProvider({ xChainId: ChainKeys.POLYGON_MAINNET }) returns a typed IEvmWalletProvider ready to pass into any @sodax/sdk method. The swap and money market calls take it directly.

Scripts and backends: EvmWalletProvider

Outside React, construct the provider from @sodax/wallet-sdk-core directly:
EvmWalletDefaults lets you tune behavior per provider: sendTransaction, waitForTransactionReceipt, publicClient, walletClient, and transport.