Skip to content

Commit

Permalink
Add getTransactions limit param
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomer Vilensky committed Feb 17, 2020
1 parent 14188ee commit 2d43756
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ export class FireblocksSDK {

/**
* Gets a list of transactions matching the given filter
* @param filter.before Only gets transactions created before a given timestamp (in seconds)
* @param filter.after Only gets transactions created after a given timestamp (in seconds)
* @param filter.before Only gets transactions created before a given timestamp (in milliseconds)
* @param filter.after Only gets transactions created after a given timestamp (in milliseconds)
* @param filter.status Only gets transactions with the spcified status
* @param filter.limit Limit the amount of returned results. If not specified, a limit of 200 results will be used
*/
public async getTransactions(filter: TransactionFilter): Promise<TransactionResponse[]> {
return await this.apiClient.issueGetRequest(`/v1/transactions?${queryString.stringify(filter)}`);
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export interface TransactionFilter {
before?: number;
after?: number;
status?: TransactionStatus;
limit?: number;
}

export enum TransactionStatus {
Expand Down

0 comments on commit 2d43756

Please sign in to comment.