@stacks/blockchain-api-client 7.4.0-nakamoto.9 → 7.4.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/lib/generated/apis/AccountsApi.d.ts +36 -1
- package/lib/generated/apis/AccountsApi.js +38 -0
- package/lib/generated/apis/AccountsApi.js.map +1 -1
- package/lib/generated/apis/BlocksApi.d.ts +21 -164
- package/lib/generated/apis/BlocksApi.js +10 -152
- package/lib/generated/apis/BlocksApi.js.map +1 -1
- package/lib/generated/apis/FaucetsApi.d.ts +3 -5
- package/lib/generated/apis/FaucetsApi.js +1 -3
- package/lib/generated/apis/FaucetsApi.js.map +1 -1
- package/lib/generated/apis/FungibleTokensApi.d.ts +82 -0
- package/lib/generated/apis/FungibleTokensApi.js +80 -0
- package/lib/generated/apis/FungibleTokensApi.js.map +1 -0
- 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/NonFungibleTokensApi.d.ts +57 -1
- package/lib/generated/apis/NonFungibleTokensApi.js +55 -0
- package/lib/generated/apis/NonFungibleTokensApi.js.map +1 -1
- package/lib/generated/apis/TransactionsApi.d.ts +2 -3
- package/lib/generated/apis/TransactionsApi.js +0 -1
- package/lib/generated/apis/TransactionsApi.js.map +1 -1
- package/lib/generated/apis/index.d.ts +2 -0
- package/lib/generated/apis/index.js +2 -0
- package/lib/generated/apis/index.js.map +1 -1
- package/lib/generated/models/AddressNftListResponse.d.ts +46 -0
- package/lib/generated/models/{BurnBlockListResponse.js → AddressNftListResponse.js} +11 -11
- package/lib/generated/models/AddressNftListResponse.js.map +1 -0
- package/lib/generated/models/AddressNftListResponseValue.d.ts +33 -0
- package/lib/generated/models/{InlineObject1.js → AddressNftListResponseValue.js} +13 -12
- package/lib/generated/models/AddressNftListResponseValue.js.map +1 -0
- package/lib/generated/models/FungibleTokenMetadata.d.ts +75 -0
- package/lib/generated/models/FungibleTokenMetadata.js +58 -0
- package/lib/generated/models/FungibleTokenMetadata.js.map +1 -0
- package/lib/generated/models/FungibleTokensMetadataList.d.ts +46 -0
- package/lib/generated/models/{NakamotoBlockListResponse.js → FungibleTokensMetadataList.js} +11 -11
- package/lib/generated/models/FungibleTokensMetadataList.js.map +1 -0
- package/lib/generated/models/InlineObject.d.ts +1 -7
- package/lib/generated/models/InlineObject.js +0 -2
- package/lib/generated/models/InlineObject.js.map +1 -1
- package/lib/generated/models/MempoolFeePriorities.d.ts +46 -0
- package/lib/generated/models/MempoolFeePriorities.js +50 -0
- package/lib/generated/models/MempoolFeePriorities.js.map +1 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.d.ts +45 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.js +48 -0
- package/lib/generated/models/MempoolFeePrioritiesAll.js.map +1 -0
- package/lib/generated/models/NftEvent.d.ts +76 -0
- package/lib/generated/models/NftEvent.js +60 -0
- package/lib/generated/models/NftEvent.js.map +1 -0
- package/lib/generated/models/NonFungibleTokenMetadata.d.ts +63 -0
- package/lib/generated/models/NonFungibleTokenMetadata.js +54 -0
- package/lib/generated/models/NonFungibleTokenMetadata.js.map +1 -0
- package/lib/generated/models/NonFungibleTokensMetadataList.d.ts +46 -0
- package/lib/generated/models/NonFungibleTokensMetadataList.js +49 -0
- package/lib/generated/models/NonFungibleTokensMetadataList.js.map +1 -0
- package/lib/generated/models/ServerStatusResponse.d.ts +0 -6
- package/lib/generated/models/ServerStatusResponse.js +0 -2
- package/lib/generated/models/ServerStatusResponse.js.map +1 -1
- package/lib/generated/models/index.d.ts +9 -5
- package/lib/generated/models/index.js +9 -5
- package/lib/generated/models/index.js.map +1 -1
- package/lib/index.umd.js +835 -586
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/.openapi-generator/FILES +11 -5
- package/src/generated/apis/AccountsApi.ts +79 -0
- package/src/generated/apis/BlocksApi.ts +20 -319
- package/src/generated/apis/FaucetsApi.ts +3 -11
- package/src/generated/apis/FungibleTokensApi.ts +150 -0
- package/src/generated/apis/MempoolApi.ts +80 -0
- package/src/generated/apis/NonFungibleTokensApi.ts +116 -0
- package/src/generated/apis/TransactionsApi.ts +2 -3
- package/src/generated/apis/index.ts +2 -0
- package/src/generated/models/{BurnBlockListResponse.ts → AddressNftListResponse.ts} +22 -22
- package/src/generated/models/{InlineObject1.ts → AddressNftListResponseValue.ts} +20 -12
- package/src/generated/models/FungibleTokenMetadata.ts +120 -0
- package/src/generated/models/{NakamotoBlockListResponse.ts → FungibleTokensMetadataList.ts} +22 -22
- package/src/generated/models/InlineObject.ts +1 -9
- package/src/generated/models/MempoolFeePriorities.ts +87 -0
- package/src/generated/models/MempoolFeePrioritiesAll.ts +80 -0
- package/src/generated/models/NftEvent.ts +127 -0
- package/src/generated/models/NonFungibleTokenMetadata.ts +104 -0
- package/src/generated/models/NonFungibleTokensMetadataList.ts +87 -0
- package/src/generated/models/ServerStatusResponse.ts +0 -8
- package/src/generated/models/index.ts +9 -5
- package/lib/generated/models/BurnBlock.d.ts +0 -51
- package/lib/generated/models/BurnBlock.js +0 -50
- package/lib/generated/models/BurnBlock.js.map +0 -1
- package/lib/generated/models/BurnBlockListResponse.d.ts +0 -46
- package/lib/generated/models/BurnBlockListResponse.js.map +0 -1
- package/lib/generated/models/InlineObject1.d.ts +0 -27
- package/lib/generated/models/InlineObject1.js.map +0 -1
- package/lib/generated/models/NakamotoBlock.d.ts +0 -123
- package/lib/generated/models/NakamotoBlock.js +0 -74
- package/lib/generated/models/NakamotoBlock.js.map +0 -1
- package/lib/generated/models/NakamotoBlockListResponse.d.ts +0 -46
- package/lib/generated/models/NakamotoBlockListResponse.js.map +0 -1
- package/src/generated/models/BurnBlock.ts +0 -88
- package/src/generated/models/NakamotoBlock.ts +0 -184
|
@@ -21,33 +21,7 @@ const models_1 = require("../models");
|
|
|
21
21
|
*/
|
|
22
22
|
class BlocksApi extends runtime.BaseAPI {
|
|
23
23
|
/**
|
|
24
|
-
* Retrieves a
|
|
25
|
-
* Get block
|
|
26
|
-
*/
|
|
27
|
-
async getBlockRaw(requestParameters, initOverrides) {
|
|
28
|
-
if (requestParameters.heightOrHash === null || requestParameters.heightOrHash === undefined) {
|
|
29
|
-
throw new runtime.RequiredError('heightOrHash', 'Required parameter requestParameters.heightOrHash was null or undefined when calling getBlock.');
|
|
30
|
-
}
|
|
31
|
-
const queryParameters = {};
|
|
32
|
-
const headerParameters = {};
|
|
33
|
-
const response = await this.request({
|
|
34
|
-
path: `/extended/v2/blocks/{height_or_hash}`.replace(`{${"height_or_hash"}}`, encodeURIComponent(String(requestParameters.heightOrHash))),
|
|
35
|
-
method: 'GET',
|
|
36
|
-
headers: headerParameters,
|
|
37
|
-
query: queryParameters,
|
|
38
|
-
}, initOverrides);
|
|
39
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.NakamotoBlockFromJSON)(jsonValue));
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves a single block
|
|
43
|
-
* Get block
|
|
44
|
-
*/
|
|
45
|
-
async getBlock(requestParameters, initOverrides) {
|
|
46
|
-
const response = await this.getBlockRaw(requestParameters, initOverrides);
|
|
47
|
-
return await response.value();
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get blocks](#operation/get_blocks). Retrieves block details of a specific block for a given burnchain block hash
|
|
24
|
+
* Retrieves block details of a specific block for a given burnchain block hash
|
|
51
25
|
* Get block by burnchain block hash
|
|
52
26
|
*/
|
|
53
27
|
async getBlockByBurnBlockHashRaw(requestParameters, initOverrides) {
|
|
@@ -65,7 +39,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
65
39
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
66
40
|
}
|
|
67
41
|
/**
|
|
68
|
-
*
|
|
42
|
+
* Retrieves block details of a specific block for a given burnchain block hash
|
|
69
43
|
* Get block by burnchain block hash
|
|
70
44
|
*/
|
|
71
45
|
async getBlockByBurnBlockHash(requestParameters, initOverrides) {
|
|
@@ -73,7 +47,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
73
47
|
return await response.value();
|
|
74
48
|
}
|
|
75
49
|
/**
|
|
76
|
-
*
|
|
50
|
+
* Retrieves block details of a specific block for a given burn chain height
|
|
77
51
|
* Get block by burnchain height
|
|
78
52
|
*/
|
|
79
53
|
async getBlockByBurnBlockHeightRaw(requestParameters, initOverrides) {
|
|
@@ -91,7 +65,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
91
65
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
92
66
|
}
|
|
93
67
|
/**
|
|
94
|
-
*
|
|
68
|
+
* Retrieves block details of a specific block for a given burn chain height
|
|
95
69
|
* Get block by burnchain height
|
|
96
70
|
*/
|
|
97
71
|
async getBlockByBurnBlockHeight(requestParameters, initOverrides) {
|
|
@@ -99,7 +73,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
99
73
|
return await response.value();
|
|
100
74
|
}
|
|
101
75
|
/**
|
|
102
|
-
*
|
|
76
|
+
* Retrieves block details of a specific block for a given chain height. You can use the hash from your latest block (\'get_block_list\' API) to get your block details.
|
|
103
77
|
* Get block by hash
|
|
104
78
|
*/
|
|
105
79
|
async getBlockByHashRaw(requestParameters, initOverrides) {
|
|
@@ -117,7 +91,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
117
91
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
118
92
|
}
|
|
119
93
|
/**
|
|
120
|
-
*
|
|
94
|
+
* Retrieves block details of a specific block for a given chain height. You can use the hash from your latest block (\'get_block_list\' API) to get your block details.
|
|
121
95
|
* Get block by hash
|
|
122
96
|
*/
|
|
123
97
|
async getBlockByHash(requestParameters, initOverrides) {
|
|
@@ -125,7 +99,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
125
99
|
return await response.value();
|
|
126
100
|
}
|
|
127
101
|
/**
|
|
128
|
-
*
|
|
102
|
+
* Retrieves block details of a specific block at a given block height
|
|
129
103
|
* Get block by height
|
|
130
104
|
*/
|
|
131
105
|
async getBlockByHeightRaw(requestParameters, initOverrides) {
|
|
@@ -143,7 +117,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
143
117
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
144
118
|
}
|
|
145
119
|
/**
|
|
146
|
-
*
|
|
120
|
+
* Retrieves block details of a specific block at a given block height
|
|
147
121
|
* Get block by height
|
|
148
122
|
*/
|
|
149
123
|
async getBlockByHeight(requestParameters, initOverrides) {
|
|
@@ -151,7 +125,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
151
125
|
return await response.value();
|
|
152
126
|
}
|
|
153
127
|
/**
|
|
154
|
-
*
|
|
128
|
+
* Retrieves a list of recently mined blocks If you need to actively monitor new blocks, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
|
|
155
129
|
* Get recent blocks
|
|
156
130
|
*/
|
|
157
131
|
async getBlockListRaw(requestParameters, initOverrides) {
|
|
@@ -172,129 +146,13 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
172
146
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockListResponseFromJSON)(jsonValue));
|
|
173
147
|
}
|
|
174
148
|
/**
|
|
175
|
-
*
|
|
149
|
+
* Retrieves a list of recently mined blocks If you need to actively monitor new blocks, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
|
|
176
150
|
* Get recent blocks
|
|
177
151
|
*/
|
|
178
152
|
async getBlockList(requestParameters, initOverrides) {
|
|
179
153
|
const response = await this.getBlockListRaw(requestParameters, initOverrides);
|
|
180
154
|
return await response.value();
|
|
181
155
|
}
|
|
182
|
-
/**
|
|
183
|
-
* Retrieves transactions confirmed in a single block
|
|
184
|
-
* Get block transactions
|
|
185
|
-
*/
|
|
186
|
-
async getBlockTransactionsRaw(requestParameters, initOverrides) {
|
|
187
|
-
if (requestParameters.heightOrHash === null || requestParameters.heightOrHash === undefined) {
|
|
188
|
-
throw new runtime.RequiredError('heightOrHash', 'Required parameter requestParameters.heightOrHash was null or undefined when calling getBlockTransactions.');
|
|
189
|
-
}
|
|
190
|
-
const queryParameters = {};
|
|
191
|
-
const headerParameters = {};
|
|
192
|
-
const response = await this.request({
|
|
193
|
-
path: `/extended/v2/blocks/{height_or_hash}/transactions`.replace(`{${"height_or_hash"}}`, encodeURIComponent(String(requestParameters.heightOrHash))),
|
|
194
|
-
method: 'GET',
|
|
195
|
-
headers: headerParameters,
|
|
196
|
-
query: queryParameters,
|
|
197
|
-
}, initOverrides);
|
|
198
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.TransactionResultsFromJSON)(jsonValue));
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Retrieves transactions confirmed in a single block
|
|
202
|
-
* Get block transactions
|
|
203
|
-
*/
|
|
204
|
-
async getBlockTransactions(requestParameters, initOverrides) {
|
|
205
|
-
const response = await this.getBlockTransactionsRaw(requestParameters, initOverrides);
|
|
206
|
-
return await response.value();
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Retrieves a list of recently mined blocks
|
|
210
|
-
* Get blocks
|
|
211
|
-
*/
|
|
212
|
-
async getBlocksRaw(requestParameters, initOverrides) {
|
|
213
|
-
const queryParameters = {};
|
|
214
|
-
if (requestParameters.limit !== undefined) {
|
|
215
|
-
queryParameters['limit'] = requestParameters.limit;
|
|
216
|
-
}
|
|
217
|
-
if (requestParameters.offset !== undefined) {
|
|
218
|
-
queryParameters['offset'] = requestParameters.offset;
|
|
219
|
-
}
|
|
220
|
-
if (requestParameters.burnBlockHash !== undefined) {
|
|
221
|
-
queryParameters['burn_block_hash'] = requestParameters.burnBlockHash;
|
|
222
|
-
}
|
|
223
|
-
if (requestParameters.burnBlockHeight !== undefined) {
|
|
224
|
-
queryParameters['burn_block_height'] = requestParameters.burnBlockHeight;
|
|
225
|
-
}
|
|
226
|
-
const headerParameters = {};
|
|
227
|
-
const response = await this.request({
|
|
228
|
-
path: `/extended/v2/blocks`,
|
|
229
|
-
method: 'GET',
|
|
230
|
-
headers: headerParameters,
|
|
231
|
-
query: queryParameters,
|
|
232
|
-
}, initOverrides);
|
|
233
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.NakamotoBlockListResponseFromJSON)(jsonValue));
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Retrieves a list of recently mined blocks
|
|
237
|
-
* Get blocks
|
|
238
|
-
*/
|
|
239
|
-
async getBlocks(requestParameters, initOverrides) {
|
|
240
|
-
const response = await this.getBlocksRaw(requestParameters, initOverrides);
|
|
241
|
-
return await response.value();
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Retrieves a single burn block
|
|
245
|
-
* Get burn block
|
|
246
|
-
*/
|
|
247
|
-
async getBurnBlockRaw(requestParameters, initOverrides) {
|
|
248
|
-
if (requestParameters.heightOrHash === null || requestParameters.heightOrHash === undefined) {
|
|
249
|
-
throw new runtime.RequiredError('heightOrHash', 'Required parameter requestParameters.heightOrHash was null or undefined when calling getBurnBlock.');
|
|
250
|
-
}
|
|
251
|
-
const queryParameters = {};
|
|
252
|
-
const headerParameters = {};
|
|
253
|
-
const response = await this.request({
|
|
254
|
-
path: `/extended/v2/burn-blocks/{height_or_hash}`.replace(`{${"height_or_hash"}}`, encodeURIComponent(String(requestParameters.heightOrHash))),
|
|
255
|
-
method: 'GET',
|
|
256
|
-
headers: headerParameters,
|
|
257
|
-
query: queryParameters,
|
|
258
|
-
}, initOverrides);
|
|
259
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BurnBlockFromJSON)(jsonValue));
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Retrieves a single burn block
|
|
263
|
-
* Get burn block
|
|
264
|
-
*/
|
|
265
|
-
async getBurnBlock(requestParameters, initOverrides) {
|
|
266
|
-
const response = await this.getBurnBlockRaw(requestParameters, initOverrides);
|
|
267
|
-
return await response.value();
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Retrieves a list of recent burn blocks
|
|
271
|
-
* Get burn blocks
|
|
272
|
-
*/
|
|
273
|
-
async getBurnBlocksRaw(requestParameters, initOverrides) {
|
|
274
|
-
const queryParameters = {};
|
|
275
|
-
if (requestParameters.limit !== undefined) {
|
|
276
|
-
queryParameters['limit'] = requestParameters.limit;
|
|
277
|
-
}
|
|
278
|
-
if (requestParameters.offset !== undefined) {
|
|
279
|
-
queryParameters['offset'] = requestParameters.offset;
|
|
280
|
-
}
|
|
281
|
-
const headerParameters = {};
|
|
282
|
-
const response = await this.request({
|
|
283
|
-
path: `/extended/v2/burn-blocks`,
|
|
284
|
-
method: 'GET',
|
|
285
|
-
headers: headerParameters,
|
|
286
|
-
query: queryParameters,
|
|
287
|
-
}, initOverrides);
|
|
288
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BurnBlockListResponseFromJSON)(jsonValue));
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Retrieves a list of recent burn blocks
|
|
292
|
-
* Get burn blocks
|
|
293
|
-
*/
|
|
294
|
-
async getBurnBlocks(requestParameters, initOverrides) {
|
|
295
|
-
const response = await this.getBurnBlocksRaw(requestParameters, initOverrides);
|
|
296
|
-
return await response.value();
|
|
297
|
-
}
|
|
298
156
|
}
|
|
299
157
|
exports.BlocksApi = BlocksApi;
|
|
300
158
|
//# sourceMappingURL=BlocksApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlocksApi.js","sourceRoot":"","sources":["../../../src/generated/apis/BlocksApi.ts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;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA2B;QAClF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtKD,8BAsKC"}
|
|
@@ -10,15 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { InlineObject,
|
|
13
|
+
import { InlineObject, RunFaucetResponse } from '../models';
|
|
14
14
|
export interface RunFaucetBtcRequest {
|
|
15
15
|
address: string;
|
|
16
|
-
|
|
16
|
+
inlineObject?: InlineObject;
|
|
17
17
|
}
|
|
18
18
|
export interface RunFaucetStxRequest {
|
|
19
19
|
address: string;
|
|
20
20
|
stacking?: boolean;
|
|
21
|
-
inlineObject?: InlineObject;
|
|
22
21
|
}
|
|
23
22
|
/**
|
|
24
23
|
* FaucetsApi - interface
|
|
@@ -31,7 +30,7 @@ export interface FaucetsApiInterface {
|
|
|
31
30
|
* Add 1 BTC token to the specified testnet BTC address. The endpoint returns the transaction ID, which you can use to view the transaction in a testnet Bitcoin block explorer. The tokens are delivered once the transaction has been included in a block. **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
|
|
32
31
|
* @summary Add testnet BTC tokens to address
|
|
33
32
|
* @param {string} address A valid testnet BTC address
|
|
34
|
-
* @param {
|
|
33
|
+
* @param {InlineObject} [inlineObject]
|
|
35
34
|
* @param {*} [options] Override http request option.
|
|
36
35
|
* @throws {RequiredError}
|
|
37
36
|
* @memberof FaucetsApiInterface
|
|
@@ -47,7 +46,6 @@ export interface FaucetsApiInterface {
|
|
|
47
46
|
* @summary Get STX testnet tokens
|
|
48
47
|
* @param {string} address A valid testnet STX address
|
|
49
48
|
* @param {boolean} [stacking] Request the amount of STX tokens needed for individual address stacking
|
|
50
|
-
* @param {InlineObject} [inlineObject]
|
|
51
49
|
* @param {*} [options] Override http request option.
|
|
52
50
|
* @throws {RequiredError}
|
|
53
51
|
* @memberof FaucetsApiInterface
|
|
@@ -39,7 +39,7 @@ class FaucetsApi extends runtime.BaseAPI {
|
|
|
39
39
|
method: 'POST',
|
|
40
40
|
headers: headerParameters,
|
|
41
41
|
query: queryParameters,
|
|
42
|
-
body: (0, models_1.
|
|
42
|
+
body: (0, models_1.InlineObjectToJSON)(requestParameters.inlineObject),
|
|
43
43
|
}, initOverrides);
|
|
44
44
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RunFaucetResponseFromJSON)(jsonValue));
|
|
45
45
|
}
|
|
@@ -67,13 +67,11 @@ class FaucetsApi extends runtime.BaseAPI {
|
|
|
67
67
|
queryParameters['stacking'] = requestParameters.stacking;
|
|
68
68
|
}
|
|
69
69
|
const headerParameters = {};
|
|
70
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
71
70
|
const response = await this.request({
|
|
72
71
|
path: `/extended/v1/faucets/stx`,
|
|
73
72
|
method: 'POST',
|
|
74
73
|
headers: headerParameters,
|
|
75
74
|
query: queryParameters,
|
|
76
|
-
body: (0, models_1.InlineObjectToJSON)(requestParameters.inlineObject),
|
|
77
75
|
}, initOverrides);
|
|
78
76
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RunFaucetResponseFromJSON)(jsonValue));
|
|
79
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaucetsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/FaucetsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"FaucetsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/FaucetsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAG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AAE,aAA2B;QACrF,IAAI,iBAAiB,CAAC,OAAO,KAAK,IAAI,IAAI,iBAAiB,CAAC,OAAO,KAAK,SAAS,EAAE;YAC/E,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,SAAS,EAAC,+FAA+F,CAAC,CAAC;SAC9I;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,OAAO,KAAK,SAAS,EAAE;YACzC,eAAe,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC;SAC1D;QAED,IAAI,iBAAiB,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC1C,eAAe,CAAC,UAAU,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC;SAC5D;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,MAAM;YACd,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,kCAAyB,EAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA2B;QAClF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjFD,gCAiFC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { FungibleTokenMetadata, FungibleTokensMetadataList } from '../models';
|
|
14
|
+
export interface GetContractFtMetadataRequest {
|
|
15
|
+
contractId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetFtMetadataListRequest {
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* FungibleTokensApi - interface
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @interface FungibleTokensApiInterface
|
|
26
|
+
*/
|
|
27
|
+
export interface FungibleTokensApiInterface {
|
|
28
|
+
/**
|
|
29
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
30
|
+
* @summary Fungible tokens metadata for contract id
|
|
31
|
+
* @param {string} contractId token\'s contract id
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
* @memberof FungibleTokensApiInterface
|
|
35
|
+
*/
|
|
36
|
+
getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>>;
|
|
37
|
+
/**
|
|
38
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
39
|
+
* Fungible tokens metadata for contract id
|
|
40
|
+
*/
|
|
41
|
+
getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata>;
|
|
42
|
+
/**
|
|
43
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
44
|
+
* @summary Fungible tokens metadata list
|
|
45
|
+
* @param {number} [limit] max number of tokens to fetch.
|
|
46
|
+
* @param {number} [offset] index of first tokens to fetch
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
* @memberof FungibleTokensApiInterface
|
|
50
|
+
*/
|
|
51
|
+
getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>>;
|
|
52
|
+
/**
|
|
53
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
54
|
+
* Fungible tokens metadata list
|
|
55
|
+
*/
|
|
56
|
+
getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare class FungibleTokensApi extends runtime.BaseAPI implements FungibleTokensApiInterface {
|
|
62
|
+
/**
|
|
63
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
64
|
+
* Fungible tokens metadata for contract id
|
|
65
|
+
*/
|
|
66
|
+
getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>>;
|
|
67
|
+
/**
|
|
68
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
69
|
+
* Fungible tokens metadata for contract id
|
|
70
|
+
*/
|
|
71
|
+
getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata>;
|
|
72
|
+
/**
|
|
73
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
74
|
+
* Fungible tokens metadata list
|
|
75
|
+
*/
|
|
76
|
+
getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>>;
|
|
77
|
+
/**
|
|
78
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
79
|
+
* Fungible tokens metadata list
|
|
80
|
+
*/
|
|
81
|
+
getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.FungibleTokensApi = void 0;
|
|
17
|
+
const runtime = require("../runtime");
|
|
18
|
+
const models_1 = require("../models");
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
class FungibleTokensApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
25
|
+
* Fungible tokens metadata for contract id
|
|
26
|
+
*/
|
|
27
|
+
async getContractFtMetadataRaw(requestParameters, initOverrides) {
|
|
28
|
+
if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
|
|
29
|
+
throw new runtime.RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getContractFtMetadata.');
|
|
30
|
+
}
|
|
31
|
+
const queryParameters = {};
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
const response = await this.request({
|
|
34
|
+
path: `/extended/v1/tokens/{contractId}/ft/metadata`.replace(`{${"contractId"}}`, encodeURIComponent(String(requestParameters.contractId))),
|
|
35
|
+
method: 'GET',
|
|
36
|
+
headers: headerParameters,
|
|
37
|
+
query: queryParameters,
|
|
38
|
+
}, initOverrides);
|
|
39
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FungibleTokenMetadataFromJSON)(jsonValue));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
|
|
43
|
+
* Fungible tokens metadata for contract id
|
|
44
|
+
*/
|
|
45
|
+
async getContractFtMetadata(requestParameters, initOverrides) {
|
|
46
|
+
const response = await this.getContractFtMetadataRaw(requestParameters, initOverrides);
|
|
47
|
+
return await response.value();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
51
|
+
* Fungible tokens metadata list
|
|
52
|
+
*/
|
|
53
|
+
async getFtMetadataListRaw(requestParameters, initOverrides) {
|
|
54
|
+
const queryParameters = {};
|
|
55
|
+
if (requestParameters.limit !== undefined) {
|
|
56
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
57
|
+
}
|
|
58
|
+
if (requestParameters.offset !== undefined) {
|
|
59
|
+
queryParameters['offset'] = requestParameters.offset;
|
|
60
|
+
}
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
const response = await this.request({
|
|
63
|
+
path: `/extended/v1/tokens/ft/metadata`,
|
|
64
|
+
method: 'GET',
|
|
65
|
+
headers: headerParameters,
|
|
66
|
+
query: queryParameters,
|
|
67
|
+
}, initOverrides);
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FungibleTokensMetadataListFromJSON)(jsonValue));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves list of fungible tokens with their metadata. More information on Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#fungible-tokens).
|
|
72
|
+
* Fungible tokens metadata list
|
|
73
|
+
*/
|
|
74
|
+
async getFtMetadataList(requestParameters, initOverrides) {
|
|
75
|
+
const response = await this.getFtMetadataListRaw(requestParameters, initOverrides);
|
|
76
|
+
return await response.value();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.FungibleTokensApi = FungibleTokensApi;
|
|
80
|
+
//# sourceMappingURL=FungibleTokensApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FungibleTokensApi.js","sourceRoot":"","sources":["../../../src/generated/apis/FungibleTokensApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAOmB;AAqDnB;;GAEG;AACH,MAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;;OAGG;IACH,KAAK,CAAC,wBAAwB,CAAC,iBAA+C,EAAE,aAA2B;QACvG,IAAI,iBAAiB,CAAC,UAAU,KAAK,IAAI,IAAI,iBAAiB,CAAC,UAAU,KAAK,SAAS,EAAE;YACrF,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,YAAY,EAAC,2GAA2G,CAAC,CAAC;SAC7J;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,8CAA8C,CAAC,OAAO,CAAC,IAAI,YAAY,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC;YAC3I,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,sCAA6B,EAAC,SAAS,CAAC,CAAC,CAAC;IAC1G,CAAC;IAED;;;OAGG;IACH,KA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
* 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 { MempoolFeePriorities } 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<MempoolFeePriorities>>;
|
|
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<MempoolFeePriorities>;
|
|
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<MempoolFeePriorities>>;
|
|
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<MempoolFeePriorities>;
|
|
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.MempoolFeePrioritiesFromJSON)(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,qCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,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"}
|