@blockrun/clawrouter 0.12.270 → 0.12.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,7 +209,8 @@ Per-request alternative: send `x-clawrouter-debug: false` on the request.
209
209
 
210
210
  ### CLAWROUTER_SOLANA_RPC_URL
211
211
 
212
- Override the Solana RPC endpoint used for USDC balance checks (Solana chain only):
212
+ Override the Solana RPC endpoint used for USDC balance checks **and for signing
213
+ payments** (Solana chain only):
213
214
 
214
215
  ```bash
215
216
  export CLAWROUTER_SOLANA_RPC_URL=https://your-rpc-provider.com
@@ -218,6 +219,21 @@ openclaw gateway restart
218
219
 
219
220
  Public RPC may rate-limit on heavy usage. Use a dedicated RPC for production.
220
221
 
222
+ Unlike Base, where the EIP-3009 signature is produced entirely offline, signing
223
+ a Solana payment reads the payment asset's mint account over RPC. A host that
224
+ cannot reach `api.mainnet-beta.solana.com` therefore fails **every** paid Solana
225
+ call with `fetch failed` while `sol.blockrun.ai` itself answers normally. Check
226
+ egress before blaming the gateway:
227
+
228
+ ```bash
229
+ curl -s -m 10 -X POST https://api.mainnet-beta.solana.com \
230
+ -H 'content-type: application/json' \
231
+ -d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",{"encoding":"base64"}]}'
232
+ ```
233
+
234
+ If that hangs or is refused, point this variable at an endpoint the host can
235
+ reach.
236
+
221
237
  ---
222
238
 
223
239
  ## Wallet Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.270",
3
+ "version": "0.12.272",
4
4
  "description": "Smart LLM router — save 84% on inference costs. 76 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,11 +26,38 @@ license: MIT
26
26
 
27
27
  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.
28
28
 
29
- **Pricing tiers (per call):**
30
-
31
- - **Tier 1 — $0.001** — prices, rankings, lists, news, simple reads
32
- - **Tier 2 — $0.005** — orderbooks, candles, search, wallet details, social
33
- - **Tier 3 — $0.020** — on-chain SQL queries, structured queries, schema introspection
29
+ **Pricing — flat per call, the same for every endpoint.**
30
+
31
+ Surf used to be tiered at $0.001 / $0.005 / $0.020. It is not any more: upstream
32
+ now prices all three tiers identically (`SURF_TIER_{1,2,3}_PRICE` are equal). The
33
+ `Tier` column in the catalog below still describes endpoint weight, but it no
34
+ longer affects what you pay. Anything quoting the old tier prices is stale.
35
+
36
+ | Rail | Price per call |
37
+ | --------------------------- | ------------------------------------------- |
38
+ | API key (`api.blockrun.ai`) | **$0.0075** — base rate, no transaction fee |
39
+ | Wallet, Solana | **$0.0075** |
40
+ | Wallet, Base | **$0.0085** |
41
+
42
+ Verified 2026-09-05 by measurement, not from a price page: the API-key figure by
43
+ diffing the account ledger across one call, the wallet figures by reading the
44
+ `amount` in the x402 402 challenge, which quotes the price before anything is
45
+ signed. Base and Solana genuinely differ for the same endpoint.
46
+
47
+ **A 402 quote is authoritative for the rail that issued it — and only that rail.**
48
+ On the wallet rail the price arrives in the challenge before you pay, so if this
49
+ table disagrees with it, believe the challenge and treat the table as stale.
50
+
51
+ Do NOT carry a wallet-rail 402 figure over to the API-key rail. The key rail
52
+ issues no 402 at all, and the wallet quote includes the chain's transaction fee
53
+ that account credit does not pay — on Base that is $0.0085 quoted against
54
+ $0.0075 actually billed to an account. Reading across rails turns a correct
55
+ number into a wrong one; it has already happened once.
56
+
57
+ The Base/Solana difference is deliberate, not drift: the $0.001 is the Base
58
+ transaction fee, and Solana omitting it is a migration incentive. Solana being
59
+ cheaper is expected — Solana priced _above_ Base would be the bug worth
60
+ reporting, since estimates generally assume the Base figure is the ceiling.
34
61
 
35
62
  > 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.
36
63