CRE Workflows HubCRE Workflows Hub
  • Workflows
  • Chainlink repo
  • Sign in
CRE Workflows Hub
  • Workflows
  • Docs
  • Contribute workflow
  • Chainlink CRE Templates

A registry for Chainlink Runtime Environment workflows. List and share your CRE workflows without waiting for upstream approval.

Back

Created by Chainlink Labs

Read Data Feeds

A set of minimal examples that read from Chainlink Data Feeds using the CRE chain reader on a cron schedule.

View on GitHub
TypeScript
Go

A set of minimal examples that, on a cron schedule (e.g. every 10 minutes), read from Chainlink Data Feeds using the CRE chain reader.

Two types:

  1. Regular (single-value) price feeds Reads decimals() and latestAnswer() from Chainlink Data Feeds (e.g. BTC/USD, ETH/USD), logs scaled values, returns JSON array. Example: Arbitrum One mainnet; BTC/USD and ETH/USD contract addresses in README.

  2. MVR (Multiple Variable Response) bundle feeds Reads latestBundle() and bundleDecimals() from a Chainlink BundleAggregatorProxy, decodes bytes into typed fields, returns structured JSON. Example: Base mainnet, S&P Global SSA EURC feed; see data.chain.link and MVR decoding guide.

Get started: Go and TypeScript examples under building-blocks/read-data-feeds. See Go README and TypeScript README for regular feeds; separate READMEs for MVR bundle feeds (Go and TypeScript).

Install the CRE CLI to use this template

You can use the command below or download the latest CLI release on GitHub.

curl -sSL https://cre.chain.link/install.sh | bash
Author
Chainlink Labs
LicenseMIT

Disclaimer

This template represents an educational example to use a Chainlink system, product, or service and is provided to demonstrate how to interact with Chainlink's systems, products, and services to integrate them into your own. This template is provided "AS IS" and "AS AVAILABLE" without warranties of any kind, it has not been audited, and it may be missing key checks or error handling to make the usage of the system, product or service more clear. Do not use this example in a production environment without completing your own audits and application of best practices. Neither Chainlink Labs, the Chainlink Foundation, nor Chainlink node operators are responsible for unintended outputs that are generated due to errors in code.