getCryptoPrice

to get from any place of your code the last price of a supported crypto you sould execute this piece of code

// Import the contract at the top
import FlowPricesOracle from 0x0510d2fd5ef24ae0

// from anywhere in your code get the price
FlowPricesOracle.getPrice(crypto: cryptoName)

Last updated