Chainlink Oracle Price
onchain_oracle_priceRead any Chainlink price feed directly on-chain — a named pair or a raw feed address.
Calls latestRoundData on the feed contract itself, so there is no price-API vendor, no rate limit, and no key. Includes the feed's last-updated timestamp and its age in seconds, so you can judge staleness yourself rather than trusting an unlabeled number.
Known named pairs on Base: ETH/USD, BTC/USD, USDC/USD. Any other feed address on any supported chain also works.
When to use: getting a specific asset's price without depending on a centralized price API, verifying a feed is fresh before using it, cross-checking a price from another source.
When NOT to use: you need a token that has no Chainlink feed (use onchain_portfolio's covered set, or a DEX quote instead), or historical/point-in-time prices.
Args:
pair (string, required): a named pair (e.g. "ETH/USD") or a raw feed contract address (0x...).
chain (string, optional, default "base"): base | ethereum | optimism | arbitrum | polygon.
Returns structuredContent: { "chain": "base", "feed": "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70", "pair": "ETH/USD", "price": 1877.86, "decimals": 8, "updatedAt": "2026-08-14T12:00:00.000Z", "ageSeconds": 120, "source": "Chainlink on-chain price feed" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | A named pair (e.g. "ETH/USD") or a raw Chainlink feed contract address. | |
| chain | No | Which chain the feed lives on. Defaults to base. | base |