@stacks/blockchain-api-client 4.1.1 → 5.0.0-beta.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/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/index.umd.js +8 -8
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/apis/NonFungibleTokensApi.ts +4 -4
- package/src/generated/apis/RosettaApi.ts +12 -12
|
@@ -50,7 +50,7 @@ export interface GetNftMintsRequest {
|
|
|
50
50
|
export interface NonFungibleTokensApiInterface {
|
|
51
51
|
/**
|
|
52
52
|
* 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).
|
|
53
|
-
* @summary Non fungible tokens metadata for contract
|
|
53
|
+
* @summary Non fungible tokens metadata for contract ID
|
|
54
54
|
* @param {string} contractId token\'s contract id
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
@@ -59,7 +59,7 @@ export interface NonFungibleTokensApiInterface {
|
|
|
59
59
|
getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>>;
|
|
60
60
|
/**
|
|
61
61
|
* 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).
|
|
62
|
-
* Non fungible tokens metadata for contract
|
|
62
|
+
* Non fungible tokens metadata for contract ID
|
|
63
63
|
*/
|
|
64
64
|
getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
|
|
65
65
|
/**
|
|
@@ -140,12 +140,12 @@ export interface NonFungibleTokensApiInterface {
|
|
|
140
140
|
export declare class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungibleTokensApiInterface {
|
|
141
141
|
/**
|
|
142
142
|
* 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).
|
|
143
|
-
* Non fungible tokens metadata for contract
|
|
143
|
+
* Non fungible tokens metadata for contract ID
|
|
144
144
|
*/
|
|
145
145
|
getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>>;
|
|
146
146
|
/**
|
|
147
147
|
* 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).
|
|
148
|
-
* Non fungible tokens metadata for contract
|
|
148
|
+
* Non fungible tokens metadata for contract ID
|
|
149
149
|
*/
|
|
150
150
|
getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
|
|
151
151
|
/**
|
|
@@ -22,7 +22,7 @@ const models_1 = require("../models");
|
|
|
22
22
|
class NonFungibleTokensApi extends runtime.BaseAPI {
|
|
23
23
|
/**
|
|
24
24
|
* 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).
|
|
25
|
-
* Non fungible tokens metadata for contract
|
|
25
|
+
* Non fungible tokens metadata for contract ID
|
|
26
26
|
*/
|
|
27
27
|
async getContractNftMetadataRaw(requestParameters, initOverrides) {
|
|
28
28
|
if (requestParameters.contractId === null || requestParameters.contractId === undefined) {
|
|
@@ -40,7 +40,7 @@ class NonFungibleTokensApi extends runtime.BaseAPI {
|
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* 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).
|
|
43
|
-
* Non fungible tokens metadata for contract
|
|
43
|
+
* Non fungible tokens metadata for contract ID
|
|
44
44
|
*/
|
|
45
45
|
async getContractNftMetadata(requestParameters, initOverrides) {
|
|
46
46
|
const response = await this.getContractNftMetadataRaw(requestParameters, initOverrides);
|
|
@@ -106,7 +106,7 @@ export interface RosettaApiInterface {
|
|
|
106
106
|
*/
|
|
107
107
|
rosettaBlockTransaction(requestParameters: RosettaBlockTransactionOperationRequest, initOverrides?: RequestInit): Promise<RosettaBlockTransactionResponse>;
|
|
108
108
|
/**
|
|
109
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
109
|
+
* 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.
|
|
110
110
|
* @summary Create Network Transaction from Signatures
|
|
111
111
|
* @param {RosettaConstructionCombineRequest} rosettaConstructionCombineRequest
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
@@ -115,7 +115,7 @@ export interface RosettaApiInterface {
|
|
|
115
115
|
*/
|
|
116
116
|
rosettaConstructionCombineRaw(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionCombineResponse>>;
|
|
117
117
|
/**
|
|
118
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
118
|
+
* 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.
|
|
119
119
|
* Create Network Transaction from Signatures
|
|
120
120
|
*/
|
|
121
121
|
rosettaConstructionCombine(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionCombineResponse>;
|
|
@@ -176,7 +176,7 @@ export interface RosettaApiInterface {
|
|
|
176
176
|
*/
|
|
177
177
|
rosettaConstructionParse(requestParameters: RosettaConstructionParseOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionParseResponse>;
|
|
178
178
|
/**
|
|
179
|
-
* Generate
|
|
179
|
+
* 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.
|
|
180
180
|
* @summary Generate an Unsigned Transaction and Signing Payloads
|
|
181
181
|
* @param {RosettaConstructionPayloadsRequest} rosettaConstructionPayloadsRequest
|
|
182
182
|
* @param {*} [options] Override http request option.
|
|
@@ -185,7 +185,7 @@ export interface RosettaApiInterface {
|
|
|
185
185
|
*/
|
|
186
186
|
rosettaConstructionPayloadsRaw(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionPayloadResponse>>;
|
|
187
187
|
/**
|
|
188
|
-
* Generate
|
|
188
|
+
* 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.
|
|
189
189
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
190
190
|
*/
|
|
191
191
|
rosettaConstructionPayloads(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPayloadResponse>;
|
|
@@ -204,7 +204,7 @@ export interface RosettaApiInterface {
|
|
|
204
204
|
*/
|
|
205
205
|
rosettaConstructionPreprocess(requestParameters: RosettaConstructionPreprocessOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPreprocessResponse>;
|
|
206
206
|
/**
|
|
207
|
-
* Submit a pre-signed transaction to the node.
|
|
207
|
+
* 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.
|
|
208
208
|
* @summary Submit a Signed Transaction
|
|
209
209
|
* @param {RosettaConstructionSubmitRequest} rosettaConstructionSubmitRequest
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
@@ -213,7 +213,7 @@ export interface RosettaApiInterface {
|
|
|
213
213
|
*/
|
|
214
214
|
rosettaConstructionSubmitRaw(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionSubmitResponse>>;
|
|
215
215
|
/**
|
|
216
|
-
* Submit a pre-signed transaction to the node.
|
|
216
|
+
* 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.
|
|
217
217
|
* Submit a Signed Transaction
|
|
218
218
|
*/
|
|
219
219
|
rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse>;
|
|
@@ -322,12 +322,12 @@ export declare class RosettaApi extends runtime.BaseAPI implements RosettaApiInt
|
|
|
322
322
|
*/
|
|
323
323
|
rosettaBlockTransaction(requestParameters: RosettaBlockTransactionOperationRequest, initOverrides?: RequestInit): Promise<RosettaBlockTransactionResponse>;
|
|
324
324
|
/**
|
|
325
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
325
|
+
* 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.
|
|
326
326
|
* Create Network Transaction from Signatures
|
|
327
327
|
*/
|
|
328
328
|
rosettaConstructionCombineRaw(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionCombineResponse>>;
|
|
329
329
|
/**
|
|
330
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
330
|
+
* 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.
|
|
331
331
|
* Create Network Transaction from Signatures
|
|
332
332
|
*/
|
|
333
333
|
rosettaConstructionCombine(requestParameters: RosettaConstructionCombineOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionCombineResponse>;
|
|
@@ -372,12 +372,12 @@ export declare class RosettaApi extends runtime.BaseAPI implements RosettaApiInt
|
|
|
372
372
|
*/
|
|
373
373
|
rosettaConstructionParse(requestParameters: RosettaConstructionParseOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionParseResponse>;
|
|
374
374
|
/**
|
|
375
|
-
* Generate
|
|
375
|
+
* 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.
|
|
376
376
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
377
377
|
*/
|
|
378
378
|
rosettaConstructionPayloadsRaw(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionPayloadResponse>>;
|
|
379
379
|
/**
|
|
380
|
-
* Generate
|
|
380
|
+
* 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.
|
|
381
381
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
382
382
|
*/
|
|
383
383
|
rosettaConstructionPayloads(requestParameters: RosettaConstructionPayloadsOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPayloadResponse>;
|
|
@@ -392,12 +392,12 @@ export declare class RosettaApi extends runtime.BaseAPI implements RosettaApiInt
|
|
|
392
392
|
*/
|
|
393
393
|
rosettaConstructionPreprocess(requestParameters: RosettaConstructionPreprocessOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionPreprocessResponse>;
|
|
394
394
|
/**
|
|
395
|
-
* Submit a pre-signed transaction to the node.
|
|
395
|
+
* 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.
|
|
396
396
|
* Submit a Signed Transaction
|
|
397
397
|
*/
|
|
398
398
|
rosettaConstructionSubmitRaw(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaConstructionSubmitResponse>>;
|
|
399
399
|
/**
|
|
400
|
-
* Submit a pre-signed transaction to the node.
|
|
400
|
+
* 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.
|
|
401
401
|
* Submit a Signed Transaction
|
|
402
402
|
*/
|
|
403
403
|
rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse>;
|
|
@@ -105,7 +105,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
105
105
|
return await response.value();
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
108
|
+
* 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.
|
|
109
109
|
* Create Network Transaction from Signatures
|
|
110
110
|
*/
|
|
111
111
|
async rosettaConstructionCombineRaw(requestParameters, initOverrides) {
|
|
@@ -125,7 +125,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
125
125
|
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.RosettaConstructionCombineResponseFromJSON(jsonValue));
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
128
|
+
* 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.
|
|
129
129
|
* Create Network Transaction from Signatures
|
|
130
130
|
*/
|
|
131
131
|
async rosettaConstructionCombine(requestParameters, initOverrides) {
|
|
@@ -245,7 +245,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
245
245
|
return await response.value();
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
|
-
* Generate
|
|
248
|
+
* 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.
|
|
249
249
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
250
250
|
*/
|
|
251
251
|
async rosettaConstructionPayloadsRaw(requestParameters, initOverrides) {
|
|
@@ -265,7 +265,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
265
265
|
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.RosettaConstructionPayloadResponseFromJSON(jsonValue));
|
|
266
266
|
}
|
|
267
267
|
/**
|
|
268
|
-
* Generate
|
|
268
|
+
* 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.
|
|
269
269
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
270
270
|
*/
|
|
271
271
|
async rosettaConstructionPayloads(requestParameters, initOverrides) {
|
|
@@ -301,7 +301,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
301
301
|
return await response.value();
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* Submit a pre-signed transaction to the node.
|
|
304
|
+
* 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.
|
|
305
305
|
* Submit a Signed Transaction
|
|
306
306
|
*/
|
|
307
307
|
async rosettaConstructionSubmitRaw(requestParameters, initOverrides) {
|
|
@@ -321,7 +321,7 @@ class RosettaApi extends runtime.BaseAPI {
|
|
|
321
321
|
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.RosettaConstructionSubmitResponseFromJSON(jsonValue));
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
* Submit a pre-signed transaction to the node.
|
|
324
|
+
* 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.
|
|
325
325
|
* Submit a Signed Transaction
|
|
326
326
|
*/
|
|
327
327
|
async rosettaConstructionSubmit(requestParameters, initOverrides) {
|
package/lib/index.umd.js
CHANGED
|
@@ -8481,7 +8481,7 @@
|
|
|
8481
8481
|
|
|
8482
8482
|
/**
|
|
8483
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).
|
|
8484
|
-
* Non fungible tokens metadata for contract
|
|
8484
|
+
* Non fungible tokens metadata for contract ID
|
|
8485
8485
|
*/
|
|
8486
8486
|
_proto.getContractNftMetadataRaw = function getContractNftMetadataRaw(requestParameters, initOverrides) {
|
|
8487
8487
|
try {
|
|
@@ -8509,7 +8509,7 @@
|
|
|
8509
8509
|
}
|
|
8510
8510
|
/**
|
|
8511
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).
|
|
8512
|
-
* Non fungible tokens metadata for contract
|
|
8512
|
+
* Non fungible tokens metadata for contract ID
|
|
8513
8513
|
*/
|
|
8514
8514
|
;
|
|
8515
8515
|
|
|
@@ -8955,7 +8955,7 @@
|
|
|
8955
8955
|
}
|
|
8956
8956
|
}
|
|
8957
8957
|
/**
|
|
8958
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
8958
|
+
* 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.
|
|
8959
8959
|
* Create Network Transaction from Signatures
|
|
8960
8960
|
*/
|
|
8961
8961
|
;
|
|
@@ -8987,7 +8987,7 @@
|
|
|
8987
8987
|
}
|
|
8988
8988
|
}
|
|
8989
8989
|
/**
|
|
8990
|
-
* Take unsigned transaction and signature, combine both and return signed transaction
|
|
8990
|
+
* 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.
|
|
8991
8991
|
* Create Network Transaction from Signatures
|
|
8992
8992
|
*/
|
|
8993
8993
|
;
|
|
@@ -9200,7 +9200,7 @@
|
|
|
9200
9200
|
}
|
|
9201
9201
|
}
|
|
9202
9202
|
/**
|
|
9203
|
-
* Generate
|
|
9203
|
+
* 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.
|
|
9204
9204
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
9205
9205
|
*/
|
|
9206
9206
|
;
|
|
@@ -9232,7 +9232,7 @@
|
|
|
9232
9232
|
}
|
|
9233
9233
|
}
|
|
9234
9234
|
/**
|
|
9235
|
-
* Generate
|
|
9235
|
+
* 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.
|
|
9236
9236
|
* Generate an Unsigned Transaction and Signing Payloads
|
|
9237
9237
|
*/
|
|
9238
9238
|
;
|
|
@@ -9298,7 +9298,7 @@
|
|
|
9298
9298
|
}
|
|
9299
9299
|
}
|
|
9300
9300
|
/**
|
|
9301
|
-
* Submit a pre-signed transaction to the node.
|
|
9301
|
+
* 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.
|
|
9302
9302
|
* Submit a Signed Transaction
|
|
9303
9303
|
*/
|
|
9304
9304
|
;
|
|
@@ -9330,7 +9330,7 @@
|
|
|
9330
9330
|
}
|
|
9331
9331
|
}
|
|
9332
9332
|
/**
|
|
9333
|
-
* Submit a pre-signed transaction to the node.
|
|
9333
|
+
* 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.
|
|
9334
9334
|
* Submit a Signed Transaction
|
|
9335
9335
|
*/
|
|
9336
9336
|
;
|