@stacks/blockchain-api-client 3.0.2 → 4.0.0-beta.2

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.
Files changed (40) hide show
  1. package/lib/generated/apis/FeesApi.d.ts +36 -9
  2. package/lib/generated/apis/FeesApi.js +29 -4
  3. package/lib/generated/apis/FeesApi.js.map +1 -1
  4. package/lib/generated/apis/NamesApi.d.ts +27 -0
  5. package/lib/generated/apis/NamesApi.js +26 -0
  6. package/lib/generated/apis/NamesApi.js.map +1 -1
  7. package/lib/generated/apis/TransactionsApi.d.ts +47 -1
  8. package/lib/generated/apis/TransactionsApi.js +51 -1
  9. package/lib/generated/apis/TransactionsApi.js.map +1 -1
  10. package/lib/generated/models/TransactionEventsResponse.d.ts +39 -0
  11. package/lib/generated/models/TransactionEventsResponse.js +46 -0
  12. package/lib/generated/models/TransactionEventsResponse.js.map +1 -0
  13. package/lib/generated/models/TransactionFeeEstimateRequest.d.ts +33 -0
  14. package/lib/generated/models/TransactionFeeEstimateRequest.js +45 -0
  15. package/lib/generated/models/TransactionFeeEstimateRequest.js.map +1 -0
  16. package/lib/generated/models/TransactionFeeEstimateResponse.d.ts +46 -0
  17. package/lib/generated/models/TransactionFeeEstimateResponse.js +50 -0
  18. package/lib/generated/models/TransactionFeeEstimateResponse.js.map +1 -0
  19. package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.d.ts +51 -0
  20. package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.js +50 -0
  21. package/lib/generated/models/TransactionFeeEstimateResponseEstimatedCost.js.map +1 -0
  22. package/lib/generated/models/TransactionFeeEstimateResponseEstimations.d.ts +33 -0
  23. package/lib/generated/models/TransactionFeeEstimateResponseEstimations.js +45 -0
  24. package/lib/generated/models/TransactionFeeEstimateResponseEstimations.js.map +1 -0
  25. package/lib/generated/models/index.d.ts +5 -0
  26. package/lib/generated/models/index.js +5 -0
  27. package/lib/generated/models/index.js.map +1 -1
  28. package/lib/index.umd.js +445 -76
  29. package/lib/index.umd.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/generated/.openapi-generator/FILES +5 -0
  32. package/src/generated/apis/FeesApi.ts +65 -8
  33. package/src/generated/apis/NamesApi.ts +52 -0
  34. package/src/generated/apis/TransactionsApi.ts +90 -0
  35. package/src/generated/models/TransactionEventsResponse.ts +72 -0
  36. package/src/generated/models/TransactionFeeEstimateRequest.ts +64 -0
  37. package/src/generated/models/TransactionFeeEstimateResponse.ts +91 -0
  38. package/src/generated/models/TransactionFeeEstimateResponseEstimatedCost.ts +88 -0
  39. package/src/generated/models/TransactionFeeEstimateResponseEstimations.ts +64 -0
  40. package/src/generated/models/index.ts +5 -0
package/lib/index.umd.js CHANGED
@@ -5622,6 +5622,191 @@
5622
5622
 
5623
5623
  /* eslint-disable */
5624
5624
 
