You can query the restaking situation per delegator and receive a list with validator addresses for which the user has turned this feature on.
secretd query distribution restake-entries [delegator] [flags]
On the Secret Network mainnet, we delegate uscrt, where 1scrt = 1000000uscrt. Instructions can be found here.
One must be staked before one can activate restaking. The following command can be used to activate restaking for the stake that is with that validator as long more tokens are bonded than restake-threshold(currently 10000000 uSCRT = 10 SCRT).
secretcli tx distribution set-auto-restaking [validator] [true/false] --from [delegator]
Query restake Parameters
One can query the parameters for Restake using the command below
secretcli q distribution params
With the above command you will get the values for all parameters that can be set by Governance including:
minimum_restake_threshold - # of uSCRT required to enable restake
restake_period - The autocompouding frequency denominated in the # of blocks