How to Get the Latest Price of ETH in JPY using Chainlink Price Feed
Hi I’m Yuichi, a Japanese web developer who just got interested in Ethereum and smart contracts, so I would really appreciate if you could correct me or suggest better ways. Thank you in advance.
Today, I want to show you how I get the latest price of ETH in JPY using Chainlink Price Feed.
First, you import AggregatorV3Interface and declare variables.
You provide the addresses of each contract. You can find each address in Chainlink doc in the link below.