@stacks/blockchain-api-client 7.1.1 → 7.2.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.
Files changed (42) hide show
  1. package/README.md +4 -4
  2. package/lib/generated/apis/FaucetsApi.d.ts +4 -4
  3. package/lib/generated/apis/FaucetsApi.js +2 -2
  4. package/lib/generated/apis/FaucetsApi.js.map +1 -1
  5. package/lib/generated/apis/FungibleTokensApi.d.ts +8 -8
  6. package/lib/generated/apis/FungibleTokensApi.js +4 -4
  7. package/lib/generated/apis/NonFungibleTokensApi.d.ts +8 -8
  8. package/lib/generated/apis/NonFungibleTokensApi.js +4 -4
  9. package/lib/generated/apis/StackingApi.d.ts +61 -0
  10. package/lib/generated/apis/StackingApi.js +63 -0
  11. package/lib/generated/apis/StackingApi.js.map +1 -0
  12. package/lib/generated/apis/index.d.ts +1 -0
  13. package/lib/generated/apis/index.js +1 -0
  14. package/lib/generated/apis/index.js.map +1 -1
  15. package/lib/generated/models/InlineResponse403.d.ts +33 -0
  16. package/lib/generated/models/InlineResponse403.js +45 -0
  17. package/lib/generated/models/InlineResponse403.js.map +1 -0
  18. package/lib/generated/models/PoolDelegation.d.ts +57 -0
  19. package/lib/generated/models/PoolDelegation.js +53 -0
  20. package/lib/generated/models/PoolDelegation.js.map +1 -0
  21. package/lib/generated/models/PoolDelegationsResponse.d.ts +46 -0
  22. package/lib/generated/models/PoolDelegationsResponse.js +49 -0
  23. package/lib/generated/models/PoolDelegationsResponse.js.map +1 -0
  24. package/lib/generated/models/index.d.ts +3 -0
  25. package/lib/generated/models/index.js +3 -0
  26. package/lib/generated/models/index.js.map +1 -1
  27. package/lib/generated/runtime.js +1 -1
  28. package/lib/generated/runtime.js.map +1 -1
  29. package/lib/index.umd.js +1271 -766
  30. package/lib/index.umd.js.map +1 -1
  31. package/package.json +6 -6
  32. package/src/generated/.openapi-generator/FILES +4 -0
  33. package/src/generated/apis/FaucetsApi.ts +7 -4
  34. package/src/generated/apis/FungibleTokensApi.ts +8 -8
  35. package/src/generated/apis/NonFungibleTokensApi.ts +8 -8
  36. package/src/generated/apis/StackingApi.ts +113 -0
  37. package/src/generated/apis/index.ts +1 -0
  38. package/src/generated/models/InlineResponse403.ts +64 -0
  39. package/src/generated/models/PoolDelegation.ts +96 -0
  40. package/src/generated/models/PoolDelegationsResponse.ts +87 -0
  41. package/src/generated/models/index.ts +3 -0
  42. package/src/generated/runtime.ts +1 -1
