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- BetSigned by Alice€10on France
- BetSigned by Bob€25on Belgium
- 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
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
- Block 48 2141 recordnow
- Block 48 2132 records3s
- 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.
- WhenThe result is signednowby Operations
- ThenPay each winner at their odds0.4s€21.50 to Alice, €10 at 2.15
- 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.
1Create a project
Sign-in, automations and your own blockchain, ready to use.
New projectFree planProject name
my-app
Face ID sign-inAutomationsPrivate blockchain2Connect MCP
Use Claude Code, Codex or build it yourself.
Claude CodeCodexConnectedBaaS MCP
my-app.mcp.baas.sh
Your agent can
Read the BaaS docs
See your project
Set up automations
3Build your app
Code with the SDK, then deploy from the CLI.
baas deploy4smy-app
LiveDeployed from the CLI
Built with @baas.sh/sdk
Runs onSealDB
Signed with Your Vault key
- 1
Create a project
Sign-in, automations and your own blockchain, ready to use.
- 2
Connect MCP
Use Claude Code, Codex or build it yourself.
- 3
Build your app
Code with the SDK, then deploy from the CLI.
Free plan, no credit card.