TribFi Protocol Documentation • Base Mainnet

TribFi Protocol Whitepaper

The decentralized architecture for fair-launch community tokens, zero-rug locked liquidity, and lifetime creator rewards on Base. Built with fixed 1 Billion token supplies, 5% anti-snipe limits, and permanent non-custodial smart contracts.

Section 17 • Developer Reference, Security & Legal
~6 min read•17 of 20

API & Developer Hub: Public REST v1, WebSockets, SDK & Rate Limits

High-performance data APIs, real-time WebSocket feeds, API key issuance, and SDK clients

1. Public REST v1 API Endpoints

TribFi provides high-throughput REST APIs for developers, algorithmic trading bots, analytics dashboards, and Discord bots:

GET /api/v1/statsGlobal volume, TVL, and 24h trade fees
GET /api/v1/tokensLive token telemetry and curve progress
GET /api/v1/communitiesTribe rooms, stats, and member activity
GET /api/v1/pairsAMM pairs and Uniswap V2 LP reserves

2. Real-Time WebSocket Feeds

Stream real-time price ticks, swap transactions, chat drops, and token rain events via WebSocket connection to wss://tribfi.fun/ws.

3. Developer Key Issuance & Rate Limiting

  • Public: 10 requests per second.
  • Developer Keys: 50 requests per second with HMAC signing. Generated via the Developer Hub.
  • Enterprise Tier: 200+ requests per second with dedicated Redis rate-limiting instances.

4. TypeScript & Python SDK Integration

// TypeScript SDK Quickstart
import { TribFiClient } from "@tribfi/sdk";

const client = new TribFiClient({ apiKey: "YOUR_API_KEY" });
const tokens = await client.tokens.list({ sort: "volume24h", order: "desc" });
console.log("Top token:", tokens[0].symbol, "Reserve:", tokens[0].reserveEth);