Demo Oracle Details
Oracle Contracts
Mainnet
Contract | Address |
---|---|
Push Oracle | 0xA42217338614B7e67D022C52D1CD38e02D619bb0 |
Pull Oracle | 0xE74B7D236A97eED9026926073cBb436638266888 |
Oracle Configuration
Pricing Methodology | Median |
Deviation (%) & Refresh Frequency | 2% and 120 seconds |
Heartbeat | 12h |
Available Asset Feeds
Asset Ticker | updates(key) | Asset Markets |
---|---|---|
ETH | ETH/USD | ETH Markets |
BTC | BTC/USD | BTC Markets |
DIA | DIA/USD | DIA Markets |
USDC | USDC/USD | USDC Markets |
How to Access Data
To consume price data, select the method required for your dapp. Theupdates
method is available for Push-based oracles and request
method for Pull-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 are sample contracts that consume the BTC/USD
price feed through both methods:
updates Method
request Method
Additional Details
You can find the contract addresses for the Plume bridge’s components on mainnet below: Learn more about DIA’s cross-chain messaging layer here.Oracle Grants Program
The DIA Oracle Grants Program provides zero-cost oracle access for up to 1 year, covering deployment and update costs to accelerate dApp development on Plume. Learn more about the grant here:DIA Oracle Grants Program | Apply Now
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)