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

# Get Quote

> Quote a Fuse intent — same-chain or cross-chain, swap or zap.

Returns the best path for the requested operation, including approval data, expected output, and per-step fees.

### Body

<ParamField body="srcToken" type="string" required>Source token address. Use `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` for native.</ParamField>

<ParamField body="srcChainId" type="integer" required>Source chain ID.</ParamField>

<ParamField body="destToken" type="string" required>Destination token (or LP/NFT) address.</ParamField>

<ParamField body="destChainId" type="integer" required>Destination chain ID. Same as `srcChainId` for same-chain.</ParamField>

<ParamField body="amount" type="string">Amount to swap or liquidity to add (in wei). Optional for some operations.</ParamField>

<ParamField body="recipient" type="string" required>Recipient address for the resulting tokens / position.</ParamField>

<ParamField body="slippage" type="number" required>Slippage tolerance, in percent. `0.5` = 0.5%.</ParamField>

<ParamField body="account" type="string" required>Account initiating the zap.</ParamField>

<ParamField body="permit" type="string">Encoded Permit2 data for ERC20 tokens (optional).</ParamField>

<ParamField body="positionDetails" type="object">
  NFT-related operation details (e.g. Uniswap V3 LP NFT).

  <Expandable title="positionDetails">
    <ParamField body="nftId" type="string">NFT ID associated with the zap.</ParamField>
  </Expandable>
</ParamField>

<ParamField body="poolDetails" type="object">
  Pool-specific details for liquidity operations.

  <Expandable title="poolDetails">
    <ParamField body="lowerTick" type="integer">Lower tick (concentrated liquidity).</ParamField>

    <ParamField body="upperTick" type="integer">Upper tick.</ParamField>
  </Expandable>
</ParamField>

<ParamField body="allowedBridges" type="string[]">Whitelist of bridges to consider.</ParamField>

<ParamField body="allowedDexes" type="string[]">Whitelist of swap protocols to consider.</ParamField>

### Response

<ResponseField name="status" type="string">`"success"` on 200.</ResponseField>

<ResponseField name="data.amountOut" type="string">Estimated output amount (in destination token wei).</ResponseField>

<ResponseField name="data.approvalData" type="object">
  Approval to grant before executing.

  <Expandable title="approvalData">
    <ResponseField name="approveTo" type="string">Spender address.</ResponseField>

    <ResponseField name="callTo" type="string">Token contract to call.</ResponseField>

    <ResponseField name="amount" type="string">Amount to approve.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="data.path" type="object[]">Ordered list of steps. Each step: `action`, `protocol`, `input[]`, `output[]`, `fee[]`, `estimatedDuration`.</ResponseField>

### Examples

<RequestExample>
  ```bash curl theme={null}
  curl -X POST https://zap.dzap.io/v1/quote \
    -H "Content-Type: application/json" \
    -d '{
      "srcToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "srcChainId": 8453,
      "destToken": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
      "destChainId": 8453,
      "amount": "5000000",
      "recipient": "0x99BCEBf44433E901597D9fCb16E799a4847519f6",
      "slippage": 0.5,
      "account": "0x99BCEBf44433E901597D9fCb16E799a4847519f6"
    }'
  ```

  ```ts SDK theme={null}
  const quote = await dzap.getZapQuote({
    srcToken: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
    srcChainId: 8453,
    destToken: '0xd0b53D9277642d899DF5C87A3966A349A798F224',
    destChainId: 8453,
    amount: '5000000',
    recipient: '0x99BC...',
    slippage: 0.5,
    account: '0x99BC...',
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "success",
    "data": {
      "amountOut": "918943376897193",
      "approvalData": {
        "callTo": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "approveTo": "0x1d46863e3592745008b5CbbAC12014F67329A9b8",
        "amount": "1680715"
      },
      "path": [
        {
          "action": "swap",
          "protocol": { "id": "dzap", "name": "Dzap Aggregator" },
          "input": [{ "amount": "1680715", "asset": { "symbol": "USDC", "chainId": 8453 } }],
          "output": [{ "amount": "918943376897193", "minReturn": "918024433520296", "asset": { "symbol": "WETH" } }],
          "estimatedDuration": 10
        }
      ]
    }
  }
  ```
</ResponseExample>
