All the thrill of a live auction, with onchain receipts anyone can check.
The hammer falls. One person wins. Everyone should be able to check the result.
Bid3 is a live auction where bidders raise physical paddles, and every accepted bid, the hammer result and the payment end up in a public record anyone can check. It combines handheld hardware paddles, wallet-owned listings, a big-screen live room, auctioneer controls, phone-wallet payments and a results explorer. We built it for charity fundraisers, college festivals, community events and collector auctions, where people care about both the experience in the room and the fairness of the outcome.
A seller connects their wallet, adds an item's details and sets an opening price. The listing is published on Arkiv and owned by the seller's wallet. Buyers can browse the catalogue, filter by category and price, and follow each lot from "up next" through to its final outcome.
Each bidder holds an ESP32 paddle with a slide switch and a single BID button. Bidding needs no app, wallet or login. Switching the paddle on joins the room, and each press bids the next price. Every press is signed with the paddle's own key and sent over Bluetooth to a gateway with its own display, which passes it to the auction engine. The engine alone decides the order, price, countdown and winner. Public records show only a fresh alias for each paddle, such as K7 or M4, never a name, wallet or device ID.
The auctioneer opens bidding on one lot at a time from an admin console. A shared live-room screen shows the current price, leading paddle, accepted bids and hammer countdown, and moves to the next lot by itself when bidding opens. The first accepted bid takes the opening price. Each following bid raises the price by exactly 5% and restarts a ten-second countdown. The leading bidder wins when that countdown ends. If nobody bids within the auctioneer's chosen window, the lot closes unsold and goes back to the seller.
The rules also cover the awkward moments at real events. Switching a paddle off cannot withdraw a bid that was already accepted. A paddle that loses signal can't place new bids while everyone else carries on, and it must sign a fresh join to come back. An outage of the gateway, bridge or engine pauses the whole room. If the engine restarts, an unfinished auction comes back paused instead of trusting an old deadline.
As bidding happens, Bid3 publishes the frozen auction rules, accepted bids and final result to Arkiv. These writes happen in the background, so a press never waits for blockchain confirmation. Short-lived public snapshots also give a fallback view when the live stream is unavailable.
After the hammer falls, anyone can open the results explorer and inspect the published evidence. Their browser checks the publisher's identity, recalculates the rules hash, rebuilds every price on the bid ladder, compares the winning bidder and hammer price with the history, and verifies a fingerprint of the published bid transcript. Missing or inconsistent evidence fails the relevant checks. The catalogue, bid history and results explorer read directly from Arkiv, so published records stay independently accessible for their configured lifetimes, even when the live auction engine is offline.
The winner pays the seller on the Sepolia testnet. Tapping a phone on the paddle's NFC sticker opens that paddle's seat page, which creates a wallet in the phone's browser and links it to the paddle with one signed tap. When that paddle wins, the page pays the seller automatically, with MetaMask available as a fallback. The payment is signed and saved before it is broadcast, so a reload or retry cannot pay twice. Bid3 checks the transaction's sender, recipient, amount and auction reference before marking the lot paid. If the winner doesn't pay within ten minutes, the lot stays with the seller. Paid and unpaid outcomes are both published to Arkiv. The demo defaults to a zero-value transfer plus testnet gas, and paddles without a linked wallet can still bid.
We ran it end to end on real hardware. In lot bid3-004, two paddles traded 11 bids from 100.00 to 162.89, the lot sold to M4, and the rules, every bid and the result were read back from Arkiv. Publishing that whole round cost 0.00444 tGLM in testnet gas.
A losing bidder can revisit the sequence. A seller can check the hammer price. An organiser can point everyone to the same published evidence, even after the crowd has gone home.
The OLED was counting presses. The bridge said "engine connected." The auction engine had received zero bids.
That turned out to be a fairly good introduction to building Bid3: a working button, a working connection and a working auction are three separate things you have to earn.
The physical setup uses two Seeed XIAO ESP32-C3 boards as bidder paddles and an ESP32-WROOM as the gateway. Each paddle has a BID button on GPIO4, a participation switch on GPIO3 and an LED on GPIO5. The button and switch connect to ground using internal pull-ups. On the gateway, the OLED uses I²C on GPIO21/22, with green/red feedback LEDs on GPIO25/26 and a buzzer on GPIO27. The firmware is Arduino C++, built against Espressif's ESP32 core.
A press travels through this chain:
Paddle → authenticated BLE → gateway → USB serial → Python bridge → FastAPI auction engine.
The engine's decision comes back through the same chain to drive the display, lights and sound. JOIN, LEAVE and BID intents carry secp256k1 signatures, session identifiers and sequence numbers. Bids also carry the price-state version the bidder saw. If two bidders press against the same quote, the engine accepts the first valid request it processes and rejects the stale one. It doesn't quietly charge the second bidder a price they never saw.
Our "connected, but nothing arrives" incident came from the gateway's CH340 USB-serial driver. The port could open, but configuring it failed with "Invalid argument." Meanwhile, the bridge kept retrying without explaining the initial failure. We added useful error reporting; unplugging and reconnecting the gateway cleared the driver state. The OLED had been reporting local input correctly all along. The missing part was further down the chain.
We also found avoidable waiting in serial reads. The bridge had been reading in chunks with a timeout; we changed it to deliver complete newline-delimited messages as they arrived. On the firmware side, we separated immediate button feedback from bid acceptance. A small session-authenticated receipt updates the OLED without waiting for signing and the engine round trip. Only the engine acknowledgement produces accepted-bid feedback. ECDSA work runs separately from the display/input path, so an animation doesn't get to hold the bidding experience hostage.
Then there was the gateway enthusiastically announcing the same reconnecting paddle over and over. Clearing a lost paddle from the radar also cleared the state used to remember its arrival sound. Each advertisement could therefore trigger another chirp. We separated sound history from connection availability and invalidated queued discovery sounds when a link dropped.
The auction engine is Python/FastAPI, with a deterministic state machine and SQLite persistence. One lock serializes transitions. Prices use integer arithmetic, calculated from the opening price rather than repeatedly rounding the previous bid. Each transition commits the auction state, its journal entries and its Arkiv publication records in a single SQLite transaction, so the publication queue can never disagree with the auction. Restarting an unfinished round restores it paused, because yesterday's countdown deadline is not something we wanted to improvise around.
The auctioneer runs the room from a password-protected admin page. The password check and the engine's admin token live in Next.js server routes, so the token never reaches a browser. The console opens one lot at a time, seats the paddle roster with the house rules (+5% per bid, a ten-second countdown, a ceiling of ten times the opening price) and sets a no-bid timer. The big-screen live room follows whichever lot is open. It keeps the result on screen through the hammer and payment, switches by itself when the next lot opens, and says "No bidding is going on right now" instead of showing a stale lot. The catalogue combines the engine's live lot list with results on Arkiv, so each card reads Live now, Up next, Sold or Unsold.
Arkiv handles the public application data, and it shaped the product rather than sitting beside it as a log. Sellers publish listings directly from the browser: the site switches their wallet to Arkiv's Rabdi testnet, adding the network if needed, and the seller's wallet owns the listing. A TypeScript worker uses the Arkiv SDK to publish rules, accepted bids, snapshots, results and optional payment settlements from the engine's outbox. A slow chain write leaves publication pending while the auction continues. Each record type has its own owner and lifetime: listings expire a day after the lot closes, live snapshots after ten minutes, bids after seven days, rules after 30 and results after 90. Rules, bids and results are written read-only. The catalogue, bid history and results explorer query Arkiv directly by indexed attributes, so they keep working with our engine switched off. Publishing a whole 11-bid round cost 0.00444 tGLM in testnet gas.
One subtle problem was retrying a write after a timeout: the transaction might already have succeeded. Before retrying, the worker searches its own entities using the auction, epoch and bid index and reuses an existing match. We also learned that matching a schema does not establish who published an entity. Reads of official auction records explicitly filter by the publisher wallet.
The frontend uses Next.js 16, React 19, TypeScript, Tailwind, React Query, wagmi and viem. The results explorer independently implements the price ladder, rules hash and transcript digest. Python/TypeScript test vectors check that both implementations agree. Web and worker schemas are checked for drift too. One small hack: the gateway photo on the landing page plays the gateway's real screen. We compiled the firmware's own OLED renderer on a laptop, exported 545 frames, and drew them onto a canvas placed exactly over the photographed display.
Payments went through the most rewrites. The paddles had signing keys but no wallets, so a phone takes that role: each paddle carries an NFC sticker that opens its seat page. The first version paid through MetaMask, and MetaMask Mobile rejected the payment with "must provide an Ethereum address." We had asked for the account before switching to Sepolia, and the mobile app shares accounts with a site per network. We fixed the order and added a step-by-step trace to the page, but linking still failed inside MetaMask's in-app browser on a second phone. So the seat page now creates its own Sepolia wallet in the phone's browser storage. One tap signs a link message, which the server verifies and accepts only while it's fresh. When the paddle wins, the page pays the seller by itself. Each transaction is signed and stored before it's broadcast, so a reload or retry rebroadcasts the same nonce and can't pay twice. Before the engine records payment, the server checks the receipt, sender, recipient, amount and a bid3:<auctionId> memo. If the winner hasn't paid within ten minutes, the lot stays with the seller, and either outcome is published to Arkiv. MetaMask remains a fallback. Keeping a key in browser storage is a deliberate testnet trade-off, the default rate is zero plus gas, and the whole feature stays off unless the engine starts with PAYMENTS=1.
Deployment had its own plot twist: the Railway trial expired. We moved the engine and worker onto the event laptop, kept the frontend on Vercel and exposed the engine through a Cloudflare tunnel. Closing a terminal could kill the tunnel and change its URL, so we added a background launcher that reuses the running tunnel and checks whether the deployed frontend points to it. We also packaged the engine and Arkiv worker as a standalone Docker backend for Render. It is built from the same source folders, so there's no second copy of the code to drift. It refuses to start the worker with the live publisher key, because two workers sharing one key would race for nonces.
Claude and Codex assisted with implementation, tests and documentation. We selected the architecture and rules, connected and tested the hardware, investigated failures and reviewed the changes.
The payoff was round bid3-004: eleven accepted bids from the physical paddles, starting at 100.00 and finishing at 162.89. We retrieved the rules, all eleven bids and the result from Arkiv and checked that they agreed. The OLED finally had the rest of the system backing it up.

