0x5D61543792a5d11FA80Ea7aEC8256f6ce8f3bb0a
Explorer: https://coston2-explorer.flare.network/address/0x5D61543792a5d11FA80Ea7aEC8256f6ce8f3bb0a
Explore it here: https://poll-flare-smart-contract.vercel.app/
This project is a decentralized polling/voting application built on the Flare Coston2 Testnet.
It enables users to vote on a predefined poll stored fully on-chain. The DApp provides a clean UI, wallet-gated access, and live updates on poll results directly from the blockchain.
Many voting systems rely on centralized databases that can be manipulated or obscured.
This project solves that by allowing transparent, immutable, and trustless voting using a smart contract.
Users can vote only once, and all poll data — question, options, and live results — is fully stored and retrieved from the blockchain.
- Predefined question and two options (Option A & Option B)
- Poll data permanently stored on the blockchain
- Users can vote once per wallet
voteA()andvoteB()smart contract functions- Automated UI disabling after vote is cast
- Live vote counts pulled via
getPollDetails() - No backend or database required
- Uses Wagmi + Viem to detect wallet connection
- UI unlocks automatically after wallet is connected
- Transaction hash
- Confirmation status
- Error handling
- Loading state
- Responsive design
- Smooth UX
- Clear status indicators
Traditional polls suffer from:
- Lack of transparency
- Double voting
- Manipulation by the poll owner
- No public verification
- Reliance on centralized services
This DApp provides:
- Immutable votes thanks to blockchain consensus
- One user = one vote, enforced via wallet address
- Full transparency: Every vote is on-chain and publicly traceable
- Decentralized verification: Anyone can confirm vote counts
- Open-source UI + contract ensuring end-to-end trust
- Community decision-making
- DAO proposals
- Transparent public voting
- Social media polls backed by blockchain
- Micro-governance inside apps or communities
- Next.js / React
- TypeScript
- Wagmi + Viem
- Flare Coston2 Testnet
- Smart Contract (Solidity)
lib/contract.ts→ Contract ABI & addresshooks/useContract.ts→ Hook for interacting with contractcomponents/sample.tsx→ Poll UIREADME.md→ Documentation
If you need improvements, UI redesign, or deployment help — feel free to ask!