@stacks/blockchain-api-client 4.1.0 → 5.0.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/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/apis/RosettaApi.d.ts +12 -12
- package/lib/generated/apis/RosettaApi.js +6 -6
- 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 +16 -22
- 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/apis/RosettaApi.ts +12 -12
- package/src/generated/models/Block.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.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",
|
|
@@ -126,11 +126,11 @@ export interface AccountsApiInterface {
|
|
|
126
126
|
/**
|
|
127
127
|
* Retrieves a list of all assets events associated with an account or a Contract Identifier. This includes Transfers, Mints.
|
|
128
128
|
* @summary Get account assets
|
|
129
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
129
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
130
130
|
* @param {number} [limit] max number of account assets to fetch
|
|
131
131
|
* @param {number} [offset] index of first account assets to fetch
|
|
132
132
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
133
|
-
* @param {string} [untilBlock] returned data representing the state at that point in time, rather than the current block.
|
|
133
|
+
* @param {string} [untilBlock] returned data representing the state at that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
* @memberof AccountsApiInterface
|
|
@@ -146,7 +146,7 @@ export interface AccountsApiInterface {
|
|
|
146
146
|
/**
|
|
147
147
|
* Retrieves total account balance information for a given Address or Contract Identifier. This includes the balances of STX Tokens, Fungible Tokens and Non-Fungible Tokens for the account.
|
|
148
148
|
* @summary Get account balances
|
|
149
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
149
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
150
150
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
151
151
|
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block.
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
@@ -164,12 +164,12 @@ export interface AccountsApiInterface {
|
|
|
164
164
|
/**
|
|
165
165
|
* Retrieves a list of STX transfers with memos to the given principal. This includes regular transfers from a stx-transfer transaction type, and transfers from contract-call transactions a the `send-many-memo` bulk sending contract.
|
|
166
166
|
* @summary Get inbound STX transfers
|
|
167
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
167
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
168
168
|
* @param {number} [limit] number of items to return
|
|
169
169
|
* @param {number} [offset] number of items to skip
|
|
170
170
|
* @param {number} [height] Filter for transfers only at this given block height
|
|
171
171
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
172
|
-
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block.
|
|
172
|
+
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
|
|
173
173
|
* @param {*} [options] Override http request option.
|
|
174
174
|
* @throws {RequiredError}
|
|
175
175
|
* @memberof AccountsApiInterface
|
|
@@ -185,7 +185,7 @@ export interface AccountsApiInterface {
|
|
|
185
185
|
/**
|
|
186
186
|
* Retrieves the account data for a given Account or a Contract Identifier Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is an unsigned 64-bit integer, and the proofs are provided as hex strings. For non-existent accounts, this does not return a 404 error, rather it returns an object with balance and nonce of 0.
|
|
187
187
|
* @summary Get account info
|
|
188
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
188
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
189
189
|
* @param {number} [proof] Returns object without the proof field if set to 0
|
|
190
190
|
* @param {string} [tip] The Stacks chain tip to query from
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
@@ -203,11 +203,11 @@ export interface AccountsApiInterface {
|
|
|
203
203
|
/**
|
|
204
204
|
* **NOTE:** This endpoint is deprecated in favor of [Non-Fungible Token holdings](#operation/get_nft_holdings). Retrieves a list of all nfts owned by an address, contains the clarity value of the identifier of the nft.
|
|
205
205
|
* @summary Get nft events
|
|
206
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
206
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
207
207
|
* @param {number} [limit] number of items to return
|
|
208
208
|
* @param {number} [offset] number of items to skip
|
|
209
209
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
210
|
-
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block.
|
|
210
|
+
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
|
|
211
211
|
* @param {*} [options] Override http request option.
|
|
212
212
|
* @throws {RequiredError}
|
|
213
213
|
* @memberof AccountsApiInterface
|
|
@@ -223,9 +223,9 @@ export interface AccountsApiInterface {
|
|
|
223
223
|
/**
|
|
224
224
|
* Retrieves the latest nonce values used by an account by inspecting the mempool, microblock transactions, and anchored transactions.
|
|
225
225
|
* @summary Get the latest nonce used by an account
|
|
226
|
-
* @param {string} principal Stacks address
|
|
227
|
-
* @param {number} [blockHeight] Optionally get the nonce at a given block height
|
|
228
|
-
* @param {string} [blockHash] Optionally get the nonce at a given block hash
|
|
226
|
+
* @param {string} principal Stacks address
|
|
227
|
+
* @param {number} [blockHeight] Optionally get the nonce at a given block height.
|
|
228
|
+
* @param {string} [blockHash] Optionally get the nonce at a given block hash. Note - Use either of the query parameters but not both at a time.
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
* @memberof AccountsApiInterface
|
|
@@ -241,9 +241,9 @@ export interface AccountsApiInterface {
|
|
|
241
241
|
/**
|
|
242
242
|
* Retrieves STX token balance for a given Address or Contract Identifier.
|
|
243
243
|
* @summary Get account STX balance
|
|
244
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
245
|
-
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
246
|
-
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block.
|
|
244
|
+
* @param {string} principal Stacks address or a Contract identifier.
|
|
245
|
+
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks.
|
|
246
|
+
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
|
|
247
247
|
* @param {*} [options] Override http request option.
|
|
248
248
|
* @throws {RequiredError}
|
|
249
249
|
* @memberof AccountsApiInterface
|
|
@@ -259,12 +259,12 @@ export interface AccountsApiInterface {
|
|
|
259
259
|
/**
|
|
260
260
|
* Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates.
|
|
261
261
|
* @summary Get account transactions
|
|
262
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
262
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
263
263
|
* @param {number} [limit] max number of account transactions to fetch
|
|
264
264
|
* @param {number} [offset] index of first account transaction to fetch
|
|
265
265
|
* @param {number} [height] Filter for transactions only at this given block height
|
|
266
266
|
* @param {boolean} [unanchored] Include transaction data from unanchored (i.e. unconfirmed) microblocks
|
|
267
|
-
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block.
|
|
267
|
+
* @param {string} [untilBlock] returned data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time.
|
|
268
268
|
* @param {*} [options] Override http request option.
|
|
269
269
|
* @throws {RequiredError}
|
|
270
270
|
* @memberof AccountsApiInterface
|
|
@@ -280,7 +280,7 @@ export interface AccountsApiInterface {
|
|
|
280
280
|
/**
|
|
281
281
|
* Retrieve all transactions for an account or contract identifier including STX transfers for each transaction.
|
|
282
282
|
* @summary Get account transactions including STX transfers for each transaction.
|
|
283
|
-
* @param {string} principal Stacks address or a Contract identifier
|
|
283
|
+
* @param {string} principal Stacks address or a Contract identifier
|
|
284
284
|
* @param {number} [limit] max number of account transactions to fetch
|
|
285
285
|
* @param {number} [offset] index of first account transaction to fetch
|
|
286
286
|
* @param {number} [height] Filter for transactions only at this given block height
|
|
@@ -84,7 +84,7 @@ export interface BlocksApiInterface {
|
|
|
84
84
|
getBlockByBurnBlockHeight(requestParameters: GetBlockByBurnBlockHeightRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* Retrieves block details of a specific block for a given chain height
|
|
87
|
+
* 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.
|
|
88
88
|
* @summary Get block by hash
|
|
89
89
|
* @param {string} hash Hash of the block
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
@@ -94,7 +94,7 @@ export interface BlocksApiInterface {
|
|
|
94
94
|
getBlockByHashRaw(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>>;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Retrieves block details of a specific block for a given chain height
|
|
97
|
+
* 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.
|
|
98
98
|
* Get block by hash
|
|
99
99
|
*/
|
|
100
100
|
getBlockByHash(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<Block>;
|
|
@@ -204,7 +204,7 @@ export class BlocksApi extends runtime.BaseAPI implements BlocksApiInterface {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* Retrieves block details of a specific block for a given chain height
|
|
207
|
+
* 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.
|
|
208
208
|
* Get block by hash
|
|
209
209
|
*/
|
|
210
210
|
async getBlockByHashRaw(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Block>> {
|
|
@@ -227,7 +227,7 @@ export class BlocksApi extends runtime.BaseAPI implements BlocksApiInterface {
|
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Retrieves block details of a specific block for a given chain height
|
|
230
|
+
* 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.
|
|
231
231
|
* Get block by hash
|
|
232
232
|
*/
|
|
233
233
|
async getBlockByHash(requestParameters: GetBlockByHashRequest, initOverrides?: RequestInit): Promise<Block> {
|
|
@@ -45,7 +45,7 @@ export interface PostFeeTransactionRequest {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface FeesApiInterface {
|
|
47
47
|
/**
|
|
48
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
48
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
49
49
|
* @summary Fetch fee rate
|
|
50
50
|
* @param {FeeRateRequest} feeRateRequest
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
@@ -55,7 +55,7 @@ export interface FeesApiInterface {
|
|
|
55
55
|
fetchFeeRateRaw(requestParameters: FetchFeeRateRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FeeRate>>;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
58
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
59
59
|
* Fetch fee rate
|
|
60
60
|
*/
|
|
61
61
|
fetchFeeRate(requestParameters: FetchFeeRateRequest, initOverrides?: RequestInit): Promise<FeeRate>;
|
|
@@ -77,7 +77,7 @@ export interface FeesApiInterface {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* 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`)
|
|
80
|
-
* @summary Get approximate fees for
|
|
80
|
+
* @summary Get approximate fees for a given transaction
|
|
81
81
|
* @param {TransactionFeeEstimateRequest} [transactionFeeEstimateRequest]
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
@@ -87,7 +87,7 @@ export interface FeesApiInterface {
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* 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`)
|
|
90
|
-
* Get approximate fees for
|
|
90
|
+
* Get approximate fees for a given transaction
|
|
91
91
|
*/
|
|
92
92
|
postFeeTransaction(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse>;
|
|
93
93
|
|
|
@@ -99,7 +99,7 @@ export interface FeesApiInterface {
|
|
|
99
99
|
export class FeesApi extends runtime.BaseAPI implements FeesApiInterface {
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
102
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
103
103
|
* Fetch fee rate
|
|
104
104
|
*/
|
|
105
105
|
async fetchFeeRateRaw(requestParameters: FetchFeeRateRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FeeRate>> {
|
|
@@ -125,7 +125,7 @@ export class FeesApi extends runtime.BaseAPI implements FeesApiInterface {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for
|
|
128
|
+
* **NOTE:** This endpoint is deprecated in favor of [Get approximate fees for a given transaction](#operation/post_fee_transaction). Retrieves estimated fee rate.
|
|
129
129
|
* Fetch fee rate
|
|
130
130
|
*/
|
|
131
131
|
async fetchFeeRate(requestParameters: FetchFeeRateRequest, initOverrides?: RequestInit): Promise<FeeRate> {
|
|
@@ -163,7 +163,7 @@ export class FeesApi extends runtime.BaseAPI implements FeesApiInterface {
|
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* 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`)
|
|
166
|
-
* Get approximate fees for
|
|
166
|
+
* Get approximate fees for a given transaction
|
|
167
167
|
*/
|
|
168
168
|
async postFeeTransactionRaw(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<TransactionFeeEstimateResponse>> {
|
|
169
169
|
const queryParameters: any = {};
|
|
@@ -185,7 +185,7 @@ export class FeesApi extends runtime.BaseAPI implements FeesApiInterface {
|
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* 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`)
|
|
188
|
-
* Get approximate fees for
|
|
188
|
+
* Get approximate fees for a given transaction
|
|
189
189
|
*/
|
|
190
190
|
async postFeeTransaction(requestParameters: PostFeeTransactionRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse> {
|
|
191
191
|
const response = await this.postFeeTransactionRaw(requestParameters, initOverrides);
|
|
@@ -58,7 +58,7 @@ export interface FungibleTokensApiInterface {
|
|
|
58
58
|
/**
|
|
59
59
|
* 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).
|
|
60
60
|
* @summary Fungible tokens metadata list
|
|
61
|
-
* @param {number} [limit] max number of tokens to fetch
|
|
61
|
+
* @param {number} [limit] max number of tokens to fetch.
|
|
62
62
|
* @param {number} [offset] index of first tokens to fetch
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
@@ -75,7 +75,7 @@ export interface InfoApiInterface {
|
|
|
75
75
|
/**
|
|
76
76
|
* Retrieves the target block time for a given network. The network can be mainnet or testnet. The block time is hardcoded and will change throughout the implementation phases of the testnet.
|
|
77
77
|
* @summary Get a given network\'s target block time
|
|
78
|
-
* @param {'testnet' | 'mainnet'} network
|
|
78
|
+
* @param {'testnet' | 'mainnet'} network the target block time for a given network (testnet, mainnet).
|
|
79
79
|
* @param {*} [options] Override http request option.
|
|
80
80
|
* @throws {RequiredError}
|
|
81
81
|
* @memberof InfoApiInterface
|
|
@@ -136,7 +136,7 @@ export interface InfoApiInterface {
|
|
|
136
136
|
/**
|
|
137
137
|
* Retrieves the total and unlocked STX supply. More information on Stacking can be found [here] (https://docs.stacks.co/understand-stacks/stacking).
|
|
138
138
|
* @summary Get total and unlocked STX supply
|
|
139
|
-
* @param {number} [height]
|
|
139
|
+
* @param {number} [height] Supply details are queried from specified block height. If the block height is not specified, the latest block height is taken as default value.
|
|
140
140
|
* @param {*} [options] Override http request option.
|
|
141
141
|
* @throws {RequiredError}
|
|
142
142
|
* @memberof InfoApiInterface
|
|
@@ -182,7 +182,7 @@ export interface InfoApiInterface {
|
|
|
182
182
|
/**
|
|
183
183
|
* Retrieves total supply of STX tokens including those currently in circulation that have been unlocked.
|
|
184
184
|
* @summary Get total and unlocked STX supply (results formatted the same as the legacy 1.0 API)
|
|
185
|
-
* @param {number} [height]
|
|
185
|
+
* @param {number} [height] Supply details are queried from specified block height. If the block height is not specified, the latest block height is taken as default value.
|
|
186
186
|
* @param {*} [options] Override http request option.
|
|
187
187
|
* @throws {RequiredError}
|
|
188
188
|
* @memberof InfoApiInterface
|
|
@@ -44,7 +44,7 @@ export interface FetchZoneFileRequest {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface GetAllNamesRequest {
|
|
47
|
-
page
|
|
47
|
+
page?: number;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface GetHistoricalZoneFileRequest {
|
|
@@ -67,7 +67,7 @@ export interface GetNamesOwnedByAddressRequest {
|
|
|
67
67
|
|
|
68
68
|
export interface GetNamespaceNamesRequest {
|
|
69
69
|
tld: string;
|
|
70
|
-
page
|
|
70
|
+
page?: number;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface GetNamespacePriceRequest {
|
|
@@ -116,7 +116,7 @@ export interface NamesApiInterface {
|
|
|
116
116
|
/**
|
|
117
117
|
* Retrieves a list of all names known to the node.
|
|
118
118
|
* @summary Get All Names
|
|
119
|
-
* @param {number} page names are
|
|
119
|
+
* @param {number} [page] names are defaulted to page 1 with 100 results. You can query specific page results by using the \'page\' query parameter.
|
|
120
120
|
* @param {*} [options] Override http request option.
|
|
121
121
|
* @throws {RequiredError}
|
|
122
122
|
* @memberof NamesApiInterface
|
|
@@ -213,8 +213,8 @@ export interface NamesApiInterface {
|
|
|
213
213
|
/**
|
|
214
214
|
* Retrieves a list of names within a given namespace.
|
|
215
215
|
* @summary Get Namespace Names
|
|
216
|
-
* @param {string} tld the namespace to fetch names from
|
|
217
|
-
* @param {number} page
|
|
216
|
+
* @param {string} tld the namespace to fetch names from.
|
|
217
|
+
* @param {number} [page] namespace values are defaulted to page 1 with 100 results. You can query specific page results by using the \'page\' query parameter.
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
219
219
|
* @throws {RequiredError}
|
|
220
220
|
* @memberof NamesApiInterface
|
|
@@ -319,10 +319,6 @@ export class NamesApi extends runtime.BaseAPI implements NamesApiInterface {
|
|
|
319
319
|
* Get All Names
|
|
320
320
|
*/
|
|
321
321
|
async getAllNamesRaw(requestParameters: GetAllNamesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<string>>> {
|
|
322
|
-
if (requestParameters.page === null || requestParameters.page === undefined) {
|
|
323
|
-
throw new runtime.RequiredError('page','Required parameter requestParameters.page was null or undefined when calling getAllNames.');
|
|
324
|
-
}
|
|
325
|
-
|
|
326
322
|
const queryParameters: any = {};
|
|
327
323
|
|
|
328
324
|
if (requestParameters.page !== undefined) {
|
|
@@ -523,10 +519,6 @@ export class NamesApi extends runtime.BaseAPI implements NamesApiInterface {
|
|
|
523
519
|
throw new runtime.RequiredError('tld','Required parameter requestParameters.tld was null or undefined when calling getNamespaceNames.');
|
|
524
520
|
}
|
|
525
521
|
|
|
526
|
-
if (requestParameters.page === null || requestParameters.page === undefined) {
|
|
527
|
-
throw new runtime.RequiredError('page','Required parameter requestParameters.page was null or undefined when calling getNamespaceNames.');
|
|
528
|
-
}
|
|
529
|
-
|
|
530
522
|
const queryParameters: any = {};
|
|
531
523
|
|
|
532
524
|
if (requestParameters.page !== undefined) {
|
|
@@ -76,7 +76,7 @@ export interface GetNftMintsRequest {
|
|
|
76
76
|
export interface NonFungibleTokensApiInterface {
|
|
77
77
|
/**
|
|
78
78
|
* 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).
|
|
79
|
-
* @summary Non fungible tokens metadata for contract
|
|
79
|
+
* @summary Non fungible tokens metadata for contract ID
|
|
80
80
|
* @param {string} contractId token\'s contract id
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
@@ -86,7 +86,7 @@ export interface NonFungibleTokensApiInterface {
|
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* 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).
|
|
89
|
-
* Non fungible tokens metadata for contract
|
|
89
|
+
* Non fungible tokens metadata for contract ID
|
|
90
90
|
*/
|
|
91
91
|
getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
|
|
92
92
|
|
|
@@ -178,7 +178,7 @@ export class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungible
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* 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).
|
|
181
|
-
* Non fungible tokens metadata for contract
|
|
181
|
+
* Non fungible tokens metadata for contract ID
|
|
182
182
|
*/
|
|
183
183
|
async getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>> {
|
|
184
184
|
if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
|
|
@@ -201,7 +201,7 @@ export class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungible
|
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* 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).
|
|
204
|
-
* Non fungible tokens metadata for contract
|
|
204
|
+
* Non fungible tokens metadata for contract ID
|
|
205
205
|
*/
|
|
206
206
|
async getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata> {
|
|
207
207
|
const response = await this.getContractNftMetadataRaw(requestParameters, initOverrides);
|
|
@@ -229,7 +229,7 @@ export interface RosettaApiInterface {
|
|
|
229
229
|
rosettaBlockTransaction(requestParameters: RosettaBlockTransactionOperationRequest, initOverrides?: RequestInit): Promise<RosettaBlockTransactionResponse>;
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
232
|
+
* Take unsigned transaction and signature, combine both and return signed transaction. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
233
233
|
* @summary Create Network Transaction from Signatures
|
|
234
234
|
* @param {RosettaConstructionCombineRequest} rosettaConstructionCombineRequest
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
@@ -239,7 +239,7 @@ export interface RosettaApiInterface {
|
|
|
239
239
|
rosettaConstructionCombineRaw(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionCombineResponse>>;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
242
|
+
* Take unsigned transaction and signature, combine both and return signed transaction. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
243
243
|
* Create Network Transaction from Signatures
|
|
244
244
|
*/
|
|
245
245
|
rosettaConstructionCombine(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionCombineResponse>;
|
|
@@ -309,7 +309,7 @@ export interface RosettaApiInterface {
|
|
|
309
309
|
rosettaConstructionParse(requestParameters: RosettaConstructionParseOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionParseResponse>;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Generate
|
|
312
|
+
* Generate an unsigned transaction from operations and metadata. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
313
313
|
* @summary Generate an Unsigned Transaction and Signing Payloads
|
|
314
314
|
* @param {RosettaConstructionPayloadsRequest} rosettaConstructionPayloadsRequest
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
@@ -319,7 +319,7 @@ export interface RosettaApiInterface {
|
|
|
319
319
|
rosettaConstructionPayloadsRaw(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionPayloadResponse>>;
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
|
-
* Generate
|
|
322
|
+
* Generate an unsigned transaction from operations and metadata. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
323
323
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
324
324
|
*/
|
|
325
325
|
rosettaConstructionPayloads(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPayloadResponse>;
|
|
@@ -341,7 +341,7 @@ export interface RosettaApiInterface {
|
|
|
341
341
|
rosettaConstructionPreprocess(requestParameters: RosettaConstructionPreprocessOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPreprocessResponse>;
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
* Submit a pre-signed transaction to the node.
|
|
344
|
+
* Submit a pre-signed transaction to the node. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
345
345
|
* @summary Submit a Signed Transaction
|
|
346
346
|
* @param {RosettaConstructionSubmitRequest} rosettaConstructionSubmitRequest
|
|
347
347
|
* @param {*} [options] Override http request option.
|
|
@@ -351,7 +351,7 @@ export interface RosettaApiInterface {
|
|
|
351
351
|
rosettaConstructionSubmitRaw(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionSubmitResponse>>;
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* Submit a pre-signed transaction to the node.
|
|
354
|
+
* Submit a pre-signed transaction to the node. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
355
355
|
* Submit a Signed Transaction
|
|
356
356
|
*/
|
|
357
357
|
rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse>;
|
|
@@ -548,7 +548,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
551
|
+
* Take unsigned transaction and signature, combine both and return signed transaction. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
552
552
|
* Create Network Transaction from Signatures
|
|
553
553
|
*/
|
|
554
554
|
async rosettaConstructionCombineRaw(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionCombineResponse>> {
|
|
@@ -574,7 +574,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
/**
|
|
577
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
577
|
+
* Take unsigned transaction and signature, combine both and return signed transaction. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
578
578
|
* Create Network Transaction from Signatures
|
|
579
579
|
*/
|
|
580
580
|
async rosettaConstructionCombine(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionCombineResponse> {
|
|
@@ -723,7 +723,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
/**
|
|
726
|
-
* Generate
|
|
726
|
+
* Generate an unsigned transaction from operations and metadata. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
727
727
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
728
728
|
*/
|
|
729
729
|
async rosettaConstructionPayloadsRaw(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionPayloadResponse>> {
|
|
@@ -749,7 +749,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
/**
|
|
752
|
-
* Generate
|
|
752
|
+
* Generate an unsigned transaction from operations and metadata. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
753
753
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
754
754
|
*/
|
|
755
755
|
async rosettaConstructionPayloads(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPayloadResponse> {
|
|
@@ -793,7 +793,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
/**
|
|
796
|
-
* Submit a pre-signed transaction to the node.
|
|
796
|
+
* Submit a pre-signed transaction to the node. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
797
797
|
* Submit a Signed Transaction
|
|
798
798
|
*/
|
|
799
799
|
async rosettaConstructionSubmitRaw(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionSubmitResponse>> {
|
|
@@ -819,7 +819,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
|
|
|
819
819
|
}
|
|
820
820
|
|
|
821
821
|
/**
|
|
822
|
-
* Submit a pre-signed transaction to the node.
|
|
822
|
+
* Submit a pre-signed transaction to the node. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
|
|
823
823
|
* Submit a Signed Transaction
|
|
824
824
|
*/
|
|
825
825
|
async rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse> {
|
|
@@ -37,6 +37,12 @@ export interface Block {
|
|
|
37
37
|
* @memberof Block
|
|
38
38
|
*/
|
|
39
39
|
hash: string;
|
|
40
|
+
/**
|
|
41
|
+
* The only hash that can uniquely identify an anchored block or an unconfirmed state trie
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Block
|
|
44
|
+
*/
|
|
45
|
+
index_block_hash: string;
|
|
40
46
|
/**
|
|
41
47
|
* Hash of the parent block
|
|
42
48
|
* @type {string}
|
|
@@ -148,6 +154,7 @@ export function BlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Blo
|
|
|
148
154
|
'canonical': json['canonical'],
|
|
149
155
|
'height': json['height'],
|
|
150
156
|
'hash': json['hash'],
|
|
157
|
+
'index_block_hash': json['index_block_hash'],
|
|
151
158
|
'parent_block_hash': json['parent_block_hash'],
|
|
152
159
|
'burn_block_time': json['burn_block_time'],
|
|
153
160
|
'burn_block_time_iso': json['burn_block_time_iso'],
|
|
@@ -179,6 +186,7 @@ export function BlockToJSON(value?: Block | null): any {
|
|
|
179
186
|
'canonical': value.canonical,
|
|
180
187
|
'height': value.height,
|
|
181
188
|
'hash': value.hash,
|
|
189
|
+
'index_block_hash': value.index_block_hash,
|
|
182
190
|
'parent_block_hash': value.parent_block_hash,
|
|
183
191
|
'burn_block_time': value.burn_block_time,
|
|
184
192
|
'burn_block_time_iso': value.burn_block_time_iso,
|