/** This example code is designed to quickly deploy an example contract using Remix.
* If you have never used Remix, try our example walkthrough: https://docs.chain.link/docs/example-walkthrough
* You will need xDai to deploy.
* - xDai Faucet: https://blockscout.com/poa/xdai/faucet
* - LINK address on xDai: 0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2
import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
contract PriceConsumerV3 {
AggregatorV3Interface internal priceFeed;
* Address: 0xa767f745331D267c7751297D982b050c93985627
priceFeed = AggregatorV3Interface(0xa767f745331D267c7751297D982b050c93985627);
* Returns the latest price
function getLatestPrice() public view returns (int) {
) = priceFeed.latestRoundData();