# Start your own localnet

# Initialize configuration files and genesis file

$ nbrd init <your_moniker> --chain-id testchain
1

Copy the Address output here and save it for later use

$ nbrcli keys add jack
1

Add account with tokens to the genesis file.

$ nbrd add-genesis-account $(nbrcli keys show jack -a) 100000000quark,100000000lepton
1

Default denom is stake, so if you want to customize the denom(ex:quark, lepton), you have to edit genesis.json like below command.

$ sed -i "s/\"stake\"/\"quark\"/g" ~/.nbrd/config/genesis.json
1

if you use Mac, then the command should be like this.

$ sed -i "" "s/\"stake\"/\"quark\"/g" ~/.nbrd/config/genesis.json
1

Configure your CLI to eliminate need for chain-id flag

$ nbrcli config chain-id testchain
$ nbrcli config output json
$ nbrcli config indent true
$ nbrcli config trust-node true
1
2
3
4
# gentx is the create-validator command from genesis state, deciding how much token is self-delegated at the first place.
$ nbrd gentx --amount 100000000quark --name jack
$ nbrd collect-gentxs
$ nbrd validate-genesis
1
2
3
4

Now let's start!

$ nbrd start
1