Cardano Academy

Setting up Cardano Node

Note in MAINNET section, all configurations and commands are for mainnet, if you want to play with TESTNET, it's at previous 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:
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/mainnet
wget -O ./config/mainnet/mainnet-config.json
wget -O ./config/mainnet/mainnet-byron-genesis.json
wget -O ./config/mainnet/mainnet-shelley-genesis.json
wget -O ./config/mainnet/mainnet-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.
Add following script to :
./cardano-node run \
--config ./config/mainnet/mainnet-config.json \
--topology ./config/mainnet/mainnet-topology.json \
--database-path ./db/mainnet \
--socket-path ./node-ipc/mainnet/node.socket \
--port 3001
Let's create these folders we specified in the script, where ./db/mainnet is used for storing blockchain data, ./node-ipc/mainnet is used for node interprocess communication:
mkdir -p ./db/mainnet
mkdir -p ./node-ipc/mainnet
Add execution permission to the script:
chmod +x
Now, you can start your node:
After the node is started, it's gonna take a while to sync blockchain data with other nodes.