5625
+ /**
5626
+ * Stacks Blockchain API
5627
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5628
+ *
5629
+ * The version of the OpenAPI document: STACKS_API_VERSION
5630
+ *
5631
+ *
5632
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5633
+ * https://openapi-generator.tech
5634
+ * Do not edit the class manually.
5635
+ */
5636
+ function TransactionEventsResponseFromJSON(json) {
5637
+ return TransactionEventsResponseFromJSONTyped(json);
5638
+ }
5639
+ function TransactionEventsResponseFromJSONTyped(json, ignoreDiscriminator) {
5640
+ if (json === undefined || json === null) {
5641
+ return json;
5642
+ }
5643
+
5644
+ return {
5645
+ 'limit': json['limit'],
5646
+ 'offset': json['offset'],
5647
+ 'results': json['results']
5648
+ };
5649
+ }
5650
+ function TransactionEventsResponseToJSON(value) {
5651
+ if (value === undefined) {
5652
+ return undefined;
5653
+ }
5654
+
5655
+ if (value === null) {
5656
+ return null;
5657
+ }
5658
+
5659
+ return {
5660
+ 'limit': value.limit,
5661
+ 'offset': value.offset,
5662
+ 'results': value.results
5663
+ };
5664
+ }
5665
+
5666
+ /* tslint:disable */
5667
+ function TransactionFeeEstimateRequestFromJSON(json) {
5668
+ return TransactionFeeEstimateRequestFromJSONTyped(json);
5669
+ }
5670
+ function TransactionFeeEstimateRequestFromJSONTyped(json, ignoreDiscriminator) {
5671
+ if (json === undefined || json === null) {
5672
+ return json;
5673
+ }
5674
+
5675
+ return {
5676
+ 'transaction_payload': json['transaction_payload'],
5677
+ 'estimated_len': !exists(json, 'estimated_len') ? undefined : json['estimated_len']
5678
+ };
5679
+ }
5680
+ function TransactionFeeEstimateRequestToJSON(value) {
5681
+ if (value === undefined) {
5682
+ return undefined;
5683
+ }
5684
+
5685
+ if (value === null) {
5686
+ return null;
5687
+ }
5688
+
5689
+ return {
5690
+ 'transaction_payload': value.transaction_payload,
5691
+ 'estimated_len': value.estimated_len
5692
+ };
5693
+ }
5694
+
5695
+ /* tslint:disable */
5696
+ function TransactionFeeEstimateResponseFromJSON(json) {
5697
+ return TransactionFeeEstimateResponseFromJSONTyped(json);
5698
+ }
5699
+ function TransactionFeeEstimateResponseFromJSONTyped(json, ignoreDiscriminator) {
5700
+ if (json === undefined || json === null) {
5701
+ return json;
5702
+ }
5703
+
5704
+ return {
5705
+ 'estimated_cost_scalar': json['estimated_cost_scalar'],
5706
+ 'cost_scalar_change_by_byte': !exists(json, 'cost_scalar_change_by_byte') ? undefined : json['cost_scalar_change_by_byte'],
5707
+ 'estimated_cost': TransactionFeeEstimateResponseEstimatedCostFromJSON(json['estimated_cost']),
5708
+ 'estimations': !exists(json, 'estimations') ? undefined : json['estimations'].map(TransactionFeeEstimateResponseEstimationsFromJSON)
5709
+ };
5710
+ }
5711
+ function TransactionFeeEstimateResponseToJSON(value) {
5712
+ if (value === undefined) {
5713
+ return undefined;
5714
+ }
5715
+
5716
+ if (value === null) {
5717
+ return null;
5718
+ }
5719
+
5720
+ return {
5721
+ 'estimated_cost_scalar': value.estimated_cost_scalar,
5722
+ 'cost_scalar_change_by_byte': value.cost_scalar_change_by_byte,
5723
+ 'estimated_cost': TransactionFeeEstimateResponseEstimatedCostToJSON(value.estimated_cost),
5724
+ 'estimations': value.estimations === undefined ? undefined : value.estimations.map(TransactionFeeEstimateResponseEstimationsToJSON)
5725
+ };
5726
+ }
5727
+
5728
+ /* tslint:disable */
5729
+
5730
+ /* eslint-disable */
5731
+
5732
+ /**
5733
+ * Stacks Blockchain API
5734
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
5735
+ *
5736
+ * The version of the OpenAPI document: STACKS_API_VERSION
5737
+ *
5738
+ *
5739
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5740
+ * https://openapi-generator.tech
5741
+ * Do not edit the class manually.
5742
+ */
5743
+ function TransactionFeeEstimateResponseEstimatedCostFromJSON(json) {
5744
+ return TransactionFeeEstimateResponseEstimatedCostFromJSONTyped(json);
5745
+ }
5746
+ function TransactionFeeEstimateResponseEstimatedCostFromJSONTyped(json, ignoreDiscriminator) {
5747
+ if (json === undefined || json === null) {
5748
+ return json;
5749
+ }
5750
+
5751
+ return {
5752
+ 'read_count': json['read_count'],
5753
+ 'read_length': json['read_length'],
5754
+ 'runtime': json['runtime'],
5755
+ 'write_count': json['write_count'],
5756
+ 'write_length': json['write_length']
5757
+ };
5758
+ }
5759
+ function TransactionFeeEstimateResponseEstimatedCostToJSON(value) {
5760
+ if (value === undefined) {
5761
+ return undefined;
5762
+ }
5763
+
5764
+ if (value === null) {
5765
+ return null;
5766
+ }
5767
+
5768
+ return {
5769
+ 'read_count': value.read_count,
5770
+ 'read_length': value.read_length,
5771
+ 'runtime': value.runtime,
5772
+ 'write_count': value.write_count,
5773
+ 'write_length': value.write_length
5774
+ };
5775
+ }
5776
+
5777
+ /* tslint:disable */
5778
+ function TransactionFeeEstimateResponseEstimationsFromJSON(json) {
5779
+ return TransactionFeeEstimateResponseEstimationsFromJSONTyped(json);
5780
+ }
5781
+ function TransactionFeeEstimateResponseEstimationsFromJSONTyped(json, ignoreDiscriminator) {
5782
+ if (json === undefined || json === null) {
5783
+ return json;
5784
+ }
5785
+
5786
+ return {
5787
+ 'fee_rate': !exists(json, 'fee_rate') ? undefined : json['fee_rate'],
5788
+ 'fee': !exists(json, 'fee') ? undefined : json['fee']
5789
+ };
5790
+ }
5791
+ function TransactionFeeEstimateResponseEstimationsToJSON(value) {
5792
+ if (value === undefined) {
5793
+ return undefined;
5794
+ }
5795
+
5796
+ if (value === null) {
5797
+ return null;
5798
+ }
5799
+
5800
+ return {
5801
+ 'fee_rate': value.fee_rate,
5802
+ 'fee': value.fee
5803
+ };
5804
+ }
5805
+
5806
+ /* tslint:disable */
5807
+
5808
+ /* eslint-disable */
5809
+
5625
5810
  /**
5626
5811
  * Stacks Blockchain API
5627
5812
  * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
@@ -6765,8 +6950,8 @@
6765
6950
  var _proto = FeesApi.prototype;
6766
6951
 
6767
6952
  /**
6768
- * Retrieves estimated fee rate.
6769
- * fetch fee rate
6953
+ * **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for the given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
6954
+ * Fetch fee rate
6770
6955
  */
6771
6956
  _proto.fetchFeeRateRaw = function fetchFeeRateRaw(requestParameters, initOverrides) {
6772
6957
  try {
@@ -6795,8 +6980,8 @@
6795
6980
  }
6796
6981
  }
6797
6982
  /**
6798
- * Retrieves estimated fee rate.
6799
- * fetch fee rate
6983
+ * **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for the given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
6984
+ * Fetch fee rate
6800
6985
  */
6801
6986
  ;
6802
6987
 
@@ -6851,6 +7036,51 @@
6851
7036
  } catch (e) {
6852
7037
  return Promise.reject(e);
6853
7038
  }
