@avalabs/glacier-sdk 3.1.0-canary.0be52fe.0 → 3.1.0-canary.0bf7de8.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 (177) hide show
  1. package/dist/index.d.ts +2201 -690
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +8 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessRequest.d.ts +12 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  7. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  8. package/esm/generated/models/ApiFeature.d.ts +7 -0
  9. package/esm/generated/models/ApiFeature.js +1 -0
  10. package/esm/generated/models/BadGateway.d.ts +16 -0
  11. package/esm/generated/models/BadRequest.d.ts +16 -0
  12. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  13. package/esm/generated/models/BlockchainId.d.ts +2 -0
  14. package/esm/generated/models/BlockchainId.js +1 -1
  15. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  16. package/esm/generated/models/BlockchainIds.js +1 -1
  17. package/esm/generated/models/ChainInfo.d.ts +1 -1
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  19. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  20. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  21. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  22. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  23. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  24. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  25. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  26. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  27. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  28. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  29. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  30. package/esm/generated/models/EvmBlock.d.ts +4 -0
  31. package/esm/generated/models/Forbidden.d.ts +16 -0
  32. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  33. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  34. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  35. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  36. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  37. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  38. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  39. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  40. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  41. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  42. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  43. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  44. package/esm/generated/models/IcmRewardDetails.js +1 -0
  45. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  46. package/esm/generated/models/InternalServerError.d.ts +16 -0
  47. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  48. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  49. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  50. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  51. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  52. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  53. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  54. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  55. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  56. package/esm/generated/models/LogsFormat.d.ts +60 -0
  57. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  58. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  59. package/esm/generated/models/Metric.d.ts +14 -0
  60. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  61. package/esm/generated/models/Network.d.ts +3 -1
  62. package/esm/generated/models/Network.js +1 -1
  63. package/esm/generated/models/NotFound.d.ts +16 -0
  64. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  65. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  66. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  67. package/esm/generated/models/PChainTransactionType.js +1 -1
  68. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  69. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  70. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  71. package/esm/generated/models/PendingIcmMessage.js +1 -0
  72. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  73. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  74. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  75. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  76. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  77. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  78. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  79. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  80. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  81. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  82. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  83. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  84. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  85. package/esm/generated/models/RequestType.d.ts +9 -0
  86. package/esm/generated/models/RequestType.js +1 -0
  87. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  88. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  89. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  90. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  91. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  92. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  93. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  94. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  95. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  96. package/esm/generated/models/Subnet.d.ts +13 -0
  97. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  98. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  99. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  100. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  101. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  102. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  103. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  104. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  105. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  106. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  107. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  108. package/esm/generated/models/TransactionDirectionType.js +1 -0
  109. package/esm/generated/models/Unauthorized.d.ts +16 -0
  110. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  111. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  112. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  113. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  114. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  115. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  116. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  117. package/esm/generated/models/UtxoType.d.ts +3 -0
  118. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  119. package/esm/generated/models/XChainId.d.ts +1 -0
  120. package/esm/generated/models/XChainId.js +1 -1
  121. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  122. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  123. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  124. package/esm/generated/services/EvmBalancesService.js +1 -1
  125. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  126. package/esm/generated/services/EvmBlocksService.js +1 -1
  127. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  128. package/esm/generated/services/EvmChainsService.js +1 -1
  129. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  130. package/esm/generated/services/EvmContractsService.js +1 -1
  131. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  132. package/esm/generated/services/EvmTransactionsService.js +1 -1
  133. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  134. package/esm/generated/services/HealthCheckService.js +1 -1
  135. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  136. package/esm/generated/services/InterchainMessagingService.js +1 -0
  137. package/esm/generated/services/NfTsService.d.ts +6 -6
  138. package/esm/generated/services/NfTsService.js +1 -1
  139. package/esm/generated/services/NotificationsService.d.ts +51 -0
  140. package/esm/generated/services/NotificationsService.js +1 -0
  141. package/esm/generated/services/OperationsService.d.ts +2 -2
  142. package/esm/generated/services/OperationsService.js +1 -1
  143. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  144. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  145. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  146. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  147. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  148. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  149. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  150. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  151. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  152. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  153. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  154. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  155. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  156. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  157. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  158. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  159. package/esm/generated/services/TeleporterService.d.ts +44 -10
  160. package/esm/generated/services/TeleporterService.js +1 -1
  161. package/esm/generated/services/WebhooksService.d.ts +13 -13
  162. package/esm/generated/services/WebhooksService.js +1 -1
  163. package/esm/index.d.ts +57 -8
  164. package/esm/index.js +1 -1
  165. package/package.json +2 -2
  166. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  167. package/esm/generated/models/GlacierApiFeature.js +0 -1
  168. package/esm/generated/models/NetworkType.d.ts +0 -6
  169. package/esm/generated/models/NetworkType.js +0 -1
  170. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  171. package/esm/generated/models/PrimaryNetwork.js +0 -1
  172. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  173. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  174. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  175. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  176. package/esm/generated/services/RpcService.d.ts +0 -25
  177. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,325 +54,914 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
- declare class DefaultService {
58
- readonly httpRequest: BaseHttpRequest;
59
- constructor(httpRequest: BaseHttpRequest);
57
+ type LogsFormatMetadata = {
60
58
  /**
61
- * @returns any
62
- * @throws ApiError
59
+ * The IP address of the client that made the request.
63
60
  */
64
- mediaControllerUploadImage(): CancelablePromise<any>;
65
- }
61
+ ipAddress: string;
62
+ /**
63
+ * The host for the request made by the client.
64
+ */
65
+ host: string;
66
+ /**
67
+ * The user agent of the client that made the request.
68
+ */
69
+ userAgent: string;
70
+ };
66
71
 
67
72
  /**
68
- * ISO 4217 currency code.
73
+ * The type of request made by the client.
69
74
  */
