{
  "x402Version": 2,
  "id": 2210,
  "slug": "2210",
  "resource": "https://gate402.app/v1/best-swap",
  "description": "Best-execution intel for a Base token: which DEX pool to trade on and the estimated price impact + total cost for a given trade size, ranked across pools, with a split suggestion. Constant-product estimate for trading agents — the execution plan, not a firm quote.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8E57BFDE053dBb6862991759c19affC5F383d5D0",
      "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
            "sizeUsd": 1000
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "address": "0x…",
            "alternatives": [
              {
                "dex": "uniswap",
                "priceImpactPct": 0.31,
                "totalCostPct": 0.61
              }
            ],
            "best": {
              "dex": "aerodrome",
              "estTokensReceived": 82900,
              "feePct": 0.3,
              "liquidityUsd": 1200000,
              "pairAddress": "0x…",
              "priceImpactPct": 0.17,
              "totalCostPct": 0.47,
              "url": "https://dexscreener.com/base/0x…"
            },
            "notes": [
              "Low impact (~0.17%) on aerodrome — fine to execute in one pool"
            ],
            "priceUsd": "0.012",
            "recommendation": "Trade on aerodrome — ~0.47% total cost (impact + fee)",
            "sizeUsd": 1000,
            "splitSuggested": false,
            "symbol": "TKN"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "address": {
                    "description": "Base ERC-20 token contract address (0x-hex).",
                    "type": "string"
                  },
                  "sizeUsd": {
                    "description": "Trade size in USD (default 1000).",
                    "type": "number"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "gate402.app",
  "lastUpdated": "2026-08-22T19:46:56.759Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-22T19:46:56.463Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "gate402.app",
    "manifest_name": "gate402.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}