# Alchemy Swap Allowance Holder Firm Quote

> Alchemy Swap Allowance Holder Firm Quote is a paid API for AI agents from agent-proxy.alchemy.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns a firm, executable quote for a token swap using the Allowance Holder contract to manage spending allowances

## Facts

- Endpoint: GET https://agent-proxy.alchemy.com/v1/x402/86b0ec6d1d0b3dc0/swap-allowance-holder-quote/
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-proxy-alchemy-com-538c774b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4T1s4fxDNM2j63EHDg8t3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-proxy-alchemy-com-538c774b
```

Example prompt: What's the firm quote to swap 1 ETH for USDC using the Allowance Holder — I need the exact committed price I'll get, not just an estimate.

## When to prefer this

Use this endpoint when you need a committed, firm swap quote (not just an indicative price) before executing a token swap, specifically when using the Allowance Holder pattern to set spending approvals. Choose this over the indicative price endpoint when you need a guaranteed rate to present to a user before transaction signing.

## Known failure modes

- Invalid or unsupported token pair returns error
- Insufficient liquidity for the requested swap amount
- Missing required query parameters such as token addresses or amounts
- Payment of $0.01 USDC not provided results in 402 Payment Required
- Stale quote if market moves before execution
- Network or chain ID mismatch in parameters

## How this service works

Get the firm quote for a swap using Allowance Holder to set allowances

## Output

A firm, executable swap quote including exact input/output token amounts, price, routing details, and allowance holder contract information needed to execute the swap on-chain.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "taker": "0x1234567890123456789012345678901234567890",
   "chainId": 1,
   "buyToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
   "sellToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
   "sellAmount": "1000000000000000000"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "zid",
  "fees",
  "mode",
  "route",
  "issues",
  "buyToken",
  "buyAmount",
  "sellToken",
  "sellAmount",
  "blockNumber",
  "transaction",
  "minBuyAmount",
  "tokenMetadata",
  "allowanceTarget",
  "totalNetworkFee",
  "liquidityAvailable"
 ],
 "properties": {
  "zid": {
   "type": "string"
  },
  "fees": {
   "type": "object",
   "required": [
    "gasFee",
    "zeroExFee",
    "integratorFee",
    "integratorFees"
   ],
   "properties": {
    "gasFee": {
     "type": "null"
    },
    "zeroExFee": {
     "type": "object",
     "required": [
      "type",
      "token",
      "amount"
     ],
     "properties": {
      "type": {
       "type": "string"
      },
      "token": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      }
     }
    },
    "integratorFee": {
     "type": "null"
    },
    "integratorFees": {
     "type": "null"
    }
   }
  },
  "mode": {
   "type": "string"
  },
  "route": {
   "type": "object",
   "required": [
    "fills",
    "tokens"
   ],
   "properties": {
    "fills": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "to",
       "from",
       "source",
       "proportionBps"
      ],
      "properties": {
       "to": {
        "type": "string"
       },
       "from": {
        "type": "string"
       },
       "source": {
        "type": "string"
       },
       "proportionBps": {
        "type": "string"
       }
      }
     }
    },
    "tokens": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "symbol",
       "address"
      ],
      "properties": {
       "symbol": {
        "type": "string"
       },
       "address": {
        "type": "string"
       }
      }
     }
    }
   }
  },
  "issues": {
   "type": "object",
   "required": [
    "balance",
    "allowance",
    "invalidSourcesPassed",
    "simulationIncomplete"
   ],
   "properties": {
    "balance": {
     "type": "object",
     "required": [
      "token",
      "actual",
      "expected"
     ],
     "properties": {
      "token": {
       "type": "string"
      },
      "actual": {
       "type": "string"
      },
      "expected": {
       "type": "string"
      }
     }
    },
    "allowance": {
     "type": "object",
     "required": [
      "actual",
      "spender"
     ],
     "properties": {
      "actual": {
       "type": "string"
      },
      "spender": {
       "type": "string"
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-proxy-alchemy-com-538c774b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-proxy.alchemy.com](https://www.zero.xyz/host/agent-proxy.alchemy.com/llms.txt)
