FIRMACHAIN
OFFICIAL WEBMEDIUMTELEGRAMREDDIT
  • Overview
  • # NODE & VALIDATORS GUIDE
    • Run a full node
      • Specification
      • OS package settings
      • Installation firmachaind
      • Upgrade your node
      • Join a FirmaChain network
        • Snapshot
        • Syncing from genesis
        • State sync
      • Run a Cosmovisor
        • Guide
        • Example
      • Run a System Deamon
    • Validator
      • Management key
      • Register a validator
      • Edit a validator
      • Unjail
      • FAQ
    • Genesis Validator
    • History
      • Upgrade Mainnet
      • Reward Testnet (Terminated)
        • Participate
        • Test app
  • # DEVELOPER
    • EndPoints
    • firma-js
    • firmachaind
      • commands
      • sub commands
        • keys
        • query (q)
        • transaction (tx)
    • Modules
      • Contract
        • Log
        • File
        • Bulk Insert
        • Utils
      • NFT
        • Usage
        • Bulk Insert (minting)
        • Utils
      • Token
        • Usage
        • Utils
  • # General Guide
    • Station
    • Ledger
      • Install
      • Usage on FirmaStation
      • Usage on FirmaChain-CLI
Powered by GitBook
On this page
  • List of networks provided
  • Initialize the firmachain
  • Rename the moniker
  • Setup minimum gas prices
  • Set seeds
  • Download genesis.json file
  • Syncing node
  • Option
  1. # NODE & VALIDATORS GUIDE
  2. Run a full node
  3. Join a FirmaChain network

Syncing from genesis

This document is a how-to-guide on joining the FirmaChain network using ‘Syncing from genesis’.

List of networks provided

Please check the genesis file, the seed and the github link according to the network you are planning to join.

Network

chain-id

genesis.json

seeds

github

Mainnet

colosseum-1

Testnet

imperium-4

Initialize the firmachain

Initialize the node and designate the moniker name.

firmachaind init <moniker-name> --chain-id <chain-id>

Rename the moniker

Before activating the chain, you can modify the name of the node from the moniker field at ~/.firmachain/config/config.toml.

vim .firmachain/config/config.toml

# A custom human readable name for this node
moniker = "<moniker-name>"

Setup minimum gas prices

Modify minimum gas fee.

sed -i 's/minimum-gas-prices = "0stake"/minimum-gas-prices = "0.01ufct"/g' ~/.firmachain/config/app.toml

Set seeds

FirmaChain discloses information on seed nodes for the purpose of P2P connection.

# Mainnet
sed -i.bak -e "s/^seeds *=.*/seeds = \"f89dcc15241e30323ae6f491011779d53f9a5487@mainnet-seed1.firmachain.dev:26656,04cce0da4cf5ceb5ffc04d158faddfc5dc419154@mainnet-seed2.firmachain.dev:26656,940977bdc070422b3a62e4985f2fe79b7ee737f7@mainnet-seed3.firmachain.dev:26656\"/" ~/.firmachain/config/config.toml
# Testnet
sed -i.bak -e "s/^seeds *=.*/seeds = \"ddeaeb19dbe29558ac3f8569f99c0906adf7d8cf@testnet-seed1.firmachain.dev:26656,a195e07dad206431293ab141434331a8373221ab@testnet-seed2.firmachain.dev:26656\"/" ~/.firmachain/config/config.toml

Download genesis.json file

After downloading the genesis.json file of the network you are planning to join, please swap the file with ~/.firmachain/config/genesis.json.

# Mainnet genesis.json
wget https://raw.githubusercontent.com/FirmaChain/mainnet/main/colosseum-1/genesis.json -O ~/.firmachain/config/genesis.json
# Testnet genesis.json
wget https://raw.githubusercontent.com/FirmaChain/testnet/master/imperium-4/genesis.json -O ~/.firmachain/config/genesis.json

Syncing node

Finally, you can start the syncing process

firmachaind start

If the genesis sync halts showing the error message below, please upgrade the chain binary.

ERR UPGRADE "v0.3.5" NEEDED at height: 4806000:
panic: UPGRADE "v0.3.5" NEEDED at height: 4806000:

Option

You can start firmachain using Cosmovisor or System Daemon.

PreviousSnapshotNextState sync

Last updated 5 months ago

Please click on below for the upgrade guide.

the link
How to set Cosmovisor
How to set System Demon
Link
Link
Link
Link
Link
Link