• bitcoinBitcoin(BTC)$20,268.00-3.12%
    BITCOIN
    24H : -3.12%
    Volume : $17,834,771,403.00
    Marketcap : $386,598,213,562.00
  • ethereumEthereum(ETH)$1,159.93-3.77%
    ETHEREUM
    24H : -3.77%
    Volume : $12,968,618,996.00
    Marketcap : $140,681,356,466.00
  • tetherTether(USDT)$1.0000.090%
    TETHER
    24H : 0.090%
    Volume : $48,485,092,981.00
    Marketcap : $66,863,539,707.00
  • usd-coinUSD Coin(USDC)$1.000.120%
    USD COIN
    24H : 0.120%
    Volume : $4,547,563,966.00
    Marketcap : $55,645,129,055.00
  • binancecoinBNB(BNB)$232.75-0.59%
    BNB
    24H : -0.59%
    Volume : $997,620,681.00
    Marketcap : $37,987,774,184.00
  • binance-usdBinance USD(BUSD)$1.000.050%
    BINANCE USD
    24H : 0.050%
    Volume : $4,962,919,887.00
    Marketcap : $17,438,776,050.00
  • rippleXRP(XRP)$0.341-4.02%
    XRP
    24H : -4.02%
    Volume : $996,996,415.00
    Marketcap : $16,469,360,135.00
  • cardanoCardano(ADA)$0.474-3.19%
    CARDANO
    24H : -3.19%
    Volume : $668,751,570.00
    Marketcap : $16,027,977,604.00
  • solanaSolana(SOL)$36.09-6.86%
    SOLANA
    24H : -6.86%
    Volume : $1,256,212,791.00
    Marketcap : $12,370,105,318.00
  • dogecoinDogecoin(DOGE)$0.067-7.86%
    DOGECOIN
    24H : -7.86%
    Volume : $462,990,062.00
    Marketcap : $8,915,693,067.00