70
- declare enum CurrencyCode {
71
- USD = "usd",
72
- EUR = "eur",
73
- AUD = "aud",
74
- CAD = "cad",
75
- CHF = "chf",
76
- CLP = "clp",
77
- CNY = "cny",
78
- CZK = "czk",
79
- DKK = "dkk",
80
- GBP = "gbp",
81
- HKD = "hkd",
82
- HUF = "huf",
83
- JPY = "jpy",
84
- NZD = "nzd"
75
+ declare enum RequestType {
76
+ DATA = "data",
77
+ RPC = "rpc"
85
78
  }
86
79
 
87
- type Money = {
88
- currencyCode: CurrencyCode;
80
+ type LogsFormat = {
89
81
  /**
90
- * Monetary value in base 10 decimals.
82
+ * The organization id of the request.
91
83
  */
92
- value: number;
93
- };
94
-
95
- type NativeTokenBalance = {
84
+ orgId: string;
96
85
  /**
97
- * The contract name.
86
+ * The unique log id of the request.
98
87
  */
99
- name: string;
88
+ logId: string;
100
89
  /**
101
- * The contract symbol.
90
+ * The timestamp of the request.
102
91
  */
103
- symbol: string;
92
+ eventTimestamp: number;
104
93
  /**
105
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
94
+ * The apiKey used to make the request.
106
95
  */
107
- decimals: number;
96
+ apiKeyId: string;
108
97
  /**
109
- * The logo uri for the address.
98
+ * The alias of the apiKey used to make the request.
110
99
  */
111
- logoUri?: string;
100
+ apiKeyAlias: string;
112
101
  /**
113
- * The evm chain id.
102
+ * The region of the host for the request made by the client.
114
103
  */
115
- chainId: string;
104
+ hostRegion: string;
105
+ requestType: RequestType;
116
106
  /**
117
- * The token price, if available.
107
+ * The path of the request made by the client.
118
108
  */
119
- price?: Money;
109
+ requestPath: string;
120
110
  /**
121
- * The address balance for the token, in units specified by the `decimals` value for the contract.
111
+ * The number of API credits consumed by the request.
122
112
  */
123
- balance: string;
113
+ apiCreditsConsumed: number;
124
114
  /**
125
- * The monetary value of the balance, if a price is available for the token.
115
+ * The duration of the request in milliseconds.
126
116
  */
127
- balanceValue?: Money;
117
+ requestDurationMsecs: number;
118
+ /**
119
+ * The response code of the request.
120
+ */
121
+ responseCode: number;
122
+ /**
123
+ * The chain id of the request.
124
+ */
125
+ chainId?: string;
126
+ /**
127
+ * The rpc method of the request.
128
+ */
129
+ rpcMethod?: string;
130
+ /**
131
+ * The metadata of the request.
132
+ */
133
+ metadata: LogsFormatMetadata;
128
134
  };
129
135
 
130
- type GetNativeBalanceResponse = {
136
+ type LogsResponseDTO = {
131
137
  /**
132
- * The native token balance for the address.
138
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
133
139
  */
134
- nativeTokenBalance: NativeTokenBalance;
140
+ nextPageToken?: string;
141
+ /**
142
+ * The organization id of the request.
143
+ */
144
+ orgId: string;
145
+ /**
146
+ * An array of logs representing the requests made by clients.
147
+ */
148
+ logs: Array<LogsFormat>;
135
149
  };
136
150
 
137
- /**
138
- * The metadata indexing status of the nft.
139
- */
140
- declare enum NftTokenMetadataStatus {
141
- UNKNOWN = "UNKNOWN",
142
- MISSING_TOKEN = "MISSING_TOKEN",
143
- INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
144
- INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
145
- UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
146
- THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
147
- METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
148
- INVALID_METADATA = "INVALID_METADATA",
149
- INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
150
- INDEXED = "INDEXED",
151
- UNINDEXED = "UNINDEXED"
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet",
155
+ DEVNET = "devnet"
152
156
  }
153
157
 
154
- type Erc1155TokenMetadata = {
155
- indexStatus: NftTokenMetadataStatus;
156
- metadataLastUpdatedTimestamp?: number;
157
- name?: string;
158
- symbol?: string;
159
- imageUri?: string;
160
- description?: string;
161
- animationUri?: string;
162
- externalUrl?: string;
163
- background?: string;
164
- decimals?: number;
165
- properties?: string;
166
- };
158
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
159
+ RPC_METHOD = "rpcMethod",
160
+ REQUEST_PATH = "requestPath",
161
+ RESPONSE_CODE = "responseCode",
162
+ COUNTRY = "country",
163
+ CONTINENT = "continent",
164
+ USER_AGENT = "userAgent"
165
+ }
167
166
 
168
- type Erc1155TokenBalance = {
167
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
168
+ HOURLY = "hourly",
169
+ DAILY = "daily",
170
+ WEEKLY = "weekly",
171
+ MONTHLY = "monthly"
172
+ }
173
+
174
+ type RpcUsageMetricsValueAggregated = {
169
175
  /**
170
- * A wallet or contract address in mixed-case checksum encoding.
176
+ * The total number of requests
171
177
  */
172
- address: string;
173
- ercType: Erc1155TokenBalance.ercType;
174
- tokenId: string;
175
- tokenUri: string;
176
- metadata: Erc1155TokenMetadata;
178
+ totalRequests: number;
177
179
  /**
178
- * The evm chain id.
180
+ * The number of API credits used
179
181
  */
180
- chainId: string;
182
+ apiCreditsUsed: number;
181
183
  /**
182
- * The address balance for the token, in units specified by the `decimals` value for the contract.
184
+ * The number of requests per second
183
185
  */
184
- balance: string;
185
- };
186
- declare namespace Erc1155TokenBalance {
187
- enum ercType {
188
- ERC_1155 = "ERC-1155"
189
- }
190
- }
191
-
192
- type Erc721TokenMetadata = {
193
- indexStatus: NftTokenMetadataStatus;
194
- metadataLastUpdatedTimestamp?: number;
195
- name?: string;
196
- symbol?: string;
197
- imageUri?: string;
198
- description?: string;
199
- animationUri?: string;
200
- externalUrl?: string;
201
- background?: string;
202
- attributes?: string;
203
- };
204
-
205
- type Erc721TokenBalance = {
186
+ requestsPerSecond: number;
206
187
  /**
207
- * A wallet or contract address in mixed-case checksum encoding.
188
+ * The success rate percentage
208
189
  */
209
- address: string;
190
+ successRatePercent: number;
210
191
  /**
211
- * The contract name.
192
+ * The median response time in milliseconds
212
193
  */
213
- name: string;
194
+ medianResponseTimeMsecs: number;
214
195
  /**
215
- * The contract symbol.
196
+ * The number of invalid requests
216
197
  */
217
- symbol: string;
218
- ercType: Erc721TokenBalance.ercType;
219
- tokenId: string;
220
- tokenUri: string;
221
- metadata: Erc721TokenMetadata;
198
+ invalidRequests: number;
222
199
  /**
223
- * A wallet or contract address in mixed-case checksum encoding.
200
+ * The number of API credits wasted on invalid requests
224
201
  */
225
- ownerAddress?: string;
202
+ apiCreditsWasted: number;
226
203
  /**
227
- * The evm chain id.
204
+ * Column name used for data aggregation
228
205
  */
229
- chainId: string;
206
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
207
+ /**
208
+ * The value of the column used for data aggregation
209
+ */
210
+ groupValue?: (string | number);
230
211
  };
231
- declare namespace Erc721TokenBalance {
232
- enum ercType {
233
- ERC_721 = "ERC-721"
212
+ declare namespace RpcUsageMetricsValueAggregated {
213
+ /**
214
+ * Column name used for data aggregation
215
+ */
216
+ enum groupedBy {
217
+ RPC_METHOD = "rpcMethod",
218
+ RESPONSE_CODE = "responseCode",
219
+ RL_BYPASS_TOKEN = "rlBypassToken",
220
+ REQUEST_PATH = "requestPath",
221
+ COUNTRY = "country",
222
+ CONTINENT = "continent",
223
+ USER_AGENT = "userAgent",
224
+ NONE = "None"
234
225
  }
235
226
  }
236
227
 
237
- type ListCollectibleBalancesResponse = {
228
+ type RpcMetrics = {
238
229
  /**
239
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
230
+ * The timestamp of the metrics value
240
231
  */
241
- nextPageToken?: string;
232
+ timestamp: number;
242
233
  /**
243
- * The list of ERC-721 and ERC-1155 token balances for the address.
234
+ * The metrics values for the timestamp
244
235
  */
245
- collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
236
+ values: Array<RpcUsageMetricsValueAggregated>;
246
237
  };
247
238
 
248
- type ListErc1155BalancesResponse = {
239
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
249
240
  /**
250
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
241
+ * Duration in which the metrics value is aggregated
251
242
  */
252
- nextPageToken?: string;
243
+ aggregateDuration: string;
253
244
  /**
254
- * The list of ERC-1155 token balances for the address.
245
+ * Metrics values
255
246
  */
256
- erc1155TokenBalances: Array<Erc1155TokenBalance>;
247
+ metrics: Array<RpcMetrics>;
248
+ /**
249
+ * Network type for which the metrics are aggregated
250
+ */
251
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
257
252
  };
253
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
254
+ /**
255
+ * Network type for which the metrics are aggregated
256
+ */
257
+ enum network {
258
+ MAINNET = "mainnet",
259
+ TESTNET = "testnet"
260
+ }
261
+ }
258
262
 
259
- type Erc20TokenBalance = {
263
+ declare enum RpcUsageMetricsGroupByEnum {
264
+ RPC_METHOD = "rpcMethod",
265
+ RESPONSE_CODE = "responseCode",
266
+ RL_BYPASS_TOKEN = "rlBypassToken"
267
+ }
268
+
269
+ declare enum SubnetRpcTimeIntervalGranularity {
270
+ HOURLY = "hourly",
271
+ DAILY = "daily",
272
+ WEEKLY = "weekly",
273
+ MONTHLY = "monthly"
274
+ }
275
+
276
+ type SubnetRpcUsageMetricsResponseDTO = {
260
277
  /**
261
- * A wallet or contract address in mixed-case checksum encoding.
278
+ * Duration in which the metrics value is aggregated
262
279
  */
263
- address: string;
280
+ aggregateDuration: string;
264
281
  /**
265
- * The contract name.
282
+ * Metrics values
266
283
  */
267
- name: string;
284
+ metrics: Array<RpcMetrics>;
268
285
  /**
269
- * The contract symbol.
286
+ * ChainId for which the metrics are aggregated
270
287
  */
271
- symbol: string;
288
+ chainId: string;
289
+ };
290
+
291
+ declare enum TimeIntervalGranularityExtended {
292
+ MINUTE = "minute",
293
+ HOURLY = "hourly",
294
+ DAILY = "daily",
295
+ WEEKLY = "weekly",
296
+ MONTHLY = "monthly"
297
+ }
298
+
299
+ declare enum UsageMetricsGroupByEnum {
300
+ REQUEST_PATH = "requestPath",
301
+ RESPONSE_CODE = "responseCode",
302
+ CHAIN_ID = "chainId",
303
+ API_KEY_ID = "apiKeyId",
304
+ REQUEST_TYPE = "requestType"
305
+ }
306
+
307
+ type UsageMetricsValueDTO = {
272
308
  /**
273
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
309
+ * Column name used for data aggregation
274
310
  */
275
- decimals: number;
311
+ groupedBy: UsageMetricsValueDTO.groupedBy;
276
312
  /**
277
- * The logo uri for the address.
313
+ * The value of the column used for data aggregation
278
314
  */
279
- logoUri?: string;
280
- ercType: Erc20TokenBalance.ercType;
315
+ groupValue?: (string | number);
281
316
  /**
282
- * The token price, if available.
317
+ * The total number of requests
283
318
  */
284
- price?: Money;
319
+ totalRequests: number;
285
320
  /**
286
- * The evm chain id.
321
+ * The number of requests per second
287
322
  */
288
- chainId: string;
323
+ requestsPerSecond: number;
289
324
  /**
290
- * The address balance for the token, in units specified by the `decimals` value for the contract.
325
+ * The success rate percentage
291
326
  */
292
- balance: string;
327
+ successRatePercent: number;
293
328
  /**
294
- * The monetary value of the balance, if a price is available for the token.
329
+ * The median response time in milliseconds
295
330
  */
296
- balanceValue?: Money;
331
+ medianResponseTimeMsecs: number;
332
+ /**
333
+ * The number of invalid requests
334
+ */
335
+ invalidRequests: number;
336
+ /**
337
+ * The number of API credits used
338
+ */
339
+ apiCreditsUsed: number;
340
+ /**
341
+ * The number of API credits wasted on invalid requests
342
+ */
343
+ apiCreditsWasted: number;
297
344
  };
298
- declare namespace Erc20TokenBalance {
299
- enum ercType {
300
- ERC_20 = "ERC-20"
345
+ declare namespace UsageMetricsValueDTO {
346
+ /**
347
+ * Column name used for data aggregation
348
+ */
349
+ enum groupedBy {
350
+ REQUEST_PATH = "requestPath",
351
+ RESPONSE_CODE = "responseCode",
352
+ CHAIN_ID = "chainId",
353
+ API_KEY_ID = "apiKeyId",
354
+ REQUEST_TYPE = "requestType",
355
+ NONE = "None"
301
356
  }
302
357
  }
303
358
 
304
- type ListErc20BalancesResponse = {
359
+ type Metric = {
305
360
  /**
306
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
361
+ * The timestamp of the metrics value
307
362
  */
308
- nextPageToken?: string;
363
+ timestamp: number;
309
364
  /**
310
- * The list of ERC-20 token balances for the address.
365
+ * The metrics values for the timestamp
311
366
  */
312
- erc20TokenBalances: Array<Erc20TokenBalance>;
367
+ values: Array<UsageMetricsValueDTO>;
313
368
  };
314
369
 
315
- type ListErc721BalancesResponse = {
370
+ type UsageMetricsResponseDTO = {
316
371
  /**
317
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
372
+ * Duration in which the metrics value is aggregated
318
373
  */
319
- nextPageToken?: string;
374
+ aggregateDuration: string;
320
375
  /**
321
- * The list of ERC-721 token balances for the address.
376
+ * Org ID for which the metrics are aggregated
322
377
  */
323
- erc721TokenBalances: Array<Erc721TokenBalance>;
378
+ orgId: string;
379
+ /**
380
+ * Metrics values
381
+ */
382
+ metrics: Array<Metric>;
324
383
  };
325
384
 
326
- declare class EvmBalancesService {
385
+ declare class DataApiUsageMetricsService {
327
386
  readonly httpRequest: BaseHttpRequest;
328
387
  constructor(httpRequest: BaseHttpRequest);
329
388
  /**
330
- * Get native token balance
331
- * Gets native token balance of a wallet address.
332
- *
333
- * Balance at a given block can be retrieved with the `blockNumber` parameter.
334
- * @returns GetNativeBalanceResponse
389
+ * Get usage metrics for the Data API
390
+ * Gets metrics for Data API usage over a specified time interval aggregated at the specified time-duration granularity.
391
+ * @returns UsageMetricsResponseDTO Successful response
335
392
  * @throws ApiError
336
393
  */
337
- getNativeBalance({ chainId, address, blockNumber, currency, }: {
394
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
338
395
  /**
339
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
396
+ * Organization ID to fetch usage metrics for
340
397
  */
341
- chainId: string;
398
+ orgId?: string;
342
399
  /**
343
- * A wallet address.
400
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
344
401
  */
345
- address: string;
402
+ startTimestamp?: number;
346
403
  /**
347
- * The block number, if not defined the block number will be the latest block.
404
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
348
405
  */
349
- blockNumber?: string;
406
+ endTimestamp?: number;
350
407
  /**
351
- * The currency that return values should use. Defaults to USD.
408
+ * Time interval granularity for data aggregation
352
409
  */
353
- currency?: CurrencyCode;
354
- }): CancelablePromise<GetNativeBalanceResponse>;
355
- /**
356
- * List ERC-20 balances
357
- * Lists ERC-20 token balances of a wallet address.
358
- *
359
- * Balance at a given block can be retrieved with the `blockNumber` parameter.
360
- *
361
- * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
362
- * @returns ListErc20BalancesResponse
363
- * @throws ApiError
364
- */
365
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
410
+ timeInterval?: TimeIntervalGranularityExtended;
366
411
  /**
367
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
412
+ * Query param for the criterion used for grouping metrics
368
413
  */
369
- chainId: string;
414
+ groupBy?: UsageMetricsGroupByEnum;
370
415
  /**
371
- * A wallet address.
416
+ * Filter data by chain ID.
372
417
  */
373
- address: string;
418
+ chainId?: string;
374
419
  /**
375
- * The block number, if not defined the block number will be the latest block.
420
+ * Filter data by response status code.
421
+ */
422
+ responseCode?: string;
423
+ /**
424
+ * Filter data by request type.
425
+ */
426
+ requestType?: 'data' | 'rpc';
427
+ /**
428
+ * Filter data by API key ID.
429
+ */
430
+ apiKeyId?: string;
431
+ /**
432
+ * Filter data by request path.
433
+ */
434
+ requestPath?: string;
435
+ }): CancelablePromise<UsageMetricsResponseDTO>;
436
+ /**
437
+ * Get logs for requests made by client
438
+ * Gets logs for requests made by client over a specified time interval for a specific organization.
439
+ * @returns LogsResponseDTO Successful response
440
+ * @throws ApiError
441
+ */
442
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
443
+ /**
444
+ * Organization ID to fetch usage metrics for
445
+ */
446
+ orgId?: string;
447
+ /**
448
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
449
+ */
450
+ startTimestamp?: number;
451
+ /**
452
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
453
+ */
454
+ endTimestamp?: number;
455
+ /**
456
+ * Filter data by chain ID.
457
+ */
458
+ chainId?: string;
459
+ /**
460
+ * Filter data by response status code.
461
+ */
462
+ responseCode?: string;
463
+ /**
464
+ * Filter data by request type.
465
+ */
466
+ requestType?: 'data' | 'rpc';
467
+ /**
468
+ * Filter data by API key ID.
469
+ */
470
+ apiKeyId?: string;
471
+ /**
472
+ * Filter data by request path.
473
+ */
474
+ requestPath?: string;
475
+ /**
476
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
477
+ */
478
+ pageToken?: string;
479
+ /**
480
+ * The maximum number of items to return.
481
+ */
482
+ pageSize?: number;
483
+ }): CancelablePromise<LogsResponseDTO>;
484
+ /**
485
+ * Get usage metrics for the Subnet RPC
486
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
487
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
488
+ * @throws ApiError
489
+ */
490
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
491
+ /**
492
+ * Time interval granularity for data aggregation for subnet
493
+ * rpc metrics
494
+ */
495
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
496
+ /**
497
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
498
+ */
499
+ startTimestamp?: number;
500
+ /**
501
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
502
+ */
503
+ endTimestamp?: number;
504
+ /**
505
+ * Query param for the criterion used for grouping metrics
506
+ */
507
+ groupBy?: RpcUsageMetricsGroupByEnum;
508
+ /**
509
+ * Filter data by chain ID.
510
+ */
511
+ chainId?: string;
512
+ /**
513
+ * Filter data by response status code.
514
+ */
515
+ responseCode?: string;
516
+ /**
517
+ * Filter data by RPC method.
518
+ */
519
+ rpcMethod?: string;
520
+ /**
521
+ * Filter data by Rl Bypass API Token.
522
+ */
523
+ rlBypassApiToken?: string;
524
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
525
+ /**
526
+ * @deprecated
527
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
528
+ *
529
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
530
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
531
+ * @throws ApiError
532
+ */
533
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
534
+ /**
535
+ * Time interval granularity for data aggregation for subnet
536
+ * rpc metrics
537
+ */
538
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
539
+ /**
540
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
541
+ */
542
+ startTimestamp?: number;
543
+ /**
544
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
545
+ */
546
+ endTimestamp?: number;
547
+ /**
548
+ * Query param for the criterion used for grouping metrics
549
+ */
550
+ groupBy?: RpcUsageMetricsGroupByEnum;
551
+ /**
552
+ * Filter data by chain ID.
553
+ */
554
+ chainId?: string;
555
+ /**
556
+ * Filter data by response status code.
557
+ */
558
+ responseCode?: string;
559
+ /**
560
+ * Filter data by RPC method.
561
+ */
562
+ rpcMethod?: string;
563
+ /**
564
+ * Filter data by Rl Bypass API Token.
565
+ */
566
+ rlBypassApiToken?: string;
567
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
568
+ /**
569
+ * Get usage metrics for the Primary Network RPC
570
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
571
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
572
+ * @throws ApiError
573
+ */
574
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
575
+ /**
576
+ * Either mainnet or testnet/fuji.
577
+ */
578
+ network: Network;
579
+ /**
580
+ * Time interval granularity for data aggregation for subnet
581
+ * rpc metrics
582
+ */
583
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
584
+ /**
585
+ * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
586
+ */
587
+ startTimestamp?: number;
588
+ /**
589
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
590
+ */
591
+ endTimestamp?: number;
592
+ /**
593
+ * Query param for the criterion used for grouping metrics
594
+ */
595
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
596
+ /**
597
+ * Filter data by response status code.
598
+ */
599
+ responseCode?: string;
600
+ /**
601
+ * Filter data by request path.
602
+ */
603
+ requestPath?: string;
604
+ /**
605
+ * Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
606
+ */
607
+ country?: string;
608
+ /**
609
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
610
+ */
611
+ continent?: string;
612
+ /**
613
+ * Filter data by User Agent.
614
+ */
615
+ userAgent?: string;
616
+ /**
617
+ * Filter data by RPC method.
618
+ */
619
+ rpcMethod?: string;
620
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
621
+ }
622
+
623
+ declare class DefaultService {
624
+ readonly httpRequest: BaseHttpRequest;
625
+ constructor(httpRequest: BaseHttpRequest);
626
+ /**
627
+ * @returns any
628
+ * @throws ApiError
629
+ */
630
+ mediaControllerUploadImage(): CancelablePromise<any>;
631
+ }
632
+
633
+ /**
634
+ * ISO 4217 currency code.
635
+ */
636
+ declare enum CurrencyCode {
637
+ USD = "usd",
638
+ EUR = "eur",
639
+ AUD = "aud",
640
+ CAD = "cad",
641
+ CHF = "chf",
642
+ CLP = "clp",
643
+ CNY = "cny",
644
+ CZK = "czk",
645
+ DKK = "dkk",
646
+ GBP = "gbp",
647
+ HKD = "hkd",
648
+ HUF = "huf",
649
+ JPY = "jpy",
650
+ NZD = "nzd"
651
+ }
652
+
653
+ type Money = {
654
+ currencyCode: CurrencyCode;
655
+ /**
656
+ * Monetary value in base 10 decimals.
657
+ */
658
+ value: number;
659
+ };
660
+
661
+ type NativeTokenBalance = {
662
+ /**
663
+ * The contract name.
664
+ */
665
+ name: string;
666
+ /**
667
+ * The contract symbol.
668
+ */
669
+ symbol: string;
670
+ /**
671
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
672
+ */
673
+ decimals: number;
674
+ /**
675
+ * The logo uri for the address.
676
+ */
677
+ logoUri?: string;
678
+ /**
679
+ * The evm chain id.
680
+ */
681
+ chainId: string;
682
+ /**
683
+ * The token price, if available.
684
+ */
685
+ price?: Money;
686
+ /**
687
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
688
+ */
689
+ balance: string;
690
+ /**
691
+ * The monetary value of the balance, if a price is available for the token.
692
+ */
693
+ balanceValue?: Money;
694
+ };
695
+
696
+ type GetNativeBalanceResponse = {
697
+ /**
698
+ * The native token balance for the address.
699
+ */
700
+ nativeTokenBalance: NativeTokenBalance;
701
+ };
702
+
703
+ /**
704
+ * The metadata indexing status of the nft.
705
+ */
706
+ declare enum NftTokenMetadataStatus {
707
+ UNKNOWN = "UNKNOWN",
708
+ MISSING_TOKEN = "MISSING_TOKEN",
709
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
710
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
711
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
712
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
713
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
714
+ INVALID_METADATA = "INVALID_METADATA",
715
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
716
+ INDEXED = "INDEXED",
717
+ UNINDEXED = "UNINDEXED"
718
+ }
719
+
720
+ type Erc1155TokenMetadata = {
721
+ indexStatus: NftTokenMetadataStatus;
722
+ metadataLastUpdatedTimestamp?: number;
723
+ name?: string;
724
+ symbol?: string;
725
+ imageUri?: string;
726
+ description?: string;
727
+ animationUri?: string;
728
+ externalUrl?: string;
729
+ background?: string;
730
+ decimals?: number;
731
+ properties?: string;
732
+ };
733
+
734
+ type Erc1155TokenBalance = {
735
+ /**
736
+ * A wallet or contract address in mixed-case checksum encoding.
737
+ */
738
+ address: string;
739
+ ercType: Erc1155TokenBalance.ercType;
740
+ tokenId: string;
741
+ tokenUri: string;
742
+ metadata: Erc1155TokenMetadata;
743
+ /**
744
+ * The evm chain id.
745
+ */
746
+ chainId: string;
747
+ /**
748
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
749
+ */
750
+ balance: string;
751
+ };
752
+ declare namespace Erc1155TokenBalance {
753
+ enum ercType {
754
+ ERC_1155 = "ERC-1155"
755
+ }
756
+ }
757
+
758
+ type Erc721TokenMetadata = {
759
+ indexStatus: NftTokenMetadataStatus;
760
+ metadataLastUpdatedTimestamp?: number;
761
+ name?: string;
762
+ symbol?: string;
763
+ imageUri?: string;
764
+ description?: string;
765
+ animationUri?: string;
766
+ externalUrl?: string;
767
+ background?: string;
768
+ attributes?: string;
769
+ };
770
+
771
+ type Erc721TokenBalance = {
772
+ /**
773
+ * A wallet or contract address in mixed-case checksum encoding.
774
+ */
775
+ address: string;
776
+ /**
777
+ * The contract name.
778
+ */
779
+ name: string;
780
+ /**
781
+ * The contract symbol.
782
+ */
783
+ symbol: string;
784
+ ercType: Erc721TokenBalance.ercType;
785
+ tokenId: string;
786
+ tokenUri: string;
787
+ metadata: Erc721TokenMetadata;
788
+ /**
789
+ * A wallet or contract address in mixed-case checksum encoding.
790
+ */
791
+ ownerAddress?: string;
792
+ /**
793
+ * The evm chain id.
794
+ */
795
+ chainId: string;
796
+ };
797
+ declare namespace Erc721TokenBalance {
798
+ enum ercType {
799
+ ERC_721 = "ERC-721"
800
+ }
801
+ }
802
+
803
+ type ListCollectibleBalancesResponse = {
804
+ /**
805
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
806
+ */
807
+ nextPageToken?: string;
808
+ /**
809
+ * The list of ERC-721 and ERC-1155 token balances for the address.
810
+ */
811
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
812
+ };
813
+
814
+ type ListErc1155BalancesResponse = {
815
+ /**
816
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
817
+ */
818
+ nextPageToken?: string;
819
+ /**
820
+ * The native token balance for the address.
821
+ */
822
+ nativeTokenBalance: NativeTokenBalance;
823
+ /**
824
+ * The list of ERC-1155 token balances for the address.
825
+ */
826
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
827
+ };
828
+
829
+ type Erc20TokenBalance = {
830
+ /**
831
+ * A wallet or contract address in mixed-case checksum encoding.
832
+ */
833
+ address: string;
834
+ /**
835
+ * The contract name.
836
+ */
837
+ name: string;
838
+ /**
839
+ * The contract symbol.
840
+ */
841
+ symbol: string;
842
+ /**
843
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
844
+ */
845
+ decimals: number;
846
+ /**
847
+ * The logo uri for the address.
848
+ */
849
+ logoUri?: string;
850
+ ercType: Erc20TokenBalance.ercType;
851
+ /**
852
+ * The token price, if available.
853
+ */
854
+ price?: Money;
855
+ /**
856
+ * The evm chain id.
857
+ */
858
+ chainId: string;
859
+ /**
860
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
861
+ */
862
+ balance: string;
863
+ /**
864
+ * The monetary value of the balance, if a price is available for the token.
865
+ */
866
+ balanceValue?: Money;
867
+ /**
868
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
869
+ */
870
+ tokenReputation: Erc20TokenBalance.tokenReputation | null;
871
+ };
872
+ declare namespace Erc20TokenBalance {
873
+ enum ercType {
874
+ ERC_20 = "ERC-20"
875
+ }
876
+ /**
877
+ * Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
878
+ */
879
+ enum tokenReputation {
880
+ MALICIOUS = "Malicious",
881
+ BENIGN = "Benign"
882
+ }
883
+ }
884
+
885
+ type ListErc20BalancesResponse = {
886
+ /**
887
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
888
+ */
889
+ nextPageToken?: string;
890
+ /**
891
+ * The native token balance for the address.
892
+ */
893
+ nativeTokenBalance: NativeTokenBalance;
894
+ /**
895
+ * The list of ERC-20 token balances for the address.
896
+ */
897
+ erc20TokenBalances: Array<Erc20TokenBalance>;
898
+ };
899
+
900
+ type ListErc721BalancesResponse = {
901
+ /**
902
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
903
+ */
904
+ nextPageToken?: string;
905
+ /**
906
+ * The native token balance for the address.
907
+ */
908
+ nativeTokenBalance: NativeTokenBalance;
909
+ /**
910
+ * The list of ERC-721 token balances for the address.
911
+ */
912
+ erc721TokenBalances: Array<Erc721TokenBalance>;
913
+ };
914
+
915
+ declare class EvmBalancesService {
916
+ readonly httpRequest: BaseHttpRequest;
917
+ constructor(httpRequest: BaseHttpRequest);
918
+ /**
919
+ * Get native token balance
920
+ * Gets native token balance of a wallet address.
921
+ *
922
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
923
+ * @returns GetNativeBalanceResponse Successful response
924
+ * @throws ApiError
925
+ */
926
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
927
+ /**
928
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
929
+ */
930
+ chainId: string;
931
+ /**
932
+ * A wallet address.
933
+ */
934
+ address: string;
935
+ /**
936
+ * The block number, if not defined the block number will be the latest block.
937
+ */
938
+ blockNumber?: string;
939
+ /**
940
+ * The currency that return values should use. Defaults to USD.
941
+ */
942
+ currency?: CurrencyCode;
943
+ }): CancelablePromise<GetNativeBalanceResponse>;
944
+ /**
945
+ * List ERC-20 balances
946
+ * Lists ERC-20 token balances of a wallet address.
947
+ *
948
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
949
+ *
950
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
951
+ * @returns ListErc20BalancesResponse Successful response
952
+ * @throws ApiError
953
+ */
954
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
955
+ /**
956
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
957
+ */
958
+ chainId: string;
959
+ /**
960
+ * A wallet address.
961
+ */
962
+ address: string;
963
+ /**
964
+ * The block number, if not defined the block number will be the latest block.
376
965
  */
377
966
  blockNumber?: string;
378
967
  /**
@@ -401,12 +990,12 @@ declare class EvmBalancesService {
401
990
  * Lists ERC-721 token balances of a wallet address.
402
991
  *
403
992
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
404
- * @returns ListErc721BalancesResponse
993
+ * @returns ListErc721BalancesResponse Successful response
405
994
  * @throws ApiError
406
995
  */
407
996
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
408
997
  /**
409
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
998
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
410
999
  */
411
1000
  chainId: string;
412
1001
  /**
@@ -433,12 +1022,12 @@ declare class EvmBalancesService {
433
1022
  * Balance at a given block can be retrieved with the `blockNumber` parameter.
434
1023
  *
435
1024
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
436
- * @returns ListErc1155BalancesResponse
1025
+ * @returns ListErc1155BalancesResponse Successful response
437
1026
  * @throws ApiError
438
1027
  */
439
1028
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
440
1029
  /**
441
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1030
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
442
1031
  */
443
1032
  chainId: string;
444
1033
  /**
@@ -467,12 +1056,12 @@ declare class EvmBalancesService {
467
1056
  * Lists ERC-721 and ERC-1155 token balances of a wallet address.
468
1057
  *
469
1058
  * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
470
- * @returns ListCollectibleBalancesResponse
1059
+ * @returns ListCollectibleBalancesResponse Successful response
471
1060
  * @throws ApiError
472
1061
  */
473
1062
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
474
1063
  /**
475
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1064
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
476
1065
  */
477
1066
  chainId: string;
478
1067
  /**
@@ -495,6 +1084,10 @@ declare class EvmBalancesService {
495
1084
  }
496
1085
 
497
1086
  type GetEvmBlockResponse = {
1087
+ /**
1088
+ * The EVM chain ID on which the block was created.
1089
+ */
1090
+ chainId: string;
498
1091
  /**
499
1092
  * The block number on the chain.
500
1093
  */
@@ -539,6 +1132,10 @@ type GetEvmBlockResponse = {
539
1132
  };
540
1133
 
541
1134
  type EvmBlock = {
1135
+ /**
1136
+ * The EVM chain ID on which the block was created.
1137
+ */
1138
+ chainId: string;
542
1139
  /**
543
1140
  * The block number on the chain.
544
1141
  */
@@ -593,15 +1190,35 @@ type ListEvmBlocksResponse = {
593
1190
  declare class EvmBlocksService {
594
1191
  readonly httpRequest: BaseHttpRequest;
595
1192
  constructor(httpRequest: BaseHttpRequest);
1193
+ /**
1194
+ * List latest blocks across all supported EVM chains
1195
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1196
+ * @returns ListEvmBlocksResponse Successful response
1197
+ * @throws ApiError
1198
+ */
1199
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1200
+ /**
1201
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1202
+ */
1203
+ pageToken?: string;
1204
+ /**
1205
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1206
+ */
1207
+ pageSize?: number;
1208
+ /**
1209
+ * Either mainnet or testnet/fuji.
1210
+ */
1211
+ network?: Network;
1212
+ }): CancelablePromise<ListEvmBlocksResponse>;
596
1213
  /**
597
1214
  * List latest blocks
598
1215
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
599
- * @returns ListEvmBlocksResponse
1216
+ * @returns ListEvmBlocksResponse Successful response
600
1217
  * @throws ApiError
601
1218
  */
602
1219
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
603
1220
  /**
604
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1221
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
605
1222
  */
606
1223
  chainId: string;
607
1224
  /**
@@ -616,12 +1233,12 @@ declare class EvmBlocksService {
616
1233
  /**
617
1234
  * Get block
618
1235
  * Gets the details of an individual block on the EVM-compatible chain.
619
- * @returns GetEvmBlockResponse
1236
+ * @returns GetEvmBlockResponse Successful response
620
1237
  * @throws ApiError
621
1238
  */
622
1239
  getBlock({ chainId, blockId, }: {
623
1240
  /**
624
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1241
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
625
1242
  */
626
1243
  chainId: string;
627
1244
  /**
@@ -631,6 +1248,12 @@ declare class EvmBlocksService {
631
1248
  }): CancelablePromise<GetEvmBlockResponse>;
632
1249
  }
633
1250
 
1251
+ declare enum ApiFeature {
1252
+ NFT_INDEXING = "nftIndexing",
1253
+ WEBHOOKS = "webhooks",
1254
+ TELEPORTER = "teleporter"
1255
+ }
1256
+
634
1257
  /**
635
1258
  * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
636
1259
  */
@@ -686,14 +1309,9 @@ type GetChainResponse = {
686
1309
  networkToken: NetworkToken;
687
1310
  chainLogoUri?: string;
688
1311
  private?: boolean;
689
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1312
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
690
1313
  };
691
1314
 
692
- declare enum GlacierApiFeature {
693
- NFT_INDEXING = "nftIndexing",
694
- WEBHOOKS = "webhooks"
695
- }
696
-
697
1315
  type ChainInfo = {
698
1316
  chainId: string;
699
1317
  status: ChainStatus;
@@ -711,49 +1329,235 @@ type ChainInfo = {
711
1329
  networkToken: NetworkToken;
712
1330
  chainLogoUri?: string;
713
1331
  private?: boolean;
714
- enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
1332
+ enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1333
+ };
1334
+
1335
+ type ListAddressChainsResponse = {
1336
+ indexedChains?: Array<ChainInfo>;
1337
+ unindexedChains?: Array<string>;
715
1338
  };
716
1339
 
717
1340
  type ListChainsResponse = {
718
1341
  chains: Array<ChainInfo>;
719
1342
  };
720
1343
 
721
- declare enum NetworkType {
722
- MAINNET = "mainnet",
723
- TESTNET = "testnet"
1344
+ /**
1345
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1346
+ */
1347
+ declare enum TransactionMethodType {
1348
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1349
+ CONTRACT_CALL = "CONTRACT_CALL",
1350
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1351
+ }
1352
+
1353
+ type Method = {
1354
+ callType: TransactionMethodType;
1355
+ /**
1356
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1357
+ */
1358
+ methodHash: string;
1359
+ /**
1360
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1361
+ */
1362
+ methodName?: string;
1363
+ };
1364
+
1365
+ type RichAddress = {
1366
+ /**
1367
+ * The contract name.
1368
+ */
1369
+ name?: string;
1370
+ /**
1371
+ * The contract symbol.
1372
+ */
1373
+ symbol?: string;
1374
+ /**
1375
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1376
+ */
1377
+ decimals?: number;
1378
+ /**
1379
+ * The logo uri for the address.
1380
+ */
1381
+ logoUri?: string;
1382
+ /**
1383
+ * A wallet or contract address in mixed-case checksum encoding.
1384
+ */
1385
+ address: string;
1386
+ };
1387
+
1388
+ type NativeTransaction = {
1389
+ /**
1390
+ * The block number on the chain.
1391
+ */
1392
+ blockNumber: string;
1393
+ /**
1394
+ * The block finality timestamp.
1395
+ */
1396
+ blockTimestamp: number;
1397
+ /**
1398
+ * The block hash identifier.
1399
+ */
1400
+ blockHash: string;
1401
+ /**
1402
+ * The EVM chain ID on which the transaction occured.
1403
+ */
1404
+ chainId: string;
1405
+ /**
1406
+ * The index at which the transaction occured in the block (0-indexed).
1407
+ */
1408
+ blockIndex: number;
1409
+ /**
1410
+ * The transaction hash identifier.
1411
+ */
1412
+ txHash: string;
1413
+ /**
1414
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1415
+ */
1416
+ txStatus: string;
1417
+ /**
1418
+ * The transaction type.
1419
+ */
1420
+ txType: number;
1421
+ /**
1422
+ * The gas limit set for the transaction.
1423
+ */
1424
+ gasLimit: string;
1425
+ /**
1426
+ * The amount of gas used.
1427
+ */
1428
+ gasUsed: string;
1429
+ /**
1430
+ * The gas price denominated by the number of decimals of the native token.
1431
+ */
1432
+ gasPrice: string;
1433
+ /**
1434
+ * The nonce used by the sender of the transaction.
1435
+ */
1436
+ nonce: string;
1437
+ from: RichAddress;
1438
+ to: RichAddress;
1439
+ method?: Method;
1440
+ value: string;
1441
+ };
1442
+
1443
+ type ListNativeTransactionsResponse = {
1444
+ /**
1445
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1446
+ */
1447
+ nextPageToken?: string;
1448
+ transactions: Array<NativeTransaction>;
1449
+ };
1450
+
1451
+ declare enum TransactionStatus {
1452
+ FAILED = "failed",
1453
+ SUCCESS = "success"
724
1454
  }
725
1455
 
726
1456
  declare class EvmChainsService {
727
1457
  readonly httpRequest: BaseHttpRequest;
728
1458
  constructor(httpRequest: BaseHttpRequest);
1459
+ /**
1460
+ * List all chains associated with a given address
1461
+ * Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
1462
+ * @returns ListAddressChainsResponse Successful response
1463
+ * @throws ApiError
1464
+ */
1465
+ listAddressChains({ address, }: {
1466
+ /**
1467
+ * A wallet address.
1468
+ */
1469
+ address: string;
1470
+ }): CancelablePromise<ListAddressChainsResponse>;
729
1471
  /**
730
1472
  * List chains
731
- * Lists the supported EVM-compatible chains. Filterable by network.
732
- * @returns ListChainsResponse
1473
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1474
+ * @returns ListChainsResponse Successful response
1475
+ * @throws ApiError
1476
+ */
1477
+ supportedChains({ network, feature, }: {
1478
+ /**
1479
+ * Either mainnet or testnet/fuji.
1480
+ */
1481
+ network?: Network;
1482
+ /**
1483
+ * Filter by feature.
1484
+ */
1485
+ feature?: ApiFeature;
1486
+ }): CancelablePromise<ListChainsResponse>;
1487
+ /**
1488
+ * Get chain information
1489
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1490
+ * @returns GetChainResponse Successful response
1491
+ * @throws ApiError
1492
+ */
1493
+ getChainInfo({ chainId, }: {
1494
+ /**
1495
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1496
+ */
1497
+ chainId: string;
1498
+ }): CancelablePromise<GetChainResponse>;
1499
+ /**
1500
+ * @deprecated
1501
+ * **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
1502
+ *
1503
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1504
+ * @returns ListAddressChainsResponse Successful response
1505
+ * @throws ApiError
1506
+ */
1507
+ getAddressChains({ address, }: {
1508
+ /**
1509
+ * A wallet address.
1510
+ */
1511
+ address: string;
1512
+ }): CancelablePromise<ListAddressChainsResponse>;
1513
+ /**
1514
+ * @deprecated
1515
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1516
+ *
1517
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1518
+ * @returns ListNativeTransactionsResponse Successful response
733
1519
  * @throws ApiError
734
1520
  */
735
- supportedChains({ network, feature, }: {
1521
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
736
1522
  /**
737
- * mainnet or testnet.
1523
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
738
1524
  */
739
- network?: NetworkType;
1525
+ pageToken?: string;
740
1526
  /**
741
- * Filter by feature.
1527
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
742
1528
  */
743
- feature?: GlacierApiFeature;
744
- }): CancelablePromise<ListChainsResponse>;
1529
+ pageSize?: number;
1530
+ /**
1531
+ * Either mainnet or testnet/fuji.
1532
+ */
1533
+ network?: Network;
1534
+ /**
1535
+ * A status filter for listed transactions.
1536
+ */
1537
+ status?: TransactionStatus;
1538
+ }): CancelablePromise<ListNativeTransactionsResponse>;
745
1539
  /**
746
- * Get chain information
747
- * Gets chain information for the EVM-compatible chain if supported by the api.
748
- * @returns GetChainResponse
1540
+ * @deprecated
1541
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1542
+ *
1543
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1544
+ * @returns ListEvmBlocksResponse Successful response
749
1545
  * @throws ApiError
750
1546
  */
751
- getChainInfo({ chainId, }: {
1547
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
752
1548
  /**
753
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1549
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
754
1550
  */
755
- chainId: string;
756
- }): CancelablePromise<GetChainResponse>;
1551
+ pageToken?: string;
1552
+ /**
1553
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1554
+ */
1555
+ pageSize?: number;
1556
+ /**
1557
+ * Either mainnet or testnet/fuji.
1558
+ */
1559
+ network?: Network;
1560
+ }): CancelablePromise<ListEvmBlocksResponse>;
757
1561
  }
758
1562
 
759
1563
  type ImageAsset = {
@@ -1040,12 +1844,12 @@ declare class EvmContractsService {
1040
1844
  /**
1041
1845
  * Get contract metadata
1042
1846
  * Gets metadata about the contract at the given address.
1043
- * @returns any
1847
+ * @returns any Successful response
1044
1848
  * @throws ApiError
1045
1849
  */
1046
1850
  getContractMetadata({ chainId, address, }: {
1047
1851
  /**
1048
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1852
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1049
1853
  */
1050
1854
  chainId: string;
1051
1855
  /**
@@ -1056,12 +1860,12 @@ declare class EvmContractsService {
1056
1860
  /**
1057
1861
  * Update contract information
1058
1862
  * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1059
- * @returns UpdateContractResponse
1863
+ * @returns UpdateContractResponse Successful response
1060
1864
  * @throws ApiError
1061
1865
  */
1062
1866
  updateContractInfo({ chainId, address, requestBody, }: {
1063
1867
  /**
1064
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1868
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1065
1869
  */
1066
1870
  chainId: string;
1067
1871
  /**
@@ -1088,29 +1892,6 @@ declare namespace Erc1155Token {
1088
1892
  }
1089
1893
  }
1090
1894
 
1091
- type RichAddress = {
1092
- /**
1093
- * The contract name.
1094
- */
1095
- name?: string;
1096
- /**
1097
- * The contract symbol.
1098
- */
1099
- symbol?: string;
1100
- /**
1101
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1102
- */
1103
- decimals?: number;
1104
- /**
1105
- * The logo uri for the address.
1106
- */
1107
- logoUri?: string;
1108
- /**
1109
- * A wallet or contract address in mixed-case checksum encoding.
1110
- */
1111
- address: string;
1112
- };
1113
-
1114
1895
  type Erc1155TransferDetails = {
1115
1896
  from: RichAddress;
1116
1897
  to: RichAddress;
@@ -1195,27 +1976,6 @@ type Erc721TransferDetails = {
1195
1976
  erc721Token: Erc721Token;
1196
1977
  };
1197
1978
 
1198
- /**
1199
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1200
- */
1201
- declare enum TransactionMethodType {
1202
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1203
- CONTRACT_CALL = "CONTRACT_CALL",
1204
- CONTRACT_CREATION = "CONTRACT_CREATION"
1205
- }
1206
-
1207
- type Method = {
1208
- callType: TransactionMethodType;
1209
- /**
1210
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1211
- */
1212
- methodHash: string;
1213
- /**
1214
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1215
- */
1216
- methodName?: string;
1217
- };
1218
-
1219
1979
  type FullNativeTransactionDetails = {
1220
1980
  /**
1221
1981
  * The block number on the chain.
@@ -1229,6 +1989,10 @@ type FullNativeTransactionDetails = {
1229
1989
  * The block hash identifier.
1230
1990
  */
1231
1991
  blockHash: string;
1992
+ /**
1993
+ * The EVM chain ID on which the transaction occured.
1994
+ */
1995
+ chainId: string;
1232
1996
  /**
1233
1997
  * The index at which the transaction occured in the block (0-indexed).
1234
1998
  */
@@ -1309,6 +2073,24 @@ type NetworkTokenDetails = {
1309
2073
  historicalPrice?: Money;
1310
2074
  };
1311
2075
 
2076
+ declare enum TransactionDirectionType {
2077
+ SOURCE_TRANSACTION = "SOURCE_TRANSACTION",
2078
+ DESTINATION_TRANSACTION = "DESTINATION_TRANSACTION"
2079
+ }
2080
+
2081
+ type TeleporterMessageInfo = {
2082
+ teleporterMessageId: string;
2083
+ direction: TransactionDirectionType;
2084
+ /**
2085
+ * chain id of the source chain. valid only for destination transactions
2086
+ */
2087
+ sourceChainId?: Record<string, any>;
2088
+ /**
2089
+ * chain id of the destination chain. valid only for source transactions
2090
+ */
2091
+ destinationChainId?: Record<string, any>;
2092
+ };
2093
+
1312
2094
  type GetTransactionResponse = {
1313
2095
  /**
1314
2096
  * The list of ERC-20 transfers.
@@ -1328,6 +2110,10 @@ type GetTransactionResponse = {
1328
2110
  internalTransactions?: Array<InternalTransactionDetails>;
1329
2111
  networkTokenDetails: NetworkTokenDetails;
1330
2112
  nativeTransaction: FullNativeTransactionDetails;
2113
+ /**
2114
+ * Corresponding teleporter message info if available.
2115
+ */
2116
+ teleporterMessageInfo?: TeleporterMessageInfo;
1331
2117
  };
1332
2118
 
1333
2119
  type ListContractsResponse = {
@@ -1470,65 +2256,6 @@ type ListInternalTransactionsResponse = {
1470
2256
  transactions: Array<InternalTransaction>;
1471
2257
  };
1472
2258
 
1473
- type NativeTransaction = {
1474
- /**
1475
- * The block number on the chain.
1476
- */
1477
- blockNumber: string;
1478
- /**
1479
- * The block finality timestamp.
1480
- */
1481
- blockTimestamp: number;
1482
- /**
1483
- * The block hash identifier.
1484
- */
1485
- blockHash: string;
1486
- /**
1487
- * The index at which the transaction occured in the block (0-indexed).
1488
- */
1489
- blockIndex: number;
1490
- /**
1491
- * The transaction hash identifier.
1492
- */
1493
- txHash: string;
1494
- /**
1495
- * The transaction status, which is either 0 (failed) or 1 (successful).
1496
- */
1497
- txStatus: string;
1498
- /**
1499
- * The transaction type.
1500
- */
1501
- txType: number;
1502
- /**
1503
- * The gas limit set for the transaction.
1504
- */
1505
- gasLimit: string;
1506
- /**
1507
- * The amount of gas used.
1508
- */
1509
- gasUsed: string;
1510
- /**
1511
- * The gas price denominated by the number of decimals of the native token.
1512
- */
1513
- gasPrice: string;
1514
- /**
1515
- * The nonce used by the sender of the transaction.
1516
- */
1517
- nonce: string;
1518
- from: RichAddress;
1519
- to: RichAddress;
1520
- method?: Method;
1521
- value: string;
1522
- };
1523
-
1524
- type ListNativeTransactionsResponse = {
1525
- /**
1526
- * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1527
- */
1528
- nextPageToken?: string;
1529
- transactions: Array<NativeTransaction>;
1530
- };
1531
-
1532
2259
  type TransactionDetails = {
1533
2260
  /**
1534
2261
  * The native (top-level) transaction details.
@@ -1573,49 +2300,170 @@ declare enum SortOrder {
1573
2300
  DESC = "desc"
1574
2301
  }
1575
2302
 
1576
- declare enum TransactionStatus {
1577
- FAILED = "failed",
1578
- SUCCESS = "success"
1579
- }
1580
-
1581
2303
  declare class EvmTransactionsService {
1582
2304
  readonly httpRequest: BaseHttpRequest;
1583
2305
  constructor(httpRequest: BaseHttpRequest);
2306
+ /**
2307
+ * List the latest transactions across all supported EVM chains
2308
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2309
+ * @returns ListNativeTransactionsResponse Successful response
2310
+ * @throws ApiError
2311
+ */
2312
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2313
+ /**
2314
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2315
+ */
2316
+ pageToken?: string;
2317
+ /**
2318
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2319
+ */
2320
+ pageSize?: number;
2321
+ /**
2322
+ * Either mainnet or testnet/fuji.
2323
+ */
2324
+ network?: Network;
2325
+ /**
2326
+ * A status filter for listed transactions.
2327
+ */
2328
+ status?: TransactionStatus;
2329
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1584
2330
  /**
1585
2331
  * Get deployment transaction
1586
2332
  * If the address is a smart contract, returns the transaction in which it was deployed.
1587
- * @returns GetTransactionResponse
2333
+ * @returns GetTransactionResponse Successful response
1588
2334
  * @throws ApiError
1589
2335
  */
1590
2336
  getDeploymentTransaction({ chainId, address, currency, }: {
1591
2337
  /**
1592
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2338
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2339
+ */
2340
+ chainId: string;
2341
+ /**
2342
+ * Contract address on the relevant chain.
2343
+ */
2344
+ address: string;
2345
+ /**
2346
+ * The currency that return values should use. Defaults to USD.
2347
+ */
2348
+ currency?: CurrencyCode;
2349
+ }): CancelablePromise<GetTransactionResponse>;
2350
+ /**
2351
+ * List deployed contracts
2352
+ * Lists all contracts deployed by the given address.
2353
+ * @returns ListContractsResponse Successful response
2354
+ * @throws ApiError
2355
+ */
2356
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
2357
+ /**
2358
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2359
+ */
2360
+ chainId: string;
2361
+ /**
2362
+ * A wallet address.
2363
+ */
2364
+ address: string;
2365
+ /**
2366
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2367
+ */
2368
+ pageToken?: string;
2369
+ /**
2370
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2371
+ */
2372
+ pageSize?: number;
2373
+ }): CancelablePromise<ListContractsResponse>;
2374
+ /**
2375
+ * List ERC transfers
2376
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
2377
+ * @returns ListTransfersResponse Successful response
2378
+ * @throws ApiError
2379
+ */
2380
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2381
+ /**
2382
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2383
+ */
2384
+ chainId: string;
2385
+ /**
2386
+ * A wallet address.
2387
+ */
2388
+ address: string;
2389
+ /**
2390
+ * 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.
2391
+ */
2392
+ startBlock?: number;
2393
+ /**
2394
+ * 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.
2395
+ */
2396
+ endBlock?: number;
2397
+ /**
2398
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2399
+ */
2400
+ pageToken?: string;
2401
+ /**
2402
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2403
+ */
2404
+ pageSize?: number;
2405
+ }): CancelablePromise<ListTransfersResponse>;
2406
+ /**
2407
+ * List transactions
2408
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
2409
+ *
2410
+ * Filterable by block ranges.
2411
+ * @returns ListTransactionDetailsResponse Successful response
2412
+ * @throws ApiError
2413
+ */
2414
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
2415
+ /**
2416
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2417
+ */
2418
+ chainId: string;
2419
+ /**
2420
+ * A wallet address.
2421
+ */
2422
+ address: string;
2423
+ /**
2424
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2425
+ */
2426
+ pageToken?: string;
2427
+ /**
2428
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2429
+ */
2430
+ pageSize?: number;
2431
+ /**
2432
+ * 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.
1593
2433
  */
1594
- chainId: string;
2434
+ startBlock?: number;
1595
2435
  /**
1596
- * Contract address on the relevant chain.
2436
+ * 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.
1597
2437
  */
1598
- address: string;
2438
+ endBlock?: number;
1599
2439
  /**
1600
- * The currency that return values should use. Defaults to USD.
2440
+ * 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.
1601
2441
  */
1602
- currency?: CurrencyCode;
1603
- }): CancelablePromise<GetTransactionResponse>;
2442
+ sortOrder?: SortOrder;
2443
+ }): CancelablePromise<ListTransactionDetailsResponse>;
1604
2444
  /**
1605
- * List deployed contracts
1606
- * Lists all contracts deployed by the given address.
1607
- * @returns ListContractsResponse
2445
+ * List native transactions
2446
+ * Lists native transactions for an address. Filterable by block range.
2447
+ * @returns ListNativeTransactionsResponse Successful response
1608
2448
  * @throws ApiError
1609
2449
  */
1610
- listContractDeployments({ chainId, address, pageToken, pageSize, }: {
2450
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1611
2451
  /**
1612
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2452
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1613
2453
  */
1614
2454
  chainId: string;
1615
2455
  /**
1616
2456
  * A wallet address.
1617
2457
  */
1618
2458
  address: string;
2459
+ /**
2460
+ * 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.
2461
+ */
2462
+ startBlock?: number;
2463
+ /**
2464
+ * 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.
2465
+ */
2466
+ endBlock?: number;
1619
2467
  /**
1620
2468
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1621
2469
  */
@@ -1624,16 +2472,16 @@ declare class EvmTransactionsService {
1624
2472
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1625
2473
  */
1626
2474
  pageSize?: number;
1627
- }): CancelablePromise<ListContractsResponse>;
2475
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1628
2476
  /**
1629
- * List ERC transfers
1630
- * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1631
- * @returns ListTransfersResponse
2477
+ * List ERC-20 transfers
2478
+ * Lists ERC-20 transfers for an address. Filterable by block range.
2479
+ * @returns ListErc20TransactionsResponse Successful response
1632
2480
  * @throws ApiError
1633
2481
  */
1634
- listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2482
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1635
2483
  /**
1636
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2484
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1637
2485
  */
1638
2486
  chainId: string;
1639
2487
  /**
@@ -1656,24 +2504,30 @@ declare class EvmTransactionsService {
1656
2504
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1657
2505
  */
1658
2506
  pageSize?: number;
1659
- }): CancelablePromise<ListTransfersResponse>;
2507
+ }): CancelablePromise<ListErc20TransactionsResponse>;
1660
2508
  /**
1661
- * List transactions
1662
- * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1663
- *
1664
- * Filterable by block ranges.
1665
- * @returns ListTransactionDetailsResponse
2509
+ * List ERC-721 transfers
2510
+ * Lists ERC-721 transfers for an address. Filterable by block range.
2511
+ * @returns ListErc721TransactionsResponse Successful response
1666
2512
  * @throws ApiError
1667
2513
  */
1668
- listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
2514
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1669
2515
  /**
1670
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2516
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1671
2517
  */
1672
2518
  chainId: string;
1673
2519
  /**
1674
2520
  * A wallet address.
1675
2521
  */
1676
2522
  address: string;
2523
+ /**
2524
+ * 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.
2525
+ */
2526
+ startBlock?: number;
2527
+ /**
2528
+ * 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.
2529
+ */
2530
+ endBlock?: number;
1677
2531
  /**
1678
2532
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1679
2533
  */
@@ -1682,6 +2536,22 @@ declare class EvmTransactionsService {
1682
2536
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1683
2537
  */
1684
2538
  pageSize?: number;
2539
+ }): CancelablePromise<ListErc721TransactionsResponse>;
2540
+ /**
2541
+ * List ERC-1155 transfers
2542
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
2543
+ * @returns ListErc1155TransactionsResponse Successful response
2544
+ * @throws ApiError
2545
+ */
2546
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2547
+ /**
2548
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2549
+ */
2550
+ chainId: string;
2551
+ /**
2552
+ * A wallet address.
2553
+ */
2554
+ address: string;
1685
2555
  /**
1686
2556
  * 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.
1687
2557
  */
@@ -1691,19 +2561,25 @@ declare class EvmTransactionsService {
1691
2561
  */
1692
2562
  endBlock?: number;
1693
2563
  /**
1694
- * 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.
2564
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1695
2565
  */
1696
- sortOrder?: SortOrder;
1697
- }): CancelablePromise<ListTransactionDetailsResponse>;
2566
+ pageToken?: string;
2567
+ /**
2568
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2569
+ */
2570
+ pageSize?: number;
2571
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
1698
2572
  /**
1699
- * List native transactions
1700
- * Lists native transactions for an address. Filterable by block range.
1701
- * @returns ListNativeTransactionsResponse
2573
+ * List internal transactions
2574
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
2575
+ *
2576
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2577
+ * @returns ListInternalTransactionsResponse Successful response
1702
2578
  * @throws ApiError
1703
2579
  */
1704
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2580
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1705
2581
  /**
1706
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2582
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1707
2583
  */
1708
2584
  chainId: string;
1709
2585
  /**
@@ -1726,94 +2602,271 @@ declare class EvmTransactionsService {
1726
2602
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
2603
  */
1728
2604
  pageSize?: number;
2605
+ }): CancelablePromise<ListInternalTransactionsResponse>;
2606
+ /**
2607
+ * Get transaction
2608
+ * Gets the details of a single transaction.
2609
+ * @returns GetTransactionResponse Successful response
2610
+ * @throws ApiError
2611
+ */
2612
+ getTransaction({ chainId, txHash, }: {
2613
+ /**
2614
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2615
+ */
2616
+ chainId: string;
2617
+ /**
2618
+ * A transaction hash.
2619
+ */
2620
+ txHash: string;
2621
+ }): CancelablePromise<GetTransactionResponse>;
2622
+ /**
2623
+ * List transactions for a block
2624
+ * Lists the transactions that occured in a given block.
2625
+ * @returns ListNativeTransactionsResponse Successful response
2626
+ * @throws ApiError
2627
+ */
2628
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2629
+ /**
2630
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2631
+ */
2632
+ chainId: string;
2633
+ /**
2634
+ * A block identifier which is either a block number or the block hash.
2635
+ */
2636
+ blockId: string;
2637
+ /**
2638
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2639
+ */
2640
+ pageToken?: string;
2641
+ /**
2642
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2643
+ */
2644
+ pageSize?: number;
2645
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2646
+ /**
2647
+ * List latest transactions
2648
+ * Lists the latest transactions. Filterable by status.
2649
+ * @returns ListNativeTransactionsResponse Successful response
2650
+ * @throws ApiError
2651
+ */
2652
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2653
+ /**
2654
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2655
+ */
2656
+ chainId: string;
2657
+ /**
2658
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2659
+ */
2660
+ pageToken?: string;
2661
+ /**
2662
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2663
+ */
2664
+ pageSize?: number;
2665
+ /**
2666
+ * A status filter for listed transactions.
2667
+ */
2668
+ status?: TransactionStatus;
1729
2669
  }): CancelablePromise<ListNativeTransactionsResponse>;
