JanLekha: Blockchain-powered transparency for every rupee of public spending.
JanLekha 2.0 – Public Financial Transparency & Accountability Platform
JanLekha 2.0 is a blockchain-powered public financial transparency platform designed to make government expenditure traceable, verifiable, and accessible to every citizen. Its core mission is simple: every taxpayer deserves to know where their money goes, how it is spent, who receives it, and whether the promised work is actually completed.
Today, government budgets, procurement processes, contractor payments, and infrastructure project updates are often distributed across disconnected systems. Citizens may know how much money has been allocated to a project, but accessing its complete financial journey—from budget approval to contractor payment and verified project completion—is difficult. JanLekha addresses this transparency gap by connecting the entire public expenditure lifecycle through a unified platform.
The platform provides six dedicated role-based workspaces for Government Administrators, Finance Officers, Procurement Officers, Contractors, Independent Auditors, and Citizens. Government administrators can register departments and projects, finance officers manage budget allocations and payment approvals, procurement officers publish tenders and evaluate bids, contractors submit bids and project milestones, and independent auditors verify submitted evidence and investigate potential financial discrepancies.
What makes JanLekha particularly powerful is its citizen-first approach. Anyone can access the public portal without connecting a cryptocurrency wallet. Citizens can explore government departments, inspect project budgets, follow expenditure, examine procurement records, track contractor payments, review project milestones, access audit reports, and submit complaints. An interactive financial flow visualization helps users trace public money from government allocations through departments, projects, contractors, and payments.
Built around a decentralized infrastructure, JanLekha combines multiple technologies:
Arc Blockchain: Provides the blockchain infrastructure for recording and verifying approved public financial records, project events, procurement activities, and audit trails. The platform targets Arc Testnet and uses USDC for demonstrating blockchain-based settlement workflows, while maintaining government budgets and expenditure accounting separately in INR.
Arkiv: Integrates a decentralized data layer for storing and retrieving relevant application records and supporting information.
Swarm: Enables decentralized storage of project videos and visual evidence uploaded by government officials, helping preserve supporting material beyond a conventional centralized storage system.
Image Compression: Compresses government-uploaded proof images to optimise storage requirements while retaining evidence for project monitoring and verification.
Smart Contracts: Eight Solidity registries manage roles, budgets, projects, procurement, milestones, payments, documents, and audits.
Document Verification: Uses SHA-256 hashing to verify document integrity and determine whether a document matches its previously registered cryptographic fingerprint.
Risk Monitoring: An integrated risk engine detects potential discrepancies, including unusual budget variances, duplicate invoice hashes, unauthorised payment amounts, repeated milestone payments, delayed milestones, and missing supporting documents.
JanLekha also incorporates separation of duties to reduce opportunities for misuse of authority. Contractors cannot verify their own work, auditors cannot modify original financial records, citizens have read-only access, and payment initiation is separated from payment authorisation.
The ultimate objective is to transform government financial transparency from a matter of trust into something citizens can independently inspect and verify. Instead of merely publishing budget figures, JanLekha connects financial records with procurement activities, contractor accountability, project progress, supporting media evidence, and independent audits.
JanLekha is built on the belief that public money should have a public trail. By combining blockchain verification, decentralized storage, cryptographic document integrity, and accessible citizen dashboards, we aim to create a more transparent, accountable, and trustworthy public financial ecosystem.
Note: The current version is a testnet demonstration using synthetic government data and simulated USDC settlements. It does not represent actual government expenditure or move real funds.
We built JanLekha 2.0 as a unified, citizen-first public financial transparency platform using React, TypeScript, Vite, Tailwind CSS, Solidity, Foundry, and a decentralized infrastructure powered by Arc, Arkiv, and Swarm.
1. Frontend and Application Architecture
The application is built using React, TypeScript, Vite, Tailwind CSS, and React Router. We designed a unified application with a shared data store and six role-specific workspaces rather than building disconnected dashboards. The public citizen portal uses a light theme, while internal government workspaces use a dark, professional interface. Recharts powers financial analytics, while custom-built SVG components power our interactive Sankey money-flow visualization and geographical project explorer.
2. Arc Blockchain and Smart Contracts
We chose Circle's Arc Testnet as our blockchain infrastructure, with chain ID 5042002. Using Solidity 0.8.24 and Foundry, we developed eight modular smart contract registries: RoleRegistry, BudgetRegistry, ProjectRegistry, ProcurementRegistry, MilestoneRegistry, PaymentRegistry, DocumentRegistry, and AuditRegistry.
These contracts represent different stages of the government financial lifecycle. We integrated ethers.js and MetaMask-compatible wallet connectivity to interact with the blockchain. Our financial model deliberately separates INR-denominated government budgets from USDC-based settlement demonstrations. Native USDC is treated as the gas asset, while ERC-20 USDC uses six decimals. We also implemented a testnet deployment script that reads private keys exclusively from environment variables.
3. Arkiv and Decentralized Data Infrastructure
We integrated Arkiv as a decentralized data layer to support the platform's record and information management. This complements Arc's on-chain financial accountability layer, allowing us to separate blockchain verification from application data storage.
4. Swarm and Evidence Storage
One of our important design decisions was not to store large media files directly on the blockchain. Government officials need to submit photographs and videos as evidence of infrastructure progress, completed milestones, and project activities. We therefore incorporated an image compression pipeline to optimise uploaded photographs before storage and integrated Swarm for decentralized video storage. This allows supporting visual evidence to be handled separately from financial transactions while maintaining a path to associate evidence with relevant project and milestone records.
5. Document Integrity and Verification
We implemented browser-based SHA-256 hashing for document verification. Citizens can upload a document or paste its hash to check its integrity against a registered reference. This creates a practical way to detect whether submitted evidence has changed without publishing confidential document contents directly on-chain.
6. Risk Detection and Audit Engine
We developed a custom TypeScript risk engine that checks budget variances, duplicate invoice hashes, payments exceeding authorised limits, repeated payments against milestones, delayed milestones, and missing supporting documents. Each detected issue carries contextual information, evidence, risk severity, investigation status, auditor notes, and resolution history. Importantly, the system identifies potential discrepancies rather than automatically declaring fraud.
7. Role-Based Permissions and Separation of Duties
We implemented a centralised permission system in src/lib/permissions.ts. It enforces role-specific actions in the demo, with clear separation between payment initiation and authorisation, contractor milestone submissions, independent auditor verification, and citizen read-only access. We also documented the need for server-side enforcement before production deployment.
8. Testing and Engineering Decisions
We used Foundry to compile and test our Solidity contracts. Our test suite achieved 18 passing tests, with zero failures and zero skipped tests. We also built the frontend around a shared application context and browser localStorage, allowing all six workspaces to interact with the same demonstration state without requiring a separate backend server.
What was particularly interesting about our implementation?
The hackiest and most interesting engineering decision was connecting the entire government expenditure lifecycle into one coherent workflow instead of treating budgeting, procurement, payments, audits, and citizen transparency as separate applications.
We also deliberately separated large evidence files from blockchain transactions, using compression and decentralized storage for media while keeping cryptographic verification and financial accountability as distinct concerns.
We built the project with a strong emphasis on technical honesty: the Solidity contracts and wallet integration are real, but government figures are synthetic demonstration data and USDC settlements are simulated. Our architecture targets Arc Testnet, and the current demo does not move real funds or claim to represent actual government expenditure.
Our goal was to demonstrate how blockchain, decentralized storage, cryptographic verification, and thoughtfully designed workflows can work together to make public financial accountability independently inspectable by ordinary citizens.

