@avalabs/glacier-sdk 3.1.0-canary.b1108b2.0 → 3.1.0-canary.b394da3.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 (308) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2595 -542
  3. package/esm/generated/Glacier.d.ts +8 -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/AddressActivityEventType.d.ts +5 -0
  15. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  18. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  19. package/esm/generated/models/AssetAmount.d.ts +1 -1
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  21. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  22. package/esm/generated/models/BadGateway.d.ts +1 -1
  23. package/esm/generated/models/BadRequest.d.ts +1 -1
  24. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  25. package/esm/generated/models/Blockchain.d.ts +11 -1
  26. package/esm/generated/models/BlockchainInfo.d.ts +9 -2
  27. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  28. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  29. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  30. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  31. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  32. package/esm/generated/models/ChainInfo.d.ts +1 -1
  33. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  34. package/esm/generated/models/CommonBalanceType.js +1 -0
  35. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  36. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  37. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  38. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
  40. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
  41. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  42. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  43. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  44. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  45. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  46. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  47. package/esm/generated/models/ERCToken.d.ts +24 -0
  48. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  49. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  50. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  51. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  52. package/esm/generated/models/EVMInput.d.ts +1 -1
  53. package/esm/generated/models/EVMOutput.d.ts +1 -1
  54. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  55. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  56. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  57. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  58. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  59. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  60. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  61. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  62. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  63. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  64. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  65. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  66. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  67. package/esm/generated/models/EvmBlock.d.ts +5 -1
  68. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  69. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  70. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  71. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  72. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  73. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  74. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  75. package/esm/generated/models/Forbidden.d.ts +1 -1
  76. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  77. package/esm/generated/models/Geolocation.d.ts +24 -0
  78. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  79. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  80. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  81. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  82. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  83. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  84. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  85. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  86. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  87. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  88. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  89. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  90. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  91. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  92. package/esm/generated/models/IcmRewardDetails.js +1 -0
  93. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  94. package/esm/generated/models/ImageAsset.d.ts +1 -1
  95. package/esm/generated/models/InternalServerError.d.ts +1 -1
  96. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  97. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  98. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  99. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  100. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  101. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  102. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  103. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  104. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  105. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  106. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  107. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  109. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  110. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  111. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  112. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  113. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  114. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  115. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  116. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  117. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  118. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  120. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  122. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  124. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  125. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  126. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  127. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  129. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  130. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  131. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  133. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  134. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  135. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  136. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  137. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  138. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  139. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  140. package/esm/generated/models/Log.d.ts +40 -0
  141. package/esm/generated/models/LogsFormat.d.ts +1 -1
  142. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  143. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  144. package/esm/generated/models/Method.d.ts +1 -1
  145. package/esm/generated/models/Metric.d.ts +1 -1
  146. package/esm/generated/models/Money.d.ts +1 -1
  147. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  148. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  149. package/esm/generated/models/Network.d.ts +2 -1
  150. package/esm/generated/models/Network.js +1 -1
  151. package/esm/generated/models/NetworkToken.d.ts +1 -1
  152. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  153. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  154. package/esm/generated/models/NextPageToken.d.ts +1 -1
  155. package/esm/generated/models/NotFound.d.ts +1 -1
  156. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  157. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  158. package/esm/generated/models/PChainBalance.d.ts +1 -1
  159. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  160. package/esm/generated/models/PChainTransaction.d.ts +39 -8
  161. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  162. package/esm/generated/models/PChainTransactionType.js +1 -1
  163. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  164. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  165. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  166. package/esm/generated/models/PendingIcmMessage.js +1 -0
  167. package/esm/generated/models/PendingReward.d.ts +1 -1
  168. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  169. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  170. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  171. package/esm/generated/models/PricingProviders.d.ts +1 -1
  172. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  173. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  174. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  175. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  176. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  177. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  178. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  179. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  180. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  181. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  182. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  183. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  184. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  185. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  186. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  187. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  188. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  189. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  190. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  191. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  192. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  193. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  194. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  195. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  196. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  197. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  198. package/esm/generated/models/ResourceLink.d.ts +1 -1
  199. package/esm/generated/models/Rewards.d.ts +1 -1
  200. package/esm/generated/models/RichAddress.d.ts +1 -1
  201. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  202. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  203. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  204. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  205. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  206. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  207. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  208. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  209. package/esm/generated/models/SignatureAggregatorRequest.d.ts +28 -0
  210. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  211. package/esm/generated/models/Subnet.d.ts +16 -3
  212. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  213. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  214. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  215. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  216. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  217. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  218. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  219. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  220. package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
  221. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  222. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  223. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  224. package/esm/generated/models/Transaction.d.ts +121 -0
  225. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  226. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  227. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  228. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  229. package/esm/generated/models/Unauthorized.d.ts +1 -1
  230. package/esm/generated/models/UnknownContract.d.ts +1 -1
  231. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  232. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  233. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  234. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  235. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  236. package/esm/generated/models/Utxo.d.ts +5 -1
  237. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  238. package/esm/generated/models/UtxoType.d.ts +3 -0
  239. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  240. package/esm/generated/models/UtxosSortByOption.js +1 -0
  241. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  242. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  243. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  244. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  245. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  246. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  247. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  248. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  249. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  250. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  251. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  252. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  253. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  254. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  255. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  256. package/esm/generated/models/XChainBalances.d.ts +1 -1
  257. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  258. package/esm/generated/models/XChainVertex.d.ts +1 -1
  259. package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
  260. package/esm/generated/services/AvaxSupplyService.js +1 -0
  261. package/esm/generated/services/DataApiUsageMetricsService.d.ts +166 -22
  262. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  263. package/esm/generated/services/EvmBalancesService.d.ts +9 -9
  264. package/esm/generated/services/EvmBlocksService.d.ts +23 -2
  265. package/esm/generated/services/EvmBlocksService.js +1 -1
  266. package/esm/generated/services/EvmChainsService.d.ts +84 -6
  267. package/esm/generated/services/EvmChainsService.js +1 -1
  268. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  269. package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
  270. package/esm/generated/services/EvmTransactionsService.js +1 -1
  271. package/esm/generated/services/HealthCheckService.d.ts +11 -7
  272. package/esm/generated/services/HealthCheckService.js +1 -1
  273. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  274. package/esm/generated/services/InterchainMessagingService.js +1 -0
  275. package/esm/generated/services/NfTsService.d.ts +3 -3
  276. package/esm/generated/services/NotificationsService.d.ts +51 -0
  277. package/esm/generated/services/NotificationsService.js +1 -0
  278. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
  279. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
  280. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  281. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  282. package/esm/generated/services/PrimaryNetworkService.d.ts +64 -13
  283. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  284. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
  285. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  286. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +57 -2
  287. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  288. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
  289. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  290. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  291. package/esm/generated/services/TeleporterService.d.ts +17 -11
  292. package/esm/generated/services/WebhooksService.d.ts +28 -24
  293. package/esm/generated/services/WebhooksService.js +1 -1
  294. package/esm/index.d.ts +76 -10
  295. package/esm/index.js +1 -1
  296. package/package.json +13 -4
  297. package/dist/index.js +0 -1
  298. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  299. package/esm/generated/models/EventType.d.ts +0 -5
  300. package/esm/generated/models/NetworkType.d.ts +0 -6
  301. package/esm/generated/models/NetworkType.js +0 -1
  302. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  303. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  304. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  305. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  306. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  307. package/esm/generated/services/RpcService.d.ts +0 -25
  308. package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts CHANGED
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type AvaxSupplyResponse = {
58
+ /**
59
+ * The circulating supply of AVAX.
60
+ */
61
+ circulatingSupply: string;
62
+ /**
63
+ * The total supply of AVAX.
64
+ */
65
+ totalSupply: string;
66
+ /**
67
+ * Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
72
+ */
73
+ totalCBurned: string;
74
+ /**
75
+ * The total X-chain burned fees of AVAX.
76
+ */
77
+ totalXBurned: string;
78
+ /**
79
+ * The total staked AVAX.
80
+ */
81
+ totalStaked: string;
82
+ /**
83
+ * The total locked AVAX.
84
+ */
85
+ totalLocked: string;
86
+ /**
87
+ * The total rewards AVAX.
88
+ */
89
+ totalRewards: string;
90
+ /**
91
+ * The last updated time of the AVAX supply.
92
+ */
93
+ lastUpdated: string;
94
+ /**
95
+ * The genesis unlock amount of the AVAX supply.
96
+ */
97
+ genesisUnlock: string;
98
+ /**
99
+ * The total L1 validator fees of AVAX.
100
+ */
101
+ l1ValidatorFees: string;
102
+ };
103
+
104
+ declare class AvaxSupplyService {
105
+ readonly httpRequest: BaseHttpRequest;
106
+ constructor(httpRequest: BaseHttpRequest);
107
+ /**
108
+ * Get AVAX supply information
109
+ * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
110
+ * @returns AvaxSupplyResponse Successful response
111
+ * @throws ApiError
112
+ */
113
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
114
+ }
115
+
57
116
  type LogsFormatMetadata = {
58
117
  /**
59
118
  * The IP address of the client that made the request.
@@ -148,6 +207,145 @@ type LogsResponseDTO = {
148
207
  logs: Array<LogsFormat>;
149
208
  };
150
209
 
210
+ declare enum Network {
211
+ MAINNET = "mainnet",
212
+ FUJI = "fuji",
213
+ TESTNET = "testnet"
214
+ }
215
+
216
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
217
+ RPC_METHOD = "rpcMethod",
218
+ REQUEST_PATH = "requestPath",
219
+ RESPONSE_CODE = "responseCode",
220
+ COUNTRY = "country",
221
+ CONTINENT = "continent",
222
+ USER_AGENT = "userAgent"
223
+ }
224
+
225
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
226
+ HOURLY = "hourly",
227
+ DAILY = "daily",
228
+ WEEKLY = "weekly",
229
+ MONTHLY = "monthly"
230
+ }
231
+
232
+ type RpcUsageMetricsValueAggregated = {
233
+ /**
234
+ * The total number of requests
235
+ */
236
+ totalRequests: number;
237
+ /**
238
+ * The number of API credits used
239
+ */
240
+ apiCreditsUsed: number;
241
+ /**
242
+ * The number of requests per second
243
+ */
244
+ requestsPerSecond: number;
245
+ /**
246
+ * The success rate percentage
247
+ */
248
+ successRatePercent: number;
249
+ /**
250
+ * The median response time in milliseconds
251
+ */
252
+ medianResponseTimeMsecs: number;
253
+ /**
254
+ * The number of invalid requests
255
+ */
256
+ invalidRequests: number;
257
+ /**
258
+ * The number of API credits wasted on invalid requests
259
+ */
260
+ apiCreditsWasted: number;
261
+ /**
262
+ * Column name used for data aggregation
263
+ */
264
+ groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
265
+ /**
266
+ * The value of the column used for data aggregation
267
+ */
268
+ groupValue?: (string | number);
269
+ };
270
+ declare namespace RpcUsageMetricsValueAggregated {
271
+ /**
272
+ * Column name used for data aggregation
273
+ */
274
+ enum groupedBy {
275
+ RPC_METHOD = "rpcMethod",
276
+ RESPONSE_CODE = "responseCode",
277
+ RL_BYPASS_TOKEN = "rlBypassToken",
278
+ REQUEST_PATH = "requestPath",
279
+ COUNTRY = "country",
280
+ CONTINENT = "continent",
281
+ USER_AGENT = "userAgent",
282
+ NONE = "None"
283
+ }
284
+ }
285
+
286
+ type RpcMetrics = {
287
+ /**
288
+ * The timestamp of the metrics value
289
+ */
290
+ timestamp: number;
291
+ /**
292
+ * The metrics values for the timestamp
293
+ */
294
+ values: Array<RpcUsageMetricsValueAggregated>;
295
+ };
296
+
297
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
298
+ /**
299
+ * Duration in which the metrics value is aggregated
300
+ */
301
+ aggregateDuration: string;
302
+ /**
303
+ * Metrics values
304
+ */
305
+ metrics: Array<RpcMetrics>;
306
+ /**
307
+ * Network type for which the metrics are aggregated
308
+ */
309
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
310
+ };
311
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
312
+ /**
313
+ * Network type for which the metrics are aggregated
314
+ */
315
+ enum network {
316
+ MAINNET = "mainnet",
317
+ TESTNET = "testnet"
318
+ }
319
+ }
320
+
321
+ declare enum RpcUsageMetricsGroupByEnum {
322
+ RPC_METHOD = "rpcMethod",
323
+ RESPONSE_CODE = "responseCode",
324
+ RL_BYPASS_TOKEN = "rlBypassToken"
325
+ }
326
+
327
+ declare enum SubnetRpcTimeIntervalGranularity {
328
+ HOURLY = "hourly",
329
+ DAILY = "daily",
330
+ WEEKLY = "weekly",
331
+ MONTHLY = "monthly"
332
+ }
333
+
334
+ type SubnetRpcUsageMetricsResponseDTO = {
335
+ /**
336
+ * Duration in which the metrics value is aggregated
337
+ */
338
+ aggregateDuration: string;
339
+ /**
340
+ * Metrics values
341
+ */
342
+ metrics: Array<RpcMetrics>;
343
+ /**
344
+ * ChainId for which the metrics are aggregated
345
+ */
346
+ chainId: string;
347
+ };
348
+
151
349
  declare enum TimeIntervalGranularityExtended {
152
350
  MINUTE = "minute",
153
351
  HOURLY = "hourly",
@@ -251,17 +449,17 @@ declare class DataApiUsageMetricsService {
251
449
  * @returns UsageMetricsResponseDTO Successful response
252
450
  * @throws ApiError
253
451
  */
254
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, requestPath, requestType, responseCode, chainId, apiKeyId, }: {
452
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
255
453
  /**
256
454
  * Organization ID to fetch usage metrics for
257
455
  */
258
456
  orgId?: string;
259
457
  /**
260
- * Query param for retrieving items after a specific timestamp.
458
+ * 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.
261
459
  */
262
460
  startTimestamp?: number;
263
461
  /**
264
- * Query param for retrieving items before a specific timestamp.
462
+ * 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.
265
463
  */
266
464
  endTimestamp?: number;
267
465
  /**
@@ -273,25 +471,25 @@ declare class DataApiUsageMetricsService {
273
471
  */
274
472
  groupBy?: UsageMetricsGroupByEnum;
275
473
  /**
276
- * Filter data by request path.
277
- */
278
- requestPath?: string;
279
- /**
280
- * Filter data by request type.
474
+ * Filter data by chain ID.
281
475
  */
282
- requestType?: 'data' | 'rpc';
476
+ chainId?: string;
283
477
  /**
284
478
  * Filter data by response status code.
285
479
  */
286
480
  responseCode?: string;
287
481
  /**
288
- * Filter data by chain ID.
482
+ * Filter data by request type.
289
483
  */
290
- chainId?: string;
484
+ requestType?: 'data' | 'rpc';
291
485
  /**
292
486
  * Filter data by API key ID.
293
487
  */
294
488
  apiKeyId?: string;
489
+ /**
490
+ * Filter data by request path.
491
+ */
492
+ requestPath?: string;
295
493
  }): CancelablePromise<UsageMetricsResponseDTO>;
296
494
  /**
297
495
  * Get logs for requests made by client
@@ -299,39 +497,39 @@ declare class DataApiUsageMetricsService {
299
497
  * @returns LogsResponseDTO Successful response
300
498
  * @throws ApiError
301
499
  */
