Skip to content
Snippets Groups Projects
Commit 8f5789d3 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue 328 - Create geAccounttBalanceHistory fetching service

parent 36113cba
No related branches found
No related tags found
1 merge request!495Delrifai/#328 create balance history page
......@@ -408,6 +408,27 @@ class FetchingService {
return null;
}
}
async geAccounttBalanceHistory(
accountName : string,
coinType: string ,
page: number | undefined,
pageSize : number | undefined,
direction: "asc" | "desc",
fromBlock?: Date | number | undefined,
toBlock?: Date | number | undefined,
): Promise<Hive.AccountBalanceHistoryResponse> {
return await this.extendedHiveChain!.restApi["balance-api"].balanceHistory({
accountName,
"coin-type":coinType,
"direction" :direction,
"page" :page,
"page-size": pageSize,
"from-block": fromBlock,
"to-block": toBlock,
});
}
}
const fetchingService = new FetchingService();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment