netcloth-chain

module
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 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) 10000000000000000000pnch
nchd add-genesis-account $(nchcli keys show alice -a) 10000000000000000000pnch

# create validator
nchd gentx \
  --amount 1000000000000pnch \
  --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 1000000000000pnch
nchcli send --from $(nchcli keys show jack -a)  --to $(nchcli keys show alice -a) --amount 1000000000000pnch

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
vm
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