The DZap SDK package provides access to the DZap API to find and execute the best on-chain and cross-chain routes across various bridges and exchanges.

Installation

npm install @dzapio/sdk

Package Manager Support

The DZap SDK is compatible with all major JavaScript package managers:
  • npm - The default Node.js package manager
  • yarn - Fast, reliable, and secure dependency management
  • pnpm - Fast, disk space efficient package manager
  • bun - All-in-one JavaScript runtime & toolkit

TypeScript Support

The SDK is built with TypeScript and includes comprehensive type definitions out of the box. No additional @types packages are required.
import { DZapClient } from "@dzapio/sdk";
// Full TypeScript support included

Browser Compatibility

The SDK supports all modern browsers and JavaScript environments:
  • Chrome/Chromium (latest 2 versions)
  • Firefox (latest 2 versions)
  • Safari (latest 2 versions)
  • Edge (latest 2 versions)
  • Node.js (16+)

Bundle Size

The SDK is optimized for production use with tree-shaking support:
  • Minified: ~150KB
  • Gzipped: ~45KB
  • Tree-shakeable: Import only what you need

Repository & Issues

Check out our complete examples in the SDK repository, and feel free to file an issue if you encounter any problems.

Next Steps

Now that you have the SDK installed, let’s get started with the basic setup:

Quick Start

Initialize the SDK and make your first request