getChainlinkPrice
Get the latest on-chain Chainlink price for any supported chain and pair. Alerts if the feed is stale, meaning its timestamp is older than one hour.
Instructions
Fetches the latest on-chain Chainlink price for a pair on a supported chain (e.g. ETH/USD on ethereum). Flags the result as stale if the feed's own on-chain timestamp is older than 1 hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Feed pair, e.g. ETH/USD | |
| chain | Yes | Chain name, e.g. ethereum, base, arbitrum, polygon, optimism |