@stacks/blockchain-api-client 4.0.4 → 4.1.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.
- package/lib/generated/apis/AccountsApi.d.ts +17 -17
- package/lib/generated/apis/BlocksApi.d.ts +4 -4
- package/lib/generated/apis/BlocksApi.js +2 -2
- package/lib/generated/apis/FeesApi.d.ts +8 -8
- package/lib/generated/apis/FeesApi.js +4 -4
- package/lib/generated/apis/FungibleTokensApi.d.ts +1 -1
- package/lib/generated/apis/InfoApi.d.ts +3 -3
- package/lib/generated/apis/NamesApi.d.ts +5 -5
- package/lib/generated/apis/NamesApi.js +0 -6
- package/lib/generated/apis/NamesApi.js.map +1 -1
- package/lib/generated/apis/NonFungibleTokensApi.d.ts +4 -4
- package/lib/generated/apis/NonFungibleTokensApi.js +2 -2
- package/lib/generated/models/Block.d.ts +6 -0
- package/lib/generated/models/Block.js +2 -0
- package/lib/generated/models/Block.js.map +1 -1
- package/lib/index.umd.js +10 -16
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/apis/AccountsApi.ts +17 -17
- package/src/generated/apis/BlocksApi.ts +4 -4
- package/src/generated/apis/FeesApi.ts +8 -8
- package/src/generated/apis/FungibleTokensApi.ts +1 -1
- package/src/generated/apis/InfoApi.ts +3 -3
- package/src/generated/apis/NamesApi.ts +5 -13
- package/src/generated/apis/NonFungibleTokensApi.ts +4 -4
- package/src/generated/models/Block.ts +8 -0
package/lib/index.umd.js
CHANGED
|
@@ -1415,6 +1415,7 @@
|
|
|
1415
1415
|
'canonical': json['canonical'],
|
|
1416
1416
|
'height': json['height'],
|
|
1417
1417
|
'hash': json['hash'],
|
|
1418
|
+
'index_block_hash': json['index_block_hash'],
|
|
1418
1419
|
'parent_block_hash': json['parent_block_hash'],
|
|
1419
1420
|
'burn_block_time': json['burn_block_time'],
|
|
1420
1421
|
'burn_block_time_iso': json['burn_block_time_iso'],
|
|
@@ -1446,6 +1447,7 @@
|
|
|
1446
1447
|
'canonical': value.canonical,
|
|
1447
1448
|
'height': value.height,
|
|
1448
1449
|
'hash': value.hash,
|
|
1450
|
+
'index_block_hash': value.index_block_hash,
|
|
1449
1451
|
'parent_block_hash': value.parent_block_hash,
|
|
1450
1452
|
'burn_block_time': value.burn_block_time,
|
|
1451
1453
|
'burn_block_time_iso': value.burn_block_time_iso,
|
|
@@ -6859,7 +6861,7 @@
|
|
|
6859
6861
|
}
|
|
6860
6862
|
}
|
|
6861
6863
|
/**
|
|
6862
|
-
* Retrieves block details of a specific block for a given chain height
|
|
6864
|
+
* 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.
|
|
6863
6865
|
* Get block by hash
|
|
6864
6866
|
*/
|
|
6865
6867
|
;
|
|
@@ -6889,7 +6891,7 @@
|
|
|
6889
6891
|
}
|
|
6890
6892
|
}
|
|
6891
6893
|
/**
|
|
6892
|
-
* Retrieves block details of a specific block for a given chain height
|
|
6894
|
+
* 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.
|
|
6893
6895
|
* Get block by hash
|
|
6894
6896
|
*/
|
|
6895
6897
|
;
|
|
@@ -7149,7 +7151,7 @@
|
|
|
7149
7151
|
var _proto = FeesApi.prototype;
|
|
7150
7152
|
|
|
7151
7153
|
/**
|
|
7152
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
7154
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
7153
7155
|
* Fetch fee rate
|
|
7154
7156
|
*/
|
|
7155
7157
|
_proto.fetchFeeRateRaw = function fetchFeeRateRaw(requestParameters, initOverrides) {
|
|
@@ -7179,7 +7181,7 @@
|
|
|
7179
7181
|
}
|
|
7180
7182
|
}
|
|
7181
7183
|
/**
|
|
7182
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
7184
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
7183
7185
|
* Fetch fee rate
|
|
7184
7186
|
*/
|
|
7185
7187
|
;
|
|
@@ -7238,7 +7240,7 @@
|
|
|
7238
7240
|
}
|
|
7239
7241
|
/**
|
|
7240
7242
|
* 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`)
|
|
7241
|
-
* Get approximate fees for
|
|
7243
|
+
* Get approximate fees for a given transaction
|
|
7242
7244
|
*/
|
|
7243
7245
|
;
|
|
7244
7246
|
|
|
@@ -7266,7 +7268,7 @@
|
|
|
7266
7268
|
}
|
|
7267
7269
|
/**
|
|
7268
7270
|
* 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`)
|
|
7269
|
-
* Get approximate fees for
|
|
7271
|
+
* Get approximate fees for a given transaction
|
|
7270
7272
|
*/
|
|
7271
7273
|
;
|
|
7272
7274
|
|
|
@@ -8090,10 +8092,6 @@
|
|
|
8090
8092
|
try {
|
|
8091
8093
|
var _this10 = this;
|
|
8092
8094
|
|
|
8093
|
-
if (requestParameters.page === null || requestParameters.page === undefined) {
|
|
8094
|
-
throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getAllNames.');
|
|
8095
|
-
}
|
|
8096
|
-
|
|
8097
8095
|
var queryParameters = {};
|
|
8098
8096
|
|
|
8099
8097
|
if (requestParameters.page !== undefined) {
|
|
@@ -8381,10 +8379,6 @@
|
|
|
8381
8379
|
throw new RequiredError('tld', 'Required parameter requestParameters.tld was null or undefined when calling getNamespaceNames.');
|
|
8382
8380
|
}
|
|
8383
8381
|
|
|
8384
|
-
if (requestParameters.page === null || requestParameters.page === undefined) {
|
|
8385
|
-
throw new RequiredError('page', 'Required parameter requestParameters.page was null or undefined when calling getNamespaceNames.');
|
|
8386
|
-
}
|
|
8387
|
-
|
|
8388
8382
|
var queryParameters = {};
|
|
8389
8383
|
|
|
8390
8384
|
if (requestParameters.page !== undefined) {
|
|
@@ -8487,7 +8481,7 @@
|
|
|
8487
8481
|
|
|
8488
8482
|
/**
|
|
8489
8483
|
* Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
|
|
8490
|
-
* Non fungible tokens metadata for contract
|
|
8484
|
+
* Non fungible tokens metadata for contract ID
|
|
8491
8485
|
*/
|
|
8492
8486
|
_proto.getContractNftMetadataRaw = function getContractNftMetadataRaw(requestParameters, initOverrides) {
|
|
8493
8487
|
try {
|
|
@@ -8515,7 +8509,7 @@
|
|
|
8515
8509
|
}
|
|
8516
8510
|
/**
|
|
8517
8511
|
* Retrieves metadata for non fungible tokens for a given contract id. More information on Non-Fungible Tokens on the Stacks blockchain can be found [here](https://docs.stacks.co/write-smart-contracts/tokens#non-fungible-tokens-nfts).
|
|
8518
|
-
* Non fungible tokens metadata for contract
|
|
8512
|
+
* Non fungible tokens metadata for contract ID
|
|
8519
8513
|
*/
|
|
8520
8514
|
;
|
|
8521
8515
|
|