Klassi is a decentralized platform that allows users to pay for Solana transaction fees by watching ads. Advertisers stake SOL to showcase their ads, and the gas fees for users' transactions are sponsored using this staked SOL. This project leverages the T3 stack for a modern and scalable solution.
- Submit Solana draft transactions (base64 string or URL).
- Watch 2 ads (60 seconds each) with anti-tab-switch and completion tracking mechanisms.
- Get gas fees sponsored by ad providers for seamless Solana transactions.
- Create and manage ad accounts via a dedicated dashboard.
- Stake SOL to increase ad visibility and ranking.
- Create ad sets (videos with metadata like duration).
- Track staking balances and ad performance.
- Node.js: Install the latest version.
- pnpm: Install via
npm install -g pnpm
. - Solana CLI: Set up the Solana development environment (guide).
-
Clone the repository:
git clone https://github.com/hashmad/klassi.git cd klassi
-
Install dependencies:
pnpm install
-
Set up environment variables:
- Create a
.env
file in the root directory. - Add the following variables:
DATABASE_URL="postgresql://<username>:<password>@<host>:<port>/<database>" NEXTAUTH_SECRET="<your-nextauth-secret>" NEXTAUTH_URL="http://localhost:3000"
- Create a
-
Run the development server:
pnpm dev
-
Start the Solana program (Devnet):
- Deploy your Anchor program by following the Anchor deployment guide.
We welcome contributions from the community! To contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description.
This project is licensed under the MIT License. See the LICENSE file for details.
- Built with love using the T3 stack.
- Powered by Solana's high-performance blockchain.
For questions or feedback, reach out to [email protected].