Stake
If you have a minimum of 1000 razors in your account, you can stake those using the addStake command.
razor cli
$ ./razor addStake --address <address> --value <value> --logFile <filename>
docker
docker exec -it razor-go razor addStake --address <address> --value <value> --logFile <filename>
Example:
$ ./razor addStake --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c --value 1000 --logFile logs
Note: --pow flag is used to stake floating number stake
Note: Formula for calculating pow: (value * (1018)) / (10x) where x is no of decimal places and value is integer
The value of pow is : 18 - x here
If you have a 1000.25 razors in your account, you can stake those using the stake command with pow flag.
Example:
$ ./razor addStake --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c --value 100025 --pow 16 --logFile logs
If you have a 5678.1001 razors in your account, you can stake those using the stake command with pow flag.
If you have a 5678.1001 razors in your account, you can stake those using the stake command with pow flag.
Example:
$ ./razor addStake --address 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c --value 56781001 --pow 14 --logFile logs