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
  1. Guide

Let's try to know how to run a RedStone Node

PreviousPlaces to Check data & facts on RedStoneNextGetting Started with RedStone X

Last updated 1 year ago

Note: RedStone is not currently onboarding new Data Providers, but this guide will be helpful when onboarding resumes in the near future. Thank you for your interest!

Running an Oracle Node from Source

While you have the option to run the RedStone oracle node using its source code, it's recommended to utilize Docker for its ease and efficiency. The code is regularly built and deployed from the Github repository, eliminating the need for a full development environment.

Data Availability

Data published by your oracle node will be accessible to RedStone consumers across all supported chains. For more in-depth information on RedStone Oracles' architecture, refer to our dedicated resource.

1. Running a Node Locally

Requirements

Before proceeding, ensure your system meets the necessary requirements as outlined on the requirements page.

Installation of Docker

You'll need Docker to run the oracle node in a container. Follow these steps to install Docker:

  1. Download Docker using:

    sqlCopy codecurl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    sudo usermod -aG docker $USER

Node Configuration

Configuration of the RedStone oracle node relies on environment variables. You can set these variables in your preferred manner, such as using a local .env file.

Quick Start Configuration

For an easy and rapid setup of your first oracle node, we've prepared a sample .env file and a bash script. Find them .

Additional Environment Variables

Param
Description
Example value

ECDSA_PRIVATE_KEY

Your ECDSA private key

ECDSA_PRIVATE_KEY=0x123...

OVERRIDE_DIRECT_CACHE_SERVICE_URLS

Your personal private URLs of gateways to the RedStone Data Distribution Layer (DDL).

OVERRIDE_MANIFEST_USING_FILE

Path to your manifest file.

OVERRIDE_MANIFEST_USING_FILE=./manifests/dev/dev.json

LEVEL_DB_LOCATION

Path to the level DB.

LEVEL_DB_LOCATION=/oracle-node-level-db

Launching Using Docker

  1. Ensure your environment variables are set in the .env file.

  2. Launch the RedStone oracle node with this command:

    bashCopy codedocker run --env-file .env -d --restart=always -v redstone-oracle-node:/oracle-node-level-db --name redstone-oracle-node public.ecr.aws/y7v2w8b2/redstone-oracle-node:6c5e4bf

Docker Image Tags

Each Docker image comes with a tag (e.g., 6c5e4bf), a short commit hash from the RedStone monorepo. This tag helps identify the source code version.

Custom Local Manifest

To run the oracle-node from Docker with your custom manifest, mount the manifest file to the container and update the OVERRIDE_MANIFEST_USING_FILE environment variable.

2. Running a Production Node

For information about running a production node, reach out to the RedStone team.

Important Information

Currently, we manually validate and check external data providers to ensure they understand the requirements. In the future, smart-contracts may automate this process. To get started:

  1. Send your Ethereum address and public key to the RedStone team.

  2. Your address and public key will be added to the data providers registry.

  3. Top up your Ethereum wallet on Polygon with a small amount of MATIC tokens required for stream creation after the first node execution.

  4. Use trusted infrastructure for interacting with your private keys.

Deploy Your Node

After being added to the data providers registry and receiving private gateway URLs, you can deploy the oracle node using Docker on your preferred server or cloud provider. The deployment process will closely resemble the steps for running a local node.

Conclusion

By following this guide, you've gained the knowledge to set up and operate a RedStone oracle node using Docker. While RedStone is not currently onboarding new Data Providers, this guide will be invaluable when onboarding resumes. Your contributions will enhance data availability across the RedStone ecosystem. Keep an eye on future developments and best practices to further optimize your oracle node's performance.

Refer to the table below for the primary environment variables needed to run a node. To view a complete list of supported variables, including optional ones, consult this .

OVERRIDE_DIRECT_CACHE_SERVICE_URLS=["...",

here
file
https://xxx.yyy