Api Endpoint

base-quote

Slippage estimate, swap quote, and best DEX price on Base - compares Uniswap v2, Uniswap v3, and Aerodrome on-chain via Multicall3, returns amount received, chosen path, and price impact.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
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://x402.agentindex.world/base/quote
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
swap quote base, best dex price base, base rpc, uniswap aerodrome, slippage estimate

Payment pricing

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

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

Observed health

Status
Reachable
Latest latency
334 ms
Average latency
702 ms
HTTP status
405
Last checked
Reachability
100% over 11 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": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "token_in": {
          "title": "Token In",
          "type": "string"
        },
        "token_out": {
          "title": "Token Out",
          "type": "string"
        },
        "amount_in": {
          "exclusiveMinimum": 0,
          "title": "Amount In",
          "type": "integer"
        }
      },
      "required": [
        "token_in",
        "token_out",
        "amount_in"
      ],
      "title": "QuoteInput",
      "type": "object"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "token_in": {
          "title": "Token In",
          "type": "string"
        },
        "token_out": {
          "title": "Token Out",
          "type": "string"
        },
        "amount_in": {
          "title": "Amount In",
          "type": "string"
        },
        "decimals_in": {
          "title": "Decimals In",
          "type": "integer"
        },
        "decimals_out": {
          "title": "Decimals Out",
          "type": "integer"
        },
        "best_dex": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Best Dex"
        },
        "best_amount_out_raw": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Best Amount Out Raw"
        },
        "best_amount_out": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Best Amount Out"
        },
        "price_impact_pct": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price Impact Pct"
        },
        "uniswap_v2": {
          "properties": {
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "amount_out_raw": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out Raw"
            },
            "amount_out": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out"
            },
            "detail": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Detail"
            }
          },
          "required": [
            "available",
            "amount_out_raw",
            "amount_out",
            "detail"
          ],
          "title": "DexQuote",
          "type": "object"
        },
        "uniswap_v3": {
          "properties": {
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "amount_out_raw": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out Raw"
            },
            "amount_out": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out"
            },
            "detail": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Detail"
            }
          },
          "required": [
            "available",
            "amount_out_raw",
            "amount_out",
            "detail"
          ],
          "title": "DexQuote",
          "type": "object"
        },
        "aerodrome": {
          "properties": {
            "available": {
              "title": "Available",
              "type": "boolean"
            },
            "amount_out_raw": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out Raw"
            },
            "amount_out": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Out"
            },
            "detail": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Detail"
            }
          },
          "required": [
            "available",
            "amount_out_raw",
            "amount_out",
            "detail"
          ],
          "title": "DexQuote",
          "type": "object"
        }
      },
      "required": [
        "token_in",
        "token_out",
        "amount_in",
        "decimals_in",
        "decimals_out",
        "best_dex",
        "best_amount_out_raw",
        "best_amount_out",
        "price_impact_pct",
        "uniswap_v2",
        "uniswap_v3",
        "aerodrome"
      ],
      "title": "QuoteOutput"
    }
  },
  "required": [
    "type"
  ]
}