sodax-dapp-kit
Installation
SKILL.md
When to use this skill
AGENTS.md routes you here when you're working with @sodax/dapp-kit v2 — either writing new code or porting from v1.
Pick your mode:
- Writing NEW v2 code (greenfield dapp-kit usage, no v1 hooks)? → § Integration mode below.
- Porting EXISTING v1 code to v2 (grep finds
useSpokeProvider,invalidateMmQueries, legacyuseMigrate,*_MAINNET_CHAIN_ID)? → § Migration mode below. - Both? → migration first, then integration. Stale v1 patterns leak into new code if you skip it.
For backend / Node → use sodax-sdk (dapp-kit is React-only).
Every dapp-kit consumer also needs wallet connectivity — also load sodax-wallet-sdk-react.
Integration mode (writing new v2 code)
Pick this mode when the consumer is a React dapp using @sodax/dapp-kit hooks. Common signals: