Access the price feeds

Currently there are two ways on reading oracle values that are produced in Lumina:

  1. Reading from Aggregator smart contracts on the Lasernet network

  2. Reading from destination chain's oracle contracts

Access price feeds on Aggregator smart contracts

To read values on Aggregator smart contracts access the Aggregator contract on Lasernet. The metacontract exposed a simple Read function called getValue(). It has one parameter pairKey, which consists of the symbol of the queried asset and /USD to denominate its price in US Dollars. For instance, the latest Bitcoin price is queried by calling getValue("BTC/USD").

All assets in Available price feedsare readable on this smart contract on Lasernet:

0x7Dd70B4B76130Bc29E33635d2d1F88e088dF84A6

Find out more about aggregator smart contracts here:

Data computation

Access price feeds on oracle contracts

To access the price feeds on oracle contracts via pull or push-based approach follow the instructions listed here:

How-to DIA Lumina Oracles

If you want to access custom assets on the destination chain, feel free to contact us for a custom deployment based on your needs:

Request an oracle

Last updated