← Back to home

Santa's Treasury

Santa’s Treasury a festive onchain game. Santa’s Treasury a festive onchain game.

Problem Statement

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 theCDP Trade API, which swaps $5 USDC for a random memecoin on Base and sends it to the player. Before paying out, the agent uses theCDP Data APIto scan the player’s wallet. If they already hold that token, the agent applies a playful “degen bonus multiplier.”All funds are held in aCDP Server Wallet, and all interactions happen through XMTP, making the experience completely wallet-native and message-driven.

Solution

Santa Treasury is built around the XMTP Agent SDK. e.Daily challenges are defined in a staticchallenges.jsonfile 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 ananswermessage, 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.

Hackathon

ETHGlobal Buenos Aires

2025

Contributors