{
  "openapi": "3.1.0",
  "info": {
    "title": "KYACheck",
    "version": "1.0.0",
    "x-guidance": "KYA / counterparty check: call /check?wallet=<address> (optional &name=<agent or entity> &chain=base|eth|arb|poly|bsc). Returns PASS / REVIEW / BLOCK with reasons from an exact OFAC crypto-address match, an OFAC name screen and on-chain wallet risk, signed as a verifiable LSO Receipt. $0.10 via x402. Full catalog: lonestaroracle.xyz",
    "description": "Know-your-agent / counterparty check: OFAC wallet + name screen, on-chain wallet risk, signed PASS/REVIEW/BLOCK verdict. $0.10 via x402 (Base or Solana).",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "x-x402-proof": "https://kya.lonestaroracle.xyz/.well-known/x402-proof"
  },
  "paths": {
    "/check": {
      "get": {
        "summary": "KYA / counterparty check for a wallet (and optional name) with a signed verdict",
        "operationId": "check_check_get",
        "parameters": [
          {
            "name": "wallet",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Agent/counterparty wallet address (EVM 0x... or any OFAC-listed crypto address)",
              "title": "Wallet"
            },
            "description": "Agent/counterparty wallet address (EVM 0x... or any OFAC-listed crypto address)"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional agent, company or person name to screen against OFAC",
              "title": "Name"
            },
            "description": "Optional agent, company or person name to screen against OFAC"
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "EVM chain for on-chain risk: base, eth, arb, poly, bsc",
              "default": "base",
              "title": "Chain"
            },
            "description": "EVM chain for on-chain risk: base, eth, arb, poly, bsc"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "authMode": "payment",
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.100000"
          },
          "security": [
            {
              "x402": {}
            }
          ]
        }
      }
    },
    "/signer": {
      "get": {
        "summary": "Signer",
        "operationId": "signer_signer_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  }
}