7039
+ }
7040
+ /**
7041
+ * Get an estimated fee for the supplied transaction. This estimates the execution cost of the transaction, the current fee rate of the network, and returns estimates for fee amounts. * `transaction_payload` is a hex-encoded serialization of the TransactionPayload for the transaction. * `estimated_len` is an optional argument that provides the endpoint with an estimation of the final length (in bytes) of the transaction, including any post-conditions and signatures If the node cannot provide an estimate for the transaction (e.g., if the node has never seen a contract-call for the given contract and function) or if estimation is not configured on this node, a 400 response is returned. The 400 response will be a JSON error containing a `reason` field which can be one of the following: * `DatabaseError` - this Stacks node has had an internal database error while trying to estimate the costs of the supplied transaction. * `NoEstimateAvailable` - this Stacks node has not seen this kind of contract-call before, and it cannot provide an estimate yet. * `CostEstimationDisabled` - this Stacks node does not perform fee or cost estimation, and it cannot respond on this endpoint. The 200 response contains the following data: * `estimated_cost` - the estimated multi-dimensional cost of executing the Clarity VM on the provided transaction. * `estimated_cost_scalar` - a unitless integer that the Stacks node uses to compare how much of the block limit is consumed by different transactions. This value incorporates the estimated length of the transaction and the estimated execution cost of the transaction. The range of this integer may vary between different Stacks nodes. In order to compute an estimate of total fee amount for the transaction, this value is multiplied by the same Stacks node\'s estimated fee rate. * `cost_scalar_change_by_byte` - a float value that indicates how much the `estimated_cost_scalar` value would increase for every additional byte in the final transaction. * `estimations` - an array of estimated fee rates and total fees to pay in microSTX for the transaction. This array provides a range of estimates (default: 3) that may be used. Each element of the array contains the following fields: * `fee_rate` - the estimated value for the current fee rates in the network * `fee` - the estimated value for the total fee in microSTX that the given transaction should pay. These values are the result of computing: `fee_rate` x `estimated_cost_scalar`. If the estimated fees are less than the minimum relay fee `(1 ustx x estimated_len)`, then that minimum relay fee will be returned here instead. Note: If the final transaction\'s byte size is larger than supplied to `estimated_len`, then applications should increase this fee amount by: `fee_rate` x `cost_scalar_change_by_byte` x (`final_size` - `estimated_size`)
7042
+ * Get approximate fees for the given transaction
7043
+ */
7044
+ ;
7045
+
7046
+ _proto.postFeeTransactionRaw = function postFeeTransactionRaw(requestParameters, initOverrides) {
7047
+ try {
7048
+ var _this10 = this;
7049
+
7050
+ var queryParameters = {};
7051
+ var headerParameters = {};
7052
+ headerParameters['Content-Type'] = 'application/json';
7053
+ return Promise.resolve(_this10.request({
7054
+ path: "/v2/fees/transaction",
7055
+ method: 'POST',
7056
+ headers: headerParameters,
7057
+ query: queryParameters,
7058
+ body: TransactionFeeEstimateRequestToJSON(requestParameters.transactionFeeEstimateRequest)
7059
+ }, initOverrides)).then(function (response) {
7060
+ return new JSONApiResponse(response, function (jsonValue) {
7061
+ return TransactionFeeEstimateResponseFromJSON(jsonValue);
7062
+ });
7063
+ });
7064
+ } catch (e) {
7065
+ return Promise.reject(e);
7066
+ }
7067
+ }
7068
+ /**
7069
+ * Get an estimated fee for the supplied transaction. This estimates the execution cost of the transaction, the current fee rate of the network, and returns estimates for fee amounts. * `transaction_payload` is a hex-encoded serialization of the TransactionPayload for the transaction. * `estimated_len` is an optional argument that provides the endpoint with an estimation of the final length (in bytes) of the transaction, including any post-conditions and signatures If the node cannot provide an estimate for the transaction (e.g., if the node has never seen a contract-call for the given contract and function) or if estimation is not configured on this node, a 400 response is returned. The 400 response will be a JSON error containing a `reason` field which can be one of the following: * `DatabaseError` - this Stacks node has had an internal database error while trying to estimate the costs of the supplied transaction. * `NoEstimateAvailable` - this Stacks node has not seen this kind of contract-call before, and it cannot provide an estimate yet. * `CostEstimationDisabled` - this Stacks node does not perform fee or cost estimation, and it cannot respond on this endpoint. The 200 response contains the following data: * `estimated_cost` - the estimated multi-dimensional cost of executing the Clarity VM on the provided transaction. * `estimated_cost_scalar` - a unitless integer that the Stacks node uses to compare how much of the block limit is consumed by different transactions. This value incorporates the estimated length of the transaction and the estimated execution cost of the transaction. The range of this integer may vary between different Stacks nodes. In order to compute an estimate of total fee amount for the transaction, this value is multiplied by the same Stacks node\'s estimated fee rate. * `cost_scalar_change_by_byte` - a float value that indicates how much the `estimated_cost_scalar` value would increase for every additional byte in the final transaction. * `estimations` - an array of estimated fee rates and total fees to pay in microSTX for the transaction. This array provides a range of estimates (default: 3) that may be used. Each element of the array contains the following fields: * `fee_rate` - the estimated value for the current fee rates in the network * `fee` - the estimated value for the total fee in microSTX that the given transaction should pay. These values are the result of computing: `fee_rate` x `estimated_cost_scalar`. If the estimated fees are less than the minimum relay fee `(1 ustx x estimated_len)`, then that minimum relay fee will be returned here instead. Note: If the final transaction\'s byte size is larger than supplied to `estimated_len`, then applications should increase this fee amount by: `fee_rate` x `cost_scalar_change_by_byte` x (`final_size` - `estimated_size`)
7070
+ * Get approximate fees for the given transaction
7071
+ */
7072
+ ;
7073
+
7074
+ _proto.postFeeTransaction = function postFeeTransaction(requestParameters, initOverrides) {
7075
+ try {
7076
+ var _this12 = this;
7077
+
7078
+ return Promise.resolve(_this12.postFeeTransactionRaw(requestParameters, initOverrides)).then(function (response) {
7079
+ return Promise.resolve(response.value());
7080
+ });
7081
+ } catch (e) {
7082
+ return Promise.reject(e);
7083
+ }
6854
7084
  };
6855
7085
 
6856
7086
  return FeesApi;
@@ -7563,13 +7793,58 @@
7563
7793
 
7564
7794
  var _proto = NamesApi.prototype;
7565
7795
 
7796
+ /**
7797
+ * Retrieves the list of subdomains for a specific name
7798
+ * Get Name Subdomains
7799
+ */
7800
+ _proto.fetchSubdomainsListForNameRaw = function fetchSubdomainsListForNameRaw(requestParameters, initOverrides) {
7801
+ try {
7802
+ var _this2 = this;
7803
+
7804
+ if (requestParameters.name === null || requestParameters.name === undefined) {
7805
+ throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling fetchSubdomainsListForName.');
7806
+ }
7807
+
7808
+ var queryParameters = {};
7809
+ var headerParameters = {};
7810
+ return Promise.resolve(_this2.request({
7811
+ path: "/v1/names/{name}/subdomains".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7812
+ method: 'GET',
7813
+ headers: headerParameters,
7814
+ query: queryParameters
7815
+ }, initOverrides)).then(function (response) {
7816
+ return new JSONApiResponse(response);
7817
+ });
7818
+ } catch (e) {
7819
+ return Promise.reject(e);
7820
+ }
7821
+ }
7822
+ /**
7823
+ * Retrieves the list of subdomains for a specific name
7824
+ * Get Name Subdomains
7825
+ */
7826
+ ;
7827
+
7828
+ _proto.fetchSubdomainsListForName = function fetchSubdomainsListForName(requestParameters, initOverrides) {
7829
+ try {
7830
+ var _this4 = this;
7831
+
7832
+ return Promise.resolve(_this4.fetchSubdomainsListForNameRaw(requestParameters, initOverrides)).then(function (response) {
7833
+ return Promise.resolve(response.value());
7834
+ });
7835
+ } catch (e) {
7836
+ return Promise.reject(e);
7837
+ }
7838
+ }
7566
7839
  /**
7567
7840
  * Retrieves a user’s raw zone file. This only works for RFC-compliant zone files. This method returns an error for names that have non-standard zone files.
7568
7841
  * Get Zone File
7569
7842
  */
