Onchain Query API · Token

by Onchain Query API

GETBase

$0.004

per call · USD Coin on Base

ERC-20 token profile on any major EVM chain: on-chain metadata (name, symbol, decimals, total supply) read straight from the contract, joined with live DEX market data (USD price, liquidity, 24h volume, 24h change, and the top trading pair with its DEX). Use it to price a token, check liquidity depth before a swap, or resolve an unknown contract address into a real token.

Endpoint

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

18

Calls / 30d

1

Unique payers / 30d

Sep 10

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/token", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://chain.cyberwarex.com/token?address=0x4200000000000000000000000000000000000006&chain=base" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0x4200000000000000000000000000000000000006",
  "chain": "base",
  "decimals": 18,
  "market": {
    "change_24h_pct": -1.87,
    "liquidity_usd": 41283910.5,
    "source": "dexscreener",
    "top_pair": {
      "base": "WETH",
      "chain": "base",
      "dex": "aerodrome",
      "quote": "USDC"
    },
    "usd": 3194.51,
    "volume_24h_usd": 88214003.1
  },
  "name": "Wrapped Ether",
  "symbol": "WETH",
  "total_supply": 121843.512,
  "total_supply_raw": "121843512000000000000000"
}

Payment details

Pay to0x058d0cc5cc97e61e8a9f38d6d6365bce525921b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Onchain Query API & similar services