@avalabs/glacier-sdk 3.1.0-canary.2a667a0.0 → 3.1.0-canary.2d7c9b5.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 (276) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1826 -387
  3. package/esm/generated/Glacier.d.ts +4 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  6. package/esm/generated/core/ApiResult.d.ts +1 -1
  7. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  8. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  9. package/esm/generated/core/OpenAPI.d.ts +2 -1
  10. package/esm/generated/core/OpenAPI.js +1 -1
  11. package/esm/generated/models/AccessListData.d.ts +12 -0
  12. package/esm/generated/models/AccessRequest.d.ts +12 -0
  13. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  14. package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
  15. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  16. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  17. package/esm/generated/models/AssetAmount.d.ts +1 -1
  18. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  19. package/esm/generated/models/BadGateway.d.ts +1 -1
  20. package/esm/generated/models/BadRequest.d.ts +1 -1
  21. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  22. package/esm/generated/models/Blockchain.d.ts +9 -1
  23. package/esm/generated/models/BlockchainInfo.d.ts +7 -2
  24. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  25. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  26. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  27. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  28. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  29. package/esm/generated/models/ChainInfo.d.ts +1 -1
  30. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  31. package/esm/generated/models/CommonBalanceType.js +1 -0
  32. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  33. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  34. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  35. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  36. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
  37. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
  38. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  39. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  40. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  41. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  42. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  43. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  44. package/esm/generated/models/ERCToken.d.ts +24 -0
  45. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  46. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  47. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  48. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  49. package/esm/generated/models/EVMInput.d.ts +1 -1
  50. package/esm/generated/models/EVMOutput.d.ts +1 -1
  51. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  52. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  53. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  54. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  55. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  56. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  57. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  58. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  59. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  60. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  61. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  62. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  63. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  64. package/esm/generated/models/EventType.d.ts +3 -1
  65. package/esm/generated/models/EventType.js +1 -1
  66. package/esm/generated/models/EvmBlock.d.ts +5 -1
  67. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  68. package/esm/generated/models/Forbidden.d.ts +1 -1
  69. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  70. package/esm/generated/models/Geolocation.d.ts +24 -0
  71. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  72. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  73. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  74. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  75. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  76. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  77. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  78. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  79. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  80. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  81. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  82. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  83. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  84. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  85. package/esm/generated/models/IcmRewardDetails.js +1 -0
  86. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  87. package/esm/generated/models/ImageAsset.d.ts +1 -1
  88. package/esm/generated/models/InternalServerError.d.ts +1 -1
  89. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  90. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  91. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  92. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  93. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  94. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  95. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  96. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  97. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  98. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  99. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  100. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  101. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  102. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  103. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  104. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  105. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  106. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  107. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  109. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  110. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  111. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  112. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  113. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  114. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  115. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  116. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  117. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  118. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  120. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  122. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  124. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  126. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  127. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  129. package/esm/generated/models/ListWebhooksResponse.d.ts +4 -3
  130. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  131. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  133. package/esm/generated/models/Log.d.ts +40 -0
  134. package/esm/generated/models/LogsFormat.d.ts +1 -1
  135. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  136. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  137. package/esm/generated/models/Method.d.ts +1 -1
  138. package/esm/generated/models/Metric.d.ts +1 -1
  139. package/esm/generated/models/Money.d.ts +1 -1
  140. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  141. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  142. package/esm/generated/models/Network.d.ts +1 -2
  143. package/esm/generated/models/Network.js +1 -1
  144. package/esm/generated/models/NetworkToken.d.ts +1 -1
  145. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  146. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  147. package/esm/generated/models/NextPageToken.d.ts +1 -1
  148. package/esm/generated/models/NotFound.d.ts +1 -1
  149. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  150. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  151. package/esm/generated/models/PChainBalance.d.ts +1 -1
  152. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  153. package/esm/generated/models/PChainTransaction.d.ts +39 -8
  154. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  155. package/esm/generated/models/PChainTransactionType.js +1 -1
  156. package/esm/generated/models/PChainUtxo.d.ts +28 -1
  157. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  158. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  159. package/esm/generated/models/PendingIcmMessage.js +1 -0
  160. package/esm/generated/models/PendingReward.d.ts +1 -1
  161. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  162. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  163. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  164. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  165. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  166. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  167. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  168. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  169. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  170. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  171. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  172. package/esm/generated/models/PricingProviders.d.ts +1 -1
  173. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  174. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  175. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  176. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  177. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  178. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  179. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  180. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  181. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  182. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  183. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  184. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  185. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  186. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  187. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  188. package/esm/generated/models/ResourceLink.d.ts +1 -1
  189. package/esm/generated/models/Rewards.d.ts +1 -1
  190. package/esm/generated/models/RichAddress.d.ts +1 -1
  191. package/esm/generated/models/RpcMetrics.d.ts +1 -1
  192. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  193. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  194. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  195. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  196. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  197. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  198. package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
  199. package/esm/generated/models/SignatureAggregatorRequest.d.ts +2 -8
  200. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  201. package/esm/generated/models/Subnet.d.ts +16 -3
  202. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  203. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  204. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  205. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  206. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  207. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  208. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  209. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  210. package/esm/generated/models/TeleporterMessageInfo.d.ts +1 -1
  211. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  212. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  213. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  214. package/esm/generated/models/Transaction.d.ts +121 -0
  215. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  216. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  217. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  218. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  219. package/esm/generated/models/Unauthorized.d.ts +1 -1
  220. package/esm/generated/models/UnknownContract.d.ts +1 -1
  221. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  222. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  223. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  224. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  225. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  226. package/esm/generated/models/Utxo.d.ts +1 -1
  227. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  228. package/esm/generated/models/UtxoType.d.ts +3 -0
  229. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  230. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  231. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  232. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  233. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  234. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  235. package/esm/generated/models/XChainBalances.d.ts +1 -1
  236. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  237. package/esm/generated/models/XChainVertex.d.ts +1 -1
  238. package/esm/generated/services/DataApiUsageMetricsService.d.ts +122 -23
  239. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  240. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  241. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  242. package/esm/generated/services/EvmBlocksService.js +1 -1
  243. package/esm/generated/services/EvmChainsService.d.ts +72 -6
  244. package/esm/generated/services/EvmChainsService.js +1 -1
  245. package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
  246. package/esm/generated/services/EvmTransactionsService.js +1 -1
  247. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  248. package/esm/generated/services/HealthCheckService.js +1 -1
  249. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  250. package/esm/generated/services/InterchainMessagingService.js +1 -0
  251. package/esm/generated/services/NotificationsService.d.ts +51 -0
  252. package/esm/generated/services/NotificationsService.js +1 -0
  253. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  254. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  255. package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
  256. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  257. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  258. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  259. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  260. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  261. package/esm/generated/services/TeleporterService.d.ts +12 -6
  262. package/esm/generated/services/WebhooksService.d.ts +26 -24
  263. package/esm/generated/services/WebhooksService.js +1 -1
  264. package/esm/index.d.ts +53 -9
  265. package/esm/index.js +1 -1
  266. package/package.json +13 -4
  267. package/dist/index.js +0 -1
  268. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  269. package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
  270. package/esm/generated/models/PrimaryNetwork.js +0 -1
  271. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  272. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  273. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  274. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  275. package/esm/generated/services/RpcService.d.ts +0 -25
  276. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -148,6 +148,28 @@ type LogsResponseDTO = {
148
148
  logs: Array<LogsFormat>;
149
149
  };
150
150
 
151
+ declare enum Network {
152
+ MAINNET = "mainnet",
153
+ FUJI = "fuji",
154
+ TESTNET = "testnet"
155
+ }
156
+
157
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
158
+ RPC_METHOD = "rpcMethod",
159
+ REQUEST_PATH = "requestPath",
160
+ RESPONSE_CODE = "responseCode",
161
+ COUNTRY = "country",
162
+ CONTINENT = "continent",
163
+ USER_AGENT = "userAgent"
164
+ }
165
+
166
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
167
+ HOURLY = "hourly",
168
+ DAILY = "daily",
169
+ WEEKLY = "weekly",
170
+ MONTHLY = "monthly"
171
+ }
172
+
151
173
  type RpcUsageMetricsValueAggregated = {
152
174
  /**
153
175
  * The total number of requests
@@ -173,6 +195,10 @@ type RpcUsageMetricsValueAggregated = {
173
195
  * The number of invalid requests
174
196
  */
175
197
  invalidRequests: number;
198
+ /**
199
+ * The number of API credits wasted on invalid requests
200
+ */
201
+ apiCreditsWasted: number;
176
202
  /**
177
203
  * Column name used for data aggregation
178
204
  */
@@ -190,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
190
216
  RPC_METHOD = "rpcMethod",
191
217
  RESPONSE_CODE = "responseCode",
192
218
  RL_BYPASS_TOKEN = "rlBypassToken",
219
+ REQUEST_PATH = "requestPath",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent",
193
223
  NONE = "None"
194
224
  }
195
225
  }
@@ -205,19 +235,56 @@ type RpcMetrics = {
205
235
  values: Array<RpcUsageMetricsValueAggregated>;
206
236
  };
207
237
 
208
- type RpcUsageMetricsResponseDTO = {
238
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
209
239
  /**
210
240
  * Duration in which the metrics value is aggregated
211
241
  */
212
242
  aggregateDuration: string;
213
243
  /**
214
- * ChainId for which the metrics are aggregated
244
+ * Metrics values
215
245
  */
216
- chainId: string;
246
+ metrics: Array<RpcMetrics>;
247
+ /**
248
+ * Network type for which the metrics are aggregated
249
+ */
250
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
251
+ };
252
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
253
+ /**
254
+ * Network type for which the metrics are aggregated
255
+ */
256
+ enum network {
257
+ MAINNET = "mainnet",
258
+ TESTNET = "testnet"
259
+ }
260
+ }
261
+
262
+ declare enum RpcUsageMetricsGroupByEnum {
263
+ RPC_METHOD = "rpcMethod",
264
+ RESPONSE_CODE = "responseCode",
265
+ RL_BYPASS_TOKEN = "rlBypassToken"
266
+ }
267
+
268
+ declare enum SubnetRpcTimeIntervalGranularity {
269
+ HOURLY = "hourly",
270
+ DAILY = "daily",
271
+ WEEKLY = "weekly",
272
+ MONTHLY = "monthly"
273
+ }
274
+
275
+ type SubnetRpcUsageMetricsResponseDTO = {
276
+ /**
277
+ * Duration in which the metrics value is aggregated
278
+ */
279
+ aggregateDuration: string;
217
280
  /**
218
281
  * Metrics values
219
282
  */
220
283
  metrics: Array<RpcMetrics>;
284
+ /**
285
+ * ChainId for which the metrics are aggregated
286
+ */
287
+ chainId: string;
221
288
  };
222
289
 
