Oracle Setup
This guide is only for validator nodes\
Official documentation: https://docs.initia.xyz/run-initia-node/running-initia-node/oracle
The Slinky Oracle consists of two main elements:
An on-chain component that retrieves price data from the sidecar with each block, forwards these prices to the blockchain through vote extensions, and compiles prices from all validators involved.
A sidecar process dedicated to polling price information from various providers and delivering this data to the on-chain component.
Step 1: Clone the Repository and build binaries
Step 2: Run oracle
CREATE SYSTEMD SERVICE
ENABLE AND START SYSTEMD SERVICE
Step 3: Validating Prices
Upon launching the oracle, you should observe successful price retrieval from the provider sources. Additionally, you have the option to execute the test client script available in the Slinky repository by using the command:
Step 4: Enable Oracle Vote Extension
In order to utilize the Slinky oracle data in the Initia node, the Oracle setting should be enabled in the config/app.toml file.
Step 5: Check the systemd logs
To check service logs use command below:
Successfull Log examples:
Last updated