RedStone Quick Guide
  • Guide
    • 让我们一起更好了解RedStone
    • Selected materials for learning RedStone
    • How to earn RSG points in a correct way
    • Places to Check data & facts on RedStone
    • Let's try to know how to run a RedStone Node
    • Getting Started with RedStone X
    • Getting Started with Redstone Core
    • Getting Started with Redstone Classic
    • 2 quick ways to check your RSG points
    • 两种快速查询RSG积分的方法
    • RedStone再质押报告核心观点导读
  • Articles
    • Liquid Staking Unveiled: A Simple Guide:TL;DR for RedStone's LstFi report
    • TL;DR for RedStone's great 2023 Market Overview on Stablecoins
    • The Emergence of Real World Assets in DeFi
    • Introducing RedStone's New Tokenomics Model for Data Sharing
    • RedStone's other parts:aggregation & safety and others
    • The Pillars of RedStone's Data Ecosystem
    • RedStone - A Short intro to the New Era of Oracles for Modern DeFi
    • RedStone: Innovating DeFi Data Flow Through Modular Design
    • TL;DR for RedStone Miners Ambassador Program
    • An interesting short Case Study:RedStone Integrates with Venus Protocol
    • An interesting short Case Study-2:RedStone Integrates with Lido
    • An interesting short Case Study-3:RedStone Integrates with Fuel to Unlock New DeFi Capabilities
    • An interesting short Case Study-4:RedStone Integrates withFortifies Premia Blue
    • An interesting short Case Study-5:RedStone Integrates Angle
    • An interesting short Case Study-6:CIAN Transforms Automation with RedStone Oracles Integration
    • An interesting short Case Study 7:RedStone Oracles ✖️ Avalanche Evergreen & Spruce Testnet
    • An interesting short Case Study-8:RedStone Oracles & Vesta Finance's
    • An interesting short Case Study-9:RedStone Oracles X Voltz
    • An interesting short Case Study-10:RedStone Oracles X Mento
    • An interesting short Case Study-11:RedStone Oracles X Yield Yak
    • RedStone X StakeWise Case Study: A Simplified Overview
    • Why did Google report wrong pice-A simplified explanation for non-tech readers
    • RedStone X Ton: An interesting short Case Study-12
    • RedStone X Manta: An interesting Short Case Study 14
    • A quick case study for how Oracle Projects(RedStone) integrates with DeFi projects
    • TL:DR for RedStone's Restaking Reports
    • A tale of two RedStones-Coexist Confirmed
    • RedStone X zkLink:A quick case study
    • RedStone X Ether.fi: A case to explore
Powered by GitBook
On this page
  • Introduction
  • Overview
  • Getting Started
  • Key Benefits
  • Key variables include:
  1. Guide

Getting Started with Redstone Classic

Introduction

RedStone Classic allows you to leverage real-world data in your smart contracts on supported blockchains like Ethereum, Polygon, and Optimism. It provides a modular system to optimize data flow and reduce costs.

Overview

  • RedStone uses a network of professional data Aggregators who source real-world data from exchanges, APIs, and other sources.

  • Aggregators sign the data and broadcast it off-chain on data Availability layers like Streamr.

  • Smart contracts can request data via RedStone's SDK or Relayers. Relayers retrieve off-chain data and submit transactions to put data on-chain.

  • Smart contracts unpack the data, verify signatures, and use the real-world data to trigger programmatic logic.

Getting Started

  1. Install the RedStone SDK in your smart contract development environment.

  2. Import the RedStone contracts into your project. These handle verification and unpacking.

  3. Call the requestData function in your contract providing the asset and identifiers.

  4. Consume the returned real-world data in your contract logic to build dynamic dApps.

  5. Optionally become a Relayer to retrieve off-chain data and submit transactions to insert it on-chain for contracts.

Key Benefits

  • Real-time data for dApps without paying gas for frequent updates.

  • Modular architecture optimizes data delivery and validation.

  • Professional grade data suitable for DeFi, gambling, insurance, and more.

  • Cross-chain support including Ethereum, Polygon, Optimism, and Arbitrum.

Key variables include:

  • UPDATE_PRICE_INTERVAL - Time interval in ms for pushing updated prices (heartbeat)

  • MIN_DEVIATION_PERCENTAGE - Minimum price change percentage to trigger update

  • UPDATE_CONDITIONS - Additional conditions that trigger a price update

PreviousGetting Started with Redstone CoreNext2 quick ways to check your RSG points

Last updated 1 year ago

For full variables, kindly check official doc here:

https://docs.redstone.finance/docs/smart-contract-devs/get-started/redstone-classic#environment-variables