A decentralized Q&A application built on Solana and deployed with Next.js on Vercel.
Think of it as a blockchain‑powered version of Stack Overflow — users can post questions and answers, and all interactions are recorded on Solana Devnet.
- Create Questions: Users can submit questions with a topic and body.
- Post Answers: Answers are tied to questions and stored on-chain.
- Transaction Links: Each action returns a Solana Explorer link for transparency.
- Live Updates: Questions and answers are fetched from chain and displayed in real time.
- Deployed Frontend: Hosted on Vercel for easy access. Access here
- Frontend: Next.js 15 + React + TailwindCSS
- Blockchain: Solana Devnet
- Smart Contracts: Anchor Framework
- Wallet Integration: Phantom Wallet (via
window.solana) - Deployment: Vercel
Clone the repo and install dependencies:
git clone https://github.com/Christone007/stack_underflow.git
cd stack_underflow/frontend/stack_underflow
npm installStart the development server
npm run devvisit http://localhost:3000 in your browser
Homepage: List of questions with corresponding answers. frontend/stack_underflow/public/img

Create Question: Form to submit a new question.

Answer Modal: Popup to post answers with transaction link confirmation to view transaction on solana explorer

- Questions and answers are stored on-chain using PDAs (
getQuestionPDA,getAnswerPDA). - Transactions return signatures that are linked to Solana Explorer.
- State is refreshed after each transaction to show live updates.
👉 stack-underflow-psi.vercel.app
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.