nexus-sdk-integration
Nexus SDK Integration (Parent Skill)
Integrate end-to-end
- Integrate Nexus SDK in any JS/TS frontend project without relying on local repo references.
Ask for required inputs (if missing)
- Ask for target runtime (React/Next/Vite/Vanilla JS).
- Ask for network (mainnet or testnet).
- Ask for wallet connection details (library/provider source).
- Ask which flows are needed (bridge, transfer, execute, swap).
Orchestrate subskills in this order
nexus-sdk-setupnexus-sdk-hooks-eventsnexus-sdk-bridge-flowsnexus-sdk-swap-flowsnexus-sdk-balances-metadata-utils
Follow this integration checklist (high level)
- Install dependency
@avail-project/nexus-core. - Obtain an EIP-1193 provider from wallet connection.
- Initialize SDK once and store instance.
- Attach hooks for intents, allowances, and swap intents (or rely on auto-approve).
- Wire
onEventlisteners for progress updates. - Implement required flows (bridge, transfer, execute, swap).
- Fetch balances and supported chains/tokens for UI.
- Use formatter utilities for display.
- Handle errors and cleanup on disconnect.
More from availproject/nexus-sdk
nexus-sdk-setup
Set up and initialize Nexus SDK in any JS/TS frontend project. Use when configuring wallet provider, SDK instance lifecycle, network selection, or adding a minimal wallet connection path.
17nexus-sdk-bridge-flows
Implement bridge, bridgeAndTransfer, bridgeAndExecute, and execute flows with Nexus SDK. Use when wiring cross-chain bridge and execution operations, simulations, or max-amount checks.
17nexus-sdk-hooks-events
Configure Nexus SDK intent/allowance/swap intent hooks and event streaming. Use when integrating approval flows, intent previews, or real-time progress events (NEXUS_EVENTS).
17nexus-sdk-balances-metadata-utils
Fetch balances, supported chains/tokens, intent history, and use Nexus SDK formatter utilities. Use when building token/chain selectors, showing balances, or formatting UI values.
17nexus-sdk-swap-flows
Implement swapWithExactIn, swapWithExactOut, and swapAndExecute flows with Nexus SDK. Use when wiring swap operations, swap intent hooks, or swap event progress updates.
16