From d8680f6a92cbd9c7ce691fff90f4db507ebeaf9b Mon Sep 17 00:00:00 2001 From: selankon Date: Fri, 19 Jul 2024 09:57:44 +0200 Subject: [PATCH] Expose account methods --- packages/extended-sdk/src/client/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/extended-sdk/src/client/index.ts b/packages/extended-sdk/src/client/index.ts index d6a4516b..e643335e 100644 --- a/packages/extended-sdk/src/client/index.ts +++ b/packages/extended-sdk/src/client/index.ts @@ -1,4 +1,5 @@ import { + AccountAPI, ChainAPI, ElectionAPI, ErrAPI, @@ -18,6 +19,9 @@ interface IElectionVotesCountResponse { } export class ExtendedSDKClient extends VocdoniSDKClient { + accountTransfers = (accountId: string, page?: number) => AccountAPI.transfersList(this.url, accountId, page) + accountTransfersCount = (accountId: string) => AccountAPI.transfersCount(this.url, accountId) + accountFees = (accountId: string, page?: number) => AccountAPI.fees(this.url, accountId, page) txInfo = (txHash: string) => ChainAPI.txInfo(this.url, txHash) txInfoByBlock = (blockHeight: number, txIndex: number) => ChainAPI.txInfoByBlock(this.url, blockHeight, txIndex) txList = (page?: number) => ChainAPI.txList(this.url, page)