{"openapi":"3.1.0","info":{"title":"POTGOBLIN.NET — Solana Mainnet Pot, Blinks & MCP Agent API","version":"1.2.0","description":"OpenAPI 3.1 specification for POTGOBLIN.NET on Solana Mainnet-Beta, including live pot telemetry, provably fair drand verification, Solana Actions/Blinks, and MCP JSON-RPC 2.0."},"servers":[{"url":"https://potgoblin.net"}],"paths":{"/api/state":{"get":{"operationId":"getPlatformState","summary":"Get active round countdown, live SOL/USD spot price, pot total, King of the Pot (#1 ticket holder), 25-ticket quorum status, and entries","responses":{"200":{"description":"Current platform snapshot"}}}},"/api/tickets":{"post":{"operationId":"purchaseTickets","summary":"Verify confirmed on-chain Solana Mainnet transfer to Treasury Vault and register raffle ticket(s) with optional 24-char clan/raid shoutout","responses":{"200":{"description":"Verified on-chain ticket entry recorded and pot updated"}}}},"/api/tick":{"post":{"operationId":"evaluateRoundDeadline","summary":"Evaluate round deadline: adds +1m overtime if < 25 tickets, or executes SHA-256 + Cloudflare drand draw & auto-payout if >= 25 tickets","responses":{"200":{"description":"Tick evaluation result"}}}},"/api/proof/{round}":{"get":{"operationId":"verifyRoundProof","summary":"Recompute SHA-256 commitment, ticket digest, and Cloudflare drand winner proof for a drawn round","parameters":[{"name":"round","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Cryptographic verification report"}}}},"/actions.json":{"get":{"operationId":"getSolanaActionsRules","summary":"Get Solana Actions / Blinks URL mapping rules","responses":{"200":{"description":"Solana Actions rules manifest"}}}},"/api/actions/pot":{"get":{"operationId":"getPotBlinkMetadata","summary":"Get Solana Action / Blink card metadata and 1x/3x/5x/10x/25x bundle actions","responses":{"200":{"description":"Solana ActionGetResponse"}}},"post":{"operationId":"buildPotBlinkTransaction","summary":"Build unsigned base64 Solana Mainnet transaction for selected ticket bundle","responses":{"200":{"description":"Solana ActionPostResponse with base64 transaction"}}}},"/api/agent":{"get":{"operationId":"getAgentManifest","summary":"Get REST & MCP JSON-RPC 2.0 capabilities manifest","responses":{"200":{"description":"Agent manifest"}}},"post":{"operationId":"callAgentOrMcp","summary":"Execute REST agent action or MCP JSON-RPC 2.0 (initialize, tools/list, tools/call)","responses":{"200":{"description":"MCP or REST execution result"}}}}}}