Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dzap.io/llms.txt

Use this file to discover all available pages before exploring further.

Three ways to use DZap. Pick one. The rest are one click away.
Install @dzapio/sdk, get a quote, execute a swap.
npm install @dzapio/sdk viem
import { DZapClient } from '@dzapio/sdk';
import { createWalletClient, http } from 'viem';
import { arbitrum } from 'viem/chains';

const dzap = DZapClient.getInstance();

const quotes = await dzap.getTradeQuotes({
  fromChain: 42161,
  account: '0xYourAddress',
  data: [{
    amount: '1000000',                                            // 1 USDC (6 decimals)
    srcToken: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',      // USDC
    destToken: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',     // WETH
    slippage: 1,
  }],
});

console.log(quotes);
Next: SDK Overview · Approvals · Trade
No API key needed for the public Fuse API. The Trade API uses optional API keys for higher rate limits — see Authentication.

What’s next

First swap

Walk through a complete same-chain swap with approvals.

Cross-chain bridge

Move USDC from Arbitrum to Base in one transaction.

AI trade bot

Build an agent that swaps with limits and confirmations.

Concepts

How Core, Fuse, and the AI stack fit together.