Documentation
Overview
FairGate is a reputation-gated platform built on Solana that uses FairScale's reputation infrastructure to determine user access tiers, feature gating, and allocation weights. Your FairScore — derived from on-chain activity and social signals — is the key to unlocking platform capabilities.
Architecture
Browser (Wallet) → Next.js Frontend → API Routes → FairScale API
Stack: Next.js 16, React 19, Solana Wallet Adapter, Tailwind v4
FairScore Integration
FairGate uses all three FairScale API endpoints:
GET /scoreFull score with tier, badges, and on-chain feature breakdown. Used on the Dashboard.
GET /fairScoreQuick numeric score. Used for gate checks to determine feature access.
GET /walletScoreWallet-only score excluding social. Available for pure on-chain analysis.
Tier System
| Tier | Score Range | Access |
|---|---|---|
| Bronze | 0–199 | Basic profile, public leaderboard |
| Silver | 200–399 | Early access features, community channels |
| Gold | 400–599 | Governance voting, premium analytics |
| Platinum | 600+ | VIP allocations, priority support, all features |
Gate API
Internal API route for checking feature access:
GET /api/gate?wallet=ADDRESS&feature=FEATURE_ID
Features: early-access, premium-features, governance, vip-allocation
Returns: { score, tier, requiredTier, hasAccess, feature }
Setup
1. Clone the repo
2. cp .env.example .env.local
3. Add your FAIRSCALE_API_KEY
4. npm install && npm run dev