nexus-elements-deposit

Installation
SKILL.md

Nexus Elements - Deposit

Install

  • Install widget:
    • npx shadcn@latest add @nexus-elements/deposit
  • Ensure NexusProvider is installed and initialized before rendering.

Required setup before rendering

  • Ensure useNexus().nexusSDK is initialized.
  • Ensure exchangeRate contains destination token rate (widget requires it for amount simulation).
  • Provide a correct destination config and executeDeposit builder.
  • If using the built-in MAX interaction, ensure the widget can compute current source selections so it can call sdk.calculateMaxForSwap(...).

Initialize SDK (required once per app)

  • On wallet connect, resolve an EIP-1193 provider and call useNexus().handleInit(provider).
  • Wait for useNexus().nexusSDK before allowing amount confirmation.
  • Re-run init after reconnect if wallet session resets.

Render widget

Related skills

More from availproject/nexus-elements

Installs
26
First Seen
Feb 4, 2026