package/README.md CHANGED
@@ -32,8 +32,8 @@ Here is example code that subscribes to updates for a specific Stacks address:
32
32
  ```js
33
33
  import { connectWebSocketClient } from '@stacks/blockchain-api-client';
34
34
 
35
- // for testnet, replace with wss://stacks-node-api.testnet.stacks.co/
36
- const client = await connectWebSocketClient('wss://stacks-node-api.mainnet.stacks.co/');
35
+ // for testnet, replace with wss://api.testnet.hiro.so/
36
+ const client = await connectWebSocketClient('wss://api.mainnet.hiro.so/');
37
37
 
38
38
  const sub = await client.subscribeAddressTransactions('ST3GQB6WGCWKDNFNPSQRV8DY93JN06XPZ2ZE9EVMA', event =>
39
39
  console.log(event);
@@ -48,8 +48,8 @@ await sub.unsubscribe();
48
48
  import { io } from "socket.io-client";
49
49
  import * as stacks from '@stacks/blockchain-api-client';
50
50
 
51
- // for testnet, replace with https://stacks-node-api.testnet.stacks.co/
52
- const socketUrl = "https://stacks-node-api.mainnet.stacks.co/";
51
+ // for testnet, replace with https://api.testnet.hiro.so/
52
+ const socketUrl = "https://api.mainnet.hiro.so/";
53
53
 
54
54
  const socket = io(socketUrl, {
55
55
  transports: [ "websocket" ]
@@ -43,7 +43,7 @@ export interface FaucetsApiInterface {
43
43
  */
44
44
  runFaucetBtc(requestParameters: RunFaucetBtcRequest, initOverrides?: RequestInit): Promise<RunFaucetResponse>;
45
45
  /**
46
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
46
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
47
47
  * @summary Get STX testnet tokens
48
48
  * @param {string} address A valid testnet STX address
49
49
  * @param {boolean} [stacking] Request the amount of STX tokens needed for individual address stacking
@@ -54,7 +54,7 @@ export interface FaucetsApiInterface {
54
54
  */
55
55
  runFaucetStxRaw(requestParameters: RunFaucetStxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RunFaucetResponse>>;
56
56
  /**
57
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
57
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
58
58
  * Get STX testnet tokens
59
59
  */
60
60
  runFaucetStx(requestParameters: RunFaucetStxRequest, initOverrides?: RequestInit): Promise<RunFaucetResponse>;
@@ -74,12 +74,12 @@ export declare class FaucetsApi extends runtime.BaseAPI implements FaucetsApiInt
74
74
  */
75
75
  runFaucetBtc(requestParameters: RunFaucetBtcRequest, initOverrides?: RequestInit): Promise<RunFaucetResponse>;
76
76
  /**
77
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
77
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
78
78
  * Get STX testnet tokens
79
79
  */
80
80
  runFaucetStxRaw(requestParameters: RunFaucetStxRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RunFaucetResponse>>;
81
81
  /**
82
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
82
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
83
83
  * Get STX testnet tokens
84
84
  */
85
85
  runFaucetStx(requestParameters: RunFaucetStxRequest, initOverrides?: RequestInit): Promise<RunFaucetResponse>;
@@ -52,7 +52,7 @@ class FaucetsApi extends runtime.BaseAPI {
52
52
  return await response.value();
53
53
  }
54
54
  /**
55
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
55
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
56
56
  * Get STX testnet tokens
57
57
  */
58
58
  async runFaucetStxRaw(requestParameters, initOverrides) {
@@ -78,7 +78,7 @@ class FaucetsApi extends runtime.BaseAPI {
78
78
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.RunFaucetResponseFromJSON)(jsonValue));
79
79
  }
80
80
  /**
81
- * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.stacks.co/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
81
+ * Add 500 STX tokens to the specified testnet address. Testnet STX addresses begin with `ST`. If the `stacking` parameter is set to `true`, the faucet will add the required number of tokens for individual stacking to the specified testnet address. The endpoint returns the transaction ID, which you can use to view the transaction in the [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has been included in an anchor block. A common reason for failed faucet transactions is that the faucet has run out of tokens. If you are experiencing failed faucet transactions to a testnet address, you can get help in [Discord](https://stacks.chat). **Note:** This is a testnet only endpoint. This endpoint will not work on the mainnet.
82
82
  * Get STX testnet tokens
83
83
  */
84
84
  async runFaucetStx(requestParameters, initOverrides) {
@@ -1 +1 @@
1
- {"version":3,"file":"FaucetsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/FaucetsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;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,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AApFD,gCAoFC"}
@@ -26,7 +26,7 @@ export interface GetFtMetadataListRequest {
26
26
  */
27
27
  export interface FungibleTokensApiInterface {
28
28
  /**
29
- * Retrieves the metadata for fungible tokens for a given contract id
29
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
30
30
  * @summary Fungible tokens metadata for contract id
31
31
  * @param {string} contractId token\&#39;s contract id
32
32
  * @param {*} [options] Override http request option.
@@ -35,12 +35,12 @@ export interface FungibleTokensApiInterface {
35
35
  */
36
36
  getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>>;
37
37
  /**
38
- * Retrieves the metadata for fungible tokens for a given contract id
38
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
39
39
  * Fungible tokens metadata for contract id
40
40
  */
41
41
  getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata>;
42
42
  /**
43
- * 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).
43
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
44
44
  * @summary Fungible tokens metadata list
45
45
  * @param {number} [limit] max number of tokens to fetch.
46
46
  * @param {number} [offset] index of first tokens to fetch
@@ -50,7 +50,7 @@ export interface FungibleTokensApiInterface {
50
50
  */
51
51
  getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>>;
52
52
  /**
53
- * 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).
53
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
54
54
  * Fungible tokens metadata list
55
55
  */
56
56
  getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList>;
@@ -60,22 +60,22 @@ export interface FungibleTokensApiInterface {
60
60
  */
61
61
  export declare class FungibleTokensApi extends runtime.BaseAPI implements FungibleTokensApiInterface {
62
62
  /**
63
- * Retrieves the metadata for fungible tokens for a given contract id
63
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
64
64
  * Fungible tokens metadata for contract id
65
65
  */
66
66
  getContractFtMetadataRaw(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokenMetadata>>;
67
67
  /**
68
- * Retrieves the metadata for fungible tokens for a given contract id
68
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
69
69
  * Fungible tokens metadata for contract id
70
70
  */
71
71
  getContractFtMetadata(requestParameters: GetContractFtMetadataRequest, initOverrides?: RequestInit): Promise<FungibleTokenMetadata>;
72
72
  /**
73
- * 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).
73
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
74
74
  * Fungible tokens metadata list
75
75
  */
76
76
  getFtMetadataListRaw(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FungibleTokensMetadataList>>;
77
77
  /**
78
- * 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).
78
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
79
79
  * Fungible tokens metadata list
80
80
  */
81
81
  getFtMetadataList(requestParameters: GetFtMetadataListRequest, initOverrides?: RequestInit): Promise<FungibleTokensMetadataList>;
@@ -21,7 +21,7 @@ const models_1 = require("../models");
21
21
  */
22
22
  class FungibleTokensApi extends runtime.BaseAPI {
23
23
  /**
24
- * Retrieves the metadata for fungible tokens for a given contract id
24
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
25
25
  * Fungible tokens metadata for contract id
26
26
  */
27
27
  async getContractFtMetadataRaw(requestParameters, initOverrides) {
@@ -39,7 +39,7 @@ class FungibleTokensApi extends runtime.BaseAPI {
39
39
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FungibleTokenMetadataFromJSON)(jsonValue));
40
40
  }
41
41
  /**
42
- * Retrieves the metadata for fungible tokens for a given contract id
42
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves the metadata for fungible tokens for a given contract id
43
43
  * Fungible tokens metadata for contract id
44
44
  */
45
45
  async getContractFtMetadata(requestParameters, initOverrides) {
@@ -47,7 +47,7 @@ class FungibleTokensApi extends runtime.BaseAPI {
47
47
  return await response.value();
48
48
  }
49
49
  /**
50
- * 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).
50
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
51
51
  * Fungible tokens metadata list
52
52
  */
53
53
  async getFtMetadataListRaw(requestParameters, initOverrides) {
@@ -68,7 +68,7 @@ class FungibleTokensApi extends runtime.BaseAPI {
68
68
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FungibleTokensMetadataListFromJSON)(jsonValue));
69
69
  }
70
70
  /**
71
- * 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).
71
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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).
72
72
  * Fungible tokens metadata list
73
73
  */
74
74
  async getFtMetadataList(requestParameters, initOverrides) {
@@ -49,7 +49,7 @@ export interface GetNftMintsRequest {
49
49
  */
50
50
  export interface NonFungibleTokensApiInterface {
51
51
  /**
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).
52
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
53
  * @summary Non fungible tokens metadata for contract ID
54
54
  * @param {string} contractId token\&#39;s contract id
55
55
  * @param {*} [options] Override http request option.
@@ -58,7 +58,7 @@ export interface NonFungibleTokensApiInterface {
58
58
  */
59
59
  getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>>;
60
60
  /**
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).
61
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
62
  * Non fungible tokens metadata for contract ID
63
63
  */
64
64
  getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
@@ -101,7 +101,7 @@ export interface NonFungibleTokensApiInterface {
101
101
  */
102
102
  getNftHoldings(requestParameters: GetNftHoldingsRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenHoldingsList>;
103
103
  /**
104
- * Retrieves a list of non fungible tokens with their metadata. 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).
104
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
105
105
  * @summary Non fungible tokens metadata list
106
106
  * @param {number} [limit] max number of tokens to fetch
107
107
  * @param {number} [offset] index of first tokens to fetch
@@ -111,7 +111,7 @@ export interface NonFungibleTokensApiInterface {
111
111
  */
112
112
  getNftMetadataListRaw(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokensMetadataList>>;
113
113
  /**
114
- * Retrieves a list of non fungible tokens with their metadata. 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).
114
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
115
115
  * Non fungible tokens metadata list
116
116
  */
117
117
  getNftMetadataList(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<NonFungibleTokensMetadataList>;
@@ -139,12 +139,12 @@ export interface NonFungibleTokensApiInterface {
139
139
  */
140
140
  export declare class NonFungibleTokensApi extends runtime.BaseAPI implements NonFungibleTokensApiInterface {
141
141
  /**
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).
142
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
143
  * Non fungible tokens metadata for contract ID
144
144
  */
145
145
  getContractNftMetadataRaw(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokenMetadata>>;
146
146
  /**
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).
147
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
148
  * Non fungible tokens metadata for contract ID
149
149
  */
150
150
  getContractNftMetadata(requestParameters: GetContractNftMetadataRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenMetadata>;
@@ -169,12 +169,12 @@ export declare class NonFungibleTokensApi extends runtime.BaseAPI implements Non
169
169
  */
170
170
  getNftHoldings(requestParameters: GetNftHoldingsRequest, initOverrides?: RequestInit): Promise<NonFungibleTokenHoldingsList>;
171
171
  /**
172
- * Retrieves a list of non fungible tokens with their metadata. 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).
172
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
173
173
  * Non fungible tokens metadata list
174
174
  */
175
175
  getNftMetadataListRaw(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NonFungibleTokensMetadataList>>;
176
176
  /**
177
- * Retrieves a list of non fungible tokens with their metadata. 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).
177
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
178
178
  * Non fungible tokens metadata list
179
179
  */
180
180
  getNftMetadataList(requestParameters: GetNftMetadataListRequest, initOverrides?: RequestInit): Promise<NonFungibleTokensMetadataList>;
@@ -21,7 +21,7 @@ const models_1 = require("../models");
21
21
  */
22
22
  class NonFungibleTokensApi extends runtime.BaseAPI {
23
23
  /**
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).
24
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
25
  * Non fungible tokens metadata for contract ID
26
26
  */
27
27
  async getContractNftMetadataRaw(requestParameters, initOverrides) {
@@ -39,7 +39,7 @@ class NonFungibleTokensApi extends runtime.BaseAPI {
39
39
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.NonFungibleTokenMetadataFromJSON)(jsonValue));
40
40
  }
41
41
  /**
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).
42
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). 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
43
  * Non fungible tokens metadata for contract ID
44
44
  */
45
45
  async getContractNftMetadata(requestParameters, initOverrides) {
@@ -138,7 +138,7 @@ class NonFungibleTokensApi extends runtime.BaseAPI {
138
138
  return await response.value();
139
139
  }
140
140
  /**
141
- * Retrieves a list of non fungible tokens with their metadata. 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).
141
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
142
142
  * Non fungible tokens metadata list
143
143
  */
144
144
  async getNftMetadataListRaw(requestParameters, initOverrides) {
@@ -159,7 +159,7 @@ class NonFungibleTokensApi extends runtime.BaseAPI {
159
159
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.NonFungibleTokensMetadataListFromJSON)(jsonValue));
160
160
  }
161
161
  /**
162
- * Retrieves a list of non fungible tokens with their metadata. 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).
162
+ * **NOTE:** This endpoint is deprecated in favor of the [Token Metadata Service](https://github.com/hirosystems/token-metadata-service). Retrieves a list of non fungible tokens with their metadata. 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).
163
163
  * Non fungible tokens metadata list
164
164
  */
165
165
  async getNftMetadataList(requestParameters, initOverrides) {
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { PoolDelegationsResponse } from '../models';
14
+ export interface GetPoolDelegationsRequest {
15
+ poolPrincipal: string;
16
+ afterBlock?: number;
17
+ unanchored?: boolean;
18
+ limit?: number;
19
+ offset?: number;
20
+ }
21
+ /**
22
+ * StackingApi - interface
23
+ *
24
+ * @export
25
+ * @interface StackingApiInterface
26
+ */
27
+ export interface StackingApiInterface {
28
+ /**
29
+ * Retrieves the list of stacking pool members for a given delegator principal.
30
+ * @summary Stacking pool members
31
+ * @param {string} poolPrincipal Address principal of the stacking pool delegator
32
+ * @param {number} [afterBlock] If specified, only delegation events after the given block will be included
33
+ * @param {boolean} [unanchored] whether or not to include Stackers from unconfirmed transactions
34
+ * @param {number} [limit] number of items to return
35
+ * @param {number} [offset] number of items to skip
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ * @memberof StackingApiInterface
39
+ */
40
+ getPoolDelegationsRaw(requestParameters: GetPoolDelegationsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PoolDelegationsResponse>>;
41
+ /**
42
+ * Retrieves the list of stacking pool members for a given delegator principal.
43
+ * Stacking pool members
44
+ */
45
+ getPoolDelegations(requestParameters: GetPoolDelegationsRequest, initOverrides?: RequestInit): Promise<PoolDelegationsResponse>;
46
+ }
47
+ /**
48
+ *
49
+ */
50
+ export declare class StackingApi extends runtime.BaseAPI implements StackingApiInterface {
51
+ /**
52
+ * Retrieves the list of stacking pool members for a given delegator principal.
53
+ * Stacking pool members
54
+ */
55
+ getPoolDelegationsRaw(requestParameters: GetPoolDelegationsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<PoolDelegationsResponse>>;
56
+ /**
57
+ * Retrieves the list of stacking pool members for a given delegator principal.
58
+ * Stacking pool members
59
+ */
60
+ getPoolDelegations(requestParameters: GetPoolDelegationsRequest, initOverrides?: RequestInit): Promise<PoolDelegationsResponse>;
61
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
7
+ *
8
+ * The version of the OpenAPI document: STACKS_API_VERSION
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.StackingApi = void 0;
17
+ const runtime = require("../runtime");
18
+ const models_1 = require("../models");
19
+ /**
20
+ *
21
+ */
22
+ class StackingApi extends runtime.BaseAPI {
23
+ /**
24
+ * Retrieves the list of stacking pool members for a given delegator principal.
25
+ * Stacking pool members
26
+ */
27
+ async getPoolDelegationsRaw(requestParameters, initOverrides) {
28
+ if (requestParameters.poolPrincipal === null || requestParameters.poolPrincipal === undefined) {
29
+ throw new runtime.RequiredError('poolPrincipal', 'Required parameter requestParameters.poolPrincipal was null or undefined when calling getPoolDelegations.');
30
+ }
31
+ const queryParameters = {};
32
+ if (requestParameters.afterBlock !== undefined) {
33
+ queryParameters['after_block'] = requestParameters.afterBlock;
34
+ }
35
+ if (requestParameters.unanchored !== undefined) {
36
+ queryParameters['unanchored'] = requestParameters.unanchored;
37
+ }
38
+ if (requestParameters.limit !== undefined) {
39
+ queryParameters['limit'] = requestParameters.limit;
40
+ }
41
+ if (requestParameters.offset !== undefined) {
42
+ queryParameters['offset'] = requestParameters.offset;
43
+ }
44
+ const headerParameters = {};
45
+ const response = await this.request({
46
+ path: `/extended/beta/stacking/{pool_principal}/delegations`.replace(`{${"pool_principal"}}`, encodeURIComponent(String(requestParameters.poolPrincipal))),
47
+ method: 'GET',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ }, initOverrides);
51
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PoolDelegationsResponseFromJSON)(jsonValue));
52
+ }
53
+ /**
54
+ * Retrieves the list of stacking pool members for a given delegator principal.
55
+ * Stacking pool members
56
+ */
57
+ async getPoolDelegations(requestParameters, initOverrides) {
58
+ const response = await this.getPoolDelegationsRaw(requestParameters, initOverrides);
59
+ return await response.value();
60
+ }
61
+ }
62
+ exports.StackingApi = StackingApi;
63
+ //# sourceMappingURL=StackingApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackingApi.js","sourceRoot":"","sources":["../../../src/generated/apis/StackingApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAGH,sCAAsC;AACtC,sCAImB;AAuCnB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,qBAAqB,CAAC,iBAA4C,EAAE,aAA2B;QACjG,IAAI,iBAAiB,CAAC,aAAa,KAAK,IAAI,IAAI,iBAAiB,CAAC,aAAa,KAAK,SAAS,EAAE;YAC3F,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,eAAe,EAAC,2GAA2G,CAAC,CAAC;SAChK;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,UAAU,KAAK,SAAS,EAAE;YAC5C,eAAe,CAAC,aAAa,CAAC,GAAG,iBAAiB,CAAC,UAAU,CAAC;SACjE;QAED,IAAI,iBAAiB,CAAC,UAAU,KAAK,SAAS,EAAE;YAC5C,eAAe,CAAC,YAAY,CAAC,GAAG,iBAAiB,CAAC,UAAU,CAAC;SAChE;QAED,IAAI,iBAAiB,CAAC,KAAK,KAAK,SAAS,EAAE;YACvC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC;SACtD;QAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,SAAS,EAAE;YACxC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC;SACxD;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,sDAAsD,CAAC,OAAO,CAAC,IAAI,gBAAgB,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC;YAC1J,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,wCAA+B,EAAC,SAAS,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAA4C,EAAE,aAA2B;QAC9F,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACpF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlDD,kCAkDC"}
@@ -10,5 +10,6 @@ export * from './NonFungibleTokensApi';
10
10
  export * from './RosettaApi';
11
11
  export * from './SearchApi';
12
12
  export * from './SmartContractsApi';
13
+ export * from './StackingApi';
13
14
  export * from './StackingRewardsApi';
14
15
  export * from './TransactionsApi';
@@ -28,6 +28,7 @@ __exportStar(require("./NonFungibleTokensApi"), exports);
28
28
  __exportStar(require("./RosettaApi"), exports);
29
29
  __exportStar(require("./SearchApi"), exports);
30
30
  __exportStar(require("./SmartContractsApi"), exports);
31
+ __exportStar(require("./StackingApi"), exports);
31
32
  __exportStar(require("./StackingRewardsApi"), exports);
32
33
  __exportStar(require("./TransactionsApi"), exports);
33
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,yDAAuC;AACvC,+CAA6B;AAC7B,8CAA4B;AAC5B,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InlineResponse403
16
+ */
17
+ export interface InlineResponse403 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InlineResponse403
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof InlineResponse403
28
+ */
29
+ success?: boolean;
30
+ }
31
+ export declare function InlineResponse403FromJSON(json: any): InlineResponse403;
32
+ export declare function InlineResponse403FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse403;
33
+ export declare function InlineResponse403ToJSON(value?: InlineResponse403 | null): any;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Stacks Blockchain API
6
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
7
+ *
8
+ * The version of the OpenAPI document: STACKS_API_VERSION
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.InlineResponse403ToJSON = exports.InlineResponse403FromJSONTyped = exports.InlineResponse403FromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ function InlineResponse403FromJSON(json) {
19
+ return InlineResponse403FromJSONTyped(json, false);
20
+ }
21
+ exports.InlineResponse403FromJSON = InlineResponse403FromJSON;
22
+ function InlineResponse403FromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
28
+ 'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
29
+ };
30
+ }
31
+ exports.InlineResponse403FromJSONTyped = InlineResponse403FromJSONTyped;
32
+ function InlineResponse403ToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'error': value.error,
41
+ 'success': value.success,
42
+ };
43
+ }
44
+ exports.InlineResponse403ToJSON = InlineResponse403ToJSON;
45
+ //# sourceMappingURL=InlineResponse403.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineResponse403.js","sourceRoot":"","sources":["../../../src/generated/models/InlineResponse403.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAqB/C,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAFD,8DAEC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,SAAS,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AATD,wEASC;AAED,SAAgB,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,CAAC;AACN,CAAC;AAZD,0DAYC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Stacks Blockchain API
3
+ * Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
4
+ *
5
+ * The version of the OpenAPI document: STACKS_API_VERSION
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PoolDelegation
16
+ */
17
+ export interface PoolDelegation {
18
+ /**
19
+ * The principal of the pool member that issued the delegation
20
+ * @type {string}
21
+ * @memberof PoolDelegation
22
+ */
23
+ stacker: string;
24
+ /**
25
+ * The pox-addr value specified by the stacker in the delegation operation
26
+ * @type {string}
27
+ * @memberof PoolDelegation
28
+ */
29
+ pox_addr?: string;
30
+ /**
31
+ * The amount of uSTX delegated by the stacker
32
+ * @type {string}
33
+ * @memberof PoolDelegation
34
+ */
35
+ amount_ustx: string;
36
+ /**
37
+ * The optional burnchain block unlock height that the stacker may have specified
38
+ * @type {number}
39
+ * @memberof PoolDelegation
40
+ */
41
+ burn_block_unlock_height?: number;
42
+ /**
43
+ * The block height at which the stacker delegation transaction was mined at
44
+ * @type {number}
45
+ * @memberof PoolDelegation
46
+ */
47
+ block_height: number;
48
+ /**
49
+ * The tx_id of the stacker delegation operation
50
+ * @type {string}
51
+ * @memberof PoolDelegation
52
+ */
53
+ tx_id: string;
54
+ }
55
+ export declare function PoolDelegationFromJSON(json: any): PoolDelegation;
56
+ export declare function PoolDelegationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PoolDelegation;
57
+ export declare function PoolDelegationToJSON(value?: PoolDelegation | null): any;