CoinGecko · Token Price Probe

by CoinGecko

GETBaseSolana

$0.01

per call · USD Coin on Base

Query onchain DEX token price & market data based on the provided token contract addresses on a network.

Endpoint

GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/sei-network/token_price/probe

1

Calls / 30d

1

Unique payers / 30d

Aug 28

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://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/sei-network/token_price/probe", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/sei-network/token_price/probe?include_24hr_price_change=true&include_24hr_vol=true&include_inactive_source=true&include_market_cap=true&include_total_reserve_in_usd=true&mcap_fdv_fallback=true" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "attributes": {
      "h24_price_change_percentage": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "3.3870290336"
      },
      "h24_volume_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "965988358.733808"
      },
      "last_trade_timestamp": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": 1711356300
      },
      "market_cap_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "6692452895.779648"
      },
      "token_prices": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "2289.33"
      },
      "total_reserve_in_usd": {
        "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "1576179559.94669772339136684208"
      }
    },
    "id": "1ba898f0-eda2-4291-9491-9a5b323f66ef",
    "type": "simple_token_price"
  }
}

Payment details

Pay to0x110cdbba7fe6434ec4ce3464cc523942ad6fb784
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from CoinGecko & similar services