SolFlight is a decentralized flight prediction market built on Solana.
Users can create prediction markets around real-world flight outcomes such as delays, cancellations, or on-time arrivals. Other users can participate by placing predictions, and markets are resolved using live flight data fetched through the AeroDataBox API.
https://www.loom.com/share/ff3bc4b17b1d464aa9019f80ce4b8754
- Create flight prediction markets
- Predict flight outcomes
- USDC SPL token settlement
- Solana wallet integration
- Real-time flight data integration using AeroDataBox API
- Solana Actions and Blinks support
- Devnet support by default
- Solana
- Anchor
- Rust
- Next.js
- TypeScript
- TailwindCSS
- pnpm
- TurboRepo
- AeroDataBox API
SolFlight/
├── apps/
│ ├── program/ # Anchor smart contract
│ ├── resolver/ # Resolver backend
│ └── web/ # Next.js frontendMake sure you have the following installed:
- Node.js
- pnpm
- Rust
- Solana CLI
- Anchor Framework
Clone the repository:
git clone https://github.com/heymustafa02/SolFlight.git
cd SolFlightInstall dependencies:
pnpm installCopy the example environment file:
cp apps/web/.env.example apps/web/.envCopy the example environment file:
cp apps/resolver/.env.example apps/resolver/.envUpdate the environment variables with your own values where required.
Start all services:
pnpm run devNavigate to the program directory:
cd apps/programBuild the Anchor program:
anchor buildRun tests:
anchor test- Phantom
- Backpack
- Compatible Solana wallets
Markets are resolved using real-world flight data fetched through the AeroDataBox API.
The resolver backend is responsible for:
- Fetching live flight data
- Determining market outcomes
- Executing settlement transactions on-chain
The project uses Solana Devnet by default.