223
290
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +390,7 @@ declare class DataApiUsageMetricsService {
323
390
  * @returns UsageMetricsResponseDTO Successful response
324
391
  * @throws ApiError
325
392
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
393
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
394
  /**
328
395
  * Organization ID to fetch usage metrics for
329
396
  */
@@ -333,7 +400,7 @@ declare class DataApiUsageMetricsService {
333
400
  */
334
401
  startTimestamp?: number;
335
402
  /**
336
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
403
+ * 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.
337
404
  */
338
405
  endTimestamp?: number;
339
406
  /**
@@ -348,10 +415,6 @@ declare class DataApiUsageMetricsService {
348
415
  * Filter data by chain ID.
349
416
  */
350
417
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
418
  /**
356
419
  * Filter data by response status code.
357
420
  */
@@ -364,6 +427,10 @@ declare class DataApiUsageMetricsService {
364
427
  * Filter data by API key ID.
365
428
  */
366
429
  apiKeyId?: string;
430
+ /**
431
+ * Filter data by request path.
432
+ */
433
+ requestPath?: string;
367
434
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
435
  /**
369
436
  * Get logs for requests made by client
@@ -371,7 +438,7 @@ declare class DataApiUsageMetricsService {
371
438
  * @returns LogsResponseDTO Successful response
372
439
  * @throws ApiError
373
440
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
441
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
442
  /**
376
443
  * Organization ID to fetch usage metrics for
377
444
  */
@@ -381,17 +448,13 @@ declare class DataApiUsageMetricsService {
381
448
  */
382
449
  startTimestamp?: number;
383
450
  /**
384
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
451
+ * 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.
385
452
  */
386
453
  endTimestamp?: number;
387
454
  /**
388
455
  * Filter data by chain ID.
389
456
  */
390
457
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
458
  /**
396
459
  * Filter data by response status code.
397
460
  */
@@ -404,6 +467,10 @@ declare class DataApiUsageMetricsService {
404
467
  * Filter data by API key ID.
405
468
  */
406
469
  apiKeyId?: string;
470
+ /**
471
+ * Filter data by request path.
472
+ */
473
+ requestPath?: string;
407
474
  /**
408
475
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
476
  */
@@ -415,35 +482,75 @@ declare class DataApiUsageMetricsService {
415
482
  }): CancelablePromise<LogsResponseDTO>;
416
483
  /**
417
484
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
485
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
486
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
420
487
  * @throws ApiError
421
488
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
489
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
490
  /**
424
- * Query param for setting time interval of data aggregation.
491
+ * Time interval granularity for data aggregation for subnet
492
+ * rpc metrics
425
493
  */
426
- timeInterval?: string;
494
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
495
  /**
428
496
  * 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.
429
497
  */
430
498
  startTimestamp?: number;
431
499
  /**
432
- * 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. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
500
+ * 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.
433
501
  */
434
502
  endTimestamp?: number;
435
503
  /**
436
504
  * Query param for the criterion used for grouping metrics
437
505
  */
438
- groupBy?: UsageMetricsGroupByEnum;
506
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
507
  /**
440
508
  * Filter data by chain ID.
441
509
  */
442
510
  chainId?: string;
443
511
  /**
444
- * Filter data by request path.
512
+ * Filter data by response status code.
445
513
  */
446
- requestPath?: string;
514
+ responseCode?: string;
515
+ /**
516
+ * Filter data by RPC method.
517
+ */
518
+ rpcMethod?: string;
519
+ /**
520
+ * Filter data by Rl Bypass API Token.
521
+ */
522
+ rlBypassApiToken?: string;
523
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
524
+ /**
525
+ * @deprecated
526
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
527
+ *
528
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
529
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
530
+ * @throws ApiError
531
+ */
532
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
533
+ /**
534
+ * Time interval granularity for data aggregation for subnet
535
+ * rpc metrics
536
+ */
537
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
538
+ /**
539
+ * 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.
540
+ */
541
+ startTimestamp?: number;
542
+ /**
543
+ * 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.
544
+ */
545
+ endTimestamp?: number;
546
+ /**
547
+ * Query param for the criterion used for grouping metrics
548
+ */
549
+ groupBy?: RpcUsageMetricsGroupByEnum;
550
+ /**
551
+ * Filter data by chain ID.
552
+ */
553
+ chainId?: string;
447
554
  /**
448
555
  * Filter data by response status code.
449
556
  */
@@ -456,7 +563,60 @@ declare class DataApiUsageMetricsService {
456
563
  * Filter data by Rl Bypass API Token.
457
564
  */
458
565
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
566
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
567
+ /**
568
+ * Get usage metrics for the Primary Network RPC
569
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
570
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
571
+ * @throws ApiError
572
+ */
573
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
574
+ /**
575
+ * Either mainnet or testnet/fuji.
576
+ */
577
+ network: Network;
578
+ /**
579
+ * Time interval granularity for data aggregation for subnet
580
+ * rpc metrics
581
+ */
582
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
583
+ /**
584
+ * 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.
585
+ */
586
+ startTimestamp?: number;
587
+ /**
588
+ * 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.
589
+ */
590
+ endTimestamp?: number;
591
+ /**
592
+ * Query param for the criterion used for grouping metrics
593
+ */
594
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
595
+ /**
596
+ * Filter data by response status code.
597
+ */
598
+ responseCode?: string;
599
+ /**
600
+ * Filter data by request path.
601
+ */
602
+ requestPath?: string;
603
+ /**
604
+ * 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.
605
+ */
606
+ country?: string;
607
+ /**
608
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
609
+ */
610
+ continent?: string;
611
+ /**
612
+ * Filter data by User Agent.
613
+ */
614
+ userAgent?: string;
615
+ /**
616
+ * Filter data by RPC method.
617
+ */
618
+ rpcMethod?: string;
619
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
460
620
  }
461
621
 
462
622
  declare class DefaultService {
@@ -655,6 +815,10 @@ type ListErc1155BalancesResponse = {
655
815
  * 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.
656
816
  */
657
817
  nextPageToken?: string;
818
+ /**
819
+ * The native token balance for the address.
820
+ */
821
+ nativeTokenBalance: NativeTokenBalance;
658
822
  /**
659
823
  * The list of ERC-1155 token balances for the address.
660
824
  */
@@ -699,11 +863,22 @@ type Erc20TokenBalance = {
699
863
  * The monetary value of the balance, if a price is available for the token.
700
864
  */
701
865
  balanceValue?: Money;
866
+ /**
867
+ * 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.
868
+ */
869
+ tokenReputation: Erc20TokenBalance.tokenReputation;
702
870
  };
703
871
  declare namespace Erc20TokenBalance {
704
872
  enum ercType {
705
873
  ERC_20 = "ERC-20"
706
874
  }
875
+ /**
876
+ * 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.
877
+ */
878
+ enum tokenReputation {
879
+ MALICIOUS = "Malicious",
880
+ BENIGN = "Benign"
881
+ }
707
882
  }
708
883
 
709
884
  type ListErc20BalancesResponse = {
@@ -711,6 +886,10 @@ type ListErc20BalancesResponse = {
711
886
  * 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.
712
887
  */
713
888
  nextPageToken?: string;
889
+ /**
890
+ * The native token balance for the address.
891
+ */
892
+ nativeTokenBalance: NativeTokenBalance;
714
893
  /**
715
894
  * The list of ERC-20 token balances for the address.
716
895
  */
@@ -722,6 +901,10 @@ type ListErc721BalancesResponse = {
722
901
  * 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.
723
902
  */
724
903
  nextPageToken?: string;
904
+ /**
905
+ * The native token balance for the address.
906
+ */
907
+ nativeTokenBalance: NativeTokenBalance;
725
908
  /**
726
909
  * The list of ERC-721 token balances for the address.
727
910
  */
@@ -785,7 +968,7 @@ declare class EvmBalancesService {
785
968
  */
786
969
  pageToken?: string;
787
970
  /**
788
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
971
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
789
972
  */
790
973
  pageSize?: number;
791
974
  /**
@@ -823,7 +1006,7 @@ declare class EvmBalancesService {
823
1006
  */
824
1007
  pageToken?: string;
825
1008
  /**
826
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1009
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
827
1010
  */
828
1011
  pageSize?: number;
829
1012
  /**
@@ -859,7 +1042,7 @@ declare class EvmBalancesService {
859
1042
  */
860
1043
  pageToken?: string;
861
1044
  /**
862
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1045
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
863
1046
  */
864
1047
  pageSize?: number;
865
1048
  /**
@@ -889,7 +1072,7 @@ declare class EvmBalancesService {
889
1072
  */
890
1073
  pageToken?: string;
891
1074
  /**
892
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1075
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
893
1076
  */
894
1077
  pageSize?: number;
895
1078
  /**
@@ -900,6 +1083,10 @@ declare class EvmBalancesService {
900
1083
  }
901
1084
 
902
1085
  type GetEvmBlockResponse = {
1086
+ /**
1087
+ * The EVM chain ID on which the block was created.
1088
+ */
1089
+ chainId: string;
903
1090
  /**
904
1091
  * The block number on the chain.
905
1092
  */
@@ -944,6 +1131,10 @@ type GetEvmBlockResponse = {
944
1131
  };
945
1132
 
946
1133
  type EvmBlock = {
1134
+ /**
1135
+ * The EVM chain ID on which the block was created.
1136
+ */
1137
+ chainId: string;
947
1138
  /**
948
1139
  * The block number on the chain.
949
1140
  */
@@ -998,6 +1189,26 @@ type ListEvmBlocksResponse = {
998
1189
  declare class EvmBlocksService {
999
1190
  readonly httpRequest: BaseHttpRequest;
1000
1191
  constructor(httpRequest: BaseHttpRequest);
1192
+ /**
1193
+ * List latest blocks across all supported EVM chains
1194
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1195
+ * @returns ListEvmBlocksResponse Successful response
1196
+ * @throws ApiError
1197
+ */
1198
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1199
+ /**
1200
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1201
+ */
1202
+ pageToken?: string;
1203
+ /**
1204
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1205
+ */
1206
+ pageSize?: number;
1207
+ /**
1208
+ * Either mainnet or testnet/fuji.
1209
+ */
1210
+ network?: Network;
1211
+ }): CancelablePromise<ListEvmBlocksResponse>;
1001
1212
  /**
1002
1213
  * List latest blocks
1003
1214
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1120,68 +1331,240 @@ type ChainInfo = {
1120
1331
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1332
  };
1122
1333
 
1334
+ type ListAddressChainsResponse = {
1335
+ indexedChains?: Array<ChainInfo>;
1336
+ unindexedChains?: Array<string>;
1337
+ };
1338
+
1123
1339
  type ListChainsResponse = {
1124
1340
  chains: Array<ChainInfo>;
1125
1341
  };
1126
1342
 
1127
- declare enum Network {
1128
- MAINNET = "mainnet",
1129
- FUJI = "fuji",
1130
- TESTNET = "testnet",
1131
- DEVNET = "devnet"
1343
+ /**
1344
+ * 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.
1345
+ */
1346
+ declare enum TransactionMethodType {
1347
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1348
+ CONTRACT_CALL = "CONTRACT_CALL",
1349
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1132
1350
  }
1133
1351
 
1134
- declare class EvmChainsService {
1135
- readonly httpRequest: BaseHttpRequest;
1136
- constructor(httpRequest: BaseHttpRequest);
1352
+ type Method = {
1353
+ callType: TransactionMethodType;
1137
1354
  /**
1138
- * List chains
1139
- * Lists the supported EVM-compatible chains. Filterable by network.
1140
- * @returns ListChainsResponse Successful response
1141
- * @throws ApiError
1355
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1142
1356
  */
1143
- supportedChains({ network, feature, }: {
1144
- /**
1145
- * Either mainnet or testnet/fuji.
1146
- */
1147
- network?: Network;
1148
- /**
1149
- * Filter by feature.
1150
- */
1151
- feature?: ApiFeature;
1152
- }): CancelablePromise<ListChainsResponse>;
1357
+ methodHash: string;
1153
1358
  /**
1154
- * Get chain information
1155
- * Gets chain information for the EVM-compatible chain if supported by the api.
1156
- * @returns GetChainResponse Successful response
1157
- * @throws ApiError
1359
+ * 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'.
1158
1360
  */
1159
- getChainInfo({ chainId, }: {
1160
- /**
1161
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1162
- */
1163
- chainId: string;
1164
- }): CancelablePromise<GetChainResponse>;
1361
+ methodName?: string;
1362
+ };
1363
+
1364
+ type RichAddress = {
1165
1365
  /**
1166
- * Get chains for address
1167
- * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1169
- * @throws ApiError
1366
+ * The contract name.
1170
1367
  */
1171
- getAddressChains({ address, }: {
1172
- /**
1173
- * A wallet address.
1174
- */
1175
- address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1177
- }
1178
-
1179
- type ImageAsset = {
1180
- assetId?: string;
1368
+ name?: string;
1181
1369
  /**
1182
- * OUTPUT ONLY
1370
+ * The contract symbol.
1183
1371
  */
1184
- imageUri?: string;
1372
+ symbol?: string;
1373
+ /**
1374
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1375
+ */
1376
+ decimals?: number;
1377
+ /**
1378
+ * The logo uri for the address.
1379
+ */
1380
+ logoUri?: string;
1381
+ /**
1382
+ * A wallet or contract address in mixed-case checksum encoding.
1383
+ */
1384
+ address: string;
1385
+ };
1386
+
1387
+ type NativeTransaction = {
1388
+ /**
1389
+ * The block number on the chain.
1390
+ */
1391
+ blockNumber: string;
1392
+ /**
1393
+ * The block finality timestamp.
1394
+ */
1395
+ blockTimestamp: number;
1396
+ /**
1397
+ * The block hash identifier.
1398
+ */
1399
+ blockHash: string;
1400
+ /**
1401
+ * The EVM chain ID on which the transaction occured.
1402
+ */
1403
+ chainId: string;
1404
+ /**
1405
+ * The index at which the transaction occured in the block (0-indexed).
1406
+ */
1407
+ blockIndex: number;
1408
+ /**
1409
+ * The transaction hash identifier.
1410
+ */
1411
+ txHash: string;
1412
+ /**
1413
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1414
+ */
1415
+ txStatus: string;
1416
+ /**
1417
+ * The transaction type.
1418
+ */
1419
+ txType: number;
1420
+ /**
1421
+ * The gas limit set for the transaction.
1422
+ */
1423
+ gasLimit: string;
1424
+ /**
1425
+ * The amount of gas used.
1426
+ */
1427
+ gasUsed: string;
1428
+ /**
1429
+ * The gas price denominated by the number of decimals of the native token.
1430
+ */
1431
+ gasPrice: string;
1432
+ /**
1433
+ * The nonce used by the sender of the transaction.
1434
+ */
1435
+ nonce: string;
1436
+ from: RichAddress;
1437
+ to: RichAddress;
1438
+ method?: Method;
1439
+ value: string;
1440
+ };
1441
+
1442
+ type ListNativeTransactionsResponse = {
1443
+ /**
1444
+ * 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.
1445
+ */
1446
+ nextPageToken?: string;
1447
+ transactions: Array<NativeTransaction>;
1448
+ };
1449
+
1450
+ declare enum TransactionStatus {
1451
+ FAILED = "failed",
1452
+ SUCCESS = "success"
1453
+ }
1454
+
1455
+ declare class EvmChainsService {
1456
+ readonly httpRequest: BaseHttpRequest;
1457
+ constructor(httpRequest: BaseHttpRequest);
1458
+ /**
1459
+ * List all chains associated with a given address
1460
+ * 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.
1461
+ * @returns ListAddressChainsResponse Successful response
1462
+ * @throws ApiError
1463
+ */
1464
+ listAddressChains({ address, }: {
1465
+ /**
1466
+ * A wallet address.
1467
+ */
1468
+ address: string;
1469
+ }): CancelablePromise<ListAddressChainsResponse>;
1470
+ /**
1471
+ * List chains
1472
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1473
+ * @returns ListChainsResponse Successful response
1474
+ * @throws ApiError
1475
+ */
1476
+ supportedChains({ network, feature, }: {
1477
+ /**
1478
+ * Either mainnet or testnet/fuji.
1479
+ */
1480
+ network?: Network;
1481
+ /**
1482
+ * Filter by feature.
1483
+ */
1484
+ feature?: ApiFeature;
1485
+ }): CancelablePromise<ListChainsResponse>;
1486
+ /**
1487
+ * Get chain information
1488
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1489
+ * @returns GetChainResponse Successful response
1490
+ * @throws ApiError
1491
+ */
1492
+ getChainInfo({ chainId, }: {
1493
+ /**
1494
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1495
+ */
1496
+ chainId: string;
1497
+ }): CancelablePromise<GetChainResponse>;
1498
+ /**
1499
+ * @deprecated
1500
+ * **[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.
1501
+ *
1502
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1503
+ * @returns ListAddressChainsResponse Successful response
1504
+ * @throws ApiError
1505
+ */
1506
+ getAddressChains({ address, }: {
1507
+ /**
1508
+ * A wallet address.
1509
+ */
1510
+ address: string;
1511
+ }): CancelablePromise<ListAddressChainsResponse>;
1512
+ /**
1513
+ * @deprecated
1514
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1515
+ *
1516
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1517
+ * @returns ListNativeTransactionsResponse Successful response
1518
+ * @throws ApiError
1519
+ */
1520
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1521
+ /**
1522
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1523
+ */
1524
+ pageToken?: string;
1525
+ /**
1526
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1527
+ */
1528
+ pageSize?: number;
1529
+ /**
1530
+ * Either mainnet or testnet/fuji.
1531
+ */
1532
+ network?: Network;
1533
+ /**
1534
+ * A status filter for listed transactions.
1535
+ */
1536
+ status?: TransactionStatus;
1537
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1538
+ /**
1539
+ * @deprecated
1540
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1541
+ *
1542
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1543
+ * @returns ListEvmBlocksResponse Successful response
1544
+ * @throws ApiError
1545
+ */
1546
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1547
+ /**
1548
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1549
+ */
1550
+ pageToken?: string;
1551
+ /**
1552
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1553
+ */
1554
+ pageSize?: number;
1555
+ /**
1556
+ * Either mainnet or testnet/fuji.
1557
+ */
1558
+ network?: Network;
1559
+ }): CancelablePromise<ListEvmBlocksResponse>;
1560
+ }
1561
+
1562
+ type ImageAsset = {
1563
+ assetId?: string;
1564
+ /**
1565
+ * OUTPUT ONLY
1566
+ */
1567
+ imageUri?: string;
1185
1568
  };
1186
1569
 
1187
1570
  type PricingProviders = {
@@ -1345,7 +1728,7 @@ type Erc1155Contract = {
1345
1728
  * A wallet or contract address in mixed-case checksum encoding.
1346
1729
  */
1347
1730
  address: string;
1348
- deploymentDetails: ContractDeploymentDetails;
1731
+ deploymentDetails?: ContractDeploymentDetails;
1349
1732
  ercType: Erc1155Contract.ercType;
1350
1733
  /**
1351
1734
  * The contract symbol.
@@ -1376,7 +1759,7 @@ type Erc20Contract = {
1376
1759
  * A wallet or contract address in mixed-case checksum encoding.
1377
1760
  */
1378
1761
  address: string;
1379
- deploymentDetails: ContractDeploymentDetails;
1762
+ deploymentDetails?: ContractDeploymentDetails;
1380
1763
  ercType: Erc20Contract.ercType;
1381
1764
  /**
1382
1765
  * The contract symbol.
@@ -1411,7 +1794,7 @@ type Erc721Contract = {
1411
1794
  * A wallet or contract address in mixed-case checksum encoding.
1412
1795
  */
1413
1796
  address: string;
1414
- deploymentDetails: ContractDeploymentDetails;
1797
+ deploymentDetails?: ContractDeploymentDetails;
1415
1798
  ercType: Erc721Contract.ercType;
1416
1799
  /**
1417
1800
  * The contract symbol.
@@ -1441,7 +1824,7 @@ type UnknownContract = {
1441
1824
  * A wallet or contract address in mixed-case checksum encoding.
1442
1825
  */
1443
1826
  address: string;
1444
- deploymentDetails: ContractDeploymentDetails;
1827
+ deploymentDetails?: ContractDeploymentDetails;
1445
1828
  ercType: UnknownContract.ercType;
1446
1829
  };
1447
1830
  declare namespace UnknownContract {
@@ -1508,29 +1891,6 @@ declare namespace Erc1155Token {
1508
1891
  }
1509
1892
  }
1510
1893
 
1511
- type RichAddress = {
1512
- /**
1513
- * The contract name.
1514
- */
1515
- name?: string;
1516
- /**
1517
- * The contract symbol.
1518
- */
1519
- symbol?: string;
1520
- /**
1521
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1522
- */
1523
- decimals?: number;
1524
- /**
1525
- * The logo uri for the address.
1526
- */
1527
- logoUri?: string;
1528
- /**
1529
- * A wallet or contract address in mixed-case checksum encoding.
1530
- */
1531
- address: string;
1532
- };
1533
-
1534
1894
  type Erc1155TransferDetails = {
1535
1895
  from: RichAddress;
1536
1896
  to: RichAddress;
@@ -1615,27 +1975,6 @@ type Erc721TransferDetails = {
1615
1975
  erc721Token: Erc721Token;
1616
1976
  };
1617
1977
 
1618
- /**
1619
- * 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.
1620
- */
1621
- declare enum TransactionMethodType {
1622
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1623
- CONTRACT_CALL = "CONTRACT_CALL",
1624
- CONTRACT_CREATION = "CONTRACT_CREATION"
1625
- }
1626
-
1627
- type Method = {
1628
- callType: TransactionMethodType;
1629
- /**
1630
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1631
- */
1632
- methodHash: string;
1633
- /**
1634
- * 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'.
1635
- */
1636
- methodName?: string;
1637
- };
1638
-
1639
1978
  type FullNativeTransactionDetails = {
1640
1979
  /**
1641
1980
  * The block number on the chain.
@@ -1649,6 +1988,10 @@ type FullNativeTransactionDetails = {
1649
1988
  * The block hash identifier.
1650
1989
  */
1651
1990
  blockHash: string;
1991
+ /**
1992
+ * The EVM chain ID on which the transaction occured.
1993
+ */
1994
+ chainId: string;
1652
1995
  /**
1653
1996
  * The index at which the transaction occured in the block (0-indexed).
1654
1997
  */
@@ -1699,6 +2042,7 @@ declare enum InternalTransactionOpCall {
1699
2042
  CALL = "CALL",
1700
2043
  CREATE = "CREATE",
1701
2044
  CREATE2 = "CREATE2",
2045
+ CREATE3 = "CREATE3",
1702
2046
  CALLCODE = "CALLCODE",
1703
2047
  DELEGATECALL = "DELEGATECALL",
1704
2048
  STATICCALL = "STATICCALL"
@@ -1761,7 +2105,7 @@ type GetTransactionResponse = {
1761
2105
  */
1762
2106
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1763
2107
  /**
1764
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
2108
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1765
2109
  */
1766
2110
  internalTransactions?: Array<InternalTransactionDetails>;
1767
2111
  networkTokenDetails: NetworkTokenDetails;
@@ -1912,99 +2256,40 @@ type ListInternalTransactionsResponse = {
1912
2256
  transactions: Array<InternalTransaction>;
1913
2257
  };
1914
2258
 
1915
- type NativeTransaction = {
1916
- /**
1917
- * The block number on the chain.
1918
- */
1919
- blockNumber: string;
1920
- /**
1921
- * The block finality timestamp.
1922
- */
1923
- blockTimestamp: number;
2259
+ type TransactionDetails = {
1924
2260
  /**
1925
- * The block hash identifier.
2261
+ * The native (top-level) transaction details.
1926
2262
  */
1927
- blockHash: string;
2263
+ nativeTransaction: NativeTransaction;
1928
2264
  /**
1929
- * The index at which the transaction occured in the block (0-indexed).
2265
+ * The list of ERC-20 transfers.
1930
2266
  */
1931
- blockIndex: number;
2267
+ erc20Transfers?: Array<Erc20TransferDetails>;
1932
2268
  /**
1933
- * The transaction hash identifier.
2269
+ * The list of ERC-721 transfers.
1934
2270
  */
1935
- txHash: string;
2271
+ erc721Transfers?: Array<Erc721TransferDetails>;
1936
2272
  /**
1937
- * The transaction status, which is either 0 (failed) or 1 (successful).
2273
+ * The list of ERC-1155 transfers.
1938
2274
  */
1939
- txStatus: string;
2275
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1940
2276
  /**
1941
- * The transaction type.
2277
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
1942
2278
  */
1943
- txType: number;
2279
+ internalTransactions?: Array<InternalTransactionDetails>;
2280
+ };
2281
+
2282
+ type ListTransactionDetailsResponse = {
1944
2283
  /**
1945
- * The gas limit set for the transaction.
2284
+ * 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.
1946
2285
  */
1947
- gasLimit: string;
2286
+ nextPageToken?: string;
2287
+ transactions: Array<TransactionDetails>;
2288
+ };
2289
+
2290
+ type ListTransfersResponse = {
1948
2291
  /**
1949
- * The amount of gas used.
1950
- */
1951
- gasUsed: string;
1952
- /**
1953
- * The gas price denominated by the number of decimals of the native token.
1954
- */
1955
- gasPrice: string;
1956
- /**
1957
- * The nonce used by the sender of the transaction.
1958
- */
1959
- nonce: string;
1960
- from: RichAddress;
1961
- to: RichAddress;
1962
- method?: Method;
1963
- value: string;
1964
- };
1965
-
1966
- type ListNativeTransactionsResponse = {
1967
- /**
1968
- * 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.
1969
- */
1970
- nextPageToken?: string;
1971
- transactions: Array<NativeTransaction>;
1972
- };
1973
-
1974
- type TransactionDetails = {
1975
- /**
1976
- * The native (top-level) transaction details.
1977
- */
1978
- nativeTransaction: NativeTransaction;
1979
- /**
1980
- * The list of ERC-20 transfers.
1981
- */
1982
- erc20Transfers?: Array<Erc20TransferDetails>;
1983
- /**
1984
- * The list of ERC-721 transfers.
1985
- */
1986
- erc721Transfers?: Array<Erc721TransferDetails>;
1987
- /**
1988
- * The list of ERC-1155 transfers.
1989
- */
1990
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1991
- /**
1992
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1993
- */
1994
- internalTransactions?: Array<InternalTransactionDetails>;
1995
- };
1996
-
1997
- type ListTransactionDetailsResponse = {
1998
- /**
1999
- * 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.
2000
- */
2001
- nextPageToken?: string;
2002
- transactions: Array<TransactionDetails>;
2003
- };
2004
-
2005
- type ListTransfersResponse = {
2006
- /**
2007
- * 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.
2292
+ * 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.
2008
2293
  */
2009
2294
  nextPageToken?: string;
2010
2295
  transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
@@ -2015,14 +2300,33 @@ declare enum SortOrder {
2015
2300
  DESC = "desc"
2016
2301
  }
2017
2302
 
2018
- declare enum TransactionStatus {
2019
- FAILED = "failed",
2020
- SUCCESS = "success"
2021
- }
2022
-
2023
2303
  declare class EvmTransactionsService {
2024
2304
  readonly httpRequest: BaseHttpRequest;
2025
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>;
2026
2330
  /**
2027
2331
  * Get deployment transaction
2028
2332
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2269,7 +2573,7 @@ declare class EvmTransactionsService {
2269
2573
  * List internal transactions
2270
2574
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2271
2575
  *
2272
- * 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.
2576
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
2273
2577
  * @returns ListInternalTransactionsResponse Successful response
2274
2578
  * @throws ApiError
2275
2579
  */
@@ -2321,7 +2625,7 @@ declare class EvmTransactionsService {
2321
2625
  * @returns ListNativeTransactionsResponse Successful response
2322
2626
  * @throws ApiError
2323
2627
  */
2324
- getTransactionsForBlock({ chainId, blockId, }: {
2628
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2325
2629
  /**
2326
2630
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2327
2631
  */
@@ -2330,6 +2634,14 @@ declare class EvmTransactionsService {
2330
2634
  * A block identifier which is either a block number or the block hash.
2331
2635
  */
2332
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;
2333
2645
  }): CancelablePromise<ListNativeTransactionsResponse>;
2334
2646
  /**
2335
2647
  * List latest transactions
@@ -2357,66 +2669,246 @@ declare class EvmTransactionsService {
2357
2669
  }): CancelablePromise<ListNativeTransactionsResponse>;
2358
2670
  }
2359
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
+
2360
2702
  declare class HealthCheckService {
2361
2703
  readonly httpRequest: BaseHttpRequest;
2362
2704
  constructor(httpRequest: BaseHttpRequest);
2363
2705
  /**
2364
2706
  * Get the health of the service
2365
- * @returns any The Health Check is successful
2707
+ * Check the health of the service.
2708
+ * @returns HealthCheckResultDto The health of the service
2366
2709
  * @throws ApiError
2367
2710
  */
2368
- dataHealthCheck(): CancelablePromise<{
2369
- status?: string;
2370
- info?: Record<string, Record<string, string>> | null;
2371
- error?: Record<string, Record<string, string>> | null;
2372
- details?: Record<string, Record<string, string>>;
2373
- }>;
2711
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2374
2712
  }
2375
2713
 
2376
- type ListNftTokens = {
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 = {
2377
2841
  /**
2378
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.
2379
2843
  */
2380
2844
  nextPageToken?: string;
2381
- tokens: Array<(Erc721Token | Erc1155Token)>;
2845
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2382
2846
  };
2383
2847
 
2384
- declare class NfTsService {
2848
+ declare class InterchainMessagingService {
2385
2849
  readonly httpRequest: BaseHttpRequest;
2386
2850
  constructor(httpRequest: BaseHttpRequest);
2387
2851
  /**
2388
- * Reindex NFT metadata
2389
- * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2852
+ * Get an ICM message
2853
+ * Gets an ICM message by teleporter message ID.
2390
2854
  * @returns any Successful response
2391
2855
  * @throws ApiError
2392
2856
  */
2393
- reindexNft({ chainId, address, tokenId, }: {
2857
+ getIcmMessage({ messageId, }: {
2394
2858
  /**
2395
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2859
+ * The teleporter message ID of the ICM message.
2396
2860
  */
2397
- chainId: string;
2861
+ messageId: string;
2862
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2863
+ /**
2864
+ * List ICM messages
2865
+ * Lists ICM messages. Ordered by timestamp in descending order.
2866
+ * @returns ListIcmMessagesResponse Successful response
2867
+ * @throws ApiError
2868
+ */
2869
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2398
2870
  /**
2399
- * Contract address on the relevant chain.
2871
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2400
2872
  */
2401
- address: string;
2873
+ pageToken?: string;
2402
2874
  /**
2403
- * TokenId on the contract
2875
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2404
2876
  */
2405
- tokenId: string;
2406
- }): CancelablePromise<any>;
2877
+ pageSize?: number;
2878
+ /**
2879
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2880
+ */
2881
+ sourceBlockchainId?: string;
2882
+ /**
2883
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2884
+ */
2885
+ destinationBlockchainId?: string;
2886
+ /**
2887
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2888
+ */
2889
+ blockchainId?: string;
2890
+ /**
2891
+ * The address of the recipient of the ICM message.
2892
+ */
2893
+ to?: string;
2894
+ /**
2895
+ * The address of the sender of the ICM message.
2896
+ */
2897
+ from?: string;
2898
+ /**
2899
+ * Either mainnet or testnet/fuji.
2900
+ */
2901
+ network?: Network;
2902
+ }): CancelablePromise<ListIcmMessagesResponse>;
2407
2903
  /**
2408
- * List tokens
2409
- * Lists tokens for an NFT contract.
2410
- * @returns ListNftTokens Successful response
2904
+ * List ICM messages by address
2905
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2906
+ * @returns ListIcmMessagesResponse Successful response
2411
2907
  * @throws ApiError
2412
2908
  */
2413
- listTokens({ chainId, address, pageToken, pageSize, }: {
2414
- /**
2415
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2416
- */
2417
- chainId: string;
2909
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2418
2910
  /**
2419
- * Contract address on the relevant chain.
2911
+ * An EVM address.
2420
2912
  */
2421
2913
  address: string;
2422
2914
  /**
@@ -2427,11 +2919,72 @@ declare class NfTsService {
2427
2919
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2428
2920
  */
2429
2921
  pageSize?: number;
2430
- }): CancelablePromise<ListNftTokens>;
2431
- /**
2432
- * Get token details
2433
- * Gets token details for a specific token of an NFT contract.
2434
- * @returns any Successful response
2922
+ /**
2923
+ * Either mainnet or testnet/fuji.
2924
+ */
2925
+ network?: Network;
2926
+ }): CancelablePromise<ListIcmMessagesResponse>;
2927
+ }
2928
+
2929
+ type ListNftTokens = {
2930
+ /**
2931
+ * 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.
2932
+ */
2933
+ nextPageToken?: string;
2934
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2935
+ };
2936
+
2937
+ declare class NfTsService {
2938
+ readonly httpRequest: BaseHttpRequest;
2939
+ constructor(httpRequest: BaseHttpRequest);
2940
+ /**
2941
+ * Reindex NFT metadata
2942
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2943
+ * @returns any Successful response
2944
+ * @throws ApiError
2945
+ */
2946
+ reindexNft({ chainId, address, tokenId, }: {
2947
+ /**
2948
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2949
+ */
2950
+ chainId: string;
2951
+ /**
2952
+ * Contract address on the relevant chain.
2953
+ */
2954
+ address: string;
2955
+ /**
2956
+ * TokenId on the contract
2957
+ */
2958
+ tokenId: string;
2959
+ }): CancelablePromise<any>;
2960
+ /**
2961
+ * List tokens
2962
+ * Lists tokens for an NFT contract.
2963
+ * @returns ListNftTokens Successful response
2964
+ * @throws ApiError
2965
+ */
2966
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2967
+ /**
2968
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2969
+ */
2970
+ chainId: string;
2971
+ /**
2972
+ * Contract address on the relevant chain.
2973
+ */
2974
+ address: string;
2975
+ /**
2976
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2977
+ */
2978
+ pageToken?: string;
2979
+ /**
2980
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2981
+ */
2982
+ pageSize?: number;
2983
+ }): CancelablePromise<ListNftTokens>;
2984
+ /**
2985
+ * Get token details
2986
+ * Gets token details for a specific token of an NFT contract.
2987
+ * @returns any Successful response
2435
2988
  * @throws ApiError
2436
2989
  */
2437
2990
  getTokenDetails({ chainId, address, tokenId, }: {
@@ -2450,6 +3003,108 @@ declare class NfTsService {
2450
3003
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2451
3004
  }
2452
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
+
2453
3108
  type EvmNetworkOptions = {
2454
3109
  addresses: Array<string>;
2455
3110
  includeChains: Array<string>;
@@ -2538,7 +3193,7 @@ type OperationStatusResponse = {
2538
3193
  operationType: OperationType;
2539
3194
  operationStatus: OperationStatus;
2540
3195
  message?: string;
2541
- metadata: TransactionExportMetadata;
3196
+ metadata?: TransactionExportMetadata;
2542
3197
  createdAtTimestamp: number;
2543
3198
  updatedAtTimestamp: number;
2544
3199
  };
@@ -2571,6 +3226,23 @@ declare class OperationsService {
2571
3226
  }): CancelablePromise<OperationStatusResponse>;
2572
3227
  }
2573
3228
 
3229
+ type Blockchain = {
3230
+ createBlockTimestamp: number;
3231
+ createBlockNumber: string;
3232
+ blockchainId: string;
3233
+ vmId: string;
3234
+ subnetId: string;
3235
+ blockchainName: string;
3236
+ /**
3237
+ * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3238
+ */
3239
+ evmChainId: number;
3240
+ /**
3241
+ * The genesis data of the blockchain.
3242
+ */
3243
+ genesisData?: Record<string, any>;
3244
+ };
3245
+
2574
3246
  declare enum BlockchainIds {
2575
3247
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2576
3248
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
@@ -2602,16 +3274,31 @@ type DelegatorsDetails = {
2602
3274
  };
2603
3275
 
2604
3276
  type StakingDistribution = {
3277
+ /**
3278
+ * AvalancheGo version for the validator node.
3279
+ */
2605
3280
  version: string;
3281
+ /**
3282
+ * The total amount staked by validators using this version.
3283
+ */
2606
3284
  amountStaked: string;
3285
+ /**
3286
+ * The number of validators using this version.
3287
+ */
2607
3288
  validatorCount: number;
2608
3289
  };
2609
3290
 
2610
3291
  type ValidatorsDetails = {
2611
3292
  validatorCount: number;
2612
3293
  totalAmountStaked: string;
3294
+ /**
3295
+ * Total potential rewards from currently active validations and delegations.
3296
+ */
2613
3297
  estimatedAnnualStakingReward: string;
2614
3298
  stakingDistributionByVersion: Array<StakingDistribution>;
3299
+ /**
3300
+ * Ratio of total active stake amount to the current supply.
3301
+ */
2615
3302
  stakingRatio: string;
2616
3303
  };
2617
3304
 
@@ -2620,15 +3307,6 @@ type GetNetworkDetailsResponse = {
2620
3307
  delegatorDetails: DelegatorsDetails;
2621
3308
  };
2622
3309
 
2623
- type Blockchain = {
2624
- createBlockTimestamp: number;
2625
- createBlockNumber: string;
2626
- blockchainId: string;
2627
- vmId: string;
2628
- subnetId: string;
2629
- blockchainName: string;
2630
- };
2631
-
2632
3310
  type ListBlockchainsResponse = {
2633
3311
  /**
2634
3312
  * 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.
@@ -2663,7 +3341,13 @@ type CompletedDelegatorDetails = {
2663
3341
  delegationFee: string;
2664
3342
  startTimestamp: number;
2665
3343
  endTimestamp: number;
3344
+ /**
3345
+ * Total rewards distributed for the successful delegation.
3346
+ */
2666
3347
  grossReward: string;
3348
+ /**
3349
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3350
+ */
2667
3351
  netReward: string;
2668
3352
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2669
3353
  };
@@ -2681,7 +3365,13 @@ type PendingDelegatorDetails = {
2681
3365
  delegationFee: string;
2682
3366
  startTimestamp: number;
2683
3367
  endTimestamp: number;
3368
+ /**
3369
+ * Estimated total rewards that will be distributed for the successful delegation.
3370
+ */
2684
3371
  estimatedGrossReward: string;
3372
+ /**
3373
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3374
+ */
2685
3375
  estimatedNetReward: string;
2686
3376
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2687
3377
  };
@@ -2702,8 +3392,63 @@ type ListDelegatorDetailsResponse = {
2702
3392
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2703
3393
  };
2704
3394
 
2705
- type BlockchainInfo = {
3395
+ type BalanceOwner = {
3396
+ addresses: Array<string>;
3397
+ threshold: number;
3398
+ };
3399
+
3400
+ type L1ValidatorDetailsFull = {
3401
+ /**
3402
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3403
+ */
3404
+ validationId: string;
3405
+ /**
3406
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3407
+ */
3408
+ validationIdHex: string;
3409
+ nodeId: string;
3410
+ subnetId: string;
3411
+ /**
3412
+ * 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
3413
+ */
3414
+ weight: number;
3415
+ /**
3416
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3417
+ */
3418
+ remainingBalance: number;
3419
+ /**
3420
+ * The timestamp of the transaction which created this L1 validator
3421
+ */
3422
+ creationTimestamp: number;
3423
+ blsCredentials: Record<string, any>;
3424
+ /**
3425
+ * The L1 validator owner's balance, returned after it's disabled or removed
3426
+ */
3427
+ remainingBalanceOwner: BalanceOwner;
3428
+ /**
3429
+ * Owner ddresses details which can disable or remove the L1 validator
3430
+ */
3431
+ deactivationOwner: BalanceOwner;
3432
+ };
3433
+
3434
+ type ListL1ValidatorsResponse = {
3435
+ /**
3436
+ * 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.
3437
+ */
3438
+ nextPageToken?: string;
3439
+ /**
3440
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3441
+ */
3442
+ validators: Array<L1ValidatorDetailsFull>;
3443
+ /**
3444
+ * Block height at which the L1 validator's remaining balance is calculated
3445
+ */
3446
+ blockHeight: string;
3447
+ };
3448
+
3449
+ type L1ValidatorManagerDetails = {
2706
3450
  blockchainId: string;
3451
+ contractAddress: string;
2707
3452
  };
2708
3453
 
2709
3454
  type SubnetOwnershipInfo = {
@@ -2744,7 +3489,19 @@ type Subnet = {
2744
3489
  * Latest subnet owner details for this Subnet.
2745
3490
  */
2746
3491
  subnetOwnershipInfo: SubnetOwnershipInfo;
2747
- blockchains: Array<BlockchainInfo>;
3492
+ /**
3493
+ * Whether the subnet is an L1 or not.
3494
+ */
3495
+ isL1: boolean;
3496
+ /**
3497
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3498
+ */
3499
+ l1ConversionTransactionHash?: string;
3500
+ /**
3501
+ * L1 validator manager details.
3502
+ */
3503
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3504
+ blockchains: Array<Blockchain>;
2748
3505
  };
2749
3506
 
2750
3507
  type ListSubnetsResponse = {
@@ -2760,6 +3517,29 @@ type BlsCredentials = {
2760
3517
  proofOfPossession: string;
2761
3518
  };
2762
3519
 
3520
+ type Geolocation = {
3521
+ /**
3522
+ * The name of the validator node.
3523
+ */
3524
+ city: string;
3525
+ /**
3526
+ * The city of the validator node.
3527
+ */
3528
+ country: string;
3529
+ /**
3530
+ * The country code of the validator node.
3531
+ */
3532
+ countryCode: string;
3533
+ /**
3534
+ * The latitude of the validator node.
3535
+ */
3536
+ latitude: number;
3537
+ /**
3538
+ * The longitude of the validator node.
3539
+ */
3540
+ longitude: number;
3541
+ };
3542
+
2763
3543
  type Rewards = {
2764
3544
  validationRewardAmount: string;
2765
3545
  delegationRewardAmount: string;
@@ -2791,6 +3571,9 @@ type ActiveValidatorDetails = {
2791
3571
  nodeId: string;
2792
3572
  subnetId: string;
2793
3573
  amountStaked: string;
3574
+ /**
3575
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3576
+ */
2794
3577
  delegationFee?: string;
2795
3578
  startTimestamp: number;
2796
3579
  endTimestamp: number;
@@ -2798,15 +3581,37 @@ type ActiveValidatorDetails = {
2798
3581
  * Present for AddPermissionlessValidatorTx
2799
3582
  */
2800
3583
  blsCredentials?: BlsCredentials;
3584
+ /**
3585
+ * The percentage of this validator's stake amount to the total active stake.
3586
+ */
2801
3587
  stakePercentage: number;
3588
+ /**
3589
+ * The number of delegators linked to the validator.
3590
+ */
2802
3591
  delegatorCount: number;
3592
+ /**
3593
+ * The total amount in nAVAX delegated to the validator.
3594
+ */
2803
3595
  amountDelegated?: string;
3596
+ /**
3597
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3598
+ */
2804
3599
  uptimePerformance: number;
2805
3600
  avalancheGoVersion?: string;
3601
+ /**
3602
+ * The amount of stake in nAVAX that can be delegated to this validator.
3603
+ */
2806
3604
  delegationCapacity?: string;
3605
+ /**
3606
+ * Estimated rewards for the validator if the validation is successful.
3607
+ */
2807
3608
  potentialRewards: Rewards;
2808
3609
  validationStatus: ActiveValidatorDetails.validationStatus;
2809
3610
  validatorHealth: ValidatorHealthDetails;
3611
+ /**
3612
+ * The geographical location of the validator node, if available.
3613
+ */
3614
+ geolocation: Geolocation | null;
2810
3615
  };
2811
3616
  declare namespace ActiveValidatorDetails {
2812
3617
  enum validationStatus {
@@ -2819,6 +3624,9 @@ type CompletedValidatorDetails = {
2819
3624
  nodeId: string;
2820
3625
  subnetId: string;
2821
3626
  amountStaked: string;
3627
+ /**
3628
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3629
+ */
2822
3630
  delegationFee?: string;
2823
3631
  startTimestamp: number;
2824
3632
  endTimestamp: number;
@@ -2842,6 +3650,9 @@ type PendingValidatorDetails = {
2842
3650
  nodeId: string;
2843
3651
  subnetId: string;
2844
3652
  amountStaked: string;
3653
+ /**
3654
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3655
+ */
2845
3656
  delegationFee?: string;
2846
3657
  startTimestamp: number;
2847
3658
  endTimestamp: number;
@@ -2862,6 +3673,9 @@ type RemovedValidatorDetails = {
2862
3673
  nodeId: string;
2863
3674
  subnetId: string;
2864
3675
  amountStaked: string;
3676
+ /**
3677
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3678
+ */
2865
3679
  delegationFee?: string;
2866
3680
  startTimestamp: number;
2867
3681
  endTimestamp: number;
@@ -2869,7 +3683,13 @@ type RemovedValidatorDetails = {
2869
3683
  * Present for AddPermissionlessValidatorTx
2870
3684
  */
2871
3685
  blsCredentials?: BlsCredentials;
3686
+ /**
3687
+ * The transaction hash that removed the permissioned subnet validator.
3688
+ */
2872
3689
  removeTxHash: string;
3690
+ /**
3691
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3692
+ */
2873
3693
  removeTimestamp: number;
2874
3694
  validationStatus: RemovedValidatorDetails.validationStatus;
2875
3695
  };
@@ -3020,7 +3840,7 @@ declare class PrimaryNetworkService {
3020
3840
  */
3021
3841
  pageToken?: string;
3022
3842
  /**
3023
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3843
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3024
3844
  */
3025
3845
  pageSize?: number;
3026
3846
  /**
@@ -3028,6 +3848,22 @@ declare class PrimaryNetworkService {
3028
3848
  */
3029
3849
  sortOrder?: SortOrder;
3030
3850
  }): CancelablePromise<ListBlockchainsResponse>;
3851
+ /**
3852
+ * Get blockchain details by ID
3853
+ * Get details of the blockchain registered on the network.
3854
+ * @returns Blockchain Successful response
3855
+ * @throws ApiError
3856
+ */
3857
+ getBlockchainById({ blockchainId, network, }: {
3858
+ /**
3859
+ * The blockchain ID of the blockchain to retrieve.
3860
+ */
3861
+ blockchainId: string;
3862
+ /**
3863
+ * Either mainnet or testnet/fuji.
3864
+ */
3865
+ network: Network;
3866
+ }): CancelablePromise<Blockchain>;
3031
3867
  /**
3032
3868
  * List subnets
3033
3869
  * Lists all subnets registered on the network.
@@ -3044,7 +3880,7 @@ declare class PrimaryNetworkService {
3044
3880
  */
3045
3881
  pageToken?: string;
3046
3882
  /**
3047
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3883
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3048
3884
  */
3049
3885
  pageSize?: number;
3050
3886
  /**
@@ -3070,7 +3906,7 @@ declare class PrimaryNetworkService {
3070
3906
  }): CancelablePromise<Subnet>;
3071
3907
  /**
3072
3908
  * List validators
3073
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3909
+ * Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
3074
3910
  * @returns ListValidatorDetailsResponse Successful response
3075
3911
  * @throws ApiError
3076
3912
  */
@@ -3088,7 +3924,7 @@ declare class PrimaryNetworkService {
3088
3924
  */
3089
3925
  pageSize?: number;
3090
3926
  /**
3091
- * A comma separated list of node ids to filter by.
3927
+ * A comma separated list of node ids to filter by. Supports substring matching.
3092
3928
  */
3093
3929
  nodeIds?: string;
3094
3930
  /**
@@ -3210,15 +4046,48 @@ declare class PrimaryNetworkService {
3210
4046
  */
3211
4047
  nodeIds?: string;
3212
4048
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3213
- }
3214
-
3215
- declare enum BlockchainId {
3216
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3217
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3218
- _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3219
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3220
- _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3221
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
4049
+ /**
4050
+ * List L1 validators
4051
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4052
+ * @returns ListL1ValidatorsResponse Successful response
4053
+ * @throws ApiError
4054
+ */
4055
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4056
+ /**
4057
+ * Either mainnet or testnet/fuji.
4058
+ */
4059
+ network: Network;
4060
+ /**
4061
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4062
+ */
4063
+ pageToken?: string;
4064
+ /**
4065
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4066
+ */
4067
+ pageSize?: number;
4068
+ /**
4069
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4070
+ */
4071
+ l1ValidationId?: string;
4072
+ includeInactiveL1Validators?: boolean;
4073
+ /**
4074
+ * A valid node ID in format 'NodeID-HASH'.
4075
+ */
4076
+ nodeId?: string;
4077
+ /**
4078
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4079
+ */
4080
+ subnetId?: any;
4081
+ }): CancelablePromise<ListL1ValidatorsResponse>;
4082
+ }
4083
+
4084
+ declare enum BlockchainId {
4085
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
4086
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4087
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4088
+ _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
4089
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
4090
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3222
4091
  V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3223
4092
  P_CHAIN = "p-chain",
3224
4093
  X_CHAIN = "x-chain",
@@ -3256,12 +4125,6 @@ type CChainAtomicBalances = {
3256
4125
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3257
4126
  };
3258
4127
 
3259
- declare enum PrimaryNetwork {
3260
- MAINNET = "mainnet",
3261
- FUJI = "fuji",
3262
- DEVNET = "devnet"
3263
- }
3264
-
3265
4128
  declare enum PrimaryNetworkChainName {
3266
4129
  P_CHAIN = "p-chain",
3267
4130
  X_CHAIN = "x-chain",
@@ -3270,7 +4133,7 @@ declare enum PrimaryNetworkChainName {
3270
4133
 
3271
4134
  type PrimaryNetworkChainInfo = {
3272
4135
  chainName: PrimaryNetworkChainName;
3273
- network: PrimaryNetwork;
4136
+ network: Network;
3274
4137
  };
3275
4138
 
3276
4139
  type ListCChainAtomicBalancesResponse = {
@@ -3462,6 +4325,8 @@ type GetPrimaryNetworkBlockResponse = {
3462
4325
  txCount: number;
3463
4326
  transactions: Array<string>;
3464
4327
  blockSizeBytes: number;
4328
+ l1ValidatorsAccruedFees?: number;
4329
+ activeL1Validators?: number;
3465
4330
  currentSupply?: string;
3466
4331
  proposerDetails?: ProposerDetails;
3467
4332
  };
@@ -3475,6 +4340,8 @@ type PrimaryNetworkBlock = {
3475
4340
  txCount: number;
3476
4341
  transactions: Array<string>;
3477
4342
  blockSizeBytes: number;
4343
+ l1ValidatorsAccruedFees?: number;
4344
+ activeL1Validators?: number;
3478
4345
  currentSupply?: string;
3479
4346
  proposerDetails?: ProposerDetails;
3480
4347
  };
@@ -3517,7 +4384,7 @@ declare class PrimaryNetworkBlocksService {
3517
4384
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3518
4385
  * @throws ApiError
3519
4386
  */
3520
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4387
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3521
4388
  /**
3522
4389
  * A primary network blockchain id or alias.
3523
4390
  */
@@ -3530,6 +4397,14 @@ declare class PrimaryNetworkBlocksService {
3530
4397
  * A primary network (P or X chain) nodeId.
3531
4398
  */
3532
4399
  nodeId: string;
4400
+ /**
4401
+ * Query param for retrieving items after a specific timestamp.
4402
+ */
4403
+ startTimestamp?: number;
4404
+ /**
4405
+ * Query param for retrieving items before a specific timestamp.
4406
+ */
4407
+ endTimestamp?: number;
3533
4408
  /**
3534
4409
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3535
4410
  */
@@ -3545,7 +4420,7 @@ declare class PrimaryNetworkBlocksService {
3545
4420
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3546
4421
  * @throws ApiError
3547
4422
  */
3548
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4423
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3549
4424
  /**
3550
4425
  * A primary network blockchain id or alias.
3551
4426
  */
@@ -3554,6 +4429,14 @@ declare class PrimaryNetworkBlocksService {
3554
4429
  * Either mainnet or testnet/fuji.
3555
4430
  */
3556
4431
  network: Network;
4432
+ /**
4433
+ * Query param for retrieving items after a specific timestamp.
4434
+ */
4435
+ startTimestamp?: number;
4436
+ /**
4437
+ * Query param for retrieving items before a specific timestamp.
4438
+ */
4439
+ endTimestamp?: number;
3557
4440
  /**
3558
4441
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3559
4442
  */
@@ -3963,6 +4846,41 @@ type ListCChainAtomicTransactionsResponse = {
3963
4846
  chainInfo: PrimaryNetworkChainInfo;
3964
4847
  };
3965
4848
 
4849
+ type BlockchainInfo = {
4850
+ chainName: string;
4851
+ vmId: string;
4852
+ /**
4853
+ * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
4854
+ */
4855
+ genesisData?: Record<string, any>;
4856
+ };
4857
+
4858
+ type L1ValidatorDetailsTransaction = {
4859
+ /**
4860
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4861
+ */
4862
+ validationId: string;
4863
+ /**
4864
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
4865
+ */
4866
+ validationIdHex: string;
4867
+ nodeId: string;
4868
+ subnetId: string;
4869
+ /**
4870
+ * 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
4871
+ */
4872
+ weight: number;
4873
+ /**
4874
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
4875
+ */
4876
+ remainingBalance: number;
4877
+ /**
4878
+ * 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
4879
+ */
4880
+ balanceChange?: number;
4881
+ blsCredentials?: Record<string, any>;
4882
+ };
4883
+
3966
4884
  declare enum PChainTransactionType {
3967
4885
  ADD_VALIDATOR_TX = "AddValidatorTx",
3968
4886
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -3979,9 +4897,17 @@ declare enum PChainTransactionType {
3979
4897
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3980
4898
  BASE_TX = "BaseTx",
3981
4899
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4900
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
4901
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
4902
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
4903
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
4904
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3982
4905
  UNKNOWN = "UNKNOWN"
3983
4906
  }
3984
4907
 
4908
+ /**
4909
+ * Indicates whether the UTXO is staked or transferable
4910
+ */
3985
4911
  declare enum UtxoType {
3986
4912
  STAKE = "STAKE",
3987
4913
  TRANSFER = "TRANSFER"
@@ -4019,16 +4945,43 @@ type PChainUtxo = {
4019
4945
  assetId: string;
4020
4946
  blockNumber: string;
4021
4947
  blockTimestamp: number;
4948
+ /**
4949
+ * Block height in which the transaction consuming this UTXO was included
4950
+ */
4022
4951
  consumingBlockNumber?: string;
4952
+ /**
4953
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
4954
+ */
4023
4955
  consumingBlockTimestamp?: number;
4956
+ /**
4957
+ * Timestamp in seconds after which this UTXO can be consumed
4958
+ */
4024
4959
  platformLocktime?: number;
4960
+ /**
4961
+ * The index of the UTXO in the transaction
4962
+ */
4025
4963
  outputIndex: number;
4026
4964
  rewardType?: RewardType;
4965
+ /**
4966
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
4967
+ */
4027
4968
  stakeableLocktime?: number;
4028
4969
  staked?: boolean;
4970
+ /**
4971
+ * The minimum number of signatures required to spend this UTXO
4972
+ */
4029
4973
  threshold?: number;
4974
+ /**
4975
+ * The hash of the transaction that created this UTXO
4976
+ */
4030
4977
  txHash: string;
4978
+ /**
4979
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4980
+ */
4031
4981
  utxoEndTimestamp?: number;
4982
+ /**
4983
+ * Timestamp in seconds at which the staked UTXO was locked.
4984
+ */
4032
4985
  utxoStartTimestamp?: number;
4033
4986
  utxoType: UtxoType;
4034
4987
  };
@@ -4043,9 +4996,18 @@ type PChainTransaction = {
4043
4996
  * The block finality timestamp.
4044
4997
  */
4045
4998
  blockTimestamp: number;
4999
+ /**
5000
+ * The height of the block in which the transaction was included
5001
+ */
4046
5002
  blockNumber: string;
4047
5003
  blockHash: string;
5004
+ /**
5005
+ * The consumed UTXOs of the transaction
5006
+ */
4048
5007
  consumedUtxos: Array<PChainUtxo>;
5008
+ /**
5009
+ * The newly created UTXOs of the transaction
5010
+ */
4049
5011
  emittedUtxos: Array<PChainUtxo>;
4050
5012
  /**
4051
5013
  * Source chain for an atomic transaction.
@@ -4056,17 +5018,21 @@ type PChainTransaction = {
4056
5018
  */
4057
5019
  destinationChain?: string;
4058
5020
  /**
4059
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5021
+ * 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
4060
5022
  */
4061
5023
  value: Array<AssetAmount>;
4062
5024
  /**
4063
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5025
+ * 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
4064
5026
  */
4065
5027
  amountBurned: Array<AssetAmount>;
4066
5028
  /**
4067
5029
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4068
5030
  */
4069
5031
  amountStaked: Array<AssetAmount>;
5032
+ /**
5033
+ * 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.
5034
+ */
5035
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4070
5036
  /**
4071
5037
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4072
5038
  */
@@ -4076,11 +5042,11 @@ type PChainTransaction = {
4076
5042
  */
4077
5043
  endTimestamp?: number;
4078
5044
  /**
4079
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5045
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4080
5046
  */
4081
5047
  delegationFeePercent?: string;
4082
5048
  /**
4083
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5049
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4084
5050
  */
4085
5051
  nodeId?: string;
4086
5052
  /**
@@ -4088,14 +5054,25 @@ type PChainTransaction = {
4088
5054
  */
4089
5055
  subnetId?: string;
4090
5056
  /**
4091
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5057
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5058
+ */
5059
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5060
+ /**
5061
+ * 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
5062
+ */
5063
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5064
+ /**
5065
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4092
5066
  */
4093
5067
  estimatedReward?: string;
5068
+ /**
5069
+ * Reward transaction hash for the completed validations or delegations
5070
+ */
4094
5071
  rewardTxHash?: string;
4095
5072
  rewardAddresses?: Array<string>;
4096
5073
  memo?: string;
4097
5074
  /**
4098
- * Present for RewardValidatorTx
5075
+ * Staking transaction corresponding to the RewardValidatorTx
4099
5076
  */
4100
5077
  stakingTxHash?: string;
4101
5078
  /**
@@ -4103,9 +5080,13 @@ type PChainTransaction = {
4103
5080
  */
4104
5081
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4105
5082
  /**
4106
- * Present for AddPermissionlessValidatorTx
5083
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4107
5084
  */
4108
5085
  blsCredentials?: BlsCredentials;
5086
+ /**
5087
+ * Details of the blockchain that was created in the CreateChainTx
5088
+ */
5089
+ blockchainInfo?: BlockchainInfo;
4109
5090
  };
4110
5091
 
4111
5092
  type ListPChainTransactionsResponse = {
@@ -4288,6 +5269,11 @@ declare enum PrimaryNetworkTxType {
4288
5269
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4289
5270
  BASE_TX = "BaseTx",
4290
5271
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5272
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5273
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5274
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5275
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5276
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4291
5277
  UNKNOWN = "UNKNOWN",
4292
5278
  CREATE_ASSET_TX = "CreateAssetTx",
4293
5279
  OPERATION_TX = "OperationTx"
@@ -4322,11 +5308,13 @@ declare class PrimaryNetworkTransactionsService {
4322
5308
  *
4323
5309
  * 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.
4324
5310
  *
5311
+ * 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.
5312
+ *
4325
5313
  * 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.
4326
5314
  * @returns any Successful response
4327
5315
  * @throws ApiError
4328
5316
  */
4329
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5317
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4330
5318
  /**
4331
5319
  * A primary network blockchain id or alias.
4332
5320
  */
@@ -4339,6 +5327,7 @@ declare class PrimaryNetworkTransactionsService {
4339
5327
  * 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.
4340
5328
  */
4341
5329
  addresses?: string;
5330
+ l1ValidationId?: string;
4342
5331
  /**
4343
5332
  * Query param for filtering items based on transaction types.
4344
5333
  */
@@ -4614,61 +5603,12 @@ declare class PrimaryNetworkVerticesService {
4614
5603
  }): CancelablePromise<ListXChainVerticesResponse>;
4615
5604
  }
4616
5605
 
4617
- type RpcErrorDto = {
4618
- code: number;
4619
- message: string;
4620
- data?: Record<string, any>;
4621
- };
4622
-
4623
- type RpcErrorResponseDto = {
4624
- jsonrpc: string;
4625
- id?: (string | number);
4626
- error: RpcErrorDto;
4627
- };
4628
-
4629
- type RpcRequestBodyDto = {
4630
- method: string;
4631
- params?: Record<string, any>;
4632
- id?: (string | number);
4633
- jsonrpc?: string;
4634
- };
4635
-
4636
- type RpcSuccessResponseDto = {
4637
- jsonrpc: string;
4638
- id?: (string | number);
4639
- result: Record<string, any>;
4640
- };
4641
-
4642
- declare class RpcService {
4643
- readonly httpRequest: BaseHttpRequest;
4644
- constructor(httpRequest: BaseHttpRequest);
4645
- /**
4646
- * Calls JSON-RPC method
4647
- * Calls JSON-RPC method.
4648
- * @returns any Successful response
4649
- * @throws ApiError
4650
- */
4651
- rpc({ chainId, requestBody, }: {
4652
- /**
4653
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4654
- */
4655
- chainId: string;
4656
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4657
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4658
- }
4659
-
4660
5606
  type SignatureAggregationResponse = {
4661
5607
  signedMessage: string;
4662
5608
  };
4663
5609
 
4664
5610
  type SignatureAggregatorRequest = {
4665
- /**
4666
- * Must be defined if justification is not defined
4667
- */
4668
- message?: string;
4669
- /**
4670
- * Must be defined if message is not defined
4671
- */
5611
+ message: string;
4672
5612
  justification?: string;
4673
5613
  signingSubnetId?: string;
4674
5614
  quorumPercentage?: number;
@@ -4683,9 +5623,29 @@ declare class SignatureAggregatorService {
4683
5623
  * @returns SignatureAggregationResponse Successful response
4684
5624
  * @throws ApiError
4685
5625
  */
4686
- aggregateSignatures({ requestBody, }: {
5626
+ aggregateSignatures({ network, requestBody, }: {
5627
+ /**
5628
+ * Either mainnet or testnet/fuji.
5629
+ */
5630
+ network: Network;
4687
5631
  requestBody: SignatureAggregatorRequest;
4688
5632
  }): CancelablePromise<SignatureAggregationResponse>;
5633
+ /**
5634
+ * Get Aggregated Signatures
5635
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
5636
+ * @returns SignatureAggregationResponse Successful response
5637
+ * @throws ApiError
5638
+ */
5639
+ getAggregatedSignatures({ network, txHash, }: {
5640
+ /**
5641
+ * Either mainnet or testnet/fuji.
5642
+ */
5643
+ network: Network;
5644
+ /**
5645
+ * A primary network (P or X chain) transaction hash.
5646
+ */
5647
+ txHash: string;
5648
+ }): CancelablePromise<SignatureAggregationResponse>;
4689
5649
  }
4690
5650
 
4691
5651
  type TeleporterDestinationTransaction = {
@@ -4819,15 +5779,17 @@ type ListTeleporterMessagesResponse = {
4819
5779
  * 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.
4820
5780
  */
4821
5781
  nextPageToken?: string;
4822
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
5782
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4823
5783
  };
4824
5784
 
4825
5785
  declare class TeleporterService {
4826
5786
  readonly httpRequest: BaseHttpRequest;
4827
5787
  constructor(httpRequest: BaseHttpRequest);
4828
5788
  /**
4829
- * Get a teleporter message
4830
- * Gets a teleporter message by message ID.
5789
+ * @deprecated
5790
+ * **[Deprecated]** Gets a teleporter message by message ID.
5791
+ *
5792
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4831
5793
  * @returns any Successful response
4832
5794
  * @throws ApiError
4833
5795
  */
@@ -4838,8 +5800,10 @@ declare class TeleporterService {
4838
5800
  messageId: string;
4839
5801
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4840
5802
  /**
4841
- * List teleporter messages
4842
- * Lists teleporter messages. Ordered by timestamp in descending order.
5803
+ * @deprecated
5804
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5805
+ *
5806
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4843
5807
  * @returns ListTeleporterMessagesResponse Successful response
4844
5808
  * @throws ApiError
4845
5809
  */
@@ -4878,8 +5842,10 @@ declare class TeleporterService {
4878
5842
  network?: Network;
4879
5843
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4880
5844
  /**
4881
- * List teleporter messages by address
4882
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5845
+ * @deprecated
5846
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5847
+ *
5848
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4883
5849
  * @returns ListTeleporterMessagesResponse Successful response
4884
5850
  * @throws ApiError
4885
5851
  */
@@ -4921,44 +5887,54 @@ type AddressActivityMetadata = {
4921
5887
  eventSignatures?: Array<string>;
4922
5888
  };
4923
5889
 
4924
- declare enum EventType {
4925
- ADDRESS_ACTIVITY = "address_activity"
5890
+ declare enum PrimaryNetworkType {
5891
+ MAINNET = "mainnet",
5892
+ FUJI = "fuji"
4926
5893
  }
4927
5894
 
4928
- type CreateWebhookRequest = {
5895
+ type EVMAddressActivityRequest = {
5896
+ eventType: EVMAddressActivityRequest.eventType;
4929
5897
  url: string;
4930
5898
  chainId: string;
4931
- eventType: EventType;
4932
- metadata: AddressActivityMetadata;
5899
+ network?: PrimaryNetworkType;
4933
5900
  name?: string;
4934
5901
  description?: string;
4935
5902
  /**
4936
- * Whether to include traces in the webhook payload.
5903
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4937
5904
  */
4938
5905
  includeInternalTxs?: boolean;
4939
5906
  /**
4940
5907
  * Whether to include logs in the webhook payload.
4941
5908
  */
4942
5909
  includeLogs?: boolean;
5910
+ metadata: AddressActivityMetadata;
4943
5911
  };
5912
+ declare namespace EVMAddressActivityRequest {
5913
+ enum eventType {
5914
+ ADDRESS_ACTIVITY = "address_activity"
5915
+ }
5916
+ }
4944
5917
 
4945
- type ListWebhookAddressesResponse = {
4946
- /**
4947
- * 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.
4948
- */
4949
- nextPageToken?: string;
4950
- addresses: Array<string>;
4951
- totalAddresses: number;
4952
- };
5918
+ declare enum EventType {
5919
+ ADDRESS_ACTIVITY = "address_activity",
5920
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
5921
+ VALIDATOR_ACTIVITY = "validator_activity"
5922
+ }
4953
5923
 
4954
5924
  declare enum WebhookStatusType {
4955
5925
  ACTIVE = "active",
4956
5926
  INACTIVE = "inactive"
4957
5927
  }
4958
5928
 
4959
- type WebhookResponse = {
5929
+ type EVMAddressActivityResponse = {
4960
5930
  id: string;
4961
5931
  eventType: EventType;
5932
+ url: string;
5933
+ chainId: string;
5934
+ status: WebhookStatusType;
5935
+ createdAt: number;
5936
+ name: string;
5937
+ description: string;
4962
5938
  metadata: AddressActivityMetadata;
4963
5939
  /**
4964
5940
  * Whether to include traces in the webhook payload.
@@ -4968,12 +5944,109 @@ type WebhookResponse = {
4968
5944
  * Whether to include logs in the webhook payload.
4969
5945
  */
4970
5946
  includeLogs?: boolean;
5947
+ };
5948
+
5949
+ type ListWebhookAddressesResponse = {
5950
+ /**
5951
+ * 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.
5952
+ */
5953
+ nextPageToken?: string;
5954
+ addresses: Array<string>;
5955
+ totalAddresses: number;
5956
+ };
5957
+
5958
+ /**
5959
+ * The type of key for platform activity depending on the event type
5960
+ */
5961
+ declare enum PlatformActivityKeyType {
5962
+ ADDRESSES = "addresses",
5963
+ NODE_ID = "nodeId",
5964
+ SUBNET_ID = "subnetId"
5965
+ }
5966
+
5967
+ /**
5968
+ * Array of address activity sub-event types
5969
+ */
5970
+ declare enum PlatformAddressActivitySubEventType {
5971
+ BALANCE_CHANGE_PLATFORM = "balance_change_platform",
5972
+ BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
5973
+ REWARD_DISTRIBUTION = "reward_distribution"
5974
+ }
5975
+
5976
+ type PlatformActivitySubEvents = {
5977
+ /**
5978
+ * Array of validator activity sub-event types
5979
+ */
5980
+ validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
5981
+ addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
5982
+ };
5983
+
5984
+ /**
5985
+ * Type of balance to monitor
5986
+ */
5987
+ declare enum CommonBalanceType {
5988
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
5989
+ UNLOCKED_STAKED = "unlockedStaked",
5990
+ LOCKED_PLATFORM = "lockedPlatform",
5991
+ LOCKED_STAKEABLE = "lockedStakeable",
5992
+ LOCKED_STAKED = "lockedStaked",
5993
+ PENDING_STAKED = "pendingStaked",
5994
+ UNLOCKED = "unlocked",
5995
+ LOCKED = "locked",
5996
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
5997
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
5998
+ }
5999
+
6000
+ type PlatformBalanceThresholdFilter = {
6001
+ balanceType: CommonBalanceType;
6002
+ /**
6003
+ * Threshold for balance corresponding to balanceType in nAVAX
6004
+ */
6005
+ balanceThreshold: string;
6006
+ };
6007
+
6008
+ type PlatformActivityMetadata = {
6009
+ keyType: PlatformActivityKeyType;
6010
+ /**
6011
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
6012
+ */
6013
+ keys: Array<string>;
6014
+ /**
6015
+ * Sub-events to monitor
6016
+ */
6017
+ subEvents?: PlatformActivitySubEvents;
6018
+ /**
6019
+ * Array of hexadecimal strings of the event signatures.
6020
+ */
6021
+ eventSignatures?: Array<string>;
6022
+ /**
6023
+ * Array of node IDs to filter the events
6024
+ */
6025
+ nodeIds?: Array<string>;
6026
+ /**
6027
+ * Array of subnet IDs to filter the events
6028
+ */
6029
+ subnetIds?: Array<string>;
6030
+ /**
6031
+ * Balance threshold filter
6032
+ */
6033
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
6034
+ /**
6035
+ * L1 validator fee balance threshold in nAVAX
6036
+ */
6037
+ l1ValidatorFeeBalanceThreshold?: string;
6038
+ };
6039
+
6040
+ type PlatformActivityResponse = {
6041
+ id: string;
6042
+ eventType: EventType;
4971
6043
  url: string;
4972
6044
  chainId: string;
4973
6045
  status: WebhookStatusType;
4974
6046
  createdAt: number;
4975
6047
  name: string;
4976
6048
  description: string;
6049
+ metadata: PlatformActivityMetadata;
4977
6050
  };
4978
6051
 
4979
6052
  type ListWebhooksResponse = {
@@ -4981,9 +6054,36 @@ type ListWebhooksResponse = {
4981
6054
  * 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.
4982
6055
  */
4983
6056
  nextPageToken?: string;
4984
- webhooks: Array<WebhookResponse>;
6057
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
4985
6058
  };
4986
6059
 
6060
+ type PlatformActivityRequest = {
6061
+ eventType: PlatformActivityRequest.eventType;
6062
+ url: string;
6063
+ chainId: string;
6064
+ network?: PrimaryNetworkType;
6065
+ name?: string;
6066
+ description?: string;
6067
+ /**
6068
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6069
+ */
6070
+ includeInternalTxs?: boolean;
6071
+ /**
6072
+ * Whether to include logs in the webhook payload.
6073
+ */
6074
+ includeLogs?: boolean;
6075
+ /**
6076
+ * Metadata for platform activity
6077
+ */
6078
+ metadata: PlatformActivityMetadata;
6079
+ };
6080
+ declare namespace PlatformActivityRequest {
6081
+ enum eventType {
6082
+ PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
6083
+ VALIDATOR_ACTIVITY = "validator_activity"
6084
+ }
6085
+ }
6086
+
4987
6087
  type SharedSecretsResponse = {
4988
6088
  secret: string;
4989
6089
  };
@@ -4993,6 +6093,9 @@ type UpdateWebhookRequest = {
4993
6093
  description?: string;
4994
6094
  url?: string;
4995
6095
  status?: WebhookStatusType;
6096
+ /**
6097
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6098
+ */
4996
6099
  includeInternalTxs?: boolean;
4997
6100
  includeLogs?: boolean;
4998
6101
  };
@@ -5008,12 +6111,12 @@ declare class WebhooksService {
5008
6111
  /**
5009
6112
  * Create a webhook
5010
6113
  * Create a new webhook.
5011
- * @returns WebhookResponse Successful response
6114
+ * @returns any Successful response
5012
6115
  * @throws ApiError
5013
6116
  */
5014
6117
  createWebhook({ requestBody, }: {
5015
- requestBody: CreateWebhookRequest;
5016
- }): CancelablePromise<WebhookResponse>;
6118
+ requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
6119
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5017
6120
  /**
5018
6121
  * List webhooks
5019
6122
  * Lists webhooks for the user.
@@ -5037,7 +6140,7 @@ declare class WebhooksService {
5037
6140
  /**
5038
6141
  * Get a webhook by ID
5039
6142
  * Retrieves a webhook by ID.
5040
- * @returns WebhookResponse Successful response
6143
+ * @returns any Successful response
5041
6144
  * @throws ApiError
5042
6145
  */
5043
6146
  getWebhook({ id, }: {
@@ -5045,11 +6148,11 @@ declare class WebhooksService {
5045
6148
  * The webhook identifier.
5046
6149
  */
5047
6150
  id: string;
5048
- }): CancelablePromise<WebhookResponse>;
6151
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5049
6152
  /**
5050
6153
  * Deactivate a webhook
5051
6154
  * Deactivates a webhook by ID.
5052
- * @returns WebhookResponse Successful response
6155
+ * @returns any Successful response
5053
6156
  * @throws ApiError
5054
6157
  */
5055
6158
  deactivateWebhook({ id, }: {
@@ -5057,11 +6160,11 @@ declare class WebhooksService {
5057
6160
  * The webhook identifier.
5058
6161
  */
5059
6162
  id: string;
5060
- }): CancelablePromise<WebhookResponse>;
6163
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5061
6164
  /**
5062
6165
  * Update a webhook
5063
6166
  * Updates an existing webhook.
5064
- * @returns WebhookResponse Successful response
6167
+ * @returns any Successful response
5065
6168
  * @throws ApiError
5066
6169
  */
5067
6170
  updateWebhook({ id, requestBody, }: {
@@ -5070,14 +6173,14 @@ declare class WebhooksService {
5070
6173
  */
5071
6174
  id: string;
5072
6175
  requestBody: UpdateWebhookRequest;
5073
- }): CancelablePromise<WebhookResponse>;
6176
+ }): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
5074
6177
  /**
5075
- * Generate a shared secret
5076
- * Generates a new shared secret.
6178
+ * Generate or rotate a shared secret
6179
+ * Generates a new shared secret or rotate an existing one.
5077
6180
  * @returns SharedSecretsResponse Successful response
5078
6181
  * @throws ApiError
5079
6182
  */
5080
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6183
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5081
6184
  /**
5082
6185
  * Get a shared secret
5083
6186
  * Get a previously generated shared secret.
@@ -5086,9 +6189,9 @@ declare class WebhooksService {
5086
6189
  */
5087
6190
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5088
6191
  /**
5089
- * Add addresses to webhook
5090
- * Add addresses to webhook.
5091
- * @returns WebhookResponse Successful response
6192
+ * Add addresses to EVM activity webhook
6193
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6194
+ * @returns EVMAddressActivityResponse Successful response
5092
6195
  * @throws ApiError
5093
6196
  */
5094
6197
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5097,11 +6200,11 @@ declare class WebhooksService {
5097
6200
  */
5098
6201
  id: string;
5099
6202
  requestBody: AddressesChangeRequest;
5100
- }): CancelablePromise<WebhookResponse>;
6203
+ }): CancelablePromise<EVMAddressActivityResponse>;
5101
6204
  /**
5102
- * Remove addresses from webhook
5103
- * Remove addresses from webhook.
5104
- * @returns WebhookResponse Successful response
6205
+ * Remove addresses from EVM activity webhook
6206
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6207
+ * @returns EVMAddressActivityResponse Successful response
5105
6208
  * @throws ApiError
5106
6209
  */
5107
6210
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5110,10 +6213,10 @@ declare class WebhooksService {
5110
6213
  */
5111
6214
  id: string;
5112
6215
  requestBody: AddressesChangeRequest;
5113
- }): CancelablePromise<WebhookResponse>;
6216
+ }): CancelablePromise<EVMAddressActivityResponse>;
5114
6217
  /**
5115
- * List adresses by webhook
5116
- * List adresses by webhook.
6218
+ * List adresses by EVM activity webhooks
6219
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5117
6220
  * @returns ListWebhookAddressesResponse Successful response
5118
6221
  * @throws ApiError
5119
6222
  */
@@ -5143,7 +6246,9 @@ declare class Glacier {
5143
6246
  readonly evmContracts: EvmContractsService;
5144
6247
  readonly evmTransactions: EvmTransactionsService;
5145
6248
  readonly healthCheck: HealthCheckService;
6249
+ readonly interchainMessaging: InterchainMessagingService;
5146
6250
  readonly nfTs: NfTsService;
6251
+ readonly notifications: NotificationsService;
5147
6252
  readonly operations: OperationsService;
5148
6253
  readonly primaryNetwork: PrimaryNetworkService;
5149
6254
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5152,7 +6257,6 @@ declare class Glacier {
5152
6257
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5153
6258
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5154
6259
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5155
- readonly rpc: RpcService;
5156
6260
  readonly signatureAggregator: SignatureAggregatorService;
5157
6261
  readonly teleporter: TeleporterService;
5158
6262
  readonly webhooks: WebhooksService;
@@ -5177,6 +6281,17 @@ declare class ApiError extends Error {
5177
6281
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5178
6282
  }
5179
6283
 
6284
+ type AccessListData = {
6285
+ /**
6286
+ * Access Address
6287
+ */
6288
+ accessAddresses: string;
6289
+ /**
6290
+ * Storage keys
6291
+ */
6292
+ storageKeys: Array<string>;
6293
+ };
6294
+
5180
6295
  type BadGateway = {
5181
6296
  /**
5182
6297
  * The error message describing the reason for the exception
@@ -5211,6 +6326,76 @@ type DataListChainsResponse = {
5211
6326
  chains: Array<ChainInfo>;
5212
6327
  };
5213
6328
 
6329
+ type ERCToken = {
6330
+ /**
6331
+ * Token contract address
6332
+ */
6333
+ address: string;
6334
+ /**
6335
+ * Token name
6336
+ */
6337
+ name: string;
6338
+ /**
6339
+ * Token symbol
6340
+ */
6341
+ symbol: string;
6342
+ /**
6343
+ * Token decimals
6344
+ */
6345
+ decimals: number;
6346
+ /**
6347
+ * Value including decimals
6348
+ */
6349
+ valueWithDecimals: string;
6350
+ };
6351
+
6352
+ type ERCTransfer = {
6353
+ /**
6354
+ * Transaction hash
6355
+ */
6356
+ transactionHash: string;
6357
+ /**
6358
+ * Transfer type
6359
+ */
6360
+ type: string;
6361
+ /**
6362
+ * Sender address
6363
+ */
6364
+ from: string;
6365
+ /**
6366
+ * Recipient address
6367
+ */
6368
+ to: string;
6369
+ /**
6370
+ * Amount transferred
6371
+ */
6372
+ value: string;
6373
+ /**
6374
+ * Token Id
6375
+ */
6376
+ tokenId?: string;
6377
+ /**
6378
+ * Block timestamp
6379
+ */
6380
+ blockTimestamp: number;
6381
+ /**
6382
+ * Log index
6383
+ */
6384
+ logIndex: number;
6385
+ /**
6386
+ * erc20 Token details
6387
+ */
6388
+ erc20Token?: ERCToken;
6389
+ /**
6390
+ * erc721 Token details
6391
+ */
6392
+ erc721Token?: ERCToken;
6393
+ /**
6394
+ * erc1155 Token details
6395
+ */
6396
+ erc1155Token?: ERCToken;
6397
+ };
6398
+
5214
6399
  type Forbidden = {
5215
6400
  /**
5216
6401
  * The error message describing the reason for the exception
@@ -5241,6 +6426,64 @@ type InternalServerError = {
5241
6426
  error: string;
5242
6427
  };
5243
6428
 
6429
+ type Log = {
6430
+ /**
6431
+ * Contract address
6432
+ */
6433
+ address: string;
6434
+ /**
6435
+ * First topic
6436
+ */
6437
+ topic0: string;
6438
+ /**
6439
+ * Second topic (optional)
6440
+ */
6441
+ topic1?: string;
6442
+ /**
6443
+ * Third topic (optional)
6444
+ */
6445
+ topic2?: string;
6446
+ /**
6447
+ * Fourth topic (optional)
6448
+ */
6449
+ topic3?: string;
6450
+ /**
6451
+ * Event data
6452
+ */
6453
+ data: string;
6454
+ /**
6455
+ * Transaction index
6456
+ */
6457
+ transactionIndex: number;
6458
+ /**
6459
+ * Log index
6460
+ */
6461
+ logIndex: number;
6462
+ /**
6463
+ * Indicates if the log was removed
6464
+ */
6465
+ removed: boolean;
6466
+ };
6467
+
6468
+ type NetworkTokenInfo = {
6469
+ /**
6470
+ * Token name
6471
+ */
6472
+ tokenName?: string;
6473
+ /**
6474
+ * Token symbol
6475
+ */
6476
+ tokenSymbol?: string;
6477
+ /**
6478
+ * Token decimals
6479
+ */
6480
+ tokenDecimals?: number;
6481
+ /**
6482
+ * Value including decimals
6483
+ */
6484
+ valueWithDecimals?: string;
6485
+ };
6486
+
5244
6487
  type NextPageToken = {
5245
6488
  /**
5246
6489
  * 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.
@@ -5293,6 +6536,163 @@ type TooManyRequests = {
5293
6536
  error: string;
5294
6537
  };
5295
6538
 
6539
+ type WebhookInternalTransaction = {
6540
+ /**
6541
+ * Sender address
6542
+ */
6543
+ from: string;
6544
+ /**
6545
+ * Recipient address
6546
+ */
6547
+ to: string;
6548
+ /**
6549
+ * Internal transaction type
6550
+ */
6551
+ internalTxType: string;
6552
+ /**
6553
+ * Value transferred
6554
+ */
6555
+ value: string;
6556
+ /**
6557
+ * Gas used
6558
+ */
6559
+ gasUsed: string;
6560
+ /**
6561
+ * Gas limit
6562
+ */
6563
+ gasLimit: string;
6564
+ /**
6565
+ * Transaction hash
6566
+ */
6567
+ transactionHash: string;
6568
+ };
6569
+
6570
+ type Transaction = {
6571
+ /**
6572
+ * Block hash of the transaction
6573
+ */
6574
+ blockHash: string;
6575
+ /**
6576
+ * Block number of the transaction
6577
+ */
6578
+ blockNumber: string;
6579
+ /**
6580
+ * Sender address
6581
+ */
6582
+ from: string;
6583
+ /**
6584
+ * Gas limit for the transaction
6585
+ */
6586
+ gas: string;
6587
+ /**
6588
+ * Gas price used
6589
+ */
6590
+ gasPrice: string;
6591
+ /**
6592
+ * Maximum fee per gas
6593
+ */
6594
+ maxFeePerGas: string;
6595
+ /**
6596
+ * Maximum priority fee per gas
6597
+ */
6598
+ maxPriorityFeePerGas: string;
6599
+ /**
6600
+ * Transaction hash
6601
+ */
6602
+ txHash: string;
6603
+ /**
6604
+ * Transaction status
6605
+ */
6606
+ txStatus: string;
6607
+ /**
6608
+ * Input data
6609
+ */
6610
+ input: string;
6611
+ /**
6612
+ * Nonce value
6613
+ */
6614
+ nonce: string;
6615
+ /**
6616
+ * Recipient address
6617
+ */
6618
+ to: string;
6619
+ /**
6620
+ * Transaction index
6621
+ */
6622
+ transactionIndex: number;
6623
+ /**
6624
+ * Value transferred in the transaction
6625
+ */
6626
+ value: string;
6627
+ /**
6628
+ * Transaction type
6629
+ */
6630
+ type: number;
6631
+ /**
6632
+ * Chain ID of the network
6633
+ */
6634
+ chainId: string;
6635
+ /**
6636
+ * Cumulative gas used
6637
+ */
6638
+ receiptCumulativeGasUsed: string;
6639
+ /**
6640
+ * Gas used
6641
+ */
6642
+ receiptGasUsed: string;
6643
+ /**
6644
+ * Effective gas price
6645
+ */
6646
+ receiptEffectiveGasPrice: string;
6647
+ /**
6648
+ * Receipt root
6649
+ */
6650
+ receiptRoot: string;
6651
+ /**
6652
+ * Block timestamp
6653
+ */
6654
+ blockTimestamp: number;
6655
+ /**
6656
+ * Contract address (optional)
6657
+ */
6658
+ contractAddress?: string;
6659
+ /**
6660
+ * ERC20 transfers
6661
+ */
6662
+ erc20Transfers: Array<ERCTransfer>;
6663
+ /**
6664
+ * ERC721 transfers
6665
+ */
6666
+ erc721Transfers: Array<ERCTransfer>;
6667
+ /**
6668
+ * ERC1155 transfers
6669
+ */
6670
+ erc1155Transfers: Array<ERCTransfer>;
6671
+ /**
6672
+ * Internal transactions (optional)
6673
+ */
6674
+ internalTransactions?: Array<WebhookInternalTransaction>;
6675
+ /**
6676
+ * Access list (optional)
6677
+ */
6678
+ accessList?: Array<AccessListData>;
6679
+ /**
6680
+ * Network token info (optional)
6681
+ */
6682
+ networkToken?: NetworkTokenInfo;
6683
+ };
6684
+
6685
+ type TransactionEvent = {
6686
+ /**
6687
+ * Transaction details
6688
+ */
6689
+ transaction: Transaction;
6690
+ /**
6691
+ * Array of log events
6692
+ */
6693
+ logs?: Array<Log>;
6694
+ };
6695
+
5296
6696
  type Unauthorized = {
5297
6697
  /**
5298
6698
  * The error message describing the reason for the exception
@@ -5308,4 +6708,43 @@ type Unauthorized = {
5308
6708
  error: string;
5309
6709
  };
5310
6710
 
5311
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, 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, 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, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, 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, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, 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, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, 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 };
6711
+ type WebhookAddressActivityResponse = {
6712
+ /**
6713
+ * Webhook ID
6714
+ */
6715
+ webhookId: string;
6716
+ /**
6717
+ * Event type
6718
+ */
6719
+ eventType: WebhookAddressActivityResponse.eventType;
6720
+ /**
6721
+ * Message ID
6722
+ */
6723
+ messageId: string;
6724
+ /**
6725
+ * Event details
6726
+ */
6727
+ event: TransactionEvent;
6728
+ };
6729
+ declare namespace WebhookAddressActivityResponse {
6730
+ /**
6731
+ * Event type
6732
+ */
6733
+ enum eventType {
6734
+ ADDRESS_ACTIVITY = "address_activity"
6735
+ }
6736
+ }
6737
+
6738
+ declare class FetchHttpRequest extends BaseHttpRequest {
6739
+ constructor(config: OpenAPIConfig);
6740
+ /**
6741
+ * Request method
6742
+ * @param options The request options from the service
6743
+ * @returns CancelablePromise<T>
6744
+ * @throws ApiError
6745
+ */
6746
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6747
+ }
6748
+
6749
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6750
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, 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, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };