Crypto prices from Chainlink on Base: ETH, BTC, cbBTC, SOL, USDC, DAI, EUR in USD
crypto_priceCurrent prices in USD from Chainlink Data Feeds on Base mainnet: ETH, BTC, cbBTC, SOL, USDC, DAI, and EUR. One pair or all at once, each with the feed's last update time, age in seconds, and a stale flag, read straight from the oracle contracts (the same prices DeFi protocols use). Useful for valuing balances, converting USDC amounts, and checking a stablecoin peg. Not charged for an unknown pair or when the feeds can't be read. Paid via x402; see list_prices.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crypto_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | Optional pair, e.g. "ETH/USD" or "BTC". Omit for all: ETH/USD, BTC/USD, CBBTC/USD, SOL/USD, USDC/USD, DAI/USD, EUR/USD. |