Git Product home page Git Product logo

cli's Introduction

CLI

Command-line interface commands for witnesses to quickly update signings-keys, parameters or disable witness. Including RPC-failover, RPC-node as argument and robust error handling.

Installation

1.) Clone Repository and install packages

git clone https://github.com/witness-essentials/cli.git
cd cli
npm i # or yarn

2.) Edit your Config

cp configs/config.example.json configs/config.json
nano configs/config.json

Config Explanation

  • SIGNING_KEYS: Add all your signing keys here as pairs. As of HF20, you can now also update your witness with your current private signing key. This is also necessary for updating new properties.
 [{ "public": "STM7..", "private": "5JS.." }, { "public": "STM5..", "private": "5PD.." }, { .. }]

3.) Edit your ENV file (sensitive data)

touch .env
nano .env

# Add the following lines inside
ACTIVE_KEY=
  • As of HF20, the private active key is optional and/or only needed if the witness is disabled and you want to enable it again.

Start

There are 3 commands you can run. If you want to use a specific RPC_NODE, then you can use it as the 2nd argument (except for enable, where it's the 3rd argument)

Active a specific signing-key

npm run enable <ACTIVE_KEY> <RPC_NODE>

Disable your witness directly

npm run disable <RPC_NODE>

Change your witness parameters

npm run update <RPC_NODE>

Support

If you find this tool useful, consider voting for me (@therealwolf) as a witness (https://steemit.com/~witnesses) or directly with steemconnect.

cli's People

Contributors

therealwolf42 avatar

Watchers

James Cloos avatar Mahdi Yari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.