EOSIO Single Node Testnet Setup on Windows
1. Enable Windows Subsystem for Linux
1.1. Run PowerShell as an administrator and type the following command.
1.2. Run the following command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
1.3. Click Yes to any prompts that appear and restart your computer.
2. Enable Developer Mode
2.1. Open Settings app.
2.2. Click date & Security.
2.3. Click For Developers.
2.4. Click Developer Mode button.
3. Install Ubuntu
3.1. Go to the Microsoft store and install Ubuntu.
https://www.microsoft.com/en-us/store/p/ubuntu/9nblggh4msv6
3.2. Create a username and password when prompted. Remember them or make a note.
3.3. Install CMake and Git
Run the following commands to install CMake and git:
sudo apt install cmake
sudo apt install git
4. Build EOS
4.1. Getting the code.
To download all of the code, clone the eos
repository and its submodules.
git clone https://github.com/EOSIO/eos --recursive
4.2. Building EOSIO
There is an automated build script that can install all dependencies and build EOSIO.
cd eos
./eosio_build.sh ubuntu full
Successful result:
4.3. Install the executables
sudo make install
5. Launch a Single Node Testnet
You can start your own single-node blockchain with this single command:
cd build/programs/nodeos
./nodeos -e -p eosio --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::account_history_api_plugin
When running nodeos
you should get log messages similar to below. It means the blocks are successfully produced.
At this point, nodeos
is running with a single producer, eosio
. You can press ctr + c
to stop producing.