Ask Base anything in one paid call
agent402.tools/api/skill/onchain-analyst
Ask Base anything in one paid call: your SQL runs against indexed, DECODED chain data (events with parsed parameters, transactions, blocks, user-ops) with the live schema alongside - no indexer, no RPC archaeology. Onchain analyst (SQL over Base) skill pack: one x402 payment runs 3 underlying tools (onchain-sql-schema, onchain-sql, stats-summary); partial-success per step.
POST
https://agent402.tools/api/skill/onchain-analystUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/skill/onchain-analyst", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"sql":"SELECT COUNT(*) AS blocks FROM base.blocks WHERE block_number > 32000000"}),
});
console.log(await res.json());Example input
{
"sql": "SELECT COUNT(*) AS blocks FROM base.blocks WHERE block_number > 32000000"
}Price changes
- Nov 25, 20260.03 → 0.02
- Nov 25, 20260.02 → 0.03
