हिsaab

Verifiable invoicing on Whitechain with gasless USDT payments and QR-based receipts.

हिsaab

Created At

ETHGlobal Mumbai

Project Description

Hisaab is a blockchain-powered invoicing and payment verification platform that enables freelancers and contractors to issue invoices, receive USDT payments, and generate independently verifiable payment receipts.

Built on Whitechain, Hisaab uses smart contracts to link invoices directly to their corresponding payments. Each invoice is cryptographically hashed onchain, ensuring that its contents cannot be tampered with without detection, while sensitive information remains privately sealed.

Clients can pay invoices directly in USDT or use our gasless payment mechanism powered by EIP-3009, allowing them to complete transactions without holding native gas tokens. A relayer handles transaction submission and network fees.

Upon full payment, Hisaab automatically mints an NFT receipt containing an onchain-generated QR code. Anyone authorized by the freelancer can scan this code to independently verify the invoice's payment status and transaction history against the blockchain, without relying on screenshots or trusting Hisaab's servers.

We also integrate ENSv2 on Ethereum Sepolia to support verifiable organizational identities, subnames, and client acknowledgements.

Hisaab combines Whitechain's payment infrastructure, gasless transactions, cryptographic verification, NFT receipts, and ENS-based identity to make financial documentation transparent, portable, and independently verifiable.

How it's Made

Hisaab was built during ETHGlobal Mumbai over an intensive 36-hour development sprint, during which each team member managed approximately six hours of sleep. Our goal was to build more than an invoicing interface: we wanted to create an end-to-end system for issuing, settling and independently verifying invoices onchain.

The application uses Next.js 16 and TypeScript, with Solidity smart contracts developed and tested using Foundry. We deployed two contracts on Whitechain Sepolia: HisaabRegistry, which manages invoice creation, payments and refunds, and HisaabReceipt, which automatically mints an NFT upon full invoice settlement.

A key engineering challenge was implementing gasless payments. We integrated EIP-3009 with USDT and developed a custom TypeScript relayer that submits transactions on behalf of clients. The relayer performs authorization validation, balance and invoice-state checks, transaction simulation and rate limiting before submitting a payment. This allows clients to pay invoices without holding WBT for gas.

We also designed the invoice architecture around privacy and tamper detection. Invoice documents are hashed using keccak256, while sensitive information remains sealed within the payment link. A salted commitment to the issuer's ENS identity is stored onchain. When a client opens an invoice, the application independently verifies its contents against the onchain hash before allowing payment.

Another notable implementation is our onchain receipt generation. We developed SVG and QR code generation directly in Solidity, allowing the receipt NFT to carry a QR code linking to its independent verification page. This eliminates reliance on our backend for generating the receipt itself.

For identity verification, we integrated ENSv2 on Ethereum Sepolia, supporting organizational identities, subnames, client acknowledgements, expiry and revocation. Our verification and PDF generation API runs on Render, while the Next.js application is deployed on Vercel.

We also developed a shared TypeScript package for invoice hashing, document sealing, cryptographic signing, relayer logic and smart contract interactions. The contracts were validated with 35 Foundry tests.

Claude Code assisted us as a pair programmer throughout development, particularly with implementation, testing and debugging. The architecture, product decisions and final code review were handled by our team.

Building across two chains, implementing a custom gasless payment flow and generating verifiable receipts entirely onchain within 36 hours was an ambitious undertaking. It was also precisely what made building Hisaab worthwhile.

background image mobile

Join the mailing list

Get the latest news and updates

हिsaab | ETHGlobal