Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

New to solidity and blockchain in general, I tried to make transactions and deploy smart contracts but it seems that we need ethereum to "pay" these actions. Is there any way to get free or "fake" ethereum to easily test transactions and smart contracts?

1 Answer

0 votes
by (29.5k points)
edited by

Hi try using the following:

geth --dev --mine --minerthreads 1

From help:

--dev    Developer mode: pre-configured private network with several debugging flags
--mine                  Enable mining
--minerthreads value    Number of CPU threads to use for mining (default: 12)

This runs a private testnetwork with your own chain. The miner runs low on one thread to generate new blocks and this way you get testnet Ether in your private network which can be used to pay the fees.

Give yourself time to explore the Blockchain field properly. Enroll in Blockchain Online Training now.

Browse Categories