Skip to content
CampusFund

CampusFund

Fund Your Vision, Block by Block

Created on 4th April 2026

•

CampusFund

CampusFund

Fund Your Vision, Block by Block

The problem CampusFund solves

Campus fundraising runs on trust — and trust keeps failing.

Student clubs collect money via UPI links and WhatsApp messages with
zero accountability. Donors have no way to verify if their ₹500 ever
reached the cause. Goals are never enforced — a campaign raises 30% of
its target and spends it anyway. There is no refund mechanism, no audit
trail, and no recourse.

CampusFund fixes this at the infrastructure level, not the policy level.

  • For donors: Your money is locked in an Algorand escrow wallet the
    moment you donate. It is mathematically unreachable until the campaign
    hits its goal. If the goal fails, you get refunded automatically. No
    forms. No emails. No waiting.

  • For campaign organisers (clubs, NGOs, student groups): You can
    run credible fundraising campaigns without needing anyone to trust you
    personally. The blockchain enforces the rules. Every deposit, every
    claim, every refund is recorded permanently on a public ledger that
    anyone can verify on Algoexplorer — no RTI required.

  • For universities and institutions: A full on-chain audit trail of
    every fund movement. Transparent by default, not by request.

What it replaces:

  • UPI links shared in WhatsApp groups with no tracking
  • Google Forms + manual bank transfers with zero verification
  • Spreadsheets that only the treasurer can see
  • Blind trust in people you barely know

What it enables:

  • Donation confidence — donors give more when they know funds are locked
  • Goal discipline — campaigns are forced to hit targets before spending
  • Instant credibility — any campaign on CampusFund carries the same
    on-chain guarantee regardless of how new or unknown the organiser is
  • Cross-wallet donations — Pera Wallet integration means anyone with
    an Algorand wallet can donate in seconds

Challenges we ran into

1. Algorand escrow architecture — per-campaign keypair generation

The biggest design challenge was figuring out how to lock funds without
writing a custom smart contract. We landed on generating a unique
Algorand keypair for every campaign server-side — the escrow address is
derived from that keypair, funds flow in from donors, and the claim
sweep is triggered server-side only when the on-chain balance meets the
goal. Getting the mnemonic storage and server-side signing right without
exposing keys client-side took multiple iterations.

2. Real-time INR ↔ ALGO conversion without a live API on every input

We needed prices to feel live (users typing a donation amount and seeing
ALGO equivalent instantly) without hammering a price API on every
keystroke. We solved this with a cached conversion rate fetched once on
page load and stored in Zustand global state, with a stale-time of 5
minutes — fast enough to feel real, safe enough not to rate-limit us
during the demo.

3. Pera Wallet integration with Next.js App Router

Pera Wallet's connect SDK was built assuming a traditional SPA — it
broke hard under Next.js App Router's server components and strict
hydration. We had to isolate the entire wallet context into a client
boundary, wrap the provider carefully, and handle the reconnect flow
across page navigations manually since the SDK doesn't persist sessions
the way you'd expect.

4. Role-gated UI that doesn't feel punishing

Early versions just showed a 403 page when a user tried to create a
campaign. That felt terrible. We redesigned the upgrade gate to be
contextual — a modal that explains the value, shows the pricing, and
lets users upgrade in place without losing their session, wallet
connection, or donation history. Getting that flow smooth without a real
payment provider (placeholder for demo) required careful state management
across the upgrade mutation.

5. Prisma transaction timeouts on escrow claim

The claim flow involves: verifying on-chain balance via Algod → signing
the sweep transaction → broadcasting → writing the result to Postgres —
all in one API call. Early on this kept timing out under Prisma's default
transaction timeout. Fixed by breaking it into two sequential operations
with explicit error handling at each step and a claim status field on the
Campaign model to prevent double-claims.

Discussion

Builders also viewed

See more projects on Devfolio