distribution rewards - Stable

Returns the outstanding staking rewards for a delegator, per validator and in total.

Endpoint

httpGET /cosmos/distribution/v1beta1/delegators/{delegator_addr}/rewards

Path Parameters

ParameterTypeDescription
delegator_addrstringBech32 delegator address (cosmos1...)

Example

bashexport STABLE_REST=https://shared.ap-southeast-1.getblock.io/<ACCESS-TOKEN>/

curl "${STABLE_REST}cosmos/distribution/v1beta1/delegators/stable1qg5ega6dykkxc307y25pecuufrjkxkagq9k7m4h/rewards"

Response

json{
    "rewards": [
        {
            "validator_address": "stablevaloper1qg5ega6dykkxc307y25pecuufrjkxkagqe8n2y5",
            "reward": [
                {
                    "denom": "ausdt0",
                    "amount": "12500.000000000000000000"
                }
            ]
        }
    ],
    "total": [
        {
            "denom": "ausdt0",
            "amount": "12500.000000000000000000"
        }
    ]
}

Response Fields

FieldTypeDescription
rewardsarrayPer-validator reward entries for the delegator
totalarrayTotal outstanding rewards across validators, per denom

Use Cases

  • Rewards UI: Show claimable staking rewards
  • Auto-compound: Read rewards before a claim/restake

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, validator, proposal, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect