Onchain Query API · Price

by Onchain Query API

GETBase

$0.002

per call · USD Coin on Base

Spot USD price for any crypto asset. Accepts a ticker symbol (eth, btc, sol), a CoinGecko id (ethereum), or an EVM token contract address. Returns the USD price plus 24h change, with market cap for listed assets, or liquidity, 24h volume and the top DEX pair for contract addresses. Cached 60 seconds so repeated calls in one agent workflow stay consistent with each other.

Endpoint

GET https://chain.cyberwarex.com/price

8

Calls / 30d

4

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://chain.cyberwarex.com/price", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://chain.cyberwarex.com/price?query=eth" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "change_24h_pct": -1.87,
  "coingecko_id": "ethereum",
  "market_cap_usd": 385204119883,
  "price_usd": 3194.51,
  "query": "eth",
  "source": "coingecko"
}

Payment details

Pay to0x058d0cc5cc97e61e8a9f38d6d6365bce525921b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Onchain Query API & similar services