📄
FlowPricesOracle
  • WhitePaper
  • Github-opensource
  • Public SmartContract API
    • supported Crypto Prices
    • getCryptoPrice
  • Validator Docs
    • become a validator
    • updatePrice
Powered by GitBook
On this page
  1. Public SmartContract API

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)
Previoussupported Crypto PricesNextValidator Docs

Last updated 1 year ago