Clive Updates - witness update operations available in the CLI
The new feature introduced in this release is not for everyone, it is for witnesses. The new command allows them to set witness properties such as the account creation fee, maximum block size, HBD interest rate, HBD exchange rate, URL as well as to change a signing (witness) key. The operation can be signed using either the active or the signing key.
Witness operations
There are the following witness operations on Hive:
witness_set_properties_operation - the newest of them all, a witness can use it to set all properties. The operation must be signed using a witness (signing) key.
witness_update_operation - an older operation that allows setting witness properties. The operation must be signed using an active authority.
feed_publish_operation- also an older operation, it allows setting only the HBD exchange rate. The operation must be signed using an active authority.
| Witness set properties operation | Witness update operation | Feed publish operation | |
|---|---|---|---|
| Account_creation_fee | Yes | Yes | No |
| Account_subsidy_budget | Yes | No | No |
| Account_subsidy_decay | Yes | No | No |
| Maximum_block_size | Yes | Yes | No |
| Hbd_interest_rate | Yes | Yes | No |
| Hbd_exchange_rate | Yes | No | Yes |
| Url | Yes | Yes | No |
| New_signing_key | Yes | Yes | No |
CLI - new command update-witness
A new command combines all three operations and allows you to use one command to set all properties. By default, a singing (witness) key is used, so operation Witness_set_properties_operation is used.
If you want to use an active authority, you should set the flag --use-active-authority and then the operations witness_update_operation or feed_publish_operation (or both) is being performed.
Example - change HBD exchange rate using a singing (witness) key
The example was run on the testnet. You can notice that the operation witness set properties was used.
clive process update-witness --hbd-exchange-rate "0.14 HBD" --sign-with witness_key
Example - change HBD exchange rate using an active key
The example was run on the testnet. You can notice that the operation feed publish operation was used.
clive process update-witness --use-active-authority --hbd-exchange-rate "0.14 HBD" --sign-with active_key
Complete list of corrected issues
The scripts that allow you to run Clive are here:
https://gtg.openhive.network/get/clive/
Your feedback is invaluable and always welcome.
Leave Clive Updates - witness update operations available in the CLI to:
Read more #hive posts
Best Posts From thebeedevs
We have not curated any of thebeedevs's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From thebeedevs
- Clive — A Modern Replacement for CLI Wallet
- Clive Updates – New Features: AutoSign, RC Management, and Transaction Expiration
- Clive Updates - All operations requiring an active or owner key are now available in CLIVE
- Developers' Guide: How Wax Lost Weight 🏋️
- Wax Just Lost Weight - And It Feels Great!
- Google Login Arrives on Denser
- Decentralized Google Login
- Healthchecker: Smarter provider selection for Hive apps
- Clive update - Manage authority in TUI and recovery account in CLI
- What was in my purse during the HiveFest 10 presentation?