⚠️ Deprecated — Use Nexus Widget
The Common hooks package is now internal to Nexus Widget.
Shared hooks like useTransactionSteps, usePolling, useDebouncedValue, and useNexusError are bundled inside Nexus Widget and no longer need separate installation or direct usage.
Migration
- If you were using Common hooks to build custom flows, use Nexus Widget directly — it handles all swap, send, and deposit flows out of the box.
- If you need programmatic SDK access for custom UX, use the Nexus SDK directly.
Install Nexus Widget
npm (recommended):
npm install @avail-project/widgets viem wagmi @tanstack/react-queryshadcn:
npx shadcn@latest add availproject/widgets/nexusCurrent skills to use instead
For building custom integrations, refer to the Nexus SDK agent skills (.agents/skills/):
nexus-sdk-setup— SDK initialization and wallet wiringnexus-sdk-bridge-flows— bridge, bridgeAndTransfer, bridgeAndExecutenexus-sdk-swap-flows— swapWithExactIn, swapWithExactOut, swapAndExecutenexus-sdk-hooks-events— intent hooks and event streamingnexus-sdk-balances-metadata-utils— balances, supported chains/tokens, formattersnexus-sdk-integration— end-to-end integration guide