Onchain Query API
Nine live x402 APIs for AI agents: web access, token safety, chain data, search, video, transaction simulation. Pay per call in USDC on Base, no API key.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"pay": "curl -H 'X-Subscription-Key: cwx_...' 'https://chain.cyberwarex.com/gas-compare'",
"price": "$0.002 per call. USDC on Base, no account, no API key, no signup.",
"trust": "https://cyberwarex.com/trust",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x058D0Cc5CC97e61e8A9f38D6d6365bce525921B2",
"amount": "2000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
}
],
"catalog": {
"docs": "https://cyberwarex.com/llms.txt",
"services": "https://cyberwarex.com/.well-known/x402"
},
"featured": {
"url": "https://search.cyberwarex.com/answer?q=YOUR+QUESTION",
"what": "one call answers a question from the live web: it searches, reads the top pages and returns a short answer with the sources it used",
"sample": "https://search.cyberwarex.com/sample",
"cheaper": {
"url": "https://search.cyberwarex.com/search-contents?q=YOUR+QUESTION",
"what": "search plus the readable text of the top pages, you write the answer",
"price_usdc": 0.006
},
"service": "Agent Research",
"try_free": "curl -H 'X-Free-Trial: 1' 'https://search.cyberwarex.com/answer?q=YOUR+QUESTION'",
"use_when": "you need a sourced fact or a quick briefing, not a list of links",
"price_usdc": 0.03
},
"resource": {
"url": "https://chain.cyberwarex.com/gas-compare",
"tags": [
"gas",
"fees",
"multichain",
"evm",
"cheapest-chain"
],
"iconUrl": "https://cyberwarex.com/assets/icon.png",
"mimeType": "application/json",
"description": "Live gas across Base, Ethereum, Arbitrum, Optimism and Polygon in ONE call, sorted cheapest first: gas price, base fee, median priority fee and the estimated USD cost of a 21k-gas transfer and a 200k-gas swap on each chain. Lets an agent pick the cheapest chain to execute on, or size a fee, without five separate RPC calls. 10-second cache.",
"serviceName": "Onchain Query API"
},
"get_a_key": "pay once with any x402 client: POST https://safe.cyberwarex.com/subscribe?usd=3 -> {key: cwx_...} ($3 buys $3.30 of credit). One key works on every cyberwarex host, with no per-call signing.",
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET"
},
"output": {
"type": "json",
"example": {
"count": 5,
"chains": [
{
"chain": "base",
"native": "ETH",
"est_cost": {
"swap_200k": {
"usd": 0.0035,
"native": 0.0000014
},
"transfer_21k": {
"usd": 0.00037,
"native": 1.5e-7
}
},
"native_usd": 2456.1,
"base_fee_gwei": 0.005,
"gas_price_gwei": 0.006,
"priority_fee_gwei": {
"p25": 0.001,
"p50": 0.001,
"p75": 0.002
}
}
],
"cheapest": "base"
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"chains": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chain": {
"type": "string"
},
"error": {
"type": "string"
},
"native": {
"type": "string"
},
"est_cost": {
"type": "object"
},
"native_usd": {
"type": [
"number",
"null"
]
},
"base_fee_gwei": {
"type": [
"number",
"null"
]
},
"gas_price_gwei": {
"type": "number"
},
"priority_fee_gwei": {
"type": [
"object",
"null"
]
}
}
}
},
"cheapest": {
"type": "string",
"description": "Chain with the lowest USD cost for a 21k transfer."
}
}
}
}
}
}
}
}
},
"free_trial": {
"terms": "per client IP per UTC day; automated monitors/crawlers/indexers are excluded; shared daily pool per service",
"calls_per_ip_per_day": 1
},
"quickstart": {
"node": "npm i @x402/fetch @x402/evm viem | import {wrapFetchWithPaymentFromConfig} from '@x402/fetch'; import {ExactEvmScheme} from '@x402/evm'; import {privateKeyToAccount} from 'viem/accounts'; const f = wrapFetchWithPaymentFromConfig(fetch, {schemes: [{network: 'eip155:8453', client: new ExactEvmScheme(privateKeyToAccount(PK))}]}); const r = await f(URL)",
"python": "pip install \"x402[evm,requests]\" | from eth_account import Account; from x402 import x402ClientSync; from x402.http.clients import x402_requests; from x402.mechanisms.evm import EthAccountSigner; from x402.mechanisms.evm.exact import ExactEvmScheme; c = x402ClientSync(); c.register('eip155:8453', ExactEvmScheme(EthAccountSigner(Account.from_key(PK)))); s = x402_requests(c); r = s.get(URL)",
"pay_with": "USDC on Base (eip155:8453); `accepts[0].amount` is in 6-decimal units (3000 = $0.003)"
},
"x402Version": 2,
"try_free_now": "curl -H 'X-Free-Trial: 1' 'https://chain.cyberwarex.com/gas-compare'",
"for_your_operator": {
"proof": "https://chain.cyberwarex.com/sample",
"trust": "https://cyberwarex.com/trust",
"relay_this": "I need a paid web service to finish this task. One call costs $0.002 in USDC on Base, with no account or API key. A one-time $3 prepaid key gives $3.30 of credit, about 1,650 calls like this one, and works on every CyberWareX service. You can see a real paid answer with its on-chain receipt before spending anything.",
"budget_option": "POST https://safe.cyberwarex.com/subscribe?usd=3 with any x402 client -> {key: cwx_...}"
},
"see_a_real_response": "GET https://chain.cyberwarex.com/sample (free, no payment: one real answer from this service with its on-chain settlement tx)"
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.002 USDC on Base to 0x058D…921B2. The signed payment is good for 5 minutes.
- Paid to
- 0x058D…921B2
- USD Coin contract
- 0x8335…02913
- Payment window
- 5 minutes
- As published
- 2000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x058D0Cc5CC97e61e8A9f38D6d6365bce525921B2",
"amount": "2000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET"
},
"output": {
"type": "json",
"example": {
"count": 5,
"chains": [
{
"chain": "base",
"native": "ETH",
"est_cost": {
"swap_200k": {
"usd": 0.0035,
"native": 0.0000014
},
"transfer_21k": {
"usd": 0.00037,
"native": 1.5e-7
}
},
"native_usd": 2456.1,
"base_fee_gwei": 0.005,
"gas_price_gwei": 0.006,
"priority_fee_gwei": {
"p25": 0.001,
"p50": 0.001,
"p75": 0.002
}
}
],
"cheapest": "base"
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"chains": {
"type": "array",
"items": {
"type": "object",
"properties": {
"chain": {
"type": "string"
},
"error": {
"type": "string"
},
"native": {
"type": "string"
},
"est_cost": {
"type": "object"
},
"native_usd": {
"type": [
"number",
"null"
]
},
"base_fee_gwei": {
"type": [
"number",
"null"
]
},
"gas_price_gwei": {
"type": "number"
},
"priority_fee_gwei": {
"type": [
"object",
"null"
]
}
}
}
},
"cheapest": {
"type": "string",
"description": "Chain with the lowest USD cost for a 21k transfer."
}
}
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-10-21 20:16Z
- Last indexed by Roundhouse
- 2026-10-26 22:40Z
- Last enriched (probe, favicon, geo)
- 2026-10-21 10:15Z
- x402 version
- 2
- Max timeout
- 300s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 7 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service Onchain Query API and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Onchain%20Query%20API' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://chain.cyberwarex.com/gas-compare, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.