Creating a price feed oracle for ASTR

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

Methodology

  • Volume Weighted Average Price with Interquartile Range (VWAPIR) will be used to calculate the price for the assets. Learn more about it here

  • .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

Please add this feed to Astar mainnet.

Thank you

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
Astar Shibuya 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
Astar Shibuya 0xDB9C1023D883Dbd89068c793a82a31E4F3475985

Oracle Configuration

Settings that dictate how the oracle computes and updates data

Pricing Methodology VWAPIR
Deviation (%) & Refresh Frequency 0.5% and 120 seconds
Heartbeat 24h

Asset Feeds

Asset Ticker getValue(key) Asset Markets Overview
ASTR ASTR/USD ASTR Markets

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 or the 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.