Skip to content

golra03/CryptoFinder_Hackthon

Repository files navigation

Steps followed for depoyment
cd test
a. node deployContract.js contract=:BAETHToken
b. node deployContract.js contract=:UserCustomerRegistry file=true
c. node deployContract.js contract=:LoanLedger file=true


a. Create User2 on Firefox metamask plugin or
b. create 4 more new accounts on geth console with password - as password saved in pwd.txt


Process to start the geth Node PoW
geth --datadir BAETH --password pwd.txt account new > account.txt
geth --datadir BAETH --password pwd.txt account new > account.txt
geth --datadir BAETH --password pwd.txt account new > account.txt
geth --datadir BAETH --password pwd.txt account new > account.txt
geth --datadir BAETH init genesis.json
geth --datadir BAETH --networkid 2018 --unlock 0,1,2,3,4 --password pwd.txt --preload customcommands.js --mine --minerthreads 1 --rpcport 8545 --rpcaddr 0.0.0.0 --port 8000 --rpc --rpcapi="admin,db,eth,net,web3,personal" --maxpeers 3 --nat="any" --rpccorsdomain "*"  -ws --wsorigins console


eth.sendTransaction({from:eth.accounts[0], to:"0xc3E0fE903d818a87172c2aa2d7b5A6a280404e1D", value: web3.toWei(10.00, "ether")})
eth.sendTransaction({from:eth.accounts[0], to:"0x2Bb31A3486Cf3645D6322c9190cDB83dcd5aF73b", value: web3.toWei(10.00, "ether")})
eth.sendTransaction({from:eth.accounts[0], to:"0xaEC2B52C2bC5A165D100d890944b8d2b263d06ed", value: web3.toWei(10.00, "ether")})
eth.sendTransaction({from:eth.accounts[0], to:"0xE0F4Ec34bdb78FcBC1E13D71cFFa2DfE6E14095F", value: web3.toWei(10.00, "ether")})