Skip to content

Commit

Permalink
fix: add historical block trading reward endpoint (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo authored Dec 6, 2024
1 parent 8aa9c01 commit 1327f57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v4-client-js/src/clients/modules/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,14 @@ export default class AccountClient extends RestClient {
const uri = `/v4/historicalTradingRewardAggregations/${address}`;
return this.get(uri, { period, limit, startingBeforeOrAt, startingBeforeOrAtHeight });
}

async getHistoricalBlockTradingRewards(
address: string,
limit?: number,
startingBeforeOrAt?: string,
startingBeforeOrAtHeight?: string,
): Promise<Data> {
const uri = `/v4/historicalBlockTradingRewards/${address}`;
return this.get(uri, { limit, startingBeforeOrAt, startingBeforeOrAtHeight });
}
}

0 comments on commit 1327f57

Please sign in to comment.