Skip to content
onelayer.
All tools

Tool detail

CoinGecko

Returns onchain DEX price and market data for a token contract address on Base, such as price, volume and market cap.

Categories: Market prices, Defi

Use when

  • get the current onchain price of a Base token by contract address
  • check 24h volume and price change for a Base DEX token
  • get market cap or liquidity reserve data for a token address

Not for

  • tokens on chains other than Base — this endpoint is Base-only
  • looking up a token by symbol or name instead of contract address

Inputs

GET path param: {address} (token contract address, required, in URL); query flags include_24hr_price_change/vol, include_market_cap, include_inactive_source, include_total_reserve_in_usd, mcap_fdv_fallback (booleans, optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "include_24hr_price_change": {
      "type": "boolean"
    },
    "include_24hr_vol": {
      "type": "boolean"
    },
    "include_inactive_source": {
      "type": "boolean"
    },
    "include_market_cap": {
      "type": "boolean"
    },
    "include_total_reserve_in_usd": {
      "type": "boolean"
    },
    "mcap_fdv_fallback": {
      "type": "boolean"
    }
  },
  "required": [],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/{address}

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/:address
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z