Tutorial:Muse Witness Price Feed Publishing

in #muse6 years ago (edited)

Install nodejs if you haven't

Follow insturctions on https://nodejs.org/en/download/package-manager/, choose the appropriate distribution for your operating system.

Install pm2

pm2 is a tool that makes nodejs program run in background.

$ sudo npm install pm2 -g

Download price feed publishing tool and it's dependencies

$ git clone https://github.com/Tadasu85/pricefeed.git
$ cd pricefeed
$ npm install

Edit configuration file

Open config.json with your editor, and replace account and active_key field with your own, just leave other fields as it is :

{
  "account": "Witness Account Name",  // modify it!
  "active_key": "Witness Active Private Key",  // modify it!
  "exchanges": [],
  "interval": 60,
  "peg_multi": 1
}

Remember to save it before going ahead.

Publishing price feed

$ pm2 start feed.js

Now price feed publishing with your account is done.

If this post helps you, please vote for my witness account david.

Sort:  

Awesome post david.
Well worth the resteem!
Thanks for the support. I'm about to update the community I will make sure to link to this.

Thanks~ Very glad to contribute to muse community, it's a very promising project~