sodax-dapp-kit-auxiliary-services

Installation
SKILL.md

Auxiliary services (dapp-kit granular skill)

Granular skill for the smaller @sodax/dapp-kit v2 surfaces grouped together: partner (queryKey partner), recovery (recovery), backend queries (backend, read-only — no wallet), and shared utilities (shared). React-only — backend/Node uses @sodax/sdk directly.

Step 1 — Clarify with user before coding

  1. New code or v1 → v2 port?
  2. Which surface?
    • Partner fees: useIsTokenApproveduseApproveTokenuseSetSwapPreferenceuseFeeClaimSwap (returns IntentAutoSwapResult, NOT SwapResponse); useGetAutoSwapPreferences, useFetchAssetsBalances for reads.
    • Recovery: useHubAssetBalances (list stuck hub assets) → useWithdrawHubAsset (withdraw one back to a spoke). Follows a known failed cross-chain op — investigate the failure first.
    • Backend reads (no wallet): intent tracking (useBackendIntentByTxHash polls 1s, useBackendIntentByHash, useBackendUserIntents), orderbook (useBackendOrderbookpagination nests under params), MM data (useBackendMoneyMarketPosition etc.), swap submission (useBackendSubmitSwapTx mutation + useBackendSubmitSwapTxStatus).
    • Shared utilities: useSodaxContext, useHubProvider, useXBalances (needs xService from wallet-sdk-react), useDeriveUserWalletAddress / useGetUserHubWalletAddress, useEstimateGas, useStellarTrustlineCheck / useRequestTrustline.

Integration workflow (new v2 code)

Installs
1
First Seen
Jun 10, 2026
sodax-dapp-kit-auxiliary-services — icon-project/sodax-sdks