@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.d9e70ae.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 (122) hide show
  1. package/dist/index.d.ts +805 -439
  2. package/dist/index.js +362 -186
  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/AddressActivityMetadata.d.ts +6 -3
  9. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  10. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  12. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  13. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  15. package/esm/generated/models/ChainInfo.d.ts +1 -3
  16. package/esm/generated/models/ChainStatus.d.ts +3 -0
  17. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  18. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  20. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  22. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  24. package/esm/generated/models/EVMInput.d.ts +3 -3
  25. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  26. package/esm/generated/models/EVMOperationType.js +6 -0
  27. package/esm/generated/models/EVMOutput.d.ts +3 -3
  28. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  29. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  31. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  32. package/esm/generated/models/GlacierApiFeature.js +7 -0
  33. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  34. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  35. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  36. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  37. package/esm/generated/models/Method.d.ts +0 -3
  38. package/esm/generated/models/Money.d.ts +0 -3
  39. package/esm/generated/models/NextPageToken.d.ts +8 -0
  40. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  41. package/esm/generated/models/OperationType.d.ts +4 -2
  42. package/esm/generated/models/OperationType.js +3 -1
  43. package/esm/generated/models/PChainBalance.d.ts +15 -15
  44. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  45. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  46. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  47. package/esm/generated/models/PChainTransactionType.js +2 -0
  48. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  49. package/esm/generated/models/PendingReward.d.ts +3 -3
  50. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  51. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  52. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  53. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  54. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  55. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  56. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  57. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  58. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  59. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  60. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  61. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  62. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  63. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  64. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  65. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  66. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  67. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  68. package/esm/generated/models/Subnet.d.ts +17 -0
  69. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  70. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  71. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  72. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  73. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  74. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  75. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  76. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  77. package/esm/generated/models/Utxo.d.ts +2 -2
  78. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  79. package/esm/generated/models/ValidationStatusType.js +1 -0
  80. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  81. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  82. package/esm/generated/models/XChainBalances.d.ts +3 -3
  83. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  84. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  85. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  86. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  87. package/esm/generated/services/DefaultService.d.ts +0 -53
  88. package/esm/generated/services/DefaultService.js +0 -42
  89. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  90. package/esm/generated/services/EvmBalancesService.js +8 -8
  91. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  92. package/esm/generated/services/EvmBlocksService.js +4 -4
  93. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  94. package/esm/generated/services/EvmChainsService.js +4 -2
  95. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  96. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  97. package/esm/generated/services/EvmTransactionsService.js +32 -32
  98. package/esm/generated/services/NfTsService.d.ts +8 -8
  99. package/esm/generated/services/NfTsService.js +4 -4
  100. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  101. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  102. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  103. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  104. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -32
  105. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  106. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  107. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  108. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  109. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  110. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  111. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  112. package/esm/generated/services/RpcService.d.ts +25 -0
  113. package/esm/generated/services/RpcService.js +24 -0
  114. package/esm/generated/services/TeleporterService.d.ts +57 -0
  115. package/esm/generated/services/TeleporterService.js +39 -0
  116. package/esm/generated/services/WebhooksService.d.ts +95 -0
  117. package/esm/generated/services/WebhooksService.js +80 -0
  118. package/esm/index.d.ts +26 -2
  119. package/esm/index.js +13 -2
  120. package/package.json +3 -3
  121. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  122. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -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
  */
@@ -22,8 +22,8 @@ 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",
@@ -33,8 +33,8 @@ class EvmTransactionsService {
33
33
  "address": address
34
34
  },
35
35
  query: {
36
- "pageSize": pageSize,
37
- "pageToken": pageToken
36
+ "pageToken": pageToken,
37
+ "pageSize": pageSize
38
38
  }
39
39
  });
40
40
  }
