MolBhav

Your agent haggles the stall and pays in HBAR, so the morning line doesn't wait on one bargain.

MolBhav

Created At

ETHGlobal Mumbai

Project Description

MolBhav (मोलभाउ, "haggling") lets a street stall serve a packed morning line without one customer holding the counter.

At a busy stall, one buyer asks about a single item, then bargains, while others stand and listen. The shopkeeper cannot weigh or take the next order until that talk ends, and the price said out loud becomes the price for everyone waiting. UPI starts only after the talking: scan a QR, type the amount, enter a PIN. The shopkeeper still has to check that it arrived.

Before opening, the shopkeeper sets an asking price and a private floor once. A Bluetooth sign on the stall broadcasts its agent id and ENS name a few meters, so a phone knows which counter it is facing and whether it is open. Each buyer's agent haggles with the stall agent on its own. The line never hears the next person's deal. When they agree, the buyer pays that amount in HBAR on Hedera through x402, from their own wallet to the stall. Cash and UPI stay for anyone who wants to pay by hand.

How it's Made

Next.js and TypeScript on the web, Postgres for stalls and deals, Redis for agent cards. Gemini writes the bargaining lines. The server checks every price against the stall's floor and the buyer's limit before it sticks.

A shopkeeper signs in with Magic and gets a Hedera wallet. Their UPI ID is hashed into the stall's agent id, so the agent is the same person who already takes payments. Saving the stall mints a name on ENSv2 (Sepolia), like ram-lal-chai.molbhav.eth, pointing at the A2A agent card and the Hedera account to pay.

An ESP32 on the counter broadcasts that agent id and ENS label over Bluetooth LE, a few meters, with no pairing. The iPhone app is a Capacitor shell. iOS often sends the name and the manufacturer data in different packets, so the scan stitches them. Closed stalls are dropped.

The two agents talk rfq, counter, and accept over A2A. The deal is in rupees. Pay turns it into HBAR and returns HTTP 402. The buyer's Magic wallet signs an HBAR transfer with @hiero-ledger/sdk. The x402 facilitator on Hedera testnet pays the network fee and settles it. We never see the key. One catch: Magic's EVM address is not the account that can spend, so pay-to is the 0.0.x account from Magic's admin API. Auto-pay runs in the open browser tab, because that is the only place the key exists.

background image mobile

Join the mailing list

Get the latest news and updates