You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation
It is hard to find out the ID of the admin chain, or to check the
contents of blocks using the CLI client.
## Proposal
This PR adds some useful commands to the client:
`show-network-description` (which contains the admin chain ID), `chain
show-chain-description` and `chain show-block`.
## Test Plan
Tested manually.
## Release Plan
TBD (could be backported to the testnet and devnet branches, but it's
not strictly necessary).
## Links
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
@@ -80,6 +84,7 @@ Client implementation and command-line tool for the Linera blockchain
80
84
*`set-preferred-owner` — Change the preferred owner of a chain
81
85
*`change-application-permissions` — Changes the application permissions configuration
82
86
*`close-chain` — Close an existing chain
87
+
*`show-network-description` — Print out the network description
83
88
*`local-balance` — Read the current native-token balance of the given account directly from the local state
84
89
*`query-balance` — Simulate the execution of one block made of pending messages from the local inbox, then read the native-token balance of the account from the local state
85
90
*`sync-balance` — (DEPRECATED) Synchronize the local state of the chain with a quorum validators, then query the local balance
@@ -108,6 +113,7 @@ Client implementation and command-line tool for the Linera blockchain
108
113
*`assign` — Link the owner to the chain. Expects that the caller has a private key corresponding to the `public_key`, otherwise block proposals will fail when signing with it
109
114
*`retry-pending-block` — Retry a block we unsuccessfully tried to propose earlier
110
115
*`wallet` — Show the contents of the wallet
116
+
*`chain` — Show the contents of the wallet
111
117
*`project` — Manage Linera projects
112
118
*`net` — Manage a local Linera Network
113
119
*`storage` — Operation on the storage
@@ -331,6 +337,14 @@ A closed chain cannot execute operations or accept messages anymore. It can stil
331
337
332
338
333
339
340
+
## `linera show-network-description`
341
+
342
+
Print out the network description
343
+
344
+
**Usage:**`linera show-network-description`
345
+
346
+
347
+
334
348
## `linera local-balance`
335
349
336
350
Read the current native-token balance of the given account directly from the local state.
@@ -1016,6 +1030,44 @@ Forgets the specified chain, including the associated key pair
1016
1030
1017
1031
1018
1032
1033
+
## `linera chain`
1034
+
1035
+
Show the contents of the wallet
1036
+
1037
+
**Usage:**`linera chain <COMMAND>`
1038
+
1039
+
###### **Subcommands:**
1040
+
1041
+
*`show-block` — Show the contents of a block
1042
+
*`show-chain-description` — Show the chain description of a chain
0 commit comments