What is generated
When a wallet is created, MelaOne generates:
- A random 144-bit token, URL-safe, unique across the platform.
- A Wallet ID: the event's prefix and the next number (BM0001, BM0002…), unique and gap-free per event.
- A PIN hash from the visitor's PIN.
- A ledger entry for the first recharge.
- A quota consumption entry: one unit.
All five happen in a single database transaction. If any fails, none happens.
The QR itself
The QR encodes a web address containing the token. Scanning it with a phone camera opens the wallet page, which asks for the PIN before showing anything. The QR never contains the balance or PIN. Because the token is random and long, it cannot be guessed from other wallets' QR codes.
Printing
The card is printed from the browser as a standard card-sized layout showing the event name, the QR and the Wallet ID. Use any printer: a thermal card printer, a laser printer and cutter, or pre-cut stock. Reprint at any time without cost.
Counting quota
- A new wallet consumes one unit: ₹2.
- Reprinting, replacing a card, a PIN change, blocking, recharging and refunds consume nothing.
- Failure consumes nothing.
- Retries and duplicates are counted at most once.
Because consumption is a single atomic update that succeeds only while units remain, two operators issuing at the same moment cannot both take the last unit.
Prefix and numbering
Choose a prefix of 2–4 letters per event (for example BM for Basant Mela), or let MelaOne suggest one from the event name. It locks when the first wallet is issued, because printed cards carry it. IDs are forgiving when typed: lower case, spaces and a hyphen are accepted.
Bulk preparation
You cannot pre-generate a stack of blank wallets: a wallet exists when it is issued with a first balance. If you want to print cards in advance for a rush, plan the stock of cards, not the wallets.
Cost example
Issue 3,000 wallets: 3,000 × ₹2 = ₹6,000. Reprints for 100 damaged cards: ₹0.
Related
Frequently asked questions
Can I generate wallets in bulk before the event?
No. Wallets are created at the recharge desk when they are issued with a first balance.
Can the QR design be customised?
The card layout shows the event name, QR and ID. Branding comes from the event settings.
Is the QR secure?
It holds a long random token. The PIN is still required to spend.
Does a duplicate print cost extra?
No. Reprinting a card does not use any QR quota, so MelaOne does not charge for it.
Can two events use the same prefix?
Prefixes are unique across the platform so a Wallet ID names exactly one wallet.
