Use case · Betting

Launch a betting app.Handle every bet from millions of players, worldwide.

MatchdayFootball · Tonight 20:45

BelgiumvsFrance

  • 13.60
  • X3.30
  • 22.15

€10 on FranceReturn €21.50

Bet €10
  1. BetSigned by Alice€10on France
  2. BetSigned by Bob€25on Belgium
  3. Result enteredSigned by OperationsFrancewins 2–1

The build

Everything a betting app needs. You know the app you want. Your team builds it from BaaS SDK, with no server to run.

Authentication

Players sign up in seconds

Face ID, fingerprint, Google or a hardware key. No password.

Matchday

Bet on tonight’s matches

Sign in with Face IDSign in with fingerprintSign in with GoogleSign in with a hardware key

Smart contract

The rules of every bet

Who may bet or enter the result, written once in Solidity and kept with the data.

SportsbookWho can do it

  • Place a betThe player
  • Enter the resultOperations
  • Change a placed betNo one
See Sportsbook.sol
contract Sportsbook {
    struct Bet { address player; uint8 pick; uint amount; uint odds; }

    // a player places a bet at the odds shown, signed with her Face ID
    function placeBet(uint matchId, uint8 pick, uint amount, uint odds)
        external { … }

    // Operations enters the result; winners are paid amount × odds
    function settle(uint matchId, uint8 result)
        external onlyOperations { … }
}

CLI and SDK

Deployed in one command

Write the contract, deploy it with one command, and call it from your app in one line.

$ baas deploy  → live on SealDB

app.ts

// Alice bets €10 on France at 2.15
await book
  .function('placeBet')
  .params(812, 2, 10, 215)
  .sendTransaction();

SealDB

Every bet on record

Written as it is signed, on your project’s own blockchain, with no gas fees.

SealDBNo gas fees

  1. Block 48 2141 recordnow
  2. Block 48 2132 records3s
  3. Block 48 2125 records6s

Alice’s bet, read from its record€10 at 2.15

Automations

Winners paid and told

When the result is signed, payouts and emails go out, with no worker to host.

MatchdaynowYou won €21.50€10 on France, Belgium vs France
Match settledOn
  1. WhenThe result is signednowby Operations
  2. ThenPay each winner at their odds0.4s€21.50 to Alice, €10 at 2.15
  3. Email them the result0.2sto 312 players

Run 2 418Done in 0.6s

Why BaaS

The bet placed is the bet paid. The odds live inside the bet the player signs. Not even the operator can change them.

On a usual database

-- the operator, full access
UPDATE bets
SET odds = 1.10
WHERE id = 81244;

Success · 1 row updated

Alice’s winning bet now pays €11, not €21.50. Whoever runs the database can do this, and rewrite the log too.

On blockchain

// the operator, full access
await book
  .function('setOdds')
  .params(81244, 110)
  .sendTransaction();

Reverted · a placed bet can’t be changed

Alice is paid at the odds she took.

Good to know

The questions people ask first.

What does it cost?
Free to start: 90 compute hours and 0.5 GB a month, no credit card, no gas fees. Then from €99 a month plus the hours it runs; idle time is never billed.
Where does the money go?
To your payment provider. BaaS keeps the ledger; an automation tells your provider when the winners are paid.
Do I replace my stack?
No. Call BaaS from your React or Next.js app, next to what you run today; names and emails stay where you keep them.
Can my coding agent build it?
Yes. Connect it to your project’s MCP: it reads the docs, writes the contract and sets up the automations, then deploys with the CLI.
Can an auditor check it?
Yes. Seal the record on Ethereum as well, and anyone can verify it without trusting you.

Three steps

Your first app starts free. Get started in three steps. No credit card needed.

  1. 1

    Create a project

    Sign-in, automations and your own blockchain, ready to use.

  2. 2

    Connect MCP

    Use Claude Code, Codex or build it yourself.

  3. 3

    Build your app

    Code with the SDK, then deploy from the CLI.

Start free

Free plan, no credit card.