-
I looked it up in google and didn't find a godd explanation. What is aggregatorv3interface and what does it do??? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In simple terms, For detailed doc, you should refer to: ChainLink PriceFeed |
Beta Was this translation helpful? Give feedback.
In simple terms,
To interact and get realtime data from the outside world ( beyond the blockchain ), we need an oracle which will provide the smart contract with the real time data in the most decentralized way as possible. The way to communicate and fetch data from the oracle is through the API's or the interface which is exposed by the oracle.
In this case, aggregatorv3interface is an interface exposed by the chain link to get the realtime currency conversion rates (eg. USD to ETH) which can be used in the smart contract. So, just by calling the functions in aggregatorv3interface, the smart contract has access to the realtime currency conversion rates.
For detailed doc, you should refer…