SAFROCHAIN is a decentralized offshore CNH stablecoin on Cosmos, supporting multi-chain use, wallet integration, and cross-border payments, with stability ensured by audits, reserves, and community governance.
| NODE | CPU | RAM | SSD | OS |
|---|---|---|---|---|
| safrochaind | 4 | 8 | 400 GB | Ubuntu 22.04 LTS |
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 -yVER="1.23.4"
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 versioncd $HOME
rm -rf safrochain-node
git clone https://github.com/Safrochain-Org/safrochain-node.git
cd safrochain-node
git checkout v0.1.0
go build -o safrochaind ./cmd/safrochaind
sudo cp safrochaind /usr/local/bin/
safrochaind version
export HOME_NODE="$HOME/.safrochain"
cd ~/safrochain-node
make buildsafrochaind init mynode --chain-id safro-testnet-1curl -L -o ~/.safrochain/config/genesis.json https://genesis.safrochain.com/testnet/genesis.jsonsed -i -e "s%:1317%:11317%; s%:8080%:11380%; s%:9090%:11390%; s%:9091%:11391%; s%:8545%:11345%; s%:8546%:11346%; s%:6065%:11365%" $HOME/.safrochain/config/app.toml
sed -i -e "s%:26658%:11358%; s%:26657%:11357%; s%:6060%:11360%; s%:26656%:11356%; s%:26660%:11361%" $HOME/.safrochain/config/config.tomlsed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.safrochain/config/app.toml
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.00001usaf\"|" $HOME/.safrochain/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.safrochain/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.safrochain/config/config.tomlsudo tee /etc/systemd/system/safrochaind.service > /dev/null << EOF
[Unit]
Description=safrochain node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which safrochaind) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOFsudo systemctl daemon-reload
sudo systemctl enable safrochaind.service
sudo systemctl restart safrochaind.service
sudo journalctl -u safrochaind.service -f --no-hostname -o cat# create wallet
safrochaind keys add wallet
# Restore wallet
safrochaind keys add wallet --recover
# List wallet
safrochaind keys list wallet
# Delete wallet
safrochaind keys delete walletsafrochaind q bank balances $(safrochaind keys show wallet -a)safrochaind tx staking create-validator \
--amount=1000000usaf \
--from wallet \
--pubkey=$(safrochaind tendermint show-validator) \
--moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id safro-testnet-1 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--gas-prices 0.00001usaf \
--gas "auto" \
--gas-adjustment "1.5" \
-ysafrochaind tx staking delegate \
$(safrochaind keys show wallet --bech val -a) \
1000000usaf \
--from wallet \
--chain-id safro-testnet-1 \
--gas="auto" \
--gas-adjustment=1.5 \
--gas-prices=0.00001usaf \
-ysafrochaind tx distribution withdraw-rewards $(safrochaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id safro-testnet-1 \
--gas="auto" \
--gas-adjustment=1.5 \
--gas-prices=0.00001usaf \
-ysafrochaind tx slashing unjail \
--from wallet \
--chain-id safro-testnet-1 \
--gas="auto" \
--gas-adjustment=1.5 \
--gas-prices=0.00001usaf \
-ysafrochaind tx gov vote 1 yes \
--from wallet \
--chain-id safro-testnet-1 \
--gas="auto" \
--gas-adjustment=1.5 \
--gas-prices=0.00001usaf \
-ysudo systemctl stop safrochaind.service
sudo systemctl disable safrochaind.service
sudo rm /etc/systemd/system/safrochaind.service
sudo systemctl daemon-reload
rm -rf $(which safrochaind)
rm -rf .safrochaind