Api Endpoint

Base Swap

An executable swap on Base, routed by 0x across Uniswap, Aerodrome, Balancer, Curve and more. Returns the transaction for your own wallet to sign, plus the approval step if needed, minimum out, route and fees. We never hold funds. Name tokens as ETH, USDC, WETH, cbBTC, AERO… or a 0x address; buying an unknown token runs a sellability check first and refuses a honeypot unless force=1.

Open interactive test console

Offering

Provider
402.com.tr
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://402.com.tr/api/x402/base-swap
MIME type
application/json
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
Swap, dex-aggregator, 0x, execution, Onchain, EVM, wallet-intel, Security, Data, Base, X402

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
1015 ms
Average latency
901 ms
HTTP status
402
Last checked
Reachability
100% over 13 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"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "sell": {
          "type": "string",
          "description": "Token you sell"
        },
        "buy": {
          "type": "string",
          "description": "Token you buy"
        },
        "amount": {
          "type": "string",
          "description": "Amount you sell"
        },
        "taker": {
          "type": "string",
          "description": "Your wallet (signs the swap)"
        },
        "slippage": {
          "type": "string",
          "description": "Slippage in bps (optional, default 100)"
        }
      },
      "required": [
        "sell",
        "buy",
        "amount",
        "taker"
      ]
    },
    "pathParams": {
      "type": "object"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "pathParams": {
          "type": "object"
        },
        "queryParams": {
          "properties": {
            "amount": {
              "description": "Amount you sell",
              "type": "string"
            },
            "buy": {
              "description": "Token you buy",
              "type": "string"
            },
            "sell": {
              "description": "Token you sell",
              "type": "string"
            },
            "slippage": {
              "description": "Slippage in bps (optional, default 100)",
              "type": "string"
            },
            "taker": {
              "description": "Your wallet (signs the swap)",
              "type": "string"
            }
          },
          "required": [
            "sell",
            "buy",
            "amount",
            "taker"
          ],
          "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"
}