Skip to content
Snippets Groups Projects
Select Git revision
  • 31c178383ac728fd199673d2a03aaac52db3c44c
  • master default protected
  • elois-ci-refactor protected
  • gtest
  • hugo/gtest
  • json-output
  • nostr
  • 48-error-base-58-requirement-is-violated
  • no-rename
  • hugo/tx-comments
  • poka/dev
  • hugo/dev
  • tuxmain/mail
  • test-gtest
  • 0.4.3-gtest-RC1
  • 0.4.3-RC2
  • 0.4.3-RC1
  • 0.4.2
  • 0.4.1
  • 0.4.0
  • 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
33 results

example.md

Blame
  • 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 indexer check

    The following commands uniquely relate with indexer.

    # show latest indexer indexed block
    gcli indexer latest-block