Craft Economy
Search…
⌃K

Becoming A Validator

How to validate on Craft Economy

Craft Economy

This is the Craft Economy Testnet-1 (craft-testnet-1)
GENESIS PUBLISHED
PEERS PUBLISHED

Hardware Requirements

  • Minimal
    • 4 GB RAM
    • 100 GB SSD
    • 3.2 x4 GHz CPU
  • Recommended
    • 8 GB RAM
    • 100 GB NVME SSD
    • 4.2 GHz x6 CPU

Operating System

  • Linux (x86_64) or Linux (amd64) Reccomended Arch Linux

Dependencies

Prerequisite: go1.18+ required. ref
  • Arch Linux pacman -S go
  • Ubuntu sudo snap install go --classic
Prerequisite: git. ref
  • Arch Linux pacman -S git
  • Ubuntu sudo apt-get install git
Optional requirement: GNU make. ref
  • Arch Linux pacman -S make
  • Ubuntu sudo apt-get install make

Craftd Installation Steps

  • Clone git repository
git clone https://github.com/notional-labs/craft.git
cd craft
git checkout v0.1.1
go install ./...

Generate keys

craftd keys add [key_name]
or
craftd keys add [key_name] --recover to regenerate keys with your BIP39 mnemonic
to add ledger key
craftd keys add [key_name] --ledger

Validator setup instructions

  • Install craftd binary
  • Initialize node
craftd init <moniker> --chain-id craft-testnet-1 --staking-bond-denom exp

Create & Submit GenTX

craftd gentx <key_name> 1000000uexp --home=~/.craftd/ --keyring-backend=os --chain-id=craft-testnet-1 --moniker=<your_moniker> --commission-max-change-rate=0.01 --commission-max-rate=0.5 --commission-rate=0.05 --details="<details here>" --security-contact="<email>" --website="<website>"
  • Fork the repository
  • Copy the contents of ${HOME}/.craftd/config/gentx/gentx-XXXXXXXX.json to craft/networks/craft-testnet-1/gentx/<yourvalidatorname>.json
  • Create a Pull Request to the main branch of the repository
NOTE: The Pull Request will be merged by the maintainers to confirm the inclusion of the validator at the genesis.

Peers, Seeds, Genesis & Service File (Post GenTX)

  • Copy below value as minimum-gas-prices in ${HOME}/.craftd/config/app.toml
0.02ucraft
  • Start craftd by creating a systemd service to run the node in the background
nano /etc/systemd/system/craft.service
Copy and paste the following file into your service file. Be sure to edit as you see fit.
[Unit]
Description=Craft Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/root/go/bin/craftd start
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
  • Reload the service files sudo systemctl daemon-reload
  • Create the symlinlk sudo systemctl enable craft.service
  • Start the node sudo systemctl start craft && journalctl -u craft -f

Become a validator (Post Genesis)

  • Install craftd binary
  • Initialize node
craftd init <moniker> --chain-id craft-testnet-1 --staking-bond-denom exp

Peers, Seeds, Genesis & Service File

  • Copy below value as minimum-gas-prices in ${HOME}/.craftd/config/app.toml
0.02ucraft
  • Start craftd by creating a systemd service to run the node in the background
nano /etc/systemd/system/craft.service
Copy and paste the following file into your service file. Be sure to edit as you see fit.
[Unit]
Description=Craft Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/root/go/bin/craftd start
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
  • Reload the service files sudo systemctl daemon-reload
  • Create the symlinlk sudo systemctl enable craft.service
  • Start the node sudo systemctl start craft && journalctl -u craft -f
  • Acquire $ucraft by sending a message to the validators channel in Discord.
  • Create Validator TX
craftd tx staking create-validator \
--from {{KEY_NAME}} \
--chain-id craft-testnet-1 \
--moniker="<VALIDATOR_NAME>" \
--commission-max-change-rate=0.01 \
--commission-max-rate=1.0 \
--commission-rate=0.05 \
--details="<description>" \
--security-contact="<contact_information>" \
--website="<your_website>" \
--pubkey $(craftd tendermint show-validator) \
--min-self-delegation="1" \
--amount <token delegation>ucraft
Last modified 7mo ago