{
  "openapi": "3.1.0",
  "info": {
    "title": "SolGuard Solana Forensic Honeypot Scanner, 130 bps Round-Trip Safe-Swap/Exit Router & x402 Alpha API",
    "version": "1.3.0",
    "description": "Drop-in 2026 replacement for dead quote-api.jup.ag/v6 with live Solana Mainnet Token-2022 hook inspection, 1.0 SOL round-trip impact simulation, atomic 65 bps v0 Safe-Swap (SOL->Token) & post-unwrap Safe-Exit (Token->SOL), Jito bundleOnly broadcast, Solana Blinks v2.2, Rug Radar RSS, and x402 paid alpha."
  },
  "servers": [
    {
      "url": "https://solguard-protocol.pages.dev"
    }
  ],
  "paths": {
    "/api/v1/audit/{mint}": {
      "get": {
        "operationId": "auditSolanaToken",
        "summary": "Free 2-second Solana Mainnet Token-2022 & Jupiter 1.0 SOL round-trip forensic audit",
        "parameters": [
          {
            "name": "mint",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "probeSol",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Forensic verdict, authority/hook matrix, and round-trip bps"
          }
        }
      }
    },
    "/api/v1/safe-swap": {
      "post": {
        "operationId": "buildSafeSwapOrExit",
        "summary": "Build unsigned Solana v0 VersionedTransaction (side='buy' SOL->Token OR side='sell' Token->SOL post-unwrap Safe-Exit) with atomic 65 bps SOL fee + Jito tip",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "userPublicKey"
                ],
                "properties": {
                  "side": {
                    "type": "string",
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "default": "buy"
                  },
                  "userPublicKey": {
                    "type": "string"
                  },
                  "inputMint": {
                    "type": "string",
                    "default": "So11111111111111111111111111111111111111112"
                  },
                  "outputMint": {
                    "type": "string"
                  },
                  "amountSol": {
                    "type": "number"
                  },
                  "amountLamports": {
                    "type": "integer"
                  },
                  "amountTokens": {
                    "type": "number"
                  },
                  "amountRaw": {
                    "type": "string"
                  },
                  "sellPct": {
                    "type": "number",
                    "default": 100
                  },
                  "slippageBps": {
                    "type": "integer",
                    "default": 100
                  },
                  "jitoTipLamports": {
                    "type": "integer",
                    "default": 50000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unsigned base64 v0 VersionedTransaction ready for signing"
          }
        }
      }
    },
    "/api/v1/trending-audit": {
      "get": {
        "operationId": "getTrendingRugRadar",
        "summary": "5-minute cached live forensic scan of top DexScreener Solana tokens & caught Token-2022 traps",
        "responses": {
          "200": {
            "description": "Live Rug Radar JSON feed"
          }
        }
      }
    },
    "/api/v1/metrics": {
      "get": {
        "operationId": "getAnonymizedEdgeMetrics",
        "summary": "Anonymized zero-PII POP funnel telemetry counters",
        "responses": {
          "200": {
            "description": "Edge funnel counters"
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "operationId": "getRugRadarRssFeed",
        "summary": "RSS 2.0 XML syndication feed of live caught Solana traps & Blinks",
        "responses": {
          "200": {
            "description": "RSS 2.0 XML document"
          }
        }
      }
    },
    "/api/v1/jito-broadcast": {
      "post": {
        "operationId": "broadcastJitoBundleOnly",
        "summary": "Broadcast signed base64 VersionedTransaction to Jito Block Engine (bundleOnly=true) with RPC fallback",
        "responses": {
          "200": {
            "description": "Submitted transaction signature"
          }
        }
      }
    },
    "/api/v1/alpha-feed": {
      "get": {
        "operationId": "getPaidAlphaFeed",
        "summary": "x402 Paid Real-Time <150 bps Clean Post-Graduation Solana Candidates",
        "parameters": [
          {
            "name": "X-Payment-Signature",
            "in": "header",
            "required": true,
            "description": "Confirmed Solana Mainnet tx signature (<24h) paying >= 2000000 lamports (0.002 SOL) to 7c6jNkFdyEZszVpQ6yPF8w4NvqV5E7XxytmRpjgded8J",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified clean <150 bps candidates"
          },
          "402": {
            "description": "x402 Payment Required descriptor"
          }
        }
      }
    },
    "/api/actions/swap/{mint}": {
      "get": {
        "operationId": "getSolanaBlinkMetadata",
        "summary": "Solana Actions / Blinks v2.2 metadata + Safe-Swap & Safe-Exit buttons"
      },
      "post": {
        "operationId": "postSolanaBlinkSwap",
        "summary": "Solana Actions / Blinks v2.2 v0 transaction builder (buy & sell)"
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Remote Model Context Protocol (MCP) JSON-RPC 2.0 server"
      }
    }
  }
}