πŸ€Όβ€β™‚οΈIntegrate on Testnet

circle-exclamation

Information

The Titan testnet is currently running titand v3.0.0-rc.0. Visit the testnet explorerarrow-up-right to view real-time on-chain activity

We recommend running public testnet nodes on a machine with at least two cores, 4GB of RAM, and 50GB of disk space.

Installation & Configuration

Init config file and data

titand init <custom_moniker> --chain-id titan_18889-1

Now, a folder will be created by default in your HOME directory as $HOME/.titand. This folder will store all the configuration and data files of the node during operation.

Retrieve the genesis file of the Titan Chain testnet and store it in the config directory.

Config your node.

Set peers

Config external address

You will need to configure external_address in file config.toml is the external address of your node. Correct this config will allow other nodes in P2P network connect to your node.

Index:

circle-info

In default, we disable all index and only keep 100 recent blocks to optimize the diskspace used by node.

If you want to enable index, you need to change config in file app.toml and config.toml

  • Ethereum transaction (in app.toml)

  • TX index, for query tx (in config.toml)

Config state sync

circle-exclamation

Without this, your node will have to synchronize data from the genesis, which could take a considerable amount of time. Instead, we will search for snapshots from trusted peers at a specific height and then verify a minimal set of snapshot chunks against the network.

Get the block height and block hash. First, you need to access the explorer websitearrow-up-right to obtain the nearest block height and its corresponding hash. We configure a node to take a snapshot every 1000 blocks and keep the 10 most recent snapshots. Therefore, the snapshot corresponding to the nearest block height will have the highest thousand value. For example, at the time of writing this guide testnet block height is 986922 so the nearest block height will be 986000. Enter the block height in the search bar at the top of the website to retrieve its hash. The hash of Block 986000 is:

After having block height and block hash run the following command in order (replace <BLOCK_HEIGHT> and <BLOCK_HASH> by the value you found in the above step)

circle-info

rpc_servers need at least 2 servers.

Create Service File

circle-exclamation

Get your absolute path of titand binary and your HOME directory that contains .titan folder

Create a service file at /etc/systemd/system/titand.service. Replace <titand_absolute_path> and <home_directory> to your.

circle-info

To find out your <titand_absolute_path> you can use command which titand. And your <home_directory> by command echo $HOME

Start the Service

Now that your node has started up and the synchronization process has begun, you can check the sync status of the node using the following command. If the node is syncing, it will show true. Please wait until it show false, which means your node has caught up with the network and is ready for querying.

If have any issue, you can check error log by

Last updated