./zwallet lockconfigshows the global configuration for locking tokens for interest such as minimum token and minimum lock period (duration).
./zwallet lockcommand 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 getlockedtokenscommand is used to know the amount of locked tokens and how much interest is gained over time through locking.
lockedvariable which uses a boolean.
time_leftvariable has a negative value which means lock duration has not passed. Tokens earned through locking and locked tokens balance is also specified.
pool_idat a safer place as it is required to unlock tokens at a later time.
./zwallet unlockcommand. Parameters for unlock command can be viewed using
./zwallet unlock --help.
--pool_idis a required flag whereas
--feeflag is optional. For demonstration lets unlock the tokens we locked in the lock tokens section. The
pool_idcan be viewed using the