Price Oracle
Last updated
Last updated
Every 30 seconds, all 75 validators in the Kujira active set are required to post a transaction containing the current price for a range of assets, aggregated from a number of sources. This creates an on-chain source of truth which can be queried from a UI front-end, the CLI and also in smart contracts.
You can fetch all exchange rates here: https://lcd.kaiyo.kujira.setten.io/oracle/denoms/exchange_rates
Or just a specific one at eg https://lcd.kaiyo.kujira.setten.io/oracle/denoms/ATOM/exchange_rate
The kujira-rs package provides queryable bindings to fetch current exchange rates inside your smart contracts:
Note that the type signature for a query
interface that uses this must be