Cointelegraph.com.au
  • bitcoin
    BTC$20,268.00-3.12%
  • ethereum
    ETH$1,159.93-3.77%
  • tether
    USDT$1.0000.090%
  • usd-coin
    USDC$1.000.120%
  • binancecoin
    BNB$232.75-0.59%
    • News
      • Bitcoin News
      • Ethereum News
      • Altcoin News
      • Press Releases
      • Analysis
      • ICO News
      • Technology
    • Videos
      • Altcoin Videos
      • Bitcoin Videos
      • Blockchain Videos
      • Ethereum Videos
      • ICO Videos
    • Crypto Exchanges
    • Market Cap
    • ICOs
    • Submit Press Release
    • Contact Us
    No Result
    View All Result
    • News
      • Bitcoin News
      • Ethereum News
      • Altcoin News
      • Press Releases
      • Analysis
      • ICO News
      • Technology
    • Videos
      • Altcoin Videos
      • Bitcoin Videos
      • Blockchain Videos
      • Ethereum Videos
      • ICO Videos
    • Crypto Exchanges
    • Market Cap
    • ICOs
    • Submit Press Release
    • Contact Us
    No Result
    View All Result
    Cointelegraph.com.au
    No Result
    View All Result
    Home Videos Ethereum Videos

    2 How to create a local private multi-node Ethereum network (geth console) – Ethereum from scratch:

    Matt Thomas by Matt Thomas
    March 5, 2017
    in Ethereum Videos
    Reading Time: 2 mins read
    4k 256
    0
    2 How to create a local private multi-node Ethereum network (geth console)  – Ethereum from scratch:
    5k
    SHARES
    38.8k
    VIEWS
    Share on FacebookShare on Twitter



    Part two of my hands on tutorial series on Ethereum. In the first video we installed Geth – in this one we actually get our hands dirty and start using it.

    We are just creating a private local ethereal network – with two nodes – I show how to initialise a new blockchain from a sample genesis block, how to start the javascript console and some basic commands to get you started.

    Related articles

    Polkadot vs Ethereum Price Prediction: How High Can DOT and ETH Go? | Token Metrics Live Stream

    Polkadot vs Ethereum Price Prediction: How High Can DOT and ETH Go? | Token Metrics Live Stream

    August 24, 2020
    Elon Musk –  SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    August 24, 2020

    I start a miner, show the block height increasing and that the blockchain is being communicated across both separate nodes.

    This is intended to be a very hands on tutorial so please follow along.

    ______________________________________________________________

    Here is the script from the session.

    NOTE angle brackets i.e. the GREATER THAN SYMBOL are not allowed in the description so I’ve replaced with &gt – you need to replace with the GREATER THAN symbol when running the command

    0. Set up the environment

    cd ~
    mkdir ethereum

    echo ‘export ethereum_home=/Users/mattthomas/ethereum’ (double right arrow) ~/.bash_profile ~/.bash_profile

    cd ethereum
    vi $ethereum_home/genesis.json
    (pasre this with cmd v in edit mode)

    {
    “nonce”: “0x0000000000000042”,
    “timestamp”: “0x0”,
    “parentHash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
    “extraData”: “0x0”,
    “gasLimit”: “0x8000000”,
    “difficulty”: “0x400”,
    “mixhash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
    “coinbase”: “0x3333333333333333333333333333333333333333”,
    “alloc”: {
    }
    }

    Save with esc !wq

    1. initialise the block
    geth –datadir “$ethereum_home/youtube1” init “$ethereum_home/genesis.json”

    2. start the console
    geth –datadir “$ethereum_home/chain5” console 2 &gt console.log

    3.create a 2nd node
    geth –datadir “$ethereum_home/youtube1-a” init “$ethereum_home/genesis.json”

    4. Start on a different port and specify networkid
    geth –datadir “$ethereum_home/youtube1-a” –port 30304 –nodiscover –networkid 1234 console 2 &gt console.log

    5. get the admin.nodeInfo enode from the second instance and copy it into admin.addPeer in the first node

    6. Restart specifying IPC path
    geth –datadir “$ethereum_home/youtube1-a” –port 30304 –nodiscover –ipcpath “$ethereum_home/youtube1-a/geth.ipc” –networkid 1234 console 2 &gt console.log

    7 run get attach to attach another window to the node using the pic file
    geth attach ipc:$ethereum_home/youtube1-a/geth.ipc

    8 Key commands from the javascript console
    Personal.newAccount()
    (add password)
    Miner.start(1) – start mining
    eth.blockNumber – current block height
    eth.getBlock(number).miner – miner of block at that number
    eth.getBalance(account address) – current balance of that account

    source

    Tags: beginnerblockchainconsoledatabaseethereumexplainedfrom scratchgethhow toinitlocalnetworknodeprivateTutorialwindow
    Share2018Tweet1261
    Matt Thomas

    Matt Thomas

    Related Posts

    Polkadot vs Ethereum Price Prediction: How High Can DOT and ETH Go? | Token Metrics Live Stream

    Polkadot vs Ethereum Price Prediction: How High Can DOT and ETH Go? | Token Metrics Live Stream

    by Token Metrics
    August 24, 2020
    0

    Polkadot vs Ethereum Price Prediction: How High Can DOT and ETH Go? | Token Metrics Live Stream #Polkadot #Ethereum #PricePrediction...

    Elon Musk –  SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More ➱ source

    Bitcoin y Ethereum: final de sobreventa, se inicia el rebote. ETHBTC clara estrategia de trading.

    Bitcoin y Ethereum: final de sobreventa, se inicia el rebote. ETHBTC clara estrategia de trading.

    by Educación Financiera y Criptomonedas
    August 24, 2020
    0

    Usando la aplicación changeinvest puedes comprar Bitcoin al mejor precio y sin comisiones. Tanto para Apple como para Android ¿Quieres...

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More ➱ source

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More ➱ source

    Load More
    Please login to join discussion
    • Trending
    • Comments
    • Latest
    Binary Bot 95%| Free Download

    Binary Bot 95%| Free Download

    March 12, 2020
    FREE BITCOIN CRYPTOTAB HACK SCRIPT 2020 , 14 BTC WORKING

    FREE BITCOIN CRYPTOTAB HACK SCRIPT 2020 , 14 BTC WORKING

    March 31, 2020
    𝗙𝗿𝗲𝗲 Blockchain fake bitcoin transaction software (R.B.F full option)

    𝗙𝗿𝗲𝗲 Blockchain fake bitcoin transaction software (R.B.F full option)

    February 16, 2020
    Blockchain   Bitcoin Miner V3 2  Best Blockchain Mining Tool    2020

    Blockchain Bitcoin Miner V3 2 Best Blockchain Mining Tool 2020

    June 27, 2020
    Analyst Who Predicted Bitcoin’s $3,000 2018 Bottom Says This is Next

    Analyst Who Predicted Bitcoin’s $3,000 2018 Bottom Says This is Next

    0
    Bitcoin to Be One of the 2020s’ Top Investments: Ex-Goldman Sachs Exec Says Why

    Bitcoin to Be One of the 2020s’ Top Investments: Ex-Goldman Sachs Exec Says Why

    0
    This Eerily Accurate Fractal Suggests Bitcoin Will Soon Explode to $12,000

    This Eerily Accurate Fractal Suggests Bitcoin Will Soon Explode to $12,000

    0
    Last Year’s Top Crypto Market Performers Are Lagging Behind Altcoins in 2020

    Last Year’s Top Crypto Market Performers Are Lagging Behind Altcoins in 2020

    0
    Axie Infinity

    Axie Infinity Revenue Continues To Collapse – Here’s Why

    June 29, 2022
    NFT

    NFT Floor Prices Plunging Amid Ongoing Crypto Market Pandemonium

    June 29, 2022
    Doodles, screenshot from site

    Blue Chip NFTs 101 – Let’s Travel To Space With The Doodles Collection

    June 29, 2022
    The Sandbox

    The Sandbox (SAND) Blows Up 20% After Collab With Major Entertainment Firm

    June 29, 2022
    bitcoin Bitcoin
    $20,268.00
    $20,268.00
    EUR: €19,240.19
    GBP: £16,614.27
    7D Chart-3.12%
    ethereum Ethereum
    $1,159.93
    $1,159.93
    EUR: €1,101.11
    GBP: £950.83
    7D Chart-3.77%
    tether Tether
    $1.000
    $1.000
    EUR: €0.949
    GBP: £0.820
    7D Chart0.090%
    ripple XRP
    $0.341
    $0.341
    EUR: €0.324
    GBP: £0.280
    7D Chart-4.02%
    cardano Cardano
    $0.474
    $0.474
    EUR: €0.450
    GBP: £0.389
    7D Chart-3.19%
    litecoin Litecoin
    $53.14
    $53.14
    EUR: €50.45
    GBP: £43.56
    7D Chart-4.96%
    bitcoin-cash Bitcoin Cash
    $105.82
    $105.82
    EUR: €100.45
    GBP: £86.74
    7D Chart-5.32%
    eos EOS
    $0.958
    $0.958
    EUR: €0.910
    GBP: £0.785
    7D Chart-2.95%

    Recent News

    Axie Infinity

    Axie Infinity Revenue Continues To Collapse – Here’s Why

    June 29, 2022
    NFT

    NFT Floor Prices Plunging Amid Ongoing Crypto Market Pandemonium

    June 29, 2022
    Doodles, screenshot from site

    Blue Chip NFTs 101 – Let’s Travel To Space With The Doodles Collection

    June 29, 2022

    Categories

    • Altcoin News
    • Altcoin Videos
    • Analysis
    • Bitcoin News
    • Bitcoin Videos
    • Blockchain Videos
    • Ethereum News
    • Ethereum Videos
    • ICO News
    • ICO Videos
    • News
    • Press Releases
    • Technology
    • Uncategorized
    Cointelegraph.com.au

    Bringing you the very latest crypto news and reviews from around the world.

    • About
    • Contact Us
    • Submit Press Release
    • Privacy Policy

    © 2019 Cointelegraph.com.au

    No Result
    View All Result
    • News
      • Bitcoin News
      • Ethereum News
      • Altcoin News
      • Press Releases
      • Analysis
      • ICO News
      • Technology
    • Videos
      • Altcoin Videos
      • Bitcoin Videos
      • Blockchain Videos
      • Ethereum Videos
      • ICO Videos
    • Crypto Exchanges
    • Market Cap
    • ICOs
    • Submit Press Release
    • Contact Us

    © 2019 Cointelegraph.com.au

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In

    Add New Playlist

    This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.