From cfdedee52b03b3f8de7e1533e2fe31b8ee157da6 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 6 Dec 2024 13:12:28 -0500 Subject: [PATCH] historical-block-trading --- v4-client-js/src/clients/modules/account.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/v4-client-js/src/clients/modules/account.ts b/v4-client-js/src/clients/modules/account.ts index e9521ba..e4e0c37 100644 --- a/v4-client-js/src/clients/modules/account.ts +++ b/v4-client-js/src/clients/modules/account.ts @@ -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 { + const uri = `/v4/historicalBlockTradingRewards/${address}`; + return this.get(uri, { limit, startingBeforeOrAt, startingBeforeOrAtHeight }); + } }