@avalabs/glacier-sdk 2.8.0-canary.f0b0684.0 → 2.8.0-canary.f195b3d.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 (114) hide show
  1. package/dist/index.d.ts +960 -310
  2. package/dist/index.js +376 -120
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  8. package/esm/generated/models/Asset.d.ts +3 -1
  9. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  10. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  11. package/esm/generated/models/ChainInfo.d.ts +1 -0
  12. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  14. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  15. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  16. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  17. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  18. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  19. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  20. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  21. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  22. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  23. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  25. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  26. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  27. package/esm/generated/models/EventType.d.ts +5 -0
  28. package/esm/generated/models/EventType.js +6 -0
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  31. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  32. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  33. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  34. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  35. package/esm/generated/models/NextPageToken.d.ts +8 -0
  36. package/esm/generated/models/PChainBalance.d.ts +7 -7
  37. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  38. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  39. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  40. package/esm/generated/models/PChainTransactionType.js +6 -4
  41. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  42. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  43. package/esm/generated/models/PendingReward.d.ts +2 -2
  44. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  45. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  46. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  47. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  48. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  49. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  50. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  51. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  52. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  53. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  54. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  55. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  56. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  57. package/esm/generated/models/RewardType.d.ts +2 -1
  58. package/esm/generated/models/RewardType.js +1 -0
  59. package/esm/generated/models/Rewards.d.ts +2 -0
  60. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  61. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  62. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  63. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  64. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  65. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  66. package/esm/generated/models/Utxo.d.ts +28 -28
  67. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  68. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  69. package/esm/generated/models/ValidationStatusType.js +1 -0
  70. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  71. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  72. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  73. package/esm/generated/models/WebhookStatus.js +7 -0
  74. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  75. package/esm/generated/models/WebhookStatusType.js +7 -0
  76. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  77. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  78. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  79. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  80. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  81. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  82. package/esm/generated/models/XChainTransactionType.js +11 -0
  83. package/esm/generated/services/DefaultService.d.ts +67 -0
  84. package/esm/generated/services/DefaultService.js +55 -0
  85. package/esm/generated/services/EvmBalancesService.d.ts +20 -20
  86. package/esm/generated/services/EvmBalancesService.js +8 -8
  87. package/esm/generated/services/EvmBlocksService.d.ts +5 -5
  88. package/esm/generated/services/EvmBlocksService.js +4 -4
  89. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  90. package/esm/generated/services/EvmContractsService.js +16 -0
  91. package/esm/generated/services/EvmTransactionsService.d.ts +78 -56
  92. package/esm/generated/services/EvmTransactionsService.js +33 -46
  93. package/esm/generated/services/NfTsService.d.ts +25 -0
  94. package/esm/generated/services/NfTsService.js +19 -0
  95. package/esm/generated/services/OperationsService.d.ts +11 -11
  96. package/esm/generated/services/OperationsService.js +10 -10
  97. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  98. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  99. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  100. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  101. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  102. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  103. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  104. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  105. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  106. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  107. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  108. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  109. package/esm/generated/services/TeleporterService.d.ts +65 -0
  110. package/esm/generated/services/TeleporterService.js +43 -0
  111. package/esm/index.d.ts +30 -1
  112. package/esm/index.js +17 -0
  113. package/package.json +2 -2
  114. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,7 +1,4 @@
1
1
  import { CurrencyCode } from '../models/CurrencyCode.js';
2
- import { Erc1155Contract } from '../models/Erc1155Contract.js';
3
- import { Erc20Contract } from '../models/Erc20Contract.js';
4
- import { Erc721Contract } from '../models/Erc721Contract.js';
5
2
  import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
6
3
  import { ListContractsResponse } from '../models/ListContractsResponse.js';
7
4
  import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
@@ -13,7 +10,6 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
13
10
  import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
14
11
  import { SortOrder } from '../models/SortOrder.js';
15
12
  import { TransactionStatus } from '../models/TransactionStatus.js';
16
- import { UnknownContract } from '../models/UnknownContract.js';
17
13
  import { CancelablePromise } from '../core/CancelablePromise.js';
18
14
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
19
15
 
