Nirmal Solanki

Neural Stake

Prediction markets on Solana. Stake on an outcome, an on-chain program holds the pot, and Claude reads the market.

program accounts, each a PDA
3
program accounts, each a PDA
screens, from markets to rankings
5
screens, from markets to rankings
commits
56
commits

A prediction market where the money is held by a program, not by a company. Each market is an account on Solana; the stakes sit in an escrow account the program controls; each stake is a position account of its own. A market resolves, and the program pays the winning side.

The program

Written in Rust with Anchor. Three kinds of account, each a program-derived address: the market (question, end time, the two pools, the outcome), the escrow that holds the SOL, and one position per stake. Claiming is checked on-chain, so a position can be paid once.

The app

Five screens: a home with the featured market and live activity, the markets, your stakes with live profit and loss and a claim button, rankings, and Neural Edge, where Claude reads live market data and returns a call with a confidence score. The database mirrors what happens on-chain so the leaderboard updates without a scan of the chain.

Screens

02
Neural Stake home screen with a featured market and its YES and NO odds.
Neural Stake home screen with a featured market and its YES and NO odds.
Neural Edge screen showing a saved Claude read on Bitcoin with a confidence score.
Neural Edge screen showing a saved Claude read on Bitcoin with a confidence score.

How it is built

A gate
Stake to claim
  1. Connect a wallet

    Phantom or Solflare, through the Solana wallet adapter.

  2. Stake

    SOL goes into the market's escrow, and a position account records the side, the amount and the time.

  3. Resolve

    The market account records the winning outcome.

  4. Claim Gate

    The program pays the winning side from escrow, once per position.

  5. Mirror

    Postgres triggers keep each user's stats and the leaderboard current.