sodax-wallet-sdk-react-bridge-to-sdk
Installation
SKILL.md
Bridge to SDK (wallet-sdk-react granular skill)
Granular skill for useWalletProvider — the single hook that bridges a connected wallet into @sodax/sdk / @sodax/dapp-kit calls. Source-of-truth reference lives in the parent broad skill's knowledge tree; this file is the focused workflow only.
Step 1 — Clarify with user before coding
- New code or v1 → v2 port? New → § Integration. Port v1 → § Migration.
- Consuming via raw
@sodax/sdkor@sodax/dapp-kithooks? Either wayuseWalletProviderreturns the same typed provider; the call-shape on the other side differs (load the sibling-package skill — prose pointer below). - Which chain narrowing? Pass
xChainId(a chain key) for the narrowest type (IEvmWalletProvider, …);xChainTypefor family-level; no arg for the broadIWalletProvider.
Integration workflow (new v2 code)
../integration/knowledge/ai-rules.md— DO / DON'T (read first).../integration/knowledge/recipes/setup.md— prerequisite: provider mounted, chain slots declared.../integration/knowledge/recipes/bridge-to-sdk.md— the full pattern: narrow withuseWalletProvider({ xChainId }), pass into the SDK call withraw: false.- Lookups →
../integration/knowledge/reference/hooks.md(wallet-provider bridge section).