{
  "x402Version": 1,
  "provider": {
    "name": "SwapEazi",
    "description": "Cross-chain stablecoin routing infrastructure. One API routes swaps across 7 blockchain networks with wallet compliance screening and 0.25% flat pricing. Non-custodial, no sign-up.",
    "url": "https://swapeazi.io",
    "contact": "hello@swapeazi.io"
  },
  "resources": [
    {
      "path": "/api/x402/swap",
      "method": "POST",
      "description": "Execute a cross-chain stablecoin swap. Returns a signed transaction object ready to broadcast. Supports ETH, Polygon, Arbitrum, Optimism, Base, BNB Chain.",
      "pricing": {
        "scheme": "exact",
        "network": "base",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amount": "20000",
        "currency": "USDC",
        "humanReadable": "$0.02 per call"
      },
      "inputSchema": {
        "type": "object",
        "required": ["fromChain", "toChain", "fromToken", "toToken", "fromAmount", "fromAddress"],
        "properties": {
          "fromChain":   { "type": "string", "enum": ["ETH", "POL", "ARB", "OPT", "BAS", "BNB"], "description": "Source chain" },
          "toChain":     { "type": "string", "enum": ["ETH", "POL", "ARB", "OPT", "BAS", "BNB"], "description": "Destination chain" },
          "fromToken":   { "type": "string", "description": "Source token symbol e.g. USDC, USDT, DAI, EURC, cKES, cNGN, ZARP" },
          "toToken":     { "type": "string", "description": "Destination token symbol" },
          "fromAmount":  { "type": "string", "description": "Human-readable amount e.g. \"100\"" },
          "fromAddress": { "type": "string", "description": "Sender wallet address (0x...)" },
          "slippage":    { "type": "number", "description": "Max slippage tolerance, default 0.005 (0.5%)" }
        }
      }
    },
    {
      "path": "/api/x402/quote",
      "method": "POST",
      "description": "Get a free quote for a cross-chain stablecoin swap. Returns estimated output, bridge used, fees, and timing. No payment required.",
      "pricing": null,
      "inputSchema": {
        "type": "object",
        "required": ["fromChain", "toChain", "fromToken", "toToken", "fromAmount", "fromAddress"],
        "properties": {
          "fromChain":   { "type": "string", "enum": ["ETH", "POL", "ARB", "OPT", "BAS", "BNB"] },
          "toChain":     { "type": "string", "enum": ["ETH", "POL", "ARB", "OPT", "BAS", "BNB"] },
          "fromToken":   { "type": "string" },
          "toToken":     { "type": "string" },
          "fromAmount":  { "type": "string" },
          "fromAddress": { "type": "string" },
          "slippage":    { "type": "number" }
        }
      }
    }
  ]
}
