# Creating a price feed oracle for ASTR

**URL:** <https://forum.diadata.org/t/creating-a-price-feed-oracle-for-astr/1165>\
**Category:** CDRs - Custom Delivery Requests\
**Tags:** astar, defi, token-price-feed\
**Created:** [June 3, 2025, 6:22pm UTC](https://forum.diadata.org/t/creating-a-price-feed-oracle-for-astr/1165 "2025-06-03T18:22:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nftbridges](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nftbridges](https://forum.diadata.org/u/nftbridges)\
**Post date:** [June 3, 2025, 6:22pm UTC](https://forum.diadata.org/t/creating-a-price-feed-oracle-for-astr/1165/1 "2025-06-03T18:22:47Z")

</div>

03 June, 2025

# INTRODUCTION

Protocol: NFTBridges

# REQUEST INFORMATION

## Assets

Following assets will be included in the Oracle:

| Asset Ticker | Asset Blockchain | Asset Address | Asset Markets Overview | Comments |
| --- | --- | --- | --- | --- |
| ASTR | Astar | 0x0000000000000000000000000000000000000000 | [Astr Asset Information](https://www.diadata.org/app/price/asset/Astar/0x0000000000000000000000000000000000000000/) | |

## Methodology

- Volume Weighted Average Price with Interquartile Range (VWAPIR) will be used to calculate the price for the assets. Learn more about it [here](https://nexus.diadata.org/reference/pricing-methodologies/vwapir-volume-weighted-average-price-with-interquartile-range-filter)

- .5% deviation threshold for updates trigger will be applied for each asset

- 120 secs update frequency check will be applied

# DELIVERY INFORMATION

| Delivery Method | Oracle on Astar Shibuya |
| --- | --- |
| Is testnet deployment required? | Yes |

---

<div class="post-metadata">

**Author:** ![nftbridges](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nftbridges](https://forum.diadata.org/u/nftbridges)\
**Post date:** [July 9, 2025, 7:56pm UTC](https://forum.diadata.org/t/creating-a-price-feed-oracle-for-astr/1165/2 "2025-07-09T19:56:10Z")

</div>

Please add this feed to Astar mainnet.

Thank you

---

<div class="post-metadata">

**Author:** ![Samuel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/samuel/32/119_2.png) [@Samuel](https://forum.diadata.org/u/Samuel)\
**Post date:** [July 14, 2025, 11:18am UTC](https://forum.diadata.org/t/creating-a-price-feed-oracle-for-astr/1165/3 "2025-07-14T11:18:57Z")

</div>

Thank you for requesting a data feed via DIA CDR. Please find the oracle information below:

## Contracts

The contracts to fetch data from

| **Network** | **Contract Address** |
| --- | --- |
| Astar Mainnet | [0x1fBB0e3FDA1bA79f38F9756c7d812ef1e6a1267e](https://astar.blockscout.com/address/0x1fBB0e3FDA1bA79f38F9756c7d812ef1e6a1267e) |
| Astar Shibuya | [0xa884f217f6EaDdf2e59E61b1c3132349d46b117D](https://shibuya.subscan.io/account/0xa884f217f6eaddf2e59e61b1c3132349d46b117d) |

* * *

## Gas Wallets

The gas wallet is used for pushing data to your contracts. To ensure uninterrupted oracle operation, please maintain sufficient funds in the gas wallet. You can monitor the wallets below to ensure they remain adequately funded at all times.

| **Network** | **Gas Wallet Address** |
| --- | --- |
| Astar Mainnet | [0xc4FDb512ea8E1C665DE657beA5A4DAF1Fbc78044](https://astar.blockscout.com/address/0xc4FDb512ea8E1C665DE657beA5A4DAF1Fbc78044) |
| Astar Shibuya | [0xDB9C1023D883Dbd89068c793a82a31E4F3475985](https://shibuya.subscan.io/account/0xdb9c1023d883dbd89068c793a82a31e4f3475985) |

* * *

## Oracle Configuration

Settings that dictate how the oracle computes and updates data

| **Pricing Methodology** | [VWAPIR](https://www.diadata.org/docs/reference/pricing-methodologies/vwapir-volume-weighted-average-price-with-interquartile-range-filter) |
| --- | --- |
| **Deviation (%) & Refresh Frequency** | 0.5% and 120 seconds |
| **Heartbeat** | 24h |

* * *

## Asset Feeds

| **Asset Ticker** | **getValue(key)** | **Asset Markets Overview** |
| --- | --- | --- |
| ASTR | ASTR/USD | [ASTR Markets](https://www.diadata.org/app/price/asset/Astar/0x0000000000000000000000000000000000000000/) |

To consume price data, you’ll need to invoke the `getValue` method on the oracle contract which you can access through the [DIA Oracle library](https://www.diadata.org/docs/how-to-guides/fetch-price-data/solidity#using-solidity-library) or the [interface](https://www.diadata.org/docs/how-to-guides/fetch-price-data/solidity#using-diaoraclev2-interface).

f you pass `ASTR/USD` as the key, it will return the most recent price of ASTR in USD with 8 decimal places (e.g. 2764197 is $0.02764197) along with the Unix timestamp of the last price update.

See the full example [here](https://www.diadata.org/docs/how-to-guides/fetch-price-data/solidity).
