/cosmos/distribution/v1beta1/delegators/{delegator_addr}/rewards - Axelar
Example code for the cosmos/distribution/v1beta1/delegators/{delegator_addr}/rewards REST method. Complete guide in GetBlock Web3 documentation.
Returns the total outstanding staking rewards for a delegator across all validators, with a per-validator breakdown.
Endpoint
GET /cosmos/distribution/v1beta1/delegators/{delegator_addr}/rewardsPath Parameters
Parameter
Type
Description
delegator_addr
string
Delegator bech32 address (axelar1…)
Example
export AKASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
curl "${AKASH_REST}cosmos/distribution/v1beta1/delegators/axelar1nl7dg3xj9j2y6q7z0v4w8c2b5d1f3g6h9k2m4p/rewards"Response
{
"rewards": [
{
"validator_address": "axelarvaloper1nl7dg3xj9j2y6q7z0v4w8c2b5d1f3g6h9k2m4p",
"reward": [
{
"denom": "uaxl",
"amount": "1234567.000000000000000000"
}
]
}
],
"total": [
{
"denom": "uaxl",
"amount": "1234567.000000000000000000"
}
]
}Response Fields
Field
Type
Description
rewards
array
Per-validator rewards
total
array
Total accumulated rewards
Use Cases
Reward Display: Show claimable rewards
Claim Flows: Decide when to claim
Accounting: Track accrual
Error Handling
Error
Message
Description
400 / Bad request
Bad request
A parameter was invalid
403 / RBAC: access denied
Access denied
The GetBlock access token is missing or incorrect
Previous/cosmos/distribution/v1beta1/community_pool - Axelar
Next/cosmos/gov/v1/proposals/{proposal_id} - Axelar
Last updated
Was this helpful?