Account requirements
- The network may need adding. If a user’s wallet does not list HyperEVM yet, they add it as a custom network: chain ID 999, RPC URL
https://rpc.hyperliquid.xyz/evm, currency symbol HYPE. Hyperliquid’s onboarding guide walks through it. - HYPE for gas, held on HyperEVM. HYPE is HyperEVM’s native gas token. HYPE in the user’s HyperCore spot balance does not pay HyperEVM gas until it is transferred to HyperEVM.
React apps: @sodax/wallet-sdk-react
The React package wraps each chain family’s native wallet SDK (wagmi for EVM networks, including HyperEVM) behind a uniform connector interface with a single persisted store.
EVM, alongside any other EVM network you support:
useEvmSwitchChain({ xChainId: ChainKeys.HYPEREVM_MAINNET }) returns isWrongChain and a handleSwitchChain callback to prompt the switch.
Bridging to SDK calls
useWalletProvider({ xChainId: ChainKeys.HYPEREVM_MAINNET }) returns a typed IEvmWalletProvider ready to pass into any @sodax/sdk method. The swap and money market calls take it directly.
Showing balances
Balances read through SODAX (for exampleuseXBalances from @sodax/dapp-kit) are HyperEVM balances. They do not include what the user holds in HyperCore spot or perps, so label the figure as the HyperEVM balance.
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