rewards

GET

/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/{validator_address}

DelegationRewards queries the total rewards accrued by a delegation.

Parameters

delegator_address*stringpath

delegator_address defines the delegator address to query for.

validator_address*stringpath

validator_address defines the validator address to query for.

Responses

Example Usage

import { getQueryClient } from '@sei-js/cosmjs';

const queryClient = await getQueryClient("YOUR_RPC_URL");
const { delegationRewards } = queryClient.cosmos.distribution.v1beta1;

const params: QueryDelegationRewardsRequest = { 
	delegator_address: "",
	validator_address: ""
 };
const response: QueryDelegationRewardsResponseSDKType = await delegationRewards(params);