2670
+ }
2671
+
2672
+ type HealthIndicatorResultDto = {
2673
+ /**
2674
+ * Status of the health indicator.
2675
+ */
2676
+ status?: HealthIndicatorResultDto.status;
2677
+ };
2678
+ declare namespace HealthIndicatorResultDto {
2679
+ /**
2680
+ * Status of the health indicator.
2681
+ */
2682
+ enum status {
2683
+ UP = "up",
2684
+ DOWN = "down"
2685
+ }
2686
+ }
2687
+
2688
+ type HealthCheckResultDto = {
2689
+ status?: HealthCheckResultDto.status;
2690
+ info?: any | null;
2691
+ error?: any | null;
2692
+ details?: Record<string, HealthIndicatorResultDto>;
2693
+ };
2694
+ declare namespace HealthCheckResultDto {
2695
+ enum status {
2696
+ ERROR = "error",
2697
+ OK = "ok",
2698
+ SHUTTING_DOWN = "shutting_down"
2699
+ }
2700
+ }
2701
+
2702
+ declare class HealthCheckService {
2703
+ readonly httpRequest: BaseHttpRequest;
2704
+ constructor(httpRequest: BaseHttpRequest);
2705
+ /**
2706
+ * Get the health of the service
2707
+ * Check the health of the service.
2708
+ * @returns HealthCheckResultDto The health of the service
2709
+ * @throws ApiError
2710
+ */
2711
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2712
+ }
2713
+
2714
+ type IcmDestinationTransaction = {
2715
+ txHash: string;
2716
+ timestamp: number;
2717
+ gasSpent: string;
2718
+ rewardRedeemer: string;
2719
+ delivererAddress: string;
2720
+ };
2721
+
2722
+ type IcmReceipt = {
2723
+ receivedMessageNonce: string;
2724
+ relayerRewardAddress: string;
2725
+ };
2726
+
2727
+ type IcmRewardDetails = {
2728
+ /**
2729
+ * A wallet or contract address in mixed-case checksum encoding.
2730
+ */
2731
+ address: string;
2732
+ /**
2733
+ * The contract name.
2734
+ */
2735
+ name: string;
2736
+ /**
2737
+ * The contract symbol.
2738
+ */
2739
+ symbol: string;
2740
+ /**
2741
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2742
+ */
2743
+ decimals: number;
2744
+ /**
2745
+ * The logo uri for the address.
2746
+ */
2747
+ logoUri?: string;
2748
+ ercType: IcmRewardDetails.ercType;
2749
+ /**
2750
+ * The token price, if available.
2751
+ */
2752
+ price?: Money;
2753
+ value: string;
2754
+ };
2755
+ declare namespace IcmRewardDetails {
2756
+ enum ercType {
2757
+ ERC_20 = "ERC-20"
2758
+ }
2759
+ }
2760
+
2761
+ type IcmSourceTransaction = {
2762
+ txHash: string;
2763
+ timestamp: number;
2764
+ gasSpent: string;
2765
+ };
2766
+
2767
+ type DeliveredIcmMessage = {
2768
+ messageId: string;
2769
+ icmContractAddress: string;
2770
+ sourceBlockchainId: string;
2771
+ destinationBlockchainId: string;
2772
+ sourceEvmChainId: string;
2773
+ destinationEvmChainId: string;
2774
+ messageNonce: string;
2775
+ from: string;
2776
+ to: string;
2777
+ data?: string;
2778
+ messageExecuted: boolean;
2779
+ receipts: Array<IcmReceipt>;
2780
+ receiptDelivered: boolean;
2781
+ rewardDetails: IcmRewardDetails;
2782
+ sourceTransaction: IcmSourceTransaction;
2783
+ destinationTransaction: IcmDestinationTransaction;
2784
+ status: DeliveredIcmMessage.status;
2785
+ };
2786
+ declare namespace DeliveredIcmMessage {
2787
+ enum status {
2788
+ DELIVERED = "delivered"
2789
+ }
2790
+ }
2791
+
2792
+ type DeliveredSourceNotIndexedIcmMessage = {
2793
+ messageId: string;
2794
+ icmContractAddress: string;
2795
+ sourceBlockchainId: string;
2796
+ destinationBlockchainId: string;
2797
+ sourceEvmChainId: string;
2798
+ destinationEvmChainId: string;
2799
+ messageNonce: string;
2800
+ from: string;
2801
+ to: string;
2802
+ data?: string;
2803
+ messageExecuted: boolean;
2804
+ receipts: Array<IcmReceipt>;
2805
+ receiptDelivered: boolean;
2806
+ rewardDetails: IcmRewardDetails;
2807
+ destinationTransaction: IcmDestinationTransaction;
2808
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2809
+ };
2810
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2811
+ enum status {
2812
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2813
+ }
2814
+ }
2815
+
2816
+ type PendingIcmMessage = {
2817
+ messageId: string;
2818
+ icmContractAddress: string;
2819
+ sourceBlockchainId: string;
2820
+ destinationBlockchainId: string;
2821
+ sourceEvmChainId: string;
2822
+ destinationEvmChainId: string;
2823
+ messageNonce: string;
2824
+ from: string;
2825
+ to: string;
2826
+ data?: string;
2827
+ messageExecuted: boolean;
2828
+ receipts: Array<IcmReceipt>;
2829
+ receiptDelivered: boolean;
2830
+ rewardDetails: IcmRewardDetails;
2831
+ sourceTransaction: IcmSourceTransaction;
2832
+ status: PendingIcmMessage.status;
2833
+ };
2834
+ declare namespace PendingIcmMessage {
2835
+ enum status {
2836
+ PENDING = "pending"
2837
+ }
2838
+ }
2839
+
2840
+ type ListIcmMessagesResponse = {
1730
2841
  /**
1731
- * List ERC-20 transfers
1732
- * Lists ERC-20 transfers for an address. Filterable by block range.
1733
- * @returns ListErc20TransactionsResponse
1734
- * @throws ApiError
2842
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
1735
2843
  */
1736
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1737
- /**
1738
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1739
- */
1740
- chainId: string;
1741
- /**
1742
- * A wallet address.
1743
- */
1744
- address: string;
1745
- /**
1746
- * 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.
1747
- */
1748
- startBlock?: number;
1749
- /**
1750
- * 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.
1751
- */
1752
- endBlock?: number;
1753
- /**
1754
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1755
- */
1756
- pageToken?: string;
1757
- /**
1758
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
- */
1760
- pageSize?: number;
1761
- }): CancelablePromise<ListErc20TransactionsResponse>;
2844
+ nextPageToken?: string;
2845
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2846
+ };
2847
+
2848
+ declare class InterchainMessagingService {
2849
+ readonly httpRequest: BaseHttpRequest;
2850
+ constructor(httpRequest: BaseHttpRequest);
1762
2851
  /**
1763
- * List ERC-721 transfers
1764
- * Lists ERC-721 transfers for an address. Filterable by block range.
1765
- * @returns ListErc721TransactionsResponse
2852
+ * Get an ICM message
2853
+ * Gets an ICM message by message ID.
2854
+ * @returns any Successful response
1766
2855
  * @throws ApiError
1767
2856
  */
1768
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1769
- /**
1770
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1771
- */
1772
- chainId: string;
1773
- /**
1774
- * A wallet address.
1775
- */
1776
- address: string;
1777
- /**
1778
- * 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.
1779
- */
1780
- startBlock?: number;
1781
- /**
1782
- * 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.
1783
- */
1784
- endBlock?: number;
1785
- /**
1786
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1787
- */
1788
- pageToken?: string;
2857
+ getIcmMessage({ messageId, }: {
1789
2858
  /**
1790
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2859
+ * The message ID of the ICM message.
1791
2860
  */
1792
- pageSize?: number;
1793
- }): CancelablePromise<ListErc721TransactionsResponse>;
2861
+ messageId: string;
2862
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
1794
2863
  /**
1795
- * List ERC-1155 transfers
1796
- * Lists ERC-1155 transfers for an address. Filterable by block range.
1797
- * @returns ListErc1155TransactionsResponse
2864
+ * List ICM messages
2865
+ * Lists ICM messages. Ordered by timestamp in descending order.
2866
+ * @returns ListIcmMessagesResponse Successful response
1798
2867
  * @throws ApiError
1799
2868
  */
1800
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1801
- /**
1802
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1803
- */
1804
- chainId: string;
1805
- /**
1806
- * A wallet address.
1807
- */
1808
- address: string;
1809
- /**
1810
- * 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.
1811
- */
1812
- startBlock?: number;
1813
- /**
1814
- * 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.
1815
- */
1816
- endBlock?: number;
2869
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
1817
2870
  /**
1818
2871
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1819
2872
  */
@@ -1822,84 +2875,42 @@ declare class EvmTransactionsService {
1822
2875
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1823
2876
  */
1824
2877
  pageSize?: number;
1825
- }): CancelablePromise<ListErc1155TransactionsResponse>;
1826
- /**
1827
- * List internal transactions
1828
- * Returns a list of internal transactions for an address and chain. Filterable by block range.
1829
- *
1830
- * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1831
- * @returns ListInternalTransactionsResponse
1832
- * @throws ApiError
1833
- */
1834
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1835
2878
  /**
1836
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2879
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
1837
2880
  */
