{
  "x402Version": 2,
  "id": 31894,
  "slug": "31894",
  "resource": "https://402.com.tr/api/x402/base-swap",
  "description": "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.",
  "type": "http",
  "serviceName": "Base Swap",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x973a31858f4d2125f48c880542da11a2796f12d6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {},
          "queryParams": {
            "amount": "10",
            "buy": "ETH",
            "sell": "USDC",
            "slippage": "100",
            "taker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "chain": "base",
            "checkedAt": "2026-10-08T08:46:40.081Z",
            "insufficientBalance": false,
            "routeCount": 1,
            "stepsCount": 2,
            "tokenSafety": null
          },
          "type": "json"
        }
      },
      "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"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_pa0gqlv1"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "swap",
    "dex-aggregator",
    "0x",
    "execution",
    "onchain",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "402.com.tr",
  "lastUpdated": "2026-10-11T17:13:33.512Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T17:13:33.16Z"
  },
  "metadata": {
    "serviceName": "Base Swap",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "pathParams": {},
            "queryParams": {
              "amount": "10",
              "buy": "ETH",
              "sell": "USDC",
              "slippage": "100",
              "taker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "chain": "base",
              "checkedAt": "2026-10-08T08:46:40.081Z",
              "insufficientBalance": false,
              "routeCount": 1,
              "stepsCount": 2,
              "tokenSafety": null
            },
            "type": "json"
          }
        },
        "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"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_pa0gqlv1"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "402.com.tr",
    "manifest_name": "402.com.tr",
    "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": {
    "example": {},
    "type": "string"
  }
}