@stacks/blockchain-api-client 7.3.6 → 7.4.0-beta.1
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/lib/generated/apis/MempoolApi.d.ts +49 -0
- package/lib/generated/apis/MempoolApi.js +48 -0
- package/lib/generated/apis/MempoolApi.js.map +1 -0
- package/lib/generated/apis/index.d.ts +1 -0
- package/lib/generated/apis/index.js +1 -0
- package/lib/generated/apis/index.js.map +1 -1
- package/lib/index.umd.js +59 -0
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/MempoolApi.ts +80 -0
- package/src/generated/apis/index.ts +1 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stacks Blockchain API
|
|
3
|
+
* 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>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: STACKS_API_VERSION
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { MempoolTransactionListResponse } from '../models';
|
|
14
|
+
/**
|
|
15
|
+
* MempoolApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface MempoolApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface MempoolApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
23
|
+
* @summary Get mempool transaction fee priorities
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
* @memberof MempoolApiInterface
|
|
27
|
+
*/
|
|
28
|
+
getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolTransactionListResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
31
|
+
* Get mempool transaction fee priorities
|
|
32
|
+
*/
|
|
33
|
+
getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolTransactionListResponse>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class MempoolApi extends runtime.BaseAPI implements MempoolApiInterface {
|
|
39
|
+
/**
|
|
40
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
41
|
+
* Get mempool transaction fee priorities
|
|
42
|
+
*/
|
|
43
|
+
getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolTransactionListResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
46
|
+
* Get mempool transaction fee priorities
|
|
47
|
+
*/
|
|
48
|
+
getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolTransactionListResponse>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Stacks Blockchain API
|
|
6
|
+
* 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>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: STACKS_API_VERSION
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MempoolApi = void 0;
|
|
17
|
+
const runtime = require("../runtime");
|
|
18
|
+
const models_1 = require("../models");
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class MempoolApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
25
|
+
* Get mempool transaction fee priorities
|
|
26
|
+
*/
|
|
27
|
+
async getMempoolFeePrioritiesRaw(initOverrides) {
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
const headerParameters = {};
|
|
30
|
+
const response = await this.request({
|
|
31
|
+
path: `/extended/v2/mempool/fees`,
|
|
32
|
+
method: 'GET',
|
|
33
|
+
headers: headerParameters,
|
|
34
|
+
query: queryParameters,
|
|
35
|
+
}, initOverrides);
|
|
36
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.MempoolTransactionListResponseFromJSON)(jsonValue));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
40
|
+
* Get mempool transaction fee priorities
|
|
41
|
+
*/
|
|
42
|
+
async getMempoolFeePriorities(initOverrides) {
|
|
43
|
+
const response = await this.getMempoolFeePrioritiesRaw(initOverrides);
|
|
44
|
+
return await response.value();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.MempoolApi = MempoolApi;
|
|
48
|
+
//# sourceMappingURL=MempoolApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MempoolApi.js","sourceRoot":"","sources":["../../../src/generated/apis/MempoolApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAImB;AA0BnB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA2B;QACxD,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,2BAA2B;YACjC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+CAAsC,EAAC,SAAS,CAAC,CAAC,CAAC;IACnH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,aAA2B;QACrD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC;QACtE,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,gCA8BC"}
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./FaucetsApi"), exports);
|
|
|
22
22
|
__exportStar(require("./FeesApi"), exports);
|
|
23
23
|
__exportStar(require("./FungibleTokensApi"), exports);
|
|
24
24
|
__exportStar(require("./InfoApi"), exports);
|
|
25
|
+
__exportStar(require("./MempoolApi"), exports);
|
|
25
26
|
__exportStar(require("./MicroblocksApi"), exports);
|
|
26
27
|
__exportStar(require("./NamesApi"), exports);
|
|
27
28
|
__exportStar(require("./NonFungibleTokensApi"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,+CAA6B;AAC7B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
|
package/lib/index.umd.js
CHANGED
|
@@ -8131,6 +8131,64 @@
|
|
|
8131
8131
|
GetNetworkBlockTimeByNetworkNetworkEnum["mainnet"] = "mainnet";
|
|
8132
8132
|
})(exports.GetNetworkBlockTimeByNetworkNetworkEnum || (exports.GetNetworkBlockTimeByNetworkNetworkEnum = {}));
|
|
8133
8133
|
|
|
8134
|
+
/**
|
|
8135
|
+
*
|
|
8136
|
+
*/
|
|
8137
|
+
|
|
8138
|
+
var MempoolApi = /*#__PURE__*/function (_runtime$BaseAPI) {
|
|
8139
|
+
_inheritsLoose(MempoolApi, _runtime$BaseAPI);
|
|
8140
|
+
|
|
8141
|
+
function MempoolApi() {
|
|
8142
|
+
return _runtime$BaseAPI.apply(this, arguments) || this;
|
|
8143
|
+
}
|
|
8144
|
+
|
|
8145
|
+
var _proto = MempoolApi.prototype;
|
|
8146
|
+
|
|
8147
|
+
/**
|
|
8148
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
8149
|
+
* Get mempool transaction fee priorities
|
|
8150
|
+
*/
|
|
8151
|
+
_proto.getMempoolFeePrioritiesRaw = function getMempoolFeePrioritiesRaw(initOverrides) {
|
|
8152
|
+
try {
|
|
8153
|
+
var _this2 = this;
|
|
8154
|
+
|
|
8155
|
+
var queryParameters = {};
|
|
8156
|
+
var headerParameters = {};
|
|
8157
|
+
return Promise.resolve(_this2.request({
|
|
8158
|
+
path: "/extended/v2/mempool/fees",
|
|
8159
|
+
method: 'GET',
|
|
8160
|
+
headers: headerParameters,
|
|
8161
|
+
query: queryParameters
|
|
8162
|
+
}, initOverrides)).then(function (response) {
|
|
8163
|
+
return new JSONApiResponse(response, function (jsonValue) {
|
|
8164
|
+
return MempoolTransactionListResponseFromJSON(jsonValue);
|
|
8165
|
+
});
|
|
8166
|
+
});
|
|
8167
|
+
} catch (e) {
|
|
8168
|
+
return Promise.reject(e);
|
|
8169
|
+
}
|
|
8170
|
+
}
|
|
8171
|
+
/**
|
|
8172
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
8173
|
+
* Get mempool transaction fee priorities
|
|
8174
|
+
*/
|
|
8175
|
+
;
|
|
8176
|
+
|
|
8177
|
+
_proto.getMempoolFeePriorities = function getMempoolFeePriorities(initOverrides) {
|
|
8178
|
+
try {
|
|
8179
|
+
var _this4 = this;
|
|
8180
|
+
|
|
8181
|
+
return Promise.resolve(_this4.getMempoolFeePrioritiesRaw(initOverrides)).then(function (response) {
|
|
8182
|
+
return Promise.resolve(response.value());
|
|
8183
|
+
});
|
|
8184
|
+
} catch (e) {
|
|
8185
|
+
return Promise.reject(e);
|
|
8186
|
+
}
|
|
8187
|
+
};
|
|
8188
|
+
|
|
8189
|
+
return MempoolApi;
|
|
8190
|
+
}(BaseAPI);
|
|
8191
|
+
|
|
8134
8192
|
/**
|
|
8135
8193
|
*
|
|
8136
8194
|
*/
|
|
@@ -16470,6 +16528,7 @@
|
|
|
16470
16528
|
exports.MapEntryResponseFromJSON = MapEntryResponseFromJSON;
|
|
16471
16529
|
exports.MapEntryResponseFromJSONTyped = MapEntryResponseFromJSONTyped;
|
|
16472
16530
|
exports.MapEntryResponseToJSON = MapEntryResponseToJSON;
|
|
16531
|
+
exports.MempoolApi = MempoolApi;
|
|
16473
16532
|
exports.MempoolTransactionListResponseFromJSON = MempoolTransactionListResponseFromJSON;
|
|
16474
16533
|
exports.MempoolTransactionListResponseFromJSONTyped = MempoolTransactionListResponseFromJSONTyped;
|
|
16475
16534
|
exports.MempoolTransactionListResponseToJSON = MempoolTransactionListResponseToJSON;
|