1838
- chainId: string;
1839
- /**
1840
- * A wallet address.
1841
- */
1842
- address: string;
1843
- /**
1844
- * 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.
1845
- */
1846
- startBlock?: number;
1847
- /**
1848
- * 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.
1849
- */
1850
- endBlock?: number;
1851
- /**
1852
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1853
- */
1854
- pageToken?: string;
2881
+ sourceBlockchainId?: string;
1855
2882
  /**
1856
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2883
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
1857
2884
  */
1858
- pageSize?: number;
1859
- }): CancelablePromise<ListInternalTransactionsResponse>;
1860
- /**
1861
- * Get transaction
1862
- * Gets the details of a single transaction.
1863
- * @returns GetTransactionResponse
1864
- * @throws ApiError
1865
- */
1866
- getTransaction({ chainId, txHash, }: {
2885
+ destinationBlockchainId?: string;
1867
2886
  /**
1868
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2887
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
1869
2888
  */
1870
- chainId: string;
2889
+ blockchainId?: string;
1871
2890
  /**
1872
- * A transaction hash.
2891
+ * The address of the recipient of the ICM message.
1873
2892
  */
1874
- txHash: string;
1875
- }): CancelablePromise<GetTransactionResponse>;
1876
- /**
1877
- * List transactions for a block
1878
- * Lists the transactions that occured in a given block.
1879
- * @returns ListNativeTransactionsResponse
1880
- * @throws ApiError
1881
- */
1882
- getTransactionsForBlock({ chainId, blockId, }: {
2893
+ to?: string;
1883
2894
  /**
1884
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2895
+ * The address of the sender of the ICM message.
1885
2896
  */
1886
- chainId: string;
2897
+ from?: string;
1887
2898
  /**
1888
- * A block identifier which is either a block number or the block hash.
2899
+ * Either mainnet or testnet/fuji.
1889
2900
  */
1890
- blockId: string;
1891
- }): CancelablePromise<ListNativeTransactionsResponse>;
2901
+ network?: Network;
2902
+ }): CancelablePromise<ListIcmMessagesResponse>;
1892
2903
  /**
1893
- * List latest transactions
1894
- * Lists the latest transactions. Filterable by status.
1895
- * @returns ListNativeTransactionsResponse
2904
+ * List ICM messages by address
2905
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2906
+ * @returns ListIcmMessagesResponse Successful response
1896
2907
  * @throws ApiError
1897
2908
  */
