Skip to content
Snippets Groups Projects
Commit f528c49d authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

add command examples

parent 090980ca
No related branches found
No related tags found
1 merge request!5add features and refac data
...@@ -20,6 +20,8 @@ List certifications and session keys that will expire within one month: ...@@ -20,6 +20,8 @@ List certifications and session keys that will expire within one month:
cargo run -- --url wss://gdev.p2p.legal:443/ws expire --blocks 432000 cargo run -- --url wss://gdev.p2p.legal:443/ws expire --blocks 432000
For more examples see [in the example file](./doc/example.md).
#### Log level #### Log level
You can adjust the log level: You can adjust the log level:
......
# Examples of gcli commands for copy-paste
Useful when developing: replace `gcli` by `cargo run --` to build in debug mode and launch gcli.
## Mnemonics
Used in duniter-indexer genesis config:
`pipe paddle ketchup filter life ice feel embody glide quantum ride usage`
with derivations:
- `//2``test1`
- `//4``test2`
- `//6``test3`
Used in substrate for Alice, Bob and Co:
`bottom drive obey lake curtain smoke basket hold race lonely fit walk`
with derivations:
- `//Alice`
- `//Bob`
- `//Charlie`
- ...
## Commands
```sh
# get balance of test1 account
gcli --address 5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa get-balance
# get information about test1 identity (needs indexer)
gcli identity --username test1
# show address of given secret
gcli --secret "pipe paddle ketchup filter life ice feel embody glide quantum ride usage"//2 show-address
```
## Indexer commands
These commands uniquely relate with indexer
```sh
# show latest indexer indexed block
gcli indexer latest-block
```
\ No newline at end of file
...@@ -266,7 +266,7 @@ async fn main() -> Result<(), GcliError> { ...@@ -266,7 +266,7 @@ async fn main() -> Result<(), GcliError> {
match args.subcommand { match args.subcommand {
Subcommand::GetBalance => { Subcommand::GetBalance => {
data = data data = data
.build_keypair() .build_address()
.build_client() .build_client()
.await .await
.fetch_system_properties() .fetch_system_properties()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment