{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getchord-xyz/json-schema/getchord-xyz-swap-tx-schema.json",
  "title": "SwapTx",
  "description": "Unsigned transaction against the router.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getchord-xyz-quote-and-swap-api-openapi.yml#/components/schemas/SwapTx",
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "EVM address, hex, case-insensitive."
    },
    "data": {
      "type": "string",
      "description": "Calldata."
    },
    "value": {
      "type": "string",
      "pattern": "^\\d+$",
      "description": "Amount in the token's smallest unit, as a decimal string. Never a float."
    },
    "gasLimit": {
      "type": "string",
      "description": ""
    },
    "chainId": {
      "type": "integer",
      "description": ""
    }
  }
}