Aller directement au menu principal

Retrieve Reward Claim History

GET 

https://staking-api.coredao.org//staking/rewards/claim_history

Returns a list of reward claim history by core address within a given round range. Limited to 100 rounds on each query.

Request

Query Parameters

    coreAddress stringrequired

    The core address to retrieve the reward claim history for.

    startRound integerrequired

    The starting round of the range for which the reward claim history is requested.

    endRound integerrequired

    The ending round of the range for which the reward claim history is requested.

Responses

Reward claim history retrieved successfully.

Schema
    codestring

    Status code of the response.

    messagestring

    Message providing additional details about the response.

    data object
    result object[]

    List of reward claim records.

  • Array [
  • stakedHashRewardstring

    Amount of HASH rewards staked in the given round.

    roundinteger

    The round number associated with the reward claim.

    gradeList object[]

    List of grades showing reward rates and percentages.

  • Array [
  • rewardRateinteger

    The reward rate for the grade.

    percentageinteger

    The percentage of the total reward for the grade.

  • ]
  • stakedCoreRewardstring

    The CORE rewards staked in the given round.

    myStakeRate object

    User's staking rate details.

    stakeRatiostring

    The ratio of the user's stake to the total stake.

    percentstring

    The percentage of the user's stake in relation to the total stake.

    totalRewardClaimedstring

    The total rewards claimed in the given round.

    stakedBTCRewardstring

    The BTC rewards staked in the given round.

  • ]
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://staking-api.coredao.org/staking/rewards/claim_history");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://staking-api.coredao.org
Parameters
— queryrequired
— queryrequired
— queryrequired
ResponseClear

Click the Send API Request button above and see the response here!