The single-node testnet is the must have for developers who want to run local testnet with the minimum requirements. Having full functionality you can test your plugins, SDKs, services and so on.
So, to run it follow the step below
NOTE: this setup is related to run testnet with dev_tachyon workflow. dev0 pack used to interact with hostchain
- Make sure you have appropriate Docker image for pre-build envirounment with installed Node.js, Go, Python, Git and so on. If you don't have - clone the image and create the container.
docker pull klyntar/all_in_one:v3.0.0
docker run -dtp 7331:7331 --name klyntar_node klyntar/all_in_one:v3.0.0
# Go into container
docker exec -ti klyntar_node bash
# Chose the directory
cd ~
- Clone this repository
git clone https://github.com/KLYN74R/AntiVenom.git
cd AntiVenom
- Make build script executable
chmod 700 build_single_node_testnet.sh
- Run the build script and take a rest
./build_single_node_testnet.sh
- Set the env variables
export KLY_MODE=test
export SYMBIOTE_DIR=~/kly_testnet
- Finally, you can run the node
klyntar
- Local testnet(symbiote) with a single validator
- Validator keypair is
{
prv:"af837c459929895651315e878f4917c7622daeb522086ec95cfe64fed2496867",
pub:"7GPupbq1vtKUgaqVeHiDbEJcxS7sSjwPnbht4eRaDBAEJv8ZKHNCSu2Am3CuWnHjta"
}
and the password to decrypt private key is qwerty
- Hostchain defined as
kly-evm
- it was local runned ETH node(Geth client), but we can avoid using it in this setup - Enabled KLY-EVM. The web3 EVM-compatible API available via
http://localhost:7331/kly_evm_rpc
NOTE: Insofar as we avoid moment interaction with hostchain - you should reset your node each day. For this - delete the kly_testnet directory and run build script again
rm -rf ~/kly_testnet
cd ~/AntiVenom
./build_single_node_testnet.sh
Coming soon