DelegationRewards queries the total rewards accrued by a delegation.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
delegator_address | ✅ | String | The delegator address to query for. |
validator_address | ✅ | String | The validator address to query for. |
/cosmos/distribution/v1beta1/delegators/cosmos1qp2cjs037tax8nvhaee7zguwlmpr0ck4rtfk4d/rewards/cosmosvaloper1sd4tl9aljmmezzudugs7zlaya7pg2895ws8tfs
Result
Example
Request
curl <your-rest-endpoint>/cosmos/distribution/v1beta1/delegators/cosmos1qp2cjs037tax8nvhaee7zguwlmpr0ck4rtfk4d/rewards/cosmosvaloper1sd4tl9aljmmezzudugs7zlaya7pg2895ws8tfs \
-X GET \
-H "accept: application/json"
Return
{
"rewards": [
{
"denom": "uatom",
"amount": "145.797977639972814281"
}
]
}