@@ -46,7 +42,7 @@ declare class EvmTransactionsService {
46
42
  * @returns ListContractsResponse
47
43
  * @throws ApiError
48
44
  */
49
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
45
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
50
46
  /**
51
47
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
48
  */
@@ -55,38 +51,22 @@ declare class EvmTransactionsService {
55
51
  * A wallet address.
56
52
  */
57
53
  address: 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
54
  /**
63
55
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
64
56
  */
65
57
  pageToken?: string;
66
- }): CancelablePromise<ListContractsResponse>;
67
- /**
68
- * Get contract metadata
69
- * Gets metadata about the contract at the given address.
70
- * @returns any
71
- * @throws ApiError
72
- */
73
- getContractMetadata({ chainId, address, }: {
74
- /**
75
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
76
- */
77
- chainId: string;
78
58
  /**
79
- * Contract address on the relevant chain.
59
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
80
60
  */
81
- address: string;
82
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
61
+ pageSize?: number;
62
+ }): CancelablePromise<ListContractsResponse>;
83
63
  /**
84
64
  * List ERC transfers
85
65
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
86
66
  * @returns ListTransfersResponse
87
67
  * @throws ApiError
88
68
  */
89
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
69
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
90
70
  /**
91
71
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
92
72
  */
@@ -95,16 +75,22 @@ declare class EvmTransactionsService {
95
75
  * A wallet address.
96
76
  */
97
77
  address: string;
78
+ /**
79
+ * 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.
80
+ */
98
81
  startBlock?: number;
99
- endBlock?: number;
100
82
  /**
101
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
102
84
  */
103
- pageSize?: number;
85
+ endBlock?: number;
104
86
  /**
105
87
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
106
88
  */
107
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;
108
94
  }): CancelablePromise<ListTransfersResponse>;
109
95
  /**
110
96
  * List transactions
@@ -114,7 +100,7 @@ declare class EvmTransactionsService {
114
100
  * @returns ListTransactionDetailsResponse
115
101
  * @throws ApiError
116
102
  */
117
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
103
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
118
104
  /**
119
105
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
120
106
  */
@@ -123,15 +109,21 @@ declare class EvmTransactionsService {
123
109
  * A wallet address.
124
110
  */
125
111
  address: string;
112
+ /**
113
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
114
+ */
115
+ pageToken?: string;
126
116
  /**
127
117
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
128
118
  */
129
119
  pageSize?: number;
130
120
  /**
131
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
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.
132
122
  */
133
- pageToken?: string;
134
123
  startBlock?: number;
124
+ /**
125
+ * 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.
126
+ */
135
127
  endBlock?: number;
136
128
  /**
137
129
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -144,7 +136,7 @@ declare class EvmTransactionsService {
144
136
  * @returns ListNativeTransactionsResponse
145
137
  * @throws ApiError
146
138
  */
147
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
139
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
148
140
  /**
149
141
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
150
142
  */
@@ -153,16 +145,22 @@ declare class EvmTransactionsService {
153
145
  * A wallet address.
154
146
  */
155
147
  address: string;
148
+ /**
149
+ * 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.
150
+ */
156
151
  startBlock?: number;
157
- endBlock?: number;
158
152
  /**
159
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
160
154
  */
161
- pageSize?: number;
155
+ endBlock?: number;
162
156
  /**
163
157
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
164
158
  */
165
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;
166
164
  }): CancelablePromise<ListNativeTransactionsResponse>;
167
165
  /**
168
166
  * List ERC-20 transfers
@@ -170,7 +168,7 @@ declare class EvmTransactionsService {
170
168
  * @returns ListErc20TransactionsResponse
171
169
  * @throws ApiError
172
170
  */
173
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
171
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
174
172
  /**
175
173
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
176
174
  */
@@ -179,16 +177,22 @@ declare class EvmTransactionsService {
179
177
  * A wallet address.
180
178
  */
181
179
  address: string;
180
+ /**
181
+ * 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.
182
+ */
182
183
  startBlock?: number;
183
- endBlock?: number;
184
184
  /**
185
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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
- pageSize?: number;
187
+ endBlock?: number;
188
188
  /**
189
189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
190
190
  */
191
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;
192
196
  }): CancelablePromise<ListErc20TransactionsResponse>;
193
197
  /**
194
198
  * List ERC-721 transfers
@@ -196,7 +200,7 @@ declare class EvmTransactionsService {
196
200
  * @returns ListErc721TransactionsResponse
197
201
  * @throws ApiError
198
202
  */
199
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
203
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
200
204
  /**
201
205
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
202
206
  */
