@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-beta.1",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Client for the Stacks Blockchain API",
|
|
6
6
|
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stacks Blockchain API
|
|
5
|
+
* 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>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: STACKS_API_VERSION
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import {
|
|
18
|
+
MempoolTransactionListResponse,
|
|
19
|
+
MempoolTransactionListResponseFromJSON,
|
|
20
|
+
MempoolTransactionListResponseToJSON,
|
|
21
|
+
} from '../models';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* MempoolApi - interface
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MempoolApiInterface
|
|
28
|
+
*/
|
|
29
|
+
export interface MempoolApiInterface {
|
|
30
|
+
/**
|
|
31
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
32
|
+
* @summary Get mempool transaction fee priorities
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof MempoolApiInterface
|
|
36
|
+
*/
|
|
37
|
+
getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolTransactionListResponse>>;
|
|
38
|
+
|
|
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
|
+
getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolTransactionListResponse>;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export class MempoolApi extends runtime.BaseAPI implements MempoolApiInterface {
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
54
|
+
* Get mempool transaction fee priorities
|
|
55
|
+
*/
|
|
56
|
+
async getMempoolFeePrioritiesRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<MempoolTransactionListResponse>> {
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
const response = await this.request({
|
|
62
|
+
path: `/extended/v2/mempool/fees`,
|
|
63
|
+
method: 'GET',
|
|
64
|
+
headers: headerParameters,
|
|
65
|
+
query: queryParameters,
|
|
66
|
+
}, initOverrides);
|
|
67
|
+
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MempoolTransactionListResponseFromJSON(jsonValue));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Returns estimated fee priorities (in micro-STX) for all transactions that are currently in the mempool. Also returns priorities separated by transaction type.
|
|
73
|
+
* Get mempool transaction fee priorities
|
|
74
|
+
*/
|
|
75
|
+
async getMempoolFeePriorities(initOverrides?: RequestInit): Promise<MempoolTransactionListResponse> {
|
|
76
|
+
const response = await this.getMempoolFeePrioritiesRaw(initOverrides);
|
|
77
|
+
return await response.value();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from './FaucetsApi';
|
|
|
6
6
|
export * from './FeesApi';
|
|
7
7
|
export * from './FungibleTokensApi';
|
|
8
8
|
export * from './InfoApi';
|
|
9
|
+
export * from './MempoolApi';
|
|
9
10
|
export * from './MicroblocksApi';
|
|
10
11
|
export * from './NamesApi';
|
|
11
12
|
export * from './NonFungibleTokensApi';
|