# Installation firmachaind

This document is the FirmaChain binary installation guide. FirmaChain was built using Cosmos SDK that utilizes the tendermint consensus algorithm.

## Call binary after building

{% hint style="info" %}
**SYNCING FROM GENESIS**

When joining the FirmaChain network using “Syncing from genesis” you must change the FirmaChain binary into the appropriate version at a certain block height. For information on the appropriate version of binary per block height, please refer to the list below.
{% endhint %}

<table data-header-hidden><thead><tr><th width="190.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Chain ID</strong></td><td><strong>Block height</strong></td><td><strong>Chain binary version</strong></td></tr><tr><td>colosseum-1</td><td>0 ~ 4,805,999</td><td>v0.3.3-patch</td></tr><tr><td></td><td>4,806,000 ~ 15,677,999</td><td>v0.3.5-patch</td></tr><tr><td></td><td>15,678,000 ~ 19,349,999</td><td>v0.4.0</td></tr><tr><td></td><td>19,350,000 ~ 20,671,999</td><td>v0.5.0<br>v0.5.0-patch (recommended)</td></tr><tr><td></td><td>20,672,000 ~ Afterwise</td><td>v0.5.1<br>v0.5.1-patch<br>v0.5.1-patch2 (recommended)</td></tr></tbody></table>

Using ‘**`git clone`**’, call the FirmaChain project and access the directory.

{% code overflow="wrap" lineNumbers="true" %}

```bash
git clone https://github.com/firmachain/firmachain.git
cd firmachain
```

{% endcode %}

Please change the branch accorrdingly using the release tag.

```bash
# Syncing from genesis
git checkout v0.3.3-patch

# Statesync or Snapshot (before v0.4.0 upgrade)
git checkout v0.3.5-patch

# Statesync or Snapshot (after v0.4.0 upgrade)
git checkout v0.4.0

# Statesync or Snapshot (after v0.5.0 upgrade)
git checkout v0.5.0
# Recommended
git checkout v0.5.0-patch

# Statesync of Snapshot (after v0.5.1 upgrade)
git checkout v0.5.1
git checkout v0.5.1-patch
# Recommended
git checkout v0.5.1-patch2
```

Build the FirmaChain binary using the following command.

{% code overflow="wrap" lineNumbers="true" %}

```bash
make install
```

{% endcode %}

Once you complete the binary build, you can check the installation path and version information using the “**`firmachaind`**” command.

{% code overflow="wrap" lineNumbers="true" %}

```bash
sudo mv ~/go/bin/firmachaind /usr/local/bin/firmachaind

firmachaind version
# The git checkout version information is displayed. 
# v0.3.3-patch
# v0.3.5-patch (before v0.4.0 upgrade)
# v0.4.0 (after v0.4.0 upgrade)
# v0.5.0 (after v0.5.0 upgrade)
# v0.5.0-patch (recommended)
# v0.5.1 (after v0.5.1 upgrade)
# v0.5.1-patch
# v0.5.1-patch2 (recommended)
```

{% endcode %}
