Skip to content
Snippets Groups Projects
Select Git revision
  • 3d500dc8d3f66e005e72c44b3bf6ac461ae4c37b
  • master default protected
  • feature/osx-applesilicon
  • 1.6.5_fixed
  • bugfix/osx-bugfixes
  • bugfix/build-ionic
  • feature/no-member-login-browser
  • feature/macos-support
  • feature/ios-support
  • issue_4
  • issue_780
  • gitlab_migration_1
  • dev
  • rml8
  • v1.6.1
  • v1.6.0
  • v1.5.12
  • v1.5.11
  • v1.5.10
  • v1.5.9
  • v1.5.8
  • v1.5.7
  • v1.5.6
  • v1.5.5
  • v1.5.4
  • v1.5.3
  • v1.5.2
  • v1.5.1
  • v1.4.20
  • v1.4.19
  • v1.4.18
  • v1.4.17
  • v1.4.16
  • v1.4.15
34 results

directives.js

Blame
  • Forked from clients / Cesium-grp / Cesium
    Source project has a limited visibility.

    gcli

    CLI client for Duniter-V2S.

    Using

    Download from release or build with cargo build.

    Usage

    If using a different runtime, update the metadata for the client to compile:

    subxt metadata -f bytes > res/metadata.scale

    Send 10 ĞD from Alice to Ferdie:

    cargo run -- --url ws://localhost:9944 --secret //Alice transfer 1000 5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL

    List certifications and session keys that will expire within one month:

    cargo run -- --url wss://gdev.p2p.legal:443/ws expire --blocks 432000

    For more examples see in the example file.

    Log level

    You can adjust the log level:

    export RUST_LOG=gcli=info

    Runtime metadata

    To update runtime metadata:

    subxt metadata -f bytes > res/metadata.scale

    Smith

    You want to rotate keys and go online to start forging blocks.

    Smith nodes must not expose a public RPC API. Then you can either use SSH directly, or make an SSH bridge by adding this to your local .bashrc:

    alias duniter-rpc='ssh -L 9944:localhost:9944 duniter@gdev.example.tld'

    Now the command duniter-rpc will open an SSH session and a bridge to your RPC API.

    When your node is ready to forge blocks, rotate keys and go online:

    gcli --secret "my secret phrase" update-keys
    gcli --secret "my secret phrase" go-online

    Keys

    Secret and/or public keys can always be passed using --secret and --address. If needed, stdin will be prompted for secret key. An error will occur if secret and address are both given but do not match.

    Secret key format can be changed using --secret-format with the following values:

    • substrate: a Substrate secret address (optionally followed by a derivation path), or BIP39 mnemonic
    • seed: a 32-bytes seed in hexadecimal (Duniter v1 compatible)