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

/token-price-lookup

agentutility / edge-market / token-price-lookup
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
token-price-lookup token price lookup / erc-20 price resolver / on-chain token quote api
synonym alias of token-price — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/token-price-lookup
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

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

Token price lookup / ERC-20 price resolver / on-chain token quote API. Looks up a token by id, ticker, or contract address plus chain and returns spot price and market data from CoinGecko.

INPUTrequest schema
propertytypedescriptionreq?
querystringCoin id ('bitcoin'), ticker ('BTC', case-insensitive), or contract address (0x... or chain-native). When passing a contract, set 'chain' to disambiguate.required
vs_currencystringQuote currency. Default 'usd'. Any CoinGecko-supported fiat or crypto: usd, eur, gbp, jpy, btc, eth, etc.optional
chainstringChain slug for contract-address lookups, e.g. 'ethereum', 'base', 'polygon-pos', 'arbitrum-one', 'optimistic-ethereum', 'solana'. Ignored if query is an id or ticker.optional
OUTPUTresponse shape
fieldtypedescription
coin_idstring
symbolstring
namestring
pricestring
vs_currencystring
market_capstring
market_cap_rankstring
total_volumestring
price_change_percentage_24hstring
last_updatedstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/token-price-lookup \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the token-price-lookup tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-markettokenpricelookuptoken-price-lookup
methods
POST
cluster
edgemarket
price
$0.02 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
coin-priceCoin price API / crypto spot price / BTC ETH SOL quote lookup.$0.02
crypto-priceCrypto price lookup / coin price API / BTC ETH SOL price / on-chain token spot price.$0.02
defi-llamaDefiLlama API / DeFi TVL protocol lookup.$0.02
defi-llama-protocolDefiLlama protocol lookup / DeFi TVL fetcher / total value locked / chain-breakdown of TVL / Aave + Lido + Uniswap + MakerDAO TVL / proto…$0.02
defi-tvlDeFi TVL API / total value locked by protocol.$0.02
defillamaDefiLlama protocol TVL lookup / DeFi protocol metadata.$0.02
gas-apiGas API / blockchain gas fee estimator / EIP-1559 fee tiers.$0.02
gas-feesGas fees API / EIP-1559 transaction fee estimator / Base Ethereum Optimism Arbitrum gas tracker.$0.02
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org