{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theblueprint-xyz/json-schema/theblueprint-xyz-analytics-summary-response-schema.json",
  "title": "AnalyticsSummaryResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theblueprint-xyz-openapi.json#/components/schemas/AnalyticsSummaryResponse",
  "type": "object",
  "properties": {
    "totalTransactions": {
      "type": "integer",
      "description": "Total number of confirmed on-chain transactions"
    },
    "totalSolStaked": {
      "type": "number",
      "description": "Cumulative SOL delegated through Solentic"
    },
    "totalSolDonated": {
      "type": "number",
      "description": "Cumulative SOL donated through Solentic"
    },
    "transactionCounts": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Transaction counts grouped by type (stake, unstake, withdraw, donate)"
    },
    "uniqueWallets": {
      "type": "integer",
      "description": "Count of distinct wallet addresses from confirmed transactions"
    },
    "recentTransactions": {
      "type": "array",
      "description": "Last 20 confirmed transactions (most recent first)",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Auto-incrementing transaction ID"
          },
          "signature": {
            "type": "string",
            "description": "Solana transaction signature (verifiable on-chain)"
          },
          "type": {
            "type": "string",
            "enum": [
              "stake",
              "unstake",
              "withdraw",
              "donate",
              "unknown"
            ],
            "description": "Transaction type"
          },
          "source": {
            "type": "string",
            "enum": [
              "rest",
              "mcp"
            ],
            "description": "Channel that submitted the transaction"
          },
          "walletAddress": {
            "type": "string",
            "description": "Wallet address (fee payer)"
          },
          "amountSol": {
            "type": [
              "number",
              "null"
            ],
            "description": "SOL amount involved, if applicable"
          },
          "stakeAccount": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stake account address, if applicable"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "ISO 8601 timestamp when the transaction was recorded"
          }
        }
      }
    },
    "_meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ResponseMeta": {
      "type": "object",
      "description": "Navigation metadata included in most responses",
      "properties": {
        "endpoint": {
          "type": "string",
          "description": "The endpoint that generated this response"
        },
        "description": {
          "type": "string",
          "description": "Brief description of the response"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp when this response was generated"
        },
        "relatedEndpoints": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Related REST endpoints for next actions"
        },
        "relatedTools": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Related MCP tool names (MCP responses only)"
        },
        "nextSteps": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Contextual next steps based on response data"
        },
        "verifyThisCode": {
          "type": "string",
          "description": "Endpoint to verify code integrity"
        },
        "cacheTtlSeconds": {
          "type": "integer",
          "description": "Cache TTL for this response"
        },
        "documentation": {
          "type": "string",
          "description": "Link to documentation"
        },
        "support": {
          "type": "object",
          "description": "Optional donation info — Blueprint is free, donation-supported infrastructure",
          "properties": {
            "address": {
              "type": "string",
              "description": "Solana address for donations"
            },
            "message": {
              "type": "string",
              "description": "Context about why donations help"
            },
            "donate": {
              "type": "string",
              "description": "How to build a donation transaction via API/MCP"
            }
          }
        }
      }
    }
  }
}