{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/memeswap-fun/json-schema/memeswap-fun-build-request-schema.json",
  "title": "BuildRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/memeswap-fun-openapi.json#/components/schemas/BuildRequest",
  "type": "object",
  "required": [
    "chain",
    "side",
    "token",
    "amount",
    "from",
    "quote"
  ],
  "properties": {
    "chain": {
      "type": "string"
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ]
    },
    "token": {
      "type": "string"
    },
    "amount": {
      "type": "string",
      "pattern": "^\\d*\\.?\\d+$"
    },
    "slippageBps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5000,
      "default": 300
    },
    "from": {
      "type": "string",
      "description": "Public signing-wallet address; the output is bound to this caller."
    },
    "quote": {
      "type": "object",
      "description": "The prior /api/quote response.",
      "additionalProperties": true
    }
  },
  "additionalProperties": false
}