Use case · Gift cards
Launch your gift card service.Issue and redeem millions of cards, every euro accounted for.
Maison Lune
Gift card
€100
- Card issuedSigned by Maison Lune€100to Alice
- Spent in storeSigned by Alice−€25card 4471
- Refund, out of stockSigned by Support+€5back on the cardnew record
The build
What a gift card service needs. You know the app you want. Your team builds it from BaaS SDK, with no server to run.
Authentication
Cards claimed in seconds
Whoever receives a card claims it.
Maison Lune
Paul sent you a €100 gift card
Smart contract
The rules of every card
Who may issue, spend or refund, written once in Solidity and kept with the data.
GiftCardsWho can do it
- Spend a cardIts holder
- Issue a cardMaison Lune
- Refund a purchaseSupport, up to the amount spent
- Change a balanceNo one
See GiftCards.sol
contract GiftCards { struct Card { address holder; uint balance; } // only the holder spends her card, signed with her Face ID function redeem(uint card, uint amount) external { … } // Support refunds a purchase, never more than it cost, // and every refund is a new record function refund(uint purchase, uint amount) external onlySupport { … } }
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 pays €25 in store // with Face ID await cards .function('redeem') .params(4471, 25) .sendTransaction();
SealDB
Every euro on record
Every card issued and every euro spent, written as it is signed, on your project’s own blockchain.
SealDBNo gas fees
- Block 12 057+€5 · Support12:05
- Block 12 052−€25 · Alice11:40
- Block 12 040+€100 · Maison Lune09:12
Card 4471 balance, read from its records€80
Automations
Cards sent as they are bought
When a customer pays, the card is issued and emailed, with no worker to host.
- WhenA card is paid fornowStripe checkout
- ThenIssue the card0.3sto the person it is for
- Email it to them0.2swith the buyer’s message
Run 1 204Done in 0.5s
Why BaaS
A euro can only be spent once. Every spend is applied in order, so the same euro can never go out twice.
On a usual database
-- the shop, 12:00:00.001 UPDATE cards SET balance = 0 … -- the website, 12:00:00.002 UPDATE cards SET balance = 0 …
Success · 2 rows updated
Both read €80 before either wrote: €160 spent from an €80 card.
On blockchain
// the website, 12:00:00.002 await cards .function('redeem') .params(4471, 80) .sendTransaction();
Reverted · balance €0, the shop spent it first
Spends go through one after another, so a euro is spent once.
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. Stripe takes the payment; BaaS issues the card and keeps every euro on record.
- 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.