Skip to content
ArkivTrace

ArkivTrace

Tarnsparent web3 auditable record for every Ration

Created on 16th October 2026

•

ArkivTrace

ArkivTrace

Tarnsparent web3 auditable record for every Ration

The problem ArkivTrace solves

India's Public Distribution System (PDS) plays a crucial role in delivering essential food grains to eligible households. However, maintaining transparency across the supply chain remains challenging. A consignment passes through multiple stages, from depot dispatch to ration-shop receipt and eventual distribution, and the records associated with these stages are not always easy to connect, verify, or inspect publicly.

A dispatch record showing that 1,000 kg of rice was sent does not necessarily establish that the ration shop received 1,000 kg. If the shop reports receiving only 940 kg, where is the missing 60 kg accounted for? How can an administrator identify that difference, investigate it, and allow citizens to inspect the supporting records?

ArkivTrace was built to address this accountability and visibility gap.

ArkivTrace is a supply-chain transparency platform that uses Arkiv Network as its primary data layer to create a connected evidence trail for ration-grain movement. It records ration shops, dispatches, confirmed receipts, stock reports, discrepancies, and review audit events as linked Arkiv entities.

Our platform supports three distinct users:

  • Government/depot administrators create shops, assign operators, dispatch grain, monitor supply activity, and review discrepancies.
  • Ration-shop operators confirm the quantities they actually receive and submit stock reports for their assigned shops.
  • Citizens and auditors can inspect public supply records, discrepancy statuses, and supporting Arkiv evidence without needing administrative access.

The backend automatically reconciles dispatched quantities against confirmed receipts and calculates expected versus reported closing stock. Significant differences are recorded as discrepancies, connected to the underlying evidence, and made available for administrative review. Importantly, a discrepancy represents a recorded difference requiring investigation, not automatic proof of theft or fraud.

We also implemented a Telegram bot to make ArkivTrace useful beyond its web dashboard. Operators can receive notifications when new grain is dispatched to their shops, administrators can receive major or critical discrepancy alerts, and pending receipt reminders help bring attention to unconfirmed deliveries. Citizens can use public Telegram commands such as /shop SHOP_ID and /proof RECORD_ID to access shop information and supporting evidence without repeatedly visiting the website.

Arkiv is central to the solution because the supply-chain records are stored as queryable entities with indexed attributes, entity keys, and linked references, rather than existing only inside a conventional application-controlled database. This allows ArkivTrace to reconstruct a consignment's journey and expose its underlying evidence through public-facing interfaces.

Our hackathon prototype uses synthetic Indian PDS data and demonstrates how connected, inspectable supply-chain records can help administrators, shop operators, auditors, and citizens identify inconsistencies earlier and understand how they are being reviewed.

ArkivTrace — Every grain accounted for. Every discrepancy traceable.

Challenges I ran into

Building ArkivTrace involved integrating Arkiv with a complete supply-chain workflow, secure authentication, automated reconciliation, and Telegram notifications within a limited hackathon timeline.

1. Arkiv Integration and RPC Limitations: We successfully implemented live entity creation and retrieval using Arkiv SDK 0.8.x. However, during later testing, the Tiramisu RPC returned HTTP 429 (ANON_COST_LIMITED) errors. We added explicit error handling and separated local regression tests from live network tests to identify infrastructure-related failures accurately.

2. Designing Linked Evidence: We needed to connect six Arkiv entity types—shops, dispatches, receipts, stock reports, discrepancies, and audit events—into one traceable supply-chain history. Designing indexed attributes, entity references, and accounting for Arkiv's entity-expiration model required careful planning.

3. Accurate Reconciliation: Distinguishing pending deliveries from actual quantity mismatches and calculating expected versus reported stock required precise validation and business logic. We ensured discrepancies indicate differences requiring review, not automatic proof of fraud.

4. Clerk RBAC Security: We identified and fixed potential role-header spoofing and cross-shop access issues. The backend now enforces trusted Clerk roles and shop assignments, supported by dedicated security regression tests.

5. Telegram Integration: Connecting Telegram accounts securely, delivering alerts to the correct operators and admins, and preventing duplicate notifications introduced additional complexity. We designed notification failures to remain independent of successful Arkiv transactions.

These challenges helped us build a more reliable prototype combining Arkiv-backed evidence, transparent reconciliation, secure access controls, and real-time operational notifications.

Detailed Arkiv-specific findings are documented in /arkiv/friction.md.

Tracks Applied (4)

Open Source

100% Permissive MIT Licensing: The entire codebase (Next.js 16 frontend, Express 5 backend, automated test suites, and d...Read More

Privacy

Zero Citizen PII on the Blockchain: Never writes beneficiary names, ration card numbers, or Aadhaar biometric data on-ch...Read More

Security

Tamper-Evident Anti-Diversion Ledger: Overcomes the major vulnerability of centralized SQL databases, where corrupt admi...Read More

Best Indian Use Case

Targets India’s Largest Welfare Lifeline (TPDS): Directly addresses the Targeted Public Distribution System serving 800+...Read More

Discussion

Builders also viewed

See more projects on Devfolio