Sahban
← Back to work

web3

Onchain-Petition

Live

Petitions where every signature is an on-chain transaction.

Live Source
Onchain-Petition cover

Problem

Traditional petition platforms rely on centralized databases, requiring users to trust that signatures have not been altered, removed, or fabricated. There is often no transparent way to verify that supporters are real or that petition data remains unchanged over time.

Approach

Built a Next.js application backed by a Solidity smart contract on Base, making each petition and signature publicly verifiable. The contract prevents duplicate signatures and exposes paginated retrieval methods to support efficient browsing as the number of petitions grows. Petition creators can launch campaigns, manage their lifecycle through a dedicated dashboard, and close or hide petitions when needed. Images are pinned to IPFS through Pinata, while a configurable creation fee helps prevent spam and abuse.

Outcome

Launched as both a standalone web application and Farcaster Mini App, enabling anyone to create petitions and collect verifiable, tamper-resistant signatures on Base. Every signature is publicly auditable on-chain, allowing supporters and organizers to share cryptographic proof of participation through blockchain explorers and wallet records.

Screens