Crossfi Finance Crossfi Finance - Mainnet
Chain ID: crossfi-mainnet-1 Block Height: Loading...
RPC Status:

Network Overview

Crossfi Finance

CrossFi Chain is a layer 1 blockchain with a modular architecture. It consists of two integral parts, Cosmos and EVM. Each part is responsible for its specific functionality, with their work completely synchronized as a single organism.

https://rpc-crossfi.sychonix.com

https://api-crossfi.sychonix.com

Installation

  • Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev aria2 -y
  • Install Go
VER="1.21.6"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
  • Install the Binary
cd $HOME 
curl -L https://snapshot.sychonix.com/mainnet/crossfi/crossfid.tar.gz | tar -xvzf - -C $HOME
sudo mv crossfid $HOME/go/bin/
  • Initialize the Node
crossfid config node tcp://localhost:11057
crossfid config keyring-backend os
crossfid config chain-id crossfi-evm-mainnet-1
crossfid init "YourName" --chain-id crossfi-evm-mainnet-1
  • Download Genesis and Addrbook
curl -Ls https://snapshot.sychonix.com/mainnet/crossfi/genesis.json > $HOME/.crossfid/config/genesis.json
curl -Ls https://snapshot.sychonix.com/mainnet/crossfi/addrbook.json > $HOME/.crossfid/config/addrbook.json
  • Configure Seeds and Peers
PEERS="$(curl -sS https://rpc-crossfi.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.crossfid/config/config.toml
  • Update Port Configuration
sed -i -e "s%:1317%:11017%; s%:8080%:11080%; s%:9090%:11090%; s%:9091%:11091%; s%:8545%:11045%; s%:8546%:11046%; s%:6065%:11065%" $HOME/.crossfid/config/app.toml
sed -i -e "s%:26658%:11058%; s%:26657%:11057%; s%:6060%:11060%; s%:26656%:11056%; s%:26660%:11061%" $HOME/.crossfid/config/config.toml
  • Customize Pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.crossfid/config/app.toml
  • Set Minimum Gas Price, Enable Prometheus, and Disable the Indexer
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "10000000000000mpx"|g' $HOME/.crossfid/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.crossfid/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.crossfid/config/config.toml
  • Create Service File
sudo tee /etc/systemd/system/crossfid.service > /dev/null <<EOF
[Unit]
Description=crossfi mainnet node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which crossfid) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
  • Download Current Snapshot
curl "https://snapshot.sychonix.com/mainnet/crossfi/crossfi-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.crossfid"
  • Enable the Service and Start the Node
sudo systemctl daemon-reload
sudo systemctl enable crossfid.service
sudo systemctl restart crossfid.service && sudo journalctl -u crossfid.service -f --no-hostname -o cat

Upgrade

No chain upgrades scheduled yet.

Peers

PEERS="$(curl -sS https://rpc-crossfi.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.crossfid/config/config.toml

Snapshot

Height: Loading... | Last updated: Loading... | Size: Loading...
  • Install dependencies, if needed
sudo apt update && sudo apt install aria2
  • Stop Service
sudo systemctl stop crossfid
  • Back up priv_validator_state.json
cp $HOME/.crossfid/data/priv_validator_state.json $HOME/.crossfid/priv_validator_state.json.backup
  • Reset the data
crossfid tendermint unsafe-reset-all --home $HOME/.crossfid --keep-addr-book
  • Download Snapshot
aria2c -x 16 -s 16 -o crossfi-snapshot.tar.lz4 https://snapshot.sychonix.com/mainnet/crossfi/crossfi-snapshot.tar.lz4
lz4 -dc crossfi-snapshot.tar.lz4 | tar -xf - -C $HOME/.crossfid
rm -v crossfi-snapshot.tar.lz4
  • Restore Backup and Restart Service
mv $HOME/.crossfid/priv_validator_state.json.backup $HOME/.crossfid/data/priv_validator_state.json
sudo systemctl restart crossfid && sudo journalctl -u crossfid -f -o cat

Addrbook

curl -Ls https://snapshot.sychonix.com/mainnet/crossfi/addrbook.json > $HOME/.crossfid/config/addrbook.json

Genesis

curl -Ls https://snapshot.sychonix.com/mainnet/crossfi/genesis.json > $HOME/.crossfid/config/genesis.json

API

https://api-crossfi.sychonix.com

RPC

https://rpc-crossfi.sychonix.com

CLI Cheatsheet

Wallet Management

crossfid keys add 

crossfid keys add  --recover

crossfid keys list 

crossfid keys delete 

crossfid keys export 

crossfid keys import .backup

crossfid q bank balances $(crossfid keys show  -a)

Validator Management

Moniker

Identity

Details

Website

Security Contact

Amount

crossfid tx staking create-validator \
--amount=1000000mpx \
--pubkey=$(crossfid tendermint show-validator) \
--moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=crossfi-mainnet-1 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--gas-prices 10000000000000mpx \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

crossfid tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=crossfi-mainnet-1 \
--commission-rate=0.07 \
--from wallet \
--gas=auto \
--gas-prices 10000000000000mpx \
-y

crossfid tx slashing unjail --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5  

crossfid query slashing signing-info $(crossfid tendermint show-validator)

crossfid q staking validator $(crossfid keys show wallet --bech val -a)

crossfid q bank denom-metadata -oj | jq

crossfid status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'

crossfid status 2>&1 | jq -r '.SyncInfo.latest_block_height // .sync_info.latest_block_height'

Token Management

crossfid tx distribution withdraw-all-rewards --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y 

crossfid tx distribution withdraw-rewards $(crossfid keys show wallet --bech val -a) --commission --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y 

crossfid tx staking delegate $(crossfid keys show wallet --bech val -a) 1000000mpx --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y 

crossfid tx staking redelegate $(crossfid keys show wallet --bech val -a)  1000000mpx --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y

crossfid tx staking delegate  1000000mpx --from  --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y 

crossfid tx staking unbond $(crossfid keys show wallet --bech val -a) 1000000mpx --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y

crossfid tx bank send wallet  1000000mpx --from wallet --chain-id crossfi-mainnet-1 --gas auto --gas-adjustment 1.5 --gas-prices 10000000000000mpx -y

Service Management

sudo systemctl daemon-reload

sudo systemctl enable crossfid

sudo systemctl disable crossfid

sudo systemctl start crossfid

sudo systemctl stop crossfid

sudo systemctl restart crossfid

sudo systemctl status crossfid

sudo journalctl -u crossfid -f --no-hostname -o cat

CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.crossfid/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%" $HOME/.crossfid/config/app.toml

cd $HOME && sudo systemctl stop crossfid && sudo systemctl disable crossfid && sudo rm /etc/systemd/system/crossfid.service && sudo systemctl daemon-reload && sudo rm -rf $(which crossfid) && sudo rm -rf $HOME/.crossfid && sudo rm -rf $(which crossfid)