staking
The staking module provides a set of subcommands to query the staking state and send staking transactions.

Available Commands

Name
Description
validator
Query a validator
Query for all validators
Query a delegation based on address and validator address
Query all delegations made from one delegator
Query all delegations to one validator
Query an unbonding-delegation record based on delegator and validator address
Query all unbonding-delegations records for one delegator
Query all unbonding delegatations from a validator
Query all outgoing redelegatations from a validator
Query a redelegation record based on delegator and a source and destination validator address
Query all redelegations records for one delegator
pool
Query the current staking pool values
params
Query the current staking parameters information
Query historical info at given height
Create new validator initialized with a self-delegation to it
Edit existing validator account
delegate
Delegate liquid tokens to an validator
unbond
Unbond shares from a validator
Redelegate illiquid tokens from one validator to another

junod query staking validator

Query a validator by validator address

Query information for validator address <junovaloper...>:
1
junod query staking validator <junovaloper...>
Copied!
Will return something similar to:
1
commission:
2
commission_rates:
3
max_change_rate: "0.010000000000000000"
4
max_rate: "0.200000000000000000"
5
rate: "0.110000000000000000"
6
update_time: "2021-07-01T09:06:42.110582713Z"
7
consensus_pubkey:
8
'@type': /cosmos.crypto.ed25519.PubKey
9
key: +vZPP6QFMUUkCO+MyMdOZGUzuNLAB98ruw6Rjfvnk60=
10
delegator_shares: "10647850539.181674918343698393"
11
description:
12
details: ""
13
identity: FEE30F35994C320D
14
moniker: nullmames
15
security_contact: ""
16
website: ""
17
jailed: false
18
min_self_delegation: "1"
19
operator_address: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
20
status: BOND_STATUS_BONDED
21
tokens: "10331782033"
22
unbonding_height: "631804"
23
unbonding_time: "2021-08-25T00:26:38.283926951Z"
Copied!

junod query staking validators

Query all validators

The following will return information for ALL validators:
1
junod query staking validators
Copied!
The returned values will be similar to those from junod query staking validator

junod query staking delegation

Query a delegation based on delegator address and validator address.
1
junod query staking delegation [delegator-addr] [validator-addr]
Copied!

Query a delegation

The following will return delegations for a delegator to a particular validator address <junovaloper...> :
1
junod query staking delegation <juno...> <junovaloper...>
Copied!
Returns something similar to:
1
balance:
2
amount: "9159423104"
3
denom: ujuno
4
delegation:
5
delegator_address: juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg
6
shares: "9439626961.941610808328957187"
7
validator_address: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
Copied!

junod query staking delegations

Query all delegations delegated from one delegator.
1
junod query staking delegations [delegator-address] [flags]
Copied!

Query all delegations of a delegator

The following command will return all delegations from a delegators address <juno...>:
1
junod query staking delegations <juno...>
Copied!
Will return something similar to:
1
delegation_responses:
2
- balance:
3
amount: "1100000"
4
denom: ujuno
5
delegation:
6
delegator_address: juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg
7
shares: "1100000.000000000000000000"
8
validator_address: junovaloper1ms8tvfkerhyf6mca2qc79t7mr3eh9dsr79mjf2
9
- balance:
10
amount: "9166092794"
11
denom: ujuno
12
delegation:
13
delegator_address: juno1ludczrvlw36fkur9vy49lx4vjqhppn30h42ufg
14
shares: "9446500690.213833508382324426"
15
validator_address: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
16
pagination:
17
next_key: null
18
total: "0"
Copied!

junod query staking delegations-to

Query all delegations to one validator.
1
junod query staking delegations-to [validator-address] [flags]
Copied!

Query all delegations to one validator

The following command will return all delegations to a validator address <junovaloper...>:
1
junod query staking delegations-to <junovaloper...>
Copied!
Will return something similar to:
1
delegation_responses:
2
- balance:
3
amount: "990000675"
4
denom: ujuno
5
delegation:
6
delegator_address: juno1qnshaxp9w7aecthj2sn4c0uct07urg3tsd2rqs
7
shares: "1020286644.656983874857994825"
8
validator_address: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
9
- balance:
10
amount: "180180122"
11
denom: ujuno
12
delegation:
13
delegator_address: juno1na45quuuzuv5xtzl5qqp9zep9rkluqykwtcgd3
14
shares: "185692169.327571065224155062"
15
validator_address: junovaloper1ludczrvlw36fkur9vy49lx4vjqhppn30ggunj3
Copied!

junod query staking unbonding-delegation

Query an unbonding-delegation record based on delegator and validator address.
1
junod query staking unbonding-delegation [delegator-addr] [validator-addr] [flags]
Copied!

Query an unbonding delegation record

1
junod query staking unbonding-delegation <juno...> <junovaloper...>
Copied!

