ITC completion collect-rewards
The itc completion collect-rewards command allows you to collect token rewards for delegators. This is useful for users who want to claim the staking rewards from their delegations to validators on the Intelchain blockchain.
Commmand Syntax
./itc completion collect-rewards [flags]
mainnet
Specifies the chain ID to target for reward collection. Default: --chain-id string
Provides the delegator's address for which to collect rewards.
--delegator-addr itc-address
Sets the gas limit for the transaction.
--gas-limit string
Specifies the gas price to pay for the transaction. Default is '100'
--gas-price string
Displays help information for the 'collect-rewards' command.
-h
--help
Specifies the nonce for the transaction to avoid reuse.
--nonce string
Prompts for the passphrase required to sign the transaction. If not provided, uses the default passphrase ' "" '.
--passphrase
Path to a file containing the passphrase for transaction signing.
--passphrase-file string
Sets the timeout for the transaction in seconds. Set to 0 to skip waiting for confirmation. Default is '100'
--timeout uint32
Uses the on-chain nonce for sending the transaction.
--true-nonce
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 working with 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
Collect rewards for a specific delegator
./itc completion collect-rewards --delegator-addr itc1xyz --chain-id mainnet
Specify gas price and gas limit for reward collection
./itc completion collect-rewards --delegator-addr itc1xyz --gas-price 150 --gas-limit 21000
Collect rewards with passphrase from a file
./itc completion collect-rewards --delegator-addr itc1xyz --passphrase-file /path/to/passphrase.txt
Collect rewards with a custom timeout of 60 seconds
./itc completion collect-rewards --delegator-addr itc1xyz --timeout 60
See Also
- 'itc completion': Command to generate bash completion scripts for the Intelchain CLI.