bnscli

command
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 56 Imported by: 0

README

bnscli

bnscli provides a set of commands to create, modify and submit messages. Each command provides a minimal set functionality. Commands are intended to be combined into pipelines using UNIX pipes.

Command information

To get the list of all available command, type bnscli. Each command provides further explanation. Use -help flag to learn more about each command.

$ bnscli submit -help
Read binary serialized transaction from standard input and submit it.

Make sure to collect enough signatures before submitting the transaction.
-tm string
    Tendermint node address. Use proper NETWORK name. You can use
    BNSCLI_TM_ADDR environment variable to set it. (default
    "https://bns.NETWORK.iov.one:443")

Combine commands using UNIX pipe

Each command provides a small portion of functionality expected by any workflow. Combine them using UNIX pipes to create a powerful pipelines.

Cookbook

For example usage of commands as well as pipelines, see clitests/ directory. Files with extension .test contains short code snippets.

Notice that all pipelines end with bnscli view. This displays the transaction. To submit it, after the transaction is prepared, sign it and submit it. This is done by piping the transaction to bnscli:

<build tx with bnscli> | bnscli sign | bnscli submit

To sign and submit you must provide the signature key and set tendermint adderess. Both can be set via environment variables BNSCLI_PRIV_KEY and BNSCLI_TM_ADDR.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL