> ## Documentation Index
> Fetch the complete documentation index at: https://www.diadata.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Boba Network

> dApps built on Boba Network can leverage DIA oracles to access up-to-date asset price information.

DIA is a cross-chain, trustless oracle network delivering verifiable price feeds for Boba Network. DIA sources raw trade data directly from primary markets and computes it onchain, ensuring transparency and data integrity.

### Key Features

* Complete verifiability from source to destination smart contract.
* Direct data sourcing from 100+ primary markets eliminating intermediary risk.
* Support for 20,000+ assets across all major asset classes.
* Custom oracle configuration with tailored sources and methodologies.

### Oracle Contracts

| Chain            | Address                                                                                                                              |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Boba ETH Mainnet | [<u>0x5612599CF48032d7428399d5Fcb99eDcc75c06A7</u>](https://bobascan.com/address/0x5612599CF48032d7428399d5Fcb99eDcc75c06A7)         |
| Boba ETH Sepolia | [<u>0xb4C652a1fF2022D98Ad9406FaB42B242313B7d1a</u>](https://testnet.bobascan.com/address/0xb4C652a1fF2022D98Ad9406FaB42B242313B7d1a) |

### Oracle Configuration

| Parameter               | Value                                                                                                                      |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| **Pricing Methodology** | [VWAPIR](/docs/guides/methodologies/pricing-methodologies/vwapir-volume-weighted-average-price-with-interquartile-range-filter) |
| **Deviation (%)**       | 0.2%                                                                                                                       |
| **Heartbeat**           | 1h                                                                                                                         |

### Available Asset Feeds

| Asset Ticker | **Adapter Address**                                                                                                          |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| BTC          | [<u>0xcdf63e59d432De724c8afDc8064A81aA03cEeAFd</u>](https://bobascan.com/address/0xcdf63e59d432De724c8afDc8064A81aA03cEeAFd) |
| ETH          | [<u>0x78B31334F73C50363433ffC551c7CbB2556C5eCD</u>](https://bobascan.com/address/0x78B31334F73C50363433ffC551c7CbB2556C5eCD) |
| USDC         | [<u>0x61187Bc50429e7B509b31924aB26c923FbE3102A</u>](https://bobascan.com/address/0x61187Bc50429e7B509b31924aB26c923FbE3102A) |
| USDT         | [<u>0xBAEaA74999819176364bB7005dCf079545c1D46F</u>](https://bobascan.com/address/0xBAEaA74999819176364bB7005dCf079545c1D46F) |
| DAI          | [<u>0xf9b5cCb73d3dEf96EfEd61aB4b2D587ecEb6E3aA</u>](https://bobascan.com/address/0xf9b5cCb73d3dEf96EfEd61aB4b2D587ecEb6E3aA) |
| BOBA         | [<u>0xB2545be654E053cffa5501C08258eaeaBa94170f</u>](https://bobascan.com/address/0xB2545be654E053cffa5501C08258eaeaBa94170f) |

## How to Access Data

### Accessing the oracle on-chain (Solidity)

To consume price data from our oracle, you can use the adapter smart contract for the available assets. This will allow you to access the same methods on the `AggregatorV3Interface` such as `latestRoundData`. You can learn more [<u>here</u>](https://www.diadata.org/docs/nexus/how-to-guides/migrate-to-dia).

This is a sample contract for consuming the **ETH** price feed returning **8 decimals**:

```text theme={"system"}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface DiaAssetSpecificCallingConvention {
    function latestRoundData() external view returns (
        uint80 roundId,
        int256 answer,
        uint256 startedAt,
        uint256 updatedAt,
        uint80 answeredInRound
    );
}

contract DIAOracleSample {
    address ethAdapter = 0x78B31334F73C50363433ffC551c7CbB2556C5eCD;

    function getETHLatestPrice() external view returns (
        uint128 latestPrice,
        uint128 timestampOfLatestPrice
    ) {
        // Call the AggregatorV3Interface adapter's latestRoundData function
        (,int256 answer, ,uint256 updatedAt, ) =
        DiaAssetSpecificCallingConvention(ethAdapter).latestRoundData();

        latestPrice = uint128(uint256(answer));
        timestampOfLatestPrice = uint128(updatedAt);

        return (latestPrice, timestampOfLatestPrice);
    } 
}
```

***

## 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)

Get a tailored oracle for your dApp, request one below:

<CardGroup>
  <Card title="Request Custom Oracle" icon="angle-right" iconType="solid" horizontal href="/docs/guides/how-to-guides/request-a-custom-oracle" />
</CardGroup>

## Support

For developer assistance, connect with the DIA team directly on [Discord](https://discord.gg/ZvGjVY5uvs) or [Telegram](https://t.me/diadata_org).
