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 /score

Full score with tier, badges, and on-chain feature breakdown. Used on the Dashboard.

GET /fairScore

Quick numeric score. Used for gate checks to determine feature access.

GET /walletScore

Wallet-only score excluding social. Available for pure on-chain analysis.

Tier System

TierScore RangeAccess
Bronze0–199Basic profile, public leaderboard
Silver200–399Early access features, community channels
Gold400–599Governance voting, premium analytics
Platinum600+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