{
  "x402Version": 2,
  "id": 29255,
  "slug": "29255",
  "resource": "https://api.agentstools.dev/swap/quote",
  "description": "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.",
  "type": "http",
  "serviceName": "dexswap-quote",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "amountIn": "1000000000000000000",
            "recipient": "0x1111111111111111111111111111111111111111",
            "slippageBps": 50,
            "tokenIn": "WETH",
            "tokenOut": "USDC"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "approval": {
              "amountRaw": "1000000000000000000",
              "data": "0x095ea7b3...",
              "spender": "0x2626664c..."
            },
            "buyToken": {
              "decimals": 6,
              "symbol": "USDC"
            },
            "chain": "eip155:8453",
            "deadline": null,
            "disclaimer": "not financial advice; you sign; ...",
            "network": "base",
            "quote": {
              "buyAmountMinRaw": "1831176287",
              "buyAmountRaw": "1840378178",
              "gasEstimate": 81662,
              "priceImpactPct": 0.02,
              "route": {
                "feeTier": 500,
                "hops": 1,
                "venue": "univ3"
              },
              "slippageBps": 50,
              "venuesCompared": [
                {
                  "buyAmountRaw": "1838425629",
                  "venue": "aerodrome"
                },
                {
                  "buyAmountRaw": "1840378178",
                  "venue": "univ3"
                }
              ]
            },
            "sellAmountRaw": "1000000000000000000",
            "sellToken": {
              "decimals": 18,
              "symbol": "WETH"
            },
            "transaction": {
              "data": "0x04e45aaf...",
              "to": "0x2626664c...",
              "value": "0"
            },
            "warnings": []
          },
          "type": "json"
        }
      },
      "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"
      }
    }
  },
  "tags": [
    "swap",
    "dex",
    "calldata",
    "non-custodial",
    "base",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:10:29.502Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:10:29.268Z"
  },
  "metadata": {
    "serviceName": "dexswap-quote",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "amountIn": "1000000000000000000",
              "recipient": "0x1111111111111111111111111111111111111111",
              "slippageBps": 50,
              "tokenIn": "WETH",
              "tokenOut": "USDC"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "approval": {
                "amountRaw": "1000000000000000000",
                "data": "0x095ea7b3...",
                "spender": "0x2626664c..."
              },
              "buyToken": {
                "decimals": 6,
                "symbol": "USDC"
              },
              "chain": "eip155:8453",
              "deadline": null,
              "disclaimer": "not financial advice; you sign; ...",
              "network": "base",
              "quote": {
                "buyAmountMinRaw": "1831176287",
                "buyAmountRaw": "1840378178",
                "gasEstimate": 81662,
                "priceImpactPct": 0.02,
                "route": {
                  "feeTier": 500,
                  "hops": 1,
                  "venue": "univ3"
                },
                "slippageBps": 50,
                "venuesCompared": [
                  {
                    "buyAmountRaw": "1838425629",
                    "venue": "aerodrome"
                  },
                  {
                    "buyAmountRaw": "1840378178",
                    "venue": "univ3"
                  }
                ]
              },
              "sellAmountRaw": "1000000000000000000",
              "sellToken": {
                "decimals": 18,
                "symbol": "WETH"
              },
              "transaction": {
                "data": "0x04e45aaf...",
                "to": "0x2626664c...",
                "value": "0"
              },
              "warnings": []
            },
            "type": "json"
          }
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "approval": {
      "amountRaw": "1000000000000000000",
      "data": "0x095ea7b3...",
      "spender": "0x2626664c..."
    },
    "buyToken": {
      "decimals": 6,
      "symbol": "USDC"
    },
    "chain": "eip155:8453",
    "deadline": null,
    "disclaimer": "not financial advice; you sign; ...",
    "network": "base",
    "quote": {
      "buyAmountMinRaw": "1831176287",
      "buyAmountRaw": "1840378178",
      "gasEstimate": 81662,
      "priceImpactPct": 0.02,
      "route": {
        "feeTier": 500,
        "hops": 1,
        "venue": "univ3"
      },
      "slippageBps": 50,
      "venuesCompared": [
        {
          "buyAmountRaw": "1838425629",
          "venue": "aerodrome"
        },
        {
          "buyAmountRaw": "1840378178",
          "venue": "univ3"
        }
      ]
    },
    "sellAmountRaw": "1000000000000000000",
    "sellToken": {
      "decimals": 18,
      "symbol": "WETH"
    },
    "transaction": {
      "data": "0x04e45aaf...",
      "to": "0x2626664c...",
      "value": "0"
    },
    "warnings": []
  }
}