👨‍🏫Full Node Instructions

After successfully creating the binaries, you can proceed to run the full node.

Steps to run a successful TAN-chain on the local system -

  • Generate data directories for each of the 4 nodes

  • Prepare multiaddr string for bootnode

  • Copy and paste the genesis file

  • Running all servers and node.

Let’s see the steps one by one -

To do so, navigate to your root directory and create a new folder. For consistency, let's name this folder "run", though you're free to choose any name you prefer.

cd Tan-chain-network
mkdir run

This will navigate you to the "TAN-chain-network" directory and create a new folder named "run" within it. This folder will serve as the directory for running your full node.

cd run

Once you're inside the "run" folder, you can proceed with initializing the data directories for your TAN-chain node.

Initialize the data directory with

../tan-chain secrets init --insecure --data-dir test-chain-1

This will generate the data directory for node one with name “test-chain-1”.

test-chain-1 here acts as a prefix for node directory. You can name it as per your convenience.

Example 🎉-

After initializing the data directory, it's time to create the genesis file.

To create the genesis.json file and populate it with the contents provided, follow these steps:-

  • In your terminal, ensure you are still within the "run" directory.

  • Create a new JSON file named genesis.json using your preferred text editor or terminal command. For example-

touch genesis.json
  • Open the genesis.json file in your text editor or using a command-line text editor like nano or vim.

  • Copy the contents of the genesis file from the provided link.

  • Paste the copied contents into the genesis.json file.

  • Save and close the file. If you're using a text editor, follow its specific instructions for saving and closing files.

Once you've completed these steps, your genesis.json file should be created and populated with the appropriate content.

Last updated