PumpRobin Trading API

Public HTTP endpoints for listing indexed launches and reading platform analytics — the same surface the PumpRobin UI uses. Token creation happens on-chain; the API never accepts an unpaid registry write.

Introduction

Welcome to the PumpRobin.fun API docs for builders. Use these routes to index launches, mirror Uniswap activity, or power bots and dashboards on Robinhood Chain.

Base URL (local): http://localhost:3000
Production: https://pumprobin.fun

Inspired by the structure of the Robinhood Crypto Trading API docs — adapted for an open launchpad, not custodial brokerage trading.

Authentication

Public read endpoints (GET /api/tokens, trades, stats, analytics) require no API key.

POST /api/tokens is an indexer, not a mint. Send the txHash of a confirmed PumpRobinFactory.createToken transaction that paid the creation fee and LP seed. Name, symbol, creator, and token address are taken from the on-chain TokenCreated event — unsigned JSON is rejected.

Admin routes (/api/admin/*) use a password session cookie. Set ADMIN_PASSWORD and ADMIN_SESSION_SECRET in env, then POST /api/admin/login.

Unlike Robinhood Crypto's x-api-key / x-signature / x-timestamp Ed25519 scheme, PumpRobin public reads are open; launches and trades settle in your wallet.

Pagination

Robinhood Crypto APIs return cursor pages with next / previous URLs and a results array.

PumpRobin currently returns full collections for tokens and trades. For large datasets, filter with GET /api/trades?token=0x…. Cursor pagination may be added later in the same next / previous style.

// Robinhood-style page shape (reference)
{
  "previous": null,
  "results": [ /* … */ ],
  "next": "https://api.example.com/items/?cursor=…"
}

Rate limiting

Be a good citizen: cache GET responses, avoid tight polling loops, and prefer event-driven updates when indexing. Abuse may result in temporary blocks at the edge.

Error responses

Errors return JSON with an error string and an appropriate HTTP status (400 validation, 401 missing on-chain proof, 404 missing resource, 405 disabled simulation).

{ "error": "Indexing requires txHash from a confirmed PumpRobinFactory.createToken transaction." }

Endpoints

GET/api/tokens

List tokens

Returns PumpRobin launches indexed from confirmed factory transactions, plus recent trades.

Example body / shape

{
  "tokens": [ /* Token[] */ ],
  "trades": [ /* Trade[] */ ],
  "count": 0
}
POST/api/tokens

Index launch

Indexes a token only after verifying a confirmed PumpRobinFactory.createToken transaction. The creation fee and LP seed must be paid in that tx. Unsigned name/symbol/creator posts are rejected.

Example body / shape

{
  "txHash": "0x…",
  "description": "",
  "metadata": { "twitter": "https://x.com/…" }
}
GET/api/trades?token=0x…

List trades

Optional token query filters indexed trades for a single launch.

Example body / shape

{ "trades": [ /* Trade[] */ ] }
POST/api/trades/sync

Index trade

Records a buy or sell after a confirmed on-chain tx (factory, Uniswap router, or FoT seller). Requires txHash. Off-chain simulation is disabled.

Example body / shape

{
  "tokenAddress": "0x…",
  "trader": "0x…",
  "isBuy": true,
  "ethAmount": 0.01,
  "txHash": "0x…"
}
GET/api/platform/stats

Platform stats

Robinhood Chain-wide volume, launches, traders, and graduations.

Example body / shape

{ /* PlatformStats */ }
GET/api/analytics

Analytics series

Time-series volume and graduation data for dashboards.

Example body / shape

{
  "stats": { /* … */ },
  "volumeSeries": [],
  "graduationSeries": []
}

Related