Use case · Gift cards

Launch your gift card service.Issue and redeem millions of cards, every euro accounted for.

Maison Lune

Gift card

€100

  1. Card issuedSigned by Maison Lune€100to Alice
  2. Spent in storeSigned by Alice−€25card 4471
  3. 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

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

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

  1. Block 12 057+€5 · Support12:05
  2. Block 12 052−€25 · Alice11:40
  3. 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.

Maison LunenowYou received a gift card€100 from Paul, with a message
Card boughtOn
  1. WhenA card is paid fornowStripe checkout
  2. ThenIssue the card0.3sto the person it is for
  3. 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.

  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.