Santa’s Treasury a festive onchain game. Santa’s Treasury a festive onchain game.
Santa Treasury: Naughty or Nice Market is a holiday-themed onchain game that lives entirely inside your XMTP inbox. After solving the daily riddle, players choose between a “Nice” reward (a safe USDC payout) or a “Naughty” reward (a risky memecoin spin).
Naughty picks are powered by the CDP Trade API, which swaps $5 USDC for a random memecoin on Base and sends it to the player. Before paying out, the agent uses the CDP Data API to scan the player’s wallet. If they already hold that token, the agent applies a playful “degen bonus multiplier.”
All funds are held in a CDP Server Wallet, and all interactions happen through XMTP, making the experience completely wallet-native and message-driven.
Santa Treasury is built around the XMTP Agent SDK. e.
Daily challenges are defined in a static challenges.json file that maps each Advent day to a riddle and expected answer. A scheduled job (or manual trigger during the hack) uses the Agent SDK to broadcast that day’s clue to all subscribed users. When the agent receives an answer message, it looks up today’s challenge, validates the solution, updates the player’s state and sends a contextual reply. The leaderboard is computed on demand from the stored player records and rendered as a simple text table back into the chat. This architecture keeps everything wallet-native, message-first and entirely on XMTP, with no extra auth layer or heavy frontend required.

