Api Endpoint

dexswap-quote

Non-custodial swap calldata for Base: give tokenIn, tokenOut, raw amountIn, slippage and recipient; we read Aerodrome and Uniswap V3 on-chain state, pick the max-output route, and return ready-to-sign transaction calldata plus the ERC-20 approval, amountOutMin, price impact and the venues compared. You sign with your own wallet — we never hold or move funds.

Open interactive test console

Offering

Provider
api.agentstools.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.agentstools.dev/swap/quote
MIME type
application/json
First seen
2026-10-16T01:51:10.599Z
Last seen
Tags
Swap, DEX, calldata, non-custodial, Base, aerodrome, uniswap, DeFi, aggregator, on-chain, ERC20, routing

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493"
  }
]

Observed health

Status
Healthy
Latest latency
366 ms
Average latency
868 ms
HTTP status
402
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "tokenIn": {
          "type": "string",
          "description": "Sell token: a supported symbol (WETH, USDC, AERO, ...) or a 0x ERC-20 address on Base."
        },
        "tokenOut": {
          "type": "string",
          "description": "Buy token: a supported symbol or a 0x ERC-20 address on Base."
        },
        "amountIn": {
          "type": "string",
          "description": "Sell amount in RAW atomic units of tokenIn (e.g. 1 WETH = 1000000000000000000). Integer as string."
        },
        "slippageBps": {
          "type": "integer",
          "description": "Max slippage in basis points (50 = 0.5%). Default 50, max 5000."
        },
        "recipient": {
          "type": "string",
          "description": "0x address that receives tokenOut (baked into the calldata)."
        },
        "deadlineSeconds": {
          "type": "integer",
          "description": "Seconds from now until the swap deadline. Default 600."
        }
      },
      "required": [
        "tokenIn",
        "tokenOut",
        "amountIn",
        "recipient"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "HEAD",
            "DELETE"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "amountIn": {
              "description": "Sell amount in RAW atomic units of tokenIn (e.g. 1 WETH = 1000000000000000000). Integer as string.",
              "type": "string"
            },
            "deadlineSeconds": {
              "description": "Seconds from now until the swap deadline. Default 600.",
              "type": "integer"
            },
            "recipient": {
              "description": "0x address that receives tokenOut (baked into the calldata).",
              "type": "string"
            },
            "slippageBps": {
              "description": "Max slippage in basis points (50 = 0.5%). Default 50, max 5000.",
              "type": "integer"
            },
            "tokenIn": {
              "description": "Sell token: a supported symbol (WETH, USDC, AERO, ...) or a 0x ERC-20 address on Base.",
              "type": "string"
            },
            "tokenOut": {
              "description": "Buy token: a supported symbol or a 0x ERC-20 address on Base.",
              "type": "string"
            }
          },
          "required": [
            "tokenIn",
            "tokenOut",
            "amountIn",
            "recipient"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}