@stacks/blockchain-api-client 7.8.0-beta.4 → 7.8.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/FeesApi.d.ts +4 -4
- package/lib/generated/apis/FeesApi.js +2 -2
- package/lib/generated/apis/SmartContractsApi.d.ts +35 -0
- package/lib/generated/apis/SmartContractsApi.js +29 -0
- package/lib/generated/apis/SmartContractsApi.js.map +1 -1
- package/lib/index.umd.js +52 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/apis/FeesApi.ts +4 -4
- package/src/generated/apis/SmartContractsApi.ts +56 -0
|
@@ -52,7 +52,7 @@ export interface FeesApiInterface {
|
|
|
52
52
|
*/
|
|
53
53
|
getFeeTransfer(initOverrides?: RequestInit): Promise<object>;
|
|
54
54
|
/**
|
|
55
|
-
* 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
|
|
55
|
+
* 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`)
|
|
56
56
|
* @summary Get approximate fees for a given transaction
|
|
57
57
|
* @param {TransactionFeeEstimateRequest} [transactionFeeEstimateRequest]
|
|
58
58
|
* @param {*} [options] Override http request option.
|
|
@@ -61,7 +61,7 @@ export interface FeesApiInterface {
|
|
|
61
61
|
*/
|
|
62
62
|
postFeeTransactionRaw(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<TransactionFeeEstimateResponse>>;
|
|
63
63
|
/**
|
|
64
|
-
* 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
|
|
64
|
+
* 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`)
|
|
65
65
|
* Get approximate fees for a given transaction
|
|
66
66
|
*/
|
|
67
67
|
postFeeTransaction(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse>;
|
|
@@ -91,12 +91,12 @@ export declare class FeesApi extends runtime.BaseAPI implements FeesApiInterface
|
|
|
91
91
|
*/
|
|
92
92
|
getFeeTransfer(initOverrides?: RequestInit): Promise<object>;
|
|
93
93
|
/**
|
|
94
|
-
* 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
|
|
94
|
+
* 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`)
|
|
95
95
|
* Get approximate fees for a given transaction
|
|
96
96
|
*/
|
|
97
97
|
postFeeTransactionRaw(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<TransactionFeeEstimateResponse>>;
|
|
98
98
|
/**
|
|
99
|
-
* 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
|
|
99
|
+
* 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`)
|
|
100
100
|
* Get approximate fees for a given transaction
|
|
101
101
|
*/
|
|
102
102
|
postFeeTransaction(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse>;
|
|
@@ -72,7 +72,7 @@ class FeesApi extends runtime.BaseAPI {
|
|
|
72
72
|
return await response.value();
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* 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
|
|
75
|
+
* 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`)
|
|
76
76
|
* Get approximate fees for a given transaction
|
|
77
77
|
*/
|
|
78
78
|
async postFeeTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -89,7 +89,7 @@ class FeesApi extends runtime.BaseAPI {
|
|
|
89
89
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.TransactionFeeEstimateResponseFromJSON)(jsonValue));
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* 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
|
|
92
|
+
* 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`)
|
|
93
93
|
* Get approximate fees for a given transaction
|
|
94
94
|
*/
|
|
95
95
|
async postFeeTransaction(requestParameters, initOverrides) {
|
|
@@ -52,6 +52,9 @@ export interface GetContractsByTraitRequest {
|
|
|
52
52
|
limit?: number;
|
|
53
53
|
offset?: number;
|
|
54
54
|
}
|
|
55
|
+
export interface GetSmartContractsStatusRequest {
|
|
56
|
+
contractId: Array<string>;
|
|
57
|
+
}
|
|
55
58
|
/**
|
|
56
59
|
* SmartContractsApi - interface
|
|
57
60
|
*
|
|
@@ -177,6 +180,24 @@ export interface SmartContractsApiInterface {
|
|
|
177
180
|
* Get contracts by trait
|
|
178
181
|
*/
|
|
179
182
|
getContractsByTrait(requestParameters: GetContractsByTraitRequest, initOverrides?: RequestInit): Promise<ContractListResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
185
|
+
* @summary Get smart contracts status
|
|
186
|
+
* @param {Array<string>} contractId contract ids to fetch status for
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
* @memberof SmartContractsApiInterface
|
|
190
|
+
*/
|
|
191
|
+
getSmartContractsStatusRaw(requestParameters: GetSmartContractsStatusRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<{
|
|
192
|
+
[key: string]: object;
|
|
193
|
+
}>>;
|
|
194
|
+
/**
|
|
195
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
196
|
+
* Get smart contracts status
|
|
197
|
+
*/
|
|
198
|
+
getSmartContractsStatus(requestParameters: GetSmartContractsStatusRequest, initOverrides?: RequestInit): Promise<{
|
|
199
|
+
[key: string]: object;
|
|
200
|
+
}>;
|
|
180
201
|
}
|
|
181
202
|
/**
|
|
182
203
|
*
|
|
@@ -252,4 +273,18 @@ export declare class SmartContractsApi extends runtime.BaseAPI implements SmartC
|
|
|
252
273
|
* Get contracts by trait
|
|
253
274
|
*/
|
|
254
275
|
getContractsByTrait(requestParameters: GetContractsByTraitRequest, initOverrides?: RequestInit): Promise<ContractListResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
278
|
+
* Get smart contracts status
|
|
279
|
+
*/
|
|
280
|
+
getSmartContractsStatusRaw(requestParameters: GetSmartContractsStatusRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<{
|
|
281
|
+
[key: string]: object;
|
|
282
|
+
}>>;
|
|
283
|
+
/**
|
|
284
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
285
|
+
* Get smart contracts status
|
|
286
|
+
*/
|
|
287
|
+
getSmartContractsStatus(requestParameters: GetSmartContractsStatusRequest, initOverrides?: RequestInit): Promise<{
|
|
288
|
+
[key: string]: object;
|
|
289
|
+
}>;
|
|
255
290
|
}
|
|
@@ -269,6 +269,35 @@ class SmartContractsApi extends runtime.BaseAPI {
|
|
|
269
269
|
const response = await this.getContractsByTraitRaw(requestParameters, initOverrides);
|
|
270
270
|
return await response.value();
|
|
271
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
274
|
+
* Get smart contracts status
|
|
275
|
+
*/
|
|
276
|
+
async getSmartContractsStatusRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
|
|
278
|
+
throw new runtime.RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getSmartContractsStatus.');
|
|
279
|
+
}
|
|
280
|
+
const queryParameters = {};
|
|
281
|
+
if (requestParameters.contractId) {
|
|
282
|
+
queryParameters['contract_id'] = requestParameters.contractId;
|
|
283
|
+
}
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
const response = await this.request({
|
|
286
|
+
path: `/extended/v2/smart-contracts/status`,
|
|
287
|
+
method: 'GET',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
return new runtime.JSONApiResponse(response);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
295
|
+
* Get smart contracts status
|
|
296
|
+
*/
|
|
297
|
+
async getSmartContractsStatus(requestParameters, initOverrides) {
|
|
298
|
+
const response = await this.getSmartContractsStatusRaw(requestParameters, initOverrides);
|
|
299
|
+
return await response.value();
|
|
300
|
+
}
|
|
272
301
|
}
|
|
273
302
|
exports.SmartContractsApi = SmartContractsApi;
|
|
274
303
|
//# sourceMappingURL=SmartContractsApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartContractsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/SmartContractsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAsBmB;AA+LnB;;GAEG;AACH,MAAa,iBAAkB,SAAQ,OAAO,CAAC,OAAO;IAElD;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,iBAA8C,EAAE,aAA2B;QACrG,IAAI,iBAAiB,CAAC,eAAe,KAAK,IAAI,IAAI,iBAAiB,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YAChG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,iBAAiB,EAAC,+GAA+G,CAAC,CAAC;QACvK,CAAC;QAED,IAAI,iBAAiB,CAAC,YAAY,KAAK,IAAI,IAAI,iBAAiB,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YAC1F,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,cAAc,EAAC,4GAA4G,CAAC,CAAC;QACjK,CAAC;QAED,IAAI,iBAAiB,CAAC,YAAY,KAAK,IAAI,IAAI,iBAAiB,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YAC1F,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,cAAc,EAAC,4GAA4G,CAAC,CAAC;QACjK,CAAC;QAED,IAAI,iBAAiB,CAAC,oBAAoB,KAAK,IAAI,IAAI,iBAAiB,CAAC,oBAAoB,KAAK,SAAS,EAAE,CAAC;YAC1G,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,sBAAsB,EAAC,oHAAoH,CAAC,CAAC;QACjL,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;YACtC,eAAe,CAAC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AAK,SAAS,EAAE,CAAC;YACtF,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,YAAY,EAAC,6GAA6G,CAAC,CAAC;QAChK,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,UAAU,EAAE,CAAC;YAC/B,eAAe,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,UAAU,CAAC;QAClE,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,qCAAqC;YAC3C,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAM,QAAQ,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,iBAAiD,EAAE,aAA2B;QACxG,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACzF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhWD,8CAgWC"}
|
package/lib/index.umd.js
CHANGED
|
@@ -7726,7 +7726,7 @@
|
|
|
7726
7726
|
}
|
|
7727
7727
|
}
|
|
7728
7728
|
/**
|
|
7729
|
-
* 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
|
|
7729
|
+
* 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`)
|
|
7730
7730
|
* Get approximate fees for a given transaction
|
|
7731
7731
|
*/
|
|
7732
7732
|
;
|
|
@@ -7754,7 +7754,7 @@
|
|
|
7754
7754
|
}
|
|
7755
7755
|
}
|
|
7756
7756
|
/**
|
|
7757
|
-
* 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
|
|
7757
|
+
* 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`)
|
|
7758
7758
|
* Get approximate fees for a given transaction
|
|
7759
7759
|
*/
|
|
7760
7760
|
;
|
|
@@ -10418,6 +10418,56 @@
|
|
|
10418
10418
|
} catch (e) {
|
|
10419
10419
|
return Promise.reject(e);
|
|
10420
10420
|
}
|
|
10421
|
+
}
|
|
10422
|
+
/**
|
|
10423
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
10424
|
+
* Get smart contracts status
|
|
10425
|
+
*/
|
|
10426
|
+
;
|
|
10427
|
+
|
|
10428
|
+
_proto.getSmartContractsStatusRaw = function getSmartContractsStatusRaw(requestParameters, initOverrides) {
|
|
10429
|
+
try {
|
|
10430
|
+
var _this30 = this;
|
|
10431
|
+
|
|
10432
|
+
if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
|
|
10433
|
+
throw new RequiredError('contractId', 'Required parameter requestParameters.contractId was null or undefined when calling getSmartContractsStatus.');
|
|
10434
|
+
}
|
|
10435
|
+
|
|
10436
|
+
var queryParameters = {};
|
|
10437
|
+
|
|
10438
|
+
if (requestParameters.contractId) {
|
|
10439
|
+
queryParameters['contract_id'] = requestParameters.contractId;
|
|
10440
|
+
}
|
|
10441
|
+
|
|
10442
|
+
var headerParameters = {};
|
|
10443
|
+
return Promise.resolve(_this30.request({
|
|
10444
|
+
path: "/extended/v2/smart-contracts/status",
|
|
10445
|
+
method: 'GET',
|
|
10446
|
+
headers: headerParameters,
|
|
10447
|
+
query: queryParameters
|
|
10448
|
+
}, initOverrides)).then(function (response) {
|
|
10449
|
+
return new JSONApiResponse(response);
|
|
10450
|
+
});
|
|
10451
|
+
} catch (e) {
|
|
10452
|
+
return Promise.reject(e);
|
|
10453
|
+
}
|
|
10454
|
+
}
|
|
10455
|
+
/**
|
|
10456
|
+
* Retrieves the deployment status of multiple smart contracts.
|
|
10457
|
+
* Get smart contracts status
|
|
10458
|
+
*/
|
|
10459
|
+
;
|
|
10460
|
+
|
|
10461
|
+
_proto.getSmartContractsStatus = function getSmartContractsStatus(requestParameters, initOverrides) {
|
|
10462
|
+
try {
|
|
10463
|
+
var _this32 = this;
|
|
10464
|
+
|
|
10465
|
+
return Promise.resolve(_this32.getSmartContractsStatusRaw(requestParameters, initOverrides)).then(function (response) {
|
|
10466
|
+
return Promise.resolve(response.value());
|
|
10467
|
+
});
|
|
10468
|
+
} catch (e) {
|
|
10469
|
+
return Promise.reject(e);
|
|
10470
|
+
}
|
|
10421
10471
|
};
|
|
10422
10472
|
|
|
10423
10473
|
return SmartContractsApi;
|