The ultimate security-first DeFi infrastructure layer and no-loss World Cup speculation network on X Layer.
Built for the X Layer Build X Season 2 AI Hackathon (Winner of 3rd Place) and expanded with Pitchside AI (Autonomous World Cup Speculation Network) for the X Layer X Cup Hackathon (May 19 - May 28, 2026).
- 🏆 Why Pitchside AI Wins (Judge Checklist)
- 🚨 The Problem & Our Solution
- 🏗️ Ecosystem Components
- ⚽ Pitchside AI - Autonomous World Cup Speculation
- 🤖 Autonomous AI Agent (TEE)
- 🔌 OnchainOS Integration Deep-Dive
- 💳 x402 Agent Economy
- 🔧 Model Context Protocol (MCP)
- 🚀 Active Development & Road to World Cup 2026
- ⚓ Smart Contract Deployments
- ⚙️ Local Setup & Testing
- 🧐 Onchain Verification for Judges
- 🌐 Live Endpoints & Infrastructure
Pitchside AI goes far beyond a simple MVP prediction market. It implements state-of-the-art Web3 architectural paradigms:
- 100% Principal Protection (Zero Loss Staking - Production Ready): Staked real USDT is not bet. Instead, on Mainnet, it is supplied directly to Aave V3 Pools using the custom ProductionNoLossVault.sol deployed at
0xdc5ef9103e12c7595950b25044cf91ad7f860dd3. Staked funds are supplied to the Aave Pool Addresses Provider, earning real interest under the hood, while generating virtual yield (Scout Credits) for users. - Synchronized Decimal and Yield scaling: Natively supports both 6-decimal real USDT and 18-decimal virtual credits. The yield accrual rate is configured at
2.314814814 * 10^12scaled credits per second to yield exactly 200 virtual credits per day per 1 USDT staked, enabling micro-precision speculatory yield. - Hardware-Grade Agent Security (TEE): The autonomous scout runs inside a secure Trusted Execution Environment (TEE) using the
okx-agentic-walletSDK. Private keys are securely sealed inside hardware enclaves and can never be extracted by the host application. - OKX NFT Marketplace Indexing: Dynamic Player Shares are minted as standardized ERC-1155 tokens onchain using PlayerShares.sol. Standardized metadata is served dynamically via our API endpoint so that player index shares can be indexed, bought, and sold instantly on the OKX NFT Marketplace.
- Decentralized, Block-Derived Leaderboard: Unlike centralized databases, our leaderboard inside Leaderboard.tsx queries the X Layer blockchain in real-time. It scans
DepositedandAgentDelegatedevent logs to fetch active participants, calculate their pool share, and pull TVL and credits directly from the smart contract. - Professional Live Data Pipeline: Integrates Sportmonks Football API v3 for professional-grade live World Cup match data on Mainnet. Live scores, match status, and player events feed directly into the TEE Scout Agent for autonomous trading.
- Security-First Aggregator: ShieldSwap integrates
okx-dex-swapto search 500+ DEX pools, but intercepts all swaps with ScanGuard MCP to warn users and block toxic token interactions before they hit the blockchain.
With the proliferation of L2 tokens and AI-driven trading, malicious actors deploy honeypots, hidden taxes, and toxic bytecode to drain liquidity. Centralized DEX routers execute swaps blindly, and AI agents lack a standard, machine-readable protocol to verify token safety natively before engaging.
Furthermore, sports prediction and speculation markets are traditionally high-risk, causing retail users to lose their hard-earned principal on bad predictions.
We built a dual-layer security and speculation ecosystem:
- For Humans: ShieldSwap, the first security-gated DEX Aggregator. If you attempt to swap a malicious token, the aggregator visually blocks the transaction with an interactive threat report.
- For World Cup Speculators: Pitchside AI (new feature built on ShieldSwap), a no-loss speculation loop where users stake stablecoins, accumulate virtual credits (yield), and delegate them to secure AI agents to trade player shares risk-free.
- For Machines: ScanGuard MCP, a native Model Context Protocol server that implements the x402 monetization standard. AI agents can query this server to get instantaneous, programmatic token risk data.
The Shield Suite monorepo is divided into four highly integrated packages:
The brain of the operation. A Node.js backend serving as both a RESTful API and a standard MCP Server.
- Executes Dual-Layer Scanning: Combines
okx-securityAPIs with a custom bytecode heuristics engine. - Manages the x402 Payment Loop, requiring micro-payments for access to its intelligence.
- Serves the World Cup Match & News Feed to drive the Pitchside speculation loop.
- Runs the Trading Volume Indexer which continually scans for
$PSAItoken trades, dynamically pricing native OKB swaps using the public OKX Index Tickers API (OKB-USDT) for exact volume metrics.
A glassmorphic, terminal-inspired frontend built in React/Vite.
- Integrates
okx-dex-swapto route trades across 500+ liquidity sources on X Layer, guaranteeing optimal routing. - Features a conversational AI Agent Chatbot seamlessly integrated directly into the trading UI, allowing users to scan tokens and stage trades using natural language.
- Hosts Pitchside AI - an interactive portal featuring DeFi staking, player market speculation cards, and live TEE agent execution logs.
- Integrates the OKX Speculation Sub-Platform allowing users to wager PSAI tokens on gas and volume metrics with an automatic 20% token burn model.
A real-time command center for monitoring the entire ecosystem.
- Provides a live, WebSocket-style data stream of all tokens being actively scanned across the network.
- Cryptographically tracks the live balances and onchain heartbeat activity of the autonomous scanning agent.
A TEE-isolated Node.js loop running the autonomous agent scripts.
- Houses both the original ScanGuard cron monitoring agent and the new Pitchside World Cup Scout Agent scout.ts.
Pitchside AI is a World Cup-themed expansion developed specifically for the X Layer X Cup Hackathon. It builds on top of Shield Suite's core security layers, adding no-loss staking and dynamic index token speculation:
User Wallet
│
▼
[NoLossVault.sol]
(Deposit stablecoin → Yield)
│
(Delegates Scout Credits)
│
▼
[Scout Agent (TEE)]
(Uses okx-agentic-wallet)
│ │
(1. Scan token) │ │ (2. Swap shares)
▼ ▼
[ScanGuard MCP] [PlayerDex.sol]
│ │
▼ ▼
`okx-security` [PlayerShares ERC-1155]
- Production Staking Vault (
ProductionNoLossVault.sol): Stakes real USDT on X Layer Mainnet, supplying to Aave V3. Uses Aave'ssupplyandwithdrawinterfaces to guarantee principal safety while accumulating interest. - Credit-Backed AMM (
PlayerDex.sol): A customized AMM contract deployed at0x5124dad647eb7ece5f565f6d6fff33e4595ccd8dthat supports zero-slippage, credit-backed buying and selling of Player Shares. It uses dynamic on-chain pricing based on token supply and dynamic ratings. - Sportmonks Football API Syncing: The system parses live match timelines and player statistics using Sportmonks. Rating configurations and index prices update onchain through the Scout Agent.
- Dynamic Leaderboard Gating: Serves a highly curated ranked leaderboard. Only users who hold at least 1 player share (
hasShares === true) from the 16 active player contracts are officially ranked. - High-Performance RPC Caching & Resiliency: Resolves potential RPC timeouts and page hanging on X Layer Mainnet:
- Memory Cache: Implemented a 5-minute memory caching layer for user player share queries.
- Event-Driven Invalidation: The cache is instantly invalidated when users perform critical actions (e.g., connection, sync requests) or when a
TransferSingleevent involving player shares is detected by the block indexer. - Graceful Timeout Wrapper: Queries are wrapped in a strict 2.5-second timeout, falling back gracefully to the cache or safe default states if the RPC is slow or unresponsive.
- OKX Speculation & Deflationary Burn: Incorporates a sub-platform where users wager
$PSAIon OKX network statistics. Includes a programmatic 20% burn penalty sent to the zero address (0x0000000000000000000000000000000000000000) on every wager to establish token deflation.
We have deployed an autonomous Node.js agent running 24/7. It continuously invokes the ScanGuard API to monitor the top 11 X Layer core tokens (WOKB, USDC, USDT, USDe, etc.) for emerging threats.
- Institutional Security: Utilizes the
okx-agentic-walletbacked by a Trusted Execution Environment (TEE). The private key is strictly isolated and never exposed to the application runtime, rendering it immune to memory-dump attacks. - Onchain Checkpoints: Emits a literal
0 OKBtransaction on the X Layer ledger periodically. Attached to the transaction data is a UTF-8 encoded metadata string ("ScanGuard Cycle Success"), acting as an immutable public heartbeat proving the agent's uptime.
Our application deeply leverages the OKX OnchainOS ecosystem to provide routing, analytics, and wallet controls:
| SDK Module | Implementation Details |
|---|---|
okx-security |
Powers the core threat-detection engine (honeypots, taxes, proxy checks) for ScanGuard and agent safety checks. |
okx-dex-swap |
Used in our ShieldSwap frontend to generate highly optimized, low-slippage trade execution call data natively across all aggregated X Layer DEXs. |
okx-dex-token |
Provides real-time token metadata, market caps, token logo fetching, decimal standardization, and address validation. |
okx-agentic-wallet |
Secures the TEE Autonomous Scout's private key within a secure hardware enclave, enabling trustless delegation. |
okx-x402-payment |
Facilitates the cryptographic verification and conceptual architecture for streaming micropayments from client agents. |
ScanGuard pioneers a monetized API standard for AI agents via x402 Payment Required:
- Request: An external AI agent calls
POST /api/scanwithout authorization. - Denial: Server returns
HTTP 402 Payment Requiredwith instructions to pay $0.005 USDC. - Payment: The agent signs and broadcasts the stablecoin transaction natively on X Layer.
- Verification: The agent retries the request providing
X-402-Payment: <signed-receipt>. - Fulfillment: The server confirms the onchain transfer and returns the security report.
(Note: In the live demo environment, the protocol operates in "LIVE Subsidized" mode to prevent endlessly draining the agent's real USDC funds over a continuous 24/7 uptime window, while openly logging the gross revenue metrics on the Dashboard).
ScanGuard exposes an HTTP MCP server that any standard AI client can query natively to give them "X Layer vision".
curl -X POST http://38.49.216.120:3402/mcp/tools/call \
-H "Content-Type: application/json" \
-d '{"name":"scan_token","arguments":{"tokenAddress":"0x779ded0c9e1022225f8e0630b35a9b54be713736"}}'{
"mcpServers": {
"scanguard": {
"url": "http://38.49.216.120:3402/mcp",
"description": "Native security scanning for ERC-20 tokens on X Layer"
}
}
}ShieldSuite and Pitchside AI are not just hackathon submissions—they are actively maintained projects on a direct roadmap to mainnet deployment ahead of the FIFA World Cup 2026.
timeline
title Pitchside AI Road to World Cup 2026
Q2 2026 : X Cup Hackathon Launch : Stable Testnet Sandbox & Scout Agent
Q3-Q4 2026 : Mainnet Integration & Auditing : Deploying Production Vaults on X Layer Mainnet with Aave V3 integrations
Q1 2027 : Live-Data Pipeline Scaling : Enhancing Sportmonks Football API live event pipelines for multi-language feeds and high-concurrency event parsing
Q2 2027 : World Cup Kickoff Tournament : Official Campaign Launch with real USDT rewards and global marketing
- Production-Grade Audit Readiness: Auditing the AMM logic in PlayerDex.sol and the Aave-integrating No-Loss Vault to support large TVL pools.
- Multi-Agent Staking Systems: Supporting multi-agent selection where users can delegate to custom AI personalities (e.g., Aggressive Scout, Defensive/Yield-Focused Scout) that run different sentiment analysis logic in independent secure TEE enclaves.
- Sportmonks Core Live Pipeline: Expanding the Sportmonks integration to support real-time web sockets for live matches and high-frequency sentiment tracking.
- Enhanced Security Verification: Integrating ScanGuard deep bytecode heuristics with active on-chain simulation checks so that agents evaluate risk based on current block-state before routing funds.
- Real USDT Token (USD₮0):
0x779ded0c9e1022225f8e0630b35a9b54be713736 - Production NoLossVault (Aave V3):
0xdc5ef9103e12c7595950b25044cf91ad7f860dd3 - PlayerShares:
0xf62660a59fCbe3F81DEcD86732aeE91A7bdb3E4A - PlayerDex AMM:
0x5124dad647eb7ece5f565f6d6fff33e4595ccd8d - TEE Agent Address:
0x80f28d975cf34f6213a4e9cda8ebdd8a8f7bceb6
npm installVerify that all staking, yield generation, and AMM trade constraints are fully functional:
cd contracts
npm run testnpm run devThis single command orchestrates:
- The Backend / API (Port
3402) - The ShieldSwap & Pitchside UI (Port
5175) - The Ecosystem Dashboard (Port
5174) - The Autonomous TEE Scout Agent
To verify the completion and execution of the Pitchside AI World Cup loop:
- Stake Real USDT: Connect your wallet, approve and stake real USDT (
0x779ded0c9e1022225f8e0630b35a9b54be713736) into the No-Loss Staking Vault. - Delegate Agent: Select the Active TEE Scout Agent and click Confirm Delegation.
- Verify Live Data Feed: Click Verify Live Data Feed in the Scout Console to verify real-time match data from Sportmonks Football API v3. Live matches show with a pulsing red indicator.
- Watch Agent React: The Scout Console will immediately reflect the agent detecting new match events, scanning token bytecode via ScanGuard, and executing transactions on the
PlayerDexcontract. - Verify Explorer: Copy the generated transaction hash and search it on OKLink X Layer Explorer to verify the TEE Agent called the swap on your behalf.
- Check the Leaderboard: The Global Scout Leaderboard shows your ranking, Scout Credits, staked amount, and pool share - all read directly from onchain contract events.
- Network: X Layer Mainnet (
Chain ID 196) - ShieldSwap Application: https://shieldsuite.xyz/
- ScanGuard Dashboard: https://dashboard.shieldsuite.xyz/
- Central API Node & MCP Host:
railway - TEE Agent Identity (X Layer):
0x80f28d975cf34f6213a4e9cda8ebdd8a8f7bceb6
- Developer: MrNetwork
- Email: mrnetwork0001@gmail.com
- X (Twitter): @encrypt_wizard