Using Chainlink Price Feeds on Avalanche. If you'd like to read the verbose version, check [out the blog.] (link is TBD)
- Head over to
remix
- Compile using
0.8.0
version of solidity or above. - Setup your Metamask to work with Avalanche:
Network Name: Avalanche FUJI C-Chain
New RPC URL: https://api.avax-test.network/ext/bc/C/rpc
ChainID: 43113
Symbol: AVAX
Explorer: https://cchain.explorer.avax-test.network
- Deploy the contract with "Injected Web3" environment
- Run "getLatestPrice" to retrieve price data