@@ -43,8 +43,8 @@ class EvmTransactionsService {
43
43
  address,
44
44
  startBlock,
45
45
  endBlock,
46
- pageSize = 10,
47
- pageToken
46
+ pageToken,
47
+ pageSize = 10
48
48
  }) {
49
49
  return this.httpRequest.request({
50
50
  method: "GET",
@@ -56,16 +56,16 @@ class EvmTransactionsService {
56
56
  query: {
57
57
  "startBlock": startBlock,
58
58
  "endBlock": endBlock,
59
- "pageSize": pageSize,
60
- "pageToken": pageToken
59
+ "pageToken": pageToken,
60
+ "pageSize": pageSize
61
61
  }
62
62
  });
63
63
  }
64
64
  listTransactions({
65
65
  chainId,
66
66
  address,
67
- pageSize = 10,
68
67
  pageToken,
68
+ pageSize = 10,
69
69
  startBlock,
70
70
  endBlock,
71
71
  sortOrder
@@ -78,8 +78,8 @@ class EvmTransactionsService {
78
78
  "address": address
79
79
  },
80
80
  query: {
81
- "pageSize": pageSize,
82
81
  "pageToken": pageToken,
82
+ "pageSize": pageSize,
83
83
  "startBlock": startBlock,
84
84
  "endBlock": endBlock,
85
85
  "sortOrder": sortOrder
@@ -91,8 +91,8 @@ class EvmTransactionsService {
91
91
  address,
92
92
  startBlock,
93
93
  endBlock,
94
- pageSize = 10,
95
- pageToken
94
+ pageToken,
95
+ pageSize = 10
96
96
  }) {
97
97
  return this.httpRequest.request({
98
98
  method: "GET",
@@ -104,8 +104,8 @@ class EvmTransactionsService {
104
104
  query: {
105
105
  "startBlock": startBlock,
106
106
  "endBlock": endBlock,
107
- "pageSize": pageSize,
108
- "pageToken": pageToken
107
+ "pageToken": pageToken,
108
+ "pageSize": pageSize
109
109
  }
110
110
  });
111
111
  }
@@ -114,8 +114,8 @@ class EvmTransactionsService {
114
114
  address,
115
115
  startBlock,
116
116
  endBlock,
117
- pageSize = 10,
118
- pageToken
117
+ pageToken,
118
+ pageSize = 10
119
119
  }) {
120
120
  return this.httpRequest.request({
121
121
  method: "GET",
@@ -127,8 +127,8 @@ class EvmTransactionsService {
127
127
  query: {
128
128
  "startBlock": startBlock,
129
129
  "endBlock": endBlock,
130
- "pageSize": pageSize,
131
- "pageToken": pageToken
130
+ "pageToken": pageToken,
131
+ "pageSize": pageSize
132
132
  }
133
133
  });
134
134
  }
@@ -137,8 +137,8 @@ class EvmTransactionsService {
137
137
  address,
138
138
  startBlock,
139
139
  endBlock,
140
- pageSize = 10,
141
- pageToken
140
+ pageToken,
141
+ pageSize = 10
142
142
  }) {
143
143
  return this.httpRequest.request({
144
144
  method: "GET",
@@ -150,8 +150,8 @@ class EvmTransactionsService {
150
150
  query: {
151
151
  "startBlock": startBlock,
152
152
  "endBlock": endBlock,
153
- "pageSize": pageSize,
154
- "pageToken": pageToken
153
+ "pageToken": pageToken,
154
+ "pageSize": pageSize
155
155
  }
156
156
  });
157
157
  }
@@ -160,8 +160,8 @@ class EvmTransactionsService {
160
160
  address,
161
161
  startBlock,
162
162
  endBlock,
163
- pageSize = 10,
164
- pageToken
163
+ pageToken,
164
+ pageSize = 10
165
165
  }) {
166
166
  return this.httpRequest.request({
167
167
  method: "GET",
@@ -173,8 +173,8 @@ class EvmTransactionsService {
173
173
  query: {
174
174
  "startBlock": startBlock,
175
175
  "endBlock": endBlock,
176
- "pageSize": pageSize,
177
- "pageToken": pageToken
176
+ "pageToken": pageToken,
177
+ "pageSize": pageSize
178
178
  }
179
179
  });
180
180
  }
@@ -183,8 +183,8 @@ class EvmTransactionsService {
183
183
  address,
184
184
  startBlock,
185
185
  endBlock,
186
- pageSize = 10,
187
- pageToken
186
+ pageToken,
187
+ pageSize = 10
188
188
  }) {
189
189
  return this.httpRequest.request({
190
190
  method: "GET",
@@ -196,8 +196,8 @@ class EvmTransactionsService {
196
196
  query: {
197
197
  "startBlock": startBlock,
198
198
  "endBlock": endBlock,
199
- "pageSize": pageSize,
200
- "pageToken": pageToken
199
+ "pageToken": pageToken,
200
+ "pageSize": pageSize
201
201
  }
202
202
  });
203
203
  }
@@ -229,8 +229,8 @@ class EvmTransactionsService {
229
229
  }
230
230
  listLatestTransactions({
231
231
  chainId,
232
- pageSize = 10,
233
232
  pageToken,
233
+ pageSize = 10,
234
234
  status
235
235
  }) {
236
236
  return this.httpRequest.request({
@@ -240,8 +240,8 @@ class EvmTransactionsService {
240
240
  "chainId": chainId
241
241
  },
242
242
  query: {
243
- "pageSize": pageSize,
244
243
  "pageToken": pageToken,
244
+ "pageSize": pageSize,
245
245
  "status": status
246
246
  }
247
247
  });
@@ -15,7 +15,7 @@ declare class NfTsService {
15
15
  */
16
16
  reindexNft({ chainId, address, tokenId, }: {
17
17
  /**
18
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
19
19
  */
20
20
  chainId: string;
21
21
  /**
@@ -33,23 +33,23 @@ declare class NfTsService {
33
33
  * @returns ListNftTokens
34
34
  * @throws ApiError
35
35
  */
36
- listTokens({ chainId, address, pageSize, pageToken, }: {
36
+ listTokens({ chainId, address, pageToken, pageSize, }: {
37
37
  /**
38
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
39
  */
40
40
  chainId: string;
41
41
  /**
42
42
  * Contract address on the relevant chain.
43
43
  */
44
44
  address: string;
45
- /**
46
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
47
- */
48
- pageSize?: number;
49
45
  /**
50
46
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
51
47
  */
52
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
53
  }): CancelablePromise<ListNftTokens>;
54
54
  /**
55
55
  * Get token details
@@ -59,7 +59,7 @@ declare class NfTsService {
59
59
  */
60
60
  getTokenDetails({ chainId, address, tokenId, }: {
61
61
  /**
62
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
62
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
63
63
  */
64
64
  chainId: string;
65
65
  /**
@@ -20,8 +20,8 @@ class NfTsService {
20
20
  listTokens({
21
21
  chainId,
22
22
  address,
23
- pageSize = 10,
24
- pageToken
23
+ pageToken,
24
+ pageSize = 10
25
25
  }) {
26
26
  return this.httpRequest.request({
27
27
  method: "GET",
@@ -31,8 +31,8 @@ class NfTsService {
31
31
  "address": address
32
32
  },
33
33
  query: {
34
- "pageSize": pageSize,
35
- "pageToken": pageToken
34
+ "pageToken": pageToken,
35
+ "pageSize": pageSize
36
36
  }
37
37
  });
38
38
  }
@@ -34,7 +34,7 @@ declare class PrimaryNetworkBlocksService {
34
34
  * @returns ListPrimaryNetworkBlocksResponse
35
35
  * @throws ApiError
36
36
  */
37
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
37
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
38
38
  /**
39
39
  * A primary network blockchain id or alias.
40
40
  */
@@ -47,14 +47,14 @@ declare class PrimaryNetworkBlocksService {
47
47
  * A primary network (P or X chain) nodeId.
48
48
  */
49
49
  nodeId: string;
50
- /**
51
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
52
- */
53
- pageSize?: number;
54
50
  /**
55
51
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
56
52
  */
57
53
  pageToken?: 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
58
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
59
59
  /**
60
60
  * List latest blocks
@@ -62,7 +62,7 @@ declare class PrimaryNetworkBlocksService {
62
62
  * @returns ListPrimaryNetworkBlocksResponse
63
63
  * @throws ApiError
64
64
  */
65
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
65
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
66
66
  /**
67
67
  * A primary network blockchain id or alias.
68
68
  */
@@ -71,14 +71,14 @@ declare class PrimaryNetworkBlocksService {
71
71
  * Either mainnet or a testnet.
72
72
  */
73
73
  network: Network;
74
- /**
75
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
76
- */
77
- pageSize?: number;
78
74
  /**
79
75
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
80
76
  */
81
77
  pageToken?: string;
78
+ /**
79
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
80
+ */
81
+ pageSize?: number;
82
82
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
83
83
  }
84
84
 
@@ -21,8 +21,8 @@ class PrimaryNetworkBlocksService {
21
21
  blockchainId,
22
22
  network,
23
23
  nodeId,
24
- pageSize = 10,
25
- pageToken
24
+ pageToken,
25
+ pageSize = 10
26
26
  }) {
27
27
  return this.httpRequest.request({
28
28
  method: "GET",
@@ -33,16 +33,16 @@ class PrimaryNetworkBlocksService {
33
33
  "nodeId": nodeId
34
34
  },
35
35
  query: {
36
- "pageSize": pageSize,
37
- "pageToken": pageToken
36
+ "pageToken": pageToken,
37
+ "pageSize": pageSize
38
38
  }
39
39
  });
40
40
  }
41
41
  listLatestPrimaryNetworkBlocks({
42
42
  blockchainId,
43
43
  network,
44
- pageSize = 10,
45
- pageToken
44
+ pageToken,
45
+ pageSize = 10
46
46
  }) {
47
47
  return this.httpRequest.request({
48
48
  method: "GET",
@@ -52,8 +52,8 @@ class PrimaryNetworkBlocksService {
52
52
  "network": network
53
53
  },
54
54
  query: {
55
- "pageSize": pageSize,
56
- "pageToken": pageToken
55
+ "pageToken": pageToken,
56
+ "pageSize": pageSize
57
57
  }
58
58
  });
59
59
  }