{
  "openapi": "3.1.0",
  "info": {
    "title": "sol-rugcheck - Solana token safety for AI agents",
    "version": "1.0.0",
    "description": "Pre-trade intelligence for Solana SPL tokens: safety (freeze/mint authority, transfer hooks/fees, holder concentration) plus live market data (price, liquidity, 24h volume, age) in one call, returned with a GO/CAUTION/DANGER verdict (GoPlus + DexScreener). Pay-per-call in USDC via x402 on Solana or Base. No API key, no signup.",
    "contact": {
      "name": "sol-rugcheck",
      "email": "vanlucpdu@gmail.com",
      "url": "https://base-sol-rugcheck.vercel.app"
    }
  },
  "servers": [
    {
      "url": "https://base-sol-rugcheck.vercel.app"
    }
  ],
  "x-docs": {
    "llmsTxt": "https://base-sol-rugcheck.vercel.app/llms.txt",
    "skill": "https://base-sol-rugcheck.vercel.app/skill.md"
  },
  "x-guidance": "Use sol-rugcheck before buying, swapping, or sniping a Solana SPL token. POST { token } with the mint address. Returns a GO/CAUTION/DANGER safety verdict (freeze/mint authority, transfer controls, holder concentration) plus market data (price, liquidity, volume, age) in one call. Scoring adapts: established/trusted tokens are scored leniently, new/thin tokens strictly. A GO is not a guarantee of safety. Pay per call via x402 (USDC on Solana or Base).",
  "x402Version": 2,
  "x-discovery": {
    "ownershipProofs": [
      "0xcd6b6d99b7751ff30b68fa1365488eb73fa7cefa",
      "CCM8i6pzPYvH9W8FLKivKhrfeKzmf1oJAhMpCGSAFS18"
    ]
  },
  "paths": {
    "/api/rugcheck": {
      "post": {
        "operationId": "solRugcheck",
        "summary": "Solana SPL token safety check",
        "description": "Body: { token } where token is a Solana SPL mint address. Returns verdict GO/CAUTION/DANGER with checks for freeze authority, mint authority, transfer controls, holder concentration and liquidity. A GO means no red flags in the checks performed, NOT that the token is safe.",
        "x-payment-info": {
          "x402Version": 2,
          "price": {
            "mode": "fixed",
            "amount": "0.01",
            "currency": "USD"
          },
          "protocols": [
            "x402"
          ],
          "networks": [
            "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
            "eip155:8453"
          ],
          "asset": "USDC",
          "payTo": {
            "solana": "CCM8i6pzPYvH9W8FLKivKhrfeKzmf1oJAhMpCGSAFS18",
            "base": "0xcd6b6d99b7751ff30b68fa1365488eb73fa7cefa"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "description": "Solana SPL mint address."
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict and checks."
          },
          "400": {
            "description": "Missing/invalid mint."
          },
          "402": {
            "description": "Payment Required (x402, USDC on Solana or Base)."
          }
        }
      }
    }
  }
}