Skip to content
Snippets Groups Projects
Select Git revision
  • c4f8f3dd97ab4d78ab8f9c0ad0eed2a9923f9736
  • 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
    • Hugo Trentesaux's avatar
      4166a7b4
      add vault (!22) · 4166a7b4
      Hugo Trentesaux authored
      * move into function
      
      * remove unnecessary complexity
      
      * wip add phrase generation
      
      * prepare 0.2.7 release
      
      * remove dep
      
      * add predefined keys and update doc
      
      * wip add save from cmd line
      
      * improve error management
      
      * allow to store password-protected secret
      
      * wip use rage for password-encrypted keys
      
      * wip poc for keystore
      4166a7b4
      History
      add vault (!22)
      Hugo Trentesaux authored
      * move into function
      
      * remove unnecessary complexity
      
      * wip add phrase generation
      
      * prepare 0.2.7 release
      
      * remove dep
      
      * add predefined keys and update doc
      
      * wip add save from cmd line
      
      * improve error management
      
      * allow to store password-protected secret
      
      * wip use rage for password-encrypted keys
      
      * wip poc for keystore

    Examples of gcli commands for copy-paste

    Configuration

    It can be handful to use Ǧcli with a configuration file to avoid passing arguments on every command.

    # show config commands
    gcli config
    # show where config file is stored
    gcli config where
    # save config to use gdev network for next commands
    gcli --network gdev config save
    # save config to use Alice predefined account
    gcli -S predefined -s Alice config save
    # the arguments above can be combined
    # command below sets local network and predefined secret
    gcli --network local -S predefined -s Alice config save

    In the following, we assume this last command was run. More about the config in config.md.

    Commands

    Here is a list of useful commands

    # get duniter current block
    gcli blockchain current-block
    # get balance of configured account
    gcli account balance
    # get identity information without indexer
    gcli --no-indexer identity get -a 5Hn2LeMZXPFitMwrmrGucwtAPSLEiP4o5zTF7kHzMBtEkJUr 
    # get information about Alice identity (needs indexer)
    gcli identity get --username Alice
    # claim universal dividends
    gcli ud claim
    # transfer 5000 units
    gcli account transfer 5000 5E4i8vcNjnrDp21Sbnp32WHm2gz8YP3GGFwmdpfg5bHd8Whb

    For testing purpose it can be useful to submit extrinsic without waiting for result and create block manually.

    # only submit extrinsic to network and do not listen to result
    gcli --no-wait account transfer 1234 5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa
    # create block manually (with manual sealing)
    gcli blockchain create-block

    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