Tutorial deploy node with Ethereum blockchain
Maxime Blaszka – 22/08/2018
OS : linux (ubuntu)
Before that, install ethereum client : [Link]
1) Create directory for your node
$> mkdir ethnetwork
2) Create [Link] file in ethnetwork
$> touch [Link]
3) Paste the following code in [Link] file
{
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"nonce": "0x0000000000000033",
"timestamp": "0x0",
"parentHash":
"0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x8000000",
"difficulty": "0x100",
"mixhash":
"0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc":{}
}
4) Init [Link] file
$> geth --datadir=. init [Link]
5) Back to parent-folder and launch your node
$> geth --rpc --rpcport {your_port} -rpcaddr {your_ip} --rpccorsdomain "*"
--datadir "ethnetwork/" --identity "Private" --networkid 15 --nodiscover --
maxpeers 0 console
6) Create two accounts inside your node console
$> [Link]("password")
$> [Link]("password")
7) Start mining
$> [Link](2)
8) Open new terminal, go to ethnetwork folder, open another console
$> geth attach [Link]
9) Unlock your accounts
$> [Link]([Link][0], "password",
15000);
$> [Link]([Link][1], "password",
15000);
10) Send ether to your accounts
$> [Link]([Link][0])
$> [Link]([Link][1])
11) Test transfer of ethers
$> var sender = [Link][0];
$> var receiver = [Link][1];
$> var amount = [Link](0.001, "ether");
$> [Link]({from:receiver, to:sender, value: amount});