@@ -205,16 +209,22 @@ declare class EvmTransactionsService {
205
209
  * A wallet address.
206
210
  */
207
211
  address: string;
212
+ /**
213
+ * 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.
214
+ */
208
215
  startBlock?: number;
209
- endBlock?: number;
210
216
  /**
211
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
212
218
  */
213
- pageSize?: number;
219
+ endBlock?: number;
214
220
  /**
215
221
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
216
222
  */
217
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;
218
228
  }): CancelablePromise<ListErc721TransactionsResponse>;
219
229
  /**
220
230
  * List ERC-1155 transfers
@@ -222,7 +232,7 @@ declare class EvmTransactionsService {
222
232
  * @returns ListErc1155TransactionsResponse
223
233
  * @throws ApiError
224
234
  */
225
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
235
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
226
236
  /**
227
237
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
228
238
  */
@@ -231,16 +241,22 @@ declare class EvmTransactionsService {
231
241
  * A wallet address.
232
242
  */
233
243
  address: string;
244
+ /**
245
+ * 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.
246
+ */
234
247
  startBlock?: number;
235
- endBlock?: number;
236
248
  /**
237
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
238
250
  */
239
- pageSize?: number;
251
+ endBlock?: number;
240
252
  /**
241
253
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
242
254
  */
243
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;
244
260
  }): CancelablePromise<ListErc1155TransactionsResponse>;
245
261
  /**
246
262
  * List internal transactions
@@ -250,7 +266,7 @@ declare class EvmTransactionsService {
250
266
  * @returns ListInternalTransactionsResponse
251
267
  * @throws ApiError
252
268
  */
253
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
269
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
254
270
  /**
255
271
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
256
272
  */
@@ -259,16 +275,22 @@ declare class EvmTransactionsService {
259
275
  * A wallet address.
260
276
  */
261
277
  address: string;
278
+ /**
279
+ * 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.
280
+ */
262
281
  startBlock?: number;
263
- endBlock?: number;
264
282
  /**
265
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
266
284
  */
267
- pageSize?: number;
285
+ endBlock?: number;
268
286
  /**
269
287
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
270
288
  */
271
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;
272
294
  }): CancelablePromise<ListInternalTransactionsResponse>;
273
295
  /**
274
296
  * Get transaction
@@ -308,19 +330,19 @@ declare class EvmTransactionsService {
308
330
  * @returns ListNativeTransactionsResponse
309
331
  * @throws ApiError
310
332
  */
311
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
333
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
312
334
  /**
313
335
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
314
336
  */
315
337
  chainId: string;
316
- /**
317
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
318
- */
319
- pageSize?: number;
320
338
  /**
321
339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
322
340
  */
323
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;
324
346
  /**
325
347
  * A status filter for listed transactions.
326
348
  */