7843
+ ;
7844
+
7570
7845
  _proto.fetchZoneFileRaw = function fetchZoneFileRaw(requestParameters, initOverrides) {
7571
7846
  try {
7572
- var _this2 = this;
7847
+ var _this6 = this;
7573
7848
 
7574
7849
  if (requestParameters.name === null || requestParameters.name === undefined) {
7575
7850
  throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling fetchZoneFile.');
@@ -7577,7 +7852,7 @@
7577
7852
 
7578
7853
  var queryParameters = {};
7579
7854
  var headerParameters = {};
7580
- return Promise.resolve(_this2.request({
7855
+ return Promise.resolve(_this6.request({
7581
7856
  path: "/v1/names/{name}/zonefile".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7582
7857
  method: 'GET',
7583
7858
  headers: headerParameters,
@@ -7597,9 +7872,9 @@
7597
7872
 
7598
7873
  _proto.fetchZoneFile = function fetchZoneFile(requestParameters, initOverrides) {
7599
7874
  try {
7600
- var _this4 = this;
7875
+ var _this8 = this;
7601
7876
 
7602
- return Promise.resolve(_this4.fetchZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
7877
+ return Promise.resolve(_this8.fetchZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
7603
7878
  return Promise.resolve(response.value());
7604
7879
  });
7605
7880
  } catch (e) {
@@ -7614,7 +7889,7 @@
7614
7889
 
7615
7890
  _proto.getAllNamesRaw = function getAllNamesRaw(requestParameters, initOverrides) {
7616
7891
  try {
7617
- var _this6 = this;
7892
+ var _this10 = this;
7618
7893
 
7619
7894
  if (requestParameters.page === null || requestParameters.page === undefined) {
7620
7895
  throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllNames.');
@@ -7627,7 +7902,7 @@
7627
7902
  }
7628
7903
 
7629
7904
  var headerParameters = {};
7630
- return Promise.resolve(_this6.request({
7905
+ return Promise.resolve(_this10.request({
7631
7906
  path: "/v1/names",
7632
7907
  method: 'GET',
7633
7908
  headers: headerParameters,
@@ -7647,9 +7922,9 @@
7647
7922
 
7648
7923
  _proto.getAllNames = function getAllNames(requestParameters, initOverrides) {
7649
7924
  try {
7650
- var _this8 = this;
7925
+ var _this12 = this;
7651
7926
 
7652
- return Promise.resolve(_this8.getAllNamesRaw(requestParameters, initOverrides)).then(function (response) {
7927
+ return Promise.resolve(_this12.getAllNamesRaw(requestParameters, initOverrides)).then(function (response) {
7653
7928
  return Promise.resolve(response.value());
7654
7929
  });
7655
7930
  } catch (e) {
@@ -7664,11 +7939,11 @@
7664
7939
 
7665
7940
  _proto.getAllNamespacesRaw = function getAllNamespacesRaw(initOverrides) {
7666
7941
  try {
7667
- var _this10 = this;
7942
+ var _this14 = this;
7668
7943
 
7669
7944
  var queryParameters = {};
7670
7945
  var headerParameters = {};
7671
- return Promise.resolve(_this10.request({
7946
+ return Promise.resolve(_this14.request({
7672
7947
  path: "/v1/namespaces",
7673
7948
  method: 'GET',
7674
7949
  headers: headerParameters,
@@ -7690,9 +7965,9 @@
7690
7965
 
7691
7966
  _proto.getAllNamespaces = function getAllNamespaces(initOverrides) {
7692
7967
  try {
7693
- var _this12 = this;
7968
+ var _this16 = this;
7694
7969
 
7695
- return Promise.resolve(_this12.getAllNamespacesRaw(initOverrides)).then(function (response) {
7970
+ return Promise.resolve(_this16.getAllNamespacesRaw(initOverrides)).then(function (response) {
7696
7971
  return Promise.resolve(response.value());
7697
7972
  });
7698
7973
  } catch (e) {
@@ -7707,7 +7982,7 @@
7707
7982
 
7708
7983
  _proto.getHistoricalZoneFileRaw = function getHistoricalZoneFileRaw(requestParameters, initOverrides) {
7709
7984
  try {
7710
- var _this14 = this;
7985
+ var _this18 = this;
7711
7986
 
7712
7987
  if (requestParameters.name === null || requestParameters.name === undefined) {
7713
7988
  throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getHistoricalZoneFile.');
@@ -7719,7 +7994,7 @@
7719
7994
 
7720
7995
  var queryParameters = {};
7721
7996
  var headerParameters = {};
7722
- return Promise.resolve(_this14.request({
7997
+ return Promise.resolve(_this18.request({
7723
7998
  path: "/v1/names/{name}/zonefile/{zoneFileHash}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))).replace("{" + "zoneFileHash" + "}", encodeURIComponent(String(requestParameters.zoneFileHash))),
7724
7999
  method: 'GET',
7725
8000
  headers: headerParameters,
@@ -7739,9 +8014,9 @@
7739
8014
 
7740
8015
  _proto.getHistoricalZoneFile = function getHistoricalZoneFile(requestParameters, initOverrides) {
7741
8016
  try {
7742
- var _this16 = this;
8017
+ var _this20 = this;
7743
8018
 
7744
- return Promise.resolve(_this16.getHistoricalZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
8019
+ return Promise.resolve(_this20.getHistoricalZoneFileRaw(requestParameters, initOverrides)).then(function (response) {
7745
8020
  return Promise.resolve(response.value());
7746
8021
  });
7747
8022
  } catch (e) {
@@ -7756,7 +8031,7 @@
7756
8031
 
7757
8032
  _proto.getNameHistoryRaw = function getNameHistoryRaw(requestParameters, initOverrides) {
7758
8033
  try {
7759
- var _this18 = this;
8034
+ var _this22 = this;
7760
8035
 
7761
8036
  if (requestParameters.name === null || requestParameters.name === undefined) {
7762
8037
  throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameHistory.');
@@ -7773,7 +8048,7 @@
7773
8048
  }
7774
8049
 
7775
8050
  var headerParameters = {};
7776
- return Promise.resolve(_this18.request({
8051
+ return Promise.resolve(_this22.request({
7777
8052
  path: "/v1/names/{name}/history".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7778
8053
  method: 'GET',
7779
8054
  headers: headerParameters,
@@ -7793,9 +8068,9 @@
7793
8068
 
7794
8069
  _proto.getNameHistory = function getNameHistory(requestParameters, initOverrides) {
7795
8070
  try {
7796
- var _this20 = this;
8071
+ var _this24 = this;
7797
8072
 
7798
- return Promise.resolve(_this20.getNameHistoryRaw(requestParameters, initOverrides)).then(function (response) {
8073
+ return Promise.resolve(_this24.getNameHistoryRaw(requestParameters, initOverrides)).then(function (response) {
7799
8074
  return Promise.resolve(response.value());
7800
8075
  });
7801
8076
  } catch (e) {
@@ -7810,7 +8085,7 @@
7810
8085
 
7811
8086
  _proto.getNameInfoRaw = function getNameInfoRaw(requestParameters, initOverrides) {
7812
8087
  try {
7813
- var _this22 = this;
8088
+ var _this26 = this;
7814
8089
 
7815
8090
  if (requestParameters.name === null || requestParameters.name === undefined) {
7816
8091
  throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNameInfo.');
@@ -7818,7 +8093,7 @@
7818
8093
 
7819
8094
  var queryParameters = {};
7820
8095
  var headerParameters = {};
7821
- return Promise.resolve(_this22.request({
8096
+ return Promise.resolve(_this26.request({
7822
8097
  path: "/v1/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7823
8098
  method: 'GET',
7824
8099
  headers: headerParameters,
@@ -7840,9 +8115,9 @@
7840
8115
 
7841
8116
  _proto.getNameInfo = function getNameInfo(requestParameters, initOverrides) {
7842
8117
  try {
7843
- var _this24 = this;
8118
+ var _this28 = this;
7844
8119
 
7845
- return Promise.resolve(_this24.getNameInfoRaw(requestParameters, initOverrides)).then(function (response) {
8120
+ return Promise.resolve(_this28.getNameInfoRaw(requestParameters, initOverrides)).then(function (response) {
7846
8121
  return Promise.resolve(response.value());
7847
8122
  });
7848
8123
  } catch (e) {
@@ -7857,7 +8132,7 @@
7857
8132
 
7858
8133
  _proto.getNamePriceRaw = function getNamePriceRaw(requestParameters, initOverrides) {
7859
8134
  try {
7860
- var _this26 = this;
8135
+ var _this30 = this;
7861
8136
 
7862
8137
  if (requestParameters.name === null || requestParameters.name === undefined) {
7863
8138
  throw new RequiredError('name', 'Required parameter requestParameters.name was null or undefined when calling getNamePrice.');
@@ -7865,7 +8140,7 @@
7865
8140
 
7866
8141
  var queryParameters = {};
7867
8142
  var headerParameters = {};
7868
- return Promise.resolve(_this26.request({
8143
+ return Promise.resolve(_this30.request({
7869
8144
  path: "/v2/prices/names/{name}".replace("{" + "name" + "}", encodeURIComponent(String(requestParameters.name))),
7870
8145
  method: 'GET',
7871
8146
  headers: headerParameters,
@@ -7887,9 +8162,9 @@
7887
8162
 
7888
8163
  _proto.getNamePrice = function getNamePrice(requestParameters, initOverrides) {
7889
8164
  try {
7890
- var _this28 = this;
8165
+ var _this32 = this;
7891
8166
 
7892
- return Promise.resolve(_this28.getNamePriceRaw(requestParameters, initOverrides)).then(function (response) {
8167
+ return Promise.resolve(_this32.getNamePriceRaw(requestParameters, initOverrides)).then(function (response) {
7893
8168
  return Promise.resolve(response.value());
7894
8169
  });
7895
8170
  } catch (e) {
@@ -7904,7 +8179,7 @@
7904
8179
 
7905
8180
  _proto.getNamesOwnedByAddressRaw = function getNamesOwnedByAddressRaw(requestParameters, initOverrides) {
7906
8181
  try {
7907
- var _this30 = this;
8182
+ var _this34 = this;
7908
8183
 
7909
8184
  if (requestParameters.blockchain === null || requestParameters.blockchain === undefined) {
7910
8185
  throw new RequiredError('blockchain', 'Required parameter requestParameters.blockchain was null or undefined when calling getNamesOwnedByAddress.');
@@ -7916,7 +8191,7 @@
7916
8191
 
7917
8192
  var queryParameters = {};
7918
8193
  var headerParameters = {};
7919
- return Promise.resolve(_this30.request({
8194
+ return Promise.resolve(_this34.request({
7920
8195
  path: "/v1/addresses/{blockchain}/{address}".replace("{" + "blockchain" + "}", encodeURIComponent(String(requestParameters.blockchain))).replace("{" + "address" + "}", encodeURIComponent(String(requestParameters.address))),
7921
8196
  method: 'GET',
7922
8197
  headers: headerParameters,
@@ -7938,9 +8213,9 @@
7938
8213
 
7939
8214
  _proto.getNamesOwnedByAddress = function getNamesOwnedByAddress(requestParameters, initOverrides) {
7940
8215
  try {
7941
- var _this32 = this;
8216
+ var _this36 = this;
7942
8217
 
7943
- return Promise.resolve(_this32.getNamesOwnedByAddressRaw(requestParameters, initOverrides)).then(function (response) {
8218
+ return Promise.resolve(_this36.getNamesOwnedByAddressRaw(requestParameters, initOverrides)).then(function (response) {
7944
8219
  return Promise.resolve(response.value());
7945
8220
  });
7946
8221
  } catch (e) {
@@ -7955,7 +8230,7 @@
7955
8230
 
7956
8231
  _proto.getNamespaceNamesRaw = function getNamespaceNamesRaw(requestParameters, initOverrides) {
7957
8232
  try {
7958
- var _this34 = this;
8233
+ var _this38 = this;
7959
8234
 
7960
8235
  if (requestParameters.tld === null || requestParameters.tld === undefined) {
7961
8236
  throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespaceNames.');
@@ -7972,7 +8247,7 @@
7972
8247
  }
7973
8248
 
7974
8249
  var headerParameters = {};
7975
- return Promise.resolve(_this34.request({
8250
+ return Promise.resolve(_this38.request({
7976
8251
  path: "/v1/namespaces/{tld}/names".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
7977
8252
  method: 'GET',
7978
8253
  headers: headerParameters,
@@ -7992,9 +8267,9 @@
7992
8267
 
7993
8268
  _proto.getNamespaceNames = function getNamespaceNames(requestParameters, initOverrides) {
7994
8269
  try {
7995
- var _this36 = this;
8270
+ var _this40 = this;
7996
8271
 
7997
- return Promise.resolve(_this36.getNamespaceNamesRaw(requestParameters, initOverrides)).then(function (response) {
8272
+ return Promise.resolve(_this40.getNamespaceNamesRaw(requestParameters, initOverrides)).then(function (response) {
7998
8273
  return Promise.resolve(response.value());
7999
8274
  });
8000
8275
  } catch (e) {
@@ -8009,7 +8284,7 @@
8009
8284
 
8010
8285
  _proto.getNamespacePriceRaw = function getNamespacePriceRaw(requestParameters, initOverrides) {
8011
8286
  try {
8012
- var _this38 = this;
8287
+ var _this42 = this;
8013
8288
 
8014
8289
  if (requestParameters.tld === null || requestParameters.tld === undefined) {
8015
8290
  throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespacePrice.');
@@ -8017,7 +8292,7 @@
8017
8292
 
8018
8293
  var queryParameters = {};
8019
8294
  var headerParameters = {};
8020
- return Promise.resolve(_this38.request({
8295
+ return Promise.resolve(_this42.request({
8021
8296
  path: "/v2/prices/namespaces/{tld}".replace("{" + "tld" + "}", encodeURIComponent(String(requestParameters.tld))),
8022
8297
  method: 'GET',
8023
8298
  headers: headerParameters,
@@ -8039,9 +8314,9 @@
8039
8314
 
8040
8315
  _proto.getNamespacePrice = function getNamespacePrice(requestParameters, initOverrides) {
8041
8316
  try {
8042
- var _this40 = this;
8317
+ var _this44 = this;
8043
8318
 
8044
- return Promise.resolve(_this40.getNamespacePriceRaw(requestParameters, initOverrides)).then(function (response) {
8319
+ return Promise.resolve(_this44.getNamespacePriceRaw(requestParameters, initOverrides)).then(function (response) {
8045
8320
  return Promise.resolve(response.value());
8046
8321
  });
8047
8322
  } catch (e) {
@@ -10074,6 +10349,70 @@
10074
10349
  return Promise.reject(e);
10075
10350
  }
10076
10351
  }
10352
+ /**
10353
+ * Retrieves the list of events filtered by principal (STX address or Smart Contract ID), transaction id or event types. The list of event types is (\'smart_contract_log\', \'stx_lock\', \'stx_asset\', \'fungible_token_asset\', \'non_fungible_token_asset\').
10354
+ * Transaction Events
10355
+ */
10356
+ ;
10357
+
10358
+ _proto.getFilteredEventsRaw = function getFilteredEventsRaw(requestParameters, initOverrides) {
10359
+ try {
10360
+ var _this10 = this;
10361
+
10362
+ var queryParameters = {};
10363
+
10364
+ if (requestParameters.txId !== undefined) {
10365
+ queryParameters['tx_id'] = requestParameters.txId;
10366
+ }
10367
+
10368
+ if (requestParameters.address !== undefined) {
10369
+ queryParameters['address'] = requestParameters.address;
10370
+ }
10371
+
10372
+ if (requestParameters.limit !== undefined) {
10373
+ queryParameters['limit'] = requestParameters.limit;
10374
+ }
10375
+
10376
+ if (requestParameters.offset !== undefined) {
10377
+ queryParameters['offset'] = requestParameters.offset;
10378
+ }
10379
+
10380
+ if (requestParameters.type) {
10381
+ queryParameters['type'] = requestParameters.type;
10382
+ }
10383
+
10384
+ var headerParameters = {};
10385
+ return Promise.resolve(_this10.request({
10386
+ path: "/extended/v1/tx/events",
10387
+ method: 'GET',
10388
+ headers: headerParameters,
10389
+ query: queryParameters
10390
+ }, initOverrides)).then(function (response) {
10391
+ return new JSONApiResponse(response, function (jsonValue) {
10392
+ return TransactionEventsResponseFromJSON(jsonValue);
10393
+ });
10394
+ });
10395
+ } catch (e) {
10396
+ return Promise.reject(e);
10397
+ }
10398
+ }
10399
+ /**
10400
+ * Retrieves the list of events filtered by principal (STX address or Smart Contract ID), transaction id or event types. The list of event types is (\'smart_contract_log\', \'stx_lock\', \'stx_asset\', \'fungible_token_asset\', \'non_fungible_token_asset\').
10401
+ * Transaction Events
10402
+ */
10403
+ ;
10404
+
10405
+ _proto.getFilteredEvents = function getFilteredEvents(requestParameters, initOverrides) {
10406
+ try {
10407
+ var _this12 = this;
10408
+
10409
+ return Promise.resolve(_this12.getFilteredEventsRaw(requestParameters, initOverrides)).then(function (response) {
10410
+ return Promise.resolve(response.value());
10411
+ });
10412
+ } catch (e) {
10413
+ return Promise.reject(e);
10414
+ }
10415
+ }
10077
10416
  /**
10078
10417
  * Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation. If you need to monitor new transactions, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
10079
10418
  * Get mempool transactions
@@ -10082,7 +10421,7 @@
10082
10421
 
10083
10422
  _proto.getMempoolTransactionListRaw = function getMempoolTransactionListRaw(requestParameters, initOverrides) {
10084
10423
  try {
10085
- var _this10 = this;
10424
+ var _this14 = this;
10086
10425
 
10087
10426
  var queryParameters = {};
10088
10427
 
@@ -10111,7 +10450,7 @@
10111
10450
  }
10112
10451
 
10113
10452
  var headerParameters = {};
10114
- return Promise.resolve(_this10.request({
10453
+ return Promise.resolve(_this14.request({
10115
10454
  path: "/extended/v1/tx/mempool",
10116
10455
  method: 'GET',
10117
10456
  headers: headerParameters,
@@ -10133,9 +10472,9 @@
10133
10472
 
10134
10473
  _proto.getMempoolTransactionList = function getMempoolTransactionList(requestParameters, initOverrides) {
10135
10474
  try {
10136
- var _this12 = this;
10475
+ var _this16 = this;
10137
10476
 
10138
- return Promise.resolve(_this12.getMempoolTransactionListRaw(requestParameters, initOverrides)).then(function (response) {
10477
+ return Promise.resolve(_this16.getMempoolTransactionListRaw(requestParameters, initOverrides)).then(function (response) {
10139
10478
  return Promise.resolve(response.value());
10140
10479
  });
10141
10480
  } catch (e) {
@@ -10150,7 +10489,7 @@
10150
10489
 
10151
10490
  _proto.getRawTransactionByIdRaw = function getRawTransactionByIdRaw(requestParameters, initOverrides) {
10152
10491
  try {
10153
- var _this14 = this;
10492
+ var _this18 = this;
10154
10493
 
10155
10494
  if (requestParameters.txId === null || requestParameters.txId === undefined) {
10156
10495
  throw new RequiredError('txId', 'Required parameter requestParameters.txId was null or undefined when calling getRawTransactionById.');
@@ -10158,7 +10497,7 @@
10158
10497
 
10159
10498
  var queryParameters = {};
10160
10499
  var headerParameters = {};
10161
- return Promise.resolve(_this14.request({
10500
+ return Promise.resolve(_this18.request({
10162
10501
  path: "/extended/v1/tx/{tx_id}/raw".replace("{" + "tx_id" + "}", encodeURIComponent(String(requestParameters.txId))),
10163
10502
  method: 'GET',
10164
10503
  headers: headerParameters,
@@ -10180,9 +10519,9 @@
10180
10519
 
10181
10520
  _proto.getRawTransactionById = function getRawTransactionById(requestParameters, initOverrides) {
10182
10521
  try {
10183
- var _this16 = this;
10522
+ var _this20 = this;
10184
10523
 
10185
- return Promise.resolve(_this16.getRawTransactionByIdRaw(requestParameters, initOverrides)).then(function (response) {
10524
+ return Promise.resolve(_this20.getRawTransactionByIdRaw(requestParameters, initOverrides)).then(function (response) {
10186
10525
  return Promise.resolve(response.value());
10187
10526
  });
10188
10527
  } catch (e) {
@@ -10197,7 +10536,7 @@
10197
10536
 
10198
10537
  _proto.getTransactionByIdRaw = function getTransactionByIdRaw(requestParameters, initOverrides) {
10199
10538
  try {
10200
- var _this18 = this;
10539
+ var _this22 = this;
10201
10540
 
10202
10541
  if (requestParameters.txId === null || requestParameters.txId === undefined) {
10203
10542
  throw new RequiredError('txId', 'Required parameter requestParameters.txId was null or undefined when calling getTransactionById.');
@@ -10218,7 +10557,7 @@
10218
10557
  }
10219
10558
 
10220
10559
  var headerParameters = {};
10221
- return Promise.resolve(_this18.request({
10560
+ return Promise.resolve(_this22.request({
10222
10561
  path: "/extended/v1/tx/{tx_id}".replace("{" + "tx_id" + "}", encodeURIComponent(String(requestParameters.txId))),
10223
10562
  method: 'GET',
10224
10563
  headers: headerParameters,
@@ -10238,9 +10577,9 @@
10238
10577
 
10239
10578
  _proto.getTransactionById = function getTransactionById(requestParameters, initOverrides) {
10240
10579
  try {
10241
- var _this20 = this;
10580
+ var _this24 = this;
10242
10581
 
10243
- return Promise.resolve(_this20.getTransactionByIdRaw(requestParameters, initOverrides)).then(function (response) {
10582
+ return Promise.resolve(_this24.getTransactionByIdRaw(requestParameters, initOverrides)).then(function (response) {
10244
10583
  return Promise.resolve(response.value());
10245
10584
  });
10246
10585
  } catch (e) {
@@ -10255,7 +10594,7 @@
10255
10594
 
10256
10595
  _proto.getTransactionListRaw = function getTransactionListRaw(requestParameters, initOverrides) {
10257
10596
  try {
10258
- var _this22 = this;
10597
+ var _this26 = this;
10259
10598
 
10260
10599
  var queryParameters = {};
10261
10600
 
@@ -10276,7 +10615,7 @@
10276
10615
  }
10277
10616
 
10278
10617
  var headerParameters = {};
10279
- return Promise.resolve(_this22.request({
10618
+ return Promise.resolve(_this26.request({
10280
10619
  path: "/extended/v1/tx",
10281
10620
  method: 'GET',
10282
10621
  headers: headerParameters,
@@ -10298,9 +10637,9 @@
10298
10637
 
10299
10638
  _proto.getTransactionList = function getTransactionList(requestParameters, initOverrides) {
10300
10639
  try {
10301
- var _this24 = this;
10640
+ var _this28 = this;
10302
10641
 
10303
- return Promise.resolve(_this24.getTransactionListRaw(requestParameters, initOverrides)).then(function (response) {
10642
+ return Promise.resolve(_this28.getTransactionListRaw(requestParameters, initOverrides)).then(function (response) {
10304
10643
  return Promise.resolve(response.value());
10305
10644
  });
10306
10645
  } catch (e) {
@@ -10315,7 +10654,7 @@
10315
10654
 
10316
10655
  _proto.getTransactionsByBlockHashRaw = function getTransactionsByBlockHashRaw(requestParameters, initOverrides) {
10317
10656
  try {
10318
- var _this26 = this;
10657
+ var _this30 = this;
10319
10658
 
10320
10659
  if (requestParameters.blockHash === null || requestParameters.blockHash === undefined) {
10321
10660
  throw new RequiredError('blockHash', 'Required parameter requestParameters.blockHash was null or undefined when calling getTransactionsByBlockHash.');
@@ -10332,7 +10671,7 @@
10332
10671
  }
10333
10672
 
10334
10673
  var headerParameters = {};
10335
- return Promise.resolve(_this26.request({
10674
+ return Promise.resolve(_this30.request({
10336
10675
  path: "/extended/v1/tx/block/{block_hash}".replace("{" + "block_hash" + "}", encodeURIComponent(String(requestParameters.blockHash))),
10337
10676
  method: 'GET',
10338
10677
  headers: headerParameters,
@@ -10354,9 +10693,9 @@
10354
10693
 
10355
10694
  _proto.getTransactionsByBlockHash = function getTransactionsByBlockHash(requestParameters, initOverrides) {
10356
10695
  try {
10357
- var _this28 = this;
10696
+ var _this32 = this;
10358
10697
 
10359
- return Promise.resolve(_this28.getTransactionsByBlockHashRaw(requestParameters, initOverrides)).then(function (response) {
10698
+ return Promise.resolve(_this32.getTransactionsByBlockHashRaw(requestParameters, initOverrides)).then(function (response) {
10360
10699
  return Promise.resolve(response.value());
10361
10700
  });
10362
10701
  } catch (e) {
@@ -10371,7 +10710,7 @@
10371
10710
 
10372
10711
  _proto.getTransactionsByBlockHeightRaw = function getTransactionsByBlockHeightRaw(requestParameters, initOverrides) {
10373
10712
  try {
10374
- var _this30 = this;
10713
+ var _this34 = this;
10375
10714
 
10376
10715
  if (requestParameters.height === null || requestParameters.height === undefined) {
10377
10716
  throw new RequiredError('height', 'Required parameter requestParameters.height was null or undefined when calling getTransactionsByBlockHeight.');
@@ -10392,7 +10731,7 @@
10392
10731
  }
10393
10732
 
10394
10733
  var headerParameters = {};
10395
- return Promise.resolve(_this30.request({
10734
+ return Promise.resolve(_this34.request({
10396
10735
  path: "/extended/v1/tx/block_height/{height}".replace("{" + "height" + "}", encodeURIComponent(String(requestParameters.height))),
10397
10736
  method: 'GET',
10398
10737
  headers: headerParameters,
@@ -10414,9 +10753,9 @@
10414
10753
 
10415
10754
  _proto.getTransactionsByBlockHeight = function getTransactionsByBlockHeight(requestParameters, initOverrides) {
10416
10755
  try {
10417
- var _this32 = this;
10756
+ var _this36 = this;
10418
10757
 
10419
- return Promise.resolve(_this32.getTransactionsByBlockHeightRaw(requestParameters, initOverrides)).then(function (response) {
10758
+ return Promise.resolve(_this36.getTransactionsByBlockHeightRaw(requestParameters, initOverrides)).then(function (response) {
10420
10759
  return Promise.resolve(response.value());
10421
10760
  });
10422
10761
  } catch (e) {
@@ -10431,7 +10770,7 @@
10431
10770
 
10432
10771
  _proto.getTxListDetailsRaw = function getTxListDetailsRaw(requestParameters, initOverrides) {
10433
10772
  try {
10434
- var _this34 = this;
10773
+ var _this38 = this;
10435
10774
 
10436
10775
  if (requestParameters.txId === null || requestParameters.txId === undefined) {
10437
10776
  throw new RequiredError('txId', 'Required parameter requestParameters.txId was null or undefined when calling getTxListDetails.');
@@ -10456,7 +10795,7 @@
10456
10795
  }
10457
10796
 
10458
10797
  var headerParameters = {};
10459
- return Promise.resolve(_this34.request({
10798
+ return Promise.resolve(_this38.request({
10460
10799
  path: "/extended/v1/tx/multiple",
10461
10800
  method: 'GET',
10462
10801
  headers: headerParameters,
@@ -10476,9 +10815,9 @@
10476
10815
 
10477
10816
  _proto.getTxListDetails = function getTxListDetails(requestParameters, initOverrides) {
10478
10817
  try {
10479
- var _this36 = this;
10818
+ var _this40 = this;
10480
10819
 
10481
- return Promise.resolve(_this36.getTxListDetailsRaw(requestParameters, initOverrides)).then(function (response) {
10820
+ return Promise.resolve(_this40.getTxListDetailsRaw(requestParameters, initOverrides)).then(function (response) {
10482
10821
  return Promise.resolve(response.value());
10483
10822
  });
10484
10823
  } catch (e) {
@@ -10493,12 +10832,12 @@
10493
10832
 
10494
10833
  _proto.postCoreNodeTransactionsRaw = function postCoreNodeTransactionsRaw(requestParameters, initOverrides) {
10495
10834
  try {
10496
- var _this38 = this;
10835
+ var _this42 = this;
10497
10836
 
10498
10837
  var queryParameters = {};
10499
10838
  var headerParameters = {};
10500
10839
  headerParameters['Content-Type'] = 'application/octet-stream';
10501
- return Promise.resolve(_this38.request({
10840
+ return Promise.resolve(_this42.request({
10502
10841
  path: "/v2/transactions",
10503
10842
  method: 'POST',
10504
10843
  headers: headerParameters,
@@ -10519,9 +10858,9 @@
10519
10858
 
10520
10859
  _proto.postCoreNodeTransactions = function postCoreNodeTransactions(requestParameters, initOverrides) {
10521
10860
  try {
10522
- var _this40 = this;
10861
+ var _this44 = this;
10523
10862
 
10524
- return Promise.resolve(_this40.postCoreNodeTransactionsRaw(requestParameters, initOverrides)).then(function (response) {
10863
+ return Promise.resolve(_this44.postCoreNodeTransactionsRaw(requestParameters, initOverrides)).then(function (response) {
10525
10864
  return Promise.resolve(response.value());
10526
10865
  });
10527
10866
  } catch (e) {
@@ -10536,6 +10875,21 @@
10536
10875
  * @enum {string}
10537
10876
  */
10538
10877
 
10878
+ exports.GetFilteredEventsTypeEnum = void 0;
10879
+
10880
+ (function (GetFilteredEventsTypeEnum) {
10881
+ GetFilteredEventsTypeEnum["smart_contract_log"] = "smart_contract_log";
10882
+ GetFilteredEventsTypeEnum["stx_lock"] = "stx_lock";
10883
+ GetFilteredEventsTypeEnum["stx_asset"] = "stx_asset";
10884
+ GetFilteredEventsTypeEnum["fungible_token_asset"] = "fungible_token_asset";
10885
+ GetFilteredEventsTypeEnum["non_fungible_token_asset"] = "non_fungible_token_asset";
10886
+ })(exports.GetFilteredEventsTypeEnum || (exports.GetFilteredEventsTypeEnum = {}));
10887
+ /**
10888
+ * @export
10889
+ * @enum {string}
10890
+ */
10891
+
10892
+
10539
10893
  exports.GetTransactionListTypeEnum = void 0;
10540
10894
 
10541
10895
  (function (GetTransactionListTypeEnum) {
@@ -15349,6 +15703,21 @@
15349
15703
  exports.StacksApiSocketClient = StacksApiSocketClient;
15350
15704
  exports.StacksApiWebSocketClient = StacksApiWebSocketClient;
15351
15705
  exports.TextApiResponse = TextApiResponse;
15706
+ exports.TransactionEventsResponseFromJSON = TransactionEventsResponseFromJSON;
15707
+ exports.TransactionEventsResponseFromJSONTyped = TransactionEventsResponseFromJSONTyped;
15708
+ exports.TransactionEventsResponseToJSON = TransactionEventsResponseToJSON;
15709
+ exports.TransactionFeeEstimateRequestFromJSON = TransactionFeeEstimateRequestFromJSON;
15710
+ exports.TransactionFeeEstimateRequestFromJSONTyped = TransactionFeeEstimateRequestFromJSONTyped;
15711
+ exports.TransactionFeeEstimateRequestToJSON = TransactionFeeEstimateRequestToJSON;
15712
+ exports.TransactionFeeEstimateResponseEstimatedCostFromJSON = TransactionFeeEstimateResponseEstimatedCostFromJSON;
15713
+ exports.TransactionFeeEstimateResponseEstimatedCostFromJSONTyped = TransactionFeeEstimateResponseEstimatedCostFromJSONTyped;
15714
+ exports.TransactionFeeEstimateResponseEstimatedCostToJSON = TransactionFeeEstimateResponseEstimatedCostToJSON;
15715
+ exports.TransactionFeeEstimateResponseEstimationsFromJSON = TransactionFeeEstimateResponseEstimationsFromJSON;
15716
+ exports.TransactionFeeEstimateResponseEstimationsFromJSONTyped = TransactionFeeEstimateResponseEstimationsFromJSONTyped;
15717
+ exports.TransactionFeeEstimateResponseEstimationsToJSON = TransactionFeeEstimateResponseEstimationsToJSON;
15718
+ exports.TransactionFeeEstimateResponseFromJSON = TransactionFeeEstimateResponseFromJSON;
15719
+ exports.TransactionFeeEstimateResponseFromJSONTyped = TransactionFeeEstimateResponseFromJSONTyped;
15720
+ exports.TransactionFeeEstimateResponseToJSON = TransactionFeeEstimateResponseToJSON;
15352
15721
  exports.TransactionIdentifierFromJSON = TransactionIdentifierFromJSON;
15353
15722
  exports.TransactionIdentifierFromJSONTyped = TransactionIdentifierFromJSONTyped;
15354
15723
  exports.TransactionIdentifierToJSON = TransactionIdentifierToJSON;