cosmos-iot

module
v0.1.2-0...-bccb0d0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT

README

cosmos-iot

A Cosmos Blockchain implementation for small IoT devices

build project

make install

It will generate Dafecsd and qonicli commands to run daemon and cli.

run project

Remove any previous running node

rm -rf ~/.Dafecsd
rm -rf ~/.Dafecscli

Init chain and a genesis account to mint coins

Dafecsd init node1 --chain-id Dafecs
Dafecscli config chain-id Dafecs
Dafecscli config output json
Dafecscli config indent true
Dafecscli config trust-node true
Dafecscli config keyring-backend test
Dafecscli keys add Dafecsgenesis
Dafecsd add-genesis-account $(Dafecscli keys show Dafecsgenesis -a) 1000000000000000000qon

Use qon as currency denomination, you can change if you want

sed -i 's/stake/qon/gi' ~/.Dafecsd/config/genesis.json

Enable validator

Dafecsd gentx --name Dafecsgenesis --amount 1000000qon --keyring-backend test
Dafecsd collect-gentxs

Start daemon

Dafecsd start

Start rest server

Dafecscli rest-server

https://github.com/Dafecs/Dafecs-client https://github.com/Dafecs/Dafecs-pi https://github.com/Dafecs/cosmos-client

Jump to

Keyboard shortcuts

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