Skip to main content

Requirements

  • Node.js 18+
  • React 18+ (React 19 is supported)
Peer dependencies for EVM wallet support:

Install the widget

The widget depends on @dzapio/wallet. You do not need to install the wallet package separately. For wallet-only hosts, see Wallet overview.

Stylesheet

Import the bundled CSS once at your app entry (layout, _app, or main.tsx):
Without this import, the widget renders unstyled.

Credentials

Do not put a privileged server-only secret in the browser. The widget dzapApiKey is a public integrator key (same class as the Trade/Fuse x-api-key). Request one via Discord or support@dzap.io.

Vite

Wallet dependencies (Bitcoin in particular) may expect Node globals. If the build fails on Buffer / global / process, add a polyfill:
Vite (vite.config.ts)
Deduping React and Solana wallet-adapter keeps a single wallet context across @dzapio/wallet and @dzapio/widget.

Next.js

App Router is supported. Mark the widget tree as a client component ('use client') and import styles in that module or in layout.tsx. Next.js usually does not need the Buffer polyfill. See the Next.js example.

Next: Quickstart

Last modified on August 18, 2026