./zwallet lockconfig
command../zwallet lockconfig
shows the global configuration for locking tokens for interest such as minimum token and minimum lock period (duration)../zwallet lock
command is used to lock tokens for interest. The tokens are deducted from the wallet balance and are available back in the wallet by unlocking. Unlocking of tokens is only possible when the lock duration has passed../zwallet lock --help
./zbox getlockedtokens
command is used to know the amount of locked tokens and how much interest is gained over time through locking.locked
variable which uses a boolean. time_left
variable has a negative value which means lock duration has not passed. Tokens earned through locking and locked tokens balance is also specified.pool_id
at a safer place as it is required to unlock tokens at a later time../zwallet unlock
command. Parameters for unlock command can be viewed using ./zwallet unlock --help
.--pool_id
is a required flag whereas --fee
flag is optional. For demonstration lets unlock the tokens we locked in the lock tokens section. The pool_id
can be viewed using the./zwallet getlockedtokens
command.