Chainlink price-feed health (paid $0.003)
oracle_healthCheck Chainlink price-feed health: verify last-update age, latest answer, round progression, and stale flag versus heartbeat. Optionally compare deviation with a reference price.
Instructions
PAID $0.003 (x402, USDC on Base). Chainlink price-feed health via public RPC: last-update age, latest answer (scaled by decimals), round monotonicity (is the answer current?), a stale flag vs the heartbeat, optional deviation vs a reference price, and per-factor flags. Read-only, descriptive. Args: feed_address, chain, heartbeat_seconds (optional), reference (optional). Without payment returns the x402 challenge; pass x_payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain the feed is deployed on. | |
| reference | No | A reference price to compute deviation % against (optional). | |
| x_payment | No | x402 payment payload (base64) for this PAID read. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. | |
| feed_address | Yes | Chainlink aggregator/proxy address (0x…40-hex), e.g. ETH/USD 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419. | |
| heartbeat_seconds | No | The feed's heartbeat in seconds for a precise stale check (optional). |