0 votes
1 view
in Blockchain by (11.8k 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 (27.7k points)

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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...