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

  1. New code or v1 → v2 port? New → § Integration. Port v1 → § Migration.
  2. Consuming via raw @sodax/sdk or @sodax/dapp-kit hooks? Either way useWalletProvider returns the same typed provider; the call-shape on the other side differs (load the sibling-package skill — prose pointer below).
  3. Which chain narrowing? Pass xChainId (a chain key) for the narrowest type (IEvmWalletProvider, …); xChainType for family-level; no arg for the broad IWalletProvider.

Integration workflow (new v2 code)

  1. ../integration/knowledge/ai-rules.md — DO / DON'T (read first).
  2. ../integration/knowledge/recipes/setup.md — prerequisite: provider mounted, chain slots declared.
  3. ../integration/knowledge/recipes/bridge-to-sdk.md — the full pattern: narrow with useWalletProvider({ xChainId }), pass into the SDK call with raw: false.
  4. Lookups → ../integration/knowledge/reference/hooks.md (wallet-provider bridge section).

Bridge-specific anti-patterns

Installs
1
First Seen
Jun 10, 2026
sodax-wallet-sdk-react-bridge-to-sdk — icon-project/sodax-sdks