I saw a lot of tutorials on running the Rinkbey testnet injected using MetaMask on Remix to call functions such as to get conversion rates from Ether to USD using chainlink.
I would like to do so using Remix but deployed to my browser blockchain i.e. JAvaScript VM
I am following this video link where the instructor is using the Fundme()
contract code available here. The instructor was using the price feed for Rinkeby testnet.
I am interested in getting his function:
function getPrice() public view returns(uint256){
AggregatorV3Interface priceFeed = AggregatorV3Interface(0x8A753747A1Fa494EC906cE90E9f37563A8AF630e);
(,int256 answer,,,) = priceFeed.latestRoundData();
return uint256(answer * 10000000000);
}
into local enviroment in remix. Can you please help me in doing so?
What have I done so far?
I went to this page and copied the contract code to paste it into remix. However, I got an error that I was unable to deploy this contract espcially that this page has many contracts written on it.
Please let me know where to start. Many thanks in advance.