{
  "openapi": "3.1.0",
  "info": {
    "title": "TokenScope",
    "version": "2.0.0",
    "x-guidance": "On-chain due diligence for ERC-20 (EVM) and Solana SPL tokens \u2014 risk score, GoPlus security scan, honeypot detection, liquidity, holder concentration, AI analyst verdict. $0.15/query via x402 USDC on Base.  |  Also from LoneStarOracle: EquityScope (equity.lonestaroracle.xyz) for stock analysis  |  ChainScout (chain.lonestaroracle.xyz) for whale moves  |  WalletRisk (wallet.lonestaroracle.xyz) for wallet risk scoring  |  Full catalog: lonestaroracle.xyz",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "description": "Honeypot, ownership, liquidity and holder-concentration risk scan for any EVM or Solana token, returns a 0-10 risk score. Pass ?address=&chain=.",
    "x-x402-proof": "https://token.lonestaroracle.xyz/.well-known/x402-proof"
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/report": {
      "get": {
        "summary": "Token Security & Due-Diligence Scan",
        "operationId": "get_report_report_get",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Address"
            }
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "eth",
              "title": "Chain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Service response data"
                }
              }
            }
          },
          "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.150000"
          },
          "protocols": [
            {
              "x402": {}
            },
            {
              "mpp": {
                "method": "stripe",
                "intent": "charge",
                "currency": "usd"
              }
            }
          ],
          "inputSchema": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "title": "Address",
                "description": "Token address: EVM 0x contract (eth/base/bsc/arb/poly) or Solana mint (base58). Chain auto-detected from format.",
                "examples": [
                  "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                  "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
                ]
              },
              "chain": {
                "type": "string",
                "default": "eth",
                "title": "Chain",
                "description": "Chain: eth | base | bsc | arb | poly | solana",
                "enum": [
                  "eth",
                  "base",
                  "bsc",
                  "arb",
                  "poly",
                  "solana"
                ]
              }
            },
            "required": [
              "address"
            ]
          },
          "outputSchema": {
            "type": "object",
            "description": "Service response data"
          }
        },
        "description": "Honeypot, ownership, liquidity and holder-concentration risk scan for any EVM or Solana token, returns a 0-10 risk score. Pass ?address=&chain=.",
        "tags": [
          "token",
          "crypto",
          "security",
          "honeypot",
          "rugcheck",
          "due-diligence",
          "solana",
          "evm"
        ]
      }
    },
    "/report/text": {
      "get": {
        "summary": "Get Report Text",
        "description": "Generate a plain text due diligence report for an ERC-20 token.",
        "operationId": "get_report_text_report_text_get",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Address"
            }
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "eth",
              "title": "Chain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/demo": {
      "get": {
        "summary": "Get Demo",
        "description": "Free demo endpoint \u2014 rate-limited to 1 request per IP per 5 minutes.",
        "operationId": "get_demo_demo_get",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
              "title": "Address"
            }
          },
          {
            "name": "chain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "eth",
              "title": "Chain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "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"
      }
    }
  }
}