ITC completion create-validator

The itc completion create-validator command allows you to create a new validator on the Intelchain blockchain. This includes specifying important validator details such as staking amounts, identity, and various parameters like commission rates and delegation limits.

Commmand Syntax

./itc completion create-validator [flags]

Options

  • --amount string -> Specifies the staking amount for the validator. default is "0.0"
  • --bls-pubkeys strings → List of public BLS key addresses for the validator.
  • --bls-pubkeys-dir string → Path to a directory containing the BLS public key files (e.g., pub.key, pub.pass).
  • --chain-id string → Specifies the chain ID to target when creating the validator.
  • --details string → Provides details or description for the validator.
  • --gas-limit string → Sets the gas limit for the validator creation transaction.
  • --gas-price string → Sets the gas price to pay for the transaction. delfault: '100'
  • -h, --help → Displays help information for the create-validator command.
  • --identity string → Specifies the validator's identity, typically an identifier or key.
  • --max-change-rate string → Sets the maximum rate at which the validator's commission can change.
  • --max-total-delegation string → Specifies the maximum total delegation that the validator can accept. default: "0.0"
  • --min-self-delegation string → Specifies the minimum self-delegation required for the validator. default: "0.0"
  • --name string → Specifies the name of the validator.
  • --nonce string → Specifies the nonce for the transaction to avoid transaction replay.
  • --passphrase → Prompts for the passphrase required to sign the transaction. Defaults to an empty string "".
  • --passphrase-file string → Path to a file containing the passphrase for signing the transaction.
  • --rate string → Sets the commission rate for the validator.
  • --security-contact string → Provides a security contact for the validator.
  • --timeout uint32 → Sets the timeout (in seconds) for waiting for transaction confirmation. Set to 0 to skip waiting.
  • --true-nonce → Uses the on-chain nonce for sending the transaction.
  • --validator-addr itc-address → Specifies the validator's staking address.
  • --website string → Specifies the website for the validator.

Options Inherited from Parent Commands

  • --file string -> Path to a file for the given command when applicable.
  • -e, --ledger → Enables the use of a Ledger hardware wallet for transaction signing.
  • --no-latest → Prevents appending "latest" to RPC parameters, useful for specific blockchain states.
  • --no-pretty → Disables pretty-print formatting for JSON outputs, producing more compact machine-readable outputs.
  • -n, --node string → Specifies the host for connecting to the blockchain node. Default: http://localhost:9500
  • -r, --rpc-prefix string → Sets the RPC prefix to use when making calls to the blockchain. Default: itc
  • -v, --verbose → Outputs detailed debug information, similar to setting the 'ITC_ALL_DEBUG=true' environment variable.

Usage Examples

Create a new validator with basic details

./itc completion create-validator --name "MyValidator" --amount "1000.0" --chain-id mainnet --identity "validator1"

Create a new validator with staking, commission rate, and delegation limits

./itc completion create-validator --name "MyValidator" --amount "1000.0" --rate "0.05" --max-total-delegation "5000.0" --min-self-delegation "1000.0"

Create a validator using BLS public keys from a directory

./itc completion create-validator --bls-pubkeys-dir "/path/to/bls/keys" --name "MyValidator"

Create a validator with a timeout of 60 seconds

./itc completion create-validator --name "MyValidator" --timeout 60

See Also

  • 'itc completion' : Command to generate bash completion scripts for the Intelchain CLI.