Run Selfchain testnet node
Download the Self Chain Mainnet v1.0.1 from Selfchain Releases according to your Linux architecture.
Initialize a chain - Execute the following command:
./selfchaind-linux-amd64 init moniker Eg: ./selfchaind-linux-amd64 init mytestnetchain
Replace your genesis file located at: ~/.selfchain/config/genesis.json
genesis.json
file.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 = ["*"]
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.
Download the CosmWasm-enabled binary (Self Chain Testnet v2.0.0) from Selfchain Releases according to your architecture (
selfchaind-linux-arm64-wasm
orselfchaind-linux-amd64-wasm
).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 &
Validate the Node: Check for any errors in the log file. If everything looks good, wait for the node to sync with the network.
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
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.Verify the staking status at: SelfChain Staking.
Last updated