<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sreenivas Chinni on Medium]]></title>
        <description><![CDATA[Stories by Sreenivas Chinni on Medium]]></description>
        <link>https://medium.com/@schinni.vija?source=rss-5f49fa4143c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Sreenivas Chinni on Medium</title>
            <link>https://medium.com/@schinni.vija?source=rss-5f49fa4143c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 00:11:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@schinni.vija/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to make Ethereum Decentralized Application]]></title>
            <link>https://itnext.io/untitled-document-md-ecaac75e2bf?source=rss-5f49fa4143c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecaac75e2bf</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[ethereum-blockchain]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Sreenivas Chinni]]></dc:creator>
            <pubDate>Sun, 25 Mar 2018 04:57:37 GMT</pubDate>
            <atom:updated>2018-10-04T12:53:12.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zVsF1ubYJe36dmJiRC7FBw.png" /></figure><blockquote><a href="https://itnext.io/untitled-document-md-ecaac75e2bf?utm_source=medium_sharelink&amp;utm_medium=social&amp;utm_campaign=buffer"><em>Click here to share this article on LinkedIn</em></a></blockquote><p>Ethereum Decentralized Application is any kind of client application that interact with ethereum blockchain. This document provides you the guidance on how to create a decentralized application and test on ethereum blockchain</p><p><strong>Tools and Frameworks</strong></p><p>I am using followinng tools and frameworks for this application on windows platform.</p><ul><li>NodeJs &amp; NPM</li><li><a href="http://truffleframework.com/">truffle</a> — as development tool.</li><li><a href="http://truffleframework.com/ganache/">Ganache</a> — as ethereum development test network.</li><li><a href="https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn">Metamask</a> — as Web3 Api injector</li><li><a href="https://cli.angular.io/">angular-cli</a> — as framework for web client application.</li></ul><p>The steps are</p><ul><li>Download and Install Ganache</li><li>Install truffle</li><li>Create truffle project structure</li><li>Create smart contract</li><li>Compile and deploy the smart contract</li><li>Create angular 5 application</li><li>Interact with blockchain with smart contract method call</li></ul><p>1. Install Ganache</p><p>Download and install ganache based on your OS. ganache comes GUI and CLI mode. lets use GUI one now.</p><p><a href="http://truffleframework.com/ganache/">Ganache | Truffle Suite</a></p><p>If you open ganache after install, you can see 10 fake ethereum accounts with balance of 100 ether for each account.</p><p>2. Truffle Project</p><p>Install truffle using npm install -g truffle</p><p>Create a directory ‘ethereumdapp’ mkdir ethereumdapp</p><p>Create truffle project using truffle init.</p><p>D:\blockchain\ethereum&gt;npm install -g truffle<br>D:\blockchain\ethereum&gt;mkdir ethereumdapp<br>D:\blockchain\ethereum&gt;cd ethereumdapp<br>D:\blockchain\ethereum\ethereumdapp&gt;truffle init<br>Downloading...<br>Unpacking...<br>Setting up...<br>Unbox successful. Sweet!<br>Commands:<br> Compile: truffle compile<br> Migrate: truffle migrate<br> Test contracts: truffle test<br>D:\blockchain\ethereum\ethereumdapp&gt;dir<br>03/24/2018 05:15 PM &lt;DIR&gt; .<br>03/24/2018 05:15 PM &lt;DIR&gt; ..<br>03/24/2018 05:15 PM &lt;DIR&gt; contracts<br>03/24/2018 05:15 PM &lt;DIR&gt; migrations<br>03/24/2018 05:15 PM &lt;DIR&gt; test<br>03/24/2018 05:15 PM 135 truffle-config.js<br>03/24/2018 05:15 PM 135 truffle.js<br> 2 File(s) 270 bytes<br> 5 Dir(s) 222,028,505,088 bytes free</p><p>3. Create simple smart contract</p><p>Now we will create smart contract file. we use solidity as contract programminng language version 0.4.19. The purpose of this contract is to initiate a state variable called ‘name’ in the blockchain and manipulating that value of that variable by invoking our smart contract method from a dapp. User changes the name variable value and shows the change on the page.</p><p>Contract name is ‘NameChange’</p><p>View name method is ‘showName()</p><p>Change name method is changename(string)</p><p>Let’s create ‘NameChange.sol’ file under ‘contracts’ folder in our project folder(ethereumdapp). add this content to the NameChange.sol</p><pre>pragma solidity ^0.4.19;<br><br>contract NameChange{<br>	string name;<br>	function NameChange(string initialname) public {<br>		name = initialname;<br>	}<br>	function showName() public constant returns(string) {<br>		return name;<br>	}	<br>	function changename(string newname)public { <br>		name = newname;<br>    }<br>}</pre><p>4. Compile the contract</p><p>Use ‘truffle compile’ to compile the contract</p><pre>D:\blockchain\ethereum\ethereumdapp&gt;truffle compile<br>Compiling .\contracts\Migrations.sol...<br>Compiling .\contracts\NameChange.sol...<br>Writing artifacts to .\build\contracts</pre><p>It creates a NameChange.json into the /build folder, this files contains the ABI details for the contract, meaning that Application Binary Interface. The Application Binary Interface (ABI) is a data encoding scheme used in Ethereum for working with smart contract. This can be used in later stage of this process.</p><p>5. Deploy the contract</p><p>Till now, we have created smart contract and compiled. Now the time for deploy the contract to blockchain which is the ganache, the test blockchain. For that, we need to configure this project with the blockchain address and port number which is available in ganache settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*X8lq0G-95EmQSyIY13_wug.png" /></figure><p>We can provide this information truffle.js or truffle-config.js in the project folder.</p><pre>module.exports = {<br>  networks: {<br>    development: {<br>      host: &#39;127.0.0.1&#39;,<br>      port: 7545,<br>      network_id: &#39;*&#39; // Match any network id<br>    }<br>  }};</pre><p>The above config tells this deploy command to deploy contract to ganache. To deploy, use ‘truffle migrate’ command for migrate / deploy the contract.And we need tell how to create instance for contract and send initial parameters if any required to the contract constructor. for that, we need to create 2_deploy_namechange.js in migrations folder in the project</p><pre>var NameChange = artifacts.require(&quot;./NameChange.sol&quot;);<br>module.exports = function(deployer) {<br>  deployer.deploy(NameChange,&quot;initial name from chain&quot;);<br>};</pre><p>Every thing is ready to deploy the contract.</p><pre>D:\blockchain\ethereum\ethereumdapp&gt; truffle migrate<br>Using network &#39;development&#39;.<br>Running migration: 1_initial_migration.js<br>  Replacing Migrations...<br>  ... 0xd0b495e94047c454c62eaa31533491d559de11c84914b5d4a9ce0f7b5703ef57<br>  Migrations: 0x8cdaf0cd259887258bc13a92c0a6da92698644c0<br>Saving successful migration to network...<br>  ... 0xd7bc86d31bee32fa3988f1c1eabce403a1b5d570340a3a9cdba53a472ee8c956<br>Saving artifacts...<br>Running migration: 2_deploy_namechange.js<br>  Replacing NameChange...<br>  ... 0x4dcf9df45f91b76d204eb86f3e839d9257c7b15008fc5efb6b14abbe0bbdfdf2<br>  NameChange: 0x345ca3e014aaf5dca488057592ee47305d9b3e10<br>Saving successful migration to network...<br>  ... 0xf36163615f41ef7ed8f4a8f192149a0bf633fe1a2398ce001bf44c43dc7bdda0<br>Saving artifacts...</pre><p>At this stage contract is deployed to the ganache and generated a contract address.</p><p>This can confirmed in ganache transaction list</p><p>6.Dapp</p><p>This is angular 5 app that we provide user interface to the user to interact with blockchain t. We use <strong>angular-cli</strong> commands to create / run the app.</p><p>Change directory back a level and execute ‘ng new ethereumdapp’</p><pre>D:\blockchain\ethereum\ethereumdapp&gt;cd..<br>D:\blockchain\ethereum&gt;ng new ethereumdapp</pre><p>Let’s add UI for viewing the blockchain state variable value on the page and a provision for change the value.</p><p>Add following code to src\app\app.component.html</p><pre>&lt;section class=&quot;hero is-medium is-info is-bold&quot;&gt;<br>  &lt;div class=&quot;hero-body&quot;&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>      &lt;h1 class=&quot;title is-1&quot;&gt;<br>        Name change dapp<br>      &lt;/h1&gt;<br>      &lt;h2 class=&quot;title&quot;&gt;<br>        Your Name is: &lt;span class=&quot;is-medium has-underline&quot;&gt;{{name}}&lt;/span&gt;<br>      &lt;/h2&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/section&gt;<br>&lt;br&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>  &lt;h1 class=&quot;title&quot;&gt;Change Name&lt;/h1&gt;<br>  &lt;h1 class=&quot;title is-4 is-info help&quot;&gt;{{status}}&lt;/h1&gt;<br><br>  &lt;form #nameForm=&quot;ngForm&quot;&gt;<br>    &lt;div class=&quot;field&quot;&gt;<br>      &lt;label class=&quot;label&quot;&gt;New Name&lt;/label&gt;<br>      &lt;p class=&quot;control&quot;&gt;<br>        &lt;input<br>          [(ngModel)]=&quot;NewName&quot;<br>          class=&quot;input&quot;<br>          type=&quot;text&quot;<br>          placeholder=&quot;New Name&quot;<br>          name=&quot;NewName&quot;<br>          required<br>          #nameChangeModel=&quot;ngModel&quot;&gt;<br>      &lt;/p&gt;<br>      &lt;div *ngIf=&quot;nameChangeModel.errors &amp;&amp; (nameChangeModel.dirty || nameChangeModel.touched)&quot;<br>           class=&quot;help is-danger&quot;&gt;<br>          &lt;p [hidden]=&quot;!nameChangeModel.errors.required&quot;&gt;<br>            This field is required<br>          &lt;/p&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>    <br>    &lt;div class=&quot;field is-grouped&quot;&gt;<br>      &lt;p class=&quot;control&quot;&gt;<br>        &lt;button<br>          [disabled]=&quot;!nameForm.valid&quot;<br>          (click)=&quot;changeName()&quot;<br>          class=&quot;button is-primary&quot;&gt;<br>          Send<br>        &lt;/button&gt;<br>      &lt;/p&gt;<br>    &lt;/div&gt;<br>  &lt;/form&gt;<br>&lt;/div&gt;</pre><p>UI component / controller code in src\app\app.component.ts</p><pre>import { Component, HostListener, NgZone } from &#39;@angular/core&#39;;<br>const Web3 = require(&#39;web3&#39;);<br>const contract = require(&#39;truffle-contract&#39;);<br>const nameChangeArtifacts = require(&#39;../../build/contracts/NameChange.json&#39;);<br><br>declare var window: any;<br><br>@Component({<br>  selector: &#39;app-root&#39;,<br>  templateUrl: &#39;./app.component.html&#39;,<br>  styleUrls: [&#39;./app.component.css&#39;]<br>})<br>export class AppComponent {<br>  name = &#39;Initial name from component&#39;;<br>  NewName : string;<br>  nameChange = contract(nameChangeArtifacts);<br><br>  account: any;<br>  accounts: any;<br>  web3: any;<br>  status: string;<br>  constructor(private _ngZone: NgZone) {<br><br>  }<br>  @HostListener(&#39;window:load&#39;)<br>  windowLoaded() {<br>    this.checkAndInstantiateWeb3();<br>    this.onReady();<br>  }<br><br>  checkAndInstantiateWeb3 = () =&gt; {<br>    // Checking if Web3 has been injected by the browser (Mist/MetaMask)<br>    if (typeof window.web3 !== &#39;undefined&#39;) {<br>      console.warn(<br>        &#39;Using web3 detected from external source. If you find that your accounts don\&#39;t appear or you have 0 MetaCoin, ensure you\&#39;ve configured that source properly. If using MetaMask, see the following link. Feel free to delete this warning. :) http://truffleframework.com/tutorials/truffle-and-metamask&#39;<br>      );<br>      // Use Mist/MetaMask&#39;s provider<br>      this.web3 = new Web3(window.web3.currentProvider);<br>    } else {<br>      console.warn(<br>        &#39;No web3 detected. Falling back to http://127.0.0.1:8545. You should remove this fallback when you deploy live, as it\&#39;s inherently insecure. Consider switching to Metamask for development. More info here: http://truffleframework.com/tutorials/truffle-and-metamask&#39;<br>      );<br>      // fallback - use your fallback strategy (local node / hosted node + in-dapp id mgmt / fail)<br>      this.web3 = new Web3(<br>        new Web3.providers.HttpProvider(&#39;http://127.0.0.1:7545&#39;)<br>      );<br>    }<br>  };<br><br>  onReady = () =&gt; {<br>    // Bootstrap the MetaCoin abstraction for Use.<br>    this.nameChange.setProvider(this.web3.currentProvider);<br><br>    // Get the initial account balance so it can be displayed.<br>    this.web3.eth.getAccounts((err, accs) =&gt; {<br>      if (err != null) {<br>        alert(&#39;There was an error fetching your accounts.&#39;);<br>        return;<br>      }<br><br>      if (accs.length === 0) {<br>        alert(<br>          &#39;Couldn\&#39;t get any accounts! Make sure your Ethereum client is configured correctly.&#39; <br>        );<br>        return;<br>      }<br>      console.log(accs);<br>      this.accounts = accs;<br>      this.account = this.accounts[0];<br><br>      // This is run from window:load and ZoneJS is not aware of it we<br>      // need to use _ngZone.run() so that the UI updates on promise resolution<br>      this._ngZone.run(() =&gt;<br>        this.refreshName()<br>      );<br>    });<br>  };<br><br>  refreshName = () =&gt; {<br>    let nc;<br>    this.nameChange<br>      .deployed()<br>      .then(instance =&gt; {<br>        nc = instance;<br>        return nc.showName.call({<br>          from: this.account<br>        });<br>      })<br>      .then(value =&gt; {<br>        this.name = value;<br>      })<br>      .catch(e =&gt; {<br>        console.log(e);<br>        this.setStatus(&#39;Error getting name; see log.&#39;);<br>      });<br>  };<br><br>  changeName = () =&gt; {<br>    const nawname = this.NewName;<br>    let nc;<br><br>    this.setStatus(&#39;Initiating transaction... (please wait)&#39;);<br><br>    this.nameChange<br>      .deployed()<br>      .then(instance =&gt; {<br>        nc = instance;<br>        return nc.changename(nawname,{from: this.account})<br>      })<br>      .then(() =&gt; {<br>        this.setStatus(&#39;Transaction complete!&#39;);<br>        this.refreshName();<br>      })<br>      .catch(e =&gt; {<br>        console.log(e);<br>        this.setStatus(&#39;Error changing name; see log.&#39;);<br>      });<br>  };<br>  setStatus = message =&gt; {<br>    this.status = message;<br>  };<br>}</pre><p>7. Metamask</p><p>Metamask acts as web3 injector to our page.</p><ul><li>Add extension to your chrome browser</li><li>Add custom RPC with your ganache rpc url which would <a href="http://localhost:7545/">http://localhost:7545</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8lq0G-95EmQSyIY13_wug.png" /><figcaption>Ganache settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*DVQccK5rOtmBv-WmJOA3BQ.png" /><figcaption>click custom RPC</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*nn-GNcK7fMFgcW6tS9W0YA.png" /></figure><ul><li>You can see your ganache generated first account in metamask accounts list</li><li>User submits a change the name from page which invokes the contract method.</li><li>Metamask asks for confirmation, click submit on metamask confirmation.</li></ul><p>Now ready to the serve the app Change directory to the ethereumdapp</p><pre>D:\blockchain\ethereum&gt;cd ethereumdapp<br>D:\blockchain\ethereum\ethereumdapp&gt;ng serve -o</pre><p>It opens the browser with <a href="http://localhost:4200/">http://localhost:4200</a> and shows our page.</p><p>Enter the name in <strong>new name</strong> textbox and hit send button. Metamask takes confirmation to submit the transaction to the blockchain, click submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*4TVpzwX9xNmR7WDjQNc2ZQ.png" /></figure><p>once submited, your page shows the new name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*hdE4_JgNUNDP-mEOYF1cDg.png" /></figure><p>8. Conclusion</p><p>Thank you</p><p>download the source code from <a href="https://github.com/cnu-online/ethereum-dapp">https://github.com/cnu-online/ethereum-dapp</a></p><p>For help: contact</p><ul><li>Sreenivas Chinni</li><li>schinni.vija@gmail.com</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecaac75e2bf" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/untitled-document-md-ecaac75e2bf">How to make Ethereum Decentralized Application</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Private Blockchain Network with Ethereum (GETH)]]></title>
            <link>https://medium.com/@schinni.vija/create-private-blockchain-with-go-ethereum-geth-4eae6b126cc?source=rss-5f49fa4143c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eae6b126cc</guid>
            <category><![CDATA[go-ethererum]]></category>
            <category><![CDATA[geth]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[private-blockchain]]></category>
            <dc:creator><![CDATA[Sreenivas Chinni]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 06:28:41 GMT</pubDate>
            <atom:updated>2018-03-22T09:14:27.351Z</atom:updated>
            <content:encoded><![CDATA[<p>I am assuming that you already familiar with blockchain concept. So I am not explaining what is blockchain. As you know ethereum is blockchain platform to develop the public and private blockchain based solutions.</p><p>I am going to explain the way of creating a private blockchain network with go implementation of ethereum client called GETH.</p><p>What you need:</p><ol><li>Golang</li></ol><p>2. go-ethereum</p><p>Step1:</p><p>download and install go-ethereum based on your operating system. you can download geth at <a href="https://geth.ethereum.org/downloads/">https://geth.ethereum.org/downloads/</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*Zy_ZyoAG21Dl72Cj-EP83Q.png" /><figcaption><a href="https://geth.ethereum.org/downloads/">https://geth.ethereum.org/downloads/</a></figcaption></figure><p>the steps that i am showing here are based on geth v1.8.2 on windows 10 pro 64bit. I have downloaded and installed at D:\Program Files\Geth.</p><p>Step2. Create pvtbcgenesis.json file with following content in geth installed folder: D:\Program Files\Geth\pvtbcgenesis.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*0hk8nuBki6sLOwfVwvU0SA.png" /><figcaption>pvtbcgenesis.json</figcaption></figure><p>the following link explains each parameter of genesis file</p><p><a href="https://lightrains.com/blogs/genesis-json-parameter-explained-ethereum">https://lightrains.com/blogs/genesis-json-parameter-explained-ethereum</a></p><p>Step3.</p><p>Create a folder D:\Program Files\Geth\Data</p><p>Step4.</p><p>Create the blockchain database with our custom genesis file pvtbcgenesis.json</p><p>open command prompt, change directory to geth installed path and execute the following command</p><p>&gt;geth -datadir ./data init ./pvtbcgenesis.json.</p><p>you can see the output like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pfrynzOkd30RNz1RCZyOpg.png" /><figcaption>Result of creating new private blockchain using custom genesis file</figcaption></figure><p>Now, we have created a private blockchain using geth</p><p>Now let’s look at some other steps to test this private chain. for this, we need to enter in to geth console with following command</p><p>Step5.</p><p>&gt;geth -datadir ./Data -networkid 2018 console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKvIzYquNVj8O2Cv9giekw.png" /><figcaption>result of start console. console is command editor for geth commands</figcaption></figure><p>now we have entered in get console. use the same networkid and datadir for later usage of same chain.</p><p>Step6.</p><p>Since we did not specify coinbase account in genesis file, we need to create an account which can be a first and can be used as coinbase account. coinbase account is the ethereum account of miner in this single instance. when you start mining with this instance of chain, this account gets rewarded with some ether. To create an account in geth console, use following command.</p><p>&gt;personal.newAccount()</p><p>this command creates an account and returns the account address. the result looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*yxEXAsIA8Hxhw5zR3jFfCw.png" /><figcaption>account creation result</figcaption></figure><p>We just have created a new ethereum account on our new chain. let’s check the balance of this miner account</p><p>&gt;‘eth.getBalance(eth.coinbase)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*fBkLzH22Migu0pkfuB79Vw.png" /><figcaption>Shows 0, because, this miner did not do any mining yet</figcaption></figure><p>Step7.</p><p>Let execute mining command to get some ethers for miner account</p><p>&gt;miner.start()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/182/1*CqjoTSGb46mpOJsPbMWw5Q.png" /><figcaption>start mining</figcaption></figure><p>Give 10 seconds of time and check the balance again &gt; eth.getBalance(eth.coinbase)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*KFjHwWIbwPkYK45NfeTfLQ.png" /></figure><p>Step8.</p><p>Now the chain has only one account that is coinbase account or miner account. let create another account and do the transfer commands</p><p>Create another account</p><p>&gt; personal.newAccount()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*nF2vsgLd3SgrQHULru8TRg.png" /><figcaption>Second account creation</figcaption></figure><p>Check the balance using eth.getBalance(“0x64276603d68cec558ffe9e2acfd2b2087ffbfb44”)</p><p>it shows the 0, because no one send any ether to this account.</p><p>Step9.</p><p>lets do a transfer from first account to second account. to transfer ether from any account, we need to login with that ‘from account’ address</p><p>&gt; personal.unlockAccount( “0xad42c08c6e8df44a333370d9f2a22a8c5058f1c8”, “12345”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*S74pLPV2LVWG-wGJBUVsdw.png" /><figcaption>logged in to the first account / miner account / coinbase account. all are same</figcaption></figure><p>Use eth.sendTransaction command to transfer the ether to one account to another account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*xDHMa3503BOTVN8EWEbOlA.png" /><figcaption>Send transaction result. returned transaction hash</figcaption></figure><p>This transaction is now exists as unconfirmed transaction. to make it confirmed and add to blockchain as permanent record and update the balance statuses, we need to do the mining process by executing mining process</p><p>&gt;miner.start()</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*CqjoTSGb46mpOJsPbMWw5Q.png" /><figcaption>Mining after the transaction</figcaption></figure><p>Now mining is done. now check the balances of both the accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*3YTY_b_jXhOUzGLsPMb2wg.png" /><figcaption>these are dummy values may not match to prev screenshots.</figcaption></figure><p>Conclusion:</p><p>I tried to explain step by step process of creating a private blockchain using go-ethereum and do the account creating /mining / transfer of ether actions.</p><p>Thank you.</p><p>I will be back with another stuff like interacting test blockchain network from web application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eae6b126cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>