1898
- listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2909
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
1899
2910
  /**
1900
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2911
+ * An EVM address.
1901
2912
  */
1902
- chainId: string;
2913
+ address: string;
1903
2914
  /**
1904
2915
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1905
2916
  */
@@ -1909,26 +2920,10 @@ declare class EvmTransactionsService {
1909
2920
  */
1910
2921
  pageSize?: number;
1911
2922
  /**
1912
- * A status filter for listed transactions.
2923
+ * Either mainnet or testnet/fuji.
1913
2924
  */
1914
- status?: TransactionStatus;
1915
- }): CancelablePromise<ListNativeTransactionsResponse>;
1916
- }
1917
-
1918
- declare class HealthCheckService {
1919
- readonly httpRequest: BaseHttpRequest;
1920
- constructor(httpRequest: BaseHttpRequest);
1921
- /**
1922
- * Get the health of the service
1923
- * @returns any The Health Check is successful
1924
- * @throws ApiError
1925
- */
1926
- healthCheck(): CancelablePromise<{
1927
- status?: string;
1928
- info?: Record<string, Record<string, string>> | null;
1929
- error?: Record<string, Record<string, string>> | null;
1930
- details?: Record<string, Record<string, string>>;
1931
- }>;
2925
+ network?: Network;
2926
+ }): CancelablePromise<ListIcmMessagesResponse>;
1932
2927
  }
1933
2928
 
