π Installation
Website: https://crossfi.org
Twitter: https://x.com/crossfichain
Discord: https://discord.gg/crossfi
Explorer: https://xfiscan.com
Explorer CoinSeyir : https://explorer.coinseyir.com/crossfi-mainnet
Minumum hardware requirements
CPU
4+
RAM
8+ GB
Storage
200 GB SSD
Installation
# Update
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
# Install go
ver="1.23.3"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
# Change testcs with your name
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="ismini-yaz"" >> $HOME/.bash_profile
echo "export CROSSFI_CHAIN_ID="mineplex-mainnet-1"" >> $HOME/.bash_profile
echo "export CROSSFI_PORT="37"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Install binary
cd $HOME
mkdir -p $HOME/.mineplex-chain/cosmovisor/genesis/bin
wget https://github.com/crossfichain/crossfi-node/releases/download/v0.1.1/mineplex-2-node._v0.1.1_linux_amd64.tar.gz
tar -xvf mineplex-2-node._v0.1.1_linux_amd64.tar.gz
mv mineplex-chaind crossfid
mv $HOME/crossfid $HOME/.mineplex-chain/cosmovisor/genesis/bin
sudo ln -s $HOME/.mineplex-chain/cosmovisor/genesis $HOME/.mineplex-chain/cosmovisor/current -f
sudo ln -s $HOME/.mineplex-chain/cosmovisor/current/bin/crossfid /usr/local/bin/crossfid -f
# Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0
# Service
sudo tee /etc/systemd/system/crossfid.service > /dev/null << EOF
[Unit]
Description=crossfi node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.mineplex-chain
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.mineplex-chain"
Environment="DAEMON_NAME=crossfid"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.mineplex-chain/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
# Enable service
sudo systemctl daemon-reload
sudo systemctl enable crossfid.service
# Init
crossfid config node tcp://localhost:${CROSSFI_PORT}657
crossfid config keyring-backend os
crossfid config chain-id mineplex-mainnet-1
# Change testcs with your name
crossfid init testcs --chain-id mineplex-mainnet-1
git clone https://github.com/crossfichain/mainnet.git
cp -r $HOME/mainnet/config/* $HOME/.mineplex-chain/config
wget -O $HOME/.mineplex-chain/config/genesis.json https://server-1.coinseyir.com/crossfi-mainnet/genesis.json
wget -O $HOME/.mineplex-chain/config/addrbook.json https://server-1.coinseyir.com/crossfi-mainnet/addrbook.json
# Port
sed -i.bak -e "s%:1317%:${CROSSFI_PORT}317%g;
s%:8080%:${CROSSFI_PORT}080%g;
s%:9090%:${CROSSFI_PORT}090%g;
s%:9091%:${CROSSFI_PORT}091%g;
s%:8545%:${CROSSFI_PORT}545%g;
s%:8546%:${CROSSFI_PORT}546%g;
s%:6065%:${CROSSFI_PORT}065%g" $HOME/.mineplex-chain/config/app.toml
sed -i.bak -e "s%:26658%:${CROSSFI_PORT}658%g;
s%:26657%:${CROSSFI_PORT}657%g;
s%:6060%:${CROSSFI_PORT}060%g;
s%:26656%:${CROSSFI_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${CROSSFI_PORT}656\"%;
s%:26660%:${CROSSFI_PORT}660%g" $HOME/.mineplex-chain/config/config.toml
# Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.mineplex-chain/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.mineplex-chain/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.mineplex-chain/config/app.toml
# Settings
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "10000000000000mpx"|g' $HOME/.mineplex-chain/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.mineplex-chain/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.mineplex-chain/config/config.toml
# Snapshot
sudo apt install liblz4-tool
systemctl stop crossfid
cp $HOME/.mineplex-chain/data/priv_validator_state.json $HOME/.mineplex-chain/priv_validator_state.json.backup
curl -L https://server-1.coinseyir.com/crossfi-mainnet/snapshot_latest.tar.lz4 | tar -I lz4 -xf - -C $HOME/.mineplex-chain
mv $HOME/.mineplex-chain/priv_validator_state.json.backup $HOME/.mineplex-chain/data/priv_validator_state.json
# Start
sudo systemctl daemon-reload
sudo systemctl enable crossfid
sudo systemctl restart crossfid && sudo journalctl -u crossfid -f -o cat
Create wallet
# to create a new wallet, use the following command. donβt forget to save the mnemonic
crossfid keys add wallet
# to restore exexuting wallet, use the following command
crossfid keys add wallet --recover
# list all keys
crossfid keys list
# check wallet balance
crossfid q bank balances $(crossfid keys show wallet -a)
Create new validator
crossfid tx staking create-validator <(cat <<EOF
{
"pubkey": $(crossfid comet show-validator),
"amount": "1000000mpx",
"moniker": "YOUR_MONIKER_NAME",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--chain-id crossfi-mainnet-1 \
--from wallet \
--gas-adjustment 1.5 \
--gas auto \
--gas-prices 10000000000000mpx \
-y
Delete Node
sudo systemctl stop crossfid
sudo systemctl disable crossfid
sudo rm -rf /etc/systemd/system/crossfid.service
sudo rm $(which crossfid)
sudo rm -rf $HOME/.crossfid
sed -i "/CROSSFI_/d" $HOME/.bash_profile
Last updated