Use "/" to Search
# Set up a Pricefeeder (Mainnet)
Instructions for validators to set up a Mainnet pricefeeder.
Install the pricefeeder binary
Setup the systemd service
See below for an explanation for the environment variables.
# Environment Variables
Name | Description | Example |
---|---|---|
CHAIN_ID | the chain id | cataclysm-1 |
GRPC_ENDPOINT | the endpoint to fetch query params send txs | localhost:9090 if running locally lcd.nibiru.fi:443 if running remotely |
WEBSOCKET_ENDPOINT | the endpoint to fetch streaming updates | ws://localhost:26657/websocket if running locally wss://rpc.nibiru.fi/websocket if running remotely |
FEEDER_MNEMONIC | the account that sends price votes | guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host |
VALIDATOR_ADDRESS | (OPTIONAL) the validator to send price votes for, not needed if the FEEDER_MNEMONIC is the validator mnemonic | nibivaloper1zaavvzxez0elundtn32qnk9lkm8kmcszuwx9jz |
# How to delegate pricefeeder responsibility
As a validator, if you'd like another account to post prices on your behalf (i.e. you don't want your validator mnemonic sending txs), you can delegate pricefeeder responsibilities to another nibi address.
Now that address can start sending votes on behalf of your validator. Just make sure that the FEEDER_MNEMONIC corresponds to the delegated address and the VALIDATOR_ADDRESS is set.