Skip to content
Snippets Groups Projects
Select Git revision
  • 61d833568c9ec431ea6ea8b27f1e2da96e0c6680
  • master default protected
  • vault-support-for-all-secret-format
  • hugo/tx-comments
  • poka/dev
  • hugo/dev
  • tuxmain/mail
  • 0.3.0
  • 0.2.17
  • 0.2.16
  • 0.2.15
  • 0.2.14
  • 0.2.13
  • 0.2.12
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
  • 0.2.1
  • 0.2.0
  • 0.1.0
25 results

example.md

Blame
  • Forked from clients / Rust / Ğcli-v2s
    110 commits behind the upstream repository.

    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:

    • //2test1
    • //4test2
    • //6test3

    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

    # get duniter current block
    gcli current-block
    # 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

    You can check first that indexer is on the same network as Duniter node:

    # check if indexer is on the same chain as duniter
    gcli check-indexer-against-blockchain

    The following commands uniquely relate with indexer.

    # show latest indexer indexed block
    gcli indexer latest-block