Setting up Cardano Node
Note in TESTNET section, all configurations and commands are for testnet, if you want to play with MAINNET, it's at next section.

Downloading Executable and Configurations

You can download the latest version of cardano-node and cardano-cli executable here:
Release notes can be found here:
The latest configuration files can be found here:
For now, I'm going to use current latest version 1.26.1 of linux executable with Build ID 6015115 and config files with Build ID 5822084 . You may use a newer version as you need.
Download executable and unpack it:
wget https://hydra.iohk.io/build/6015115/download/1/cardano-node-1.26.1-linux.tar.gz
mkdir cardano-node-1.26.1
tar -xzvf cardano-node-1.26.1-linux.tar.gz --directory ./cardano-node-1.26.1
Enter node directory:
cd ./cardano-node-1.26.1
Download configuration files:
mkdir -p ./config/testnet
wget https://hydra.iohk.io/build/5822084/download/1/testnet-config.json -O ./config/testnet/testnet-config.json
wget https://hydra.iohk.io/build/5822084/download/1/testnet-byron-genesis.json -O ./config/testnet/testnet-byron-genesis.json
wget https://hydra.iohk.io/build/5822084/download/1/testnet-shelley-genesis.json -O ./config/testnet/testnet-shelley-genesis.json
wget https://hydra.iohk.io/build/5822084/download/1/testnet-topology.json -O ./config/testnet/testnet-topology.json
If you want to modify genesis files name, you need to modify configurations in config.json file also.

Starting Node

You can set up mutiple nodes running on different networks (mainnet/testnet) concurrently, you just need to configure the script to use different config files, folders and ports.
Create run-testnet.sh:
touch run-testnet.sh
Add following script to run-testnet.sh :
#!/bin/bash
./cardano-node run \
--config ./config/testnet/testnet-config.json \
--topology ./config/testnet/testnet-topology.json \
--database-path ./db/testnet \
--socket-path ./node-ipc/testnet/node.socket \
--port 3101
Note I am using a different port 3101 in case we have another node running on 3001 already.
Let's create these folders we specified in the script, where ./db/testnet is used for storing blockchain data, ./node-ipc/testnet is used for node interprocess communication:
mkdir -p ./db/testnet
mkdir -p ./node-ipc/testnet
Add execution permission to the script:
chmod +x run-testnet.sh
Now, you can start your node:
./run-testnet.sh
After the node is started, it's gonna take a while to sync blockchain data with other nodes.
Copy link
On this page
Downloading Executable and Configurations
Starting Node