@avalabs/glacier-sdk 2.8.0-canary.cfb38f5.0 → 2.8.0-canary.d02981d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/index.d.ts +1057 -522
  2. package/dist/index.js +453 -210
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
  10. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  11. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  13. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  14. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  15. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  16. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  17. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  18. package/esm/generated/models/ChainInfo.d.ts +1 -3
  19. package/esm/generated/models/ChainStatus.d.ts +3 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  21. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  22. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  23. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  25. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  26. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  27. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  28. package/esm/generated/models/EVMInput.d.ts +3 -3
  29. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  30. package/esm/generated/models/EVMOperationType.js +6 -0
  31. package/esm/generated/models/EVMOutput.d.ts +3 -3
  32. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  33. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  34. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  35. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  36. package/esm/generated/models/GlacierApiFeature.js +7 -0
  37. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  38. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  39. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  40. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  41. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  42. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  43. package/esm/generated/models/Method.d.ts +0 -3
  44. package/esm/generated/models/Money.d.ts +0 -3
  45. package/esm/generated/models/NextPageToken.d.ts +8 -0
  46. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  47. package/esm/generated/models/OperationType.d.ts +4 -2
  48. package/esm/generated/models/OperationType.js +3 -1
  49. package/esm/generated/models/PChainBalance.d.ts +15 -15
  50. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  51. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  52. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  53. package/esm/generated/models/PChainTransactionType.js +8 -5
  54. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  55. package/esm/generated/models/PendingReward.d.ts +3 -3
  56. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  57. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  58. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  59. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  60. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  61. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  62. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  63. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  64. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  65. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  66. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  67. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  68. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  69. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  70. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  71. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  72. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  73. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  74. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  75. package/esm/generated/models/SortByOption.d.ts +9 -0
  76. package/esm/generated/models/SortByOption.js +10 -0
  77. package/esm/generated/models/Subnet.d.ts +17 -0
  78. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  79. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  80. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  81. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  82. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  83. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  84. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  85. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  86. package/esm/generated/models/Utxo.d.ts +30 -30
  87. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  88. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  89. package/esm/generated/models/ValidationStatusType.js +1 -0
  90. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  91. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  92. package/esm/generated/models/XChainBalances.d.ts +3 -3
  93. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  94. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  95. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  96. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  97. package/esm/generated/services/DefaultService.d.ts +0 -53
  98. package/esm/generated/services/DefaultService.js +0 -42
  99. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  100. package/esm/generated/services/EvmBalancesService.js +10 -8
  101. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  102. package/esm/generated/services/EvmBlocksService.js +4 -4
  103. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  104. package/esm/generated/services/EvmChainsService.js +4 -2
  105. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  106. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  107. package/esm/generated/services/EvmTransactionsService.js +32 -32
  108. package/esm/generated/services/NfTsService.d.ts +8 -8
  109. package/esm/generated/services/NfTsService.js +4 -4
  110. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  111. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  112. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  113. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  114. package/esm/generated/services/PrimaryNetworkService.d.ts +57 -42
  115. package/esm/generated/services/PrimaryNetworkService.js +30 -24
  116. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  117. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  118. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  119. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  120. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  121. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  122. package/esm/generated/services/RpcService.d.ts +25 -0
  123. package/esm/generated/services/RpcService.js +24 -0
  124. package/esm/generated/services/TeleporterService.d.ts +62 -0
  125. package/esm/generated/services/TeleporterService.js +41 -0
  126. package/esm/generated/services/WebhooksService.d.ts +143 -0
  127. package/esm/generated/services/WebhooksService.js +125 -0
  128. package/esm/index.d.ts +31 -3
  129. package/esm/index.js +14 -2
  130. package/package.json +3 -3
  131. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  132. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  133. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -8,48 +8,6 @@ class DefaultService {
8
8
  url: "/v1/media/uploadImage"
9
9
  });
10
10
  }
11
- registerWebhook({
12
- requestBody
13
- }) {
14
- return this.httpRequest.request({
15
- method: "POST",
16
- url: "/v1/webhooks",
17
- body: requestBody,
18
- mediaType: "application/json"
19
- });
20
- }
21
- listWebhooks({
22
- pageSize = 10,
23
- pageToken,
24
- status
25
- }) {
26
- return this.httpRequest.request({
27
- method: "GET",
28
- url: "/v1/webhooks",
29
- query: {
30
- "pageSize": pageSize,
31
- "pageToken": pageToken,
32
- "status": status
33
- }
34
- });
35
- }
36
- deactivateWebhook({
37
- id
38
- }) {
39
- return this.httpRequest.request({
40
- method: "DELETE",
41
- url: "/v1/webhooks/{id}",
42
- path: {
43
- "id": id
44
- }
45
- });
46
- }
47
- generateSharedSecret() {
48
- return this.httpRequest.request({
49
- method: "POST",
50
- url: "/v1/webhooks:generateSharedSecret"
51
- });
52
- }
53
11
  }
