CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

63

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./skills/surf/SKILL.md
SKILL.md
Quality
Evals
Security

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.

RailPrice 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

PathTierRequired
/surf/exchange/marketsT1—
/surf/exchange/priceT1pair
/surf/exchange/perpT1pair
/surf/exchange/depthT2pair
/surf/exchange/klinesT2pair
/surf/exchange/funding-historyT2pair
/surf/exchange/long-short-ratioT2pair

Market Overview — 11 endpoints

PathTierRequired
/surf/market/rankingT1—
/surf/market/fear-greedT1—
/surf/market/futuresT1—
/surf/market/priceT1symbol
/surf/market/etfT1symbol
/surf/market/optionsT1symbol
/surf/market/liquidation/exchange-listT2—
/surf/market/liquidation/orderT2—
/surf/market/liquidation/chartT2symbol
/surf/market/onchain-indicatorT2symbol, metric (NUPL, SOPR, MVRV, Puell, NVT)
/surf/market/price-indicatorT2indicator (RSI, MACD, Bollinger, EMA), symbol

News — 2 endpoints

PathTierRequired
/surf/news/feedT1— (limit optional)
/surf/news/detailT1id

On-Chain — 7 endpoints

PathMethodTierRequired
/surf/onchain/bridge/rankingGETT1—
/surf/onchain/yield/rankingGETT1—
/surf/onchain/gas-priceGETT1chain
/surf/onchain/txGETT1hash, chain
/surf/onchain/schemaGETT3—
/surf/onchain/queryPOSTT3typed predicates in body
/surf/onchain/sqlPOSTT3{ 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

PathTierRequired
/surf/prediction-market/category-metricsT1—
/surf/prediction-market/polymarket/rankingT1—
/surf/prediction-market/polymarket/tradesT1—
/surf/prediction-market/polymarket/marketsT1market_slug
/surf/prediction-market/polymarket/eventsT1event_slug
/surf/prediction-market/polymarket/pricesT1condition_id
/surf/prediction-market/polymarket/volumesT1condition_id
/surf/prediction-market/polymarket/open-interestT1condition_id
/surf/prediction-market/polymarket/positionsT2address
/surf/prediction-market/polymarket/activityT2address
/surf/prediction-market/kalshi/rankingT1—
/surf/prediction-market/kalshi/marketsT1market_ticker
/surf/prediction-market/kalshi/eventsT1event_ticker
/surf/prediction-market/kalshi/pricesT1ticker
/surf/prediction-market/kalshi/tradesT1ticker
/surf/prediction-market/kalshi/volumesT1ticker
/surf/prediction-market/kalshi/open-interestT1ticker

(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

PathTierRequired
/surf/project/detailT1—
/surf/project/defi/metricsT1metric
/surf/project/defi/rankingT1metric

Social / CT Intelligence — 11 endpoints

PathTierRequired
/surf/social/detailT2—
/surf/social/rankingT2—
/surf/social/smart-followers/historyT2—
/surf/social/mindshareT2q, interval
/surf/social/tweetsT1ids
/surf/social/tweet/repliesT1tweet_id
/surf/social/userT1handle
/surf/social/user/followersT1handle
/surf/social/user/followingT1handle
/surf/social/user/postsT1handle
/surf/social/user/repliesT1handle

Token Analytics — 4 endpoints

PathTierRequired
/surf/token/tokenomicsT1—
/surf/token/dex-tradesT2address
/surf/token/holdersT2address, chain
/surf/token/transfersT2address, chain

Unified Search — 11 endpoints (all Tier 2)

PathRequired
/surf/search/airdrop—
/surf/search/events—
/surf/search/kalshi—
/surf/search/polymarket—
/surf/search/webq
/surf/search/projectq
/surf/search/newsq
/surf/search/walletq
/surf/search/fundq
/surf/search/social/peopleq
/surf/search/social/postsq

VC Fund Intelligence — 3 endpoints

PathTierRequired
/surf/fund/detailT1—
/surf/fund/portfolioT1—
/surf/fund/rankingT1metric

Wallet Intelligence — 6 endpoints (all Tier 2)

PathRequired
/surf/wallet/detailaddress
/surf/wallet/historyaddress
/surf/wallet/net-worthaddress
/surf/wallet/transfersaddress
/surf/wallet/protocolsaddress
/surf/wallet/labels/batchaddresses (comma-separated, ≤200)

Web — 1 endpoint

PathTierRequired
/surf/web/fetchT2url

Example flows

1. "Who is wallet X and what do they hold?"

curl 'http://127.0.0.1:8402/v1/surf/wallet/detail?address=vitalik.eth'

If the response says they're a smart-money wallet, follow up with /surf/wallet/protocols?address=... for protocol breakdown or /surf/wallet/history?address=... for the activity timeline.

2. "How concentrated is supply for token Y?"

curl 'http://127.0.0.1:8402/v1/surf/token/holders?address=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&limit=25'

Combine the top-25 balances with their wallet labels — /surf/wallet/labels/batch?addresses=... — to distinguish "concentration in CEX hot wallets" (normal) from "concentration in dev team multisig" (riskier).

3. "Run a custom on-chain query."

# Step 1 — fetch schema (do this once, then cache locally)
curl 'http://127.0.0.1:8402/v1/surf/onchain/schema'

# Step 2 — run the SQL
curl -X POST 'http://127.0.0.1:8402/v1/surf/onchain/sql' \
  -H 'content-type: application/json' \
  -d '{"sql":"SELECT to_address, count() AS hits FROM ethereum.transactions WHERE block_timestamp >= now() - INTERVAL 1 DAY GROUP BY to_address ORDER BY hits DESC LIMIT 20"}'

Cost: 1 × $0.02 (schema, cached) + 1 × $0.02 (the SQL query) = $0.04 total for a custom 24-hour ranking that would otherwise need an indexer.

4. "Is project Z trending?"

# Resolve the canonical slug first (search uses q, not query)
curl 'http://127.0.0.1:8402/v1/surf/search/project?q=ethena'

# Then pull mindshare (mindshare uses q + interval)
curl 'http://127.0.0.1:8402/v1/surf/social/mindshare?q=ethena&interval=30d'

How calls are paid

ClawRouter intercepts every /v1/surf/* request through proxyPaidApiRequest. The local x402 wallet auto-signs the USDC micropayment; the agent never sees the payment flow. Telemetry tags Surf calls with tier: SURF so clawrouter stats separates them from LLM, partner, and phone usage.

No typed blockrun_surf_* tools are registered — by design. Each new BlockRun-marketplace API ships as a skill (this file) plus a one-line namespace addition to ClawRouter's proxy whitelist, so adding endpoint #85 requires zero ClawRouter release.

Repository
BlockRunAI/ClawRouter
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.