Price Data Feeds

Get price info on chain with Chainlink Price Feeds for multiple coin pairs

Data Feeds are the quickest way to connect your smart contracts to the real-world data such as asset prices, reserve balances, NFT floor prices, and L2 sequencer health.

Types of data feeds

Data feeds provide many different types of data for your applications.

Using Data Feeds

  • Start by importing the datum-contracts interface

  • Now create an instance of the oracle-interface , and the Oracle Address should be the Price Oracle address for the chain , you are trying out

PricePairAddress : for other pairAddreses , visit here for PriceFeeds , ProofOfReserve feed and NFTFloorPrice on Goerli testnet.

  • You can call requestPairPrice to an updated price for the pair

  • Call getLatestPrice to get the price for the Pair directly

Full Example Contract Code

Last updated