Explore these demo oracles to see how DIA works. For production deployments,
request a custom oracle and unlock the full power
of tailored data feeds for your dApp.
Demo Oracles
Oracle Contracts
Mainnet
Testnet
Oracle Configuration
Available Asset Feeds
How to Access Data
To consume price data, use theupdates method for Push-based oracles.
The price updates are stored in both methods in an updates mapping. When accessing the updates mapping through the key BTC/USD, it will return the most recent price of BTC in USD with 8 decimal places (e.g. 9601458065403 is $96,014.58065403) along with the Unix timestamp of the last price update.
Below is a sample contract that consumes the BTC/USD price feed:
updates Method
Additional Details
You can find the contract addresses for the Optimism bridge’s components on mainnet and testnet below: Learn more about DIA’s cross-chain messaging layer here.Request a Custom Oracle
DIA offers highly customizable oracles that are individually tailored to each dApp’s needs. Each oracle can be customized in the following ways, including:- Data Sources & Asset Feeds
- Pricing Methodologies
- Update Triggers (Frequency, Deviation, Heartbeat, …etc)