@nktkas/hyperliquid can drive it with no extra infrastructure and no changes to how signing works.
HyperCore vs HyperEVM. HyperCore is the signed-action L1 covered here (trading, transfers, agent approvals). HyperEVM is a separate, standard EVM chain (Chain ID
999) for smart contracts. If you want to send EVM transactions or interact with contracts on HyperEVM instead, use the Hyperliquid SDK integration recipe.Prerequisites
- The JavaScript SDK with the EVM extension added.
- A Dynamic embedded EVM wallet (see creating WaaS wallet accounts).
Install
Create the exchange client and place an order
Turn the embedded wallet account into a Viem WalletClient withcreateWalletClientForWalletAccount, then hand its account to the Hyperliquid ExchangeClient. It signs every HyperCore action with that account’s signTypedData.
- JavaScript
- React
Read account state
Use anInfoClient with the wallet address to fetch balances and open positions.
Related
- Hyperliquid SDK integration for connected/external EVM wallets and HyperEVM (Chain ID 999).
- Getting a Viem WalletClient
- Sign Typed Data (EIP-712)
- Hyperliquid SDK repository
- Hyperliquid API documentation