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.
SDK (TypeScript)
API (REST)
AI / CLI
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 Hit the public endpoints directly — no SDK required.curl -X POST https://zap.dzap.io/v1/quote \
-H "Content-Type: application/json" \
-d '{
"srcChainId": 42161,
"destChainId": 42161,
"account": "0xYourAddress",
"srcToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"destToken": "0x724dc807b04555b71ed48a6896b6F41593b8C637",
"amount": "1000000",
"slippage": 1
}'
Next: API Introduction · Fuse API · Trade API Talk to DZap. Get answers and trades from one shell.npm install -g dzapai
export OPENAI_API_KEY=sk-...
dzapai
>> show top pools on chain 1
>> what's the price of USDC?
>> /tools
>> /set wallet 0xabc...
>> swap 100 USDC to WETH on arbitrum
Next: AI Overview · CLI Guide · ZapBot
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.