Account requirements
- Legacy account key. Kaia accounts can replace their key, or use multisig and role-based keys. Ethereum-format transactions only work from accounts with the
AccountKeyLegacytype, whose address is derived from their key. Kaia creates accounts with that type, so EVM wallet accounts qualify unless the owner has updated the account key. An updated account can still hold KAIA and tokens, but it cannot sign SODAX transactions.
React apps: @sodax/wallet-sdk-react
The React package wraps each chain family’s native wallet SDK (wagmi for EVM networks, including Kaia) behind a uniform connector interface with a single persisted store.
EVM, alongside any other EVM network you support:
useEvmSwitchChain({ xChainId: ChainKeys.KAIA_MAINNET }) returns isWrongChain and a handleSwitchChain callback to prompt the switch.
Bridging to SDK calls
useWalletProvider({ xChainId: ChainKeys.KAIA_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.
- Full React reference: @sodax/wallet-sdk-react
- Every chain family’s providers: Setup Wallet Providers