# Distribution

# Query

# Outstanding Rewards

To check the current outstanding (un-withdrawn) rewards, run:

terracli query distribution outstanding-rewards

# Delegator Rewards

To check current rewards for a delegator (if they were to be withdrawn), run:

terracli query distribution rewards <delegator_address> <validator_address>

To check all current rewards for a delegator (if they were to be withdrawn), run:

terracli query distribution rewards <delegator_address>

# Validator Commission

To check the current outstanding commission for a validator, run:

terracli query distribution commission <validator_address>

# Validator Slashes

To check historical slashes for a validator, run:

terracli query distribution slashes <validator_address> <start_height> <end_height>

# Community Pool

To query all coins in the Community Pool:

terracli query distribution community-pool

# Parameters

To check the current distribution parameters, run:

terracli query distribution params

# Transaction

# Withdraw Rewards

You can withdraw your rewards against a certain validator

terracli tx distribution withdraw-rewards <validator-address>

If you want to want to withdraw all rewards:

terracli tx distribution withdraw-all-rewards

# Set Withdraw Address

Change the default withdraw address for rewards associated with an address.

terracli tx distribution set-withdraw-addr <withdraw-address>

# Fund Community Pool

Funds the community pool with the specified amount.

terracli tx distribution fund-community-pool <amount>

Argument amount is in a format such as: 1000uluna, or 100ukrw,200uusd