diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index a478a2eb..7256bd1a 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -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 { return await this.apiClient.issueGetRequest(`/v1/transactions?${queryString.stringify(filter)}`); diff --git a/src/types.ts b/src/types.ts index 5eeaf38a..b5e4cc79 100644 --- a/src/types.ts +++ b/src/types.ts @@ -170,6 +170,7 @@ export interface TransactionFilter { before?: number; after?: number; status?: TransactionStatus; + limit?: number; } export enum TransactionStatus {