create account

Clive updates - CLI authority management and TUI Hive Power management by thebeedevs

View this thread on: hive.blogpeakd.comecency.com
· @thebeedevs ·
$235.25
Clive updates - CLI authority management and TUI Hive Power management
The new release of Clive is waiting for you. It contains new functionalities - one in CLI (command line interface) - managing the authority and one in TUI (text-based user interface) - the first part of the Hive Power management. 

### CLI authority management

Clive uses an operation account_update2_operation to allow the authority management.

Clive CLI can:
- manage an owner authority,
- manage an active authority,
- manage a posting authority,
- manage a memo key.

Each authority (owner, active, posting, except memo_key) in HIVE consists of:
- weight_threshold
- set of keys or account names with their weight.

The authority (owner, active, posting) may have more than one key and more than one account name assigned.

The update of owner authority requires an owner key - please check twice before you update an owner authority, some chances may be difficult to reverse.

The update of active or posting authority and also memo key requires an active key.

In Clive, there are separate groups of commands for each authority. Each update authority command group contains the same command for adding an account or a key with its weight, removing an account or a key and modifying the weight of an account or a key.
- `update-owner-authority`, 
- `update-active-authority`, 
- `update-posting-authority`,
- `update-memo-key` - set a memo key.

Each update authority command group contains the same command for adding an account or a key with its weight, removing an account or a key and modifying the weight of an account or a key.

