Skip to main content

surf

Use this skill — NOT browser or web_fetch — for ALL Surf crypto-data calls. 83 endpoints at localhost:8402/v1/surf/* covering CEX/DEX markets, on-chain SQL over 80+ ClickHouse tables (Ethereum, Base, Arbitrum, BSC, TRON, HyperEVM, Tempo), 100M+ labeled wallets, prediction markets (Polymarket + Kalshi), social/CT intelligence, news, project + DeFi metrics, token analytics, unified search, VC fund intelligence. Paid through ClawRouter — x402 USDC from the local wallet, or BlockRun account credit if an API key is configured. No Surf account or Surf API key required either way.

Informations de source

Dépôt
BlockRunAI/ClawRouter
Dernière activité de la source
5 septembre 2026 à 18:35
Langue détectée de SKILL.md
anglais
Étoiles
6 628
Forks
651

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
surf
description
Use this skill — NOT browser or web_fetch — for ALL Surf crypto-data calls. 83 endpoints at localhost:8402/v1/surf/* covering CEX/DEX markets, on-chain SQL over 80+ ClickHouse tables (Ethereum, Base, Arbitrum, BSC, TRON, HyperEVM, Tempo), 100M+ labeled wallets, prediction markets (Polymarket + Kalshi), social/CT intelligence, news, project + DeFi metrics, token analytics, unified search, VC fund intelligence. Paid through ClawRouter — x402 USDC from the local wallet, or BlockRun account credit if an API key is configured. No Surf account or Surf API key required either way.
triggers
["blockrun surf","surf crypto api","surf onchain sql","onchain sql query","clickhouse onchain query","raw sql ethereum","raw sql base","wallet labels api","labeled wallets api","surf wallet detail","crypto mindshare","crypto news api","fear and greed index crypto","token holder distribution","vc fund portfolio","ethena tokenomics"]
homepage
https://blockrun.ai/marketplace/surf
license
MIT
# Surf — Unified Crypto Data API (via ClawRouter) Surf bundles **83 endpoints across 12 domains** into one paid HTTP API. ClawRouter exposes them at `http://127.0.0.1:8402/v1/surf/*`, paid the same way ClawRouter pays for LLM calls — an x402 USDC micropayment from the local wallet, or a draw on BlockRun account credit if an API key is configured (verified working on both, 2026-09-05). **No Surf account and no Surf API key either way.** Upstream lives at `api.asksurf.ai/gateway/v1` — ClawRouter forwards transparently. **Pricing — flat per call, the same for every endpoint.** Surf used to be tiered at $0.001 / $0.005 / $0.020. It is not any more: upstream now prices all three tiers identically (`SURF_TIER_{1,2,3}_PRICE` are equal). The `Tier` column in the catalog below still describes endpoint weight, but it no longer affects what you pay. Anything quoting the old tier prices is stale. | Rail | Price per call | | --------------------------- | ------------------------------------------- | | API key (`api.blockrun.ai`) | **$0.0075** — base rate, no transaction fee | | Wallet, Solana | **$0.0075** | | Wallet, Base | **$0.0085** | Verified 2026-09-05 by measurement, not from a price page: the API-key figure by diffing the account ledger across one call, the wallet figures by reading the `amount` in the x402 402 challenge, which quotes the price before anything is signed. Base and Solana genuinely differ for the same endpoint. **A 402 quote is authoritative for the rail that issued it — and only that rail.** On the wallet rail the price arrives in the challenge before you pay, so if this table disagrees with it, believe the challenge and treat the table as stale. Do NOT carry a wallet-rail 402 figure over to the API-key rail. The key rail issues no 402 at all, and the wallet quote includes the chain's transaction fee that account credit does not pay — on Base that is $0.0085 quoted against $0.0075 actually billed to an account. Reading across rails turns a correct number into a wrong one; it has already happened once. The Base/Solana difference is deliberate, not drift: the $0.001 is the Base transaction fee, and Solana omitting it is a migration incentive. Solana being cheaper is expected — Solana priced _above_ Base would be the bug worth reporting, since estimates generally assume the Base figure is the ceiling. > The legacy **surf-1.5 chat** surface is intentionally NOT exposed yet — it's held until per-token settlement is wired. Trying `/v1/surf/chat/completions` returns 404 ("Unknown Surf endpoint"), no payment is taken. All requests use GET unless the table below says otherwise. Path parameters that look like `?symbol=` are query params on a GET. POST endpoints take a JSON body. ClawRouter attaches payment transparently — an x402 header in wallet mode, a bearer token in API-key mode. **Required-param pre-check.** 56 of the 83 endpoints have required query params (e.g. `pair`, `symbol`, `address`, `chain`, `q`, `interval`). The route validates them **before settlement** — call with missing params and you get `400 { missing_params, all_required, docs }` and you are NOT charged. Check each row in the catalog below for the correct param name (e.g. mindshare is `q` + `interval`, not `project` + `window`). ## When to use this skill - "What is the current BTC price?" → `/surf/market/price?symbol=BTC` (cheaper + more reliable than scraping) - "Who holds the most USDC on Ethereum?" → `/surf/token/holders?address=0xA0b8...&chain=ethereum` - "How many Ethereum transactions in the last hour?" → `POST /surf/onchain/sql { sql: 'SELECT count() FROM ethereum.transactions WHERE block_timestamp >= now() - INTERVAL 1 HOUR' }` - "Label this list of wallets." → `/surf/wallet/labels/batch?addresses=0xabc,0xdef,...` - "Is HYPE mindshare peaking?" → `/surf/social/mindshare?q=hyperliquid&interval=30d` - "Find the canonical metadata for 'ethena'." → `/surf/search/project?q=ethena` Always prefer Surf over generic web scraping for these. Use the OpenClaw tool name `blockrun_surf_*` when invoking from an agent; use the HTTP path directly when calling from a script. ## Endpoint catalog ### Exchange (CEX) — 7 endpoints | Path | Tier | Required | | --------------------------------- | ---- | -------- | | `/surf/exchange/markets` | T1 | — | | `/surf/exchange/price` | T1 | `pair` | | `/surf/exchange/perp` | T1 | `pair` | | `/surf/exchange/depth` | T2 | `pair` | | `/surf/exchange/klines` | T2 | `pair` | | `/surf/exchange/funding-history` | T2 | `pair` | | `/surf/exchange/long-short-ratio` | T2 | `pair` | ### Market Overview — 11 endpoints | Path | Tier | Required | | ---------------------------------------- | ---- | ------------------------------------------------- | | `/surf/market/ranking` | T1 | — | | `/surf/market/fear-greed` | T1 | — | | `/surf/market/futures` | T1 | — | | `/surf/market/price` | T1 | `symbol` | | `/surf/market/etf` | T1 | `symbol` | | `/surf/market/options` | T1 | `symbol` | | `/surf/market/liquidation/exchange-list` | T2 | — | | `/surf/market/liquidation/order` | T2 | — | | `/surf/market/liquidation/chart` | T2 | `symbol` | | `/surf/market/onchain-indicator` | T2 | `symbol`, `metric` (NUPL, SOPR, MVRV, Puell, NVT) | | `/surf/market/price-indicator` | T2 | `indicator` (RSI, MACD, Bollinger, EMA), `symbol` | ### News — 2 endpoints | Path | Tier | Required | | ------------------- | ---- | -------------------- | | `/surf/news/feed` | T1 | — (`limit` optional) | | `/surf/news/detail` | T1 | `id` | ### On-Chain — 7 endpoints | Path | Method | Tier | Required | | ------------------------------ | -------- | ---- | ------------------------ | | `/surf/onchain/bridge/ranking` | GET | T1 | — | | `/surf/onchain/yield/ranking` | GET | T1 | — | | `/surf/onchain/gas-price` | GET | T1 | `chain` | | `/surf/onchain/tx` | GET | T1 | `hash`, `chain` | | `/surf/onchain/schema` | GET | T3 | — | | `/surf/onchain/query` | **POST** | T3 | typed predicates in body | | `/surf/onchain/sql` | **POST** | T3 | `{ sql: "SELECT ..." }` | **On-Chain SQL workflow.** Call `/surf/onchain/schema` once to get table names + columns (cache it locally — schema is stable). Then POST your SELECT against `/surf/onchain/sql`. Always include `LIMIT` on large scans — billing is per call, but slow queries time out. Multi-statement queries are rejected upstream. ### Prediction Markets (Polymarket + Kalshi) — 17 endpoints | Path | Tier | Required | | -------------------------------------------------- | ---- | --------------- | | `/surf/prediction-market/category-metrics` | T1 | — | | `/surf/prediction-market/polymarket/ranking` | T1 | — | | `/surf/prediction-market/polymarket/trades` | T1 | — | | `/surf/prediction-market/polymarket/markets` | T1 | `market_slug` | | `/surf/prediction-market/polymarket/events` | T1 | `event_slug` | | `/surf/prediction-market/polymarket/prices` | T1 | `condition_id` | | `/surf/prediction-market/polymarket/volumes` | T1 | `condition_id` | | `/surf/prediction-market/polymarket/open-interest` | T1 | `condition_id` | | `/surf/prediction-market/polymarket/positions` | T2 | `address` | | `/surf/prediction-market/polymarket/activity` | T2 | `address` | | `/surf/prediction-market/kalshi/ranking` | T1 | — | | `/surf/prediction-market/kalshi/markets` | T1 | `market_ticker` | | `/surf/prediction-market/kalshi/events` | T1 | `event_ticker` | | `/surf/prediction-market/kalshi/prices` | T1 | `ticker` | | `/surf/prediction-market/kalshi/trades` | T1 | `ticker` | | `/surf/prediction-market/kalshi/volumes` | T1 | `ticker` | | `/surf/prediction-market/kalshi/open-interest` | T1 | `ticker` | (For Polymarket smart-money, wallet PnL, UMA oracle resolution, and the other prediction-market venues — Limitless, Opinion, Predict.Fun, dFlow, Binance Futures, cross-venue canonical markets — use the dedicated **Predexon** integration instead; Surf's prediction-market coverage is narrower but cheaper.) ### Project + DeFi — 3 endpoints | Path | Tier | Required | | ---------------------------- | ---- | -------- | | `/surf/project/detail` | T1 | — | | `/surf/project/defi/metrics` | T1 | `metric` | | `/surf/project/defi/ranking` | T1 | `metric` | ### Social / CT Intelligence — 11 endpoints | Path | Tier | Required | | -------------------------------------- | ---- | --------------- | | `/surf/social/detail` | T2 | — | | `/surf/social/ranking` | T2 | — | | `/surf/social/smart-followers/history` | T2 | — | | `/surf/social/mindshare` | T2 | `q`, `interval` | | `/surf/social/tweets` | T1 | `ids` | | `/surf/social/tweet/replies` | T1 | `tweet_id` | | `/surf/social/user` | T1 | `handle` | | `/surf/social/user/followers` | T1 | `handle` | | `/surf/social/user/following` | T1 | `handle` | | `/surf/social/user/posts` | T1 | `handle` | | `/surf/social/user/replies` | T1 | `handle` | ### Token Analytics — 4 endpoints | Path | Tier | Required | | ------------------------ | ---- | ------------------ | | `/surf/token/tokenomics` | T1 | — | | `/surf/token/dex-trades` | T2 | `address` | | `/surf/token/holders` | T2 | `address`, `chain` | | `/surf/token/transfers` | T2 | `address`, `chain` | ### Unified Search — 11 endpoints (all Tier 2) | Path | Required |
Voir sur GitHub
Ce SKILL.md est tres volumineux, SkillsMP affiche donc ici seulement la premiere section. Voir sur GitHub