Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: external project launch tracking data source evaluation (brain 467fbe07)
Adam Eivy7d8c95b69d6d
diff --git a/docs/research/pumpfun-data-sources.md b/docs/research/pumpfun-data-sources.mdnew file mode 100644index 0000000000..e252b9095a--- /dev/null+++ b/docs/research/pumpfun-data-sources.md@@ -0,0 +1,386 @@+# External Project: Data Source Evaluation++**Brain Project**: 467fbe07 — External Project+**Date**: 2026-02-16+**Deadline**: 2026-02-20+**Objective**: Evaluate Helius, Birdeye, and external project APIs for rate limits, auth, and schemas++---++## Executive Summary++Three primary data source categories were evaluated for the External Project:++1. **Helius** — Solana-native RPC/infrastructure with Enhanced APIs, webhooks, and gRPC streaming+2. **Birdeye** — DeFi analytics platform with rich token/price/trade REST APIs+3. **external project Direct + Third-Party Indexers** — external project's own frontend APIs plus Bitquery/bloXroute GraphQL indexers++**Recommendation**: Use Helius (Developer tier, $49/mo) as the primary real-time data source for new token detection and transaction monitoring. Supplement with Birdeye (Starter tier, $99/mo) for enriched token analytics, price history, and holder data. Use external project direct APIs sparingly for metadata not available elsewhere.++---++## 1. Helius++### Overview+Solana-native RPC and API platform. Best-in-class for raw blockchain data, real-time streaming, and transaction parsing on Solana.++### Authentication+- API key appended as query parameter: `?api-key=YOUR_KEY`+- Keys managed via [Helius Dashboard](https://dashboard.helius.dev)+- SDK available: `@helius-labs/helius-sdk` (npm)++### Pricing & Rate Limits++| Plan | Cost/mo | Credits/mo | RPC RPS | DAS API RPS | Enhanced API RPS | WebSockets |+|------|---------|-----------|---------|-------------|-----------------|------------|+| Free | $0 | 1M | 10 | 2 | 2 | Standard only |+| Developer | $49 | 10M | 50 | 10 | 10 | Standard only |+| Business | $499 | 100M | 200 | 50 | 50 | Enhanced |+| Professional | $999 | 200M | 500 | 100 | 100 | Enhanced + LaserStream |++### Key APIs for external project Tracking++**Enhanced Transactions API**+- Parses raw Solana transactions into human-readable format+- Decodes instruction data, token transfers, balance changes+- Response includes: `accountKeys`, `signature`, `preTokenBalances`, `postTokenBalances`, `logMessages`+- Filter by external project program ID: `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`++**Webhooks**+- Push-based event delivery for on-chain events+- Configurable filters: `TOKEN_MINT`, account-specific, program-specific+- Can monitor external project program for new token creates and trades+- Eliminates polling — server receives events as they happen++**gRPC Streaming (LaserStream)**+- Real-time account and transaction streams+- Filter by program owner for external project bonding curve accounts+- Commitment level: `CONFIRMED`+- Tracks: operation type, user/fee payer, signatures, timestamps, balance changes+- **Note**: Professional plan only for mainnet gRPC++**DAS (Digital Asset Standard) API**+- Token metadata, ownership, and collection queries+- Useful for enriching token data post-detection++### Response Schema (Enhanced Transaction)+```json+{+ "description": "string",+ "type": "SWAP|TOKEN_MINT|TRANSFER|...",+ "source": "PUMP_FUN|RAYDIUM|...",+ "fee": 5000,+ "feePayer": "pubkey",+ "signature": "txid",+ "timestamp": 1700000000,+ "nativeTransfers": [{ "fromUserAccount": "...", "toUserAccount": "...", "amount": 1000000 }],+ "tokenTransfers": [{ "fromTokenAccount": "...", "toTokenAccount": "...", "tokenAmount": 1000, "mint": "..." }],+ "accountData": [{ "account": "...", "nativeBalanceChange": -5000, "tokenBalanceChanges": [...] }]+}+```++### Strengths+- Lowest latency for new token detection (webhooks + gRPC)+- Native external project program filtering+- Enhanced transaction parsing reduces client-side logic+- Staked connections on all paid plans for high tx success+- Well-documented SDK++### Limitations+- gRPC/LaserStream requires Professional ($999/mo) for mainnet+- Enhanced WebSocket metering (3 credits/0.1MB) for new users+- Raw blockchain data — no pre-built analytics (no OHLCV, no market cap aggregation)++---++## 2. Birdeye++### Overview+DeFi analytics platform with comprehensive REST APIs for token data, pricing, trades, OHLCV, and wallet analytics. Covers Solana and 30+ other chains.++### Authentication+- API key via header: `X-API-KEY: YOUR_KEY`+- Keys managed via [Birdeye Dashboard](https://bds.birdeye.so)+- Optional `chain` parameter defaults to Solana++### Pricing & Rate Limits++| Plan | Cost/mo | Compute Units | Global RPS | WebSockets |+|------|---------|--------------|-----------|------------|+| Standard (Free) | $0 | 30K | 1 | No |+| Lite | $39 | 1.5M | 15 | No |+| Starter | $99 | 5M | 15 | No |+| Premium | $199 | 15M | 50 | No |+| Premium Plus | $250 | 20M | 50 | 500 conns |+| Business (B-05) | $499 | 50M | 100 | 2000 conns |+| Business | $699 | 100M | 100 | Yes |++**Per-Endpoint Rate Limits** (within global account limit):++| Endpoint | Path | Max RPS |+|----------|------|---------|+| Price (single) | `/defi/price` | 300 |+| Price (multi) | `/defi/multi_price` | 300 |+| Price (historical) | `/defi/history_price` | 100 |+| Token Overview | `/defi/token_overview` | 300 |+| Token Security | `/defi/token_security` | 150 |+| Token List v3 | `/defi/v3/token/list` | 100 |+| Trades (token) | `/defi/txs/token` | 100 |+| Trades (pair) | `/defi/txs/pair` | 100 |+| OHLCV | `/defi/ohlcv` | 100 |+| Wallet Portfolio | varies | 30 rpm |++### Key APIs for external project Tracking++**Token Overview** (`/defi/token_overview`)+- Market cap, liquidity, volume, price change, holder count+- Single call returns comprehensive token analytics++**Token Security** (`/defi/token_security`)+- Rug-pull risk indicators, mint authority, freeze authority+- Critical for filtering high-risk launches++**Price APIs** (`/defi/price`, `/defi/history_price`)+- Real-time and historical pricing in SOL/USD+- Multi-token batch pricing supported++**Trade APIs** (`/defi/txs/token`)+- Recent trades with buy/sell side, amounts, timestamps+- Pair-level trade history++**OHLCV** (`/defi/ohlcv`)+- Candlestick data at configurable intervals+- Useful for charting and trend detection++**Token List** (`/defi/v3/token/list`)+- Sortable by volume, market cap, price change+- Filter by timeframe for trending tokens++### Response Schema (Token Overview)+```json+{+ "address": "mint_address",+ "name": "Token Name",+ "symbol": "TKN",+ "decimals": 9,+ "price": 0.00123,+ "priceChange24hPercent": 150.5,+ "volume24h": 500000,+ "marketCap": 1200000,+ "liquidity": 50000,+ "holder": 2500,+ "supply": 1000000000,+ "logoURI": "https://...",+ "extensions": { "website": "...", "twitter": "..." }+}+```++### Strengths+- Richest analytics out of the box (market cap, liquidity, security scores)+- Pre-computed OHLCV eliminates aggregation logic+- Token security endpoint critical for filtering scams+- Batch pricing for monitoring multiple tokens+- Clean REST API, easy to integrate++### Limitations+- No push-based event delivery (polling only on lower tiers)+- WebSocket access requires Premium Plus ($250/mo) minimum+- New token detection has inherent latency — tokens must be indexed first+- Wallet endpoints severely rate-limited (30 rpm)+- Compute unit costs can escalate with heavy usage++---++## 3. external project Direct APIs + Third-Party Indexers++### 3a. external project Frontend API (Direct)++### Overview+external project exposes several undocumented/semi-official API services. These are reverse-engineered from the frontend and may change without notice.++### Base URLs++| Service | URL | Purpose |+|---------|-----|---------|+| Frontend API v3 | `https://frontend-api-v3.external project` | Token data, listings |+| Advanced Analytics v2 | `https://advanced-api-v2.external project` | Analytics, rankings |+| Market API | `https://market-api.external project` | Market data |+| Profile API | `https://profile-api.external project` | User profiles |+| Swap API | `https://swap-api.external project` | Token swaps |+| Volatility API v2 | `https://volatility-api-v2.external project` | Volatility metrics |++### Authentication+- JWT Bearer token: `Authorization: Bearer <JWT>`+- Required headers: `Origin: https://external project`, `Accept: application/json`+- Rate limit headers in responses: `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset`++### Key Capabilities+- **483 documented endpoints** across all API versions+- Token creation details, bonding curve status, graduation tracking+- Direct access to external project-specific metadata not available elsewhere+- Creator profiles and reputation data++### Limitations+- **Undocumented/unofficial** — endpoints can break without warning+- JWT auth requires mimicking browser authentication flow+- No published rate limit numbers (only HTTP 429 responses)+- No SLA or support+- Legal gray area for automated access++---++### 3b. Bitquery (GraphQL Indexer)++### Overview+Third-party GraphQL indexer with dedicated external project query support. Real-time subscriptions for new tokens, trades, and bonding curve events.++### Authentication+- API key via header or query parameter+- Free tier available via [Bitquery IDE](https://ide.bitquery.io)++### Pricing++| Plan | Cost | Points | RPS | Streams |+|------|------|--------|-----|---------|+| Developer (Free) | $0 | 1,000 | 10 req/min | 2 |+| Commercial | Custom | Custom | Custom | Custom |++### Key APIs for external project Tracking+- **Token creation subscriptions** — real-time stream of new external project launches+- **Trade subscriptions** — buy/sell with amounts and prices+- **Bonding curve status** — track graduation progress+- **ATH market cap** — all-time high calculations+- **Top traders/holders** — wallet analytics+- **Creator reputation** — all tokens by a creator address++### GraphQL Query Example (New Token Subscription)+```graphql+subscription {+ Solana {+ Instructions(+ where: {+ Instruction: {+ Program: {+ Address: { is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" }+ }+ }+ Transaction: { Result: { Success: true } }+ }+ ) {+ Transaction { Signature }+ Instruction {+ Accounts { Address Token { Mint Owner } }+ Program { Method }+ }+ Block { Time }+ }+ }+}+```++### Limitations+- Free tier extremely limited (1,000 points, 10 req/min, 2 streams)+- Commercial pricing requires sales contact — no self-serve+- Points-based billing is opaque — hard to predict costs+- GraphQL complexity can lead to unexpected point consumption++---++### 3c. bloXroute (Streaming)++### Overview+Specializes in low-latency Solana data streaming with dedicated external project channels.++### Key Endpoints+- `GetPumpFunNewTokensStream` — real-time new token events+- `GetPumpFunSwapsStream` — real-time swap monitoring+- `GetPumpFunAMMSwapsStream` — AMM swap events post-graduation++### Limitations+- Pricing not publicly documented+- Primarily targets high-frequency trading use cases+- Overkill for analytics/tracking use case++---++## Comparison Matrix++| Criteria | Helius | Birdeye | external project Direct | Bitquery |+|----------|--------|---------|-----------------|----------|+| **New token detection latency** | ~1s (webhook/gRPC) | 5-30s (polling) | Unknown | ~2-5s (subscription) |+| **Real-time streaming** | gRPC + WebSocket | WebSocket ($250+) | No | GraphQL subscriptions |+| **Token analytics** | Raw tx data only | Rich (mcap, vol, security) | Basic metadata | Rich (GraphQL) |+| **OHLCV / Charts** | No | Yes | No | Yes |+| **Security scoring** | No | Yes | No | Partial |+| **Holder data** | Via DAS API | Via token overview | No | Yes (top 10) |+| **Auth complexity** | API key (simple) | API key (simple) | JWT (complex) | API key (simple) |+| **Stability / SLA** | Production-grade | Production-grade | No SLA, may break | Production-grade |+| **Min. useful tier** | Developer ($49) | Starter ($99) | Free (risky) | Commercial ($$?) |+| **external project specific** | Program filter | General DeFi | Native | Dedicated queries |+| **SDK / DX** | Excellent (npm SDK) | REST (straightforward) | None | GraphQL IDE |++---++## Recommended Architecture++```+ +------------------++ | Helius ($49) |+ | Webhooks/WS |+ +--------+---------++ |+ New token events+ Raw transactions+ |+ v+ +------------------++ | Tracking Engine |+ | (PortOS app) |+ +--------+---------++ |+ Token enrichment+ Analytics queries+ |+ v+ +------------------++ | Birdeye ($99) |+ | REST API |+ +------------------++ - Market cap, volume+ - Security scores+ - OHLCV data+ - Holder counts+```++### Phase 1 (MVP): Helius Developer ($49/mo)+- Webhook listening for external project program transactions+- Detect new token creates via `TOKEN_MINT` events+- Parse creator address, token mint, initial supply+- Store in PortOS data layer++### Phase 2 (Enrichment): Add Birdeye Starter ($99/mo)+- Enrich detected tokens with market data+- Token security scoring for scam filtering+- OHLCV data for trend detection+- Track high-performing tokens over time++### Phase 3 (Analytics): Evaluate Bitquery or external project direct+- Creator reputation analysis+- Sniper account inventory+- Launch prediction model inputs++**Total estimated cost**: $148/mo for Phase 1+2++---++## Next Steps++1. **Create Helius account** and generate API key+2. **Set up webhook** for external project program (`6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P`)+3. **Create Birdeye account** and generate API key+4. **Build proof-of-concept** endpoint in PortOS that:+ - Receives Helius webhook events+ - Extracts new token mint + creator+ - Enriches via Birdeye token overview+ - Persists to `data/external project/tokens.json`+5. **Validate latency** — measure time from on-chain creation to detection