sodax-wallet-sdk-core-stacks

Installation
SKILL.md

Stacks (wallet-sdk-core granular skill)

Granular skill for StacksWalletProvider — the low-level Stacks wallet for backend / Node / non-React flows. 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 (almost always a no-op here).
  2. Private-key or browser-extension config? Stacks discriminates by field presence (no type): PK = { privateKey, endpoint? }; browser-extension = { address, endpoint?, provider? } (Leather / Xverse / Asigna). Mutually exclusive — pick one.
  3. Network? defaults.network is 'mainnet' | 'testnet' (default 'mainnet'); addresses are environment-specific (SP… vs ST…).

Integration workflow (new v2 code)

  1. ../integration/knowledge/ai-rules.md — DO / DON'T (read first).
  2. ../integration/knowledge/architecture.mdBaseWalletProvider, dual-config discriminants, shallow defaults merge, library-exports.
  3. ../integration/knowledge/features/stacks.md — full config union, StacksWalletDefaults, methods (sendTransaction / readContract / getBalance), PostConditionMode enum, gotchas.
  4. Setup recipe → ../integration/knowledge/recipes/setup-private-key.md or ../integration/knowledge/recipes/setup-browser-extension.md; then ../integration/knowledge/recipes/sign-and-broadcast.md, ../integration/knowledge/recipes/library-exports.md (PostConditionMode), ../integration/knowledge/recipes/defaults-and-overrides.md.
  5. Lookups → ../integration/knowledge/reference/provider-classes.md, interfaces.md, chain-support.md.

Stacks-specific anti-patterns

Installs
1
First Seen
Jun 10, 2026
sodax-wallet-sdk-core-stacks — icon-project/sodax-sdks