When I connect to geth with

geth console

it automatically connects to Main Network. I would like to connect TEST-NET. How I could connect to TEST-NET with geth?



You need to launch geth console by giving "testnet" or "rinkeby" as an argument -

--testnet    Ropsten network: pre-configured proof-of-work test network
--rinkeby    Rinkeby network: pre-configured proof-of-authority test network

There are other parameters/arguments available as well, which you may find worth taking a look at, please check this link for more details.

Also see here for the differences between the various test nets.

  • 1
    thanks, It worked. For interactive mode I used "geth --testnet console" – melih.tt Jul 16 '17 at 10:24
  • Which network is this on etherscan? – Justin Thomas Nov 12 '17 at 4:49
  • @JustinThomas Ropsten, Rinkeby and Mainnet have their own etherscan – Ender Dec 10 '19 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.