Skip to main content
Please view the third-party content disclaimer here.
Chainlink lets your contracts access external data through a decentralized oracle network. The most common use case on Polygon is reading price feeds directly from Chainlink Data Feeds.

Prerequisites

  • A Solidity contract deployed or ready to deploy on Polygon Chain or Amoy testnet.
  • The Chainlink AggregatorV3Interface imported from @chainlink/contracts.

Read a price feed

The contract below reads the latest POL/USD price on the Amoy testnet. To use a different price pair, replace the feed address with any address from the Chainlink Polygon feed list.

Next steps