Skip to content
Command line client for Razor network
JavaScript Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
misc
.DS_Store
.eslintrc.js
.gitignore
.npmrc
README.md
api.js
config-sample.json
httpApi.js
index.js
keys_sample.json
maticBridge.js
package-lock.json
package.json
server.js
skaleBridge.js
startJobs.sh

README.md

Razor network Client

End user client for Razor network.

Installation

1.npm i
2.mv keys_sample.json keys.json
3. add api keys in keys.json
4. create directory 'keys'

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
You can’t perform that action at this time.