How to setup a ethereum testnet node locally?
I am new to ethereum please some one help sharing step by step links
How to setup a ethereum testnet node locally?
I am new to ethereum please some one help sharing step by step links
What operating system are you on? You need to run a node locally using either Geth or Parity. I prefer Geth. Either one will let you run a node on the Ethereum Ropsten testnet blockchain.
Once it's installed, with apt-get install geth on Ubuntu, you need to run geth --testnet --syncmode="light" --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain "*". This will set up a one-off testnet that uses syncmode="light" to get a super quick copy of the blockchain. Shouldn't take longer than 15-20 mins. If you take out the syncmode="light" it'll take a couple hours to a day to sync, but will be re-usable.
Once it starts syncing, it'll say "imported new block headers" or "imported new state entries" for awhile. When the processed number catches up with the one at ropsten.etherscan.io, you're good to go and your node is caught up.
You're going to get a copy of the chaindata in your ~/.ethereum folder if you're on Ubuntu, ~/AppData/Roaming/Ethereum on Windows in the chaindata folder if you ran it without using light syncmode, and lightchaindata if you used light syncmode. You will need to delete this lightchaindata folder every time you want to run geth again on the fast sync mode.
The other parameters open up geth with web3 and via RPC, and let any domain connect to it. Once you've used Metamask or Ethereum Wallet or Mist to confirm you can connect to the testnet on localhost, you can tweak the options. Metamask is a chrome plugin that lets you access the blockchain. If you click the network in the top left of the plugin, you will be able to select LOCALHOST. If it connects, you're on your local geth testnet instance!
Here is the Geth install path for your OS.
– diabetesjones Jul 04 '17 at 04:29syncmode="light"because it will be done syncing in a much shorter time. – diabetesjones Jul 04 '17 at 04:30geth --testnet --syncmode="light" --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport 8545 --rpcaddr 127.0.0.1 --rpccorsdomain "*"in the command line – diabetesjones Jul 04 '17 at 04:33