From source
This guide will explain how to build and install the Titand binary from source code. Once installed on the server, you can now interact with the Titan Chain testnet as a Full node or a Validator.
This guide uses Ubuntu. You will need knowledge about how golang and linux shell.
System specification recommended
For validator node (no index, no expose api, only keep 100 recent block):
4 cores/threads
8 GB ram
512 GB SSD
For api node/full node:
4 cores/threads
more than 16 GB ram
1 TB SSD
Build Requirements
At present, we support installation on Linux distributions.
Update and install build tools
Install Go
Clone the source code of the Titan node, then proceed to build and install it.
Build Tools
Install make and gcc
sudo apt-get update
sudo apt-get install -y make gccInstall Go
You can follow Go official docs to download and install Go.
Or follow our guide below to install Go in Ubuntu (at time of writing Go version is 1.21.0):
# Download tarball into current folder
curl -OL https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
# Extract it to /usr/local
sudo tar -xvf go1.21.0.linux-amd64.tar.gz -C /usr/localAdd /usr/local/go/bin to the PATH environment variable. Note: This change only applies to the current shell session. If you want it to become persistent, you can add this line into $HOME/.profile.
export PATH=$PATH:/usr/local/go/binAdd your GOPATH to PATH environment variable. You will also want to add below path into $HOME/.profile to persistent. titand binary will be installed into GOPATH
export PATH=$PATH:$(go env GOPATH)/binFor now, you can check the current go version by command
go versionInstall Git
sudo apt-get install git-allInstall Titan binary
Let's clone Titan source code from github. Please choose correct version tag via .
git clone -b <version_tag> https://github.com/titantkx/titan.gitBuild and install titand binary
cd titan && make installNow verify everything installed successfully by running
titand version --longYou should get output like this:
build_tags: netgo ledger cgo,
commit:
cosmos_sdk_version: v0.47.6
go: go version go1.21.0 linux/amd64
name: titan
server_name: titand
version: 2.0.1Last updated