With the legacy testnet on track to be depreciated, I wanted to write a quick guide for setting up on the new Pre-Production and Preview testnets with CNTOOLS. Please refer to the above image to determine which testnet is right for you.
For this guide, I am assuming that you are already familiar with setting up a server, wallet, and pool. If you need additional guidance on these tasks, please refer to this comprehensive guide @Alexd1985 has written.
We will first need to download and run the prereqs script for installing our node.
curl -sS -o prereqs.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/prereqs.sh
chmod 755 prereqs.sh
To set up on the new testnets, we will need to run the prereqs script with a few flags.
For Preview TestNet:
./prereqs.sh -b alpha -n preview
./prereqs.sh -b alpha -n preprod
Reboot the server
After the reboot, we can build the node:
git clone https://github.com/input-output-hk/cardano-node
git fetch --tags --all
git checkout 1.35.3
Once the node is built, adjust your env file if you want. (Port etc)
Now we can deploy and start the node as a service:
sudo systemctl start cnode
sudo systemctl status cnode
You can now check on your node’s syncing progress:
You can also now create a wallet and a pool using CNTOOLS:
After you’ve obtained a wallet, use the faucet to gain some test ADA.
You can use the faucet links:
Or you can adjust and use the following curl commands:
curl -X POST -s ‘https://faucet.preview.world.dev.cardano.org/send-money/<your.preview.wallet>?api_key=nohnuXahthoghaeNoht9Aow3ze4quohc’
curl -X POST -s ‘https://faucet.preprod.world.dev.cardano.org/send-money/<your.preprod.wallet>?api_key=ooseiteiquo7Wie9oochooyiequi4ooc’
Once you’ve got some testADA, you can now register your pool through CNTOOL
Once your pool is registered, you can use the faucet to acquire delegation.
You can also adjust and use the following commands to request delegation.
curl -s ‘https://faucet.preview.world.dev.cardano.org/delegate/<YourPoolID#>’
curl -s ‘https://faucet.preprod.world.dev.cardano.org/delegate/<YourPoolID#>’