@stacks/blockchain-api-client 7.4.0-nakamoto.5 → 7.4.0-nakamoto.6
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.
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Block, BlockListResponse, BurnBlock, BurnBlockListResponse, NakamotoBlockListResponse } from '../models';
|
|
13
|
+
import { Block, BlockListResponse, BurnBlock, BurnBlockListResponse, NakamotoBlock, NakamotoBlockListResponse } from '../models';
|
|
14
|
+
export interface GetBlockRequest {
|
|
15
|
+
heightOrHash: number | string;
|
|
16
|
+
}
|
|
14
17
|
export interface GetBlockByBurnBlockHashRequest {
|
|
15
18
|
burnBlockHash: string;
|
|
16
19
|
}
|
|
@@ -47,6 +50,20 @@ export interface GetBurnBlocksRequest {
|
|
|
47
50
|
* @interface BlocksApiInterface
|
|
48
51
|
*/
|
|
49
52
|
export interface BlocksApiInterface {
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves a single block
|
|
55
|
+
* @summary Get block
|
|
56
|
+
* @param {number | string} heightOrHash filter by block height, hash, index block hash or the constant `latest` to filter for the most recent block
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
* @memberof BlocksApiInterface
|
|
60
|
+
*/
|
|
61
|
+
getBlockRaw(requestParameters: GetBlockRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NakamotoBlock>>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves a single block
|
|
64
|
+
* Get block
|
|
65
|
+
*/
|
|
66
|
+
getBlock(requestParameters: GetBlockRequest, initOverrides?: RequestInit): Promise<NakamotoBlock>;
|
|
50
67
|
/**
|
|
51
68
|
* **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
|
|
52
69
|
* @summary Get block by burnchain block hash
|
|
@@ -76,7 +93,7 @@ export interface BlocksApiInterface {
|
|
|
76
93
|
*/
|
|
77
94
|
getBlockByBurnBlockHeight(requestParameters: GetBlockByBurnBlockHeightRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
78
95
|
/**
|
|
79
|
-
* 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.
|
|
96
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
80
97
|
* @summary Get block by hash
|
|
81
98
|
* @param {string} hash Hash of the block
|
|
82
99
|
* @param {*} [options] Override http request option.
|
|
@@ -85,12 +102,12 @@ export interface BlocksApiInterface {
|
|
|
85
102
|
*/
|
|
86
103
|
getBlockByHashRaw(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>>;
|
|
87
104
|
/**
|
|
88
|
-
* 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.
|
|
105
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
89
106
|
* Get block by hash
|
|
90
107
|
*/
|
|
91
108
|
getBlockByHash(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
92
109
|
/**
|
|
93
|
-
* Retrieves block details of a specific block at a given block height
|
|
110
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
94
111
|
* @summary Get block by height
|
|
95
112
|
* @param {number} height Height of the block
|
|
96
113
|
* @param {*} [options] Override http request option.
|
|
@@ -99,7 +116,7 @@ export interface BlocksApiInterface {
|
|
|
99
116
|
*/
|
|
100
117
|
getBlockByHeightRaw(requestParameters: GetBlockByHeightRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>>;
|
|
101
118
|
/**
|
|
102
|
-
* Retrieves block details of a specific block at a given block height
|
|
119
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
103
120
|
* Get block by height
|
|
104
121
|
*/
|
|
105
122
|
getBlockByHeight(requestParameters: GetBlockByHeightRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
@@ -169,6 +186,16 @@ export interface BlocksApiInterface {
|
|
|
169
186
|
*
|
|
170
187
|
*/
|
|
171
188
|
export declare class BlocksApi extends runtime.BaseAPI implements BlocksApiInterface {
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves a single block
|
|
191
|
+
* Get block
|
|
192
|
+
*/
|
|
193
|
+
getBlockRaw(requestParameters: GetBlockRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NakamotoBlock>>;
|
|
194
|
+
/**
|
|
195
|
+
* Retrieves a single block
|
|
196
|
+
* Get block
|
|
197
|
+
*/
|
|
198
|
+
getBlock(requestParameters: GetBlockRequest, initOverrides?: RequestInit): Promise<NakamotoBlock>;
|
|
172
199
|
/**
|
|
173
200
|
* **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
|
|
174
201
|
* Get block by burnchain block hash
|
|
@@ -190,22 +217,22 @@ export declare class BlocksApi extends runtime.BaseAPI implements BlocksApiInter
|
|
|
190
217
|
*/
|
|
191
218
|
getBlockByBurnBlockHeight(requestParameters: GetBlockByBurnBlockHeightRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
192
219
|
/**
|
|
193
|
-
* 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.
|
|
220
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
194
221
|
* Get block by hash
|
|
195
222
|
*/
|
|
196
223
|
getBlockByHashRaw(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>>;
|
|
197
224
|
/**
|
|
198
|
-
* 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.
|
|
225
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
199
226
|
* Get block by hash
|
|
200
227
|
*/
|
|
201
228
|
getBlockByHash(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
202
229
|
/**
|
|
203
|
-
* Retrieves block details of a specific block at a given block height
|
|
230
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
204
231
|
* Get block by height
|
|
205
232
|
*/
|
|
206
233
|
getBlockByHeightRaw(requestParameters: GetBlockByHeightRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>>;
|
|
207
234
|
/**
|
|
208
|
-
* Retrieves block details of a specific block at a given block height
|
|
235
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
209
236
|
* Get block by height
|
|
210
237
|
*/
|
|
211
238
|
getBlockByHeight(requestParameters: GetBlockByHeightRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
@@ -20,6 +20,32 @@ const models_1 = require("../models");
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
class BlocksApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves a single block
|
|
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
|
+
}
|
|
23
49
|
/**
|
|
24
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
|
|
25
51
|
* Get block by burnchain block hash
|
|
@@ -73,7 +99,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
73
99
|
return await response.value();
|
|
74
100
|
}
|
|
75
101
|
/**
|
|
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.
|
|
102
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
77
103
|
* Get block by hash
|
|
78
104
|
*/
|
|
79
105
|
async getBlockByHashRaw(requestParameters, initOverrides) {
|
|
@@ -91,7 +117,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
91
117
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
92
118
|
}
|
|
93
119
|
/**
|
|
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.
|
|
120
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
95
121
|
* Get block by hash
|
|
96
122
|
*/
|
|
97
123
|
async getBlockByHash(requestParameters, initOverrides) {
|
|
@@ -99,7 +125,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
99
125
|
return await response.value();
|
|
100
126
|
}
|
|
101
127
|
/**
|
|
102
|
-
* Retrieves block details of a specific block at a given block height
|
|
128
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
103
129
|
* Get block by height
|
|
104
130
|
*/
|
|
105
131
|
async getBlockByHeightRaw(requestParameters, initOverrides) {
|
|
@@ -117,7 +143,7 @@ class BlocksApi extends runtime.BaseAPI {
|
|
|
117
143
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BlockFromJSON)(jsonValue));
|
|
118
144
|
}
|
|
119
145
|
/**
|
|
120
|
-
* Retrieves block details of a specific block at a given block height
|
|
146
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
121
147
|
* Get block by height
|
|
122
148
|
*/
|
|
123
149
|
async getBlockByHeight(requestParameters, initOverrides) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlocksApi.js","sourceRoot":"","sources":["../../../src/generated/apis/BlocksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"BlocksApi.js","sourceRoot":"","sources":["../../../src/generated/apis/BlocksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAm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AE,CAAC,IAAA,sCAA6B,EAAC,SAAS,CAAC,CAAC,CAAC;IAC1G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAuC,EAAE,aAA2B;QACpF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtTD,8BAsTC"}
|
package/lib/index.umd.js
CHANGED
|
@@ -7296,13 +7296,60 @@
|
|
|
7296
7296
|
|
|
7297
7297
|
var _proto = BlocksApi.prototype;
|
|
7298
7298
|
|
|
7299
|
+
/**
|
|
7300
|
+
* Retrieves a single block
|
|
7301
|
+
* Get block
|
|
7302
|
+
*/
|
|
7303
|
+
_proto.getBlockRaw = function getBlockRaw(requestParameters, initOverrides) {
|
|
7304
|
+
try {
|
|
7305
|
+
var _this2 = this;
|
|
7306
|
+
|
|
7307
|
+
if (requestParameters.heightOrHash === null || requestParameters.heightOrHash === undefined) {
|
|
7308
|
+
throw new RequiredError('heightOrHash', 'Required parameter requestParameters.heightOrHash was null or undefined when calling getBlock.');
|
|
7309
|
+
}
|
|
7310
|
+
|
|
7311
|
+
var queryParameters = {};
|
|
7312
|
+
var headerParameters = {};
|
|
7313
|
+
return Promise.resolve(_this2.request({
|
|
7314
|
+
path: "/extended/v2/blocks/{height_or_hash}".replace("{" + "height_or_hash" + "}", encodeURIComponent(String(requestParameters.heightOrHash))),
|
|
7315
|
+
method: 'GET',
|
|
7316
|
+
headers: headerParameters,
|
|
7317
|
+
query: queryParameters
|
|
7318
|
+
}, initOverrides)).then(function (response) {
|
|
7319
|
+
return new JSONApiResponse(response, function (jsonValue) {
|
|
7320
|
+
return NakamotoBlockFromJSON(jsonValue);
|
|
7321
|
+
});
|
|
7322
|
+
});
|
|
7323
|
+
} catch (e) {
|
|
7324
|
+
return Promise.reject(e);
|
|
7325
|
+
}
|
|
7326
|
+
}
|
|
7327
|
+
/**
|
|
7328
|
+
* Retrieves a single block
|
|
7329
|
+
* Get block
|
|
7330
|
+
*/
|
|
7331
|
+
;
|
|
7332
|
+
|
|
7333
|
+
_proto.getBlock = function getBlock(requestParameters, initOverrides) {
|
|
7334
|
+
try {
|
|
7335
|
+
var _this4 = this;
|
|
7336
|
+
|
|
7337
|
+
return Promise.resolve(_this4.getBlockRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7338
|
+
return Promise.resolve(response.value());
|
|
7339
|
+
});
|
|
7340
|
+
} catch (e) {
|
|
7341
|
+
return Promise.reject(e);
|
|
7342
|
+
}
|
|
7343
|
+
}
|
|
7299
7344
|
/**
|
|
7300
7345
|
* **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
|
|
7301
7346
|
* Get block by burnchain block hash
|
|
7302
7347
|
*/
|
|
7348
|
+
;
|
|
7349
|
+
|
|
7303
7350
|
_proto.getBlockByBurnBlockHashRaw = function getBlockByBurnBlockHashRaw(requestParameters, initOverrides) {
|
|
7304
7351
|
try {
|
|
7305
|
-
var
|
|
7352
|
+
var _this6 = this;
|
|
7306
7353
|
|
|
7307
7354
|
if (requestParameters.burnBlockHash === null || requestParameters.burnBlockHash === undefined) {
|
|
7308
7355
|
throw new RequiredError('burnBlockHash', 'Required parameter requestParameters.burnBlockHash was null or undefined when calling getBlockByBurnBlockHash.');
|
|
@@ -7310,7 +7357,7 @@
|
|
|
7310
7357
|
|
|
7311
7358
|
var queryParameters = {};
|
|
7312
7359
|
var headerParameters = {};
|
|
7313
|
-
return Promise.resolve(
|
|
7360
|
+
return Promise.resolve(_this6.request({
|
|
7314
7361
|
path: "/extended/v1/block/by_burn_block_hash/{burn_block_hash}".replace("{" + "burn_block_hash" + "}", encodeURIComponent(String(requestParameters.burnBlockHash))),
|
|
7315
7362
|
method: 'GET',
|
|
7316
7363
|
headers: headerParameters,
|
|
@@ -7332,9 +7379,9 @@
|
|
|
7332
7379
|
|
|
7333
7380
|
_proto.getBlockByBurnBlockHash = function getBlockByBurnBlockHash(requestParameters, initOverrides) {
|
|
7334
7381
|
try {
|
|
7335
|
-
var
|
|
7382
|
+
var _this8 = this;
|
|
7336
7383
|
|
|
7337
|
-
return Promise.resolve(
|
|
7384
|
+
return Promise.resolve(_this8.getBlockByBurnBlockHashRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7338
7385
|
return Promise.resolve(response.value());
|
|
7339
7386
|
});
|
|
7340
7387
|
} catch (e) {
|
|
@@ -7349,7 +7396,7 @@
|
|
|
7349
7396
|
|
|
7350
7397
|
_proto.getBlockByBurnBlockHeightRaw = function getBlockByBurnBlockHeightRaw(requestParameters, initOverrides) {
|
|
7351
7398
|
try {
|
|
7352
|
-
var
|
|
7399
|
+
var _this10 = this;
|
|
7353
7400
|
|
|
7354
7401
|
if (requestParameters.burnBlockHeight === null || requestParameters.burnBlockHeight === undefined) {
|
|
7355
7402
|
throw new RequiredError('burnBlockHeight', 'Required parameter requestParameters.burnBlockHeight was null or undefined when calling getBlockByBurnBlockHeight.');
|
|
@@ -7357,7 +7404,7 @@
|
|
|
7357
7404
|
|
|
7358
7405
|
var queryParameters = {};
|
|
7359
7406
|
var headerParameters = {};
|
|
7360
|
-
return Promise.resolve(
|
|
7407
|
+
return Promise.resolve(_this10.request({
|
|
7361
7408
|
path: "/extended/v1/block/by_burn_block_height/{burn_block_height}".replace("{" + "burn_block_height" + "}", encodeURIComponent(String(requestParameters.burnBlockHeight))),
|
|
7362
7409
|
method: 'GET',
|
|
7363
7410
|
headers: headerParameters,
|
|
@@ -7379,9 +7426,9 @@
|
|
|
7379
7426
|
|
|
7380
7427
|
_proto.getBlockByBurnBlockHeight = function getBlockByBurnBlockHeight(requestParameters, initOverrides) {
|
|
7381
7428
|
try {
|
|
7382
|
-
var
|
|
7429
|
+
var _this12 = this;
|
|
7383
7430
|
|
|
7384
|
-
return Promise.resolve(
|
|
7431
|
+
return Promise.resolve(_this12.getBlockByBurnBlockHeightRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7385
7432
|
return Promise.resolve(response.value());
|
|
7386
7433
|
});
|
|
7387
7434
|
} catch (e) {
|
|
@@ -7389,14 +7436,14 @@
|
|
|
7389
7436
|
}
|
|
7390
7437
|
}
|
|
7391
7438
|
/**
|
|
7392
|
-
* 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.
|
|
7439
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
7393
7440
|
* Get block by hash
|
|
7394
7441
|
*/
|
|
7395
7442
|
;
|
|
7396
7443
|
|
|
7397
7444
|
_proto.getBlockByHashRaw = function getBlockByHashRaw(requestParameters, initOverrides) {
|
|
7398
7445
|
try {
|
|
7399
|
-
var
|
|
7446
|
+
var _this14 = this;
|
|
7400
7447
|
|
|
7401
7448
|
if (requestParameters.hash === null || requestParameters.hash === undefined) {
|
|
7402
7449
|
throw new RequiredError('hash', 'Required parameter requestParameters.hash was null or undefined when calling getBlockByHash.');
|
|
@@ -7404,7 +7451,7 @@
|
|
|
7404
7451
|
|
|
7405
7452
|
var queryParameters = {};
|
|
7406
7453
|
var headerParameters = {};
|
|
7407
|
-
return Promise.resolve(
|
|
7454
|
+
return Promise.resolve(_this14.request({
|
|
7408
7455
|
path: "/extended/v1/block/{hash}".replace("{" + "hash" + "}", encodeURIComponent(String(requestParameters.hash))),
|
|
7409
7456
|
method: 'GET',
|
|
7410
7457
|
headers: headerParameters,
|
|
@@ -7419,16 +7466,16 @@
|
|
|
7419
7466
|
}
|
|
7420
7467
|
}
|
|
7421
7468
|
/**
|
|
7422
|
-
* 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.
|
|
7469
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). 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.
|
|
7423
7470
|
* Get block by hash
|
|
7424
7471
|
*/
|
|
7425
7472
|
;
|
|
7426
7473
|
|
|
7427
7474
|
_proto.getBlockByHash = function getBlockByHash(requestParameters, initOverrides) {
|
|
7428
7475
|
try {
|
|
7429
|
-
var
|
|
7476
|
+
var _this16 = this;
|
|
7430
7477
|
|
|
7431
|
-
return Promise.resolve(
|
|
7478
|
+
return Promise.resolve(_this16.getBlockByHashRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7432
7479
|
return Promise.resolve(response.value());
|
|
7433
7480
|
});
|
|
7434
7481
|
} catch (e) {
|
|
@@ -7436,14 +7483,14 @@
|
|
|
7436
7483
|
}
|
|
7437
7484
|
}
|
|
7438
7485
|
/**
|
|
7439
|
-
* Retrieves block details of a specific block at a given block height
|
|
7486
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
7440
7487
|
* Get block by height
|
|
7441
7488
|
*/
|
|
7442
7489
|
;
|
|
7443
7490
|
|
|
7444
7491
|
_proto.getBlockByHeightRaw = function getBlockByHeightRaw(requestParameters, initOverrides) {
|
|
7445
7492
|
try {
|
|
7446
|
-
var
|
|
7493
|
+
var _this18 = this;
|
|
7447
7494
|
|
|
7448
7495
|
if (requestParameters.height === null || requestParameters.height === undefined) {
|
|
7449
7496
|
throw new RequiredError('height', 'Required parameter requestParameters.height was null or undefined when calling getBlockByHeight.');
|
|
@@ -7451,7 +7498,7 @@
|
|
|
7451
7498
|
|
|
7452
7499
|
var queryParameters = {};
|
|
7453
7500
|
var headerParameters = {};
|
|
7454
|
-
return Promise.resolve(
|
|
7501
|
+
return Promise.resolve(_this18.request({
|
|
7455
7502
|
path: "/extended/v1/block/by_height/{height}".replace("{" + "height" + "}", encodeURIComponent(String(requestParameters.height))),
|
|
7456
7503
|
method: 'GET',
|
|
7457
7504
|
headers: headerParameters,
|
|
@@ -7466,16 +7513,16 @@
|
|
|
7466
7513
|
}
|
|
7467
7514
|
}
|
|
7468
7515
|
/**
|
|
7469
|
-
* Retrieves block details of a specific block at a given block height
|
|
7516
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get block](#operation/get_block). Retrieves block details of a specific block at a given block height
|
|
7470
7517
|
* Get block by height
|
|
7471
7518
|
*/
|
|
7472
7519
|
;
|
|
7473
7520
|
|
|
7474
7521
|
_proto.getBlockByHeight = function getBlockByHeight(requestParameters, initOverrides) {
|
|
7475
7522
|
try {
|
|
7476
|
-
var
|
|
7523
|
+
var _this20 = this;
|
|
7477
7524
|
|
|
7478
|
-
return Promise.resolve(
|
|
7525
|
+
return Promise.resolve(_this20.getBlockByHeightRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7479
7526
|
return Promise.resolve(response.value());
|
|
7480
7527
|
});
|
|
7481
7528
|
} catch (e) {
|
|
@@ -7490,7 +7537,7 @@
|
|
|
7490
7537
|
|
|
7491
7538
|
_proto.getBlockListRaw = function getBlockListRaw(requestParameters, initOverrides) {
|
|
7492
7539
|
try {
|
|
7493
|
-
var
|
|
7540
|
+
var _this22 = this;
|
|
7494
7541
|
|
|
7495
7542
|
var queryParameters = {};
|
|
7496
7543
|
|
|
@@ -7503,7 +7550,7 @@
|
|
|
7503
7550
|
}
|
|
7504
7551
|
|
|
7505
7552
|
var headerParameters = {};
|
|
7506
|
-
return Promise.resolve(
|
|
7553
|
+
return Promise.resolve(_this22.request({
|
|
7507
7554
|
path: "/extended/v1/block",
|
|
7508
7555
|
method: 'GET',
|
|
7509
7556
|
headers: headerParameters,
|
|
@@ -7525,9 +7572,9 @@
|
|
|
7525
7572
|
|
|
7526
7573
|
_proto.getBlockList = function getBlockList(requestParameters, initOverrides) {
|
|
7527
7574
|
try {
|
|
7528
|
-
var
|
|
7575
|
+
var _this24 = this;
|
|
7529
7576
|
|
|
7530
|
-
return Promise.resolve(
|
|
7577
|
+
return Promise.resolve(_this24.getBlockListRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7531
7578
|
return Promise.resolve(response.value());
|
|
7532
7579
|
});
|
|
7533
7580
|
} catch (e) {
|
|
@@ -7542,7 +7589,7 @@
|
|
|
7542
7589
|
|
|
7543
7590
|
_proto.getBlocksRaw = function getBlocksRaw(requestParameters, initOverrides) {
|
|
7544
7591
|
try {
|
|
7545
|
-
var
|
|
7592
|
+
var _this26 = this;
|
|
7546
7593
|
|
|
7547
7594
|
var queryParameters = {};
|
|
7548
7595
|
|
|
@@ -7563,7 +7610,7 @@
|
|
|
7563
7610
|
}
|
|
7564
7611
|
|
|
7565
7612
|
var headerParameters = {};
|
|
7566
|
-
return Promise.resolve(
|
|
7613
|
+
return Promise.resolve(_this26.request({
|
|
7567
7614
|
path: "/extended/v2/blocks",
|
|
7568
7615
|
method: 'GET',
|
|
7569
7616
|
headers: headerParameters,
|
|
@@ -7585,9 +7632,9 @@
|
|
|
7585
7632
|
|
|
7586
7633
|
_proto.getBlocks = function getBlocks(requestParameters, initOverrides) {
|
|
7587
7634
|
try {
|
|
7588
|
-
var
|
|
7635
|
+
var _this28 = this;
|
|
7589
7636
|
|
|
7590
|
-
return Promise.resolve(
|
|
7637
|
+
return Promise.resolve(_this28.getBlocksRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7591
7638
|
return Promise.resolve(response.value());
|
|
7592
7639
|
});
|
|
7593
7640
|
} catch (e) {
|
|
@@ -7602,7 +7649,7 @@
|
|
|
7602
7649
|
|
|
7603
7650
|
_proto.getBurnBlockRaw = function getBurnBlockRaw(requestParameters, initOverrides) {
|
|
7604
7651
|
try {
|
|
7605
|
-
var
|
|
7652
|
+
var _this30 = this;
|
|
7606
7653
|
|
|
7607
7654
|
if (requestParameters.heightOrHash === null || requestParameters.heightOrHash === undefined) {
|
|
7608
7655
|
throw new RequiredError('heightOrHash', 'Required parameter requestParameters.heightOrHash was null or undefined when calling getBurnBlock.');
|
|
@@ -7610,7 +7657,7 @@
|
|
|
7610
7657
|
|
|
7611
7658
|
var queryParameters = {};
|
|
7612
7659
|
var headerParameters = {};
|
|
7613
|
-
return Promise.resolve(
|
|
7660
|
+
return Promise.resolve(_this30.request({
|
|
7614
7661
|
path: "/extended/v2/burn-blocks/{height_or_hash}".replace("{" + "height_or_hash" + "}", encodeURIComponent(String(requestParameters.heightOrHash))),
|
|
7615
7662
|
method: 'GET',
|
|
7616
7663
|
headers: headerParameters,
|
|
@@ -7632,9 +7679,9 @@
|
|
|
7632
7679
|
|
|
7633
7680
|
_proto.getBurnBlock = function getBurnBlock(requestParameters, initOverrides) {
|
|
7634
7681
|
try {
|
|
7635
|
-
var
|
|
7682
|
+
var _this32 = this;
|
|
7636
7683
|
|
|
7637
|
-
return Promise.resolve(
|
|
7684
|
+
return Promise.resolve(_this32.getBurnBlockRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7638
7685
|
return Promise.resolve(response.value());
|
|
7639
7686
|
});
|
|
7640
7687
|
} catch (e) {
|
|
@@ -7649,7 +7696,7 @@
|
|
|
7649
7696
|
|
|
7650
7697
|
_proto.getBurnBlocksRaw = function getBurnBlocksRaw(requestParameters, initOverrides) {
|
|
7651
7698
|
try {
|
|
7652
|
-
var
|
|
7699
|
+
var _this34 = this;
|
|
7653
7700
|
|
|
7654
7701
|
var queryParameters = {};
|
|
7655
7702
|
|
|
@@ -7662,7 +7709,7 @@
|
|
|
7662
7709
|
}
|
|
7663
7710
|
|
|
7664
7711
|
var headerParameters = {};
|
|
7665
|
-
return Promise.resolve(
|
|
7712
|
+
return Promise.resolve(_this34.request({
|
|
7666
7713
|
path: "/extended/v2/burn-blocks",
|
|
7667
7714
|
method: 'GET',
|
|
7668
7715
|
headers: headerParameters,
|
|
@@ -7684,9 +7731,9 @@
|
|
|
7684
7731
|
|
|
7685
7732
|
_proto.getBurnBlocks = function getBurnBlocks(requestParameters, initOverrides) {
|
|
7686
7733
|
try {
|
|
7687
|
-
var
|
|
7734
|
+
var _this36 = this;
|
|
7688
7735
|
|
|
7689
|
-
return Promise.resolve(
|
|
7736
|
+
return Promise.resolve(_this36.getBurnBlocksRaw(requestParameters, initOverrides)).then(function (response) {
|
|
7690
7737
|
return Promise.resolve(response.value());
|
|
7691
7738
|
});
|
|
7692
7739
|
} catch (e) {
|