54
12
 
55
13
  export { DefaultService };
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
20
20
  */
21
21
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
22
  /**
23
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
23
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
24
  */
25
25
  chainId: string;
26
26
  /**
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
46
46
  * @returns ListErc20BalancesResponse
47
47
  * @throws ApiError
48
48
  */
49
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
49
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
50
50
  /**
51
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
51
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
53
53
  chainId: string;
54
54
  /**
@@ -59,14 +59,18 @@ declare class EvmBalancesService {
59
59
  * The block number, if not defined the block number will be the latest block.
60
60
  */
61
61
  blockNumber?: string;
62
+ /**
63
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
64
+ */
65
+ pageToken?: string;
62
66
  /**
63
67
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
64
68
  */
65
69
  pageSize?: number;
66
70
  /**
67
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
71
+ * whether to filter out spam tokens from the response. Default is true.
68
72
  */
69
- pageToken?: string;
73
+ filterSpamTokens?: boolean;
70
74
  /**
71
75
  * A comma separated list of contract addresses to filter by.
72
76
  */
@@ -84,23 +88,23 @@ declare class EvmBalancesService {
84
88
  * @returns ListErc721BalancesResponse
85
89
  * @throws ApiError
86
90
  */
87
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
91
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
88
92
  /**
89
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
93
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
90
94
  */
91
95
  chainId: string;
92
96
  /**
93
97
  * A wallet address.
94
98
  */
95
99
  address: string;
96
- /**
97
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
98
- */
99
- pageSize?: number;
100
100
  /**
101
101
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
102
102
  */
103
103
  pageToken?: string;
104
+ /**
105
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
106
+ */
107
+ pageSize?: number;
104
108
  /**
105
109
  * A contract addresses to filter by.
106
110
  */
@@ -116,9 +120,9 @@ declare class EvmBalancesService {
116
120
  * @returns ListErc1155BalancesResponse
117
121
  * @throws ApiError
118
122
  */
119
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
123
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
120
124
  /**
121
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
125
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
122
126
  */
123
127
  chainId: string;
124
128
  /**
@@ -129,14 +133,14 @@ declare class EvmBalancesService {
129
133
  * The block number, if not defined the block number will be the latest block.
130
134
  */
131
135
  blockNumber?: string;
132
- /**
133
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
134
- */
135
- pageSize?: number;
136
136
  /**
137
137
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
138
138
  */
139
139
  pageToken?: string;
140
+ /**
141
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
142
+ */
143
+ pageSize?: number;
140
144
  /**
141
145
  * A contract addresses to filter by.
142
146
  */
@@ -150,23 +154,23 @@ declare class EvmBalancesService {
150
154
  * @returns ListCollectibleBalancesResponse
151
155
  * @throws ApiError
152
156
  */
153
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
157
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
154
158
  /**
155
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
159
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
160
  */
157
161
  chainId: string;
158
162
  /**
159
163
  * A wallet address.
160
164
  */
161
165
  address: string;
162
- /**
163
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
164
- */
165
- pageSize?: number;
166
166
  /**
167
167
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
168
168
  */
169
169
  pageToken?: string;
170
+ /**
171
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
172
+ */
173
+ pageSize?: number;
170
174
  /**
171
175
  * A contract addresses to filter by.
172
176
  */
@@ -25,8 +25,9 @@ class EvmBalancesService {
25
25
  chainId,
26
26
  address,
27
27
  blockNumber,
28
- pageSize = 10,
29
28
  pageToken,
29
+ pageSize = 10,
30
+ filterSpamTokens = true,
30
31
  contractAddresses,
31
32
  currency
32
33
  }) {
@@ -39,8 +40,9 @@ class EvmBalancesService {
39
40
  },
40
41
  query: {
41
42
  "blockNumber": blockNumber,
42
- "pageSize": pageSize,
43
43
  "pageToken": pageToken,
44
+ "pageSize": pageSize,
45
+ "filterSpamTokens": filterSpamTokens,
44
46
  "contractAddresses": contractAddresses,
45
47
  "currency": currency
46
48
  }
@@ -49,8 +51,8 @@ class EvmBalancesService {
49
51
  listErc721Balances({
50
52
  chainId,
51
53
  address,
52
- pageSize = 10,
53
54
  pageToken,
55
+ pageSize = 10,
54
56
  contractAddress
55
57
  }) {
56
58
  return this.httpRequest.request({
@@ -61,8 +63,8 @@ class EvmBalancesService {
61
63
  "address": address
62
64
  },
63
65
  query: {
64
- "pageSize": pageSize,
65
66
  "pageToken": pageToken,
67
+ "pageSize": pageSize,
66
68
  "contractAddress": contractAddress
67
69
  }
68
70
  });
@@ -71,8 +73,8 @@ class EvmBalancesService {
71
73
  chainId,
72
74
  address,
73
75
  blockNumber,
74
- pageSize = 10,
75
76
  pageToken,
77
+ pageSize = 10,
76
78
  contractAddress
77
79
  }) {
78
80
  return this.httpRequest.request({
@@ -84,8 +86,8 @@ class EvmBalancesService {
84
86
  },
85
87
  query: {
86
88
  "blockNumber": blockNumber,
87
- "pageSize": pageSize,
88
89
  "pageToken": pageToken,
90
+ "pageSize": pageSize,
89
91
  "contractAddress": contractAddress
90
92
  }
91
93
  });
@@ -93,8 +95,8 @@ class EvmBalancesService {
93
95
  listCollectibleBalances({
94
96
  chainId,
95
97
  address,
96
- pageSize = 10,
97
98
  pageToken,
99
+ pageSize = 10,
98
100
  contractAddress
99
101
  }) {
100
102
  return this.httpRequest.request({
@@ -105,8 +107,8 @@ class EvmBalancesService {
105
107
  "address": address
106
108
  },
107
109
  query: {
108
- "pageSize": pageSize,
109
110
  "pageToken": pageToken,
111
+ "pageSize": pageSize,
110
112
  "contractAddress": contractAddress
111
113
  }
112
114
  });
@@ -12,19 +12,19 @@ declare class EvmBlocksService {
12
12
  * @returns ListEvmBlocksResponse
13
13
  * @throws ApiError
14
14
  */
15
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
15
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
16
16
  /**
17
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
17
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
18
  */
19
19
  chainId: string;
20
- /**
21
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
22
- */
23
- pageSize?: number;
24
20
  /**
25
21
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
26
22
  */
27
23
  pageToken?: string;
24
+ /**
25
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
26
+ */
27
+ pageSize?: number;
28
28
  }): CancelablePromise<ListEvmBlocksResponse>;
29
29
  /**
30
30
  * Get block
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
34
34
  */
35
35
  getBlock({ chainId, blockId, }: {
36
36
  /**
37
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
37
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
38
  */
39
39
  chainId: string;
40
40
  /**
@@ -4,8 +4,8 @@ class EvmBlocksService {
4
4
  }
5
5
  getLatestBlocks({
6
6
  chainId,
7
- pageSize = 10,
8
- pageToken
7
+ pageToken,
8
+ pageSize = 10
9
9
  }) {
10
10
  return this.httpRequest.request({
11
11
  method: "GET",
@@ -14,8 +14,8 @@ class EvmBlocksService {
14
14
  "chainId": chainId
15
15
  },
16
16
  query: {
17
- "pageSize": pageSize,
18
- "pageToken": pageToken
17
+ "pageToken": pageToken,
18
+ "pageSize": pageSize
19
19
  }
20
20
  });
21
21
  }
@@ -1,4 +1,5 @@
1
1
  import { GetChainResponse } from '../models/GetChainResponse.js';
2
+ import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
2
3
  import { ListChainsResponse } from '../models/ListChainsResponse.js';
3
4
  import { NetworkType } from '../models/NetworkType.js';
4
5
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -13,11 +14,15 @@ declare class EvmChainsService {
13
14
  * @returns ListChainsResponse
14
15
  * @throws ApiError
15
16
  */
16
- supportedChains({ network, }: {
17
+ supportedChains({ network, feature, }: {
17
18
  /**
18
19
  * mainnet or testnet.
19
20
  */
20
21
  network?: NetworkType;
22
+ /**
23
+ * Filter by feature.
24
+ */
25
+ feature?: GlacierApiFeature;
21
26
  }): CancelablePromise<ListChainsResponse>;
22
27
  /**
23
28
  * Get chain information
@@ -27,7 +32,7 @@ declare class EvmChainsService {
27
32
  */
28
33
  getChainInfo({ chainId, }: {
29
34
  /**
30
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
35
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
31
36
  */
32
37
  chainId: string;
33
38
  }): CancelablePromise<GetChainResponse>;
@@ -3,13 +3,15 @@ class EvmChainsService {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
5
  supportedChains({
6
- network
6
+ network,
7
+ feature
7
8
  }) {
8
9
  return this.httpRequest.request({
9
10
  method: "GET",
10
11
  url: "/v1/chains",
11
12
  query: {
12
- "network": network
13
+ "network": network,
14
+ "feature": feature
13
15
  }
14
16
  });
15
17
  }
@@ -18,7 +18,7 @@ declare class EvmContractsService {
18
18
  */
19
19
  getContractMetadata({ chainId, address, }: {
20
20
  /**
21
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
21
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
22
22
  */
23
23
  chainId: string;
24
24
  /**
@@ -34,7 +34,7 @@ declare class EvmContractsService {
34
34
  */
35
35
  updateContractInfo({ chainId, address, requestBody, }: {
36
36
  /**
37
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
37
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
38
  */
39
39
  chainId: string;
40
40
  /**
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
24
24
  */
25
25
  getDeploymentTransaction({ chainId, address, currency, }: {
26
26
  /**
27
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
27
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
28
28
  */
29
29
  chainId: string;
30
30
  /**
@@ -42,23 +42,23 @@ declare class EvmTransactionsService {
42
42
  * @returns ListContractsResponse
43
43
  * @throws ApiError
44
44
  */
45
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
45
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
46
46
  /**
47
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
47
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
48
48
  */
49
49
  chainId: string;
50
50
  /**
51
51
  * A wallet address.
52
52
  */
53
53
  address: string;
54
- /**
55
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
56
- */
57
- pageSize?: number;
58
54
  /**
59
55
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
60
56
  */
61
57
  pageToken?: string;
58
+ /**
59
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
60
+ */
61
+ pageSize?: number;
62
62
  }): CancelablePromise<ListContractsResponse>;
63
63
  /**
64
64
  * List ERC transfers
@@ -66,9 +66,9 @@ declare class EvmTransactionsService {
66
66
  * @returns ListTransfersResponse
67
67
  * @throws ApiError
68
68
  */
69
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
69
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
70
70
  /**
71
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
71
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
72
72
  */
73
73
  chainId: string;
74
74
  /**
@@ -83,14 +83,14 @@ declare class EvmTransactionsService {
83
83
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
84
84
  */
85
85
  endBlock?: number;
86
- /**
87
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
88
- */
89
- pageSize?: number;
90
86
  /**
91
87
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
92
88
  */
93
89
  pageToken?: string;
90
+ /**
91
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
92
+ */
93
+ pageSize?: number;
94
94
  }): CancelablePromise<ListTransfersResponse>;
95
95
  /**
96
96
  * List transactions
@@ -100,23 +100,23 @@ declare class EvmTransactionsService {
100
100
  * @returns ListTransactionDetailsResponse
101
101
  * @throws ApiError
102
102
  */
103
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
103
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
104
104
  /**
105
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
105
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
106
106
  */
107
107
  chainId: string;
108
108
  /**
109
109
  * A wallet address.
110
110
  */
111
111
  address: string;
112
- /**
113
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
114
- */
115
- pageSize?: number;
116
112
  /**
117
113
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
118
114
  */
119
115
  pageToken?: string;
116
+ /**
117
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
118
+ */
119
+ pageSize?: number;
120
120
  /**
121
121
  * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
122
122
  */
@@ -136,9 +136,9 @@ declare class EvmTransactionsService {
136
136
  * @returns ListNativeTransactionsResponse
137
137
  * @throws ApiError
138
138
  */
139
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
139
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
140
140
  /**
141
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
142
142
  */
143
143
  chainId: string;
144
144
  /**
@@ -153,14 +153,14 @@ declare class EvmTransactionsService {
153
153
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
154
154
  */
155
155
  endBlock?: number;
156
- /**
157
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
158
- */
159
- pageSize?: number;
160
156
  /**
161
157
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
162
158
  */
163
159
  pageToken?: string;
160
+ /**
161
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
162
+ */
163
+ pageSize?: number;
164
164
  }): CancelablePromise<ListNativeTransactionsResponse>;
165
165
  /**
166
166
  * List ERC-20 transfers
@@ -168,9 +168,9 @@ declare class EvmTransactionsService {
168
168
  * @returns ListErc20TransactionsResponse
169
169
  * @throws ApiError
170
170
  */
171
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
171
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
172
172
  /**
173
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
173
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
174
174
  */
175
175
  chainId: string;
176
176
  /**
@@ -185,14 +185,14 @@ declare class EvmTransactionsService {
185
185
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
186
186
  */
187
187
  endBlock?: number;
188
- /**
189
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
190
- */
191
- pageSize?: number;
192
188
  /**
193
189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
194
190
  */
195
191
  pageToken?: string;
192
+ /**
193
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
194
+ */
195
+ pageSize?: number;
196
196
  }): CancelablePromise<ListErc20TransactionsResponse>;
197
197
  /**
198
198
  * List ERC-721 transfers
@@ -200,9 +200,9 @@ declare class EvmTransactionsService {
200
200
  * @returns ListErc721TransactionsResponse
201
201
  * @throws ApiError
202
202
  */
203
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
203
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
204
204
  /**
205
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
205
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
206
206
  */
207
207
  chainId: string;
208
208
  /**
@@ -217,14 +217,14 @@ declare class EvmTransactionsService {
217
217
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
218
218
  */
219
219
  endBlock?: number;
220
- /**
221
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
222
- */
223
- pageSize?: number;
224
220
  /**
225
221
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
226
222
  */
227
223
  pageToken?: string;
224
+ /**
225
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
226
+ */
227
+ pageSize?: number;
228
228
  }): CancelablePromise<ListErc721TransactionsResponse>;
229
229
  /**
230
230
  * List ERC-1155 transfers
@@ -232,9 +232,9 @@ declare class EvmTransactionsService {
232
232
  * @returns ListErc1155TransactionsResponse
233
233
  * @throws ApiError
234
234
  */
235
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
235
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
236
236
  /**
237
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
237
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
238
238
  */
239
239
  chainId: string;
240
240
  /**
@@ -249,14 +249,14 @@ declare class EvmTransactionsService {
249
249
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
250
250
  */
251
251
  endBlock?: number;
252
- /**
253
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
254
- */
255
- pageSize?: number;
256
252
  /**
257
253
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
258
254
  */
259
255
  pageToken?: string;
256
+ /**
257
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
258
+ */
259
+ pageSize?: number;
260
260
  }): CancelablePromise<ListErc1155TransactionsResponse>;
261
261
  /**
262
262
  * List internal transactions
@@ -266,9 +266,9 @@ declare class EvmTransactionsService {
266
266
  * @returns ListInternalTransactionsResponse
267
267
  * @throws ApiError
268
268
  */
269
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
269
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
270
270
  /**
271
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
271
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
272
272
  */
273
273
  chainId: string;
274
274
  /**
@@ -283,14 +283,14 @@ declare class EvmTransactionsService {
283
283
  * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
284
284
  */
285
285
  endBlock?: number;
286
- /**
287
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
288
- */
289
- pageSize?: number;
290
286
  /**
291
287
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
292
288
  */
293
289
  pageToken?: string;
290
+ /**
291
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
292
+ */
293
+ pageSize?: number;
294
294
  }): CancelablePromise<ListInternalTransactionsResponse>;
295
295
  /**
296
296
  * Get transaction
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
300
300
  */
301
301
  getTransaction({ chainId, txHash, }: {
302
302
  /**
303
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
303
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
304
304
  */
305
305
  chainId: string;
306
306
  /**
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
316
316
  */
317
317
  getTransactionsForBlock({ chainId, blockId, }: {
318
318
  /**
319
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
319
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
320
320
  */
321
321
  chainId: string;
322
322
  /**
@@ -330,19 +330,19 @@ declare class EvmTransactionsService {
330
330
  * @returns ListNativeTransactionsResponse
331
331
  * @throws ApiError
332
332
  */
333
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
333
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
334
334
  /**
335
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
335
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
336
336
  */
337
337
  chainId: string;
338
- /**
339
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
340
- */
341
- pageSize?: number;
342
338
  /**
343
339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
344
340
  */
345
341
  pageToken?: string;
342
+ /**
343
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
344
+ */
345
+ pageSize?: number;
346
346
  /**
347
347
  * A status filter for listed transactions.
348
348
  */