For the complete documentation index, see llms.txt. This page is also available as Markdown.

Redstone on re.al

Current Price Feeds

So far we have deployed the GOLD (XAU) and GBP price feeds on Unreal with Chainlink interface adapter.

Price Feed
Contract address

Code Snippets

Querying Prices

const getLatestSignedPrice = async () => {
  return await sdk.requestDataPackages({
    dataServiceId: "redstone-primary-prod",
    uniqueSignersCount: 3,
    dataFeeds: ["XAU"],
    urls: ["https://oracle-gateway-1.a.redstone.finance"],
  });
};

const dataPackagesResponse = await getLatestSignedPrice();

const { dataPackage } = dataPackagesResponse["XAU"]![0];

const parsedPrice = parsePrice(dataPackage.dataPoints[0].value);

Updating Price

Last updated