Clive Updates - Hive Power Management in CLI

in HiveDevs6 months ago

The main feature delivered in this release is Hive Power Management in CLI (command line interface). The Hive Power Management is already available in TUI (text-based user interface). You can read about it in our previous posts:

Hive Power Management in CLI

Using Hive Power Management in CLI, the user may make a power up, power down, set withdrawal routes, and delegate Hive Power. Additionally, the user may check information related to Hive Power.

Check information about Hive Power

The general information about Hive Power Management, such as VESTS/Hive Power balances, processed power down operation, defined withdrawal routes, and delegations may be checked using the following command:

clive show hive-power
Next withdrawal shows the date when the next part of the vesting stake will be converted into Hive.
To withdraw shows the amount of Power down operation.

clive show hive-power

Check information about pending power-up

The vesting shares balance after the Power-up operation is increased immediately, but the Governance voting power is delayed and will be increased after 30 days.

To check information about delayed votes, a user may use the following command:

clive show pending power-ups

clive show pending power-ups

Check information about pending power-down

The information about the next withdrawal of the power down in progress may be checked with the following command:

clive show pending power-down

clive show pending power-down

Check information about pending removed delegations

If the delegator removes the vesting shares delegation, the vesting shares are frozen for one week. You can view the frozen vesting shares using the following command:
clive show pending removed-delegations

Example from testnet:
clive show pending removed-delegations

Power up in CLI

A user may make a power up using transfer_to_vesting_operation via clive process power-up command.

clive process power-up

Example:
A user wants to make a power up for 0.1 HIVE amount.

clive process power-up --amount "0.1 HIVE" --sign alias1 --password alicealice

clive process power-up --amount "0.1 HIVE" --sign alias1 --password alicealice

Power down

The user may start a power down process using withdraw_vesting_operation and Clive CLI subcommands of clive process power-down.
In Clive CLI mode, the user may start, restart (create a new power down when an old power down is in progress, the old power down is canceled ), or cancel a power down.

image5.png

Example:
The user wants to change the amount of power down.
The user wants to check what the operation that changes the amount of power-down looks like. That is why they use the no-broadcast flag.

clive process power-down restart --amount "0.02 hive" --no-broadcast --sign alias1 --password alicealice

image4.png

Setting withdraw routes

The user may set withdrawal routes using set_withdraw_vesting_route_operation and clive process withdraw-routes subcommands.
In CLI Clive the user may set or remove a withdrawal route.

image2.png

Example:
The user wants to add a new withdrawal route.
Notice that percentage is shown multiplied by 100, that is '"percent": 100' means '1 percent'

clive process withdraw-routes set --to guest4test2 --percent 1 --sign alias1 --password alicealice

image1.png

Delegate vesting shares

The user may delegate their own shares using delegate_vesting_shares_operation via subcommands of clive process delegations. The user may delegate an amount in HP or VESTS.
In CLI Clive the user may set or remove a delegation.

image10.png

Example:
The user wants to add a delegation. The user wants to see how the operation looks, without broadcasting it.

clive process delegations set --delegatee guest4test4 --amount "0.6 hive" --no-broadcast

image3.png

Command schema

Complete list of corrected issues

More info about running Clive can be found here: Clive - alpha release. Please make sure you are using the most recent version: v1.27.5.10

TL;DR

docker run -ti hiveio/clive:v1.27.5.10

Your feedback is invaluable and always welcome.

Sort:  

👍 !PGM

Congratulations @thebeedevs! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 2750 upvotes.
Your next target is to reach 3000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Hello thebeedevs!

It's nice to let you know that your article won 🥈 place.
Your post is among the best articles voted 7 days ago by the @hive-lu | King Lucoin Curator by szejq

You and your curator receive 0.2432 Lu (Lucoin) investment token and a 8.94% share of the reward from Daily Report 295. Additionally, you can also receive a unique LUSILVER token for taking 2nd place. All you need to do is reblog this report of the day with your winnings.

2.png


Invest in the Lu token (Lucoin) and get paid. With 50 Lu in your wallet, you also become the curator of the @hive-lu which follows your upvote.
Buy Lu on the Hive-Engine exchange | World of Lu created by @szejq

If you no longer want to receive notifications, reply to this comment with the word STOP or to resume write a word START