#!/bin/bash set -e DENOM=alnt NODE_HOME=/root/.laconicd staking_amount_file="$NODE_HOME/tmp/staking-amount.json" if [ ! -f "$staking_amount_file" ]; then echo "staking-amount.json file not provided, exiting..." exit 1 fi # Set staking amount stake_amount=$(jq -r '.amount' "$staking_amount_file") # Create validator with fixed parameters laconicd tx staking create-validator \ --amount $stake_amount$DENOM \ --pubkey $(laconicd tendermint show-validator) \ --moniker "$CERC_MONIKER" \ --chain-id "$CERC_CHAIN_ID" \ --commission-rate 0.0 \ --commission-max-rate 0.0 \ --commission-max-change-rate 0.0 \ --min-self-delegation 1 \ --gas auto \ --gas-adjustment 1.5 \ --gas-prices $MIN_GAS_PRICE$DENOM \ --from $KEY_NAME \ --yes