@stacks/blockchain-api-client 7.6.0-nakamoto.2 → 7.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "7.6.0-nakamoto.2",
3
+ "version": "7.6.0",
4
4
  "access": "public",
5
5
  "description": "Client for the Stacks Blockchain API",
6
6
  "homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
@@ -59,6 +59,8 @@ export interface GetMempoolTransactionListRequest {
59
59
  senderAddress?: string;
60
60
  recipientAddress?: string;
61
61
  address?: string;
62
+ orderBy?: GetMempoolTransactionListOrderByEnum;
63
+ order?: GetMempoolTransactionListOrderEnum;
62
64
  limit?: number;
63
65
  offset?: number;
64
66
  unanchored?: boolean;
@@ -179,6 +181,8 @@ export interface TransactionsApiInterface {
179
181
  * @param {string} [senderAddress] Filter to only return transactions with this sender address.
180
182
  * @param {string} [recipientAddress] Filter to only return transactions with this recipient address (only applicable for STX transfer tx types).
181
183
  * @param {string} [address] Filter to only return transactions with this address as the sender or recipient (recipient only applicable for STX transfer tx types).
184
+ * @param {'age' | 'size' | 'fee'} [orderBy] Option to sort results by transaction age, size, or fee rate.
185
+ * @param {'asc' | 'desc'} [order] Option to sort results in ascending or descending order.
182
186
  * @param {number} [limit] max number of mempool transactions to fetch
183
187
  * @param {number} [offset] index of first mempool transaction to fetch
184
188
  * @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
@@ -505,6 +509,14 @@ export class TransactionsApi extends runtime.BaseAPI implements TransactionsApiI
505
509
  queryParameters['address'] = requestParameters.address;
506
510
  }
507
511
 
512
+ if (requestParameters.orderBy !== undefined) {
513
+ queryParameters['order_by'] = requestParameters.orderBy;
514
+ }
515
+
516
+ if (requestParameters.order !== undefined) {
517
+ queryParameters['order'] = requestParameters.order;
518
+ }
519
+
508
520
  if (requestParameters.limit !== undefined) {
509
521
  queryParameters['limit'] = requestParameters.limit;
510
522
  }
@@ -894,6 +906,23 @@ export enum GetFilteredEventsTypeEnum {
894
906
  fungible_token_asset = 'fungible_token_asset',
895
907
  non_fungible_token_asset = 'non_fungible_token_asset'
896
908
  }
909
+ /**
910
+ * @export
911
+ * @enum {string}
912
+ */
913
+ export enum GetMempoolTransactionListOrderByEnum {
914
+ age = 'age',
915
+ size = 'size',
916
+ fee = 'fee'
917
+ }
918
+ /**
919
+ * @export
920
+ * @enum {string}
921
+ */
922
+ export enum GetMempoolTransactionListOrderEnum {
923
+ asc = 'asc',
924
+ desc = 'desc'
925
+ }
897
926
  /**
898
927
  * @export
899
928
  * @enum {string}