@agglayer/sdk 1.0.0-beta.23 → 1.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1987,7 +1987,8 @@ var CoreClient = class {
1987
1987
  }
1988
1988
  }
1989
1989
  /**
1990
- * Get all transactions via web sockets
1990
+ * Get all transactions with pagination information
1991
+ * @param transactionsRequestQueryParams - Parameters for the transactions API call
1991
1992
  */
1992
1993
  async getTransactions(transactionsRequestQueryParams) {
1993
1994
  if (transactionsRequestQueryParams.limit && transactionsRequestQueryParams.limit > MAX_TRANSACTIONS_PER_PAGE) {
@@ -2001,7 +2002,12 @@ var CoreClient = class {
2001
2002
  transactionsRequestQueryParams
2002
2003
  );
2003
2004
  if (response.data.status === "success") {
2004
- return response.data.data;
2005
+ return {
2006
+ transactions: response.data.data,
2007
+ ...response.data.pagination && {
2008
+ pagination: response.data.pagination
2009
+ }
2010
+ };
2005
2011
  }
2006
2012
  throw ApiError.fromErrorResponse(response.data);
2007
2013
  } catch (error) {