Rewards

DelegationTotalRewards queries the total rewards accrued by a each validator.

GEThttps://coreum.nownodes.io/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards
Path parameters
delegator_address*string

delegator_address defines the delegator address to query for.

Response

A successful response.

Body
rewardsarray of cosmos.distribution.v1beta1.DelegationDelegatorReward (object)

rewards defines all the rewards accrued by a delegator.

totalarray of cosmos.base.v1beta1.DecCoin (object)

total defines the sum of all the rewards.

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

DelegationRewards queries the total rewards accrued by a delegation.

GEThttps://coreum.nownodes.io/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}
Path parameters
delegator_address*string

delegator_address defines the delegator address to query for.

validator_address*string

validator_address defines the validator address to query for.

Response

A successful response.

Body
rewardsarray of cosmos.base.v1beta1.DecCoin (object)

rewards defines the rewards accrued by a delegation.

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