@avalabs/glacier-sdk 2.8.0-canary.c938eae.0 → 2.8.0-canary.cc155f4.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 (144) hide show
  1. package/dist/index.d.ts +1136 -414
  2. package/dist/index.js +509 -174
  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 +12 -0
  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/EventType.d.ts +5 -0
  35. package/esm/generated/models/EventType.js +6 -0
  36. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  37. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  38. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  39. package/esm/generated/models/GlacierApiFeature.js +7 -0
  40. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  41. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  42. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  43. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  44. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  45. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  46. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  47. package/esm/generated/models/Method.d.ts +0 -3
  48. package/esm/generated/models/Money.d.ts +0 -3
  49. package/esm/generated/models/NextPageToken.d.ts +8 -0
  50. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  51. package/esm/generated/models/OperationType.d.ts +4 -2
  52. package/esm/generated/models/OperationType.js +3 -1
  53. package/esm/generated/models/PChainBalance.d.ts +15 -15
  54. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  55. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  56. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  57. package/esm/generated/models/PChainTransactionType.js +8 -5
  58. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  59. package/esm/generated/models/PendingReward.d.ts +3 -3
  60. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  61. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  62. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  63. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  64. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  65. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  66. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  67. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  68. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  69. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  70. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  71. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  72. package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
  73. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  74. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  75. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  76. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  77. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  78. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  79. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  80. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  81. package/esm/generated/models/SortByOption.d.ts +9 -0
  82. package/esm/generated/models/SortByOption.js +10 -0
  83. package/esm/generated/models/Subnet.d.ts +17 -0
  84. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  85. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  86. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  87. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  88. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  89. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  90. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  91. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  92. package/esm/generated/models/Utxo.d.ts +30 -30
  93. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  94. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  95. package/esm/generated/models/ValidationStatusType.js +1 -0
  96. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  97. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  98. package/esm/generated/models/WebhookStatus.js +7 -0
  99. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  100. package/esm/generated/models/WebhookStatusType.js +7 -0
  101. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  102. package/esm/generated/models/XChainBalances.d.ts +3 -3
  103. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  104. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  105. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  106. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  107. package/esm/generated/models/XChainTransactionType.js +11 -0
  108. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  109. package/esm/generated/services/EvmBalancesService.js +10 -8
  110. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  111. package/esm/generated/services/EvmBlocksService.js +4 -4
  112. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  113. package/esm/generated/services/EvmChainsService.js +4 -2
  114. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  115. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  116. package/esm/generated/services/EvmTransactionsService.js +32 -32
  117. package/esm/generated/services/NfTsService.d.ts +27 -2
  118. package/esm/generated/services/NfTsService.js +19 -0
  119. package/esm/generated/services/OperationsService.d.ts +11 -11
  120. package/esm/generated/services/OperationsService.js +10 -10
  121. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  122. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  123. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  124. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  125. package/esm/generated/services/PrimaryNetworkService.d.ts +57 -42
  126. package/esm/generated/services/PrimaryNetworkService.js +30 -24
  127. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  128. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  129. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  130. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  131. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  132. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  133. package/esm/generated/services/RpcService.d.ts +25 -0
  134. package/esm/generated/services/RpcService.js +24 -0
  135. package/esm/generated/services/TeleporterService.d.ts +62 -0
  136. package/esm/generated/services/TeleporterService.js +41 -0
  137. package/esm/generated/services/WebhooksService.d.ts +143 -0
  138. package/esm/generated/services/WebhooksService.js +125 -0
  139. package/esm/index.d.ts +41 -3
  140. package/esm/index.js +18 -2
  141. package/package.json +3 -3
  142. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  143. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  144. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -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,25 +66,31 @@ 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
  /**
75
75
  * A wallet address.
76
76
  */
77
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
+ */
78
81
  startBlock?: number;
79
- endBlock?: number;
80
82
  /**
81
- * 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.
82
84
  */
83
- pageSize?: number;
85
+ endBlock?: number;
84
86
  /**
85
87
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
86
88
  */
87
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;
88
94
  }): CancelablePromise<ListTransfersResponse>;
89
95
  /**
90
96
  * List transactions
@@ -94,24 +100,30 @@ declare class EvmTransactionsService {
94
100
  * @returns ListTransactionDetailsResponse
95
101
  * @throws ApiError
96
102
  */
97
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
103
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
98
104
  /**
99
- * 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.
100
106
  */
101
107
  chainId: string;
102
108
  /**
103
109
  * A wallet address.
104
110
  */
105
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;
106
116
  /**
107
117
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
108
118
  */
109
119
  pageSize?: number;
110
120
  /**
111
- * 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.
112
122
  */
113
- pageToken?: string;
114
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
+ */
115
127
  endBlock?: number;
116
128
  /**
117
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.
@@ -124,25 +136,31 @@ declare class EvmTransactionsService {
124
136
  * @returns ListNativeTransactionsResponse
125
137
  * @throws ApiError
126
138
  */
127
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
139
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
128
140
  /**
129
- * 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.
130
142
  */
131
143
  chainId: string;
132
144
  /**
133
145
  * A wallet address.
134
146
  */
