Outstanding rewards

ValidatorOutstandingRewards queries rewards of a validator address.

GEThttps://axelar.nownodes.io/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards
Path parameters
validator_address*string

validator_address defines the validator address to query for.

Response

A successful response.

Body
rewardsobject

ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards for a validator inexpensive to track, allows simple sanity checks.

Request
const response = await fetch('https://axelar.nownodes.io/cosmos/distribution/v1beta1/validators/{validator_address}/outstanding_rewards', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "rewards": {
    "rewards": [
      {
        "denom": "text",
        "amount": "text"
      }
    ]
  }
}