DoubtEarn is a decentralized Q&A platform built on the BNB Smart Chain, enabling users to earn cryptocurrency by answering questions. π
This platform allows users to:
- Post questions with a bounty reward for answers.
- Incentivize experts and enthusiasts to provide valuable answers.
- Automate payments using smart contracts to ensure trust and transparency.
Think of it as a blockchain-powered DoubtNut! π€β¨
π Features
1. Create Questions
Users can post questions on the platform, specifying:
- The question content.
- The reward amount (in BNB) for the answer.
- A time frame for accepting answers.
2. Answer to Earn
Other users can view the posted questions and provide answers. If their answer is accepted, they will automatically receive the specified reward directly in their wallet.
3. Decentralized Payments
Payments are securely handled by a smart contract deployed on the BNB chain, ensuring trust between users.
4. Transparent System
All questions, answers, and transactions are recorded on the blockchain, providing a transparent and tamper-proof system.
5. User-Friendly Interface
Built with Next.js and Tailwind CSS, the platform offers an intuitive and responsive interface for smooth user interaction.
βοΈ Technologies Used
This project leverages the following technologies:
- BNB Smart Chain
- Next.js
- TypeScript
- Tailwind CSS
- Solidity (Smart Contracts)
- Hardhat (Development Framework)
- Ethers.js (Blockchain Interactions)
- MetaMask (Wallet Integration)
π How It Works
1. Posting a Question
A user creates a question, specifying:
- Details: What the question is about.
- Bounty: The reward amount (in BNB) for providing the answer.
- Recipient Criteria: Ensures only the best answer is accepted.
2. Answering the Question
- Other users browse questions and submit answers they believe will be accepted.
- Answers are recorded on the blockchain for transparency.
3. Accepting an Answer
- The question creator reviews the answers and accepts the best one.
- The specified bounty is automatically transferred to the answer providerβs wallet using a smart contract.
π Running the Project
Follow these steps to set up and run DoubtEarn locally:
1. Prerequisites
Ensure you have the following installed:
2. Installation
-
Clone the project repository:
git clone https://github.com/gola-k/DoubtEarn_bnb.git
cd DoubtEarn
-
Install dependencies:
-
Create a .env
file and add the following configuration:
NEXT_APP_RPC_URL=https://bsc-dataseed.binance.org/
-
Deploy the smart contract using Hardhat:
yarn hardhat run scripts/deploy.js
-
Start the development server:
The app will run at http://localhost:3000.
πΈ Screenshots
1. Questions List

Browse questions posted by users.
2. Creating a Question

Post your question and specify the bounty.
3. Question Details

View question details and submit answers.
Useful Links
π€ Contributing
We welcome contributions to improve DoubtEarn! π
- Fork the repository.
- Create a new branch.
- Implement your changes and commit them.
- Open a pull request for review.
β¨ Future Enhancements
- Rating System: Users can rate questions and answers.
- Search and Filter: Find questions based on topics or bounties.
- Multi-Currency Support: Allow bounties in other cryptocurrencies.
- Mobile App: Build a mobile-friendly version for broader accessibility.
π§ Support
Have questions or need assistance?
Feel free to reach out at kunalgola9930@gmail.com or open an issue in the repository.
Built with β€οΈ and powered by the BNB Smart Chain!