# POTGOBLIN.NET — Complete Technical, Viral Mechanics & Cryptographic Reference (/llms-full.txt) ## 1. Executive Summary POTGOBLIN.NET ("Feed the Pot Goblin!") is a provably fair Solana Mainnet-Beta live pot & raffle built for instant on-chain speed, mobile/Telegram deep-link conversion, and verifiable fairness. - **Supported Wallets:** Phantom (`window.solana`), Solflare (`window.solflare`), Backpack (`window.backpack.solana` / Wallet Standard). Manual modal connection only — never pops up unsolicited on page load, and silently restores authorized sessions across page reloads. On Telegram In-App Browser or mobile Safari/Chrome, tapping a wallet deep-links directly into the native mobile wallet dApp browser while preserving `?utm_*` and `?ref=` parameters. - **Bundle Pricing Table (Base $3.00 USD, Live Oracle 1 SOL = $71.67 via Coinbase Spot):** | Bundle | Discount | Total USD | Saved USD | | :--- | :--- | :--- | :--- | | 1x Ticket | 0% | $3.00 | $0.00 | | 3x Bundle | 5% OFF | $8.55 | $0.45 | | 5x Bundle | 8% OFF | $13.80 | $1.20 | | 10x Bundle | 12% OFF | $26.40 | $3.60 | | 25x Whale | 15% OFF | $63.75 | $11.25 | - **10-Minute Draw & 25-Ticket Quorum Lock:** Rounds default to **10 minutes** and automatically start when the first **25 tickets** enter the pot. If `ticketCount < 25` when the countdown hits `00:00`, **+1 minute(s) overtime** is automatically added until quorum is reached. All entries are final on-chain transfers with no cancellations or refunds. ## 2. Live Active Round Telemetry - **Active Round:** #4 (open) - **Engine Status:** LIVE COUNTDOWN - **Current Pot:** $28.35 USD (0.38602 SOL) - **Ticket Quorum:** 10 / 25 tickets (2 unique wallets) - **King of the Pot (#1 Ticket Holder):** FxzYxSLHmZkcwbC1xicJqkDSrSnHmVQiHcwEZ3K38U7T (5 tickets, $14.55) - **SHA-256 Seed Commitment:** `e89d96eb4a4c7b1c140fcf080045b3e7fd978f8cbf3ce5d621d50f396afd3d5d` - **Ends At (UTC):** `2026-12-02T21:43:52.200Z` (Overtime extensions so far: 13661) ## 3. Provably Fair Verification Algorithm Every round uses a deterministic 3-input cryptographic derivation: 1. **Server Seed Commitment:** When Round #N opens, 32 random bytes (`seed`) are generated and `commitment = SHA-256(seed)` is published immediately before any ticket is sold. 2. **Frozen Ticket Digest:** At draw time, all ticket IDs (`R1-T001`, `R1-T002`, ...) are sorted lexicographically and hashed: `entryDigest = SHA-256(tickets.join("\n"))`. 3. **Cloudflare drand League of Entropy Beacon:** Public verifiable randomness is fetched from `https://drand.cloudflare.com/public/latest`. 4. **Winner Selection:** Each ticket receives `score = SHA-256(seed + ":" + drandRandomness + ":" + ticketId)`. The ticket with the lexicographically smallest 64-character hex digest wins the round's on-chain payout from the Mainnet Vault (`4bqb7ebtHc1ncYE8QQxWxP6KVXFwxTPV6DGqpiQzGxuK`). Anyone can audit any completed round via `GET https://potgoblin.net/api/proof/{roundNumber}`. ## 4. Autonomous AI Agent Payments, Solana Blinks & MCP JSON-RPC 2.0 - **Agent Playbook & Incentives:** `GET https://potgoblin.net/AGENTS.md` (also `https://potgoblin.net/agents.md`) - **A2A Agent Card:** `GET https://potgoblin.net/.well-known/agent.json` - **Solana Actions Manifest:** `GET https://potgoblin.net/actions.json` - **Solana Blink Endpoint:** `GET / POST https://potgoblin.net/api/actions/pot?count={1|3|5|10|25}` (builds unsigned base64 Solana Mainnet transfer transaction with `POTGOBLIN:R{round}:T{count}` memo) + `POST https://potgoblin.net/api/actions/pot/confirm` - **MCP JSON-RPC 2.0 & REST Endpoint:** `POST https://potgoblin.net/api/agent` 1. `get_active_pot`: Live round countdown, pot USD/lamports, King of the Pot, SOL/USD oracle price, and 25-ticket quorum status. 2. `calculate_ticket_bundle`: Exact USD/SOL lamport cost and bundle discount for `ticketCount` (1–50). 3. `build_ticket_transaction`: Builds unsigned `transactionBase64` + raw `messageBase64` for an AI agent wallet to sign on Solana Mainnet. 4. `submit_ticket_purchase`: Broadcasts `signedTransactionBase64` (or verifies an already-broadcasted `txSig`), registers tickets in D1, and returns `ticketIds` + `solscanUrl`. 5. `verify_round_fairness`: Recomputes SHA-256 + Cloudflare drand proof for any completed `roundNumber`. 6. `simulate_deadline_check`: Read-only evaluation of whether the current round extends overtime or draws a winner at `00:00`.