Inspiration
Most Bitcoin hackathon apps try to convince neighborhood corner shops to accept BTC for everyday groceries—fighting deeply entrenched local mobile-money habits. We decided to attack a much more painful, broken corridor instead: diaspora-to-Dakar essential bills.
Every month, Senegalese diaspora family members abroad pay steep remittance fees and wait through settlement delays just to cover a relative's Woyofal prepaid electricity meter or pharmacy bill back home. Meanwhile, the recipient in Dakar shouldn't have to learn seed phrases, manage satoshis, or deal with crypto volatility just to keep the lights on. We built SamaBill to make Bitcoin's speed and low fees invisible behind a real-world utility payment flow.
What it does
SamaBill is a lightweight, low-bandwidth web app that lets someone abroad pay a local utility or pharmacy bill in Dakar in seconds using the Bitcoin Lightning Network and Nostr—without forcing the recipient in Senegal to own a crypto wallet.
- Bill & Voucher Creation: A family member in Dakar (or a verified local merchant/pharmacy) generates a simple payment request priced in CFA francs (XOF)—for example, a Woyofal electricity top-up or prescription receipt.
- Instant Diaspora Settlement: The sender abroad opens the link, sees the exact CFA-to-sats conversion, and pays via Lightning / Nostr Wallet Connect (NWC) in under 3 seconds.
- Verifiable Voucher Delivery: Once settled, SamaBill issues a cryptographically verifiable Nostr receipt and redemption code that the local merchant or utility agent can confirm instantly—eliminating fake payment screenshots and cash-out friction.
How we built it
We designed SamaBill with Security by Design and low-bandwidth mobile UX as first-class constraints:
- Frontend: Built with
[e.g., Next.js / React / Tailwind CSS]as a lightweight PWA optimized for mid-range Android devices and spotty mobile connections, with jargon-free labels displaying amounts primarily in CFA francs. - Lightning & NWC Integration: Integrated
[e.g., Alby SDK / NWC / LND testnet]to generate and verify BOLT11 invoices server-side with strict least-privilege spending caps. - Nostr Verification Layer: Used
[e.g., nostr-tools]to sign and publish tamper-evident payment receipts so merchants can verify settlement independently without trusting screenshots. - Backend & Database: Powered by
[e.g., Node.js / Express / Supabase / PostgreSQL]with zero PII written to application logs.
Challenges we ran into
- Hiding crypto complexity without hiding trust: Displaying CFA amounts cleanly while keeping real-time BTC/XOF conversion transparent required careful UX iteration so non-technical users never felt overwhelmed.
- Invoice expiry & unreliable networks: On slower mobile connections, short-lived Lightning invoices can time out mid-flow. We had to implement clear, human-readable retry states and graceful error handling.
- Testing end-to-end flows for judges: Making sure remote reviewers can test a full cross-border bill payment without needing real funds or a Senegalese utility account meant building a clean
[testnet / simulated voucher]walkthrough.
Accomplishments that we're proud of
- Shipping a working, end-to-end Lightning + Nostr bill-payment MVP that settles in seconds with a clean, jargon-free interface.
- Designing a workflow where the recipient in Dakar needs zero crypto knowledge to benefit from Bitcoin rails.
- Enforcing strong security defaults from day one: server-side invoice validation, least-privilege NWC permissions, and zero sensitive data in logs.
What we learned
- Invisible Bitcoin wins adoption: People don't want another wallet; they want their electricity meter topped up or their pharmacy bill covered faster and cheaper.
- Nostr + Lightning is a natural commerce stack: Combining instant Lightning settlement with Nostr's cryptographic receipts solves real-world local trust problems (like forged screenshots) cleanly and cheaply.
- Designing for mid-range phones makes apps better for everyone: Stripping out heavy scripts and unnecessary steps made the entire payment flow faster and more reliable.
What's next for SamaBill
- Direct local utility & merchant partnerships: Integrating directly with Woyofal aggregators and pilot pharmacies in Dakar for automated instant fulfillment.
- French & Wolof localization: Adding full French and Wolof UI support—plus voice-guided prompts—to make bill requests accessible across generations.
- Recurring family care plans: Allowing diaspora users to schedule automated monthly utility or pharmacy stipends with capped NWC budgets.
Built With
- alby-sdk
- bitcoin
- cryptography
- express.js
- lightning-network
- lnd
- next.js
- node.js
- nostr
- nostr-tools
- nwc
- postgresql
- pwa
- react
- supabase
- tailwind-css
- typescript

