Video thumbnail

trump.fun

AI and blockchain powered markets for predicting Trump's next move

trump.fun

Created At

ETHGlobal Trifecta - Agents

Project Description

Trump fun is a fully automated, decentralized prediction market centered around President Trump's future actions and statements. The platform uses sophisticated AI agents to self govern betting pools transparently on chain, and provides users with a fun platform to place bets on what Trump will do next.

The core of Trump Fun is its deeply custom AI agent, and its tightly integrated frontend and smart contract based backend. Our AI agent takes Trump’s truth social post and real time news and does deep research to turn his post into a bettable topic for a betting pool. Down the line another agent will do deep research into current news to determine which outcome happened for those pools. Our app also includes a free to play model that uses our FREEDOM token instead of USDC to play. Users who play regularly can earn points and participate for fun.

If the markets are going to burn, we might as well have fun basking in the glow on the way down. 2025 has been wild so far.

Trump fun is a fully automated, decentralized prediction market centered around President Trump's future actions and statements. The platform uses sophisticated AI agents to self govern betting pools transparently on chain, and provides users with a fun platform to place bets on what Trump will do next.

The core of Trump Fun is its deeply custom AI agent, and its tightly integrated frontend and smart contract based backend. Our AI agent takes Trump’s truth social post and real time news and does deep research to turn his post into a bettable topic for a betting pool. Down the line another agent will do deep research into current news to determine which outcome happened for those pools. Our app also includes a free to play model that uses our FREEDOM token instead of USDC to play. Users who play regularly can earn points and participate for fun.

If the markets are going to burn, we might as well have fun together basking in the glow.

Key Features:

AI Agents creates the prediction markets based on Trump’s real-time truth social posts, with a statement and relevant options, all in Trump’s style. A bet grading AI agent that continuously does deep research on multiple data sources to automatically resolve markets when events occur. Custom Truth Social and news monitoring implementation to track Trump’s moves A user-friendly frontend makes interaction intuitive for both crypto natives and newcomers, including both a pay to play (USDC) and free to play model (FREEDOM points) so everyone can play Detailed stats and report on pools and portfolio performance through our frontend Community chat features, including the ability to engage with our Trump chatbot through comments Seamless web2/web3 onboarding with Privy Smart contracts handle the financial logic and market mechanics, transparent and trustless. A custom indexer is used to prepare data for the frontend for web2 like response times A Privy powered Telegram bot integration brings market notifications and trading capabilities to the wide audience in TG.

How it's Made

AI Agent

  • Developed using LangGraph (JS)
  • Built a custom autonomous agent using that monitors Trump’s Truth social for posts and does deep research to translate his content into things users can bet on
  • On the other end, custom deep research agent to grade those bets based on current news and socials. Uniquely accurate due to Trump’s prominence in media.
  • Deep prompt customization for emulating Trump’s tone and speech patterns

Frontend

  • Developed using Next.js for advanced caching and faster load times
  • Apollo, Subgraph Studio, react-query, supabase, for fetching and storing data
  • Privy for seamless web2/web3 onboarding
  • App wide swap between the free to play game that uses FREEDOM tokens (points), and the more formal game that uses USDC

Smart Contracts

  • Developed on Base Sepolia, using Solidity and foundry for the core market logic.
  • The BettingContract.sol for creating pools, placing bets and resolving markets.
  • Our ERC20 token FREEDOM
  • Custom indexer deployed to Subgraph Studio (GRT) aggregates events to reduce requests and load on frontend

Telegram Bot (trump_fun_bot)

  • Built using the Telegram Bot API and Node.js
  • Integrated wallet connection capabilities via Privy
  • Connected to the same backend Agent services as the main application, allowing users to browse markets and place bets from outside the main app

4) Deployed Contracts on Base Sepolia

| Contract | Address | Description | | --- | --- | --- | | BettingContract | 0x2E180501D3D68241dd0318c68fD9BE0AF1D519a1 | Manages prediction markets | | PointsToken | 0xA373482b473E33B96412a6c0cA8B847E6BBB4D0d | Native platform token |

5) How to use the Dapp? Step-by-step instructions

Getting Started with Trump Fun:

  1. Access the platform:
    • Visit
    • Connect your Ethereum wallet by clicking "Connect Wallet" in the top right corner
    • Choose to play with either USDC or FREEDOM with the slider in the navbar
      • New sign ups will be instantly issued 10,000 FREEDOM to start with
      • System will top you up to 1000 FREEDOM as a daily login bonus if you have <1000 FREEDOM so you are always able to play
  • Browse prediction markets:
    • On the homepage, you'll see active markets categorized by topic
    • Click on any market to view details including:
      • Market question in Trump’s voice
      • Generated meme image
      • Market Volume
      • Odds
    • Place a bet inline if you want or drill into a pool for more stats
  1. Place a prediction:
    • Once you've selected a market, decide if you want to predict "Yes" or "No"
    • Enter the amount you want to stake
    • Click "Bet"
    • Chosse the option ‘Yes’ or ‘No’ and approve the transaction in your wallet
  • Engage with the community:
    • All pools have an inline chat for players to talk
    • Mention @realTrumpFun in a comment and our Trump agent will respond in a few seconds
  1. Monitor your positions:
    • Go to your user profile to see all your active positions
    • Track your potential returns based on current market prices
    • Update your bet position before market resolution if desired
    • See which pools you won or lost on, and
  2. Market resolution:
    • Our bet grading agent is persistently monitoring Truth Social and the news
    • On a time the AI agent will check if a PENDING pool can be graded by researching multiple credible sources
    • If it detects it can grade the betting pool, it will automatically do so
    • If you predicted correctly, you can claim your winnings to your wallet
  3. Engage with our socials:
    • After placing a bet, use the "Share" button to post your prediction to Twitter
    • Connect with ourPrivy enablled Telegram bot for notifications and quick trading.

5) Tech stack used

Frontend:

  • Next.js
  • Privy
  • viem/wagmi
  • Apollo
  • Tailwind + Shadcn

AI Agent:

  • Langgraph
  • Node.js
  • Tavily, News API, others
  • Supabase
  • OpenAI + Anthropic API

Blockchain & Smart Contracts:

  • Solidity
  • Foundry
  • The Graph
  • IPFS/Filecoin

Other Integrations:

  • Telegram Bot API (grammy)
background image mobile

Join the mailing list

Get the latest news and updates