![img1.png](https://images.hive.blog/DQmYbsuJwafm88C2zv5dVtRGMCSY75ado4KnWoaF3Cz9iH5/img1.png)

By default, while processing authority update operation, Clive loads current authority data from the Hive API node and creates the operation based on it. This way all actions can be performed incrementally. You can use this command in offline mode (by specifying the option `--force-offline`), but please take into account that whole authority data will be overwritten.

##### Example - how to change the posting authority

The account `guest4test4` has the following posting authority:

![img2.png](https://images.hive.blog/DQme8V6JYXWPLdQG9DDpPpjzAsqi6RT4eTHmGjtHLqig8kS/img2.png)

A user wants to change the authority:
- remove `hive.blog`,
- add an account `guest4test1` with weight 1,
- modify the key weight from 1 to 2,
- update the weight threshold from 1 to 2.

You may accomplish this by doing the separate commands or you may also create one command for all required changes.

![img3.png](https://images.hive.blog/DQmZQErm5noxynh2Ts6nC9ANLipNCuhPtm3NPqpwJKszjiW/img3.png)

Here is the operation in the blockchain:

https://hiveblocks.com/tx/40ee66614f38004869219027ecf0f079a0933bb2

The updated authority looks like this now:

![img4.png](https://images.hive.blog/DQmUmfVuZKpD3tyWK2AkrqiRNj44peAJE3Tf4DrkCuqYQ1h/img4.png)

### TUI Hive power management

The Hive power management allows to:
- make a power up - operation `transfer_to_vesting_operation`,
- make a power down - operation `withdraw_vesting_operation`,
- set withdrawal routes - operation `set_withdraw_vesting_route_operation`,
- delegate hive power - operation `delegate_vesting_shares_operation`.

There is only Power up available in this release, the next operations will be available soon.

The Hive Power management view is divided into two parts.

The first part contains general information about the balance of hive power (expressed in HP and vest) with details about owned, received, delegated, power down and effective balances. It also contains information about the next power down / withdrawal - the date and the amount.

The second part is divided into four tabs, one tab for one operation:
- Power up (`transfer_to_vesting_operation`),
- Power down (`withdraw_vesting_operation`),
- Withdraw routes (`set_withdraw_vesting_route_operation`),
- Delegate (`delegate_vesting_shares_operation`). 

![img5.png](https://images.hive.blog/DQmPcCF1pwnww2AjFwiJzZPicNDBuEWTgLTG6tvP5V4siV6/img5.png)

The Power up operation works the same as any other operation in Clive, so you may:
- Fast broadcast,
- Add to cart,
- Finalize the transaction.

[Updated command schema](https://gitlab.syncad.com/hive/clive/-/blob/master/clive/__private/cli/commands_structure.md)

[Complete list of corrected issues](https://gitlab.syncad.com/hive/clive/-/releases/v1.27.5.7)

More info about running Clive can be found here: [Clive - alpha release](/@thebeedevs/clive-alpha-release). Please make sure you are using the most recent version: **v1.27.5.7**

## TL;DR

```
docker run -ti hiveio/clive:v1.27.5.7
```

### Your feedback is invaluable and always welcome.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 260 others
👎  
properties (23)
authorthebeedevs
permlinkclive-updates-cli-authority-management-and-tui-hive-power-management
categoryhive-139531
json_metadata{"tags":["hive","dev","clive","wallet","cli"],"image":["https://images.hive.blog/DQmYbsuJwafm88C2zv5dVtRGMCSY75ado4KnWoaF3Cz9iH5/img1.png","https://images.hive.blog/DQme8V6JYXWPLdQG9DDpPpjzAsqi6RT4eTHmGjtHLqig8kS/img2.png","https://images.hive.blog/DQmZQErm5noxynh2Ts6nC9ANLipNCuhPtm3NPqpwJKszjiW/img3.png","https://images.hive.blog/DQmUmfVuZKpD3tyWK2AkrqiRNj44peAJE3Tf4DrkCuqYQ1h/img4.png","https://images.hive.blog/DQmPcCF1pwnww2AjFwiJzZPicNDBuEWTgLTG6tvP5V4siV6/img5.png"],"links":["https://hiveblocks.com/tx/40ee66614f38004869219027ecf0f079a0933bb2"],"app":"hiveblog/0.1","format":"markdown"}
created2024-02-23 19:21:51
last_update2024-02-23 19:21:51
depth0
children5
last_payout2024-03-01 19:21:51
cashout_time1969-12-31 23:59:59
total_payout_value117.652 HBD
curator_payout_value117.599 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,665
author_reputation221,734,975,973,364
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,533,690
net_rshares498,215,448,173,375
author_curate_reward""
vote details (325)
@bpcvoter3 ·
!GIF !MEME !WEED !PGM !PIZZA
>the bilpcoin team has manually curated this post  

<a href="https://imgflip.com/i/8gg416"><img src="https://i.imgflip.com/8gg416.jpg" title="made at imgflip.com"/></a><div><a href="https://imgflip.com/memegenerator">from Imgflip Meme Generator</a></div>
👎  
properties (23)
authorbpcvoter3
permlinks9cytc
categoryhive-139531
json_metadata{"image":["https://i.imgflip.com/8gg416.jpg"],"links":["https://imgflip.com/i/8gg416"],"app":"hiveblog/0.1"}
created2024-02-24 11:34:24
last_update2024-02-24 11:34:24
depth1
children2
last_payout2024-03-02 11:34:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length284
author_reputation-6,860,946,723,219
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,547,643
net_rshares-4,492,960,138,940
author_curate_reward""
vote details (1)
@hivegifbot ·
<center>https://media.tenor.com/hvl41d-D-BIAAAAC/pizabwe-pizza.gif
[Via Tenor](https://tenor.com/)</center>
👎  
properties (23)
authorhivegifbot
permlinkre-s9cytc-20240224t113434z
categoryhive-139531
json_metadata"{"app": "gifbot/2.0.0", "gifbot": {"search": "!meme !weed !pgm !pizza"}}"
created2024-02-24 11:34:33
last_update2024-02-24 11:34:33
depth2
children0
last_payout2024-03-02 11:34:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation38,192,557,766,504
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,547,647
net_rshares-4,528,362,323,131
author_curate_reward""
vote details (1)
@meme.bot ·
<img src="https://files.peakd.com/file/peakd-hive/orionvk/23tRvegy8MVUZSb5monahoSZ3ZrmBzfTB4ynVPqSAvDoKUJin7GaqJzG4QwAknUVzVCrC.jpg"><br>Credit: <a href="https://www.peakd.com/@orionvk/posts">orionvk</a><br><a href="https://www.hiveme.me/">Earn Crypto for your Memes @ HiveMe.me</a>!
👎  
properties (23)
authormeme.bot
permlinkre-s9cytc-20240224t113445z
categoryhive-139531
json_metadata"{"app": "beem/0.24.19"}"
created2024-02-24 11:34:54
last_update2024-02-24 11:34:54
depth2
children0
last_payout2024-03-02 11:34:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length283
author_reputation767,181,806,470
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,547,654
net_rshares-4,564,562,234,043
author_curate_reward""
vote details (1)
@calcifero ·
<p>Great work!</p>
properties (22)
authorcalcifero
permlinks9kiwo
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2024-02-28 13:31:45
last_update2024-02-28 13:31:45
depth1
children0
last_payout2024-03-06 13:31:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation109,256,953,738
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,652,100
net_rshares0
@darkflame ·
properties (23)
authordarkflame
permlinkre-thebeedevs-s9cxdz
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2024.1.1"}
created2024-02-24 11:03:36
last_update2024-02-24 11:03:36
depth1
children0
last_payout2024-03-02 11:03:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation93,202,918,276,837
root_title"Clive updates - CLI authority management and TUI Hive Power management"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id131,547,097
net_rshares0
author_curate_reward""
vote details (2)