Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (30 loc) · 1.32 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.32 KB

WARNING: DEPRECATED

This repository is archived and not supported anymore. Please use our new and updated CLI: https://github.com/razor-network/razor-go

Razor network Client

End user client for Razor network.

Installation

1.npm i
2.mv keys_sample.json keys.json
3. cp config-sample.json config.json
4. mkdir keys
5. add api keys in keys.json
6. create directory 'keys' 7. node index.js c <password>

Commands

Run the commands in following way:
node index.js <commands>
You can run following commands in CLI:\

-help See a list of available commands create <password> Creates a new wallet with given password. The wallets are stored in keys/ directory. WARNING: this is not a secure method of key generation, DO NOT use it for assets on mainnet.
Fund this account with rinkeby ether and rinkeby schells to start participating in the network.

stake <amount> <address> <password>
vote <address> <password>
unstake <address> <password>
withdraw <address> <password>
transfer <to> <amount> <from> <password>

<address> is the address of the wallet generated using create command.

Example

node index.js create deadbeef
node index.js stake 1000 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c deadbeef
node index.js vote 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c deadbeef