technologies2

Blogs

Told You, We Love Sharing!

  • An Easy Guide to Connecting the Ethereum Wallet to a Private Blockchain

    Connect Ethereum Wallet to a Private Network

    How to Connect Ethereum Wallet to a Private Network

    Mist and Ethereum wallet are the tools offered by the Ethereum group to manage Ethereum accounts. Connect the Mist and Ethereum with the testnet/mainnet blockchains to test the network functionality and develop smart contracts.

    However, let’s understand the difference between Mist and Ethereum

    Mist

    Mist can be referred to as the browser for DApps (decentralized web apps). What Google Chrome and Mozilla Firefox are for the web 2.0, the Mist browser is for the web 3.0 (completely decentralized).

    Still, in its initial development, Mist is not preferred for visiting untrusted DApps (decentralized apps) until the due diligence is conducted. The latest release of Mist enables you to access any Ethereum based decentralized applications with the Mist browser.

    Ethereum Wallet DApp

    All other releases than ‘Mist’ can’t be referred to as Mist releases. In reality, they are a bundle of Mist Browser with a single decentralized application: the Ethereum wallet, also called as the Meteor DApp wallet.

    Thus, these releases are known as Ethereum Wallet as it only gives a bundle of the Mist Browser with a single DApps: the wallet.

    Mist and Ethereum wallet, both are run as full nodes, so that they connect with the Blockchain through Go ethereum executable for staying synchronized with the network, instead of as light nodes which are connected through an online service that runs its own geth executable. Both Mist and Ethereum wallet gives the alternative to connect to the testnet/mainnet blockchain along with the mining option, though, only available on the testnet.

    In this blog, we’ll be focusing on the Ethereum wallet to enable a connection with a geth instance to connect to a private blockchain.

    Following are steps to Connect Ethereum Wallet to a Private Network

    To Connect Ethereum Wallet to a Private Network, try connecting to a local geth instance without tweaking the code of the wallet. Now, create a clone of the given repositories:

    1) Mist: https://github.com/ethereum/mist.git
    2) Ethereum Wallet: https://github.com/ehtereum/meteor-dapp-wallet.git

    Please, remain synced with the stable branch, also called the master branch.

    After the installation of the related tools, try connecting to a local node streaming on a private blockchain network.

    //Start Geth in a private network setting - 
    geth --datadir localNode --networkid 12345 --rpc --rpcapi miner,admin,net,txpool --rpcport 8001 --port 8002 console
    //Run the electron wallet app to connect with the private network geth
    electron . --mode wallet --rpc localhost:8001 
    //or connect through IPC communication
    electron . --mode wallet --rpc pathToLocalNode/geth.ipc
    

    Change the Source code to execute the Ethereum wallet forthwith on the private blockchain.

    a) In mist/modules/Setting.js

    //Setting the localNode ipc path for Ubuntu
    ipcPath += 'pathToLocalNode/geth.ipc'
    

    b) In mist/modules/Ethereum.js

    //Using our local geth instance and other private blockchain params , change the args parameter to this
    args = ['--fast','--datadir',pathToLocalNode , '--networkid' , 12345
    

    Later, now you can test the private blockchain connection by running the electron application in the wallet mode and the move further to build the binaries.

    Now, if you’ve any suggestion or queries regarding this blog, that you want to ask, directly connect with us here, and find us at your disposal in no time.


No Comments Yet.


Leave a Comment

Name is required

Comment is required




Latest Trends

Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.