{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pumpview-fun/json-schema/pumpview-fun-swap-build-schema.json",
  "title": "SwapBuild",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pumpview-fun-api-openapi.json#/components/schemas/SwapBuild",
  "properties": {
    "request_id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 16,
      "pattern": "^[A-Za-z0-9_-]+$",
      "title": "Request Id"
    },
    "wallet": {
      "type": "string",
      "maxLength": 44,
      "minLength": 32,
      "title": "Wallet"
    },
    "input_mint": {
      "type": "string",
      "maxLength": 44,
      "minLength": 3,
      "title": "Input Mint"
    },
    "output_mint": {
      "type": "string",
      "maxLength": 44,
      "minLength": 3,
      "title": "Output Mint"
    },
    "amount": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,19}$",
      "title": "Amount",
      "description": "Exact input in integer atomic units, encoded as a JSON string."
    },
    "slippage_bps": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": 0.0,
      "title": "Slippage Bps",
      "description": "100 bps = 1%. Explicitly chosen by the signer."
    },
    "tip_lamports": {
      "type": "integer",
      "maximum": 1000000000.0,
      "minimum": 2000000.0,
      "title": "Tip Lamports",
      "default": 2000000
    },
    "max_priority_fee_lamports": {
      "type": "integer",
      "maximum": 100000000.0,
      "minimum": 0.0,
      "title": "Max Priority Fee Lamports",
      "default": 1000000
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "request_id",
    "wallet",
    "input_mint",
    "output_mint",
    "amount",
    "slippage_bps"
  ]
}