junod query staking unbonding-delegations

Query all unbonding delegations records of a delegator

1
junod query staking unbonding-delegations <juno...>
Copied!

junod query staking unbonding-delegations-from

Query all unbonding delegations from a validator

1
junod query staking unbonding-delegations-from <junovaloper...>
Copied!

junod query staking redelegations-from

Query all outgoing redelegations of a validator
1
junod query staking redelegations-from [validator-address] [flags]
Copied!

Query all outgoing redelegatations of a validator

1
junod query staking redelegations-from <junovaloper...>
Copied!

junod query staking redelegation

Query a redelegation record based on delegator and source validator address and destination validator address.
1
junod query staking redelegation [delegator-addr] [src-validator-addr] [dst-validator-addr] [flags]
Copied!

Query a redelegation record

1
junod query staking redelegation <juno...> <junovaloper...> <junovaloper...>
Copied!

junod query staking redelegations

Query all redelegations records of a delegator

1
junod query staking redelegations <juno...>
Copied!

junod query staking pool

Query the current staking pool values

1
junod query staking pool
Copied!
Returns something similar to:
1
bonded_tokens: "1547447152807"
2
not_bonded_tokens: "67232814293"
Copied!

junod query staking params

Query the current staking parameters information

1
junod query staking params
Copied!
Returns something similar to:
1
bond_denom: ujuno
2
historical_entries: 10000
3
max_entries: 7
4
max_validators: 100
5
unbonding_time: 1814400s
Copied!

junod query staking historical-info

Query historical info at given height

1
junod query staking historical-info <height>
Copied!

junod tx staking create-validator

Send a transaction to apply to be a validator and delegate a certain amount of juno to it.
1
junod tx staking create-validator [flags]
Copied!
Flags:
Name, shorthand
type
Required
Default
Description
--amount
string
Yes
Amount of coins to bond
--commission-rate
float
Yes
0.0
The initial commission rate percentage
--commission-max-rate
float
0.0
The maximum commission rate percentage
--commission-max-change-rate
float
0.0
The maximum commission change rate percentage (per day)
--min-self-delegation
string
The minimum self delegation required on the validator
--details
string
Optional details
--genesis-format
bool
false
Export the transaction in gen-tx format; it implies --generate-only
--identity
string
Optional identity signature (ex. UPort or Keybase)
--ip
string
Node's public IP. It takes effect only when used in combination with
--node-id
string
The node's ID
--moniker
string
Yes
Validator name
--pubkey
string
Yes
Go-Amino encoded hex PubKey of the validator. For Ed25519 the go-amino prepend hex is 1624de6220
--website
string
Optional website
--security-contact
string
The validator's (optional) security contact email

Create a validator

1
junod tx staking create-validator --chain-id=juno --from=<key-name> --fees=0.025juno --pubkey=<validator-pubKey> --commission-rate=0.1 --amount=100000000ujuno --moniker=<validator-name>
Copied!
TIP
Refer to mainnet instructions for detailed information.

junod tx staking edit-validator

Edit an existing validator's settings, such as commission rate, name, etc.
1
junod tx staking edit-validator [flags]
Copied!
Flags:
Name, shorthand
type
Required
Default
Description
--commission-rate
float
0.0
Commission rate percentage
--moniker
string
Validator name
--identity
string
Optional identity signature (ex. UPort or Keybase)
--website
string
Optional website
--details
string
Optional details
--security-contact
string
The validator's (optional) security contact email
--min-self-delegation
string
The minimum self delegation required on the validator

Edit validator information

1
junod tx staking edit-validator --from=<key-name> --chain-id=juno --fees=1juno --commission-rate=0.10 --moniker=<validator-name>
Copied!

junod tx staking delegate

Delegate tokens to a validator.
1
junod tx staking delegate [validator-addr] [amount] [flags]
Copied!
1
junod tx staking delegate <junovaloper...> <amount> --chain-id=juno --from=<key-name>
Copied!

junod tx staking unbond

Unbond tokens from a validator.
1
junod tx staking unbond [validator-addr] [amount] [flags]
Copied!

Unbond some tokens from a validator

1
junod tx staking unbond <junovaloper...> 1000000ujuno --from=<key-name> --chain-id=juno
Copied!

junod tx staking redelegate

Transfer delegation from one validator to another.
TIP
There is no unbonding time during the redelegation, so you will not miss the rewards. But you can only redelegate once per validator, until a period (= unbonding time) exceed.
1
junod tx staking redelegate [src-validator-addr] [dst-validator-addr] [amount] [flags]
Copied!

Redelegate some tokens to another validator

1
junod tx staking redelegate <junovaloper...> <junovaloper...> 1000000ujuno --chain-id=juno --from=<key-name>
Copied!
Last modified 2mo ago