1934
2929
  type ListNftTokens = {
@@ -1945,12 +2940,12 @@ declare class NfTsService {
1945
2940
  /**
1946
2941
  * Reindex NFT metadata
1947
2942
  * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1948
- * @returns any
2943
+ * @returns any Successful response
1949
2944
  * @throws ApiError
1950
2945
  */
1951
2946
  reindexNft({ chainId, address, tokenId, }: {
1952
2947
  /**
1953
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2948
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1954
2949
  */
1955
2950
  chainId: string;
1956
2951
  /**
@@ -1965,12 +2960,12 @@ declare class NfTsService {
1965
2960
  /**
1966
2961
  * List tokens
1967
2962
  * Lists tokens for an NFT contract.
1968
- * @returns ListNftTokens
2963
+ * @returns ListNftTokens Successful response
1969
2964
  * @throws ApiError
1970
2965
  */
1971
2966
  listTokens({ chainId, address, pageToken, pageSize, }: {
1972
2967
  /**
1973
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2968
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1974
2969
  */
1975
2970
  chainId: string;
1976
2971
  /**
@@ -1989,12 +2984,12 @@ declare class NfTsService {
1989
2984
  /**
1990
2985
  * Get token details
1991
2986
  * Gets token details for a specific token of an NFT contract.
1992
- * @returns any
2987
+ * @returns any Successful response
1993
2988
  * @throws ApiError
1994
2989
  */
1995
2990
  getTokenDetails({ chainId, address, tokenId, }: {
1996
2991
  /**
1997
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2992
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1998
2993
  */
1999
2994
  chainId: string;
2000
2995
  /**
@@ -2008,6 +3003,108 @@ declare class NfTsService {
2008
3003
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2009
3004
  }
2010
3005
 
3006
+ type AccessRequest = {
3007
+ /**
3008
+ * The email address to send the access token to
3009
+ */
3010
+ email: string;
3011
+ /**
3012
+ * The captcha to verify the user
3013
+ */
3014
+ captcha: string;
3015
+ };
3016
+
3017
+ type NotificationsResponse = {
3018
+ message: string;
3019
+ };
3020
+
3021
+ type SubscribeRequest = {
3022
+ /**
3023
+ * The access token to use for authentication
3024
+ */
3025
+ accessToken: string;
3026
+ /**
3027
+ * The node ID to subscribe to
3028
+ */
3029
+ nodeId: string;
3030
+ /**
3031
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3032
+ */
3033
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3034
+ };
3035
+
3036
+ type SubscriptionsRequest = {
3037
+ /**
3038
+ * The access token to use for authentication
3039
+ */
3040
+ accessToken: string;
3041
+ };
3042
+
3043
+ type SubscriptionsResponse = {
3044
+ /**
3045
+ * The email address of the user
3046
+ */
3047
+ email: string;
3048
+ /**
3049
+ * The subscriptions of the user
3050
+ */
3051
+ subscriptions: Record<string, {
3052
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3053
+ }>;
3054
+ };
3055
+
3056
+ type UnsubscribeRequest = {
3057
+ /**
3058
+ * The access token to use for authentication
3059
+ */
3060
+ accessToken: string;
3061
+ /**
3062
+ * The node ID to subscribe to
3063
+ */
3064
+ nodeId: string;
3065
+ };
3066
+
3067
+ declare class NotificationsService {
3068
+ readonly httpRequest: BaseHttpRequest;
3069
+ constructor(httpRequest: BaseHttpRequest);
3070
+ /**
3071
+ * Access Notifications
3072
+ * Access notifications.
3073
+ * @returns NotificationsResponse Successful response
3074
+ * @throws ApiError
3075
+ */
3076
+ access({ requestBody, }: {
3077
+ requestBody: AccessRequest;
3078
+ }): CancelablePromise<NotificationsResponse>;
3079
+ /**
3080
+ * Subscribe to Notifications
3081
+ * Subscribe to receive notifications.
3082
+ * @returns NotificationsResponse Successful response
3083
+ * @throws ApiError
3084
+ */
3085
+ subscribe({ requestBody, }: {
3086
+ requestBody: SubscribeRequest;
3087
+ }): CancelablePromise<NotificationsResponse>;
3088
+ /**
3089
+ * Unsubscribe from Notifications
3090
+ * Unsubscribe from receiving notifications.
3091
+ * @returns NotificationsResponse Successful response
3092
+ * @throws ApiError
3093
+ */
3094
+ unsubscribe({ requestBody, }: {
3095
+ requestBody: UnsubscribeRequest;
3096
+ }): CancelablePromise<NotificationsResponse>;
3097
+ /**
3098
+ * Get Subscriptions
3099
+ * Get subscriptions.
3100
+ * @returns SubscriptionsResponse Successful response
3101
+ * @throws ApiError
3102
+ */
3103
+ subscriptions({ requestBody, }: {
3104
+ requestBody: SubscriptionsRequest;
3105
+ }): CancelablePromise<SubscriptionsResponse>;
3106
+ }
3107
+
2011
3108
  type EvmNetworkOptions = {
2012
3109
  addresses: Array<string>;
2013
3110
  includeChains: Array<string>;
@@ -2019,16 +3116,16 @@ declare enum EVMOperationType {
2019
3116
 
2020
3117
  type CreateEvmTransactionExportRequest = {
2021
3118
  type: EVMOperationType;
2022
- firstDate: string;
2023
- lastDate: string;
3119
+ firstDate?: string;
3120
+ lastDate?: string;
2024
3121
  /**
2025
3122
  * @deprecated
2026
3123
  */
2027
- startDate: string;
3124
+ startDate?: string;
2028
3125
  /**
2029
3126
  * @deprecated
2030
3127
  */
2031
- endDate: string;
3128
+ endDate?: string;
2032
3129
  options: EvmNetworkOptions;
2033
3130
  };
2034
3131
 
@@ -2041,21 +3138,21 @@ declare enum PrimaryNetworkOperationType {
2041
3138
  type PrimaryNetworkOptions = {
2042
3139
  addresses?: Array<string>;
2043
3140
  cChainEvmAddresses?: Array<string>;
2044
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
3141
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
2045
3142
  };
2046
3143
 
2047
3144
  type CreatePrimaryNetworkTransactionExportRequest = {
2048
3145
  type: PrimaryNetworkOperationType;
2049
- firstDate: string;
2050
- lastDate: string;
3146
+ firstDate?: string;
3147
+ lastDate?: string;
2051
3148
  /**
2052
3149
  * @deprecated
2053
3150
  */
2054
- startDate: string;
3151
+ startDate?: string;
2055
3152
  /**
2056
3153
  * @deprecated
2057
3154
  */
2058
- endDate: string;
3155
+ endDate?: string;
2059
3156
  options: PrimaryNetworkOptions;
2060
3157
  };
2061
3158
 
@@ -2107,7 +3204,7 @@ declare class OperationsService {
2107
3204
  /**
2108
3205
  * Get operation
2109
3206
  * Gets operation details for the given operation id.
2110
- * @returns OperationStatusResponse
3207
+ * @returns OperationStatusResponse Successful response
2111
3208
  * @throws ApiError
2112
3209
  */
2113
3210
  getOperationResult({ operationId, }: {
@@ -2121,7 +3218,7 @@ declare class OperationsService {
2121
3218
  * Trigger a transaction export operation with given parameters.
2122
3219
  *
2123
3220
  * 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.
2124
- * @returns OperationStatusResponse
3221
+ * @returns OperationStatusResponse Successful response
2125
3222
  * @throws ApiError
2126
3223
  */
2127
3224
  postTransactionExportJob({ requestBody, }: {
@@ -2133,8 +3230,10 @@ declare enum BlockchainIds {
2133
3230
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2134
3231
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2135
3232
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3233
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2136
3234
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2137
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
3235
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3236
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
2138
3237
  }
2139
3238
 
2140
3239
  type ChainAddressChainIdMap = {
@@ -2158,16 +3257,31 @@ type DelegatorsDetails = {
2158
3257
  };
2159
3258
 
2160
3259
  type StakingDistribution = {
3260
+ /**
3261
+ * AvalancheGo version for the validator node.
3262
+ */
2161
3263
  version: string;
3264
+ /**
3265
+ * The total amount staked by validators using this version.
3266
+ */
2162
3267
  amountStaked: string;
3268
+ /**
3269
+ * The number of validators using this version.
3270
+ */
2163
3271
  validatorCount: number;
2164
3272
  };
2165
3273
 
2166
3274
  type ValidatorsDetails = {
2167
3275
  validatorCount: number;
2168
3276
  totalAmountStaked: string;
3277
+ /**
3278
+ * Total potential rewards from currently active validations and delegations.
3279
+ */
2169
3280
  estimatedAnnualStakingReward: string;
2170
3281
  stakingDistributionByVersion: Array<StakingDistribution>;
3282
+ /**
3283
+ * Ratio of total active stake amount to the current supply.
3284
+ */
2171
3285
  stakingRatio: string;
2172
3286
  };
2173
3287
 
@@ -2219,7 +3333,13 @@ type CompletedDelegatorDetails = {
2219
3333
  delegationFee: string;
2220
3334
  startTimestamp: number;
2221
3335
  endTimestamp: number;
3336
+ /**
3337
+ * Total rewards distributed for the successful delegation.
3338
+ */
2222
3339
  grossReward: string;
3340
+ /**
3341
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3342
+ */
2223
3343
  netReward: string;
2224
3344
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2225
3345
  };
@@ -2237,31 +3357,88 @@ type PendingDelegatorDetails = {
2237
3357
  delegationFee: string;
2238
3358
  startTimestamp: number;
2239
3359
  endTimestamp: number;
3360
+ /**
3361
+ * Estimated total rewards that will be distributed for the successful delegation.
3362
+ */
2240
3363
  estimatedGrossReward: string;
3364
+ /**
3365
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3366
+ */
2241
3367
  estimatedNetReward: string;
2242
3368
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2243
3369
  };
2244
- declare namespace PendingDelegatorDetails {
2245
- enum delegationStatus {
2246
- PENDING = "pending"
2247
- }
2248
- }
3370
+ declare namespace PendingDelegatorDetails {
3371
+ enum delegationStatus {
3372
+ PENDING = "pending"
3373
+ }
3374
+ }
3375
+
3376
+ type ListDelegatorDetailsResponse = {
3377
+ /**
3378
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
3379
+ */
3380
+ nextPageToken?: string;
3381
+ /**
3382
+ * The list of Delegator Details.
3383
+ */
3384
+ delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3385
+ };
3386
+
3387
+ type BalanceOwner = {
3388
+ addresses: Array<string>;
3389
+ threshold: number;
3390
+ };
3391
+
3392
+ type L1ValidatorDetailsFull = {
3393
+ /**
3394
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3395
+ */
3396
+ validationId: string;
3397
+ nodeId: string;
3398
+ subnetId: string;
3399
+ /**
3400
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
3401
+ */
3402
+ weight: number;
3403
+ /**
3404
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3405
+ */
3406
+ remainingBalance: number;
3407
+ /**
3408
+ * The timestamp of the transaction which created this L1 validator
3409
+ */
3410
+ creationTimestamp: number;
3411
+ blsCredentials: Record<string, any>;
3412
+ /**
3413
+ * The L1 validator owner's balance, returned after it's disabled or removed
3414
+ */
3415
+ remainingBalanceOwner: BalanceOwner;
3416
+ /**
3417
+ * Owner ddresses details which can disable or remove the L1 validator
3418
+ */
3419
+ deactivationOwner: BalanceOwner;
3420
+ };
2249
3421
 
2250
- type ListDelegatorDetailsResponse = {
3422
+ type ListL1ValidatorsResponse = {
2251
3423
  /**
2252
3424
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2253
3425
  */
2254
3426
  nextPageToken?: string;
2255
3427
  /**
2256
- * The list of Delegator Details.
3428
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
2257
3429
  */
2258
- delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
3430
+ validators: Array<L1ValidatorDetailsFull>;
2259
3431
  };
2260
3432
 
2261
3433
  type BlockchainInfo = {
2262
3434
  blockchainId: string;
2263
3435
  };
2264
3436
 
3437
+ type L1ValidatorManagerDetails = {
3438
+ blockchainId: string;
3439
+ contractAddress: string;
3440
+ };
3441
+
2265
3442
  type SubnetOwnershipInfo = {
2266
3443
  /**
2267
3444
  * Locktime in seconds after which Subnet owners can control this Subnet.
@@ -2300,6 +3477,18 @@ type Subnet = {
2300
3477
  * Latest subnet owner details for this Subnet.
2301
3478
  */
2302
3479
  subnetOwnershipInfo: SubnetOwnershipInfo;
3480
+ /**
3481
+ * Whether the subnet is an L1 or not.
3482
+ */
3483
+ isL1: boolean;
3484
+ /**
3485
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3486
+ */
3487
+ l1ConversionTransactionHash?: string;
3488
+ /**
3489
+ * L1 validator manager details.
3490
+ */
3491
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2303
3492
  blockchains: Array<BlockchainInfo>;
2304
3493
  };
2305
3494
 
@@ -2347,6 +3536,9 @@ type ActiveValidatorDetails = {
2347
3536
  nodeId: string;
2348
3537
  subnetId: string;
2349
3538
  amountStaked: string;
3539
+ /**
3540
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3541
+ */
2350
3542
  delegationFee?: string;
2351
3543
  startTimestamp: number;
2352
3544
  endTimestamp: number;
@@ -2354,12 +3546,30 @@ type ActiveValidatorDetails = {
2354
3546
  * Present for AddPermissionlessValidatorTx
2355
3547
  */
2356
3548
  blsCredentials?: BlsCredentials;
3549
+ /**
3550
+ * The percentage of this validator's stake amount to the total active stake.
3551
+ */
2357
3552
  stakePercentage: number;
3553
+ /**
3554
+ * The number of delegators linked to the validator.
3555
+ */
2358
3556
  delegatorCount: number;
3557
+ /**
3558
+ * The total amount in nAVAX delegated to the validator.
3559
+ */
2359
3560
  amountDelegated?: string;
3561
+ /**
3562
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3563
+ */
2360
3564
  uptimePerformance: number;
2361
3565
  avalancheGoVersion?: string;
3566
+ /**
3567
+ * The amount of stake in nAVAX that can be delegated to this validator.
3568
+ */
2362
3569
  delegationCapacity?: string;
3570
+ /**
3571
+ * Estimated rewards for the validator if the validation is successful.
3572
+ */
2363
3573
  potentialRewards: Rewards;
2364
3574
  validationStatus: ActiveValidatorDetails.validationStatus;
2365
3575
  validatorHealth: ValidatorHealthDetails;
@@ -2375,6 +3585,9 @@ type CompletedValidatorDetails = {
2375
3585
  nodeId: string;
2376
3586
  subnetId: string;
2377
3587
  amountStaked: string;
3588
+ /**
3589
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3590
+ */
2378
3591
  delegationFee?: string;
2379
3592
  startTimestamp: number;
2380
3593
  endTimestamp: number;
@@ -2383,6 +3596,7 @@ type CompletedValidatorDetails = {
2383
3596
  */
2384
3597
  blsCredentials?: BlsCredentials;
2385
3598
  delegatorCount: number;
3599
+ amountDelegated?: string;
2386
3600
  rewards: Rewards;
2387
3601
  validationStatus: CompletedValidatorDetails.validationStatus;
2388
3602
  };
@@ -2397,6 +3611,9 @@ type PendingValidatorDetails = {
2397
3611
  nodeId: string;
2398
3612
  subnetId: string;
2399
3613
  amountStaked: string;
3614
+ /**
3615
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3616
+ */
2400
3617
  delegationFee?: string;
2401
3618
  startTimestamp: number;
2402
3619
  endTimestamp: number;
@@ -2417,6 +3634,9 @@ type RemovedValidatorDetails = {
2417
3634
  nodeId: string;
2418
3635
  subnetId: string;
2419
3636
  amountStaked: string;
3637
+ /**
3638
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3639
+ */
2420
3640
  delegationFee?: string;
2421
3641
  startTimestamp: number;
2422
3642
  endTimestamp: number;
@@ -2424,7 +3644,13 @@ type RemovedValidatorDetails = {
2424
3644
  * Present for AddPermissionlessValidatorTx
2425
3645
  */
2426
3646
  blsCredentials?: BlsCredentials;
3647
+ /**
3648
+ * The transaction hash that removed the permissioned subnet validator.
3649
+ */
2427
3650
  removeTxHash: string;
3651
+ /**
3652
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3653
+ */
2428
3654
  removeTimestamp: number;
2429
3655
  validationStatus: RemovedValidatorDetails.validationStatus;
2430
3656
  };
@@ -2445,11 +3671,6 @@ type ListValidatorDetailsResponse = {
2445
3671
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2446
3672
  };
2447
3673
 
2448
- declare enum Network {
2449
- MAINNET = "mainnet",
2450
- FUJI = "fuji"
2451
- }
2452
-
2453
3674
  declare enum SortByOption {
2454
3675
  BLOCK_INDEX = "blockIndex",
2455
3676
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2509,6 +3730,7 @@ type XChainAssetDetails = {
2509
3730
  declare enum XChainId {
2510
3731
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2511
3732
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3733
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2512
3734
  X_CHAIN = "x-chain"
2513
3735
  }
2514
3736
 
@@ -2518,7 +3740,7 @@ declare class PrimaryNetworkService {
2518
3740
  /**
2519
3741
  * Get asset details
2520
3742
  * Gets asset details corresponding to the given asset id on the X-Chain.
2521
- * @returns XChainAssetDetails
3743
+ * @returns XChainAssetDetails Successful response
2522
3744
  * @throws ApiError
2523
3745
  */
2524
3746
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -2527,7 +3749,7 @@ declare class PrimaryNetworkService {
2527
3749
  */
2528
3750
  blockchainId: XChainId;
2529
3751
  /**
2530
- * Either mainnet or a testnet.
3752
+ * Either mainnet or testnet/fuji.
2531
3753
  */
2532
3754
  network: Network;
2533
3755
  /**
@@ -2538,7 +3760,7 @@ declare class PrimaryNetworkService {
2538
3760
  /**
2539
3761
  * Get chain interactions for addresses
2540
3762
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
2541
- * @returns ChainAddressChainIdMapListResponse
3763
+ * @returns ChainAddressChainIdMapListResponse Successful response
2542
3764
  * @throws ApiError
2543
3765
  */
2544
3766
  getChainIdsForAddresses({ addresses, network, }: {
@@ -2547,31 +3769,31 @@ declare class PrimaryNetworkService {
2547
3769
  */
2548
3770
  addresses: string;
2549
3771
  /**
2550
- * Either mainnet or a testnet.
3772
+ * Either mainnet or testnet/fuji.
2551
3773
  */
2552
3774
  network: Network;
2553
3775
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
2554
3776
  /**
2555
3777
  * Get network details
2556
3778
  * Gets network details such as validator and delegator stats.
2557
- * @returns GetNetworkDetailsResponse
3779
+ * @returns GetNetworkDetailsResponse Successful response
2558
3780
  * @throws ApiError
2559
3781
  */
2560
3782
  getNetworkDetails({ network, }: {
2561
3783
  /**
2562
- * Either mainnet or a testnet.
3784
+ * Either mainnet or testnet/fuji.
2563
3785
  */
2564
3786
  network: Network;
2565
3787
  }): CancelablePromise<GetNetworkDetailsResponse>;
2566
3788
  /**
2567
3789
  * List blockchains
2568
3790
  * Lists all blockchains registered on the network.
2569
- * @returns ListBlockchainsResponse
3791
+ * @returns ListBlockchainsResponse Successful response
2570
3792
  * @throws ApiError
2571
3793
  */
2572
3794
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2573
3795
  /**
2574
- * Either mainnet or a testnet.
3796
+ * Either mainnet or testnet/fuji.
2575
3797
  */
2576
3798
  network: Network;
2577
3799
  /**
@@ -2590,12 +3812,12 @@ declare class PrimaryNetworkService {
2590
3812
  /**
2591
3813
  * List subnets
2592
3814
  * Lists all subnets registered on the network.
2593
- * @returns ListSubnetsResponse
3815
+ * @returns ListSubnetsResponse Successful response
2594
3816
  * @throws ApiError
2595
3817
  */
2596
3818
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2597
3819
  /**
2598
- * Either mainnet or a testnet.
3820
+ * Either mainnet or testnet/fuji.
2599
3821
  */
2600
3822
  network: Network;
2601
3823
  /**
@@ -2614,12 +3836,12 @@ declare class PrimaryNetworkService {
2614
3836
  /**
2615
3837
  * Get Subnet details by ID
2616
3838
  * Get details of the Subnet registered on the network.
2617
- * @returns Subnet
3839
+ * @returns Subnet Successful response
2618
3840
  * @throws ApiError
2619
3841
  */
2620
3842
  getSubnetById({ network, subnetId, }: {
2621
3843
  /**
2622
- * Either mainnet or a testnet.
3844
+ * Either mainnet or testnet/fuji.
2623
3845
  */
2624
3846
  network: Network;
2625
3847
  /**
@@ -2630,12 +3852,12 @@ declare class PrimaryNetworkService {
2630
3852
  /**
2631
3853
  * List validators
2632
3854
  * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
2633
- * @returns ListValidatorDetailsResponse
3855
+ * @returns ListValidatorDetailsResponse Successful response
2634
3856
  * @throws ApiError
2635
3857
  */
2636
3858
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2637
3859
  /**
2638
- * Either mainnet or a testnet.
3860
+ * Either mainnet or testnet/fuji.
2639
3861
  */
2640
3862
  network: Network;
2641
3863
  /**
@@ -2704,12 +3926,12 @@ declare class PrimaryNetworkService {
2704
3926
  /**
2705
3927
  * Get single validator details
2706
3928
  * List validator details for a single validator. Filterable by validation status.
2707
- * @returns ListValidatorDetailsResponse
3929
+ * @returns ListValidatorDetailsResponse Successful response
2708
3930
  * @throws ApiError
2709
3931
  */
2710
3932
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2711
3933
  /**
2712
- * Either mainnet or a testnet.
3934
+ * Either mainnet or testnet/fuji.
2713
3935
  */
2714
3936
  network: Network;
2715
3937
  /**
@@ -2736,12 +3958,12 @@ declare class PrimaryNetworkService {
2736
3958
  /**
2737
3959
  * List delegators
2738
3960
  * Lists details for delegators.
2739
- * @returns ListDelegatorDetailsResponse
3961
+ * @returns ListDelegatorDetailsResponse Successful response
2740
3962
  * @throws ApiError
2741
3963
  */
2742
3964
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2743
3965
  /**
2744
- * Either mainnet or a testnet.
3966
+ * Either mainnet or testnet/fuji.
2745
3967
  */
2746
3968
  network: Network;
2747
3969
  /**
@@ -2769,14 +3991,49 @@ declare class PrimaryNetworkService {
2769
3991
  */
2770
3992
  nodeIds?: string;
2771
3993
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3994
+ /**
3995
+ * List L1 validators
3996
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
3997
+ * @returns ListL1ValidatorsResponse Successful response
3998
+ * @throws ApiError
3999
+ */
4000
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4001
+ /**
4002
+ * Either mainnet or testnet/fuji.
4003
+ */
4004
+ network: Network;
4005
+ /**
4006
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4007
+ */
4008
+ pageToken?: string;
4009
+ /**
4010
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4011
+ */
4012
+ pageSize?: number;
4013
+ /**
4014
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4015
+ */
4016
+ l1ValidationId?: any;
4017
+ includeInactiveL1Validators?: boolean;
4018
+ /**
4019
+ * A valid node ID in format 'NodeID-HASH'.
4020
+ */
4021
+ nodeId?: string;
4022
+ /**
4023
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4024
+ */
4025
+ subnetId?: any;
4026
+ }): CancelablePromise<ListL1ValidatorsResponse>;
2772
4027
  }
2773
4028
 
2774
4029
  declare enum BlockchainId {
2775
4030
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2776
4031
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2777
4032
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4033
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2778
4034
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2779
4035
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4036
+ V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
2780
4037
  P_CHAIN = "p-chain",
2781
4038
  X_CHAIN = "x-chain",
2782
4039
  C_CHAIN = "c-chain"
@@ -2813,11 +4070,6 @@ type CChainAtomicBalances = {
2813
4070
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2814
4071
  };
2815
4072
 
2816
- declare enum PrimaryNetwork {
2817
- MAINNET = "mainnet",
2818
- FUJI = "fuji"
2819
- }
2820
-
2821
4073
  declare enum PrimaryNetworkChainName {
2822
4074
  P_CHAIN = "p-chain",
2823
4075
  X_CHAIN = "x-chain",
@@ -2826,7 +4078,7 @@ declare enum PrimaryNetworkChainName {
2826
4078
 
2827
4079
  type PrimaryNetworkChainInfo = {
2828
4080
  chainName: PrimaryNetworkChainName;
2829
- network: PrimaryNetwork;
4081
+ network: Network;
2830
4082
  };
2831
4083
 
2832
4084
  type ListCChainAtomicBalancesResponse = {
@@ -2978,7 +4230,7 @@ declare class PrimaryNetworkBalancesService {
2978
4230
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
2979
4231
  *
2980
4232
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
2981
- * @returns any
4233
+ * @returns any Successful response
2982
4234
  * @throws ApiError
2983
4235
  */
2984
4236
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -2987,7 +4239,7 @@ declare class PrimaryNetworkBalancesService {
2987
4239
  */
2988
4240
  blockchainId: BlockchainId;
2989
4241
  /**
2990
- * Either mainnet or a testnet.
4242
+ * Either mainnet or testnet/fuji.
2991
4243
  */
2992
4244
  network: Network;
2993
4245
  /**
@@ -3018,6 +4270,8 @@ type GetPrimaryNetworkBlockResponse = {
3018
4270
  txCount: number;
3019
4271
  transactions: Array<string>;
3020
4272
  blockSizeBytes: number;
4273
+ l1ValidatorsAccruedFees?: number;
4274
+ activeL1Validators?: number;
3021
4275
  currentSupply?: string;
3022
4276
  proposerDetails?: ProposerDetails;
3023
4277
  };
@@ -3031,6 +4285,8 @@ type PrimaryNetworkBlock = {
3031
4285
  txCount: number;
3032
4286
  transactions: Array<string>;
3033
4287
  blockSizeBytes: number;
4288
+ l1ValidatorsAccruedFees?: number;
4289
+ activeL1Validators?: number;
3034
4290
  currentSupply?: string;
3035
4291
  proposerDetails?: ProposerDetails;
3036
4292
  };
@@ -3050,7 +4306,7 @@ declare class PrimaryNetworkBlocksService {
3050
4306
  /**
3051
4307
  * Get block
3052
4308
  * Gets a block by block height or block hash on one of the Primary Network chains.
3053
- * @returns GetPrimaryNetworkBlockResponse
4309
+ * @returns GetPrimaryNetworkBlockResponse Successful response
3054
4310
  * @throws ApiError
3055
4311
  */
3056
4312
  getBlockById({ blockchainId, network, blockId, }: {
@@ -3059,7 +4315,7 @@ declare class PrimaryNetworkBlocksService {
3059
4315
  */
3060
4316
  blockchainId: BlockchainId;
3061
4317
  /**
3062
- * Either mainnet or a testnet.
4318
+ * Either mainnet or testnet/fuji.
3063
4319
  */
3064
4320
  network: Network;
3065
4321
  /**
@@ -3070,22 +4326,30 @@ declare class PrimaryNetworkBlocksService {
3070
4326
  /**
3071
4327
  * List blocks proposed by node
3072
4328
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3073
- * @returns ListPrimaryNetworkBlocksResponse
4329
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3074
4330
  * @throws ApiError
3075
4331
  */
3076
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4332
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3077
4333
  /**
3078
4334
  * A primary network blockchain id or alias.
3079
4335
  */
3080
4336
  blockchainId: BlockchainId;
3081
4337
  /**
3082
- * Either mainnet or a testnet.
4338
+ * Either mainnet or testnet/fuji.
3083
4339
  */
3084
4340
  network: Network;
3085
4341
  /**
3086
4342
  * A primary network (P or X chain) nodeId.
3087
4343
  */
3088
4344
  nodeId: string;
4345
+ /**
4346
+ * Query param for retrieving items after a specific timestamp.
4347
+ */
4348
+ startTimestamp?: number;
4349
+ /**
4350
+ * Query param for retrieving items before a specific timestamp.
4351
+ */
4352
+ endTimestamp?: number;
3089
4353
  /**
3090
4354
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3091
4355
  */
@@ -3098,18 +4362,26 @@ declare class PrimaryNetworkBlocksService {
3098
4362
  /**
3099
4363
  * List latest blocks
3100
4364
  * Lists latest blocks on one of the Primary Network chains.
3101
- * @returns ListPrimaryNetworkBlocksResponse
4365
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
3102
4366
  * @throws ApiError
3103
4367
  */
3104
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4368
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3105
4369
  /**
3106
4370
  * A primary network blockchain id or alias.
3107
4371
  */
3108
4372
  blockchainId: BlockchainId;
3109
4373
  /**
3110
- * Either mainnet or a testnet.
4374
+ * Either mainnet or testnet/fuji.
3111
4375
  */
3112
4376
  network: Network;
4377
+ /**
4378
+ * Query param for retrieving items after a specific timestamp.
4379
+ */
4380
+ startTimestamp?: number;
4381
+ /**
4382
+ * Query param for retrieving items before a specific timestamp.
4383
+ */
4384
+ endTimestamp?: number;
3113
4385
  /**
3114
4386
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3115
4387
  */
@@ -3236,12 +4508,12 @@ declare class PrimaryNetworkRewardsService {
3236
4508
  /**
3237
4509
  * List pending rewards
3238
4510
  * Lists pending rewards on the Primary Network for the supplied addresses.
3239
- * @returns ListPendingRewardsResponse
4511
+ * @returns ListPendingRewardsResponse Successful response
3240
4512
  * @throws ApiError
3241
4513
  */
3242
4514
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3243
4515
  /**
3244
- * Either mainnet or a testnet.
4516
+ * Either mainnet or testnet/fuji.
3245
4517
  */
3246
4518
  network: Network;
3247
4519
  /**
@@ -3268,12 +4540,12 @@ declare class PrimaryNetworkRewardsService {
3268
4540
  /**
3269
4541
  * List historical rewards
3270
4542
  * Lists historical rewards on the Primary Network for the supplied addresses.
3271
- * @returns ListHistoricalRewardsResponse
4543
+ * @returns ListHistoricalRewardsResponse Successful response
3272
4544
  * @throws ApiError
3273
4545
  */
3274
4546
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3275
4547
  /**
3276
- * Either mainnet or a testnet.
4548
+ * Either mainnet or testnet/fuji.
3277
4549
  */
3278
4550
  network: Network;
3279
4551
  /**
@@ -3519,6 +4791,28 @@ type ListCChainAtomicTransactionsResponse = {
3519
4791
  chainInfo: PrimaryNetworkChainInfo;
3520
4792
  };
3521
4793
 
4794
+ type L1ValidatorDetailsTransaction = {
4795
+ /**
4796
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4797
+ */
4798
+ validationId: string;
4799
+ nodeId: string;
4800
+ subnetId: string;
4801
+ /**
4802
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
4803
+ */
4804
+ weight: number;
4805
+ /**
4806
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4807
+ */
4808
+ remainingBalance: number;
4809
+ /**
4810
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
4811
+ */
4812
+ balanceChange?: number;
4813
+ blsCredentials?: Record<string, any>;
4814
+ };
4815
+
3522
4816
  declare enum PChainTransactionType {
3523
4817
  ADD_VALIDATOR_TX = "AddValidatorTx",
3524
4818
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3535,9 +4829,17 @@ declare enum PChainTransactionType {
3535
4829
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3536
4830
  BASE_TX = "BaseTx",
3537
4831
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4832
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4833
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4834
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4835
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4836
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3538
4837
  UNKNOWN = "UNKNOWN"
3539
4838
  }
3540
4839
 
4840
+ /**
4841
+ * Indicates whether the UTXO is staked or transferable
4842
+ */
3541
4843
  declare enum UtxoType {
3542
4844
  STAKE = "STAKE",
3543
4845
  TRANSFER = "TRANSFER"
@@ -3575,16 +4877,43 @@ type PChainUtxo = {
3575
4877
  assetId: string;
3576
4878
  blockNumber: string;
3577
4879
  blockTimestamp: number;
4880
+ /**
4881
+ * Block height in which the transaction consuming this UTXO was included
4882
+ */
3578
4883
  consumingBlockNumber?: string;
4884
+ /**
4885
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4886
+ */
3579
4887
  consumingBlockTimestamp?: number;
4888
+ /**
4889
+ * Timestamp in seconds after which this UTXO can be consumed
4890
+ */
3580
4891
  platformLocktime?: number;
4892
+ /**
4893
+ * The index of the UTXO in the transaction
4894
+ */
3581
4895
  outputIndex: number;
3582
4896
  rewardType?: RewardType;
4897
+ /**
4898
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4899
+ */
3583
4900
  stakeableLocktime?: number;
3584
4901
  staked?: boolean;
4902
+ /**
4903
+ * The minimum number of signatures required to spend this UTXO
4904
+ */
3585
4905
  threshold?: number;
4906
+ /**
4907
+ * The hash of the transaction that created this UTXO
4908
+ */
3586
4909
  txHash: string;
4910
+ /**
4911
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4912
+ */
3587
4913
  utxoEndTimestamp?: number;
4914
+ /**
4915
+ * Timestamp in seconds at which the staked UTXO was locked.
4916
+ */
3588
4917
  utxoStartTimestamp?: number;
3589
4918
  utxoType: UtxoType;
3590
4919
  };
@@ -3599,9 +4928,18 @@ type PChainTransaction = {
3599
4928
  * The block finality timestamp.
3600
4929
  */
3601
4930
  blockTimestamp: number;
4931
+ /**
4932
+ * The height of the block in which the transaction was included
4933
+ */
3602
4934
  blockNumber: string;
3603
4935
  blockHash: string;
4936
+ /**
4937
+ * The consumed UTXOs of the transaction
4938
+ */
3604
4939
  consumedUtxos: Array<PChainUtxo>;
4940
+ /**
4941
+ * The newly created UTXOs of the transaction
4942
+ */
3605
4943
  emittedUtxos: Array<PChainUtxo>;
3606
4944
  /**
3607
4945
  * Source chain for an atomic transaction.
@@ -3612,17 +4950,21 @@ type PChainTransaction = {
3612
4950
  */
3613
4951
  destinationChain?: string;
3614
4952
  /**
3615
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4953
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
3616
4954
  */
3617
4955
  value: Array<AssetAmount>;
3618
4956
  /**
3619
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4957
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
3620
4958
  */
3621
4959
  amountBurned: Array<AssetAmount>;
3622
4960
  /**
3623
4961
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3624
4962
  */
3625
4963
  amountStaked: Array<AssetAmount>;
4964
+ /**
4965
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
4966
+ */
4967
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3626
4968
  /**
3627
4969
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3628
4970
  */
@@ -3632,11 +4974,11 @@ type PChainTransaction = {
3632
4974
  */
3633
4975
  endTimestamp?: number;
3634
4976
  /**
3635
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
4977
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3636
4978
  */
3637
4979
  delegationFeePercent?: string;
3638
4980
  /**
3639
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4981
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3640
4982
  */
3641
4983
  nodeId?: string;
3642
4984
  /**
@@ -3644,14 +4986,25 @@ type PChainTransaction = {
3644
4986
  */
3645
4987
  subnetId?: string;
3646
4988
  /**
3647
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4989
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4990
+ */
4991
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4992
+ /**
4993
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
4994
+ */
4995
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4996
+ /**
4997
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3648
4998
  */
3649
4999
  estimatedReward?: string;
5000
+ /**
5001
+ * Reward transaction hash for the completed validations or delegations
5002
+ */
3650
5003
  rewardTxHash?: string;
3651
5004
  rewardAddresses?: Array<string>;
3652
5005
  memo?: string;
3653
5006
  /**
3654
- * Present for RewardValidatorTx
5007
+ * Staking transaction corresponding to the RewardValidatorTx
3655
5008
  */
3656
5009
  stakingTxHash?: string;
3657
5010
  /**
@@ -3659,7 +5012,7 @@ type PChainTransaction = {
3659
5012
  */
3660
5013
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3661
5014
  /**
3662
- * Present for AddPermissionlessValidatorTx
5015
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3663
5016
  */
3664
5017
  blsCredentials?: BlsCredentials;
3665
5018
  };
@@ -3844,6 +5197,11 @@ declare enum PrimaryNetworkTxType {
3844
5197
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3845
5198
  BASE_TX = "BaseTx",
3846
5199
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5200
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5201
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5202
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5203
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5204
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3847
5205
  UNKNOWN = "UNKNOWN",
3848
5206
  CREATE_ASSET_TX = "CreateAssetTx",
3849
5207
  OPERATION_TX = "OperationTx"
@@ -3855,7 +5213,7 @@ declare class PrimaryNetworkTransactionsService {
3855
5213
  /**
3856
5214
  * Get transaction
3857
5215
  * Gets the details of a single transaction on one of the Primary Network chains.
3858
- * @returns any
5216
+ * @returns any Successful response
3859
5217
  * @throws ApiError
3860
5218
  */
3861
5219
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -3864,7 +5222,7 @@ declare class PrimaryNetworkTransactionsService {
3864
5222
  */
3865
5223
  blockchainId: BlockchainId;
3866
5224
  /**
3867
- * Either mainnet or a testnet.
5225
+ * Either mainnet or testnet/fuji.
3868
5226
  */
3869
5227
  network: Network;
3870
5228
  /**
@@ -3878,23 +5236,26 @@ declare class PrimaryNetworkTransactionsService {
3878
5236
  *
3879
5237
  * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3880
5238
  *
5239
+ * For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
5240
+ *
3881
5241
  * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3882
- * @returns any
5242
+ * @returns any Successful response
3883
5243
  * @throws ApiError
3884
5244
  */
3885
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5245
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3886
5246
  /**
3887
5247
  * A primary network blockchain id or alias.
3888
5248
  */
3889
5249
  blockchainId: BlockchainId;
3890
5250
  /**
3891
- * Either mainnet or a testnet.
5251
+ * Either mainnet or testnet/fuji.
3892
5252
  */
3893
5253
  network: Network;
3894
5254
  /**
3895
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
5255
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
3896
5256
  */
3897
5257
  addresses?: string;
5258
+ l1ValidationId?: string;
3898
5259
  /**
3899
5260
  * Query param for filtering items based on transaction types.
3900
5261
  */
@@ -3923,7 +5284,7 @@ declare class PrimaryNetworkTransactionsService {
3923
5284
  /**
3924
5285
  * List staking transactions
3925
5286
  * Lists active staking transactions on the P-Chain for the supplied addresses.
3926
- * @returns ListPChainTransactionsResponse
5287
+ * @returns ListPChainTransactionsResponse Successful response
3927
5288
  * @throws ApiError
3928
5289
  */
3929
5290
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -3932,7 +5293,7 @@ declare class PrimaryNetworkTransactionsService {
3932
5293
  */
3933
5294
  blockchainId: PChainId;
3934
5295
  /**
3935
- * Either mainnet or a testnet.
5296
+ * Either mainnet or testnet/fuji.
3936
5297
  */
3937
5298
  network: Network;
3938
5299
  /**
@@ -3967,7 +5328,7 @@ declare class PrimaryNetworkTransactionsService {
3967
5328
  /**
3968
5329
  * List asset transactions
3969
5330
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
3970
- * @returns ListXChainTransactionsResponse
5331
+ * @returns ListXChainTransactionsResponse Successful response
3971
5332
  * @throws ApiError
3972
5333
  */
3973
5334
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -3976,7 +5337,7 @@ declare class PrimaryNetworkTransactionsService {
3976
5337
  */
3977
5338
  blockchainId: XChainId;
3978
5339
  /**
3979
- * Either mainnet or a testnet.
5340
+ * Either mainnet or testnet/fuji.
3980
5341
  */
3981
5342
  network: Network;
3982
5343
  /**
@@ -4030,7 +5391,7 @@ declare class PrimaryNetworkUtxOsService {
4030
5391
  /**
4031
5392
  * List UTXOs
4032
5393
  * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
4033
- * @returns any
5394
+ * @returns any Successful response
4034
5395
  * @throws ApiError
4035
5396
  */
4036
5397
  getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
@@ -4039,7 +5400,7 @@ declare class PrimaryNetworkUtxOsService {
4039
5400
  */
4040
5401
  blockchainId: BlockchainId;
4041
5402
  /**
4042
- * Either mainnet or a testnet.
5403
+ * Either mainnet or testnet/fuji.
4043
5404
  */
4044
5405
  network: Network;
4045
5406
  /**
@@ -4095,7 +5456,7 @@ declare class PrimaryNetworkVerticesService {
4095
5456
  /**
4096
5457
  * List vertices
4097
5458
  * Lists latest vertices on the X-Chain.
4098
- * @returns ListXChainVerticesResponse
5459
+ * @returns ListXChainVerticesResponse Successful response
4099
5460
  * @throws ApiError
4100
5461
  */
4101
5462
  listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
@@ -4104,7 +5465,7 @@ declare class PrimaryNetworkVerticesService {
4104
5465
  */
4105
5466
  blockchainId: XChainId;
4106
5467
  /**
4107
- * Either mainnet or a testnet.
5468
+ * Either mainnet or testnet/fuji.
4108
5469
  */
4109
5470
  network: Network;
4110
5471
  /**
@@ -4119,7 +5480,7 @@ declare class PrimaryNetworkVerticesService {
4119
5480
  /**
4120
5481
  * Get vertex
4121
5482
  * Gets a single vertex on the X-Chain.
4122
- * @returns XChainVertex
5483
+ * @returns XChainVertex Successful response
4123
5484
  * @throws ApiError
4124
5485
  */
4125
5486
  getVertexByHash({ vertexHash, blockchainId, network, }: {
@@ -4132,14 +5493,14 @@ declare class PrimaryNetworkVerticesService {
4132
5493
  */
4133
5494
  blockchainId: XChainId;
4134
5495
  /**
4135
- * Either mainnet or a testnet.
5496
+ * Either mainnet or testnet/fuji.
4136
5497
  */
4137
5498
  network: Network;
4138
5499
  }): CancelablePromise<XChainVertex>;
4139
5500
  /**
4140
5501
  * List vertices by height
4141
5502
  * Lists vertices at the given vertex height on the X-Chain.
4142
- * @returns ListXChainVerticesResponse
5503
+ * @returns ListXChainVerticesResponse Successful response
4143
5504
  * @throws ApiError
4144
5505
  */
4145
5506
  getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
@@ -4152,7 +5513,7 @@ declare class PrimaryNetworkVerticesService {
4152
5513
  */
4153
5514
  blockchainId: XChainId;
4154
5515
  /**
4155
- * Either mainnet or a testnet.
5516
+ * Either mainnet or testnet/fuji.
4156
5517
  */
4157
5518
  network: Network;
4158
5519
  /**
@@ -4170,47 +5531,33 @@ declare class PrimaryNetworkVerticesService {
4170
5531
  }): CancelablePromise<ListXChainVerticesResponse>;
4171
5532
  }
4172
5533
 
4173
- type RpcErrorDto = {
4174
- code: number;
4175
- message: string;
4176
- data?: Record<string, any>;
4177
- };
4178
-
4179
- type RpcErrorResponseDto = {
4180
- jsonrpc: string;
4181
- id?: (string | number);
4182
- error: RpcErrorDto;
4183
- };
4184
-
4185
- type RpcRequestBodyDto = {
4186
- method: string;
4187
- params?: Record<string, any>;
4188
- id?: (string | number);
4189
- jsonrpc?: string;
5534
+ type SignatureAggregationResponse = {
5535
+ signedMessage: string;
4190
5536
  };
4191
5537
 
4192
- type RpcSuccessResponseDto = {
4193
- jsonrpc: string;
4194
- id?: (string | number);
4195
- result: Record<string, any>;
5538
+ type SignatureAggregatorRequest = {
5539
+ message: string;
5540
+ justification?: string;
5541
+ signingSubnetId?: string;
5542
+ quorumPercentage?: number;
4196
5543
  };
4197
5544
 
4198
- declare class RpcService {
5545
+ declare class SignatureAggregatorService {
4199
5546
  readonly httpRequest: BaseHttpRequest;
4200
5547
  constructor(httpRequest: BaseHttpRequest);
4201
5548
  /**
4202
- * Calls JSON-RPC method
4203
- * Calls JSON-RPC method.
4204
- * @returns any
5549
+ * Aggregate Signatures
5550
+ * Aggregates Signatures for a Warp message from Subnet validators.
5551
+ * @returns SignatureAggregationResponse Successful response
4205
5552
  * @throws ApiError
4206
5553
  */
4207
- rpc({ chainId, requestBody, }: {
5554
+ aggregateSignatures({ network, requestBody, }: {
4208
5555
  /**
4209
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
5556
+ * Either mainnet or testnet/fuji.
4210
5557
  */
4211
- chainId: string;
4212
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4213
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
5558
+ network: Network;
5559
+ requestBody: SignatureAggregatorRequest;
5560
+ }): CancelablePromise<SignatureAggregationResponse>;
4214
5561
  }
4215
5562
 
4216
5563
  type TeleporterDestinationTransaction = {
@@ -4351,9 +5698,11 @@ declare class TeleporterService {
4351
5698
  readonly httpRequest: BaseHttpRequest;
4352
5699
  constructor(httpRequest: BaseHttpRequest);
4353
5700
  /**
4354
- * Get a teleporter message
4355
- * Gets a teleporter message by message ID.
4356
- * @returns any
5701
+ * @deprecated
5702
+ * **[Deprecated]** Gets a teleporter message by message ID.
5703
+ *
5704
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
5705
+ * @returns any Successful response
4357
5706
  * @throws ApiError
4358
5707
  */
4359
5708
  getTeleporterMessage({ messageId, }: {
@@ -4363,12 +5712,14 @@ declare class TeleporterService {
4363
5712
  messageId: string;
4364
5713
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4365
5714
  /**
4366
- * List teleporter messages
4367
- * Lists teleporter messages. Ordered by timestamp in descending order.
4368
- * @returns ListTeleporterMessagesResponse
5715
+ * @deprecated
5716
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5717
+ *
5718
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
5719
+ * @returns ListTeleporterMessagesResponse Successful response
4369
5720
  * @throws ApiError
4370
5721
  */
4371
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
5722
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
4372
5723
  /**
4373
5724
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4374
5725
  */
@@ -4385,6 +5736,10 @@ declare class TeleporterService {
4385
5736
  * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
4386
5737
  */
4387
5738
  destinationBlockchainId?: string;
5739
+ /**
5740
+ * The base58 encoded blockchain ID of either source or destination chain that one teleporter message interacts with.
5741
+ */
5742
+ blockchainId?: string;
4388
5743
  /**
4389
5744
  * The address of the recipient of the teleporter message.
4390
5745
  */
@@ -4394,9 +5749,35 @@ declare class TeleporterService {
4394
5749
  */
4395
5750
  from?: string;
4396
5751
  /**
4397
- * mainnet or testnet.
5752
+ * Either mainnet or testnet/fuji.
5753
+ */
5754
+ network?: Network;
5755
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
5756
+ /**
5757
+ * @deprecated
5758
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5759
+ *
5760
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5761
+ * @returns ListTeleporterMessagesResponse Successful response
5762
+ * @throws ApiError
5763
+ */
5764
+ listTeleporterMessagesByAddress({ address, pageToken, pageSize, network, }: {
5765
+ /**
5766
+ * An EVM address.
5767
+ */
5768
+ address: string;
5769
+ /**
5770
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5771
+ */
5772
+ pageToken?: string;
5773
+ /**
5774
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5775
+ */
5776
+ pageSize?: number;
5777
+ /**
5778
+ * Either mainnet or testnet/fuji.
4398
5779
  */
4399
- network?: NetworkType;
5780
+ network?: Network;
4400
5781
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4401
5782
  }
4402
5783
 
@@ -4404,7 +5785,7 @@ type AddressesChangeRequest = {
4404
5785
  /**
4405
5786
  * Ethereum address(es) for the address_activity event type
4406
5787
  */
4407
- addresses: Array<any[]>;
5788
+ addresses: Array<string>;
4408
5789
  };
4409
5790
 
4410
5791
  type AddressActivityMetadata = {
@@ -4430,7 +5811,7 @@ type CreateWebhookRequest = {
4430
5811
  name?: string;
4431
5812
  description?: string;
4432
5813
  /**
4433
- * Whether to include traces in the webhook payload.
5814
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4434
5815
  */
4435
5816
  includeInternalTxs?: boolean;
4436
5817
  /**
@@ -4490,6 +5871,9 @@ type UpdateWebhookRequest = {
4490
5871
  description?: string;
4491
5872
  url?: string;
4492
5873
  status?: WebhookStatusType;
5874
+ /**
5875
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5876
+ */
4493
5877
  includeInternalTxs?: boolean;
4494
5878
  includeLogs?: boolean;
4495
5879
  };
@@ -4505,7 +5889,7 @@ declare class WebhooksService {
4505
5889
  /**
4506
5890
  * Create a webhook
4507
5891
  * Create a new webhook.
4508
- * @returns WebhookResponse
5892
+ * @returns WebhookResponse Successful response
4509
5893
  * @throws ApiError
4510
5894
  */
4511
5895
  createWebhook({ requestBody, }: {
@@ -4514,7 +5898,7 @@ declare class WebhooksService {
4514
5898
  /**
4515
5899
  * List webhooks
4516
5900
  * Lists webhooks for the user.
4517
- * @returns ListWebhooksResponse
5901
+ * @returns ListWebhooksResponse Successful response
4518
5902
  * @throws ApiError
4519
5903
  */
4520
5904
  listWebhooks({ pageToken, pageSize, status, }: {
@@ -4534,7 +5918,7 @@ declare class WebhooksService {
4534
5918
  /**
4535
5919
  * Get a webhook by ID
4536
5920
  * Retrieves a webhook by ID.
4537
- * @returns WebhookResponse
5921
+ * @returns WebhookResponse Successful response
4538
5922
  * @throws ApiError
4539
5923
  */
4540
5924
  getWebhook({ id, }: {
@@ -4546,7 +5930,7 @@ declare class WebhooksService {
4546
5930
  /**
4547
5931
  * Deactivate a webhook
4548
5932
  * Deactivates a webhook by ID.
4549
- * @returns WebhookResponse
5933
+ * @returns WebhookResponse Successful response
4550
5934
  * @throws ApiError
4551
5935
  */
4552
5936
  deactivateWebhook({ id, }: {
@@ -4558,7 +5942,7 @@ declare class WebhooksService {
4558
5942
  /**
4559
5943
  * Update a webhook
4560
5944
  * Updates an existing webhook.
4561
- * @returns WebhookResponse
5945
+ * @returns WebhookResponse Successful response
4562
5946
  * @throws ApiError
4563
5947
  */
4564
5948
  updateWebhook({ id, requestBody, }: {
@@ -4569,23 +5953,23 @@ declare class WebhooksService {
4569
5953
  requestBody: UpdateWebhookRequest;
4570
5954
  }): CancelablePromise<WebhookResponse>;
4571
5955
  /**
4572
- * Generate a shared secret
4573
- * Generates a new shared secret.
4574
- * @returns SharedSecretsResponse
5956
+ * Generate or rotate a shared secret
5957
+ * Generates a new shared secret or rotate an existing one.
5958
+ * @returns SharedSecretsResponse Successful response
4575
5959
  * @throws ApiError
4576
5960
  */
4577
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5961
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4578
5962
  /**
4579
5963
  * Get a shared secret
4580
5964
  * Get a previously generated shared secret.
4581
- * @returns SharedSecretsResponse
5965
+ * @returns SharedSecretsResponse Successful response
4582
5966
  * @throws ApiError
4583
5967
  */
4584
5968
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4585
5969
  /**
4586
5970
  * Add addresses to webhook
4587
5971
  * Add addresses to webhook.
4588
- * @returns WebhookResponse
5972
+ * @returns WebhookResponse Successful response
4589
5973
  * @throws ApiError
4590
5974
  */
4591
5975
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4598,7 +5982,7 @@ declare class WebhooksService {
4598
5982
  /**
4599
5983
  * Remove addresses from webhook
4600
5984
  * Remove addresses from webhook.
4601
- * @returns WebhookResponse
5985
+ * @returns WebhookResponse Successful response
4602
5986
  * @throws ApiError
4603
5987
  */
4604
5988
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4611,7 +5995,7 @@ declare class WebhooksService {
4611
5995
  /**
4612
5996
  * List adresses by webhook
4613
5997
  * List adresses by webhook.
4614
- * @returns ListWebhookAddressesResponse
5998
+ * @returns ListWebhookAddressesResponse Successful response
4615
5999
  * @throws ApiError
4616
6000
  */
4617
6001
  getAddressesFromWebhook({ id, pageToken, pageSize, }: {
@@ -4632,6 +6016,7 @@ declare class WebhooksService {
4632
6016
 
4633
6017
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4634
6018
  declare class Glacier {
6019
+ readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4635
6020
  readonly default: DefaultService;
4636
6021
  readonly evmBalances: EvmBalancesService;
4637
6022
  readonly evmBlocks: EvmBlocksService;
@@ -4639,7 +6024,9 @@ declare class Glacier {
4639
6024
  readonly evmContracts: EvmContractsService;
4640
6025
  readonly evmTransactions: EvmTransactionsService;
4641
6026
  readonly healthCheck: HealthCheckService;
6027
+ readonly interchainMessaging: InterchainMessagingService;
4642
6028
  readonly nfTs: NfTsService;
6029
+ readonly notifications: NotificationsService;
4643
6030
  readonly operations: OperationsService;
4644
6031
  readonly primaryNetwork: PrimaryNetworkService;
4645
6032
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4648,7 +6035,7 @@ declare class Glacier {
4648
6035
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4649
6036
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4650
6037
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4651
- readonly rpc: RpcService;
6038
+ readonly signatureAggregator: SignatureAggregatorService;
4652
6039
  readonly teleporter: TeleporterService;
4653
6040
  readonly webhooks: WebhooksService;
4654
6041
  readonly request: BaseHttpRequest;
@@ -4672,6 +6059,70 @@ declare class ApiError extends Error {
4672
6059
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4673
6060
  }
4674
6061
 
6062
+ type BadGateway = {
6063
+ /**
6064
+ * The error message describing the reason for the exception
6065
+ */
6066
+ message: (string | Array<string>);
6067
+ /**
6068
+ * The HTTP status code of the response
6069
+ */
6070
+ statusCode: number;
6071
+ /**
6072
+ * The type of error
6073
+ */
6074
+ error: string;
6075
+ };
6076
+
6077
+ type BadRequest = {
6078
+ /**
6079
+ * The error message describing the reason for the exception
6080
+ */
6081
+ message: (string | Array<string>);
6082
+ /**
6083
+ * The HTTP status code of the response
6084
+ */
6085
+ statusCode: number;
6086
+ /**
6087
+ * The type of error
6088
+ */
6089
+ error: string;
6090
+ };
6091
+
6092
+ type DataListChainsResponse = {
6093
+ chains: Array<ChainInfo>;
6094
+ };
6095
+
6096
+ type Forbidden = {
6097
+ /**
6098
+ * The error message describing the reason for the exception
6099
+ */
6100
+ message: (string | Array<string>);
6101
+ /**
6102
+ * The HTTP status code of the response
6103
+ */
6104
+ statusCode: number;
6105
+ /**
6106
+ * The type of error
6107
+ */
6108
+ error: string;
6109
+ };
6110
+
6111
+ type InternalServerError = {
6112
+ /**
6113
+ * The error message describing the reason for the exception
6114
+ */
6115
+ message: (string | Array<string>);
6116
+ /**
6117
+ * The HTTP status code of the response
6118
+ */
6119
+ statusCode: number;
6120
+ /**
6121
+ * The type of error
6122
+ */
6123
+ error: string;
6124
+ };
6125
+
4675
6126
  type NextPageToken = {
4676
6127
  /**
4677
6128
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -4679,4 +6130,64 @@ type NextPageToken = {
4679
6130
  nextPageToken?: string;
4680
6131
  };
4681
6132
 
4682
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
6133
+ type NotFound = {
6134
+ /**
6135
+ * The error message describing the reason for the exception
6136
+ */
6137
+ message: (string | Array<string>);
6138
+ /**
6139
+ * The HTTP status code of the response
6140
+ */
6141
+ statusCode: number;
6142
+ /**
6143
+ * The type of error
6144
+ */
6145
+ error: string;
6146
+ };
6147
+
6148
+ type ServiceUnavailable = {
6149
+ /**
6150
+ * The error message describing the reason for the exception
6151
+ */
6152
+ message: (string | Array<string>);
6153
+ /**
6154
+ * The HTTP status code of the response
6155
+ */
6156
+ statusCode: number;
6157
+ /**
6158
+ * The type of error
6159
+ */
6160
+ error: string;
6161
+ };
6162
+
6163
+ type TooManyRequests = {
6164
+ /**
6165
+ * The error message describing the reason for the exception
6166
+ */
6167
+ message: (string | Array<string>);
6168
+ /**
6169
+ * The HTTP status code of the response
6170
+ */
6171
+ statusCode: number;
6172
+ /**
6173
+ * The type of error
6174
+ */
6175
+ error: string;
6176
+ };
6177
+
6178
+ type Unauthorized = {
6179
+ /**
6180
+ * The error message describing the reason for the exception
6181
+ */
6182
+ message: (string | Array<string>);
6183
+ /**
6184
+ * The HTTP status code of the response
6185
+ */
6186
+ statusCode: number;
6187
+ /**
6188
+ * The type of error
6189
+ */
6190
+ error: string;
6191
+ };
6192
+
6193
+ export { AccessRequest, ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, NotificationsResponse, NotificationsService, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };