Skip to content

Commit

Permalink
Expose account methods
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Jul 19, 2024
1 parent 706df1a commit d8680f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/extended-sdk/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
AccountAPI,
ChainAPI,
ElectionAPI,
ErrAPI,
Expand All @@ -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)
Expand Down

0 comments on commit d8680f6

Please sign in to comment.