302
- getApiLogs({ orgId, startTimestamp, endTimestamp, requestPath, requestType, responseCode, chainId, apiKeyId, pageToken, pageSize, }: {
500
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
303
501
  /**
304
502
  * Organization ID to fetch usage metrics for
305
503
  */
306
504
  orgId?: string;
307
505
  /**
308
- * Query param for retrieving items after a specific timestamp.
506
+ * 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.
309
507
  */
310
508
  startTimestamp?: number;
311
509
  /**
312
- * Query param for retrieving items before a specific timestamp.
510
+ * 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.
313
511
  */
314
512
  endTimestamp?: number;
315
513
  /**
316
- * Filter data by request path.
317
- */
318
- requestPath?: string;
319
- /**
320
- * Filter data by request type.
514
+ * Filter data by chain ID.
321
515
  */
322
- requestType?: 'data' | 'rpc';
516
+ chainId?: string;
323
517
  /**
324
518
  * Filter data by response status code.
325
519
  */
326
520
  responseCode?: string;
327
521
  /**
328
- * Filter data by chain ID.
522
+ * Filter data by request type.
329
523
  */
330
- chainId?: string;
524
+ requestType?: 'data' | 'rpc';
331
525
  /**
332
526
  * Filter data by API key ID.
333
527
  */
334
528
  apiKeyId?: string;
529
+ /**
530
+ * Filter data by request path.
531
+ */
532
+ requestPath?: string;
335
533
  /**
336
534
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
337
535
  */
@@ -341,68 +539,205 @@ declare class DataApiUsageMetricsService {
341
539
  */
342
540
  pageSize?: number;
343
541
  }): CancelablePromise<LogsResponseDTO>;
344
- }
345
-
346
- declare class DefaultService {
347
- readonly httpRequest: BaseHttpRequest;
348
- constructor(httpRequest: BaseHttpRequest);
349
542
  /**
350
- * @returns any
543
+ * Get usage metrics for the Subnet RPC
544
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
545
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
351
546
  * @throws ApiError
352
547
  */
353
- mediaControllerUploadImage(): CancelablePromise<any>;
354
- }
355
-
356
- /**
357
- * ISO 4217 currency code.
358
- */
359
- declare enum CurrencyCode {
360
- USD = "usd",
361
- EUR = "eur",
362
- AUD = "aud",
363
- CAD = "cad",
364
- CHF = "chf",
365
- CLP = "clp",
366
- CNY = "cny",
367
- CZK = "czk",
368
- DKK = "dkk",
369
- GBP = "gbp",
370
- HKD = "hkd",
371
- HUF = "huf",
372
- JPY = "jpy",
373
- NZD = "nzd"
374
- }
375
-
376
- type Money = {
377
- currencyCode: CurrencyCode;
378
- /**
379
- * Monetary value in base 10 decimals.
380
- */
381
- value: number;
382
- };
383
-
384
- type NativeTokenBalance = {
385
- /**
386
- * The contract name.
387
- */
388
- name: string;
389
- /**
390
- * The contract symbol.
391
- */
392
- symbol: string;
393
- /**
394
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
395
- */
396
- decimals: number;
397
- /**
398
- * The logo uri for the address.
399
- */
400
- logoUri?: string;
548
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
549
+ /**
550
+ * Time interval granularity for data aggregation for subnet
551
+ * rpc metrics
552
+ */
553
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
554
+ /**
555
+ * 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.
556
+ */
557
+ startTimestamp?: number;
558
+ /**
559
+ * 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.
560
+ */
561
+ endTimestamp?: number;
562
+ /**
563
+ * Query param for the criterion used for grouping metrics
564
+ */
565
+ groupBy?: RpcUsageMetricsGroupByEnum;
566
+ /**
567
+ * Filter data by chain ID.
568
+ */
569
+ chainId?: string;
570
+ /**
571
+ * Filter data by response status code.
572
+ */
573
+ responseCode?: string;
574
+ /**
575
+ * Filter data by RPC method.
576
+ */
577
+ rpcMethod?: string;
578
+ /**
579
+ * Filter data by Rl Bypass API Token.
580
+ */
581
+ rlBypassApiToken?: string;
582
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
401
583
  /**
402
- * The evm chain id.
584
+ * @deprecated
585
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
586
+ *
587
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
588
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
589
+ * @throws ApiError
403
590
  */
404
- chainId: string;
405
- /**
591
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
592
+ /**
593
+ * Time interval granularity for data aggregation for subnet
594
+ * rpc metrics
595
+ */
596
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
597
+ /**
598
+ * 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.
599
+ */
600
+ startTimestamp?: number;
601
+ /**
602
+ * 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.
603
+ */
604
+ endTimestamp?: number;
605
+ /**
606
+ * Query param for the criterion used for grouping metrics
607
+ */
608
+ groupBy?: RpcUsageMetricsGroupByEnum;
609
+ /**
610
+ * Filter data by chain ID.
611
+ */
612
+ chainId?: string;
613
+ /**
614
+ * Filter data by response status code.
615
+ */
616
+ responseCode?: string;
617
+ /**
618
+ * Filter data by RPC method.
619
+ */
620
+ rpcMethod?: string;
621
+ /**
622
+ * Filter data by Rl Bypass API Token.
623
+ */
624
+ rlBypassApiToken?: string;
625
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
626
+ /**
627
+ * Get usage metrics for the Primary Network RPC
628
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
629
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
630
+ * @throws ApiError
631
+ */
632
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
633
+ /**
634
+ * Either mainnet or testnet/fuji.
635
+ */
636
+ network: Network;
637
+ /**
638
+ * Time interval granularity for data aggregation for subnet
639
+ * rpc metrics
640
+ */
641
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
642
+ /**
643
+ * 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.
644
+ */
645
+ startTimestamp?: number;
646
+ /**
647
+ * 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.
648
+ */
649
+ endTimestamp?: number;
650
+ /**
651
+ * Query param for the criterion used for grouping metrics
652
+ */
653
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
654
+ /**
655
+ * Filter data by response status code.
656
+ */
657
+ responseCode?: string;
658
+ /**
659
+ * Filter data by request path.
660
+ */
661
+ requestPath?: string;
662
+ /**
663
+ * 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.
664
+ */
665
+ country?: string;
666
+ /**
667
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
668
+ */
669
+ continent?: string;
670
+ /**
671
+ * Filter data by User Agent.
672
+ */
673
+ userAgent?: string;
674
+ /**
675
+ * Filter data by RPC method.
676
+ */
677
+ rpcMethod?: string;
678
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
679
+ }
680
+
681
+ declare class DefaultService {
682
+ readonly httpRequest: BaseHttpRequest;
683
+ constructor(httpRequest: BaseHttpRequest);
684
+ /**
685
+ * @returns any
686
+ * @throws ApiError
687
+ */
688
+ mediaControllerUploadImage(): CancelablePromise<any>;
689
+ }
690
+
691
+ /**
692
+ * ISO 4217 currency code.
693
+ */
694
+ declare enum CurrencyCode {
695
+ USD = "usd",
696
+ EUR = "eur",
697
+ AUD = "aud",
698
+ CAD = "cad",
699
+ CHF = "chf",
700
+ CLP = "clp",
701
+ CNY = "cny",
702
+ CZK = "czk",
703
+ DKK = "dkk",
704
+ GBP = "gbp",
705
+ HKD = "hkd",
706
+ HUF = "huf",
707
+ JPY = "jpy",
708
+ NZD = "nzd"
709
+ }
710
+
711
+ type Money = {
712
+ currencyCode: CurrencyCode;
713
+ /**
714
+ * Monetary value in base 10 decimals.
715
+ */
716
+ value: number;
717
+ };
718
+
719
+ type NativeTokenBalance = {
720
+ /**
721
+ * The contract name.
722
+ */
723
+ name: string;
724
+ /**
725
+ * The contract symbol.
726
+ */
727
+ symbol: string;
728
+ /**
729
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
730
+ */
731
+ decimals: number;
732
+ /**
733
+ * The logo uri for the address.
734
+ */
735
+ logoUri?: string;
736
+ /**
737
+ * The evm chain id.
738
+ */
739
+ chainId: string;
740
+ /**
406
741
  * The token price, if available.
407
742
  */
408
743
  price?: Money;
@@ -539,6 +874,10 @@ type ListErc1155BalancesResponse = {
539
874
  * 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.
540
875
  */
541
876
  nextPageToken?: string;
877
+ /**
878
+ * The native token balance for the address.
879
+ */
880
+ nativeTokenBalance: NativeTokenBalance;
542
881
  /**
543
882
  * The list of ERC-1155 token balances for the address.
544
883
  */
@@ -583,11 +922,22 @@ type Erc20TokenBalance = {
583
922
  * The monetary value of the balance, if a price is available for the token.
584
923
  */
585
924
  balanceValue?: Money;
925
+ /**
926
+ * 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.
927
+ */
928
+ tokenReputation: Erc20TokenBalance.tokenReputation;
586
929
  };
587
930
  declare namespace Erc20TokenBalance {
588
931
  enum ercType {
589
932
  ERC_20 = "ERC-20"
590
933
  }
934
+ /**
935
+ * 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.
936
+ */
937
+ enum tokenReputation {
938
+ MALICIOUS = "Malicious",
939
+ BENIGN = "Benign"
940
+ }
591
941
  }
592
942
 
593
943
  type ListErc20BalancesResponse = {
@@ -595,6 +945,10 @@ type ListErc20BalancesResponse = {
595
945
  * 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.
596
946
  */
597
947
  nextPageToken?: string;
948
+ /**
949
+ * The native token balance for the address.
950
+ */
951
+ nativeTokenBalance: NativeTokenBalance;
598
952
  /**
599
953
  * The list of ERC-20 token balances for the address.
600
954
  */
@@ -606,6 +960,10 @@ type ListErc721BalancesResponse = {
606
960
  * 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.
607
961
  */
608
962
  nextPageToken?: string;
963
+ /**
964
+ * The native token balance for the address.
965
+ */
966
+ nativeTokenBalance: NativeTokenBalance;
609
967
  /**
610
968
  * The list of ERC-721 token balances for the address.
611
969
  */
@@ -625,7 +983,7 @@ declare class EvmBalancesService {
625
983
  */
626
984
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
627
985
  /**
628
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
986
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
629
987
  */
630
988
  chainId: string;
631
989
  /**
@@ -653,7 +1011,7 @@ declare class EvmBalancesService {
653
1011
  */
654
1012
  listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
655
1013
  /**
656
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1014
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
657
1015
  */
658
1016
  chainId: string;
659
1017
  /**
@@ -669,7 +1027,7 @@ declare class EvmBalancesService {
669
1027
  */
670
1028
  pageToken?: string;
671
1029
  /**
672
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1030
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
673
1031
  */
674
1032
  pageSize?: number;
675
1033
  /**
@@ -695,7 +1053,7 @@ declare class EvmBalancesService {
695
1053
  */
696
1054
  listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
697
1055
  /**
698
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1056
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
699
1057
  */
700
1058
  chainId: string;
701
1059
  /**
@@ -707,7 +1065,7 @@ declare class EvmBalancesService {
707
1065
  */
708
1066
  pageToken?: string;
709
1067
  /**
710
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1068
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
711
1069
  */
712
1070
  pageSize?: number;
713
1071
  /**
@@ -727,7 +1085,7 @@ declare class EvmBalancesService {
727
1085
  */
728
1086
  listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
729
1087
  /**
730
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1088
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
731
1089
  */
732
1090
  chainId: string;
733
1091
  /**
@@ -743,7 +1101,7 @@ declare class EvmBalancesService {
743
1101
  */
744
1102
  pageToken?: string;
745
1103
  /**
746
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1104
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
747
1105
  */
748
1106
  pageSize?: number;
749
1107
  /**
@@ -761,7 +1119,7 @@ declare class EvmBalancesService {
761
1119
  */
762
1120
  listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
763
1121
  /**
764
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1122
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
765
1123
  */
766
1124
  chainId: string;
767
1125
  /**
@@ -773,7 +1131,7 @@ declare class EvmBalancesService {
773
1131
  */
774
1132
  pageToken?: string;
775
1133
  /**
776
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1134
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
777
1135
  */
778
1136
  pageSize?: number;
779
1137
  /**
@@ -784,6 +1142,10 @@ declare class EvmBalancesService {
784
1142
  }
785
1143
 
786
1144
  type GetEvmBlockResponse = {
1145
+ /**
1146
+ * The EVM chain ID on which the block was created.
1147
+ */
1148
+ chainId: string;
787
1149
  /**
788
1150
  * The block number on the chain.
789
1151
  */
@@ -828,6 +1190,10 @@ type GetEvmBlockResponse = {
828
1190
  };
829
1191
 
830
1192
  type EvmBlock = {
1193
+ /**
1194
+ * The EVM chain ID on which the block was created.
1195
+ */
1196
+ chainId: string;
831
1197
  /**
832
1198
  * The block number on the chain.
833
1199
  */
@@ -882,6 +1248,26 @@ type ListEvmBlocksResponse = {
882
1248
  declare class EvmBlocksService {
883
1249
  readonly httpRequest: BaseHttpRequest;
884
1250
  constructor(httpRequest: BaseHttpRequest);
1251
+ /**
1252
+ * List latest blocks across all supported EVM chains
1253
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1254
+ * @returns ListEvmBlocksResponse Successful response
1255
+ * @throws ApiError
1256
+ */
1257
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1258
+ /**
1259
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1260
+ */
1261
+ pageToken?: string;
1262
+ /**
1263
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1264
+ */
1265
+ pageSize?: number;
1266
+ /**
1267
+ * Either mainnet or testnet/fuji.
1268
+ */
1269
+ network?: Network;
1270
+ }): CancelablePromise<ListEvmBlocksResponse>;
885
1271
  /**
886
1272
  * List latest blocks
887
1273
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -890,7 +1276,7 @@ declare class EvmBlocksService {
890
1276
  */
891
1277
  getLatestBlocks({ chainId, pageToken, pageSize, }: {
892
1278
  /**
893
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1279
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
894
1280
  */
895
1281
  chainId: string;
896
1282
  /**
@@ -910,7 +1296,7 @@ declare class EvmBlocksService {
910
1296
  */
911
1297
  getBlock({ chainId, blockId, }: {
912
1298
  /**
913
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1299
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
914
1300
  */
915
1301
  chainId: string;
916
1302
  /**
@@ -1004,109 +1390,295 @@ type ChainInfo = {
1004
1390
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1005
1391
  };
1006
1392
 
1393
+ type ListAddressChainsResponse = {
1394
+ indexedChains?: Array<ChainInfo>;
1395
+ unindexedChains?: Array<string>;
1396
+ };
1397
+
1007
1398
  type ListChainsResponse = {
1008
1399
  chains: Array<ChainInfo>;
1009
1400
  };
1010
1401
 
1011
- declare enum NetworkType {
1012
- MAINNET = "mainnet",
1013
- TESTNET = "testnet"
1402
+ /**
1403
+ * 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.
1404
+ */
1405
+ declare enum TransactionMethodType {
1406
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1407
+ CONTRACT_CALL = "CONTRACT_CALL",
1408
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1014
1409
  }
1015
1410
 
1016
- declare class EvmChainsService {
1017
- readonly httpRequest: BaseHttpRequest;
1018
- constructor(httpRequest: BaseHttpRequest);
1019
- /**
1020
- * List chains
1021
- * Lists the supported EVM-compatible chains. Filterable by network.
1022
- * @returns ListChainsResponse Successful response
1023
- * @throws ApiError
1024
- */
1025
- supportedChains({ network, feature, }: {
1026
- /**
1027
- * mainnet or testnet.
1028
- */
1029
- network?: NetworkType;
1030
- /**
1031
- * Filter by feature.
1032
- */
1033
- feature?: ApiFeature;
1034
- }): CancelablePromise<ListChainsResponse>;
1411
+ type Method = {
1412
+ callType: TransactionMethodType;
1035
1413
  /**
1036
- * Get chain information
1037
- * Gets chain information for the EVM-compatible chain if supported by the api.
1038
- * @returns GetChainResponse Successful response
1039
- * @throws ApiError
1414
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1040
1415
  */
1041
- getChainInfo({ chainId, }: {
1042
- /**
1043
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1044
- */
1045
- chainId: string;
1046
- }): CancelablePromise<GetChainResponse>;
1047
- }
1048
-
1049
- type ImageAsset = {
1050
- assetId?: string;
1416
+ methodHash: string;
1051
1417
  /**
1052
- * OUTPUT ONLY
1418
+ * 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'.
1053
1419
  */
1054
- imageUri?: string;
1055
- };
1056
-
1057
- type PricingProviders = {
1058
- coingeckoCoinId?: string;
1059
- };
1060
-
1061
- declare enum ResourceLinkType {
1062
- BLOG = "Blog",
1063
- COIN_GECKO = "CoinGecko",
1064
- COIN_MARKET_CAP = "CoinMarketCap",
1065
- DISCORD = "Discord",
1066
- DOCUMENTATION = "Documentation",
1067
- FACEBOOK = "Facebook",
1068
- GITHUB = "Github",
1069
- INSTAGRAM = "Instagram",
1070
- LINKED_IN = "LinkedIn",
1071
- MEDIUM = "Medium",
1072
- REDDIT = "Reddit",
1073
- SUPPORT = "Support",
1074
- TELEGRAM = "Telegram",
1075
- TIK_TOK = "TikTok",
1076
- TWITTER = "Twitter",
1077
- WEBSITE = "Website",
1078
- WHITEPAPER = "Whitepaper",
1079
- YOUTUBE = "Youtube"
1080
- }
1081
-
1082
- type ResourceLink = {
1083
- type: ResourceLinkType;
1084
- url: string;
1420
+ methodName?: string;
1085
1421
  };
1086
1422
 
1087
- type ContractSubmissionErc1155 = {
1088
- description?: string;
1089
- officialSite?: string;
1090
- email?: string;
1091
- logoAsset?: ImageAsset;
1092
- bannerAsset?: ImageAsset;
1093
- color?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
1423
+ type RichAddress = {
1096
1424
  /**
1097
1425
  * The contract name.
1098
1426
  */
1099
- name: string;
1100
- ercType: ContractSubmissionErc1155.ercType;
1427
+ name?: string;
1101
1428
  /**
1102
1429
  * The contract symbol.
1103
1430
  */
1104
- symbol: string;
1105
- pricingProviders?: PricingProviders;
1106
- };
1107
- declare namespace ContractSubmissionErc1155 {
1108
- enum ercType {
1109
- ERC_1155 = "ERC-1155"
1431
+ symbol?: string;
1432
+ /**
1433
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1434
+ */
1435
+ decimals?: number;
1436
+ /**
1437
+ * The logo uri for the address.
1438
+ */
1439
+ logoUri?: string;
1440
+ /**
1441
+ * A wallet or contract address in mixed-case checksum encoding.
1442
+ */
1443
+ address: string;
1444
+ };
1445
+
1446
+ type NativeTransaction = {
1447
+ /**
1448
+ * The block number on the chain.
1449
+ */
1450
+ blockNumber: string;
1451
+ /**
1452
+ * The block finality timestamp.
1453
+ */
1454
+ blockTimestamp: number;
1455
+ /**
1456
+ * The block hash identifier.
1457
+ */
1458
+ blockHash: string;
1459
+ /**
1460
+ * The EVM chain ID on which the transaction occured.
1461
+ */
1462
+ chainId: string;
1463
+ /**
1464
+ * The index at which the transaction occured in the block (0-indexed).
1465
+ */
1466
+ blockIndex: number;
1467
+ /**
1468
+ * The transaction hash identifier.
1469
+ */
1470
+ txHash: string;
1471
+ /**
1472
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1473
+ */
1474
+ txStatus: string;
1475
+ /**
1476
+ * The transaction type.
1477
+ */
1478
+ txType: number;
1479
+ /**
1480
+ * The gas limit set for the transaction.
1481
+ */
1482
+ gasLimit: string;
1483
+ /**
1484
+ * The amount of gas used.
1485
+ */
1486
+ gasUsed: string;
1487
+ /**
1488
+ * The gas price denominated by the number of decimals of the native token.
1489
+ */
1490
+ gasPrice: string;
1491
+ /**
1492
+ * The nonce used by the sender of the transaction.
1493
+ */
1494
+ nonce: string;
1495
+ from: RichAddress;
1496
+ to: RichAddress;
1497
+ method?: Method;
1498
+ value: string;
1499
+ };
1500
+
1501
+ type ListNativeTransactionsResponse = {
1502
+ /**
1503
+ * 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.
1504
+ */
1505
+ nextPageToken?: string;
1506
+ transactions: Array<NativeTransaction>;
1507
+ };
1508
+
1509
+ declare enum TransactionStatus {
1510
+ FAILED = "failed",
1511
+ SUCCESS = "success"
1512
+ }
1513
+
1514
+ declare class EvmChainsService {
1515
+ readonly httpRequest: BaseHttpRequest;
1516
+ constructor(httpRequest: BaseHttpRequest);
1517
+ /**
1518
+ * List all chains associated with a given address
1519
+ * 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.
1520
+ * @returns ListAddressChainsResponse Successful response
1521
+ * @throws ApiError
1522
+ */
1523
+ listAddressChains({ address, }: {
1524
+ /**
1525
+ * A wallet address.
1526
+ */
1527
+ address: string;
1528
+ }): CancelablePromise<ListAddressChainsResponse>;
1529
+ /**
1530
+ * List chains
1531
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1532
+ * @returns ListChainsResponse Successful response
1533
+ * @throws ApiError
1534
+ */
1535
+ supportedChains({ network, feature, }: {
1536
+ /**
1537
+ * Either mainnet or testnet/fuji.
1538
+ */
1539
+ network?: Network;
1540
+ /**
1541
+ * Filter by feature.
1542
+ */
1543
+ feature?: ApiFeature;
1544
+ }): CancelablePromise<ListChainsResponse>;
1545
+ /**
1546
+ * Get chain information
1547
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1548
+ * @returns GetChainResponse Successful response
1549
+ * @throws ApiError
1550
+ */
1551
+ getChainInfo({ chainId, }: {
1552
+ /**
1553
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1554
+ */
1555
+ chainId: string;
1556
+ }): CancelablePromise<GetChainResponse>;
1557
+ /**
1558
+ * @deprecated
1559
+ * **[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.
1560
+ *
1561
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1562
+ * @returns ListAddressChainsResponse Successful response
1563
+ * @throws ApiError
1564
+ */
1565
+ getAddressChains({ address, }: {
1566
+ /**
1567
+ * A wallet address.
1568
+ */
1569
+ address: string;
1570
+ }): CancelablePromise<ListAddressChainsResponse>;
1571
+ /**
1572
+ * @deprecated
1573
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1574
+ *
1575
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1576
+ * @returns ListNativeTransactionsResponse Successful response
1577
+ * @throws ApiError
1578
+ */
1579
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1580
+ /**
1581
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1582
+ */
1583
+ pageToken?: string;
1584
+ /**
1585
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1586
+ */
1587
+ pageSize?: number;
1588
+ /**
1589
+ * Either mainnet or testnet/fuji.
1590
+ */
1591
+ network?: Network;
1592
+ /**
1593
+ * A status filter for listed transactions.
1594
+ */
1595
+ status?: TransactionStatus;
1596
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1597
+ /**
1598
+ * @deprecated
1599
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1600
+ *
1601
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1602
+ * @returns ListEvmBlocksResponse Successful response
1603
+ * @throws ApiError
1604
+ */
1605
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1606
+ /**
1607
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1608
+ */
1609
+ pageToken?: string;
1610
+ /**
1611
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1612
+ */
1613
+ pageSize?: number;
1614
+ /**
1615
+ * Either mainnet or testnet/fuji.
1616
+ */
1617
+ network?: Network;
1618
+ }): CancelablePromise<ListEvmBlocksResponse>;
1619
+ }
1620
+
1621
+ type ImageAsset = {
1622
+ assetId?: string;
1623
+ /**
1624
+ * OUTPUT ONLY
1625
+ */
1626
+ imageUri?: string;
1627
+ };
1628
+
1629
+ type PricingProviders = {
1630
+ coingeckoCoinId?: string;
1631
+ };
1632
+
1633
+ declare enum ResourceLinkType {
1634
+ BLOG = "Blog",
1635
+ COIN_GECKO = "CoinGecko",
1636
+ COIN_MARKET_CAP = "CoinMarketCap",
1637
+ DISCORD = "Discord",
1638
+ DOCUMENTATION = "Documentation",
1639
+ FACEBOOK = "Facebook",
1640
+ GITHUB = "Github",
1641
+ INSTAGRAM = "Instagram",
1642
+ LINKED_IN = "LinkedIn",
1643
+ MEDIUM = "Medium",
1644
+ REDDIT = "Reddit",
1645
+ SUPPORT = "Support",
1646
+ TELEGRAM = "Telegram",
1647
+ TIK_TOK = "TikTok",
1648
+ TWITTER = "Twitter",
1649
+ WEBSITE = "Website",
1650
+ WHITEPAPER = "Whitepaper",
1651
+ YOUTUBE = "Youtube"
1652
+ }
1653
+
1654
+ type ResourceLink = {
1655
+ type: ResourceLinkType;
1656
+ url: string;
1657
+ };
1658
+
1659
+ type ContractSubmissionErc1155 = {
1660
+ description?: string;
1661
+ officialSite?: string;
1662
+ email?: string;
1663
+ logoAsset?: ImageAsset;
1664
+ bannerAsset?: ImageAsset;
1665
+ color?: string;
1666
+ resourceLinks?: Array<ResourceLink>;
1667
+ tags?: Array<string>;
1668
+ /**
1669
+ * The contract name.
1670
+ */
1671
+ name: string;
1672
+ ercType: ContractSubmissionErc1155.ercType;
1673
+ /**
1674
+ * The contract symbol.
1675
+ */
1676
+ symbol: string;
1677
+ pricingProviders?: PricingProviders;
1678
+ };
1679
+ declare namespace ContractSubmissionErc1155 {
1680
+ enum ercType {
1681
+ ERC_1155 = "ERC-1155"
1110
1682
  }
1111
1683
  }
1112
1684
 
@@ -1215,7 +1787,7 @@ type Erc1155Contract = {
1215
1787
  * A wallet or contract address in mixed-case checksum encoding.
1216
1788
  */
1217
1789
  address: string;
1218
- deploymentDetails: ContractDeploymentDetails;
1790
+ deploymentDetails?: ContractDeploymentDetails;
1219
1791
  ercType: Erc1155Contract.ercType;
1220
1792
  /**
1221
1793
  * The contract symbol.
@@ -1246,7 +1818,7 @@ type Erc20Contract = {
1246
1818
  * A wallet or contract address in mixed-case checksum encoding.
1247
1819
  */
1248
1820
  address: string;
1249
- deploymentDetails: ContractDeploymentDetails;
1821
+ deploymentDetails?: ContractDeploymentDetails;
1250
1822
  ercType: Erc20Contract.ercType;
1251
1823
  /**
1252
1824
  * The contract symbol.
@@ -1281,7 +1853,7 @@ type Erc721Contract = {
1281
1853
  * A wallet or contract address in mixed-case checksum encoding.
1282
1854
  */
1283
1855
  address: string;
1284
- deploymentDetails: ContractDeploymentDetails;
1856
+ deploymentDetails?: ContractDeploymentDetails;
1285
1857
  ercType: Erc721Contract.ercType;
1286
1858
  /**
1287
1859
  * The contract symbol.
@@ -1311,7 +1883,7 @@ type UnknownContract = {
1311
1883
  * A wallet or contract address in mixed-case checksum encoding.
1312
1884
  */
1313
1885
  address: string;
1314
- deploymentDetails: ContractDeploymentDetails;
1886
+ deploymentDetails?: ContractDeploymentDetails;
1315
1887
  ercType: UnknownContract.ercType;
1316
1888
  };
1317
1889
  declare namespace UnknownContract {
@@ -1335,7 +1907,7 @@ declare class EvmContractsService {
1335
1907
  */
1336
1908
  getContractMetadata({ chainId, address, }: {
1337
1909
  /**
1338
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1910
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1339
1911
  */
1340
1912
  chainId: string;
1341
1913
  /**
@@ -1351,7 +1923,7 @@ declare class EvmContractsService {
1351
1923
  */
1352
1924
  updateContractInfo({ chainId, address, requestBody, }: {
1353
1925
  /**
1354
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1926
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1355
1927
  */
1356
1928
  chainId: string;
1357
1929
  /**
@@ -1378,29 +1950,6 @@ declare namespace Erc1155Token {
1378
1950
  }
1379
1951
  }
1380
1952
 
1381
- type RichAddress = {
1382
- /**
1383
- * The contract name.
1384
- */
1385
- name?: string;
1386
- /**
1387
- * The contract symbol.
1388
- */
1389
- symbol?: string;
1390
- /**
1391
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1392
- */
1393
- decimals?: number;
1394
- /**
1395
- * The logo uri for the address.
1396
- */
1397
- logoUri?: string;
1398
- /**
1399
- * A wallet or contract address in mixed-case checksum encoding.
1400
- */
1401
- address: string;
1402
- };
1403
-
1404
1953
  type Erc1155TransferDetails = {
1405
1954
  from: RichAddress;
1406
1955
  to: RichAddress;
@@ -1485,27 +2034,6 @@ type Erc721TransferDetails = {
1485
2034
  erc721Token: Erc721Token;
1486
2035
  };
1487
2036
 
1488
- /**
1489
- * 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.
1490
- */
1491
- declare enum TransactionMethodType {
1492
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1493
- CONTRACT_CALL = "CONTRACT_CALL",
1494
- CONTRACT_CREATION = "CONTRACT_CREATION"
1495
- }
1496
-
1497
- type Method = {
1498
- callType: TransactionMethodType;
1499
- /**
1500
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1501
- */
1502
- methodHash: string;
1503
- /**
1504
- * 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'.
1505
- */
1506
- methodName?: string;
1507
- };
1508
-
1509
2037
  type FullNativeTransactionDetails = {
1510
2038
  /**
1511
2039
  * The block number on the chain.
@@ -1519,6 +2047,10 @@ type FullNativeTransactionDetails = {
1519
2047
  * The block hash identifier.
1520
2048
  */
1521
2049
  blockHash: string;
2050
+ /**
2051
+ * The EVM chain ID on which the transaction occured.
2052
+ */
2053
+ chainId: string;
1522
2054
  /**
1523
2055
  * The index at which the transaction occured in the block (0-indexed).
1524
2056
  */
@@ -1569,6 +2101,7 @@ declare enum InternalTransactionOpCall {
1569
2101
  CALL = "CALL",
1570
2102
  CREATE = "CREATE",
1571
2103
  CREATE2 = "CREATE2",
2104
+ CREATE3 = "CREATE3",
1572
2105
  CALLCODE = "CALLCODE",
1573
2106
  DELEGATECALL = "DELEGATECALL",
1574
2107
  STATICCALL = "STATICCALL"
@@ -1610,11 +2143,11 @@ type TeleporterMessageInfo = {
1610
2143
  /**
1611
2144
  * chain id of the source chain. valid only for destination transactions
1612
2145
  */
1613
- sourceChainId?: Record<string, any>;
2146
+ sourceChainId?: string;
1614
2147
  /**
1615
2148
  * chain id of the destination chain. valid only for source transactions
1616
2149
  */
1617
- destinationChainId?: Record<string, any>;
2150
+ destinationChainId?: string;
1618
2151
  };
1619
2152
 
1620
2153
  type GetTransactionResponse = {
@@ -1631,7 +2164,7 @@ type GetTransactionResponse = {
1631
2164
  */
1632
2165
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1633
2166
  /**
1634
- * 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.
2167
+ * 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.
1635
2168
  */
1636
2169
  internalTransactions?: Array<InternalTransactionDetails>;
1637
2170
  networkTokenDetails: NetworkTokenDetails;
@@ -1782,65 +2315,6 @@ type ListInternalTransactionsResponse = {
1782
2315
  transactions: Array<InternalTransaction>;
1783
2316
  };
1784
2317
 
1785
- type NativeTransaction = {
1786
- /**
1787
- * The block number on the chain.
1788
- */
1789
- blockNumber: string;
1790
- /**
1791
- * The block finality timestamp.
1792
- */
1793
- blockTimestamp: number;
1794
- /**
1795
- * The block hash identifier.
1796
- */
1797
- blockHash: string;
1798
- /**
1799
- * The index at which the transaction occured in the block (0-indexed).
1800
- */
1801
- blockIndex: number;
1802
- /**
1803
- * The transaction hash identifier.
1804
- */
1805
- txHash: string;
1806
- /**
1807
- * The transaction status, which is either 0 (failed) or 1 (successful).
1808
- */
1809
- txStatus: string;
1810
- /**
1811
- * The transaction type.
1812
- */
1813
- txType: number;
1814
- /**
1815
- * The gas limit set for the transaction.
1816
- */
1817
- gasLimit: string;
1818
- /**
1819
- * The amount of gas used.
1820
- */
1821
- gasUsed: string;
1822
- /**
1823
- * The gas price denominated by the number of decimals of the native token.
1824
- */
1825
- gasPrice: string;
1826
- /**
1827
- * The nonce used by the sender of the transaction.
1828
- */
1829
- nonce: string;
1830
- from: RichAddress;
1831
- to: RichAddress;
1832
- method?: Method;
1833
- value: string;
1834
- };
1835
-
1836
- type ListNativeTransactionsResponse = {
1837
- /**
1838
- * 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.
1839
- */
1840
- nextPageToken?: string;
1841
- transactions: Array<NativeTransaction>;
1842
- };
1843
-
1844
2318
  type TransactionDetails = {
1845
2319
  /**
1846
2320
  * The native (top-level) transaction details.
@@ -1859,7 +2333,7 @@ type TransactionDetails = {
1859
2333
  */
1860
2334
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1861
2335
  /**
1862
- * 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.
2336
+ * 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.
1863
2337
  */
1864
2338
  internalTransactions?: Array<InternalTransactionDetails>;
1865
2339
  };
@@ -1885,14 +2359,33 @@ declare enum SortOrder {
1885
2359
  DESC = "desc"
1886
2360
  }
1887
2361
 
1888
- declare enum TransactionStatus {
1889
- FAILED = "failed",
1890
- SUCCESS = "success"
1891
- }
1892
-
1893
2362
  declare class EvmTransactionsService {
1894
2363
  readonly httpRequest: BaseHttpRequest;
1895
2364
  constructor(httpRequest: BaseHttpRequest);
2365
+ /**
2366
+ * List the latest transactions across all supported EVM chains
2367
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2368
+ * @returns ListNativeTransactionsResponse Successful response
2369
+ * @throws ApiError
2370
+ */
2371
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2372
+ /**
2373
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2374
+ */
2375
+ pageToken?: string;
2376
+ /**
2377
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2378
+ */
2379
+ pageSize?: number;
2380
+ /**
2381
+ * Either mainnet or testnet/fuji.
2382
+ */
2383
+ network?: Network;
2384
+ /**
2385
+ * A status filter for listed transactions.
2386
+ */
2387
+ status?: TransactionStatus;
2388
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1896
2389
  /**
1897
2390
  * Get deployment transaction
1898
2391
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -1901,7 +2394,7 @@ declare class EvmTransactionsService {
1901
2394
  */
1902
2395
  getDeploymentTransaction({ chainId, address, currency, }: {
1903
2396
  /**
1904
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2397
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1905
2398
  */
1906
2399
  chainId: string;
1907
2400
  /**
@@ -1921,7 +2414,7 @@ declare class EvmTransactionsService {
1921
2414
  */
1922
2415
  listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1923
2416
  /**
1924
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2417
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1925
2418
  */
1926
2419
  chainId: string;
1927
2420
  /**
@@ -1945,7 +2438,7 @@ declare class EvmTransactionsService {
1945
2438
  */
1946
2439
  listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1947
2440
  /**
1948
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2441
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1949
2442
  */
1950
2443
  chainId: string;
1951
2444
  /**
@@ -1979,7 +2472,7 @@ declare class EvmTransactionsService {
1979
2472
  */
1980
2473
  listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1981
2474
  /**
1982
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2475
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1983
2476
  */
1984
2477
  chainId: string;
1985
2478
  /**
@@ -2015,7 +2508,7 @@ declare class EvmTransactionsService {
2015
2508
  */
2016
2509
  listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2017
2510
  /**
2018
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2511
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2019
2512
  */
2020
2513
  chainId: string;
2021
2514
  /**
@@ -2047,7 +2540,7 @@ declare class EvmTransactionsService {
2047
2540
  */
2048
2541
  listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2049
2542
  /**
2050
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2543
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2051
2544
  */
2052
2545
  chainId: string;
2053
2546
  /**
@@ -2079,7 +2572,7 @@ declare class EvmTransactionsService {
2079
2572
  */
2080
2573
  listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2081
2574
  /**
2082
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2575
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2083
2576
  */
2084
2577
  chainId: string;
2085
2578
  /**
@@ -2111,7 +2604,7 @@ declare class EvmTransactionsService {
2111
2604
  */
2112
2605
  listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2113
2606
  /**
2114
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2607
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2115
2608
  */
2116
2609
  chainId: string;
2117
2610
  /**
@@ -2139,13 +2632,13 @@ declare class EvmTransactionsService {
2139
2632
  * List internal transactions
2140
2633
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2141
2634
  *
2142
- * 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.
2635
+ * 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.
2143
2636
  * @returns ListInternalTransactionsResponse Successful response
2144
2637
  * @throws ApiError
2145
2638
  */
2146
2639
  listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
2147
2640
  /**
2148
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2641
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2149
2642
  */
2150
2643
  chainId: string;
2151
2644
  /**
@@ -2177,7 +2670,7 @@ declare class EvmTransactionsService {
2177
2670
  */
2178
2671
  getTransaction({ chainId, txHash, }: {
2179
2672
  /**
2180
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2673
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2181
2674
  */
2182
2675
  chainId: string;
2183
2676
  /**
@@ -2191,15 +2684,23 @@ declare class EvmTransactionsService {
2191
2684
  * @returns ListNativeTransactionsResponse Successful response
2192
2685
  * @throws ApiError
2193
2686
  */
2194
- getTransactionsForBlock({ chainId, blockId, }: {
2687
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2195
2688
  /**
2196
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2689
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2197
2690
  */
2198
2691
  chainId: string;
2199
2692
  /**
2200
2693
  * A block identifier which is either a block number or the block hash.
2201
2694
  */
2202
2695
  blockId: string;
2696
+ /**
2697
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2698
+ */
2699
+ pageToken?: string;
2700
+ /**
2701
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2702
+ */
2703
+ pageSize?: number;
2203
2704
  }): CancelablePromise<ListNativeTransactionsResponse>;
2204
2705
  /**
2205
2706
  * List latest transactions
@@ -2209,7 +2710,7 @@ declare class EvmTransactionsService {
2209
2710
  */
2210
2711
  listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2211
2712
  /**
2212
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2713
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2213
2714
  */
2214
2715
  chainId: string;
2215
2716
  /**
@@ -2227,20 +2728,268 @@ declare class EvmTransactionsService {
2227
2728
  }): CancelablePromise<ListNativeTransactionsResponse>;
2228
2729
  }
2229
2730
 
2731
+ type HealthIndicatorResultDto = {
2732
+ /**
2733
+ * Status of the health indicator.
2734
+ */
2735
+ status?: HealthIndicatorResultDto.status;
2736
+ };
2737
+ declare namespace HealthIndicatorResultDto {
2738
+ /**
2739
+ * Status of the health indicator.
2740
+ */
2741
+ enum status {
2742
+ UP = "up",
2743
+ DOWN = "down"
2744
+ }
2745
+ }
2746
+
2747
+ type HealthCheckResultDto = {
2748
+ status?: HealthCheckResultDto.status;
2749
+ info?: any | null;
2750
+ error?: any | null;
2751
+ details?: Record<string, HealthIndicatorResultDto>;
2752
+ };
2753
+ declare namespace HealthCheckResultDto {
2754
+ enum status {
2755
+ ERROR = "error",
2756
+ OK = "ok",
2757
+ SHUTTING_DOWN = "shutting_down"
2758
+ }
2759
+ }
2760
+
2230
2761
  declare class HealthCheckService {
2231
2762
  readonly httpRequest: BaseHttpRequest;
2232
2763
  constructor(httpRequest: BaseHttpRequest);
2233
2764
  /**
2234
2765
  * Get the health of the service
2235
- * @returns any The Health Check is successful
2766
+ * Check the health of the service. This checks the read and write health of the database and cache.
2767
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2236
2768
  * @throws ApiError
2237
2769
  */
2238
- dataHealthCheck(): CancelablePromise<{
2239
- status?: string;
2240
- info?: Record<string, Record<string, string>> | null;
2241
- error?: Record<string, Record<string, string>> | null;
2242
- details?: Record<string, Record<string, string>>;
2243
- }>;
2770
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2771
+ /**
2772
+ * Get the liveliness of the service (reads only)
2773
+ * Check the liveliness of the service (reads only).
2774
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2775
+ * @throws ApiError
2776
+ */
2777
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2778
+ }
2779
+
2780
+ type IcmDestinationTransaction = {
2781
+ txHash: string;
2782
+ timestamp: number;
2783
+ gasSpent: string;
2784
+ rewardRedeemer: string;
2785
+ delivererAddress: string;
2786
+ };
2787
+
2788
+ type IcmReceipt = {
2789
+ receivedMessageNonce: string;
2790
+ relayerRewardAddress: string;
2791
+ };
2792
+
2793
+ type IcmRewardDetails = {
2794
+ /**
2795
+ * A wallet or contract address in mixed-case checksum encoding.
2796
+ */
2797
+ address: string;
2798
+ /**
2799
+ * The contract name.
2800
+ */
2801
+ name: string;
2802
+ /**
2803
+ * The contract symbol.
2804
+ */
2805
+ symbol: string;
2806
+ /**
2807
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2808
+ */
2809
+ decimals: number;
2810
+ /**
2811
+ * The logo uri for the address.
2812
+ */
2813
+ logoUri?: string;
2814
+ ercType: IcmRewardDetails.ercType;
2815
+ /**
2816
+ * The token price, if available.
2817
+ */
2818
+ price?: Money;
2819
+ value: string;
2820
+ };
2821
+ declare namespace IcmRewardDetails {
2822
+ enum ercType {
2823
+ ERC_20 = "ERC-20"
2824
+ }
2825
+ }
2826
+
2827
+ type IcmSourceTransaction = {
2828
+ txHash: string;
2829
+ timestamp: number;
2830
+ gasSpent: string;
2831
+ };
2832
+
2833
+ type DeliveredIcmMessage = {
2834
+ messageId: string;
2835
+ icmContractAddress: string;
2836
+ sourceBlockchainId: string;
2837
+ destinationBlockchainId: string;
2838
+ sourceEvmChainId: string;
2839
+ destinationEvmChainId: string;
2840
+ messageNonce: string;
2841
+ from: string;
2842
+ to: string;
2843
+ data?: string;
2844
+ messageExecuted: boolean;
2845
+ receipts: Array<IcmReceipt>;
2846
+ receiptDelivered: boolean;
2847
+ rewardDetails: IcmRewardDetails;
2848
+ sourceTransaction: IcmSourceTransaction;
2849
+ destinationTransaction: IcmDestinationTransaction;
2850
+ status: DeliveredIcmMessage.status;
2851
+ };
2852
+ declare namespace DeliveredIcmMessage {
2853
+ enum status {
2854
+ DELIVERED = "delivered"
2855
+ }
2856
+ }
2857
+
2858
+ type DeliveredSourceNotIndexedIcmMessage = {
2859
+ messageId: string;
2860
+ icmContractAddress: string;
2861
+ sourceBlockchainId: string;
2862
+ destinationBlockchainId: string;
2863
+ sourceEvmChainId: string;
2864
+ destinationEvmChainId: string;
2865
+ messageNonce: string;
2866
+ from: string;
2867
+ to: string;
2868
+ data?: string;
2869
+ messageExecuted: boolean;
2870
+ receipts: Array<IcmReceipt>;
2871
+ receiptDelivered: boolean;
2872
+ rewardDetails: IcmRewardDetails;
2873
+ destinationTransaction: IcmDestinationTransaction;
2874
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2875
+ };
2876
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2877
+ enum status {
2878
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2879
+ }
2880
+ }
2881
+
2882
+ type PendingIcmMessage = {
2883
+ messageId: string;
2884
+ icmContractAddress: string;
2885
+ sourceBlockchainId: string;
2886
+ destinationBlockchainId: string;
2887
+ sourceEvmChainId: string;
2888
+ destinationEvmChainId: string;
2889
+ messageNonce: string;
2890
+ from: string;
2891
+ to: string;
2892
+ data?: string;
2893
+ messageExecuted: boolean;
2894
+ receipts: Array<IcmReceipt>;
2895
+ receiptDelivered: boolean;
2896
+ rewardDetails: IcmRewardDetails;
2897
+ sourceTransaction: IcmSourceTransaction;
2898
+ status: PendingIcmMessage.status;
2899
+ };
2900
+ declare namespace PendingIcmMessage {
2901
+ enum status {
2902
+ PENDING = "pending"
2903
+ }
2904
+ }
2905
+
2906
+ type ListIcmMessagesResponse = {
2907
+ /**
2908
+ * 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.
2909
+ */
2910
+ nextPageToken?: string;
2911
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2912
+ };
2913
+
2914
+ declare class InterchainMessagingService {
2915
+ readonly httpRequest: BaseHttpRequest;
2916
+ constructor(httpRequest: BaseHttpRequest);
2917
+ /**
2918
+ * Get an ICM message
2919
+ * Gets an ICM message by teleporter message ID.
2920
+ * @returns any Successful response
2921
+ * @throws ApiError
2922
+ */
2923
+ getIcmMessage({ messageId, }: {
2924
+ /**
2925
+ * The teleporter message ID of the ICM message.
2926
+ */
2927
+ messageId: string;
2928
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2929
+ /**
2930
+ * List ICM messages
2931
+ * Lists ICM messages. Ordered by timestamp in descending order.
2932
+ * @returns ListIcmMessagesResponse Successful response
2933
+ * @throws ApiError
2934
+ */
2935
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2936
+ /**
2937
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2938
+ */
2939
+ pageToken?: string;
2940
+ /**
2941
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2942
+ */
2943
+ pageSize?: number;
2944
+ /**
2945
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2946
+ */
2947
+ sourceBlockchainId?: string;
2948
+ /**
2949
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2950
+ */
2951
+ destinationBlockchainId?: string;
2952
+ /**
2953
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2954
+ */
2955
+ blockchainId?: string;
2956
+ /**
2957
+ * The address of the recipient of the ICM message.
2958
+ */
2959
+ to?: string;
2960
+ /**
2961
+ * The address of the sender of the ICM message.
2962
+ */
2963
+ from?: string;
2964
+ /**
2965
+ * Either mainnet or testnet/fuji.
2966
+ */
2967
+ network?: Network;
2968
+ }): CancelablePromise<ListIcmMessagesResponse>;
2969
+ /**
2970
+ * List ICM messages by address
2971
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2972
+ * @returns ListIcmMessagesResponse Successful response
2973
+ * @throws ApiError
2974
+ */
2975
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2976
+ /**
2977
+ * An EVM address.
2978
+ */
2979
+ address: string;
2980
+ /**
2981
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2982
+ */
2983
+ pageToken?: string;
2984
+ /**
2985
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2986
+ */
2987
+ pageSize?: number;
2988
+ /**
2989
+ * Either mainnet or testnet/fuji.
2990
+ */
2991
+ network?: Network;
2992
+ }): CancelablePromise<ListIcmMessagesResponse>;
2244
2993
  }
2245
2994
 
2246
2995
  type ListNftTokens = {
@@ -2262,7 +3011,7 @@ declare class NfTsService {
2262
3011
  */
2263
3012
  reindexNft({ chainId, address, tokenId, }: {
2264
3013
  /**
2265
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3014
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2266
3015
  */
2267
3016
  chainId: string;
2268
3017
  /**
@@ -2282,7 +3031,7 @@ declare class NfTsService {
2282
3031
  */
2283
3032
  listTokens({ chainId, address, pageToken, pageSize, }: {
2284
3033
  /**
2285
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3034
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2286
3035
  */
2287
3036
  chainId: string;
2288
3037
  /**
@@ -2306,7 +3055,7 @@ declare class NfTsService {
2306
3055
  */
2307
3056
  getTokenDetails({ chainId, address, tokenId, }: {
2308
3057
  /**
2309
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3058
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2310
3059
  */
2311
3060
  chainId: string;
2312
3061
  /**
@@ -2320,6 +3069,108 @@ declare class NfTsService {
2320
3069
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2321
3070
  }
2322
3071
 
3072
+ type AccessRequest = {
3073
+ /**
3074
+ * The email address to send the access token to
3075
+ */
3076
+ email: string;
3077
+ /**
3078
+ * The captcha to verify the user
3079
+ */
3080
+ captcha: string;
3081
+ };
3082
+
3083
+ type NotificationsResponse = {
3084
+ message: string;
3085
+ };
3086
+
3087
+ type SubscribeRequest = {
3088
+ /**
3089
+ * The access token to use for authentication
3090
+ */
3091
+ accessToken: string;
3092
+ /**
3093
+ * The node ID to subscribe to
3094
+ */
3095
+ nodeId: string;
3096
+ /**
3097
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3098
+ */
3099
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3100
+ };
3101
+
3102
+ type SubscriptionsRequest = {
3103
+ /**
3104
+ * The access token to use for authentication
3105
+ */
3106
+ accessToken: string;
3107
+ };
3108
+
3109
+ type SubscriptionsResponse = {
3110
+ /**
3111
+ * The email address of the user
3112
+ */
3113
+ email: string;
3114
+ /**
3115
+ * The subscriptions of the user
3116
+ */
3117
+ subscriptions: Record<string, {
3118
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3119
+ }>;
3120
+ };
3121
+
3122
+ type UnsubscribeRequest = {
3123
+ /**
3124
+ * The access token to use for authentication
3125
+ */
3126
+ accessToken: string;
3127
+ /**
3128
+ * The node ID to subscribe to
3129
+ */
3130
+ nodeId: string;
3131
+ };
3132
+
3133
+ declare class NotificationsService {
3134
+ readonly httpRequest: BaseHttpRequest;
3135
+ constructor(httpRequest: BaseHttpRequest);
3136
+ /**
3137
+ * Access Notifications
3138
+ * Access notifications.
3139
+ * @returns NotificationsResponse Successful response
3140
+ * @throws ApiError
3141
+ */
3142
+ access({ requestBody, }: {
3143
+ requestBody: AccessRequest;
3144
+ }): CancelablePromise<NotificationsResponse>;
3145
+ /**
3146
+ * Subscribe to Notifications
3147
+ * Subscribe to receive notifications.
3148
+ * @returns NotificationsResponse Successful response
3149
+ * @throws ApiError
3150
+ */
3151
+ subscribe({ requestBody, }: {
3152
+ requestBody: SubscribeRequest;
3153
+ }): CancelablePromise<NotificationsResponse>;
3154
+ /**
3155
+ * Unsubscribe from Notifications
3156
+ * Unsubscribe from receiving notifications.
3157
+ * @returns NotificationsResponse Successful response
3158
+ * @throws ApiError
3159
+ */
3160
+ unsubscribe({ requestBody, }: {
3161
+ requestBody: UnsubscribeRequest;
3162
+ }): CancelablePromise<NotificationsResponse>;
3163
+ /**
3164
+ * Get Subscriptions
3165
+ * Get subscriptions.
3166
+ * @returns SubscriptionsResponse Successful response
3167
+ * @throws ApiError
3168
+ */
3169
+ subscriptions({ requestBody, }: {
3170
+ requestBody: SubscriptionsRequest;
3171
+ }): CancelablePromise<SubscriptionsResponse>;
3172
+ }
3173
+
2323
3174
  type EvmNetworkOptions = {
2324
3175
  addresses: Array<string>;
2325
3176
  includeChains: Array<string>;
@@ -2331,16 +3182,16 @@ declare enum EVMOperationType {
2331
3182
 
2332
3183
  type CreateEvmTransactionExportRequest = {
2333
3184
  type: EVMOperationType;
2334
- firstDate: string;
2335
- lastDate: string;
3185
+ firstDate?: string;
3186
+ lastDate?: string;
2336
3187
  /**
2337
3188
  * @deprecated
2338
3189
  */
2339
- startDate: string;
3190
+ startDate?: string;
2340
3191
  /**
2341
3192
  * @deprecated
2342
3193
  */
2343
- endDate: string;
3194
+ endDate?: string;
2344
3195
  options: EvmNetworkOptions;
2345
3196
  };
2346
3197
 
@@ -2358,16 +3209,16 @@ type PrimaryNetworkOptions = {
2358
3209
 
2359
3210
  type CreatePrimaryNetworkTransactionExportRequest = {
2360
3211
  type: PrimaryNetworkOperationType;
2361
- firstDate: string;
2362
- lastDate: string;
3212
+ firstDate?: string;
3213
+ lastDate?: string;
2363
3214
  /**
2364
3215
  * @deprecated
2365
3216
  */
2366
- startDate: string;
3217
+ startDate?: string;
2367
3218
  /**
2368
3219
  * @deprecated
2369
3220
  */
2370
- endDate: string;
3221
+ endDate?: string;
2371
3222
  options: PrimaryNetworkOptions;
2372
3223
  };
2373
3224
 
@@ -2394,52 +3245,315 @@ declare enum OperationStatusCode {
2394
3245
  type TransactionExportMetadata = {
2395
3246
  code?: OperationStatusCode;
2396
3247
  /**
2397
- * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
3248
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
3249
+ */
3250
+ downloadUrl?: string;
3251
+ /**
3252
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
3253
+ */
3254
+ nextDate?: string;
3255
+ };
3256
+
3257
+ type OperationStatusResponse = {
3258
+ operationId: string;
3259
+ operationType: OperationType;
3260
+ operationStatus: OperationStatus;
3261
+ message?: string;
3262
+ metadata?: TransactionExportMetadata;
3263
+ createdAtTimestamp: number;
3264
+ updatedAtTimestamp: number;
3265
+ };
3266
+
3267
+ declare class OperationsService {
3268
+ readonly httpRequest: BaseHttpRequest;
3269
+ constructor(httpRequest: BaseHttpRequest);
3270
+ /**
3271
+ * Get operation
3272
+ * Gets operation details for the given operation id.
3273
+ * @returns OperationStatusResponse Successful response
3274
+ * @throws ApiError
3275
+ */
3276
+ getOperationResult({ operationId, }: {
3277
+ /**
3278
+ * UUID of given operation
3279
+ */
3280
+ operationId: string;
3281
+ }): CancelablePromise<OperationStatusResponse>;
3282
+ /**
3283
+ * Create transaction export operation
3284
+ * Trigger a transaction export operation with given parameters.
3285
+ *
3286
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
3287
+ * @returns OperationStatusResponse Successful response
3288
+ * @throws ApiError
3289
+ */
3290
+ postTransactionExportJob({ requestBody, }: {
3291
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
3292
+ }): CancelablePromise<OperationStatusResponse>;
3293
+ }
3294
+
3295
+ type EvmGenesisAllocDto = {
3296
+ /**
3297
+ * Account balance in hex format
3298
+ */
3299
+ balance?: string;
3300
+ /**
3301
+ * Contract bytecode in hex format
3302
+ */
3303
+ code?: string;
3304
+ /**
3305
+ * Contract storage slots
3306
+ */
3307
+ storage?: Record<string, string>;
3308
+ };
3309
+
3310
+ type EvmGenesisAllowListConfigDto = {
3311
+ /**
3312
+ * Block timestamp
3313
+ */
3314
+ blockTimestamp?: number;
3315
+ /**
3316
+ * Admin addresses
3317
+ */
3318
+ adminAddresses?: Array<string>;
3319
+ /**
3320
+ * Manager addresses
3321
+ */
3322
+ managerAddresses?: Array<string>;
3323
+ /**
3324
+ * Enabled addresses
3325
+ */
3326
+ enabledAddresses?: Array<string>;
3327
+ };
3328
+
3329
+ type EvmGenesisFeeConfigDto = {
3330
+ /**
3331
+ * Base fee change denominator
3332
+ */
3333
+ baseFeeChangeDenominator?: number;
3334
+ /**
3335
+ * Block gas cost step
3336
+ */
3337
+ blockGasCostStep?: number;
3338
+ /**
3339
+ * Gas limit
3340
+ */
3341
+ gasLimit?: number;
3342
+ /**
3343
+ * Maximum block gas cost
3344
+ */
3345
+ maxBlockGasCost?: number;
3346
+ /**
3347
+ * Minimum base fee
3348
+ */
3349
+ minBaseFee?: number;
3350
+ /**
3351
+ * Minimum block gas cost
3352
+ */
3353
+ minBlockGasCost?: number;
3354
+ /**
3355
+ * Target block rate
3356
+ */
3357
+ targetBlockRate?: number;
3358
+ /**
3359
+ * Target gas
3360
+ */
3361
+ targetGas?: number;
3362
+ };
3363
+
3364
+ type EvmGenesisWarpConfigDto = {
3365
+ /**
3366
+ * Block timestamp
3367
+ */
3368
+ blockTimestamp?: number;
3369
+ /**
3370
+ * Quorum numerator
3371
+ */
3372
+ quorumNumerator?: number;
3373
+ /**
3374
+ * Require primary network signers
3375
+ */
3376
+ requirePrimaryNetworkSigners?: boolean;
3377
+ };
3378
+
3379
+ type EvmGenesisConfigDto = {
3380
+ /**
3381
+ * Berlin block number
3382
+ */
3383
+ berlinBlock?: number;
3384
+ /**
3385
+ * Byzantium block number
3386
+ */
3387
+ byzantiumBlock?: number;
3388
+ /**
3389
+ * Chain ID
3390
+ */
3391
+ chainId?: number;
3392
+ /**
3393
+ * Constantinople block number
3394
+ */
3395
+ constantinopleBlock?: number;
3396
+ /**
3397
+ * EIP-150 block number
3398
+ */
3399
+ eip150Block?: number;
3400
+ /**
3401
+ * EIP-150 hash
3402
+ */
3403
+ eip150Hash?: string;
3404
+ /**
3405
+ * EIP-155 block number
3406
+ */
3407
+ eip155Block?: number;
3408
+ /**
3409
+ * EIP-158 block number
3410
+ */
3411
+ eip158Block?: number;
3412
+ /**
3413
+ * Fee configuration
3414
+ */
3415
+ feeConfig?: EvmGenesisFeeConfigDto;
3416
+ /**
3417
+ * Homestead block number
3418
+ */
3419
+ homesteadBlock?: number;
3420
+ /**
3421
+ * Istanbul block number
3422
+ */
3423
+ istanbulBlock?: number;
3424
+ /**
3425
+ * London block number
3426
+ */
3427
+ londonBlock?: number;
3428
+ /**
3429
+ * Muir Glacier block number
3430
+ */
3431
+ muirGlacierBlock?: number;
3432
+ /**
3433
+ * Petersburg block number
3434
+ */
3435
+ petersburgBlock?: number;
3436
+ /**
3437
+ * Subnet EVM timestamp
3438
+ */
3439
+ subnetEVMTimestamp?: number;
3440
+ /**
3441
+ * Allow fee recipients
3442
+ */
3443
+ allowFeeRecipients?: boolean;
3444
+ /**
3445
+ * Warp configuration
3446
+ */
3447
+ warpConfig?: EvmGenesisWarpConfigDto;
3448
+ /**
3449
+ * Transaction allow list configuration
3450
+ */
3451
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3452
+ /**
3453
+ * Contract deployer allow list configuration
3454
+ */
3455
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3456
+ /**
3457
+ * Contract native minter configuration
3458
+ */
3459
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3460
+ /**
3461
+ * Fee manager configuration
3462
+ */
3463
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3464
+ /**
3465
+ * Reward manager configuration
3466
+ */
3467
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3468
+ };
3469
+
3470
+ type EvmGenesisDto = {
3471
+ /**
3472
+ * Airdrop amount
3473
+ */
3474
+ airdropAmount?: number | null;
3475
+ /**
3476
+ * Airdrop hash
3477
+ */
3478
+ airdropHash?: string;
3479
+ /**
3480
+ * Allocation of accounts and balances
3481
+ */
3482
+ alloc?: Record<string, EvmGenesisAllocDto>;
3483
+ /**
3484
+ * Base fee per gas
3485
+ */
3486
+ baseFeePerGas?: number | null;
3487
+ /**
3488
+ * Blob gas used
3489
+ */
3490
+ blobGasUsed?: string | null;
3491
+ /**
3492
+ * Coinbase address
3493
+ */
3494
+ coinbase?: string;
3495
+ /**
3496
+ * Genesis configuration
3497
+ */
3498
+ config?: EvmGenesisConfigDto;
3499
+ /**
3500
+ * Difficulty
3501
+ */
3502
+ difficulty?: string;
3503
+ /**
3504
+ * Excess blob gas
3505
+ */
3506
+ excessBlobGas?: string | null;
3507
+ /**
3508
+ * Extra data
3509
+ */
3510
+ extraData?: string;
3511
+ /**
3512
+ * Gas limit
2398
3513
  */
2399
- downloadUrl?: string;
3514
+ gasLimit?: string;
2400
3515
  /**
2401
- * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
3516
+ * Gas used
2402
3517
  */
2403
- nextDate?: string;
2404
- };
2405
-
2406
- type OperationStatusResponse = {
2407
- operationId: string;
2408
- operationType: OperationType;
2409
- operationStatus: OperationStatus;
2410
- message?: string;
2411
- metadata: TransactionExportMetadata;
2412
- createdAtTimestamp: number;
2413
- updatedAtTimestamp: number;
3518
+ gasUsed?: string;
3519
+ /**
3520
+ * Mix hash
3521
+ */
3522
+ mixHash?: string;
3523
+ /**
3524
+ * Nonce
3525
+ */
3526
+ nonce?: string;
3527
+ /**
3528
+ * Block number
3529
+ */
3530
+ number?: string;
3531
+ /**
3532
+ * Parent hash
3533
+ */
3534
+ parentHash?: string;
3535
+ /**
3536
+ * Block timestamp
3537
+ */
3538
+ timestamp?: string;
2414
3539
  };
2415
3540
 
2416
- declare class OperationsService {
2417
- readonly httpRequest: BaseHttpRequest;
2418
- constructor(httpRequest: BaseHttpRequest);
3541
+ type Blockchain = {
3542
+ createBlockTimestamp: number;
3543
+ createBlockNumber: string;
3544
+ blockchainId: string;
3545
+ vmId: string;
3546
+ subnetId: string;
3547
+ blockchainName: string;
2419
3548
  /**
2420
- * Get operation
2421
- * Gets operation details for the given operation id.
2422
- * @returns OperationStatusResponse Successful response
2423
- * @throws ApiError
3549
+ * 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.
2424
3550
  */
2425
- getOperationResult({ operationId, }: {
2426
- /**
2427
- * UUID of given operation
2428
- */
2429
- operationId: string;
2430
- }): CancelablePromise<OperationStatusResponse>;
3551
+ evmChainId?: number;
2431
3552
  /**
2432
- * Create transaction export operation
2433
- * Trigger a transaction export operation with given parameters.
2434
- *
2435
- * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2436
- * @returns OperationStatusResponse Successful response
2437
- * @throws ApiError
3553
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
2438
3554
  */
2439
- postTransactionExportJob({ requestBody, }: {
2440
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2441
- }): CancelablePromise<OperationStatusResponse>;
2442
- }
3555
+ genesisData?: (EvmGenesisDto | string);
3556
+ };
2443
3557
 
2444
3558
  declare enum BlockchainIds {
2445
3559
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
@@ -2470,16 +3584,31 @@ type DelegatorsDetails = {
2470
3584
  };
2471
3585
 
2472
3586
  type StakingDistribution = {
3587
+ /**
3588
+ * AvalancheGo version for the validator node.
3589
+ */
2473
3590
  version: string;
3591
+ /**
3592
+ * The total amount staked by validators using this version.
3593
+ */
2474
3594
  amountStaked: string;
3595
+ /**
3596
+ * The number of validators using this version.
3597
+ */
2475
3598
  validatorCount: number;
2476
3599
  };
2477
3600
 
2478
3601
  type ValidatorsDetails = {
2479
3602
  validatorCount: number;
2480
3603
  totalAmountStaked: string;
3604
+ /**
3605
+ * Total potential rewards from currently active validations and delegations.
3606
+ */
2481
3607
  estimatedAnnualStakingReward: string;
2482
3608
  stakingDistributionByVersion: Array<StakingDistribution>;
3609
+ /**
3610
+ * Ratio of total active stake amount to the current supply.
3611
+ */
2483
3612
  stakingRatio: string;
2484
3613
  };
2485
3614
 
@@ -2488,15 +3617,6 @@ type GetNetworkDetailsResponse = {
2488
3617
  delegatorDetails: DelegatorsDetails;
2489
3618
  };
2490
3619
 
2491
- type Blockchain = {
2492
- createBlockTimestamp: number;
2493
- createBlockNumber: string;
2494
- blockchainId: string;
2495
- vmId: string;
2496
- subnetId: string;
2497
- blockchainName: string;
2498
- };
2499
-
2500
3620
  type ListBlockchainsResponse = {
2501
3621
  /**
2502
3622
  * 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.
@@ -2531,7 +3651,13 @@ type CompletedDelegatorDetails = {
2531
3651
  delegationFee: string;
2532
3652
  startTimestamp: number;
2533
3653
  endTimestamp: number;
3654
+ /**
3655
+ * Total rewards distributed for the successful delegation.
3656
+ */
2534
3657
  grossReward: string;
3658
+ /**
3659
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3660
+ */
2535
3661
  netReward: string;
2536
3662
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2537
3663
  };
@@ -2549,7 +3675,13 @@ type PendingDelegatorDetails = {
2549
3675
  delegationFee: string;
2550
3676
  startTimestamp: number;
2551
3677
  endTimestamp: number;
3678
+ /**
3679
+ * Estimated total rewards that will be distributed for the successful delegation.
3680
+ */
2552
3681
  estimatedGrossReward: string;
3682
+ /**
3683
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3684
+ */
2553
3685
  estimatedNetReward: string;
2554
3686
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2555
3687
  };
@@ -2570,8 +3702,63 @@ type ListDelegatorDetailsResponse = {
2570
3702
  delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
2571
3703
  };
2572
3704
 
2573
- type BlockchainInfo = {
3705
+ type BalanceOwner = {
3706
+ addresses: Array<string>;
3707
+ threshold: number;
3708
+ };
3709
+
3710
+ type L1ValidatorDetailsFull = {
3711
+ /**
3712
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
3713
+ */
3714
+ validationId: string;
3715
+ /**
3716
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3717
+ */
3718
+ validationIdHex: string;
3719
+ nodeId: string;
3720
+ subnetId: string;
3721
+ /**
3722
+ * 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
3723
+ */
3724
+ weight: number;
3725
+ /**
3726
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3727
+ */
3728
+ remainingBalance: number;
3729
+ /**
3730
+ * The timestamp of the transaction which created this L1 validator
3731
+ */
3732
+ creationTimestamp: number;
3733
+ blsCredentials: Record<string, any>;
3734
+ /**
3735
+ * The L1 validator owner's balance, returned after it's disabled or removed
3736
+ */
3737
+ remainingBalanceOwner: BalanceOwner;
3738
+ /**
3739
+ * Owner ddresses details which can disable or remove the L1 validator
3740
+ */
3741
+ deactivationOwner: BalanceOwner;
3742
+ };
3743
+
3744
+ type ListL1ValidatorsResponse = {
3745
+ /**
3746
+ * 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.
3747
+ */
3748
+ nextPageToken?: string;
3749
+ /**
3750
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
3751
+ */
3752
+ validators: Array<L1ValidatorDetailsFull>;
3753
+ /**
3754
+ * Block height at which the L1 validator's remaining balance is calculated
3755
+ */
3756
+ blockHeight: string;
3757
+ };
3758
+
3759
+ type L1ValidatorManagerDetails = {
2574
3760
  blockchainId: string;
3761
+ contractAddress: string;
2575
3762
  };
2576
3763
 
2577
3764
  type SubnetOwnershipInfo = {
@@ -2612,7 +3799,19 @@ type Subnet = {
2612
3799
  * Latest subnet owner details for this Subnet.
2613
3800
  */
2614
3801
  subnetOwnershipInfo: SubnetOwnershipInfo;
2615
- blockchains: Array<BlockchainInfo>;
3802
+ /**
3803
+ * Whether the subnet is an L1 or not.
3804
+ */
3805
+ isL1: boolean;
3806
+ /**
3807
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3808
+ */
3809
+ l1ConversionTransactionHash?: string;
3810
+ /**
3811
+ * L1 validator manager details.
3812
+ */
3813
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
3814
+ blockchains: Array<Blockchain>;
2616
3815
  };
2617
3816
 
2618
3817
  type ListSubnetsResponse = {
@@ -2628,6 +3827,29 @@ type BlsCredentials = {
2628
3827
  proofOfPossession: string;
2629
3828
  };
2630
3829
 
3830
+ type Geolocation = {
3831
+ /**
3832
+ * The name of the validator node.
3833
+ */
3834
+ city: string;
3835
+ /**
3836
+ * The city of the validator node.
3837
+ */
3838
+ country: string;
3839
+ /**
3840
+ * The country code of the validator node.
3841
+ */
3842
+ countryCode: string;
3843
+ /**
3844
+ * The latitude of the validator node.
3845
+ */
3846
+ latitude: number;
3847
+ /**
3848
+ * The longitude of the validator node.
3849
+ */
3850
+ longitude: number;
3851
+ };
3852
+
2631
3853
  type Rewards = {
2632
3854
  validationRewardAmount: string;
2633
3855
  delegationRewardAmount: string;
@@ -2659,6 +3881,9 @@ type ActiveValidatorDetails = {
2659
3881
  nodeId: string;
2660
3882
  subnetId: string;
2661
3883
  amountStaked: string;
3884
+ /**
3885
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3886
+ */
2662
3887
  delegationFee?: string;
2663
3888
  startTimestamp: number;
2664
3889
  endTimestamp: number;
@@ -2666,15 +3891,37 @@ type ActiveValidatorDetails = {
2666
3891
  * Present for AddPermissionlessValidatorTx
2667
3892
  */
2668
3893
  blsCredentials?: BlsCredentials;
3894
+ /**
3895
+ * The percentage of this validator's stake amount to the total active stake.
3896
+ */
2669
3897
  stakePercentage: number;
3898
+ /**
3899
+ * The number of delegators linked to the validator.
3900
+ */
2670
3901
  delegatorCount: number;
3902
+ /**
3903
+ * The total amount in nAVAX delegated to the validator.
3904
+ */
2671
3905
  amountDelegated?: string;
3906
+ /**
3907
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3908
+ */
2672
3909
  uptimePerformance: number;
2673
3910
  avalancheGoVersion?: string;
3911
+ /**
3912
+ * The amount of stake in nAVAX that can be delegated to this validator.
3913
+ */
2674
3914
  delegationCapacity?: string;
3915
+ /**
3916
+ * Estimated rewards for the validator if the validation is successful.
3917
+ */
2675
3918
  potentialRewards: Rewards;
2676
3919
  validationStatus: ActiveValidatorDetails.validationStatus;
2677
3920
  validatorHealth: ValidatorHealthDetails;
3921
+ /**
3922
+ * The geographical location of the validator node, if available.
3923
+ */
3924
+ geolocation: Geolocation | null;
2678
3925
  };
2679
3926
  declare namespace ActiveValidatorDetails {
2680
3927
  enum validationStatus {
@@ -2687,6 +3934,9 @@ type CompletedValidatorDetails = {
2687
3934
  nodeId: string;
2688
3935
  subnetId: string;
2689
3936
  amountStaked: string;
3937
+ /**
3938
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3939
+ */
2690
3940
  delegationFee?: string;
2691
3941
  startTimestamp: number;
2692
3942
  endTimestamp: number;
@@ -2710,6 +3960,9 @@ type PendingValidatorDetails = {
2710
3960
  nodeId: string;
2711
3961
  subnetId: string;
2712
3962
  amountStaked: string;
3963
+ /**
3964
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3965
+ */
2713
3966
  delegationFee?: string;
2714
3967
  startTimestamp: number;
2715
3968
  endTimestamp: number;
@@ -2730,6 +3983,9 @@ type RemovedValidatorDetails = {
2730
3983
  nodeId: string;
2731
3984
  subnetId: string;
2732
3985
  amountStaked: string;
3986
+ /**
3987
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3988
+ */
2733
3989
  delegationFee?: string;
2734
3990
  startTimestamp: number;
2735
3991
  endTimestamp: number;
@@ -2737,7 +3993,13 @@ type RemovedValidatorDetails = {
2737
3993
  * Present for AddPermissionlessValidatorTx
2738
3994
  */
2739
3995
  blsCredentials?: BlsCredentials;
3996
+ /**
3997
+ * The transaction hash that removed the permissioned subnet validator.
3998
+ */
2740
3999
  removeTxHash: string;
4000
+ /**
4001
+ * The timestamp of the transaction that removed the permissioned subnet validator.
4002
+ */
2741
4003
  removeTimestamp: number;
2742
4004
  validationStatus: RemovedValidatorDetails.validationStatus;
2743
4005
  };
@@ -2758,11 +4020,6 @@ type ListValidatorDetailsResponse = {
2758
4020
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2759
4021
  };
2760
4022
 
2761
- declare enum Network {
2762
- MAINNET = "mainnet",
2763
- FUJI = "fuji"
2764
- }
2765
-
2766
4023
  declare enum SortByOption {
2767
4024
  BLOCK_INDEX = "blockIndex",
2768
4025
  DELEGATION_CAPACITY = "delegationCapacity",
@@ -2840,7 +4097,7 @@ declare class PrimaryNetworkService {
2840
4097
  */
2841
4098
  blockchainId: XChainId;
2842
4099
  /**
2843
- * Either mainnet or a testnet.
4100
+ * Either mainnet or testnet/fuji.
2844
4101
  */
2845
4102
  network: Network;
2846
4103
  /**
@@ -2860,7 +4117,7 @@ declare class PrimaryNetworkService {
2860
4117
  */
2861
4118
  addresses: string;
2862
4119
  /**
2863
- * Either mainnet or a testnet.
4120
+ * Either mainnet or testnet/fuji.
2864
4121
  */
2865
4122
  network: Network;
2866
4123
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
@@ -2872,7 +4129,7 @@ declare class PrimaryNetworkService {
2872
4129
  */
2873
4130
  getNetworkDetails({ network, }: {
2874
4131
  /**
2875
- * Either mainnet or a testnet.
4132
+ * Either mainnet or testnet/fuji.
2876
4133
  */
2877
4134
  network: Network;
2878
4135
  }): CancelablePromise<GetNetworkDetailsResponse>;
@@ -2884,7 +4141,7 @@ declare class PrimaryNetworkService {
2884
4141
  */
2885
4142
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2886
4143
  /**
2887
- * Either mainnet or a testnet.
4144
+ * Either mainnet or testnet/fuji.
2888
4145
  */
2889
4146
  network: Network;
2890
4147
  /**
@@ -2892,7 +4149,7 @@ declare class PrimaryNetworkService {
2892
4149
  */
2893
4150
  pageToken?: string;
2894
4151
  /**
2895
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4152
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2896
4153
  */
2897
4154
  pageSize?: number;
2898
4155
  /**
@@ -2900,6 +4157,22 @@ declare class PrimaryNetworkService {
2900
4157
  */
2901
4158
  sortOrder?: SortOrder;
2902
4159
  }): CancelablePromise<ListBlockchainsResponse>;
4160
+ /**
4161
+ * Get blockchain details by ID
4162
+ * Get details of the blockchain registered on the network.
4163
+ * @returns Blockchain Successful response
4164
+ * @throws ApiError
4165
+ */
4166
+ getBlockchainById({ blockchainId, network, }: {
4167
+ /**
4168
+ * The blockchain ID of the blockchain to retrieve.
4169
+ */
4170
+ blockchainId: string;
4171
+ /**
4172
+ * Either mainnet or testnet/fuji.
4173
+ */
4174
+ network: Network;
4175
+ }): CancelablePromise<Blockchain>;
2903
4176
  /**
2904
4177
  * List subnets
2905
4178
  * Lists all subnets registered on the network.
@@ -2908,7 +4181,7 @@ declare class PrimaryNetworkService {
2908
4181
  */
2909
4182
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2910
4183
  /**
2911
- * Either mainnet or a testnet.
4184
+ * Either mainnet or testnet/fuji.
2912
4185
  */
2913
4186
  network: Network;
2914
4187
  /**
@@ -2916,7 +4189,7 @@ declare class PrimaryNetworkService {
2916
4189
  */
2917
4190
  pageToken?: string;
2918
4191
  /**
2919
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4192
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
2920
4193
  */
2921
4194
  pageSize?: number;
2922
4195
  /**
@@ -2932,7 +4205,7 @@ declare class PrimaryNetworkService {
2932
4205
  */
2933
4206
  getSubnetById({ network, subnetId, }: {
2934
4207
  /**
2935
- * Either mainnet or a testnet.
4208
+ * Either mainnet or testnet/fuji.
2936
4209
  */
2937
4210
  network: Network;
2938
4211
  /**
@@ -2942,13 +4215,13 @@ declare class PrimaryNetworkService {
2942
4215
  }): CancelablePromise<Subnet>;
2943
4216
  /**
2944
4217
  * List validators
2945
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
4218
+ * 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.
2946
4219
  * @returns ListValidatorDetailsResponse Successful response
2947
4220
  * @throws ApiError
2948
4221
  */
2949
4222
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2950
4223
  /**
2951
- * Either mainnet or a testnet.
4224
+ * Either mainnet or testnet/fuji.
2952
4225
  */
2953
4226
  network: Network;
2954
4227
  /**
@@ -2960,7 +4233,7 @@ declare class PrimaryNetworkService {
2960
4233
  */
2961
4234
  pageSize?: number;
2962
4235
  /**
2963
- * A comma separated list of node ids to filter by.
4236
+ * A comma separated list of node ids to filter by. Supports substring matching.
2964
4237
  */
2965
4238
  nodeIds?: string;
2966
4239
  /**
@@ -3022,7 +4295,7 @@ declare class PrimaryNetworkService {
3022
4295
  */
3023
4296
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
3024
4297
  /**
3025
- * Either mainnet or a testnet.
4298
+ * Either mainnet or testnet/fuji.
3026
4299
  */
3027
4300
  network: Network;
3028
4301
  /**
@@ -3054,7 +4327,7 @@ declare class PrimaryNetworkService {
3054
4327
  */
3055
4328
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
3056
4329
  /**
3057
- * Either mainnet or a testnet.
4330
+ * Either mainnet or testnet/fuji.
3058
4331
  */
3059
4332
  network: Network;
3060
4333
  /**
@@ -3082,6 +4355,39 @@ declare class PrimaryNetworkService {
3082
4355
  */
3083
4356
  nodeIds?: string;
3084
4357
  }): CancelablePromise<ListDelegatorDetailsResponse>;
4358
+ /**
4359
+ * List L1 validators
4360
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4361
+ * @returns ListL1ValidatorsResponse Successful response
4362
+ * @throws ApiError
4363
+ */
4364
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
4365
+ /**
4366
+ * Either mainnet or testnet/fuji.
4367
+ */
4368
+ network: Network;
4369
+ /**
4370
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4371
+ */
4372
+ pageToken?: string;
4373
+ /**
4374
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4375
+ */
4376
+ pageSize?: number;
4377
+ /**
4378
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
4379
+ */
4380
+ l1ValidationId?: string;
4381
+ includeInactiveL1Validators?: boolean;
4382
+ /**
4383
+ * A valid node ID in format 'NodeID-HASH'.
4384
+ */
4385
+ nodeId?: string;
4386
+ /**
4387
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
4388
+ */
4389
+ subnetId?: any;
4390
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3085
4391
  }
3086
4392
 
3087
4393
  declare enum BlockchainId {
@@ -3126,11 +4432,6 @@ type CChainAtomicBalances = {
3126
4432
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3127
4433
  };
3128
4434
 
3129
- declare enum PrimaryNetwork {
3130
- MAINNET = "mainnet",
3131
- FUJI = "fuji"
3132
- }
3133
-
3134
4435
  declare enum PrimaryNetworkChainName {
3135
4436
  P_CHAIN = "p-chain",
3136
4437
  X_CHAIN = "x-chain",
@@ -3139,7 +4440,7 @@ declare enum PrimaryNetworkChainName {
3139
4440
 
3140
4441
  type PrimaryNetworkChainInfo = {
3141
4442
  chainName: PrimaryNetworkChainName;
3142
- network: PrimaryNetwork;
4443
+ network: Network;
3143
4444
  };
3144
4445
 
3145
4446
  type ListCChainAtomicBalancesResponse = {
@@ -3300,7 +4601,7 @@ declare class PrimaryNetworkBalancesService {
3300
4601
  */
3301
4602
  blockchainId: BlockchainId;
3302
4603
  /**
3303
- * Either mainnet or a testnet.
4604
+ * Either mainnet or testnet/fuji.
3304
4605
  */
3305
4606
  network: Network;
3306
4607
  /**
@@ -3331,6 +4632,8 @@ type GetPrimaryNetworkBlockResponse = {
3331
4632
  txCount: number;
3332
4633
  transactions: Array<string>;
3333
4634
  blockSizeBytes: number;
4635
+ l1ValidatorsAccruedFees?: number;
4636
+ activeL1Validators?: number;
3334
4637
  currentSupply?: string;
3335
4638
  proposerDetails?: ProposerDetails;
3336
4639
  };
@@ -3344,6 +4647,8 @@ type PrimaryNetworkBlock = {
3344
4647
  txCount: number;
3345
4648
  transactions: Array<string>;
3346
4649
  blockSizeBytes: number;
4650
+ l1ValidatorsAccruedFees?: number;
4651
+ activeL1Validators?: number;
3347
4652
  currentSupply?: string;
3348
4653
  proposerDetails?: ProposerDetails;
3349
4654
  };
@@ -3372,7 +4677,7 @@ declare class PrimaryNetworkBlocksService {
3372
4677
  */
3373
4678
  blockchainId: BlockchainId;
3374
4679
  /**
3375
- * Either mainnet or a testnet.
4680
+ * Either mainnet or testnet/fuji.
3376
4681
  */
3377
4682
  network: Network;
3378
4683
  /**
@@ -3386,19 +4691,27 @@ declare class PrimaryNetworkBlocksService {
3386
4691
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3387
4692
  * @throws ApiError
3388
4693
  */
3389
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4694
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3390
4695
  /**
3391
4696
  * A primary network blockchain id or alias.
3392
4697
  */
3393
4698
  blockchainId: BlockchainId;
3394
4699
  /**
3395
- * Either mainnet or a testnet.
4700
+ * Either mainnet or testnet/fuji.
3396
4701
  */
3397
4702
  network: Network;
3398
4703
  /**
3399
4704
  * A primary network (P or X chain) nodeId.
3400
4705
  */
3401
4706
  nodeId: string;
4707
+ /**
4708
+ * Query param for retrieving items after a specific timestamp.
4709
+ */
4710
+ startTimestamp?: number;
4711
+ /**
4712
+ * Query param for retrieving items before a specific timestamp.
4713
+ */
4714
+ endTimestamp?: number;
3402
4715
  /**
3403
4716
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3404
4717
  */
@@ -3414,15 +4727,23 @@ declare class PrimaryNetworkBlocksService {
3414
4727
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3415
4728
  * @throws ApiError
3416
4729
  */
3417
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4730
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3418
4731
  /**
3419
4732
  * A primary network blockchain id or alias.
3420
4733
  */
3421
4734
  blockchainId: BlockchainId;
3422
4735
  /**
3423
- * Either mainnet or a testnet.
4736
+ * Either mainnet or testnet/fuji.
3424
4737
  */
3425
4738
  network: Network;
4739
+ /**
4740
+ * Query param for retrieving items after a specific timestamp.
4741
+ */
4742
+ startTimestamp?: number;
4743
+ /**
4744
+ * Query param for retrieving items before a specific timestamp.
4745
+ */
4746
+ endTimestamp?: number;
3426
4747
  /**
3427
4748
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3428
4749
  */
@@ -3554,7 +4875,7 @@ declare class PrimaryNetworkRewardsService {
3554
4875
  */
3555
4876
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
3556
4877
  /**
3557
- * Either mainnet or a testnet.
4878
+ * Either mainnet or testnet/fuji.
3558
4879
  */
3559
4880
  network: Network;
3560
4881
  /**
@@ -3586,7 +4907,7 @@ declare class PrimaryNetworkRewardsService {
3586
4907
  */
3587
4908
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
3588
4909
  /**
3589
- * Either mainnet or a testnet.
4910
+ * Either mainnet or testnet/fuji.
3590
4911
  */
3591
4912
  network: Network;
3592
4913
  /**
@@ -3664,6 +4985,10 @@ type Utxo = {
3664
4985
  * UTXO ID for this output.
3665
4986
  */
3666
4987
  utxoId: string;
4988
+ /**
4989
+ * The bytes of the UTXO
4990
+ */
4991
+ utxoBytes?: string;
3667
4992
  /**
3668
4993
  * Unix timestamp in seconds at which this output was consumed.
3669
4994
  */
@@ -3808,28 +5133,63 @@ type CChainImportTransaction = {
3808
5133
  */
3809
5134
  destinationChain: string;
3810
5135
  /**
3811
- * Type of transaction.
5136
+ * Type of transaction.
5137
+ */
5138
+ txType: CChainImportTransaction.txType;
5139
+ evmOutputs: Array<EVMOutput>;
5140
+ consumedUtxos: Array<Utxo>;
5141
+ };
5142
+ declare namespace CChainImportTransaction {
5143
+ /**
5144
+ * Type of transaction.
5145
+ */
5146
+ enum txType {
5147
+ IMPORT_TX = "ImportTx"
5148
+ }
5149
+ }
5150
+
5151
+ type ListCChainAtomicTransactionsResponse = {
5152
+ /**
5153
+ * 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.
5154
+ */
5155
+ nextPageToken?: string;
5156
+ transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
5157
+ chainInfo: PrimaryNetworkChainInfo;
5158
+ };
5159
+
5160
+ type BlockchainInfo = {
5161
+ chainName: string;
5162
+ vmId: string;
5163
+ /**
5164
+ * 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
5165
+ */
5166
+ genesisData?: (EvmGenesisDto | string);
5167
+ };
5168
+
5169
+ type L1ValidatorDetailsTransaction = {
5170
+ /**
5171
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
5172
+ */
5173
+ validationId: string;
5174
+ /**
5175
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
5176
+ */
5177
+ validationIdHex: string;
5178
+ nodeId: string;
5179
+ subnetId: string;
5180
+ /**
5181
+ * 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
3812
5182
  */
3813
- txType: CChainImportTransaction.txType;
3814
- evmOutputs: Array<EVMOutput>;
3815
- consumedUtxos: Array<Utxo>;
3816
- };
3817
- declare namespace CChainImportTransaction {
5183
+ weight: number;
3818
5184
  /**
3819
- * Type of transaction.
5185
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
3820
5186
  */
3821
- enum txType {
3822
- IMPORT_TX = "ImportTx"
3823
- }
3824
- }
3825
-
3826
- type ListCChainAtomicTransactionsResponse = {
5187
+ remainingBalance: number;
3827
5188
  /**
3828
- * 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.
5189
+ * 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
3829
5190
  */
3830
- nextPageToken?: string;
3831
- transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
3832
- chainInfo: PrimaryNetworkChainInfo;
5191
+ balanceChange?: number;
5192
+ blsCredentials?: Record<string, any>;
3833
5193
  };
3834
5194
 
3835
5195
  declare enum PChainTransactionType {
@@ -3848,9 +5208,17 @@ declare enum PChainTransactionType {
3848
5208
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3849
5209
  BASE_TX = "BaseTx",
3850
5210
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5211
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5212
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5213
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5214
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5215
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
3851
5216
  UNKNOWN = "UNKNOWN"
3852
5217
  }
3853
5218
 
5219
+ /**
5220
+ * Indicates whether the UTXO is staked or transferable
5221
+ */
3854
5222
  declare enum UtxoType {
3855
5223
  STAKE = "STAKE",
3856
5224
  TRANSFER = "TRANSFER"
@@ -3878,6 +5246,10 @@ type PChainUtxo = {
3878
5246
  * UTXO ID for this output.
3879
5247
  */
3880
5248
  utxoId: string;
5249
+ /**
5250
+ * The bytes of the UTXO
5251
+ */
5252
+ utxoBytes?: string;
3881
5253
  /**
3882
5254
  * @deprecated
3883
5255
  */
@@ -3888,16 +5260,43 @@ type PChainUtxo = {
3888
5260
  assetId: string;
3889
5261
  blockNumber: string;
3890
5262
  blockTimestamp: number;
5263
+ /**
5264
+ * Block height in which the transaction consuming this UTXO was included
5265
+ */
3891
5266
  consumingBlockNumber?: string;
5267
+ /**
5268
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
5269
+ */
3892
5270
  consumingBlockTimestamp?: number;
5271
+ /**
5272
+ * Timestamp in seconds after which this UTXO can be consumed
5273
+ */
3893
5274
  platformLocktime?: number;
5275
+ /**
5276
+ * The index of the UTXO in the transaction
5277
+ */
3894
5278
  outputIndex: number;
3895
5279
  rewardType?: RewardType;
5280
+ /**
5281
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
5282
+ */
3896
5283
  stakeableLocktime?: number;
3897
5284
  staked?: boolean;
5285
+ /**
5286
+ * The minimum number of signatures required to spend this UTXO
5287
+ */
3898
5288
  threshold?: number;
5289
+ /**
5290
+ * The hash of the transaction that created this UTXO
5291
+ */
3899
5292
  txHash: string;
5293
+ /**
5294
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
5295
+ */
3900
5296
  utxoEndTimestamp?: number;
5297
+ /**
5298
+ * Timestamp in seconds at which the staked UTXO was locked.
5299
+ */
3901
5300
  utxoStartTimestamp?: number;
3902
5301
  utxoType: UtxoType;
3903
5302
  };
@@ -3912,9 +5311,18 @@ type PChainTransaction = {
3912
5311
  * The block finality timestamp.
3913
5312
  */
3914
5313
  blockTimestamp: number;
5314
+ /**
5315
+ * The height of the block in which the transaction was included
5316
+ */
3915
5317
  blockNumber: string;
3916
5318
  blockHash: string;
5319
+ /**
5320
+ * The consumed UTXOs of the transaction
5321
+ */
3917
5322
  consumedUtxos: Array<PChainUtxo>;
5323
+ /**
5324
+ * The newly created UTXOs of the transaction
5325
+ */
3918
5326
  emittedUtxos: Array<PChainUtxo>;
3919
5327
  /**
3920
5328
  * Source chain for an atomic transaction.
@@ -3925,17 +5333,21 @@ type PChainTransaction = {
3925
5333
  */
3926
5334
  destinationChain?: string;
3927
5335
  /**
3928
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5336
+ * 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
3929
5337
  */
3930
5338
  value: Array<AssetAmount>;
3931
5339
  /**
3932
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5340
+ * 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
3933
5341
  */
3934
5342
  amountBurned: Array<AssetAmount>;
3935
5343
  /**
3936
5344
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3937
5345
  */
3938
5346
  amountStaked: Array<AssetAmount>;
5347
+ /**
5348
+ * 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.
5349
+ */
5350
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
3939
5351
  /**
3940
5352
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3941
5353
  */
@@ -3945,11 +5357,11 @@ type PChainTransaction = {
3945
5357
  */
3946
5358
  endTimestamp?: number;
3947
5359
  /**
3948
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5360
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
3949
5361
  */
3950
5362
  delegationFeePercent?: string;
3951
5363
  /**
3952
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5364
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3953
5365
  */
3954
5366
  nodeId?: string;
3955
5367
  /**
@@ -3957,14 +5369,25 @@ type PChainTransaction = {
3957
5369
  */
3958
5370
  subnetId?: string;
3959
5371
  /**
3960
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5372
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
5373
+ */
5374
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
5375
+ /**
5376
+ * 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
5377
+ */
5378
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
5379
+ /**
5380
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3961
5381
  */
3962
5382
  estimatedReward?: string;
5383
+ /**
5384
+ * Reward transaction hash for the completed validations or delegations
5385
+ */
3963
5386
  rewardTxHash?: string;
3964
5387
  rewardAddresses?: Array<string>;
3965
5388
  memo?: string;
3966
5389
  /**
3967
- * Present for RewardValidatorTx
5390
+ * Staking transaction corresponding to the RewardValidatorTx
3968
5391
  */
3969
5392
  stakingTxHash?: string;
3970
5393
  /**
@@ -3972,9 +5395,13 @@ type PChainTransaction = {
3972
5395
  */
3973
5396
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3974
5397
  /**
3975
- * Present for AddPermissionlessValidatorTx
5398
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
3976
5399
  */
3977
5400
  blsCredentials?: BlsCredentials;
5401
+ /**
5402
+ * Details of the blockchain that was created in the CreateChainTx
5403
+ */
5404
+ blockchainInfo?: BlockchainInfo;
3978
5405
  };
3979
5406
 
3980
5407
  type ListPChainTransactionsResponse = {
@@ -4157,6 +5584,11 @@ declare enum PrimaryNetworkTxType {
4157
5584
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4158
5585
  BASE_TX = "BaseTx",
4159
5586
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
5587
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5588
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5589
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5590
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5591
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4160
5592
  UNKNOWN = "UNKNOWN",
4161
5593
  CREATE_ASSET_TX = "CreateAssetTx",
4162
5594
  OPERATION_TX = "OperationTx"
@@ -4177,7 +5609,7 @@ declare class PrimaryNetworkTransactionsService {
4177
5609
  */
4178
5610
  blockchainId: BlockchainId;
4179
5611
  /**
4180
- * Either mainnet or a testnet.
5612
+ * Either mainnet or testnet/fuji.
4181
5613
  */
4182
5614
  network: Network;
4183
5615
  /**
@@ -4191,23 +5623,26 @@ declare class PrimaryNetworkTransactionsService {
4191
5623
  *
4192
5624
  * 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.
4193
5625
  *
5626
+ * 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.
5627
+ *
4194
5628
  * 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.
4195
5629
  * @returns any Successful response
4196
5630
  * @throws ApiError
4197
5631
  */
4198
- listLatestPrimaryNetworkTransactions({ addresses, blockchainId, network, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4199
- /**
4200
- * 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.
4201
- */
4202
- addresses: string;
5632
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4203
5633
  /**
4204
5634
  * A primary network blockchain id or alias.
4205
5635
  */
4206
5636
  blockchainId: BlockchainId;
4207
5637
  /**
4208
- * Either mainnet or a testnet.
5638
+ * Either mainnet or testnet/fuji.
4209
5639
  */
4210
5640
  network: Network;
5641
+ /**
5642
+ * 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.
5643
+ */
5644
+ addresses?: string;
5645
+ l1ValidationId?: string;
4211
5646
  /**
4212
5647
  * Query param for filtering items based on transaction types.
4213
5648
  */
@@ -4245,7 +5680,7 @@ declare class PrimaryNetworkTransactionsService {
4245
5680
  */
4246
5681
  blockchainId: PChainId;
4247
5682
  /**
4248
- * Either mainnet or a testnet.
5683
+ * Either mainnet or testnet/fuji.
4249
5684
  */
4250
5685
  network: Network;
4251
5686
  /**
@@ -4289,7 +5724,7 @@ declare class PrimaryNetworkTransactionsService {
4289
5724
  */
4290
5725
  blockchainId: XChainId;
4291
5726
  /**
4292
- * Either mainnet or a testnet.
5727
+ * Either mainnet or testnet/fuji.
4293
5728
  */
4294
5729
  network: Network;
4295
5730
  /**
@@ -4337,6 +5772,18 @@ type ListUtxosResponse = {
4337
5772
  chainInfo: PrimaryNetworkChainInfo;
4338
5773
  };
4339
5774
 
5775
+ type PrimaryNetworkAddressesBodyDto = {
5776
+ /**
5777
+ * Comma-separated list of primary network addresses
5778
+ */
5779
+ addresses: string;
5780
+ };
5781
+
5782
+ declare enum UtxosSortByOption {
5783
+ TIMESTAMP = "timestamp",
5784
+ AMOUNT = "amount"
5785
+ }
5786
+
4340
5787
  declare class PrimaryNetworkUtxOsService {
4341
5788
  readonly httpRequest: BaseHttpRequest;
4342
5789
  constructor(httpRequest: BaseHttpRequest);
@@ -4346,13 +5793,13 @@ declare class PrimaryNetworkUtxOsService {
4346
5793
  * @returns any Successful response
4347
5794
  * @throws ApiError
4348
5795
  */
4349
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5796
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
4350
5797
  /**
4351
5798
  * A primary network blockchain id or alias.
4352
5799
  */
4353
5800
  blockchainId: BlockchainId;
4354
5801
  /**
4355
- * Either mainnet or a testnet.
5802
+ * Either mainnet or testnet/fuji.
4356
5803
  */
4357
5804
  network: Network;
4358
5805
  /**
@@ -4371,10 +5818,63 @@ declare class PrimaryNetworkUtxOsService {
4371
5818
  * Asset ID for any asset (only applicable X-Chain)
4372
5819
  */
4373
5820
  assetId?: string;
5821
+ /**
5822
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5823
+ */
5824
+ minUtxoAmount?: number;
5825
+ /**
5826
+ * Boolean filter to include spent UTXOs.
5827
+ */
5828
+ includeSpent?: boolean;
5829
+ /**
5830
+ * Which property to sort by, in conjunction with sortOrder.
5831
+ */
5832
+ sortBy?: UtxosSortByOption;
5833
+ /**
5834
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
5835
+ */
5836
+ sortOrder?: SortOrder;
5837
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5838
+ /**
5839
+ * List UTXOs v2 - Supports querying for more addresses
5840
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5841
+ * @returns any Successful response
5842
+ * @throws ApiError
5843
+ */
5844
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5845
+ /**
5846
+ * A primary network blockchain id or alias.
5847
+ */
5848
+ blockchainId: BlockchainId;
5849
+ /**
5850
+ * Either mainnet or testnet/fuji.
5851
+ */
5852
+ network: Network;
5853
+ requestBody: PrimaryNetworkAddressesBodyDto;
5854
+ /**
5855
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5856
+ */
5857
+ pageToken?: string;
5858
+ /**
5859
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5860
+ */
5861
+ pageSize?: number;
5862
+ /**
5863
+ * Asset ID for any asset (only applicable X-Chain)
5864
+ */
5865
+ assetId?: string;
5866
+ /**
5867
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5868
+ */
5869
+ minUtxoAmount?: number;
4374
5870
  /**
4375
5871
  * Boolean filter to include spent UTXOs.
4376
5872
  */
4377
5873
  includeSpent?: boolean;
5874
+ /**
5875
+ * Which property to sort by, in conjunction with sortOrder.
5876
+ */
5877
+ sortBy?: UtxosSortByOption;
4378
5878
  /**
4379
5879
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
4380
5880
  */
@@ -4417,7 +5917,7 @@ declare class PrimaryNetworkVerticesService {
4417
5917
  */
4418
5918
  blockchainId: XChainId;
4419
5919
  /**
4420
- * Either mainnet or a testnet.
5920
+ * Either mainnet or testnet/fuji.
4421
5921
  */
4422
5922
  network: Network;
4423
5923
  /**
@@ -4445,7 +5945,7 @@ declare class PrimaryNetworkVerticesService {
4445
5945
  */
4446
5946
  blockchainId: XChainId;
4447
5947
  /**
4448
- * Either mainnet or a testnet.
5948
+ * Either mainnet or testnet/fuji.
4449
5949
  */
4450
5950
  network: Network;
4451
5951
  }): CancelablePromise<XChainVertex>;
@@ -4465,7 +5965,7 @@ declare class PrimaryNetworkVerticesService {
4465
5965
  */
4466
5966
  blockchainId: XChainId;
4467
5967
  /**
4468
- * Either mainnet or a testnet.
5968
+ * Either mainnet or testnet/fuji.
4469
5969
  */
4470
5970
  network: Network;
4471
5971
  /**
@@ -4483,47 +5983,69 @@ declare class PrimaryNetworkVerticesService {
4483
5983
  }): CancelablePromise<ListXChainVerticesResponse>;
4484
5984
  }
4485
5985
 
4486
- type RpcErrorDto = {
4487
- code: number;
4488
- message: string;
4489
- data?: Record<string, any>;
4490
- };
4491
-
4492
- type RpcErrorResponseDto = {
4493
- jsonrpc: string;
4494
- id?: (string | number);
4495
- error: RpcErrorDto;
5986
+ type SignatureAggregationResponse = {
5987
+ signedMessage: string;
4496
5988
  };
4497
5989
 
4498
- type RpcRequestBodyDto = {
4499
- method: string;
4500
- params?: Record<string, any>;
4501
- id?: (string | number);
4502
- jsonrpc?: string;
4503
- };
4504
-
4505
- type RpcSuccessResponseDto = {
4506
- jsonrpc: string;
4507
- id?: (string | number);
4508
- result: Record<string, any>;
5990
+ type SignatureAggregatorRequest = {
5991
+ /**
5992
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
5993
+ */
5994
+ message?: string;
5995
+ /**
5996
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
5997
+ */
5998
+ justification?: string;
5999
+ /**
6000
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
6001
+ */
6002
+ signingSubnetId?: string;
6003
+ /**
6004
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
6005
+ */
6006
+ quorumPercentage?: number;
6007
+ /**
6008
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
6009
+ */
6010
+ quorumPercentageBuffer?: number;
6011
+ /**
6012
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
6013
+ */
6014
+ pChainHeight?: number;
4509
6015
  };
4510
6016
 
4511
- declare class RpcService {
6017
+ declare class SignatureAggregatorService {
4512
6018
  readonly httpRequest: BaseHttpRequest;
4513
6019
  constructor(httpRequest: BaseHttpRequest);
4514
6020
  /**
4515
- * Calls JSON-RPC method
4516
- * Calls JSON-RPC method.
4517
- * @returns any Successful response
6021
+ * Aggregate Signatures
6022
+ * Aggregates Signatures for a Warp message from Subnet validators.
6023
+ * @returns SignatureAggregationResponse Successful response
4518
6024
  * @throws ApiError
4519
6025
  */
4520
- rpc({ chainId, requestBody, }: {
6026
+ aggregateSignatures({ network, requestBody, }: {
4521
6027
  /**
4522
- * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
6028
+ * Either mainnet or testnet/fuji.
4523
6029
  */
4524
- chainId: string;
4525
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4526
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
6030
+ network: Network;
6031
+ requestBody: SignatureAggregatorRequest;
6032
+ }): CancelablePromise<SignatureAggregationResponse>;
6033
+ /**
6034
+ * Get Aggregated Signatures
6035
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
6036
+ * @returns SignatureAggregationResponse Successful response
6037
+ * @throws ApiError
6038
+ */
6039
+ getAggregatedSignatures({ network, txHash, }: {
6040
+ /**
6041
+ * Either mainnet or testnet/fuji.
6042
+ */
6043
+ network: Network;
6044
+ /**
6045
+ * A primary network (P or X chain) transaction hash.
6046
+ */
6047
+ txHash: string;
6048
+ }): CancelablePromise<SignatureAggregationResponse>;
4527
6049
  }
4528
6050
 
4529
6051
  type TeleporterDestinationTransaction = {
@@ -4657,15 +6179,17 @@ type ListTeleporterMessagesResponse = {
4657
6179
  * 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.
4658
6180
  */
4659
6181
  nextPageToken?: string;
4660
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
6182
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4661
6183
  };
4662
6184
 
4663
6185
  declare class TeleporterService {
4664
6186
  readonly httpRequest: BaseHttpRequest;
4665
6187
  constructor(httpRequest: BaseHttpRequest);
4666
6188
  /**
4667
- * Get a teleporter message
4668
- * Gets a teleporter message by message ID.
6189
+ * @deprecated
6190
+ * **[Deprecated]** Gets a teleporter message by message ID.
6191
+ *
6192
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4669
6193
  * @returns any Successful response
4670
6194
  * @throws ApiError
4671
6195
  */
@@ -4676,8 +6200,10 @@ declare class TeleporterService {
4676
6200
  messageId: string;
4677
6201
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4678
6202
  /**
4679
- * List teleporter messages
4680
- * Lists teleporter messages. Ordered by timestamp in descending order.
6203
+ * @deprecated
6204
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
6205
+ *
6206
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4681
6207
  * @returns ListTeleporterMessagesResponse Successful response
4682
6208
  * @throws ApiError
4683
6209
  */
@@ -4711,13 +6237,15 @@ declare class TeleporterService {
4711
6237
  */
4712
6238
  from?: string;
4713
6239
  /**
4714
- * mainnet or testnet.
6240
+ * Either mainnet or testnet/fuji.
4715
6241
  */
4716
- network?: NetworkType;
6242
+ network?: Network;
4717
6243
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4718
6244
  /**
4719
- * List teleporter messages by address
4720
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
6245
+ * @deprecated
6246
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
6247
+ *
6248
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4721
6249
  * @returns ListTeleporterMessagesResponse Successful response
4722
6250
  * @throws ApiError
4723
6251
  */
@@ -4735,9 +6263,9 @@ declare class TeleporterService {
4735
6263
  */
4736
6264
  pageSize?: number;
4737
6265
  /**
4738
- * mainnet or testnet.
6266
+ * Either mainnet or testnet/fuji.
4739
6267
  */
4740
- network?: NetworkType;
6268
+ network?: Network;
4741
6269
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4742
6270
  }
4743
6271
 
@@ -4750,68 +6278,212 @@ type AddressesChangeRequest = {
4750
6278
 
4751
6279
  type AddressActivityMetadata = {
4752
6280
  /**
4753
- * Ethereum address(es) for the address_activity event type
6281
+ * Array of hexadecimal strings of the event signatures.
6282
+ */
6283
+ eventSignatures?: Array<string>;
6284
+ /**
6285
+ * Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
4754
6286
  */
4755
6287
  addresses: Array<string>;
6288
+ };
6289
+
6290
+ type EVMAddressActivityRequest = {
6291
+ eventType: EVMAddressActivityRequest.eventType;
6292
+ url: string;
6293
+ name?: string;
6294
+ description?: string;
6295
+ chainId: string;
6296
+ metadata: AddressActivityMetadata;
4756
6297
  /**
4757
- * Array of hexadecimal strings of the event signatures.
6298
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
4758
6299
  */
4759
- eventSignatures?: Array<string>;
6300
+ includeInternalTxs?: boolean;
6301
+ /**
6302
+ * Whether to include logs in the webhook payload.
6303
+ */
6304
+ includeLogs?: boolean;
4760
6305
  };
6306
+ declare namespace EVMAddressActivityRequest {
6307
+ enum eventType {
6308
+ ADDRESS_ACTIVITY = "address_activity"
6309
+ }
6310
+ }
4761
6311
 
4762
- declare enum EventType {
6312
+ declare enum AddressActivityEventType {
4763
6313
  ADDRESS_ACTIVITY = "address_activity"
4764
6314
  }
4765
6315
 
4766
- type CreateWebhookRequest = {
6316
+ declare enum WebhookStatusType {
6317
+ ACTIVE = "active",
6318
+ INACTIVE = "inactive"
6319
+ }
6320
+
6321
+ type EVMAddressActivityResponse = {
6322
+ id: string;
4767
6323
  url: string;
4768
6324
  chainId: string;
4769
- eventType: EventType;
6325
+ status: WebhookStatusType;
6326
+ createdAt: number;
6327
+ name: string;
6328
+ description: string;
6329
+ eventType: AddressActivityEventType;
4770
6330
  metadata: AddressActivityMetadata;
4771
- name?: string;
4772
- description?: string;
4773
6331
  /**
4774
6332
  * Whether to include traces in the webhook payload.
4775
6333
  */
4776
- includeInternalTxs?: boolean;
6334
+ includeInternalTxs?: boolean;
6335
+ /**
6336
+ * Whether to include logs in the webhook payload.
6337
+ */
6338
+ includeLogs?: boolean;
6339
+ };
6340
+
6341
+ type ListWebhookAddressesResponse = {
6342
+ /**
6343
+ * 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.
6344
+ */
6345
+ nextPageToken?: string;
6346
+ addresses: Array<string>;
6347
+ totalAddresses: number;
6348
+ };
6349
+
6350
+ declare enum PrimaryNetworkAddressActivityEventType {
6351
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6352
+ }
6353
+
6354
+ /**
6355
+ * The type of key to monitor for the address activity event type.
6356
+ */
6357
+ declare enum PlatformAddressActivityKeyType {
6358
+ ADDRESSES = "addresses"
6359
+ }
6360
+
6361
+ /**
6362
+ * Array of address activity sub-event types
6363
+ */
6364
+ declare enum PrimaryNetworkAddressActivitySubEventType {
6365
+ BALANCE_CHANGE = "balance_change",
6366
+ BALANCE_THRESHOLD = "balance_threshold",
6367
+ REWARD_DISTRIBUTION = "reward_distribution"
6368
+ }
6369
+
6370
+ type PrimaryNetworkAddressActivitySubEvents = {
6371
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
6372
+ };
6373
+
6374
+ /**
6375
+ * Type of balance to monitor
6376
+ */
6377
+ declare enum CommonBalanceType {
6378
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
6379
+ UNLOCKED_STAKED = "unlockedStaked",
6380
+ LOCKED_PLATFORM = "lockedPlatform",
6381
+ LOCKED_STAKEABLE = "lockedStakeable",
6382
+ LOCKED_STAKED = "lockedStaked",
6383
+ PENDING_STAKED = "pendingStaked",
6384
+ UNLOCKED = "unlocked",
6385
+ LOCKED = "locked",
6386
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
6387
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
6388
+ }
6389
+
6390
+ type PrimaryNetworkBalanceThresholdFilter = {
6391
+ balanceType: CommonBalanceType;
6392
+ /**
6393
+ * Threshold for balance corresponding to balanceType in nAVAX
6394
+ */
6395
+ balanceThreshold: string;
6396
+ };
6397
+
6398
+ type PrimaryNetworkAddressActivityMetadata = {
6399
+ /**
6400
+ * Array of hexadecimal strings of the event signatures.
6401
+ */
6402
+ eventSignatures?: Array<string>;
6403
+ keyType: PlatformAddressActivityKeyType;
6404
+ /**
6405
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
6406
+ */
6407
+ keys: Array<string>;
6408
+ /**
6409
+ * Sub-events to monitor
6410
+ */
6411
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6412
+ /**
6413
+ * Balance threshold filter
6414
+ */
6415
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6416
+ };
6417
+
6418
+ type PrimaryNetworkAddressActivityResponse = {
6419
+ id: string;
6420
+ url: string;
6421
+ chainId: string;
6422
+ status: WebhookStatusType;
6423
+ createdAt: number;
6424
+ name: string;
6425
+ description: string;
6426
+ eventType: PrimaryNetworkAddressActivityEventType;
6427
+ metadata: PrimaryNetworkAddressActivityMetadata;
6428
+ };
6429
+
6430
+ declare enum ValidatorActivityEventType {
6431
+ VALIDATOR_ACTIVITY = "validator_activity"
6432
+ }
6433
+
6434
+ /**
6435
+ * The type of key to monitor for the validator activity event type.
6436
+ */
6437
+ declare enum ValidatorActivityKeyType {
6438
+ NODE_ID = "nodeId",
6439
+ SUBNET_ID = "subnetId"
6440
+ }
6441
+
6442
+ type ValidatorActivitySubEvents = {
6443
+ /**
6444
+ * Array of validator activity sub-event types
6445
+ */
6446
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6447
+ };
6448
+
6449
+ type ValidatorActivityMetadata = {
6450
+ /**
6451
+ * Array of hexadecimal strings of the event signatures.
6452
+ */
6453
+ eventSignatures?: Array<string>;
6454
+ keyType: ValidatorActivityKeyType;
6455
+ /**
6456
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
6457
+ */
6458
+ keys: Array<string>;
4777
6459
  /**
4778
- * Whether to include logs in the webhook payload.
6460
+ * Sub-events to monitor
4779
6461
  */
4780
- includeLogs?: boolean;
4781
- };
4782
-
4783
- type ListWebhookAddressesResponse = {
6462
+ subEvents: ValidatorActivitySubEvents;
4784
6463
  /**
4785
- * 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.
6464
+ * Array of node IDs to filter the events
4786
6465
  */
4787
- nextPageToken?: string;
4788
- addresses: Array<string>;
4789
- totalAddresses: number;
4790
- };
4791
-
4792
- declare enum WebhookStatusType {
4793
- ACTIVE = "active",
4794
- INACTIVE = "inactive"
4795
- }
4796
-
4797
- type WebhookResponse = {
4798
- id: string;
4799
- eventType: EventType;
4800
- metadata: AddressActivityMetadata;
6466
+ nodeIds?: Array<string>;
4801
6467
  /**
4802
- * Whether to include traces in the webhook payload.
6468
+ * Array of subnet IDs to filter the events
4803
6469
  */
4804
- includeInternalTxs?: boolean;
6470
+ subnetIds?: Array<string>;
4805
6471
  /**
4806
- * Whether to include logs in the webhook payload.
6472
+ * L1 validator fee balance threshold in nAVAX
4807
6473
  */
4808
- includeLogs?: boolean;
6474
+ l1ValidatorFeeBalanceThreshold?: string;
6475
+ };
6476
+
6477
+ type ValidatorActivityResponse = {
6478
+ id: string;
4809
6479
  url: string;
4810
6480
  chainId: string;
4811
6481
  status: WebhookStatusType;
4812
6482
  createdAt: number;
4813
6483
  name: string;
4814
6484
  description: string;
6485
+ eventType: ValidatorActivityEventType;
6486
+ metadata: ValidatorActivityMetadata;
4815
6487
  };
4816
6488
 
4817
6489
  type ListWebhooksResponse = {
@@ -4819,8 +6491,31 @@ type ListWebhooksResponse = {
4819
6491
  * 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
6492
  */
4821
6493
  nextPageToken?: string;
4822
- webhooks: Array<WebhookResponse>;
6494
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6495
+ };
6496
+
6497
+ declare enum PrimaryNetworkType {
6498
+ MAINNET = "mainnet",
6499
+ FUJI = "fuji"
6500
+ }
6501
+
6502
+ type PrimaryNetworkAddressActivityRequest = {
6503
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6504
+ url: string;
6505
+ name?: string;
6506
+ description?: string;
6507
+ network: PrimaryNetworkType;
6508
+ chainId: string;
6509
+ /**
6510
+ * Metadata for platform address activity event
6511
+ */
6512
+ metadata: PrimaryNetworkAddressActivityMetadata;
4823
6513
  };
6514
+ declare namespace PrimaryNetworkAddressActivityRequest {
6515
+ enum eventType {
6516
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6517
+ }
6518
+ }
4824
6519
 
4825
6520
  type SharedSecretsResponse = {
4826
6521
  secret: string;
@@ -4831,10 +6526,30 @@ type UpdateWebhookRequest = {
4831
6526
  description?: string;
4832
6527
  url?: string;
4833
6528
  status?: WebhookStatusType;
6529
+ /**
6530
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6531
+ */
4834
6532
  includeInternalTxs?: boolean;
4835
6533
  includeLogs?: boolean;
4836
6534
  };
4837
6535
 
6536
+ type ValidatorActivityRequest = {
6537
+ eventType: ValidatorActivityRequest.eventType;
6538
+ url: string;
6539
+ name?: string;
6540
+ description?: string;
6541
+ network: PrimaryNetworkType;
6542
+ /**
6543
+ * Metadata for platform validator activity event
6544
+ */
6545
+ metadata: ValidatorActivityMetadata;
6546
+ };
6547
+ declare namespace ValidatorActivityRequest {
6548
+ enum eventType {
6549
+ VALIDATOR_ACTIVITY = "validator_activity"
6550
+ }
6551
+ }
6552
+
4838
6553
  declare enum WebhookStatus {
4839
6554
  ACTIVE = "active",
4840
6555
  INACTIVE = "inactive"
@@ -4846,12 +6561,12 @@ declare class WebhooksService {
4846
6561
  /**
4847
6562
  * Create a webhook
4848
6563
  * Create a new webhook.
4849
- * @returns WebhookResponse Successful response
6564
+ * @returns any Successful response
4850
6565
  * @throws ApiError
4851
6566
  */
4852
6567
  createWebhook({ requestBody, }: {
4853
- requestBody: CreateWebhookRequest;
4854
- }): CancelablePromise<WebhookResponse>;
6568
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6569
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4855
6570
  /**
4856
6571
  * List webhooks
4857
6572
  * Lists webhooks for the user.
@@ -4875,7 +6590,7 @@ declare class WebhooksService {
4875
6590
  /**
4876
6591
  * Get a webhook by ID
4877
6592
  * Retrieves a webhook by ID.
4878
- * @returns WebhookResponse Successful response
6593
+ * @returns any Successful response
4879
6594
  * @throws ApiError
4880
6595
  */
4881
6596
  getWebhook({ id, }: {
@@ -4883,11 +6598,11 @@ declare class WebhooksService {
4883
6598
  * The webhook identifier.
4884
6599
  */
4885
6600
  id: string;
4886
- }): CancelablePromise<WebhookResponse>;
6601
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4887
6602
  /**
4888
6603
  * Deactivate a webhook
4889
6604
  * Deactivates a webhook by ID.
4890
- * @returns WebhookResponse Successful response
6605
+ * @returns any Successful response
4891
6606
  * @throws ApiError
4892
6607
  */
4893
6608
  deactivateWebhook({ id, }: {
@@ -4895,11 +6610,11 @@ declare class WebhooksService {
4895
6610
  * The webhook identifier.
4896
6611
  */
4897
6612
  id: string;
4898
- }): CancelablePromise<WebhookResponse>;
6613
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4899
6614
  /**
4900
6615
  * Update a webhook
4901
6616
  * Updates an existing webhook.
4902
- * @returns WebhookResponse Successful response
6617
+ * @returns any Successful response
4903
6618
  * @throws ApiError
4904
6619
  */
4905
6620
  updateWebhook({ id, requestBody, }: {
@@ -4908,14 +6623,14 @@ declare class WebhooksService {
4908
6623
  */
4909
6624
  id: string;
4910
6625
  requestBody: UpdateWebhookRequest;
4911
- }): CancelablePromise<WebhookResponse>;
6626
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
4912
6627
  /**
4913
- * Generate a shared secret
4914
- * Generates a new shared secret.
6628
+ * Generate or rotate a shared secret
6629
+ * Generates a new shared secret or rotate an existing one.
4915
6630
  * @returns SharedSecretsResponse Successful response
4916
6631
  * @throws ApiError
4917
6632
  */
4918
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6633
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4919
6634
  /**
4920
6635
  * Get a shared secret
4921
6636
  * Get a previously generated shared secret.
@@ -4924,9 +6639,9 @@ declare class WebhooksService {
4924
6639
  */
4925
6640
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4926
6641
  /**
4927
- * Add addresses to webhook
4928
- * Add addresses to webhook.
4929
- * @returns WebhookResponse Successful response
6642
+ * Add addresses to EVM activity webhook
6643
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6644
+ * @returns EVMAddressActivityResponse Successful response
4930
6645
  * @throws ApiError
4931
6646
  */
4932
6647
  addAddressesToWebhook({ id, requestBody, }: {
@@ -4935,11 +6650,11 @@ declare class WebhooksService {
4935
6650
  */
4936
6651
  id: string;
4937
6652
  requestBody: AddressesChangeRequest;
4938
- }): CancelablePromise<WebhookResponse>;
6653
+ }): CancelablePromise<EVMAddressActivityResponse>;
4939
6654
  /**
4940
- * Remove addresses from webhook
4941
- * Remove addresses from webhook.
4942
- * @returns WebhookResponse Successful response
6655
+ * Remove addresses from EVM activity webhook
6656
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6657
+ * @returns EVMAddressActivityResponse Successful response
4943
6658
  * @throws ApiError
4944
6659
  */
4945
6660
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -4948,10 +6663,10 @@ declare class WebhooksService {
4948
6663
  */
4949
6664
  id: string;
4950
6665
  requestBody: AddressesChangeRequest;
4951
- }): CancelablePromise<WebhookResponse>;
6666
+ }): CancelablePromise<EVMAddressActivityResponse>;
4952
6667
  /**
4953
- * List adresses by webhook
4954
- * List adresses by webhook.
6668
+ * List adresses by EVM activity webhooks
6669
+ * List adresses by webhook. Only valid for EVM activity webhooks.
4955
6670
  * @returns ListWebhookAddressesResponse Successful response
4956
6671
  * @throws ApiError
4957
6672
  */
@@ -4973,6 +6688,7 @@ declare class WebhooksService {
4973
6688
 
4974
6689
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4975
6690
  declare class Glacier {
6691
+ readonly avaxSupply: AvaxSupplyService;
4976
6692
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
4977
6693
  readonly default: DefaultService;
4978
6694
  readonly evmBalances: EvmBalancesService;
@@ -4981,7 +6697,9 @@ declare class Glacier {
4981
6697
  readonly evmContracts: EvmContractsService;
4982
6698
  readonly evmTransactions: EvmTransactionsService;
4983
6699
  readonly healthCheck: HealthCheckService;
6700
+ readonly interchainMessaging: InterchainMessagingService;
4984
6701
  readonly nfTs: NfTsService;
6702
+ readonly notifications: NotificationsService;
4985
6703
  readonly operations: OperationsService;
4986
6704
  readonly primaryNetwork: PrimaryNetworkService;
4987
6705
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -4990,7 +6708,7 @@ declare class Glacier {
4990
6708
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4991
6709
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4992
6710
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4993
- readonly rpc: RpcService;
6711
+ readonly signatureAggregator: SignatureAggregatorService;
4994
6712
  readonly teleporter: TeleporterService;
4995
6713
  readonly webhooks: WebhooksService;
4996
6714
  readonly request: BaseHttpRequest;
@@ -5014,6 +6732,17 @@ declare class ApiError extends Error {
5014
6732
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5015
6733
  }
5016
6734
 
6735
+ type AccessListData = {
6736
+ /**
6737
+ * Access Address
6738
+ */
6739
+ accessAddresses: string;
6740
+ /**
6741
+ * Storage keys
6742
+ */
6743
+ storageKeys: Array<string>;
6744
+ };
6745
+
5017
6746
  type BadGateway = {
5018
6747
  /**
5019
6748
  * The error message describing the reason for the exception
@@ -5048,6 +6777,76 @@ type DataListChainsResponse = {
5048
6777
  chains: Array<ChainInfo>;
5049
6778
  };
5050
6779
 
6780
+ type ERCToken = {
6781
+ /**
6782
+ * Token contract address
6783
+ */
6784
+ address: string;
6785
+ /**
6786
+ * Token name
6787
+ */
6788
+ name: string;
6789
+ /**
6790
+ * Token symbol
6791
+ */
6792
+ symbol: string;
6793
+ /**
6794
+ * Token decimals
6795
+ */
6796
+ decimals: number;
6797
+ /**
6798
+ * Value including decimals
6799
+ */
6800
+ valueWithDecimals: string;
6801
+ };
6802
+
6803
+ type ERCTransfer = {
6804
+ /**
6805
+ * Transaction hash
6806
+ */
6807
+ transactionHash: string;
6808
+ /**
6809
+ * Transfer type
6810
+ */
6811
+ type: string;
6812
+ /**
6813
+ * Sender address
6814
+ */
6815
+ from: string;
6816
+ /**
6817
+ * Recipient address
6818
+ */
6819
+ to: string;
6820
+ /**
6821
+ * Amount transferred
6822
+ */
6823
+ value: string;
6824
+ /**
6825
+ * Token Id
6826
+ */
6827
+ tokenId?: string;
6828
+ /**
6829
+ * Block timestamp
6830
+ */
6831
+ blockTimestamp: number;
6832
+ /**
6833
+ * Log index
6834
+ */
6835
+ logIndex: number;
6836
+ /**
6837
+ * erc20 Token details
6838
+ */
6839
+ erc20Token?: ERCToken;
6840
+ /**
6841
+ * erc721 Token details
6842
+ */
6843
+ erc721Token?: ERCToken;
6844
+ /**
6845
+ * erc1155 Token details
6846
+ */
6847
+ erc1155Token?: ERCToken;
6848
+ };
6849
+
5051
6850
  type Forbidden = {
5052
6851
  /**
5053
6852
  * The error message describing the reason for the exception
@@ -5078,6 +6877,64 @@ type InternalServerError = {
5078
6877
  error: string;
5079
6878
  };
5080
6879
 
6880
+ type Log = {
6881
+ /**
6882
+ * Contract address
6883
+ */
6884
+ address: string;
6885
+ /**
6886
+ * First topic
6887
+ */
6888
+ topic0: string;
6889
+ /**
6890
+ * Second topic (optional)
6891
+ */
6892
+ topic1?: string;
6893
+ /**
6894
+ * Third topic (optional)
6895
+ */
6896
+ topic2?: string;
6897
+ /**
6898
+ * Fourth topic (optional)
6899
+ */
6900
+ topic3?: string;
6901
+ /**
6902
+ * Event data
6903
+ */
6904
+ data: string;
6905
+ /**
6906
+ * Transaction index
6907
+ */
6908
+ transactionIndex: number;
6909
+ /**
6910
+ * Log index
6911
+ */
6912
+ logIndex: number;
6913
+ /**
6914
+ * Indicates if the log was removed
6915
+ */
6916
+ removed: boolean;
6917
+ };
6918
+
6919
+ type NetworkTokenInfo = {
6920
+ /**
6921
+ * Token name
6922
+ */
6923
+ tokenName?: string;
6924
+ /**
6925
+ * Token symbol
6926
+ */
6927
+ tokenSymbol?: string;
6928
+ /**
6929
+ * Token decimals
6930
+ */
6931
+ tokenDecimals?: number;
6932
+ /**
6933
+ * Value including decimals
6934
+ */
6935
+ valueWithDecimals?: string;
6936
+ };
6937
+
5081
6938
  type NextPageToken = {
5082
6939
  /**
5083
6940
  * 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.
@@ -5130,6 +6987,163 @@ type TooManyRequests = {
5130
6987
  error: string;
5131
6988
  };
5132
6989
 
6990
+ type WebhookInternalTransaction = {
6991
+ /**
6992
+ * Sender address
6993
+ */
6994
+ from: string;
6995
+ /**
6996
+ * Recipient address
6997
+ */
6998
+ to: string;
6999
+ /**
7000
+ * Internal transaction type
7001
+ */
7002
+ internalTxType: string;
7003
+ /**
7004
+ * Value transferred
7005
+ */
7006
+ value: string;
7007
+ /**
7008
+ * Gas used
7009
+ */
7010
+ gasUsed: string;
7011
+ /**
7012
+ * Gas limit
7013
+ */
7014
+ gasLimit: string;
7015
+ /**
7016
+ * Transaction hash
7017
+ */
7018
+ transactionHash: string;
7019
+ };
7020
+
7021
+ type Transaction = {
7022
+ /**
7023
+ * Block hash of the transaction
7024
+ */
7025
+ blockHash: string;
7026
+ /**
7027
+ * Block number of the transaction
7028
+ */
7029
+ blockNumber: string;
7030
+ /**
7031
+ * Sender address
7032
+ */
7033
+ from: string;
7034
+ /**
7035
+ * Gas limit for the transaction
7036
+ */
7037
+ gas: string;
7038
+ /**
7039
+ * Gas price used
7040
+ */
7041
+ gasPrice: string;
7042
+ /**
7043
+ * Maximum fee per gas
7044
+ */
7045
+ maxFeePerGas: string;
7046
+ /**
7047
+ * Maximum priority fee per gas
7048
+ */
7049
+ maxPriorityFeePerGas: string;
7050
+ /**
7051
+ * Transaction hash
7052
+ */
7053
+ txHash: string;
7054
+ /**
7055
+ * Transaction status
7056
+ */
7057
+ txStatus: string;
7058
+ /**
7059
+ * Input data
7060
+ */
7061
+ input: string;
7062
+ /**
7063
+ * Nonce value
7064
+ */
7065
+ nonce: string;
7066
+ /**
7067
+ * Recipient address
7068
+ */
7069
+ to: string;
7070
+ /**
7071
+ * Transaction index
7072
+ */
7073
+ transactionIndex: number;
7074
+ /**
7075
+ * Value transferred in the transaction
7076
+ */
7077
+ value: string;
7078
+ /**
7079
+ * Transaction type
7080
+ */
7081
+ type: number;
7082
+ /**
7083
+ * Chain ID of the network
7084
+ */
7085
+ chainId: string;
7086
+ /**
7087
+ * Cumulative gas used
7088
+ */
7089
+ receiptCumulativeGasUsed: string;
7090
+ /**
7091
+ * Gas used
7092
+ */
7093
+ receiptGasUsed: string;
7094
+ /**
7095
+ * Effective gas price
7096
+ */
7097
+ receiptEffectiveGasPrice: string;
7098
+ /**
7099
+ * Receipt root
7100
+ */
7101
+ receiptRoot: string;
7102
+ /**
7103
+ * Block timestamp
7104
+ */
7105
+ blockTimestamp: number;
7106
+ /**
7107
+ * Contract address (optional)
7108
+ */
7109
+ contractAddress?: string;
7110
+ /**
7111
+ * ERC20 transfers
7112
+ */
7113
+ erc20Transfers: Array<ERCTransfer>;
7114
+ /**
7115
+ * ERC721 transfers
7116
+ */
7117
+ erc721Transfers: Array<ERCTransfer>;
7118
+ /**
7119
+ * ERC1155 transfers
7120
+ */
7121
+ erc1155Transfers: Array<ERCTransfer>;
7122
+ /**
7123
+ * Internal transactions (optional)
7124
+ */
7125
+ internalTransactions?: Array<WebhookInternalTransaction>;
7126
+ /**
7127
+ * Access list (optional)
7128
+ */
7129
+ accessList?: Array<AccessListData>;
7130
+ /**
7131
+ * Network token info (optional)
7132
+ */
7133
+ networkToken?: NetworkTokenInfo;
7134
+ };
7135
+
7136
+ type TransactionEvent = {
7137
+ /**
7138
+ * Transaction details
7139
+ */
7140
+ transaction: Transaction;
7141
+ /**
7142
+ * Array of log events
7143
+ */
7144
+ logs?: Array<Log>;
7145
+ };
7146
+
5133
7147
  type Unauthorized = {
5134
7148
  /**
5135
7149
  * The error message describing the reason for the exception
@@ -5145,4 +7159,43 @@ type Unauthorized = {
5145
7159
  error: string;
5146
7160
  };
5147
7161
 
5148
- 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, NetworkType, 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, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, ServiceUnavailable, SharedSecretsResponse, 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 };
7162
+ type WebhookAddressActivityResponse = {
7163
+ /**
7164
+ * Webhook ID
7165
+ */
7166
+ webhookId: string;
7167
+ /**
7168
+ * Event type
7169
+ */
7170
+ eventType: WebhookAddressActivityResponse.eventType;
7171
+ /**
7172
+ * Message ID
7173
+ */
7174
+ messageId: string;
7175
+ /**
7176
+ * Event details
7177
+ */
7178
+ event: TransactionEvent;
7179
+ };
7180
+ declare namespace WebhookAddressActivityResponse {
7181
+ /**
7182
+ * Event type
7183
+ */
7184
+ enum eventType {
7185
+ ADDRESS_ACTIVITY = "address_activity"
7186
+ }
7187
+ }
7188
+
7189
+ declare class FetchHttpRequest extends BaseHttpRequest {
7190
+ constructor(config: OpenAPIConfig);
7191
+ /**
7192
+ * Request method
7193
+ * @param options The request options from the service
7194
+ * @returns CancelablePromise<T>
7195
+ * @throws ApiError
7196
+ */
7197
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
7198
+ }
7199
+
7200
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, 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, 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, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, 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, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
7201
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, 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, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, 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, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, 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, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };