About
## Challenges I ran into
**1. The chain rejected our attribute names.** We used camelCase names such as `centreId`. The SDK 0.8.1 accepted them. But Tiramisu reverted the transaction with `Ident32InvalidByte(6, 0x49)`. The chain does not accept uppercase letters in attribute names. We changed all names to snake_case on the chain (`centre_id`, `posted_at`, `hour_bucket`). The app maps them back to camelCase when it reads ([chain-attrs.ts](https://github.com/batmnnn/jeevanstock/blob/main/src/lib/chain-attrs.ts)). This is friction item F6.
**2. Pages stopped with no error.** After one day of tests, the keyless query budget ran out. The RPC sent `429 ANON_COST_LIMITED` with `Retry-After: 1965`. viem obeys that header, so the SDK query slept for about 33 minutes. Our pages did not fail. They hung. We added an API key from hub.arkiv.network as an `X-API-KEY` header. We set `retryCount: 0`. If a read fails, the app shows its last good data for up to 15 minutes ([rpc.ts](https://github.com/batmnnn/jeevanstock/blob/main/src/lib/rpc.ts)). This is friction item F7.
**3. A report extension is not proof.** We wanted "the centre confirmed this report" to be a chain fact. First we used the report extension as the signal. But `permissionlessExtension` lets any wallet extend a report. Also, the `ExpiryExtended` event records the owner, not the sender. So we added a separate readonly `ack` entity from the centre wallet. The ack and the 30-day extension go in one atomic `executeBatch`. Only an ack whose `$creator` is the registered centre wallet counts.
**4. Families must see no crypto words.** Arkiv has no paymaster yet (F2), so a family cannot write without gas. We keep the wallets on the server. One shared payer wallet writes all family reports, so nobody can link a report to a person. Each centre has its own wallet, and the read side filters by `$creator`.
**5. Writes were slow.** Separate transactions took about 18โ20 seconds. We put both drugs of one shift into one `executeBatch` (7.8 s). We put the ack and the extension into one batch (6.8 s).
**6. Funding wallets from a script.** The faucet needs a browser wallet (F1). We funded one payer wallet by hand. A script then sends GLM from it to the admin and centre wallets.
## The problem it solves
After a snakebite or a dog bite, a family must find anti-venom (ASV) or rabies vaccine (ARV) fast. Usually the medicine exists. But the family does not know which health centre has it. They drive from centre to centre and lose the first hour, when treatment matters most. India has about 58,000 snakebite deaths each year (Million Death Study, eLife 2020). India also has more than one third of global rabies deaths (WHO). On 4 October 2026, a 19-year-old woman in Panna, MP, died because the nearest centre had no anti-venom. We checked the public register of the Chhattisgarh state supplier (CGMSCL). The Durg warehouse holds 3,867 ASV vials ready to issue. But 22 of 45 rural centres in Durg and Balod got no ASV this year. The problem is visibility, not supply. **JeevanStock is a public stock board for ASV and ARV.** - **Families** open a link or scan a QR poster. The board is in Hindi first, with an English button. It shows which centres posted stock in the last 6 hours, with Call and Directions. If a centre has no medicine, the family sends a report in 2 taps. The app asks for no name, no phone number and no location. - **Nurses** sign in with a PIN and post the vial count for both drugs. They need no wallet and no crypto. They confirm family reports from an inbox. - **The public** (district officers, NGOs, reporters) sees the stock, the open reports and the confirmed reports. Anyone can check each record on Arkiv. **Why this is safer than a phone call or a WhatsApp message:** - Each stock count expires after 6 hours. An old count cannot look new. - Only the wallet that is registered to a centre can post its stock. Nobody can impersonate a centre. - Nobody can edit or delete a family report. This includes the centre, the district and us. We built it for all of India. Our first pilot is Durg and Balod, Chhattisgarh.
## Link to a twitter post explaining your project (or post with the video) https://x.com/shubhamdotdev/status/2112339465985462393?s=20
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.







