Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man token-price

/token-price(1)

agentutility / edge-market / token-price
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
utilities
STATUS
live
NAME
token-price crypto token price api / coingecko wrapper
SYNOPSIS
POST https://x402.org/v1/token-price
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Crypto token price API / CoinGecko wrapper. Lookup by id (bitcoin), symbol (BTC), or contract address (with chain). USD + native currency, 24h/7d change, market cap, volume, supply, ATH, ATL.

INPUTrequest schema
propertytypedescriptionreq?
querystringCoinGecko id ('bitcoin'), symbol ('BTC'), or 0x address.required
vs_currencystringDefault 'usd'.optional
chainstringFor address queries: ethereum, base, arbitrum-one, polygon-pos, etc.optional
OUTPUTresponse shape
fieldtypedescription
querystringOriginal lookup string sent in (token id, symbol, or contract address).
resolutionstringHow the query was resolved — by id, symbol, or contract address lookup.
coin_idstringCoinGecko canonical coin id (e.g. "bitcoin", "ethereum").
namestringFull token name (e.g. "Bitcoin", "USD Coin").
symbolstringTicker symbol (e.g. "BTC", "USDC").
imagestringURL to the token's logo image on CoinGecko.
market_cap_ranknumberToken's rank by market cap across all tracked coins (1 = largest).
vs_currencystringQuote currency for price fields (typically "usd").
pricenumberCurrent price of the token in the quote currency.
price_change_24h_pctnumberPercentage price change over the last 24 hours.
price_change_7d_pctnumberPercentage price change over the last 7 days.
market_capnumberCurrent market capitalization in the quote currency.
total_volumenumber24-hour trading volume across tracked exchanges in the quote currency.
circulating_supplynumberNumber of tokens currently circulating in the market.
total_supplynumberTotal tokens that exist (minted minus burned), or null if unknown.
max_supplynumberHard cap on tokens that can ever exist, or null if uncapped.
athobjectAll-time high price with value, date, and percent change from ATH.
atlobjectAll-time low price with value, date, and percent change from ATL.
last_updatedstringISO 8601 timestamp of when CoinGecko last refreshed this data.
sourcestringUpstream data provider (e.g. "coingecko").
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/token-price \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the token-price tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
cryptopricecoingeckotokenweb3
methods
POST
cluster
edgemarket
price
$0.02 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
defi-llama-protocolDefiLlama protocol lookup — TVL, chain breakdown, current TVL, 24h/7d/30d changes, audits, parent protocol, categories.$0.02
gas-now-baseGas oracle / EIP-1559 fee estimator.$0.02
gas-priceGas price API / EIP-1559 fee estimator / Base + Ethereum + Optimism + Arbitrum gas tracker / pre-tx cost estimator.$0.02
tx-receipt-decodeEVM transaction receipt decoder / log decoder / event log reader / Etherscan tx debug / receipt parser / Basescan tx explainer / tenderly…$0.02
tx-simulate-swapTx simulate swap / pre-trade quote / DEX swap simulator / 1inch + LlamaSwap quote / would-it-succeed check.$0.02
bridge-ratesCross-chain bridge rate aggregator.$0.03
dao-proposal-monitorSnapshot.org DAO proposal monitor.$0.03
ens-resolveENS resolver / Ethereum Name Service lookup.$0.03
SEE ALSO
agentutility(7) · edgemarket(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org