135
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
+ */
136
151
  startBlock?: number;
137
- endBlock?: number;
138
152
  /**
139
- * 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.
140
154
  */
141
- pageSize?: number;
155
+ endBlock?: number;
142
156
  /**
143
157
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
144
158
  */
145
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;
146
164
  }): CancelablePromise<ListNativeTransactionsResponse>;
147
165
  /**
148
166
  * List ERC-20 transfers
@@ -150,25 +168,31 @@ declare class EvmTransactionsService {
150
168
  * @returns ListErc20TransactionsResponse
151
169
  * @throws ApiError
152
170
  */
153
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
171
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
154
172
  /**
155
- * 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.
156
174
  */
157
175
  chainId: string;
158
176
  /**
159
177
  * A wallet address.
160
178
  */
161
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
+ */
162
183
  startBlock?: number;
163
- endBlock?: number;
164
184
  /**
165
- * 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.
166
186
  */
167
- pageSize?: number;
187
+ endBlock?: number;
168
188
  /**
169
189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
170
190
  */
171
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;
172
196
  }): CancelablePromise<ListErc20TransactionsResponse>;
173
197
  /**
174
198
  * List ERC-721 transfers
@@ -176,25 +200,31 @@ declare class EvmTransactionsService {
176
200
  * @returns ListErc721TransactionsResponse
177
201
  * @throws ApiError
178
202
  */
179
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
203
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
180
204
  /**
181
- * 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.
182
206
  */
183
207
  chainId: string;
184
208
  /**
185
209
  * A wallet address.
186
210
  */
187
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
+ */
188
215
  startBlock?: number;
189
- endBlock?: number;
190
216
  /**
191
- * 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.
192
218
  */
193
- pageSize?: number;
219
+ endBlock?: number;
194
220
  /**
195
221
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
196
222
  */
197
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;
198
228
  }): CancelablePromise<ListErc721TransactionsResponse>;
199
229
  /**
200
230
  * List ERC-1155 transfers
@@ -202,25 +232,31 @@ declare class EvmTransactionsService {
202
232
  * @returns ListErc1155TransactionsResponse
203
233
  * @throws ApiError
204
234
  */
205
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
235
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
206
236
  /**
207
- * 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.
208
238
  */
209
239
  chainId: string;
210
240
  /**
211
241
  * A wallet address.
212
242
  */
213
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
+ */
214
247
  startBlock?: number;
215
- endBlock?: number;
216
248
  /**
217
- * 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.
218
250
  */
219
- pageSize?: number;
251
+ endBlock?: number;
220
252
  /**
221
253
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
222
254
  */
223
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;
224
260
  }): CancelablePromise<ListErc1155TransactionsResponse>;
225
261
  /**
226
262
  * List internal transactions
@@ -230,25 +266,31 @@ declare class EvmTransactionsService {
230
266
  * @returns ListInternalTransactionsResponse
231
267
  * @throws ApiError
232
268
  */
233
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
269
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
234
270
  /**
235
- * 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.
236
272
  */
237
273
  chainId: string;
238
274
  /**
239
275
  * A wallet address.
240
276
  */
241
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
+ */
242
281
  startBlock?: number;
243
- endBlock?: number;
244
282
  /**
245
- * 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.
246
284
  */
247
- pageSize?: number;
285
+ endBlock?: number;
248
286
  /**
249
287
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
250
288
  */
251
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;
252
294
  }): CancelablePromise<ListInternalTransactionsResponse>;
253
295
  /**
254
296
  * Get transaction
@@ -258,7 +300,7 @@ declare class EvmTransactionsService {
258
300
  */
259
301
  getTransaction({ chainId, txHash, }: {
260
302
  /**
261
- * 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.
262
304
  */
263
305
  chainId: string;
264
306
  /**
@@ -274,7 +316,7 @@ declare class EvmTransactionsService {
274
316
  */
275
317
  getTransactionsForBlock({ chainId, blockId, }: {
276
318
  /**
277
- * 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.
278
320
  */
279
321
  chainId: string;
280
322
  /**
@@ -288,19 +330,19 @@ declare class EvmTransactionsService {
288
330
  * @returns ListNativeTransactionsResponse
289
331
  * @throws ApiError
290
332
  */
291
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
333
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
292
334
  /**
293
- * 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.
294
336
  */
295
337
  chainId: string;
296
- /**
297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
298
- */
299
- pageSize?: number;
300
338
  /**
301
339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
302
340
  */
303
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;
304
346
  /**
305
347
  * A status filter for listed transactions.
306
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
  });
@@ -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
 
@@ -14,7 +15,7 @@ declare class NfTsService {
14
15
  */
15
16
  reindexNft({ chainId, address, tokenId, }: {
16
17
  /**
17
- * 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.
18
19
  */
19
20
  chainId: string;
20
21
  /**
@@ -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, chain alias or blockchain 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.
@@ -34,7 +59,7 @@ declare class NfTsService {
34
59
  */
35
60
  getTokenDetails({ chainId, address, tokenId, }: {
36
61
  /**
37
- * 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.
38
63
  */
39
64
  chainId: string;
40
65
  /**
@@ -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 };