lockinblock
v1.0.0
Published
tool for commiting code to eth blockchain
Downloads
3
Maintainers
Readme
Clone repository
git clone https://github.com/VadimInshakov/lockinblock.git
Create account
geth account new --datadir ~/ethdir
Then copy and paste account address to ./chain/genesis.json and ./web3/config.json
Start local blockchain
Set chainId (network id) in ./chain/genesis.json, then
cd lockinblock
geth -datadir ~/ethdir init ./chain/genesis.json
geth --mine --rpc --networkid <network id> --datadir ~/ethdir --miner.etherbase <your account address> --miner.threads <number of threads>
Unlock account
geth attach ipc:<IPC address of your local node>
personal.unlockAccount('<your account address>')
exit
Now you can use tool
./web3/node lockinblock.js push --config ./web3/
- save code to chain
./web3/node lockinblock.js pull --config ./web3/
- pull code from chain