🖥️Installation
Getting the Docker Image
To get the uniond
image, you can visit our container on the GitHub Container Registry, or run the following command:
Running uniond
Creating a Chain Config & State Folder Before running this image, we need to create a folder to host the chain configuration and state. You can create this wherever you would like, but we’ll be doing so in our current user’s home directory.
To create a directory for uniond
in your user home directory, run:
First, set some environment variables, which are used throughout initialization. FOR MONIKER AND KEY NAME customize to your needs
Initializing the Chain Config & State Folder Now, using the uniond image and the folder we just created, we can initialize the contents of this folder. To do this, we’ll be using Docker volumes.
after docker run , union succesfully install , run this command for init uniond
Dont forget Modify Seeds,
Next, edit ~/.union/config/config.toml
. We’ll set the seeds to ensure your node can connect to the peer-to-peer network.
For union-testnet-6
replace seeds = ""
with:
and dont forget download genesis.json , download genesis json from this link
https://union.build/genesis.json
Download the genesis.json
and copy it to your uniond
home directory.
First, add a wallet that holds Union tokens. To create a new Account and mnemonic, use the following sub-command of the uniond
binary.
check if account union successfully registered
To run uniond
sub-commands, it will be useful to alias the Docker command in your shell .*rc
file.
For example, in zsh
, you can add the following alias to your .zshrc
:
To run the node, the .union file is required to be installed, then create a compose yml script, copy the yml script below then run the yml script
To run your node in detached mode, run:
Link to official docs : https://union.build/docs/joining-testnet/getting-started/
Last updated