Run Selfchain testnet node

  1. Download the Self Chain Mainnet v1.0.1 from Selfchain Releases according to your Linux architecture.

  2. Initialize a chain - Execute the following command:

    ./selfchaind-linux-amd64 init moniker
    Eg: ./selfchaind-linux-amd64 init mytestnetchain
  3. Replace your genesis file located at: ~/.selfchain/config/genesis.json

Use the provided genesis.json file.
  1. Open and update your configuration file located at: ~/.selfchain/config/config.toml

persistent_peers = "[email protected],[email protected]:26656,[email protected]:26656” 

If RPC support is required, replace below as well.

laddr = "tcp://0.0.0.0:26657"
cors_allowed_origins = ["*"]
  1. Start the Chain: Run the following command:

    ./selfchaind-linux-amd64 start 

    Wait until it stops automatically. This typically happens within a minute after processing a few blocks.

  2. Download the CosmWasm-enabled binary (Self Chain Testnet v2.0.0) from Selfchain Releases according to your architecture (selfchaind-linux-arm64-wasm or selfchaind-linux-amd64-wasm).

  3. Continue with New Binary, below command will run the process in the background and log output to selfchain.log.

nohup ./selfchaind-linux-amd64-wasm > selfchain.log 2>&1 &
  1. Validate the Node: Check for any errors in the log file. If everything looks good, wait for the node to sync with the network.

  2. Check the node status. Once it is in sync, create a validator using the following command:

./selfchaind-linux-amd64-wasm tx staking create-validator --amount=530800000000000uslf --pubkey="$(./selfchaind-linux-amd64-wasm tendermint show-validator)" --moniker="Validator Name" --chain-id="selfchain-testnet" --commission-rate="0.10" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="1" --from=wallet-name --fees=200000uslf --gas=auto --gas-adjustment=1.5
  1. Ensure you replace <wallet-name> with your actual wallet name and verify that you have enough SELF tokens. If you need tokens, obtain them from the testnet faucet.

  2. Verify the staking status at: SelfChain Staking.

Last updated