> ## 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.

# Quickstart

> Pick your path - ship in under five minutes.

Three ways to use DZap. Pick one. The rest are one click away.

<Tabs>
  <Tab title="SDK (TypeScript)">
    Install `@dzapio/sdk`, get a quote, execute a swap.

    ```bash theme={null}
    npm install @dzapio/sdk viem
    ```

    ```ts theme={null}
    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](/sdk/overview) · [Approvals](/sdk/approvals) · [Trade](/sdk/trade)
  </Tab>

  <Tab title="API (REST)">
    Hit the public endpoints directly — no SDK required.

    ```bash theme={null}
    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](/api/introduction) · [Fuse API](/api/fuse/quote) · [Trade API](/api/trade/overview)
  </Tab>

  <Tab title="AI / CLI">
    Talk to DZap. Get answers and trades from one shell.

    ```bash theme={null}
    npm install -g dzapai
    export OPENAI_API_KEY=sk-...
    dzapai
    ```

    ```text theme={null}
    >> 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](/ai/overview) · [CLI Guide](/ai/cli/interactive-shell) · [ZapBot](/ai/zapbot/overview)
  </Tab>
</Tabs>

<Note>
  No API key needed for the public Fuse API. The Trade API uses optional API keys for higher rate limits - see [Authentication](/api/authentication).
</Note>

## What's next

<CardGroup cols={2}>
  <Card title="First swap" icon="arrows-rotate" href="/cookbook/first-swap">
    Walk through a complete same-chain swap with approvals.
  </Card>

  <Card title="Cross-chain bridge" icon="bridge" href="/cookbook/cross-chain-bridge">
    Move USDC from Arbitrum to Base in one transaction.
  </Card>

  <Card title="AI trade bot" icon="robot" href="/cookbook/ai-trade-bot">
    Build an agent that swaps with limits and confirmations.
  </Card>

  <Card title="Concepts" icon="diagram-project" href="/products/product-stack">
    How Core, Fuse, and the AI stack fit together.
  </Card>
</CardGroup>