@@ -22,32 +22,19 @@ class EvmTransactionsService {
22
22
  listContractDeployments({
23
23
  chainId,
24
24
  address,
25
- pageSize = 10,
26
- pageToken
25
+ pageToken,
26
+ pageSize = 10
27
27
  }) {
28
28
  return this.httpRequest.request({
29
29
  method: "GET",
30
- url: "/v1/chains/{chainId}/addresses/{address}/deployments",
30
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
31
31
  path: {
32
32
  "chainId": chainId,
33
33
  "address": address
34
34
  },
35
35
  query: {
36
- "pageSize": pageSize,
37
- "pageToken": pageToken
38
- }
39
- });
40
- }
41
- getContractMetadata({
42
- chainId,
43
- address
44
- }) {
45
- return this.httpRequest.request({
46
- method: "GET",
47
- url: "/v1/chains/{chainId}/addresses/{address}",
48
- path: {
49
- "chainId": chainId,
50
- "address": address
36
+ "pageToken": pageToken,
37
+ "pageSize": pageSize
51
38
  }
52
39
  });
53
40
  }
@@ -56,8 +43,8 @@ class EvmTransactionsService {
56
43
  address,
57
44
  startBlock,
58
45
  endBlock,
59
- pageSize = 10,
60
- pageToken
46
+ pageToken,
47
+ pageSize = 10
61
48
  }) {
62
49
  return this.httpRequest.request({
63
50
  method: "GET",
@@ -69,16 +56,16 @@ class EvmTransactionsService {
69
56
  query: {
70
57
  "startBlock": startBlock,
71
58
  "endBlock": endBlock,
72
- "pageSize": pageSize,
73
- "pageToken": pageToken
59
+ "pageToken": pageToken,
60
+ "pageSize": pageSize
74
61
  }
75
62
  });
76
63
  }
77
64
  listTransactions({
78
65
  chainId,
79
66
  address,
80
- pageSize = 10,
81
67
  pageToken,
68
+ pageSize = 10,
82
69
  startBlock,
83
70
  endBlock,
84
71
  sortOrder
@@ -91,8 +78,8 @@ class EvmTransactionsService {
91
78
  "address": address
92
79
  },
93
80
  query: {
94
- "pageSize": pageSize,
95
81
  "pageToken": pageToken,
82
+ "pageSize": pageSize,
96
83
  "startBlock": startBlock,
97
84
  "endBlock": endBlock,
98
85
  "sortOrder": sortOrder
@@ -104,8 +91,8 @@ class EvmTransactionsService {
104
91
  address,
105
92
  startBlock,
106
93
  endBlock,
107
- pageSize = 10,
108
- pageToken
94
+ pageToken,
95
+ pageSize = 10
109
96
  }) {
110
97
  return this.httpRequest.request({
111
98
  method: "GET",
@@ -117,8 +104,8 @@ class EvmTransactionsService {
117
104
  query: {
118
105
  "startBlock": startBlock,
119
106
  "endBlock": endBlock,
120
- "pageSize": pageSize,
121
- "pageToken": pageToken
107
+ "pageToken": pageToken,
108
+ "pageSize": pageSize
122
109
  }
123
110
  });
124
111
  }
@@ -127,8 +114,8 @@ class EvmTransactionsService {
127
114
  address,
128
115
  startBlock,
129
116
  endBlock,
130
- pageSize = 10,
131
- pageToken
117
+ pageToken,
118
+ pageSize = 10
132
119
  }) {
133
120
  return this.httpRequest.request({
134
121
  method: "GET",
@@ -140,8 +127,8 @@ class EvmTransactionsService {
140
127
  query: {
141
128
  "startBlock": startBlock,
142
129
  "endBlock": endBlock,
143
- "pageSize": pageSize,
144
- "pageToken": pageToken
130
+ "pageToken": pageToken,
131
+ "pageSize": pageSize
145
132
  }
146
133
  });
147
134
  }
@@ -150,8 +137,8 @@ class EvmTransactionsService {
150
137
  address,
151
138
  startBlock,
152
139
  endBlock,
153
- pageSize = 10,
154
- pageToken
140
+ pageToken,
141
+ pageSize = 10
155
142
  }) {
156
143
  return this.httpRequest.request({
157
144
  method: "GET",
@@ -163,8 +150,8 @@ class EvmTransactionsService {
163
150
  query: {
164
151
  "startBlock": startBlock,
165
152
  "endBlock": endBlock,
166
- "pageSize": pageSize,
167
- "pageToken": pageToken
153
+ "pageToken": pageToken,
154
+ "pageSize": pageSize
168
155
  }
169
156
  });
170
157
  }
@@ -173,8 +160,8 @@ class EvmTransactionsService {
173
160
  address,
174
161
  startBlock,
175
162
  endBlock,
176
- pageSize = 10,
177
- pageToken
163
+ pageToken,
164
+ pageSize = 10
178
165
  }) {
179
166
  return this.httpRequest.request({
180
167
  method: "GET",
@@ -186,8 +173,8 @@ class EvmTransactionsService {
186
173
  query: {
187
174
  "startBlock": startBlock,
188
175
  "endBlock": endBlock,
189
- "pageSize": pageSize,
190
- "pageToken": pageToken
176
+ "pageToken": pageToken,
177
+ "pageSize": pageSize
191
178
  }
192
179
  });
193
180
  }
@@ -196,8 +183,8 @@ class EvmTransactionsService {
196
183
  address,
197
184
  startBlock,
198
185
  endBlock,
199
- pageSize = 10,
200
- pageToken
186
+ pageToken,
187
+ pageSize = 10
201
188
  }) {
202
189
  return this.httpRequest.request({
203
190
  method: "GET",
@@ -209,8 +196,8 @@ class EvmTransactionsService {
209
196
  query: {
210
197
  "startBlock": startBlock,
211
198
  "endBlock": endBlock,
212
- "pageSize": pageSize,
213
- "pageToken": pageToken
199
+ "pageToken": pageToken,
200
+ "pageSize": pageSize
214
201
  }
215
202
  });
216
203
  }
@@ -242,8 +229,8 @@ class EvmTransactionsService {
242
229
  }
243
230
  listLatestTransactions({
244
231
  chainId,
245
- pageSize = 10,
246
232
  pageToken,
233
+ pageSize = 10,
247
234
  status
248
235
  }) {
249
236
  return this.httpRequest.request({
@@ -253,8 +240,8 @@ class EvmTransactionsService {
253
240
  "chainId": chainId
254
241
  },
255
242
  query: {
256
- "pageSize": pageSize,
257
243
  "pageToken": pageToken,
244
+ "pageSize": pageSize,
258
245
  "status": status
259
246
  }
260
247
  });
@@ -1,5 +1,6 @@
1
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
2
2
  import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { ListNftTokens } from '../models/ListNftTokens.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
@@ -26,6 +27,30 @@ declare class NfTsService {
26
27
  */
27
28
  tokenId: string;
28
29
  }): CancelablePromise<any>;
30
+ /**
31
+ * List tokens
32
+ * Lists tokens for an NFT contract.
33
+ * @returns ListNftTokens
34
+ * @throws ApiError
35
+ */
36
+ listTokens({ chainId, address, pageToken, pageSize, }: {
37
+ /**
38
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
+ */
40
+ chainId: string;
41
+ /**
42
+ * Contract address on the relevant chain.
43
+ */
44
+ address: string;
45
+ /**
46
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
47
+ */
48
+ pageToken?: string;
49
+ /**
50
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
51
+ */
52
+ pageSize?: number;
53
+ }): CancelablePromise<ListNftTokens>;
29
54
  /**
30
55
  * Get token details
31
56
  * Gets token details for a specific token of an NFT contract.
@@ -17,6 +17,25 @@ class NfTsService {
17
17
  }
18
18
  });
19
19
  }
20
+ listTokens({
21
+ chainId,
22
+ address,
23
+ pageToken,
24
+ pageSize = 10
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
29
+ path: {
30
+ "chainId": chainId,
31
+ "address": address
32
+ },
33
+ query: {
34
+ "pageToken": pageToken,
35
+ "pageSize": pageSize
36
+ }
37
+ });
38
+ }
20
39
  getTokenDetails({
21
40
  chainId,
22
41
  address,
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
7
  declare class OperationsService {
8
8
  readonly httpRequest: BaseHttpRequest;
9
9
  constructor(httpRequest: BaseHttpRequest);
10
- /**
11
- * Create transaction export operation
12
- * Trigger a transaction export operation with given parameters.
13
- *
14
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
15
- * @returns OperationStatusResponse
16
- * @throws ApiError
17
- */
18
- postTransactionExportJob({ requestBody, }: {
19
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
20
- }): CancelablePromise<OperationStatusResponse>;
21
10
  /**
22
11
  * Get operation
23
12
  * Gets operation details for the given operation id.
@@ -30,6 +19,17 @@ declare class OperationsService {
30
19
  */
31
20
  operationId: string;
32
21
  }): CancelablePromise<OperationStatusResponse>;
22
+ /**
23
+ * Create transaction export operation
24
+ * Trigger a transaction export operation with given parameters.
25
+ *
26
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
27
+ * @returns OperationStatusResponse
28
+ * @throws ApiError
29
+ */
30
+ postTransactionExportJob({ requestBody, }: {
31
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
32
+ }): CancelablePromise<OperationStatusResponse>;
33
33
  }
34
34
 
35
35
  export { OperationsService };
@@ -2,16 +2,6 @@ class OperationsService {
2
2
  constructor(httpRequest) {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
- postTransactionExportJob({
6
- requestBody
7
- }) {
8
- return this.httpRequest.request({
9
- method: "POST",
10
- url: "/v1/operations/transactions:export",
11
- body: requestBody,
12
- mediaType: "application/json"
13
- });
14
- }
15
5
  getOperationResult({
16
6
  operationId
17
7
  }) {
@@ -23,6 +13,16 @@ class OperationsService {
23
13
  }
24
14
  });
25
15
  }
16
+ postTransactionExportJob({
17
+ requestBody
18
+ }) {
19
+ return this.httpRequest.request({
20
+ method: "POST",
21
+ url: "/v1/operations/transactions:export",
22
+ body: requestBody,
23
+ mediaType: "application/json"
24
+ });
25
+ }
26
26
  }
27
27
 
28
28
  export { OperationsService };