netcloth-chain

module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0

README

netcloth-chain

An efficient blockchain network.

QuickStart

Install

Install nch from here

Run

init

# Initialize configuration files and genesis file
nchd init local-nch --chain-id nch-chain

# Copy the `Address` output here and save it for later use 
nchcli keys add jack

# Copy the `Address` output here and save it for later use
nchcli keys add alice

# Add both accounts, with coins to the genesis file
nchd add-genesis-account $(nchcli keys show jack -a) 1000000000000unch
nchd add-genesis-account $(nchcli keys show alice -a) 1000000000000unch

# create validator
nchd gentx \
  --amount 1000000unch \
  --commission-rate "0.10" \
  --commission-max-rate "0.20" \
  --commission-max-change-rate "0.10" \
  --pubkey $(nchd tendermint show-validator) \
  --name alice

# collect gentx
nchd collect-gentxs


# Configure your CLI to eliminate need for chain-id flag
nchcli config chain-id nch-chain
nchcli config output json
nchcli config indent true
nchcli config trust-node true

run nchd

nchd start --log_level "*:debug" --trace

transfer asset

# transfer asset
nchcli send --from $(nchcli keys show jack -a)  --to $(nchcli keys show alice -a) --amount 1unch

query account

nchcli query account  $(nchcli keys show jack -a)
nchcli query account  $(nchcli keys show alice -a)

Directories

Path Synopsis
Package baseapp contains data structures that provide basic data storage functionality and act as a bridge between the ABCI interface and the SDK abstractions.
Package baseapp contains data structures that provide basic data storage functionality and act as a bridge between the ABCI interface and the SDK abstractions.
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/client/context ALIASGEN: github.com/NetCloth/netcloth-chain/client/flags ALIASGEN: github.com/NetCloth/netcloth-chain/client/keys ALIASGEN: github.com/NetCloth/netcloth-chain/client/lcd ALIASGEN: github.com/NetCloth/netcloth-chain/client/rest ALIASGEN: github.com/NetCloth/netcloth-chain/client/rpc ALIASGEN: github.com/NetCloth/netcloth-chain/client/tx ALIASGEN: github.com/NetCloth/netcloth-chain/client/utils ALIASGEN: github.com/NetCloth/netcloth-chain/client/input
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/client/context ALIASGEN: github.com/NetCloth/netcloth-chain/client/flags ALIASGEN: github.com/NetCloth/netcloth-chain/client/keys ALIASGEN: github.com/NetCloth/netcloth-chain/client/lcd ALIASGEN: github.com/NetCloth/netcloth-chain/client/rest ALIASGEN: github.com/NetCloth/netcloth-chain/client/rpc ALIASGEN: github.com/NetCloth/netcloth-chain/client/tx ALIASGEN: github.com/NetCloth/netcloth-chain/client/utils ALIASGEN: github.com/NetCloth/netcloth-chain/client/input
lcd
lcd/statik
Package statik contains static assets.
Package statik contains static assets.
rpc
cmd
keys/hd
Package hd provides basic functionality Hierarchical Deterministic Wallets.
Package hd provides basic functionality Hierarchical Deterministic Wallets.
modules
auth
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: nolint
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: nolint
auth/types
nolint noalias
nolint noalias
bank
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
crisis
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/crisis/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/crisis/types
nolint
nolint
distribution/types
nolint nolint
nolint nolint
genaccounts
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
genutil
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
gov
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories:
gov/types
nolint
nolint
mint
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/mint/internal/keeper ALIASGEN: github.com/NetCloth/netcloth-chain/modules/mint/internal/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/mint/internal/keeper ALIASGEN: github.com/NetCloth/netcloth-chain/modules/mint/internal/types
mint/internal/keeper
nolint:deadcode unused
nolint:deadcode unused
nch
simulation
Package simulation implements a simulation framework for any state machine built on the SDK which utilizes auth.
Package simulation implements a simulation framework for any state machine built on the SDK which utilizes auth.
slashing
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/slashing/types nolint
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/NetCloth/netcloth-chain/modules/slashing/types nolint
nolint
staking/types
nolint
nolint
sim
module
Package module contains application module patterns and associated "manager" functionality.
Package module contains application module patterns and associated "manager" functionality.
rest
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
Package rest provides HTTP types and primitives for REST requests validation and responses handling.
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.
Package version is a convenience utility that provides SDK consumers with a ready-to-use version command that produces apps versioning information based on flags passed at compile time.

Jump to

Keyboard shortcuts

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