x402 market pulse
GET /api/x402-market-pulseLive cross-provider x402 market sentiment. topProviders: the top x402 sellers ecosystem-wide, ranked by REAL on-chain activity (Agent402 included and flagged isSelf:true). Send GET /api/x402-market-pulse with no required fields (2 optional) and pay $0.001 per call over x402 or MPP, or call it free by solving a proof-of-work challenge. It returns a JSON object with asOf, window, sortedBy, ecosystem, topProviders and 1 more.
Pick the lens with sort: 'usd' (revenue, default - whale-skewable), 'buyers' (distinct paying wallets - broadest adoption/reach), or 'calls' (raw volume). Every row carries all metrics plus callsPerBuyer (intensity), so revenue and actual ecosystem usage are both visible. topToolCategories: the tool-category supply mix the whole market offers (from every indexed seller's manifest). Per-tool purchase counts are not on-chain, so demand is provider-level - the honest whole-market read.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
top | integer | no | How many top providers to return (1-50, default 10). Agent402's own row is always included at its true rank even if it falls outside this many. The example sends 10. |
sort | string (one of: usd, buyers, calls) | no | Ranking lens: usd=revenue (default), buyers=distinct paying wallets (reach), calls=raw volume One of usd, buyers, calls. |
Free call, no wallet
This tool runs free with proof of work: fetch a challenge, solve the sha256 puzzle (16 leading zero bits, a fraction of a second of CPU), and resend with the X-Pow-Solution header. JavaScript:
import { createHash } from "node:crypto";
const lz = (b) => { let t = 0; for (const x of b) { if (!x) { t += 8; continue; } t += Math.clz32(x) - 24; break; } return t; };
const c = await (await fetch("https://agent402.tools/api/pow/challenge?slug=x402-market-pulse")).json();
let n = 0;
while (lz(createHash("sha256").update(c.challenge + ":" + n).digest()) < c.difficulty) n++;
await fetch("https://agent402.tools/api/x402-market-pulse?top=10&sort=usd", { method: "GET", headers: { "X-Pow-Solution": c.token + ":" + n } });Python, standard library only:
import hashlib, json, urllib.request
def zero_bits(digest):
n = 0
for b in digest:
if b:
return n + 8 - b.bit_length()
n += 8
return n
c = json.load(urllib.request.urlopen("https://agent402.tools/api/pow/challenge?slug=x402-market-pulse"))
n = 0
while zero_bits(hashlib.sha256(f"{c['challenge']}:{n}".encode()).digest()) < c["difficulty"]:
n += 1
req = urllib.request.Request("https://agent402.tools/api/x402-market-pulse?top=10&sort=usd", method="GET", headers={"X-Pow-Solution": f"{c['token']}:{n}"})
print(json.load(urllib.request.urlopen(req)))Example request
curl -i "https://agent402.tools/api/x402-market-pulse?top=10&sort=usd"
Without payment this returns HTTP 402 Payment Required with the exact price for x402-market-pulse; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
GET /api/x402-market-pulse$0.001 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"asOf": "2026-07-12T00:00:00.000Z",
"window": "last 24h",
"sortedBy": "usd",
"ecosystem": {
"sellersIndexed": 1479,
"toolsIndexed": 33779,
"toolsCapPerSeller": 50
},
"topProviders": [
{
"rank": 1,
"provider": "seller.example",
"usdSettled": 120.5,
"calls": 10000,
"buyers": 250,
"callsPerBuyer": 40,
"homepage": "https://seller.example"
}
],
"topToolCategories": [
{
"category": "crypto",
"sellersOffering": 446,
"tools": 3353
}
]
}| Field | Type | Always present | In the example |
|---|---|---|---|
asOf | string | no | 2026-07-12T00:00:00.000Z |
window | string | no | last 24h |
sortedBy | string | no | usd |
ecosystem | object | no | 3 fields: sellersIndexed, toolsIndexed, toolsCapPerSeller |
topProviders | array of objects | no | 1 item in the example |
topToolCategories | array of objects | no | 1 item in the example |
From an MCP client
catalog.call {
"slug": "x402-market-pulse",
"params": {
"top": 10,
"sort": "usd"
}
}On the hosted connector at https://agent402.tools/mcp, catalog.call runs x402-market-pulse free (rate-limited, no wallet). Local install: npx -y agent402-mcp@0.17.0.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. Some calls are paid before they run; a failed one can be retried free with the same payment, or is refunded. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Free tier: no outbound network call leaves the server for this tool, so proof-of-work (16 leading zero bits of sha256) pays for it.
- A
POSTwith a JSON body to /api/x402-market-pulse is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.({ maxAmountPerPayment: "$0.001" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/x402-market-pulse?top=10&sort=usd");No wallet yet? Fund a first one with USDC on Base, no ETH needed, or run npx -y agent402-mcp@0.17.0 wallet new to make one on this computer: it stores the key and prints the address and the config, never the key.
Related tools
x402 trending sellers
Momentum radar for the x402 seller ecosystem - which sellers are heating up, graded for wash-trade resistance.
x402 quote
Probe any URL and decode its HTTP 402 payment requirements (price, asset, network, pay-to) into clean JSON - what.
New B20 tokens
Recently deployed B20 tokens on Base: scans the factory's B20Created logs over a block window, locates each new token.
Rate a call you paid for
Tell this server whether a call you paid for delivered what it promised.
My usage (wallet-keyed purchase history)
Your own purchase history, keyed to the wallet that pays for the call - no wallet parameter, no signup: the x402 payment.
Build USDC transfer authorization
Build the EIP-3009 transferWithAuthorization typed data for a gasless USDC transfer.