@stacks/blockchain-api-client 6.2.1 → 7.0.0-stacks-2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "6.2.1",
3
+ "version": "7.0.0-stacks-2.1.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",
@@ -299,7 +299,7 @@ export interface AccountsApiInterface {
299
299
  getAccountTransactionsWithTransfers(requestParameters: GetAccountTransactionsWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionsWithTransfersListResponse>;
300
300
 
301
301
  /**
302
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
302
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
303
303
  * @summary Get account transaction information for specific transaction
304
304
  * @param {string} principal Stacks address or a contract identifier
305
305
  * @param {string} txId Transaction id
@@ -310,7 +310,7 @@ export interface AccountsApiInterface {
310
310
  getSingleTransactionWithTransfersRaw(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionWithTransfers>>;
311
311
 
312
312
  /**
313
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
313
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
314
314
  * Get account transaction information for specific transaction
315
315
  */
316
316
  getSingleTransactionWithTransfers(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionWithTransfers>;
@@ -735,7 +735,7 @@ export class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface
735
735
  }
736
736
 
737
737
  /**
738
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
738
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
739
739
  * Get account transaction information for specific transaction
740
740
  */
741
741
  async getSingleTransactionWithTransfersRaw(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AddressTransactionWithTransfers>> {
@@ -762,7 +762,7 @@ export class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface
762
762
  }
763
763
 
764
764
  /**
765
- * Retrieves transaction details for a given Transaction Id `tx_id`, for a given account or contract Identifier.
765
+ * Retrieves transaction details for a given Transcation Id `tx_id`, for a given account or contract Identifier.
766
766
  * Get account transaction information for specific transaction
767
767
  */
768
768
  async getSingleTransactionWithTransfers(requestParameters: GetSingleTransactionWithTransfersRequest, initOverrides?: RequestInit): Promise<AddressTransactionWithTransfers> {
@@ -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 ID
79
+ * @summary Non fungible tokens metadata for contract id
80
80
  * @param {string} contractId token\&#39;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 ID
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 ID
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 ID
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
232
+ * Take unsigned transaction and signature, combine both and return signed transaction
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
242
+ * Take unsigned transaction and signature, combine both and return signed transaction
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 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.
312
+ * Generate and unsigned transaction from operations and metadata
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 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.
322
+ * Generate and unsigned transaction from operations and metadata
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
344
+ * Submit a pre-signed transaction to the node.
345
345
  * @summary Submit a Signed Transaction
346
346
  * @param {RosettaConstructionSubmitRequest} rosettaConstructionSubmitRequest
347
347
  * @param {*} [options] Override http request option.
@@ -351,13 +351,13 @@ 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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
354
+ * Submit a pre-signed transaction to the node.
355
355
  * Submit a Signed Transaction
356
356
  */
357
357
  rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse>;
358
358
 
359
359
  /**
360
- * Retrieves a list of transactions currently in the mempool for a given network.
360
+ * Retrieves a list of transcations currently in the mempool for a given network.
361
361
  * @summary Get All Mempool Transactions
362
362
  * @param {RosettaMempoolRequest} rosettaMempoolRequest
363
363
  * @param {*} [options] Override http request option.
@@ -367,7 +367,7 @@ export interface RosettaApiInterface {
367
367
  rosettaMempoolRaw(requestParameters: RosettaMempoolOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaMempoolResponse>>;
368
368
 
369
369
  /**
370
- * Retrieves a list of transactions currently in the mempool for a given network.
370
+ * Retrieves a list of transcations currently in the mempool for a given network.
371
371
  * Get All Mempool Transactions
372
372
  */
373
373
  rosettaMempool(requestParameters: RosettaMempoolOperationRequest, initOverrides?: RequestInit): Promise<RosettaMempoolResponse>;
@@ -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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
551
+ * Take unsigned transaction and signature, combine both and return signed transaction
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
577
+ * Take unsigned transaction and signature, combine both and return signed transaction
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 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.
726
+ * Generate and unsigned transaction from operations and metadata
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 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.
752
+ * Generate and unsigned transaction from operations and metadata
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
796
+ * Submit a pre-signed transaction to the node.
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. The examples below are illustrative only. You\'ll need to use your wallet to generate actual values to use them in the request payload.
822
+ * Submit a pre-signed transaction to the node.
823
823
  * Submit a Signed Transaction
824
824
  */
825
825
  async rosettaConstructionSubmit(requestParameters: RosettaConstructionSubmitOperationRequest, initOverrides?: RequestInit): Promise<RosettaConstructionSubmitResponse> {
@@ -828,7 +828,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
828
828
  }
829
829
 
830
830
  /**
831
- * Retrieves a list of transactions currently in the mempool for a given network.
831
+ * Retrieves a list of transcations currently in the mempool for a given network.
832
832
  * Get All Mempool Transactions
833
833
  */
834
834
  async rosettaMempoolRaw(requestParameters: RosettaMempoolOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RosettaMempoolResponse>> {
@@ -854,7 +854,7 @@ export class RosettaApi extends runtime.BaseAPI implements RosettaApiInterface {
854
854
  }
855
855
 
856
856
  /**
857
- * Retrieves a list of transactions currently in the mempool for a given network.
857
+ * Retrieves a list of transcations currently in the mempool for a given network.
858
858
  * Get All Mempool Transactions
859
859
  */
860
860
  async rosettaMempool(requestParameters: RosettaMempoolOperationRequest, initOverrides?: RequestInit): Promise<RosettaMempoolResponse> {
@@ -49,6 +49,12 @@ export interface ChainTip {
49
49
  * @memberof ChainTip
50
50
  */
51
51
  microblock_sequence?: number;
52
+ /**
53
+ * the current burn chain block height
54
+ * @type {number}
55
+ * @memberof ChainTip
56
+ */
57
+ burn_block_height: number;
52
58
  }
53
59
 
54
60
  export function ChainTipFromJSON(json: any): ChainTip {
@@ -66,6 +72,7 @@ export function ChainTipFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
72
  'index_block_hash': json['index_block_hash'],
67
73
  'microblock_hash': !exists(json, 'microblock_hash') ? undefined : json['microblock_hash'],
68
74
  'microblock_sequence': !exists(json, 'microblock_sequence') ? undefined : json['microblock_sequence'],
75
+ 'burn_block_height': json['burn_block_height'],
69
76
  };
70
77
  }
71
78
 
@@ -83,6 +90,7 @@ export function ChainTipToJSON(value?: ChainTip | null): any {
83
90
  'index_block_hash': value.index_block_hash,
84
91
  'microblock_hash': value.microblock_hash,
85
92
  'microblock_sequence': value.microblock_sequence,
93
+ 'burn_block_height': value.burn_block_height,
86
94
  };
87
95
  }
88
96
 
@@ -69,7 +69,8 @@ export interface InboundStxTransfer {
69
69
  */
70
70
  export enum InboundStxTransferTransferTypeEnum {
71
71
  bulk_send = 'bulk-send',
72
- stx_transfer = 'stx-transfer'
72
+ stx_transfer = 'stx-transfer',
73
+ stx_transfer_memo = 'stx-transfer-memo'
73
74
  }
74
75
 
75
76
  export function InboundStxTransferFromJSON(json: any): InboundStxTransfer {
@@ -38,6 +38,12 @@ export interface ServerStatusResponse {
38
38
  * @memberof ServerStatusResponse
39
39
  */
40
40
  status: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof ServerStatusResponse
45
+ */
46
+ pox_v1_unlock_height?: number | null;
41
47
  /**
42
48
  *
43
49
  * @type {ChainTip}
@@ -58,6 +64,7 @@ export function ServerStatusResponseFromJSONTyped(json: any, ignoreDiscriminator
58
64
 
59
65
  'server_version': !exists(json, 'server_version') ? undefined : json['server_version'],
60
66
  'status': json['status'],
67
+ 'pox_v1_unlock_height': !exists(json, 'pox_v1_unlock_height') ? undefined : json['pox_v1_unlock_height'],
61
68
  'chain_tip': !exists(json, 'chain_tip') ? undefined : ChainTipFromJSON(json['chain_tip']),
62
69
  };
63
70
  }
@@ -73,6 +80,7 @@ export function ServerStatusResponseToJSON(value?: ServerStatusResponse | null):
73
80
 
74
81
  'server_version': value.server_version,
75
82
  'status': value.status,
83
+ 'pox_v1_unlock_height': value.pox_v1_unlock_height,
76
84
  'chain_tip': ChainTipToJSON(value.chain_tip),
77
85
  };
78
86
  }