Skip to content
dochain

dochain

the blockchain way to donate

Created on 17th August 2025

•

dochain

dochain

the blockchain way to donate

The problem dochain solves

Modern fundraising and charitable campaigns are often hindered by issues like a lack of transparency, trust, and friction when accepting donations from a global audience. Donors want to be sure their money is going toward the intended cause, and campaigners want faster, borderless ways to receive support.

dochain solves this by bringing blockchain technology to donation and crowdfunding campaigns, making the process transparent, auditable, and accessible worldwide.

Transparent Donations: Every contribution is recorded on the blockchain, viewable by anyone, so both donors and recipients can see where funds go.

Borderless Support: Accept donations from anywhere in the world without worrying about traditional banking obstacles.

Campaign Verification: Easily verify campaign legitimacy and track status in real-time.

Fast and Secure: Reduce fraud and payment delays with secure on-chain transactions.

Ease of Use: User-friendly interfaces for both campaign creators and donors, including simple sign-up/sign-in (Google or email/password).

Visibility: Display trending campaigns and user-driven causes to inspire giving.

Challenges we ran into

Prisma & MongoDB Adapter Issues:
Prisma’s MongoDB integration with NextAuth needed specific ObjectId types in all user/account models—using default UUID/cuid caused login failures and mismatched IDs. I solved this by carefully converting all id and relation fields to use @db.ObjectId and by cleaning old UUID data from the database.

NextAuth Route Setup in App Router:
Integrating NextAuth with the new Next.js App Router meant following new patterns (such as splitting handlers into a separate auth.ts and importing them with API Route Files). Early errors stemmed from mis-imports or trying to use handlers in non-auth API files.

CSRF and Session Management Friction:
Running custom auth forms, especially with credentials, brought up several CSRF token issues. These were fixed by always using the official NextAuth React hooks and utilities for sign-in/sign-up flows, and never posting manually to API routes.

Forcing Main Branch to Past Commits on Git:
At times, the main branch needed to be reset to a prior commit. Using git reset --hard and careful force-pushes helped manage history, but required caution not to disrupt work or lose data.

Image & Asset Management for Next.js:
Mixing Unsplash URLs and local images required learning Next.js’s handling of images in the public directory vs. static/remote CDN.

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio