This repository is archived and not supported anymore. Please use our new and updated CLI: https://github.com/razor-network/razor-go
End user client for Razor network.
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>
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.
node index.js create deadbeef
node index.js stake 1000 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c deadbeef
node index.js vote 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c deadbeef