insolar

command
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

README

Insolar

Usage

Build
make insolar
Start insolard
./scripts/insolard/launchnet.sh -g
Send request example (RegisterNode)

You should have params.json with something like this:

{
  "params": [
   "<public_key from node config>",
    <numberOfBootstrapNodes>,
    <majorityRule>,
    [<roles>],
    "<ip>"
  ],
  "method": "RegisterNode"
}

Than use send_request command with this file:

./bin/insolar -c=send_request --config=./scripts/insolard/configs/root_member_keys.json --root_as_caller --params=params.json
Options
    -c cmd
            Command. Available commands: default_config | random_ref | version | gen_keys | gen_certificate | send_request | gen_send_configs.

    -v verbose
            Be verbose (default false).

    -o output
        Path to output file (use - for STDOUT).

    -u url
        API url (default http://localhost:19101/api).

    -g config
            Path to file with caller config or caller+params config.

    -p params
            Path to params file (default params.json).

    -r root_as_caller
            Do request from RootMember (default false).

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