@avalabs/glacier-sdk 3.1.0-canary.868b786.0 → 3.1.0-canary.878b592.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 (303) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +2198 -410
  3. package/esm/generated/Glacier.d.ts +6 -0
  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 +44 -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 +1 -1
  25. package/esm/generated/models/Blockchain.d.ts +11 -1
  26. package/esm/generated/models/BlockchainId.d.ts +0 -2
  27. package/esm/generated/models/BlockchainId.js +1 -1
  28. package/esm/generated/models/BlockchainIds.d.ts +1 -3
  29. package/esm/generated/models/BlockchainIds.js +1 -1
  30. package/esm/generated/models/BlockchainInfo.d.ts +9 -2
  31. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  32. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  33. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  34. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  35. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  36. package/esm/generated/models/ChainInfo.d.ts +1 -1
  37. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  38. package/esm/generated/models/CommonBalanceType.js +1 -0
  39. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  40. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  41. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  42. package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
  43. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
  44. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
  45. package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
  46. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  47. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  48. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  49. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  50. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  51. package/esm/generated/models/ERCToken.d.ts +24 -0
  52. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  53. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  54. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  55. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  56. package/esm/generated/models/EVMInput.d.ts +1 -1
  57. package/esm/generated/models/EVMOutput.d.ts +1 -1
  58. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  59. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  60. package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
  61. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  62. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  63. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  64. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  65. package/esm/generated/models/Erc20Transfer.d.ts +1 -1
  66. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  67. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  68. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  69. package/esm/generated/models/Erc721Transfer.d.ts +1 -1
  70. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  71. package/esm/generated/models/EvmBlock.d.ts +5 -1
  72. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  73. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  74. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  75. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  76. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  77. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  78. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  79. package/esm/generated/models/Forbidden.d.ts +1 -1
  80. package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
  81. package/esm/generated/models/Geolocation.d.ts +24 -0
  82. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  83. package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
  84. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  85. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  86. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -3
  87. package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
  88. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  89. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  90. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  91. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  92. package/esm/generated/models/HistoricalReward.d.ts +1 -1
  93. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  94. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  95. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  96. package/esm/generated/models/IcmRewardDetails.js +1 -0
  97. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  98. package/esm/generated/models/ImageAsset.d.ts +1 -1
  99. package/esm/generated/models/InternalServerError.d.ts +1 -1
  100. package/esm/generated/models/InternalTransaction.d.ts +1 -1
  101. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  102. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  103. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  104. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  105. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  106. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +1 -1
  107. package/esm/generated/models/ListAddressChainsResponse.d.ts +1 -1
  108. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  109. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  110. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  111. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  112. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  113. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  114. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  115. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  116. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  117. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  118. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  119. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  120. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  121. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  122. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  124. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  126. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  127. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  128. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  129. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  130. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  131. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  133. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  134. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  135. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  136. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  137. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  138. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  139. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  140. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  141. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  142. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  143. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  144. package/esm/generated/models/Log.d.ts +40 -0
  145. package/esm/generated/models/LogsFormat.d.ts +1 -1
  146. package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
  147. package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
  148. package/esm/generated/models/Method.d.ts +1 -1
  149. package/esm/generated/models/Metric.d.ts +1 -1
  150. package/esm/generated/models/Money.d.ts +1 -1
  151. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  152. package/esm/generated/models/NativeTransaction.d.ts +5 -1
  153. package/esm/generated/models/Network.d.ts +1 -2
  154. package/esm/generated/models/Network.js +1 -1
  155. package/esm/generated/models/NetworkToken.d.ts +1 -1
  156. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  157. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  158. package/esm/generated/models/NextPageToken.d.ts +1 -1
  159. package/esm/generated/models/NotFound.d.ts +1 -1
  160. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  161. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  162. package/esm/generated/models/PChainBalance.d.ts +1 -1
  163. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  164. package/esm/generated/models/PChainTransaction.d.ts +31 -14
  165. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  166. package/esm/generated/models/PChainTransactionType.js +1 -1
  167. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  168. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  169. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  170. package/esm/generated/models/PendingIcmMessage.js +1 -0
  171. package/esm/generated/models/PendingReward.d.ts +1 -1
  172. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  173. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  174. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  175. package/esm/generated/models/PricingProviders.d.ts +1 -1
  176. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  177. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  178. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  179. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  180. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  181. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  182. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  183. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  184. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  185. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  186. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  187. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -3
  188. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
  189. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
  190. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  191. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  192. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  193. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  194. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  195. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  196. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  197. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  198. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  199. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  200. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  201. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  202. package/esm/generated/models/ResourceLink.d.ts +1 -1
  203. package/esm/generated/models/Rewards.d.ts +1 -1
  204. package/esm/generated/models/RichAddress.d.ts +1 -1
  205. package/esm/generated/models/RpcMetrics.d.ts +1 -1
  206. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  207. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  208. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  209. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  210. package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
  211. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  212. package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
  213. package/esm/generated/models/SignatureAggregatorRequest.d.ts +17 -3
  214. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  215. package/esm/generated/models/Subnet.d.ts +7 -3
  216. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  217. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  218. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  219. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  220. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  221. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  222. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  223. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  224. package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
  225. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  226. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  227. package/esm/generated/models/TooManyRequests.d.ts +1 -1
  228. package/esm/generated/models/Transaction.d.ts +121 -0
  229. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  230. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  231. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  232. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  233. package/esm/generated/models/Unauthorized.d.ts +1 -1
  234. package/esm/generated/models/UnknownContract.d.ts +1 -1
  235. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  236. package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
  237. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  238. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
  239. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  240. package/esm/generated/models/Utxo.d.ts +5 -1
  241. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  242. package/esm/generated/models/UtxoType.d.ts +3 -0
  243. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  244. package/esm/generated/models/UtxosSortByOption.js +1 -0
  245. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  246. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  247. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  248. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  249. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  250. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  251. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  252. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  253. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  254. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  255. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  256. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  257. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  258. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  259. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  260. package/esm/generated/models/XChainBalances.d.ts +1 -1
  261. package/esm/generated/models/XChainId.d.ts +0 -1
  262. package/esm/generated/models/XChainId.js +1 -1
  263. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  264. package/esm/generated/models/XChainVertex.d.ts +1 -1
  265. package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
  266. package/esm/generated/services/AvaxSupplyService.js +1 -0
  267. package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
  268. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  269. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  270. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  271. package/esm/generated/services/EvmBlocksService.js +1 -1
  272. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  273. package/esm/generated/services/EvmChainsService.js +1 -1
  274. package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
  275. package/esm/generated/services/EvmTransactionsService.js +1 -1
  276. package/esm/generated/services/HealthCheckService.d.ts +11 -7
  277. package/esm/generated/services/HealthCheckService.js +1 -1
  278. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  279. package/esm/generated/services/InterchainMessagingService.js +1 -0
  280. package/esm/generated/services/NotificationsService.d.ts +51 -0
  281. package/esm/generated/services/NotificationsService.js +1 -0
  282. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  283. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  284. package/esm/generated/services/PrimaryNetworkService.d.ts +30 -13
  285. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  286. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
  287. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  288. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
  289. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  290. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  291. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  292. package/esm/generated/services/TeleporterService.d.ts +12 -6
  293. package/esm/generated/services/WebhooksService.d.ts +28 -24
  294. package/esm/generated/services/WebhooksService.js +1 -1
  295. package/esm/index.d.ts +68 -7
  296. package/esm/index.js +1 -1
  297. package/package.json +13 -4
  298. package/dist/index.js +0 -1
  299. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  300. package/esm/generated/models/EventType.d.ts +0 -5
  301. package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +0 -14
  302. package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
  303. package/esm/generated/models/SovDetailsFull.d.ts +0 -33
package/dist/index.d.ts CHANGED
@@ -54,6 +54,61 @@ 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
+ * The total P-chain burned fees of AVAX.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * The total C-chain burned fees of AVAX.
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
+
100
+ declare class AvaxSupplyService {
101
+ readonly httpRequest: BaseHttpRequest;
102
+ constructor(httpRequest: BaseHttpRequest);
103
+ /**
104
+ * Get AVAX supply information
105
+ * 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.
106
+ * @returns AvaxSupplyResponse Successful response
107
+ * @throws ApiError
108
+ */
109
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
110
+ }
111
+
57
112
  type LogsFormatMetadata = {
58
113
  /**
59
114
  * The IP address of the client that made the request.
@@ -148,6 +203,28 @@ type LogsResponseDTO = {
148
203
  logs: Array<LogsFormat>;
149
204
  };
150
205
 
206
+ declare enum Network {
207
+ MAINNET = "mainnet",
208
+ FUJI = "fuji",
209
+ TESTNET = "testnet"
210
+ }
211
+
212
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
213
+ RPC_METHOD = "rpcMethod",
214
+ REQUEST_PATH = "requestPath",
215
+ RESPONSE_CODE = "responseCode",
216
+ COUNTRY = "country",
217
+ CONTINENT = "continent",
218
+ USER_AGENT = "userAgent"
219
+ }
220
+
221
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
222
+ HOURLY = "hourly",
223
+ DAILY = "daily",
224
+ WEEKLY = "weekly",
225
+ MONTHLY = "monthly"
226
+ }
227
+
151
228
  type RpcUsageMetricsValueAggregated = {
152
229
  /**
153
230
  * The total number of requests
@@ -173,6 +250,10 @@ type RpcUsageMetricsValueAggregated = {
173
250
  * The number of invalid requests
174
251
  */
175
252
  invalidRequests: number;
253
+ /**
254
+ * The number of API credits wasted on invalid requests
255
+ */
256
+ apiCreditsWasted: number;
176
257
  /**
177
258
  * Column name used for data aggregation
178
259
  */
@@ -190,6 +271,10 @@ declare namespace RpcUsageMetricsValueAggregated {
190
271
  RPC_METHOD = "rpcMethod",
191
272
  RESPONSE_CODE = "responseCode",
192
273
  RL_BYPASS_TOKEN = "rlBypassToken",
274
+ REQUEST_PATH = "requestPath",
275
+ COUNTRY = "country",
276
+ CONTINENT = "continent",
277
+ USER_AGENT = "userAgent",
193
278
  NONE = "None"
194
279
  }
195
280
  }
@@ -205,19 +290,56 @@ type RpcMetrics = {
205
290
  values: Array<RpcUsageMetricsValueAggregated>;
206
291
  };
207
292
 
208
- type RpcUsageMetricsResponseDTO = {
293
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
209
294
  /**
210
295
  * Duration in which the metrics value is aggregated
211
296
  */
212
297
  aggregateDuration: string;
213
298
  /**
214
- * ChainId for which the metrics are aggregated
299
+ * Metrics values
215
300
  */
216
- chainId: string;
301
+ metrics: Array<RpcMetrics>;
302
+ /**
303
+ * Network type for which the metrics are aggregated
304
+ */
305
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
306
+ };
307
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
308
+ /**
309
+ * Network type for which the metrics are aggregated
310
+ */
311
+ enum network {
312
+ MAINNET = "mainnet",
313
+ TESTNET = "testnet"
314
+ }
315
+ }
316
+
317
+ declare enum RpcUsageMetricsGroupByEnum {
318
+ RPC_METHOD = "rpcMethod",
319
+ RESPONSE_CODE = "responseCode",
320
+ RL_BYPASS_TOKEN = "rlBypassToken"
321
+ }
322
+
323
+ declare enum SubnetRpcTimeIntervalGranularity {
324
+ HOURLY = "hourly",
325
+ DAILY = "daily",
326
+ WEEKLY = "weekly",
327
+ MONTHLY = "monthly"
328
+ }
329
+
330
+ type SubnetRpcUsageMetricsResponseDTO = {
331
+ /**
332
+ * Duration in which the metrics value is aggregated
333
+ */
334
+ aggregateDuration: string;
217
335
  /**
218
336
  * Metrics values
219
337
  */
220
338
  metrics: Array<RpcMetrics>;
339
+ /**
340
+ * ChainId for which the metrics are aggregated
341
+ */
342
+ chainId: string;
221
343
  };
222
344
 
223
345
  declare enum TimeIntervalGranularityExtended {
@@ -323,7 +445,7 @@ declare class DataApiUsageMetricsService {
323
445
  * @returns UsageMetricsResponseDTO Successful response
324
446
  * @throws ApiError
325
447
  */
326
- getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, requestPath, responseCode, requestType, apiKeyId, }: {
448
+ getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
327
449
  /**
328
450
  * Organization ID to fetch usage metrics for
329
451
  */
@@ -348,10 +470,6 @@ declare class DataApiUsageMetricsService {
348
470
  * Filter data by chain ID.
349
471
  */
350
472
  chainId?: string;
351
- /**
352
- * Filter data by request path.
353
- */
354
- requestPath?: string;
355
473
  /**
356
474
  * Filter data by response status code.
357
475
  */
@@ -364,6 +482,10 @@ declare class DataApiUsageMetricsService {
364
482
  * Filter data by API key ID.
365
483
  */
366
484
  apiKeyId?: string;
485
+ /**
486
+ * Filter data by request path.
487
+ */
488
+ requestPath?: string;
367
489
  }): CancelablePromise<UsageMetricsResponseDTO>;
368
490
  /**
369
491
  * Get logs for requests made by client
@@ -371,7 +493,7 @@ declare class DataApiUsageMetricsService {
371
493
  * @returns LogsResponseDTO Successful response
372
494
  * @throws ApiError
373
495
  */
374
- getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, requestPath, responseCode, requestType, apiKeyId, pageToken, pageSize, }: {
496
+ getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
375
497
  /**
376
498
  * Organization ID to fetch usage metrics for
377
499
  */
@@ -388,10 +510,6 @@ declare class DataApiUsageMetricsService {
388
510
  * Filter data by chain ID.
389
511
  */
390
512
  chainId?: string;
391
- /**
392
- * Filter data by request path.
393
- */
394
- requestPath?: string;
395
513
  /**
396
514
  * Filter data by response status code.
397
515
  */
@@ -404,6 +522,10 @@ declare class DataApiUsageMetricsService {
404
522
  * Filter data by API key ID.
405
523
  */
406
524
  apiKeyId?: string;
525
+ /**
526
+ * Filter data by request path.
527
+ */
528
+ requestPath?: string;
407
529
  /**
408
530
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
409
531
  */
@@ -415,15 +537,16 @@ declare class DataApiUsageMetricsService {
415
537
  }): CancelablePromise<LogsResponseDTO>;
416
538
  /**
417
539
  * Get usage metrics for the Subnet RPC
418
- * Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
419
- * @returns RpcUsageMetricsResponseDTO Successful response
540
+ * Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
541
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
420
542
  * @throws ApiError
421
543
  */
422
- getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, requestPath, responseCode, rpcMethod, rlBypassApiToken, }: {
544
+ getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
423
545
  /**
424
- * Query param for setting time interval of data aggregation.
546
+ * Time interval granularity for data aggregation for subnet
547
+ * rpc metrics
425
548
  */
426
- timeInterval?: string;
549
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
427
550
  /**
428
551
  * The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
429
552
  */
@@ -435,15 +558,54 @@ declare class DataApiUsageMetricsService {
435
558
  /**
436
559
  * Query param for the criterion used for grouping metrics
437
560
  */
438
- groupBy?: UsageMetricsGroupByEnum;
561
+ groupBy?: RpcUsageMetricsGroupByEnum;
439
562
  /**
440
563
  * Filter data by chain ID.
441
564
  */
442
565
  chainId?: string;
443
566
  /**
444
- * Filter data by request path.
567
+ * Filter data by response status code.
445
568
  */
446
- requestPath?: string;
569
+ responseCode?: string;
570
+ /**
571
+ * Filter data by RPC method.
572
+ */
573
+ rpcMethod?: string;
574
+ /**
575
+ * Filter data by Rl Bypass API Token.
576
+ */
577
+ rlBypassApiToken?: string;
578
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
579
+ /**
580
+ * @deprecated
581
+ * **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
582
+ *
583
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
584
+ * @returns SubnetRpcUsageMetricsResponseDTO Successful response
585
+ * @throws ApiError
586
+ */
587
+ getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
588
+ /**
589
+ * Time interval granularity for data aggregation for subnet
590
+ * rpc metrics
591
+ */
592
+ timeInterval?: SubnetRpcTimeIntervalGranularity;
593
+ /**
594
+ * 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.
595
+ */
596
+ startTimestamp?: number;
597
+ /**
598
+ * 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.
599
+ */
600
+ endTimestamp?: number;
601
+ /**
602
+ * Query param for the criterion used for grouping metrics
603
+ */
604
+ groupBy?: RpcUsageMetricsGroupByEnum;
605
+ /**
606
+ * Filter data by chain ID.
607
+ */
608
+ chainId?: string;
447
609
  /**
448
610
  * Filter data by response status code.
449
611
  */
@@ -456,7 +618,60 @@ declare class DataApiUsageMetricsService {
456
618
  * Filter data by Rl Bypass API Token.
457
619
  */
458
620
  rlBypassApiToken?: string;
459
- }): CancelablePromise<RpcUsageMetricsResponseDTO>;
621
+ }): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
622
+ /**
623
+ * Get usage metrics for the Primary Network RPC
624
+ * Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
625
+ * @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
626
+ * @throws ApiError
627
+ */
628
+ getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
629
+ /**
630
+ * Either mainnet or testnet/fuji.
631
+ */
632
+ network: Network;
633
+ /**
634
+ * Time interval granularity for data aggregation for subnet
635
+ * rpc metrics
636
+ */
637
+ timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
638
+ /**
639
+ * 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.
640
+ */
641
+ startTimestamp?: number;
642
+ /**
643
+ * 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.
644
+ */
645
+ endTimestamp?: number;
646
+ /**
647
+ * Query param for the criterion used for grouping metrics
648
+ */
649
+ groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
650
+ /**
651
+ * Filter data by response status code.
652
+ */
653
+ responseCode?: string;
654
+ /**
655
+ * Filter data by request path.
656
+ */
657
+ requestPath?: string;
658
+ /**
659
+ * 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.
660
+ */
661
+ country?: string;
662
+ /**
663
+ * Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
664
+ */
665
+ continent?: string;
666
+ /**
667
+ * Filter data by User Agent.
668
+ */
669
+ userAgent?: string;
670
+ /**
671
+ * Filter data by RPC method.
672
+ */
673
+ rpcMethod?: string;
674
+ }): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
460
675
  }
461
676
 
462
677
  declare class DefaultService {
@@ -655,6 +870,10 @@ type ListErc1155BalancesResponse = {
655
870
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
656
871
  */
657
872
  nextPageToken?: string;
873
+ /**
874
+ * The native token balance for the address.
875
+ */
876
+ nativeTokenBalance: NativeTokenBalance;
658
877
  /**
659
878
  * The list of ERC-1155 token balances for the address.
660
879
  */
@@ -699,11 +918,22 @@ type Erc20TokenBalance = {
699
918
  * The monetary value of the balance, if a price is available for the token.
700
919
  */
701
920
  balanceValue?: Money;
921
+ /**
922
+ * 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.
923
+ */
924
+ tokenReputation: Erc20TokenBalance.tokenReputation;
702
925
  };
703
926
  declare namespace Erc20TokenBalance {
704
927
  enum ercType {
705
928
  ERC_20 = "ERC-20"
706
929
  }
930
+ /**
931
+ * 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.
932
+ */
933
+ enum tokenReputation {
934
+ MALICIOUS = "Malicious",
935
+ BENIGN = "Benign"
936
+ }
707
937
  }
708
938
 
709
939
  type ListErc20BalancesResponse = {
@@ -711,6 +941,10 @@ type ListErc20BalancesResponse = {
711
941
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
712
942
  */
713
943
  nextPageToken?: string;
944
+ /**
945
+ * The native token balance for the address.
946
+ */
947
+ nativeTokenBalance: NativeTokenBalance;
714
948
  /**
715
949
  * The list of ERC-20 token balances for the address.
716
950
  */
@@ -722,6 +956,10 @@ type ListErc721BalancesResponse = {
722
956
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
723
957
  */
724
958
  nextPageToken?: string;
959
+ /**
960
+ * The native token balance for the address.
961
+ */
962
+ nativeTokenBalance: NativeTokenBalance;
725
963
  /**
726
964
  * The list of ERC-721 token balances for the address.
727
965
  */
@@ -785,7 +1023,7 @@ declare class EvmBalancesService {
785
1023
  */
786
1024
  pageToken?: string;
787
1025
  /**
788
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1026
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
789
1027
  */
790
1028
  pageSize?: number;
791
1029
  /**
@@ -823,7 +1061,7 @@ declare class EvmBalancesService {
823
1061
  */
824
1062
  pageToken?: string;
825
1063
  /**
826
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1064
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
827
1065
  */
828
1066
  pageSize?: number;
829
1067
  /**
@@ -859,7 +1097,7 @@ declare class EvmBalancesService {
859
1097
  */
860
1098
  pageToken?: string;
861
1099
  /**
862
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1100
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
863
1101
  */
864
1102
  pageSize?: number;
865
1103
  /**
@@ -889,7 +1127,7 @@ declare class EvmBalancesService {
889
1127
  */
890
1128
  pageToken?: string;
891
1129
  /**
892
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1130
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
893
1131
  */
894
1132
  pageSize?: number;
895
1133
  /**
@@ -900,6 +1138,10 @@ declare class EvmBalancesService {
900
1138
  }
901
1139
 
902
1140
  type GetEvmBlockResponse = {
1141
+ /**
1142
+ * The EVM chain ID on which the block was created.
1143
+ */
1144
+ chainId: string;
903
1145
  /**
904
1146
  * The block number on the chain.
905
1147
  */
@@ -944,6 +1186,10 @@ type GetEvmBlockResponse = {
944
1186
  };
945
1187
 
946
1188
  type EvmBlock = {
1189
+ /**
1190
+ * The EVM chain ID on which the block was created.
1191
+ */
1192
+ chainId: string;
947
1193
  /**
948
1194
  * The block number on the chain.
949
1195
  */
@@ -998,6 +1244,26 @@ type ListEvmBlocksResponse = {
998
1244
  declare class EvmBlocksService {
999
1245
  readonly httpRequest: BaseHttpRequest;
1000
1246
  constructor(httpRequest: BaseHttpRequest);
1247
+ /**
1248
+ * List latest blocks across all supported EVM chains
1249
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1250
+ * @returns ListEvmBlocksResponse Successful response
1251
+ * @throws ApiError
1252
+ */
1253
+ listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
1254
+ /**
1255
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1256
+ */
1257
+ pageToken?: string;
1258
+ /**
1259
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1260
+ */
1261
+ pageSize?: number;
1262
+ /**
1263
+ * Either mainnet or testnet/fuji.
1264
+ */
1265
+ network?: Network;
1266
+ }): CancelablePromise<ListEvmBlocksResponse>;
1001
1267
  /**
1002
1268
  * List latest blocks
1003
1269
  * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
@@ -1129,48 +1395,167 @@ type ListChainsResponse = {
1129
1395
  chains: Array<ChainInfo>;
1130
1396
  };
1131
1397
 
1132
- declare enum Network {
1133
- MAINNET = "mainnet",
1134
- FUJI = "fuji",
1135
- TESTNET = "testnet",
1136
- DEVNET = "devnet"
1398
+ /**
1399
+ * 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.
1400
+ */
1401
+ declare enum TransactionMethodType {
1402
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1403
+ CONTRACT_CALL = "CONTRACT_CALL",
1404
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1137
1405
  }
1138
1406
 
1139
- declare class EvmChainsService {
1140
- readonly httpRequest: BaseHttpRequest;
1141
- constructor(httpRequest: BaseHttpRequest);
1407
+ type Method = {
1408
+ callType: TransactionMethodType;
1142
1409
  /**
1143
- * List chains
1144
- * Lists the supported EVM-compatible chains. Filterable by network.
1145
- * @returns ListChainsResponse Successful response
1146
- * @throws ApiError
1410
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1147
1411
  */
1148
- supportedChains({ network, feature, }: {
1149
- /**
1150
- * Either mainnet or testnet/fuji.
1151
- */
1152
- network?: Network;
1153
- /**
1154
- * Filter by feature.
1155
- */
1156
- feature?: ApiFeature;
1157
- }): CancelablePromise<ListChainsResponse>;
1412
+ methodHash: string;
1158
1413
  /**
1159
- * Get chain information
1160
- * Gets chain information for the EVM-compatible chain if supported by the api.
1161
- * @returns GetChainResponse Successful response
1162
- * @throws ApiError
1414
+ * 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'.
1163
1415
  */
1164
- getChainInfo({ chainId, }: {
1165
- /**
1166
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
- */
1168
- chainId: string;
1169
- }): CancelablePromise<GetChainResponse>;
1416
+ methodName?: string;
1417
+ };
1418
+
1419
+ type RichAddress = {
1170
1420
  /**
1171
- * Get chains for address
1172
- * Gets the list of chains an address has interacted with.
1173
- * @returns ListAddressChainsResponse Successful response
1421
+ * The contract name.
1422
+ */
1423
+ name?: string;
1424
+ /**
1425
+ * The contract symbol.
1426
+ */
1427
+ symbol?: string;
1428
+ /**
1429
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1430
+ */
1431
+ decimals?: number;
1432
+ /**
1433
+ * The logo uri for the address.
1434
+ */
1435
+ logoUri?: string;
1436
+ /**
1437
+ * A wallet or contract address in mixed-case checksum encoding.
1438
+ */
1439
+ address: string;
1440
+ };
1441
+
1442
+ type NativeTransaction = {
1443
+ /**
1444
+ * The block number on the chain.
1445
+ */
1446
+ blockNumber: string;
1447
+ /**
1448
+ * The block finality timestamp.
1449
+ */
1450
+ blockTimestamp: number;
1451
+ /**
1452
+ * The block hash identifier.
1453
+ */
1454
+ blockHash: string;
1455
+ /**
1456
+ * The EVM chain ID on which the transaction occured.
1457
+ */
1458
+ chainId: string;
1459
+ /**
1460
+ * The index at which the transaction occured in the block (0-indexed).
1461
+ */
1462
+ blockIndex: number;
1463
+ /**
1464
+ * The transaction hash identifier.
1465
+ */
1466
+ txHash: string;
1467
+ /**
1468
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1469
+ */
1470
+ txStatus: string;
1471
+ /**
1472
+ * The transaction type.
1473
+ */
1474
+ txType: number;
1475
+ /**
1476
+ * The gas limit set for the transaction.
1477
+ */
1478
+ gasLimit: string;
1479
+ /**
1480
+ * The amount of gas used.
1481
+ */
1482
+ gasUsed: string;
1483
+ /**
1484
+ * The gas price denominated by the number of decimals of the native token.
1485
+ */
1486
+ gasPrice: string;
1487
+ /**
1488
+ * The nonce used by the sender of the transaction.
1489
+ */
1490
+ nonce: string;
1491
+ from: RichAddress;
1492
+ to: RichAddress;
1493
+ method?: Method;
1494
+ value: string;
1495
+ };
1496
+
1497
+ type ListNativeTransactionsResponse = {
1498
+ /**
1499
+ * 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.
1500
+ */
1501
+ nextPageToken?: string;
1502
+ transactions: Array<NativeTransaction>;
1503
+ };
1504
+
1505
+ declare enum TransactionStatus {
1506
+ FAILED = "failed",
1507
+ SUCCESS = "success"
1508
+ }
1509
+
1510
+ declare class EvmChainsService {
1511
+ readonly httpRequest: BaseHttpRequest;
1512
+ constructor(httpRequest: BaseHttpRequest);
1513
+ /**
1514
+ * List all chains associated with a given address
1515
+ * 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.
1516
+ * @returns ListAddressChainsResponse Successful response
1517
+ * @throws ApiError
1518
+ */
1519
+ listAddressChains({ address, }: {
1520
+ /**
1521
+ * A wallet address.
1522
+ */
1523
+ address: string;
1524
+ }): CancelablePromise<ListAddressChainsResponse>;
1525
+ /**
1526
+ * List chains
1527
+ * Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
1528
+ * @returns ListChainsResponse Successful response
1529
+ * @throws ApiError
1530
+ */
1531
+ supportedChains({ network, feature, }: {
1532
+ /**
1533
+ * Either mainnet or testnet/fuji.
1534
+ */
1535
+ network?: Network;
1536
+ /**
1537
+ * Filter by feature.
1538
+ */
1539
+ feature?: ApiFeature;
1540
+ }): CancelablePromise<ListChainsResponse>;
1541
+ /**
1542
+ * Get chain information
1543
+ * Gets chain information for the EVM-compatible chain if supported by AvaCloud.
1544
+ * @returns GetChainResponse Successful response
1545
+ * @throws ApiError
1546
+ */
1547
+ getChainInfo({ chainId, }: {
1548
+ /**
1549
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1550
+ */
1551
+ chainId: string;
1552
+ }): CancelablePromise<GetChainResponse>;
1553
+ /**
1554
+ * @deprecated
1555
+ * **[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.
1556
+ *
1557
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
1558
+ * @returns ListAddressChainsResponse Successful response
1174
1559
  * @throws ApiError
1175
1560
  */
1176
1561
  getAddressChains({ address, }: {
@@ -1179,6 +1564,54 @@ declare class EvmChainsService {
1179
1564
  */
1180
1565
  address: string;
1181
1566
  }): CancelablePromise<ListAddressChainsResponse>;
1567
+ /**
1568
+ * @deprecated
1569
+ * **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
1570
+ *
1571
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
1572
+ * @returns ListNativeTransactionsResponse Successful response
1573
+ * @throws ApiError
1574
+ */
1575
+ listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
1576
+ /**
1577
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1578
+ */
1579
+ pageToken?: string;
1580
+ /**
1581
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1582
+ */
1583
+ pageSize?: number;
1584
+ /**
1585
+ * Either mainnet or testnet/fuji.
1586
+ */
1587
+ network?: Network;
1588
+ /**
1589
+ * A status filter for listed transactions.
1590
+ */
1591
+ status?: TransactionStatus;
1592
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1593
+ /**
1594
+ * @deprecated
1595
+ * **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
1596
+ *
1597
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
1598
+ * @returns ListEvmBlocksResponse Successful response
1599
+ * @throws ApiError
1600
+ */
1601
+ listAllLatestBlocks({ pageToken, pageSize, network, }: {
1602
+ /**
1603
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1604
+ */
1605
+ pageToken?: string;
1606
+ /**
1607
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1608
+ */
1609
+ pageSize?: number;
1610
+ /**
1611
+ * Either mainnet or testnet/fuji.
1612
+ */
1613
+ network?: Network;
1614
+ }): CancelablePromise<ListEvmBlocksResponse>;
1182
1615
  }
1183
1616
 
1184
1617
  type ImageAsset = {
@@ -1350,7 +1783,7 @@ type Erc1155Contract = {
1350
1783
  * A wallet or contract address in mixed-case checksum encoding.
1351
1784
  */
1352
1785
  address: string;
1353
- deploymentDetails: ContractDeploymentDetails;
1786
+ deploymentDetails?: ContractDeploymentDetails;
1354
1787
  ercType: Erc1155Contract.ercType;
1355
1788
  /**
1356
1789
  * The contract symbol.
@@ -1381,7 +1814,7 @@ type Erc20Contract = {
1381
1814
  * A wallet or contract address in mixed-case checksum encoding.
1382
1815
  */
1383
1816
  address: string;
1384
- deploymentDetails: ContractDeploymentDetails;
1817
+ deploymentDetails?: ContractDeploymentDetails;
1385
1818
  ercType: Erc20Contract.ercType;
1386
1819
  /**
1387
1820
  * The contract symbol.
@@ -1416,7 +1849,7 @@ type Erc721Contract = {
1416
1849
  * A wallet or contract address in mixed-case checksum encoding.
1417
1850
  */
1418
1851
  address: string;
1419
- deploymentDetails: ContractDeploymentDetails;
1852
+ deploymentDetails?: ContractDeploymentDetails;
1420
1853
  ercType: Erc721Contract.ercType;
1421
1854
  /**
1422
1855
  * The contract symbol.
@@ -1446,7 +1879,7 @@ type UnknownContract = {
1446
1879
  * A wallet or contract address in mixed-case checksum encoding.
1447
1880
  */
1448
1881
  address: string;
1449
- deploymentDetails: ContractDeploymentDetails;
1882
+ deploymentDetails?: ContractDeploymentDetails;
1450
1883
  ercType: UnknownContract.ercType;
1451
1884
  };
1452
1885
  declare namespace UnknownContract {
@@ -1513,29 +1946,6 @@ declare namespace Erc1155Token {
1513
1946
  }
1514
1947
  }
1515
1948
 
1516
- type RichAddress = {
1517
- /**
1518
- * The contract name.
1519
- */
1520
- name?: string;
1521
- /**
1522
- * The contract symbol.
1523
- */
1524
- symbol?: string;
1525
- /**
1526
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1527
- */
1528
- decimals?: number;
1529
- /**
1530
- * The logo uri for the address.
1531
- */
1532
- logoUri?: string;
1533
- /**
1534
- * A wallet or contract address in mixed-case checksum encoding.
1535
- */
1536
- address: string;
1537
- };
1538
-
1539
1949
  type Erc1155TransferDetails = {
1540
1950
  from: RichAddress;
1541
1951
  to: RichAddress;
@@ -1620,27 +2030,6 @@ type Erc721TransferDetails = {
1620
2030
  erc721Token: Erc721Token;
1621
2031
  };
1622
2032
 
1623
- /**
1624
- * 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.
1625
- */
1626
- declare enum TransactionMethodType {
1627
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
1628
- CONTRACT_CALL = "CONTRACT_CALL",
1629
- CONTRACT_CREATION = "CONTRACT_CREATION"
1630
- }
1631
-
1632
- type Method = {
1633
- callType: TransactionMethodType;
1634
- /**
1635
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1636
- */
1637
- methodHash: string;
1638
- /**
1639
- * 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'.
1640
- */
1641
- methodName?: string;
1642
- };
1643
-
1644
2033
  type FullNativeTransactionDetails = {
1645
2034
  /**
1646
2035
  * The block number on the chain.
@@ -1654,6 +2043,10 @@ type FullNativeTransactionDetails = {
1654
2043
  * The block hash identifier.
1655
2044
  */
1656
2045
  blockHash: string;
2046
+ /**
2047
+ * The EVM chain ID on which the transaction occured.
2048
+ */
2049
+ chainId: string;
1657
2050
  /**
1658
2051
  * The index at which the transaction occured in the block (0-indexed).
1659
2052
  */
@@ -1704,6 +2097,7 @@ declare enum InternalTransactionOpCall {
1704
2097
  CALL = "CALL",
1705
2098
  CREATE = "CREATE",
1706
2099
  CREATE2 = "CREATE2",
2100
+ CREATE3 = "CREATE3",
1707
2101
  CALLCODE = "CALLCODE",
1708
2102
  DELEGATECALL = "DELEGATECALL",
1709
2103
  STATICCALL = "STATICCALL"
@@ -1745,11 +2139,11 @@ type TeleporterMessageInfo = {
1745
2139
  /**
1746
2140
  * chain id of the source chain. valid only for destination transactions
1747
2141
  */
1748
- sourceChainId?: Record<string, any>;
2142
+ sourceChainId?: string;
1749
2143
  /**
1750
2144
  * chain id of the destination chain. valid only for source transactions
1751
2145
  */
1752
- destinationChainId?: Record<string, any>;
2146
+ destinationChainId?: string;
1753
2147
  };
1754
2148
 
1755
2149
  type GetTransactionResponse = {
@@ -1766,7 +2160,7 @@ type GetTransactionResponse = {
1766
2160
  */
1767
2161
  erc1155Transfers?: Array<Erc1155TransferDetails>;
1768
2162
  /**
1769
- * 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.
2163
+ * 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.
1770
2164
  */
1771
2165
  internalTransactions?: Array<InternalTransactionDetails>;
1772
2166
  networkTokenDetails: NetworkTokenDetails;
@@ -1917,99 +2311,40 @@ type ListInternalTransactionsResponse = {
1917
2311
  transactions: Array<InternalTransaction>;
1918
2312
  };
1919
2313
 
1920
- type NativeTransaction = {
2314
+ type TransactionDetails = {
1921
2315
  /**
1922
- * The block number on the chain.
2316
+ * The native (top-level) transaction details.
1923
2317
  */
1924
- blockNumber: string;
2318
+ nativeTransaction: NativeTransaction;
1925
2319
  /**
1926
- * The block finality timestamp.
2320
+ * The list of ERC-20 transfers.
1927
2321
  */
1928
- blockTimestamp: number;
2322
+ erc20Transfers?: Array<Erc20TransferDetails>;
1929
2323
  /**
1930
- * The block hash identifier.
2324
+ * The list of ERC-721 transfers.
1931
2325
  */
1932
- blockHash: string;
2326
+ erc721Transfers?: Array<Erc721TransferDetails>;
1933
2327
  /**
1934
- * The index at which the transaction occured in the block (0-indexed).
2328
+ * The list of ERC-1155 transfers.
1935
2329
  */
1936
- blockIndex: number;
2330
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1937
2331
  /**
1938
- * The transaction hash identifier.
2332
+ * 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.
1939
2333
  */
1940
- txHash: string;
2334
+ internalTransactions?: Array<InternalTransactionDetails>;
2335
+ };
2336
+
2337
+ type ListTransactionDetailsResponse = {
1941
2338
  /**
1942
- * The transaction status, which is either 0 (failed) or 1 (successful).
2339
+ * 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.
1943
2340
  */
1944
- txStatus: string;
2341
+ nextPageToken?: string;
2342
+ transactions: Array<TransactionDetails>;
2343
+ };
2344
+
2345
+ type ListTransfersResponse = {
1945
2346
  /**
1946
- * The transaction type.
1947
- */
1948
- txType: number;
1949
- /**
1950
- * The gas limit set for the transaction.
1951
- */
1952
- gasLimit: string;
1953
- /**
1954
- * The amount of gas used.
1955
- */
1956
- gasUsed: string;
1957
- /**
1958
- * The gas price denominated by the number of decimals of the native token.
1959
- */
1960
- gasPrice: string;
1961
- /**
1962
- * The nonce used by the sender of the transaction.
1963
- */
1964
- nonce: string;
1965
- from: RichAddress;
1966
- to: RichAddress;
1967
- method?: Method;
1968
- value: string;
1969
- };
1970
-
1971
- type ListNativeTransactionsResponse = {
1972
- /**
1973
- * 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.
1974
- */
1975
- nextPageToken?: string;
1976
- transactions: Array<NativeTransaction>;
1977
- };
1978
-
1979
- type TransactionDetails = {
1980
- /**
1981
- * The native (top-level) transaction details.
1982
- */
1983
- nativeTransaction: NativeTransaction;
1984
- /**
1985
- * The list of ERC-20 transfers.
1986
- */
1987
- erc20Transfers?: Array<Erc20TransferDetails>;
1988
- /**
1989
- * The list of ERC-721 transfers.
1990
- */
1991
- erc721Transfers?: Array<Erc721TransferDetails>;
1992
- /**
1993
- * The list of ERC-1155 transfers.
1994
- */
1995
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1996
- /**
1997
- * 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.
1998
- */
1999
- internalTransactions?: Array<InternalTransactionDetails>;
2000
- };
2001
-
2002
- type ListTransactionDetailsResponse = {
2003
- /**
2004
- * 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.
2005
- */
2006
- nextPageToken?: string;
2007
- transactions: Array<TransactionDetails>;
2008
- };
2009
-
2010
- type ListTransfersResponse = {
2011
- /**
2012
- * 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.
2347
+ * 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.
2013
2348
  */
2014
2349
  nextPageToken?: string;
2015
2350
  transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
@@ -2020,14 +2355,33 @@ declare enum SortOrder {
2020
2355
  DESC = "desc"
2021
2356
  }
2022
2357
 
2023
- declare enum TransactionStatus {
2024
- FAILED = "failed",
2025
- SUCCESS = "success"
2026
- }
2027
-
2028
2358
  declare class EvmTransactionsService {
2029
2359
  readonly httpRequest: BaseHttpRequest;
2030
2360
  constructor(httpRequest: BaseHttpRequest);
2361
+ /**
2362
+ * List the latest transactions across all supported EVM chains
2363
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2364
+ * @returns ListNativeTransactionsResponse Successful response
2365
+ * @throws ApiError
2366
+ */
2367
+ listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
2368
+ /**
2369
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2370
+ */
2371
+ pageToken?: string;
2372
+ /**
2373
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2374
+ */
2375
+ pageSize?: number;
2376
+ /**
2377
+ * Either mainnet or testnet/fuji.
2378
+ */
2379
+ network?: Network;
2380
+ /**
2381
+ * A status filter for listed transactions.
2382
+ */
2383
+ status?: TransactionStatus;
2384
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2031
2385
  /**
2032
2386
  * Get deployment transaction
2033
2387
  * If the address is a smart contract, returns the transaction in which it was deployed.
@@ -2274,7 +2628,7 @@ declare class EvmTransactionsService {
2274
2628
  * List internal transactions
2275
2629
  * Returns a list of internal transactions for an address and chain. Filterable by block range.
2276
2630
  *
2277
- * 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.
2631
+ * 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.
2278
2632
  * @returns ListInternalTransactionsResponse Successful response
2279
2633
  * @throws ApiError
2280
2634
  */
@@ -2326,7 +2680,7 @@ declare class EvmTransactionsService {
2326
2680
  * @returns ListNativeTransactionsResponse Successful response
2327
2681
  * @throws ApiError
2328
2682
  */
2329
- getTransactionsForBlock({ chainId, blockId, }: {
2683
+ getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
2330
2684
  /**
2331
2685
  * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2332
2686
  */
@@ -2335,6 +2689,14 @@ declare class EvmTransactionsService {
2335
2689
  * A block identifier which is either a block number or the block hash.
2336
2690
  */
2337
2691
  blockId: string;
2692
+ /**
2693
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2694
+ */
2695
+ pageToken?: string;
2696
+ /**
2697
+ * The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
2698
+ */
2699
+ pageSize?: number;
2338
2700
  }): CancelablePromise<ListNativeTransactionsResponse>;
2339
2701
  /**
2340
2702
  * List latest transactions
@@ -2362,68 +2724,211 @@ declare class EvmTransactionsService {
2362
2724
  }): CancelablePromise<ListNativeTransactionsResponse>;
2363
2725
  }
2364
2726
 
2727
+ type HealthIndicatorResultDto = {
2728
+ /**
2729
+ * Status of the health indicator.
2730
+ */
2731
+ status?: HealthIndicatorResultDto.status;
2732
+ };
2733
+ declare namespace HealthIndicatorResultDto {
2734
+ /**
2735
+ * Status of the health indicator.
2736
+ */
2737
+ enum status {
2738
+ UP = "up",
2739
+ DOWN = "down"
2740
+ }
2741
+ }
2742
+
2743
+ type HealthCheckResultDto = {
2744
+ status?: HealthCheckResultDto.status;
2745
+ info?: any | null;
2746
+ error?: any | null;
2747
+ details?: Record<string, HealthIndicatorResultDto>;
2748
+ };
2749
+ declare namespace HealthCheckResultDto {
2750
+ enum status {
2751
+ ERROR = "error",
2752
+ OK = "ok",
2753
+ SHUTTING_DOWN = "shutting_down"
2754
+ }
2755
+ }
2756
+
2365
2757
  declare class HealthCheckService {
2366
2758
  readonly httpRequest: BaseHttpRequest;
2367
2759
  constructor(httpRequest: BaseHttpRequest);
2368
2760
  /**
2369
2761
  * Get the health of the service
2370
- * @returns any The Health Check is successful
2762
+ * Check the health of the service. This checks the read and write health of the database and cache.
2763
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2371
2764
  * @throws ApiError
2372
2765
  */
2373
- dataHealthCheck(): CancelablePromise<{
2374
- status?: string;
2375
- info?: Record<string, Record<string, string>> | null;
2376
- error?: Record<string, Record<string, string>> | null;
2377
- details?: Record<string, Record<string, string>>;
2378
- }>;
2766
+ dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2767
+ /**
2768
+ * Get the liveliness of the service (reads only)
2769
+ * Check the liveliness of the service (reads only).
2770
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2771
+ * @throws ApiError
2772
+ */
2773
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2379
2774
  }
2380
2775
 
2381
- type ListNftTokens = {
2776
+ type IcmDestinationTransaction = {
2777
+ txHash: string;
2778
+ timestamp: number;
2779
+ gasSpent: string;
2780
+ rewardRedeemer: string;
2781
+ delivererAddress: string;
2782
+ };
2783
+
2784
+ type IcmReceipt = {
2785
+ receivedMessageNonce: string;
2786
+ relayerRewardAddress: string;
2787
+ };
2788
+
2789
+ type IcmRewardDetails = {
2790
+ /**
2791
+ * A wallet or contract address in mixed-case checksum encoding.
2792
+ */
2793
+ address: string;
2794
+ /**
2795
+ * The contract name.
2796
+ */
2797
+ name: string;
2798
+ /**
2799
+ * The contract symbol.
2800
+ */
2801
+ symbol: string;
2802
+ /**
2803
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2804
+ */
2805
+ decimals: number;
2806
+ /**
2807
+ * The logo uri for the address.
2808
+ */
2809
+ logoUri?: string;
2810
+ ercType: IcmRewardDetails.ercType;
2811
+ /**
2812
+ * The token price, if available.
2813
+ */
2814
+ price?: Money;
2815
+ value: string;
2816
+ };
2817
+ declare namespace IcmRewardDetails {
2818
+ enum ercType {
2819
+ ERC_20 = "ERC-20"
2820
+ }
2821
+ }
2822
+
2823
+ type IcmSourceTransaction = {
2824
+ txHash: string;
2825
+ timestamp: number;
2826
+ gasSpent: string;
2827
+ };
2828
+
2829
+ type DeliveredIcmMessage = {
2830
+ messageId: string;
2831
+ icmContractAddress: string;
2832
+ sourceBlockchainId: string;
2833
+ destinationBlockchainId: string;
2834
+ sourceEvmChainId: string;
2835
+ destinationEvmChainId: string;
2836
+ messageNonce: string;
2837
+ from: string;
2838
+ to: string;
2839
+ data?: string;
2840
+ messageExecuted: boolean;
2841
+ receipts: Array<IcmReceipt>;
2842
+ receiptDelivered: boolean;
2843
+ rewardDetails: IcmRewardDetails;
2844
+ sourceTransaction: IcmSourceTransaction;
2845
+ destinationTransaction: IcmDestinationTransaction;
2846
+ status: DeliveredIcmMessage.status;
2847
+ };
2848
+ declare namespace DeliveredIcmMessage {
2849
+ enum status {
2850
+ DELIVERED = "delivered"
2851
+ }
2852
+ }
2853
+
2854
+ type DeliveredSourceNotIndexedIcmMessage = {
2855
+ messageId: string;
2856
+ icmContractAddress: string;
2857
+ sourceBlockchainId: string;
2858
+ destinationBlockchainId: string;
2859
+ sourceEvmChainId: string;
2860
+ destinationEvmChainId: string;
2861
+ messageNonce: string;
2862
+ from: string;
2863
+ to: string;
2864
+ data?: string;
2865
+ messageExecuted: boolean;
2866
+ receipts: Array<IcmReceipt>;
2867
+ receiptDelivered: boolean;
2868
+ rewardDetails: IcmRewardDetails;
2869
+ destinationTransaction: IcmDestinationTransaction;
2870
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2871
+ };
2872
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2873
+ enum status {
2874
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2875
+ }
2876
+ }
2877
+
2878
+ type PendingIcmMessage = {
2879
+ messageId: string;
2880
+ icmContractAddress: string;
2881
+ sourceBlockchainId: string;
2882
+ destinationBlockchainId: string;
2883
+ sourceEvmChainId: string;
2884
+ destinationEvmChainId: string;
2885
+ messageNonce: string;
2886
+ from: string;
2887
+ to: string;
2888
+ data?: string;
2889
+ messageExecuted: boolean;
2890
+ receipts: Array<IcmReceipt>;
2891
+ receiptDelivered: boolean;
2892
+ rewardDetails: IcmRewardDetails;
2893
+ sourceTransaction: IcmSourceTransaction;
2894
+ status: PendingIcmMessage.status;
2895
+ };
2896
+ declare namespace PendingIcmMessage {
2897
+ enum status {
2898
+ PENDING = "pending"
2899
+ }
2900
+ }
2901
+
2902
+ type ListIcmMessagesResponse = {
2382
2903
  /**
2383
2904
  * 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.
2384
2905
  */
2385
2906
  nextPageToken?: string;
2386
- tokens: Array<(Erc721Token | Erc1155Token)>;
2907
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2387
2908
  };
2388
2909
 
2389
- declare class NfTsService {
2910
+ declare class InterchainMessagingService {
2390
2911
  readonly httpRequest: BaseHttpRequest;
2391
2912
  constructor(httpRequest: BaseHttpRequest);
2392
2913
  /**
2393
- * Reindex NFT metadata
2394
- * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2914
+ * Get an ICM message
2915
+ * Gets an ICM message by teleporter message ID.
2395
2916
  * @returns any Successful response
2396
2917
  * @throws ApiError
2397
2918
  */
2398
- reindexNft({ chainId, address, tokenId, }: {
2399
- /**
2400
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2401
- */
2402
- chainId: string;
2403
- /**
2404
- * Contract address on the relevant chain.
2405
- */
2406
- address: string;
2919
+ getIcmMessage({ messageId, }: {
2407
2920
  /**
2408
- * TokenId on the contract
2921
+ * The teleporter message ID of the ICM message.
2409
2922
  */
2410
- tokenId: string;
2411
- }): CancelablePromise<any>;
2923
+ messageId: string;
2924
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2412
2925
  /**
2413
- * List tokens
2414
- * Lists tokens for an NFT contract.
2415
- * @returns ListNftTokens Successful response
2926
+ * List ICM messages
2927
+ * Lists ICM messages. Ordered by timestamp in descending order.
2928
+ * @returns ListIcmMessagesResponse Successful response
2416
2929
  * @throws ApiError
2417
2930
  */
2418
- listTokens({ chainId, address, pageToken, pageSize, }: {
2419
- /**
2420
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2421
- */
2422
- chainId: string;
2423
- /**
2424
- * Contract address on the relevant chain.
2425
- */
2426
- address: string;
2931
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2427
2932
  /**
2428
2933
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2429
2934
  */
@@ -2432,29 +2937,236 @@ declare class NfTsService {
2432
2937
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2433
2938
  */
2434
2939
  pageSize?: number;
2435
- }): CancelablePromise<ListNftTokens>;
2436
- /**
2437
- * Get token details
2438
- * Gets token details for a specific token of an NFT contract.
2439
- * @returns any Successful response
2440
- * @throws ApiError
2441
- */
2442
- getTokenDetails({ chainId, address, tokenId, }: {
2443
2940
  /**
2444
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2941
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2445
2942
  */
2446
- chainId: string;
2943
+ sourceBlockchainId?: string;
2447
2944
  /**
2448
- * Contract address on the relevant chain.
2945
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2449
2946
  */
2450
- address: string;
2947
+ destinationBlockchainId?: string;
2451
2948
  /**
2452
- * TokenId on the contract
2949
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2950
+ */
2951
+ blockchainId?: string;
2952
+ /**
2953
+ * The address of the recipient of the ICM message.
2954
+ */
2955
+ to?: string;
2956
+ /**
2957
+ * The address of the sender of the ICM message.
2958
+ */
2959
+ from?: string;
2960
+ /**
2961
+ * Either mainnet or testnet/fuji.
2962
+ */
2963
+ network?: Network;
2964
+ }): CancelablePromise<ListIcmMessagesResponse>;
2965
+ /**
2966
+ * List ICM messages by address
2967
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2968
+ * @returns ListIcmMessagesResponse Successful response
2969
+ * @throws ApiError
2970
+ */
2971
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2972
+ /**
2973
+ * An EVM address.
2974
+ */
2975
+ address: string;
2976
+ /**
2977
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2978
+ */
2979
+ pageToken?: string;
2980
+ /**
2981
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2982
+ */
2983
+ pageSize?: number;
2984
+ /**
2985
+ * Either mainnet or testnet/fuji.
2986
+ */
2987
+ network?: Network;
2988
+ }): CancelablePromise<ListIcmMessagesResponse>;
2989
+ }
2990
+
2991
+ type ListNftTokens = {
2992
+ /**
2993
+ * 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.
2994
+ */
2995
+ nextPageToken?: string;
2996
+ tokens: Array<(Erc721Token | Erc1155Token)>;
2997
+ };
2998
+
2999
+ declare class NfTsService {
3000
+ readonly httpRequest: BaseHttpRequest;
3001
+ constructor(httpRequest: BaseHttpRequest);
3002
+ /**
3003
+ * Reindex NFT metadata
3004
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
3005
+ * @returns any Successful response
3006
+ * @throws ApiError
3007
+ */
3008
+ reindexNft({ chainId, address, tokenId, }: {
3009
+ /**
3010
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3011
+ */
3012
+ chainId: string;
3013
+ /**
3014
+ * Contract address on the relevant chain.
3015
+ */
3016
+ address: string;
3017
+ /**
3018
+ * TokenId on the contract
3019
+ */
3020
+ tokenId: string;
3021
+ }): CancelablePromise<any>;
3022
+ /**
3023
+ * List tokens
3024
+ * Lists tokens for an NFT contract.
3025
+ * @returns ListNftTokens Successful response
3026
+ * @throws ApiError
3027
+ */
3028
+ listTokens({ chainId, address, pageToken, pageSize, }: {
3029
+ /**
3030
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3031
+ */
3032
+ chainId: string;
3033
+ /**
3034
+ * Contract address on the relevant chain.
3035
+ */
3036
+ address: string;
3037
+ /**
3038
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3039
+ */
3040
+ pageToken?: string;
3041
+ /**
3042
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3043
+ */
3044
+ pageSize?: number;
3045
+ }): CancelablePromise<ListNftTokens>;
3046
+ /**
3047
+ * Get token details
3048
+ * Gets token details for a specific token of an NFT contract.
3049
+ * @returns any Successful response
3050
+ * @throws ApiError
3051
+ */
3052
+ getTokenDetails({ chainId, address, tokenId, }: {
3053
+ /**
3054
+ * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
3055
+ */
3056
+ chainId: string;
3057
+ /**
3058
+ * Contract address on the relevant chain.
3059
+ */
3060
+ address: string;
3061
+ /**
3062
+ * TokenId on the contract
2453
3063
  */
2454
3064
  tokenId: string;
2455
3065
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2456
3066
  }
2457
3067
 
3068
+ type AccessRequest = {
3069
+ /**
3070
+ * The email address to send the access token to
3071
+ */
3072
+ email: string;
3073
+ /**
3074
+ * The captcha to verify the user
3075
+ */
3076
+ captcha: string;
3077
+ };
3078
+
3079
+ type NotificationsResponse = {
3080
+ message: string;
3081
+ };
3082
+
3083
+ type SubscribeRequest = {
3084
+ /**
3085
+ * The access token to use for authentication
3086
+ */
3087
+ accessToken: string;
3088
+ /**
3089
+ * The node ID to subscribe to
3090
+ */
3091
+ nodeId: string;
3092
+ /**
3093
+ * The notification types to subscribe to. If not provided, all notification types will be subscribed to
3094
+ */
3095
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3096
+ };
3097
+
3098
+ type SubscriptionsRequest = {
3099
+ /**
3100
+ * The access token to use for authentication
3101
+ */
3102
+ accessToken: string;
3103
+ };
3104
+
3105
+ type SubscriptionsResponse = {
3106
+ /**
3107
+ * The email address of the user
3108
+ */
3109
+ email: string;
3110
+ /**
3111
+ * The subscriptions of the user
3112
+ */
3113
+ subscriptions: Record<string, {
3114
+ notifications?: Array<'connectivity' | 'ports' | 'version'>;
3115
+ }>;
3116
+ };
3117
+
3118
+ type UnsubscribeRequest = {
3119
+ /**
3120
+ * The access token to use for authentication
3121
+ */
3122
+ accessToken: string;
3123
+ /**
3124
+ * The node ID to subscribe to
3125
+ */
3126
+ nodeId: string;
3127
+ };
3128
+
3129
+ declare class NotificationsService {
3130
+ readonly httpRequest: BaseHttpRequest;
3131
+ constructor(httpRequest: BaseHttpRequest);
3132
+ /**
3133
+ * Access Notifications
3134
+ * Access notifications.
3135
+ * @returns NotificationsResponse Successful response
3136
+ * @throws ApiError
3137
+ */
3138
+ access({ requestBody, }: {
3139
+ requestBody: AccessRequest;
3140
+ }): CancelablePromise<NotificationsResponse>;
3141
+ /**
3142
+ * Subscribe to Notifications
3143
+ * Subscribe to receive notifications.
3144
+ * @returns NotificationsResponse Successful response
3145
+ * @throws ApiError
3146
+ */
3147
+ subscribe({ requestBody, }: {
3148
+ requestBody: SubscribeRequest;
3149
+ }): CancelablePromise<NotificationsResponse>;
3150
+ /**
3151
+ * Unsubscribe from Notifications
3152
+ * Unsubscribe from receiving notifications.
3153
+ * @returns NotificationsResponse Successful response
3154
+ * @throws ApiError
3155
+ */
3156
+ unsubscribe({ requestBody, }: {
3157
+ requestBody: UnsubscribeRequest;
3158
+ }): CancelablePromise<NotificationsResponse>;
3159
+ /**
3160
+ * Get Subscriptions
3161
+ * Get subscriptions.
3162
+ * @returns SubscriptionsResponse Successful response
3163
+ * @throws ApiError
3164
+ */
3165
+ subscriptions({ requestBody, }: {
3166
+ requestBody: SubscriptionsRequest;
3167
+ }): CancelablePromise<SubscriptionsResponse>;
3168
+ }
3169
+
2458
3170
  type EvmNetworkOptions = {
2459
3171
  addresses: Array<string>;
2460
3172
  includeChains: Array<string>;
@@ -2488,7 +3200,7 @@ declare enum PrimaryNetworkOperationType {
2488
3200
  type PrimaryNetworkOptions = {
2489
3201
  addresses?: Array<string>;
2490
3202
  cChainEvmAddresses?: Array<string>;
2491
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
3203
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2492
3204
  };
2493
3205
 
2494
3206
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2543,7 +3255,7 @@ type OperationStatusResponse = {
2543
3255
  operationType: OperationType;
2544
3256
  operationStatus: OperationStatus;
2545
3257
  message?: string;
2546
- metadata: TransactionExportMetadata;
3258
+ metadata?: TransactionExportMetadata;
2547
3259
  createdAtTimestamp: number;
2548
3260
  updatedAtTimestamp: number;
2549
3261
  };
@@ -2576,14 +3288,275 @@ declare class OperationsService {
2576
3288
  }): CancelablePromise<OperationStatusResponse>;
2577
3289
  }
2578
3290
 
3291
+ type EvmGenesisAllocDto = {
3292
+ /**
3293
+ * Account balance in hex format
3294
+ */
3295
+ balance?: string;
3296
+ /**
3297
+ * Contract bytecode in hex format
3298
+ */
3299
+ code?: string;
3300
+ /**
3301
+ * Contract storage slots
3302
+ */
3303
+ storage?: Record<string, string>;
3304
+ };
3305
+
3306
+ type EvmGenesisAllowListConfigDto = {
3307
+ /**
3308
+ * Block timestamp
3309
+ */
3310
+ blockTimestamp?: number;
3311
+ /**
3312
+ * Admin addresses
3313
+ */
3314
+ adminAddresses?: Array<string>;
3315
+ /**
3316
+ * Manager addresses
3317
+ */
3318
+ managerAddresses?: Array<string>;
3319
+ /**
3320
+ * Enabled addresses
3321
+ */
3322
+ enabledAddresses?: Array<string>;
3323
+ };
3324
+
3325
+ type EvmGenesisFeeConfigDto = {
3326
+ /**
3327
+ * Base fee change denominator
3328
+ */
3329
+ baseFeeChangeDenominator?: number;
3330
+ /**
3331
+ * Block gas cost step
3332
+ */
3333
+ blockGasCostStep?: number;
3334
+ /**
3335
+ * Gas limit
3336
+ */
3337
+ gasLimit?: number;
3338
+ /**
3339
+ * Maximum block gas cost
3340
+ */
3341
+ maxBlockGasCost?: number;
3342
+ /**
3343
+ * Minimum base fee
3344
+ */
3345
+ minBaseFee?: number;
3346
+ /**
3347
+ * Minimum block gas cost
3348
+ */
3349
+ minBlockGasCost?: number;
3350
+ /**
3351
+ * Target block rate
3352
+ */
3353
+ targetBlockRate?: number;
3354
+ /**
3355
+ * Target gas
3356
+ */
3357
+ targetGas?: number;
3358
+ };
3359
+
3360
+ type EvmGenesisWarpConfigDto = {
3361
+ /**
3362
+ * Block timestamp
3363
+ */
3364
+ blockTimestamp?: number;
3365
+ /**
3366
+ * Quorum numerator
3367
+ */
3368
+ quorumNumerator?: number;
3369
+ /**
3370
+ * Require primary network signers
3371
+ */
3372
+ requirePrimaryNetworkSigners?: boolean;
3373
+ };
3374
+
3375
+ type EvmGenesisConfigDto = {
3376
+ /**
3377
+ * Berlin block number
3378
+ */
3379
+ berlinBlock?: number;
3380
+ /**
3381
+ * Byzantium block number
3382
+ */
3383
+ byzantiumBlock?: number;
3384
+ /**
3385
+ * Chain ID
3386
+ */
3387
+ chainId?: number;
3388
+ /**
3389
+ * Constantinople block number
3390
+ */
3391
+ constantinopleBlock?: number;
3392
+ /**
3393
+ * EIP-150 block number
3394
+ */
3395
+ eip150Block?: number;
3396
+ /**
3397
+ * EIP-150 hash
3398
+ */
3399
+ eip150Hash?: string;
3400
+ /**
3401
+ * EIP-155 block number
3402
+ */
3403
+ eip155Block?: number;
3404
+ /**
3405
+ * EIP-158 block number
3406
+ */
3407
+ eip158Block?: number;
3408
+ /**
3409
+ * Fee configuration
3410
+ */
3411
+ feeConfig?: EvmGenesisFeeConfigDto;
3412
+ /**
3413
+ * Homestead block number
3414
+ */
3415
+ homesteadBlock?: number;
3416
+ /**
3417
+ * Istanbul block number
3418
+ */
3419
+ istanbulBlock?: number;
3420
+ /**
3421
+ * London block number
3422
+ */
3423
+ londonBlock?: number;
3424
+ /**
3425
+ * Muir Glacier block number
3426
+ */
3427
+ muirGlacierBlock?: number;
3428
+ /**
3429
+ * Petersburg block number
3430
+ */
3431
+ petersburgBlock?: number;
3432
+ /**
3433
+ * Subnet EVM timestamp
3434
+ */
3435
+ subnetEVMTimestamp?: number;
3436
+ /**
3437
+ * Allow fee recipients
3438
+ */
3439
+ allowFeeRecipients?: boolean;
3440
+ /**
3441
+ * Warp configuration
3442
+ */
3443
+ warpConfig?: EvmGenesisWarpConfigDto;
3444
+ /**
3445
+ * Transaction allow list configuration
3446
+ */
3447
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3448
+ /**
3449
+ * Contract deployer allow list configuration
3450
+ */
3451
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3452
+ /**
3453
+ * Contract native minter configuration
3454
+ */
3455
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3456
+ /**
3457
+ * Fee manager configuration
3458
+ */
3459
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3460
+ /**
3461
+ * Reward manager configuration
3462
+ */
3463
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3464
+ };
3465
+
3466
+ type EvmGenesisDto = {
3467
+ /**
3468
+ * Airdrop amount
3469
+ */
3470
+ airdropAmount?: number | null;
3471
+ /**
3472
+ * Airdrop hash
3473
+ */
3474
+ airdropHash?: string;
3475
+ /**
3476
+ * Allocation of accounts and balances
3477
+ */
3478
+ alloc?: Record<string, EvmGenesisAllocDto>;
3479
+ /**
3480
+ * Base fee per gas
3481
+ */
3482
+ baseFeePerGas?: number | null;
3483
+ /**
3484
+ * Blob gas used
3485
+ */
3486
+ blobGasUsed?: string | null;
3487
+ /**
3488
+ * Coinbase address
3489
+ */
3490
+ coinbase?: string;
3491
+ /**
3492
+ * Genesis configuration
3493
+ */
3494
+ config?: EvmGenesisConfigDto;
3495
+ /**
3496
+ * Difficulty
3497
+ */
3498
+ difficulty?: string;
3499
+ /**
3500
+ * Excess blob gas
3501
+ */
3502
+ excessBlobGas?: string | null;
3503
+ /**
3504
+ * Extra data
3505
+ */
3506
+ extraData?: string;
3507
+ /**
3508
+ * Gas limit
3509
+ */
3510
+ gasLimit?: string;
3511
+ /**
3512
+ * Gas used
3513
+ */
3514
+ gasUsed?: string;
3515
+ /**
3516
+ * Mix hash
3517
+ */
3518
+ mixHash?: string;
3519
+ /**
3520
+ * Nonce
3521
+ */
3522
+ nonce?: string;
3523
+ /**
3524
+ * Block number
3525
+ */
3526
+ number?: string;
3527
+ /**
3528
+ * Parent hash
3529
+ */
3530
+ parentHash?: string;
3531
+ /**
3532
+ * Block timestamp
3533
+ */
3534
+ timestamp?: string;
3535
+ };
3536
+
3537
+ type Blockchain = {
3538
+ createBlockTimestamp: number;
3539
+ createBlockNumber: string;
3540
+ blockchainId: string;
3541
+ vmId: string;
3542
+ subnetId: string;
3543
+ blockchainName: string;
3544
+ /**
3545
+ * 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.
3546
+ */
3547
+ evmChainId: number;
3548
+ /**
3549
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
3550
+ */
3551
+ genesisData?: (EvmGenesisDto | string);
3552
+ };
3553
+
2579
3554
  declare enum BlockchainIds {
2580
3555
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2581
3556
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2582
3557
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2583
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
2584
3558
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2585
- Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2586
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
3559
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2587
3560
  }
2588
3561
 
2589
3562
  type ChainAddressChainIdMap = {
@@ -2607,16 +3580,31 @@ type DelegatorsDetails = {
2607
3580
  };
2608
3581
 
2609
3582
  type StakingDistribution = {
3583
+ /**
3584
+ * AvalancheGo version for the validator node.
3585
+ */
2610
3586
  version: string;
3587
+ /**
3588
+ * The total amount staked by validators using this version.
3589
+ */
2611
3590
  amountStaked: string;
3591
+ /**
3592
+ * The number of validators using this version.
3593
+ */
2612
3594
  validatorCount: number;
2613
3595
  };
2614
3596
 
2615
3597
  type ValidatorsDetails = {
2616
3598
  validatorCount: number;
2617
3599
  totalAmountStaked: string;
3600
+ /**
3601
+ * Total potential rewards from currently active validations and delegations.
3602
+ */
2618
3603
  estimatedAnnualStakingReward: string;
2619
3604
  stakingDistributionByVersion: Array<StakingDistribution>;
3605
+ /**
3606
+ * Ratio of total active stake amount to the current supply.
3607
+ */
2620
3608
  stakingRatio: string;
2621
3609
  };
2622
3610
 
@@ -2625,15 +3613,6 @@ type GetNetworkDetailsResponse = {
2625
3613
  delegatorDetails: DelegatorsDetails;
2626
3614
  };
2627
3615
 
2628
- type Blockchain = {
2629
- createBlockTimestamp: number;
2630
- createBlockNumber: string;
2631
- blockchainId: string;
2632
- vmId: string;
2633
- subnetId: string;
2634
- blockchainName: string;
2635
- };
2636
-
2637
3616
  type ListBlockchainsResponse = {
2638
3617
  /**
2639
3618
  * 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.
@@ -2668,7 +3647,13 @@ type CompletedDelegatorDetails = {
2668
3647
  delegationFee: string;
2669
3648
  startTimestamp: number;
2670
3649
  endTimestamp: number;
3650
+ /**
3651
+ * Total rewards distributed for the successful delegation.
3652
+ */
2671
3653
  grossReward: string;
3654
+ /**
3655
+ * Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3656
+ */
2672
3657
  netReward: string;
2673
3658
  delegationStatus: CompletedDelegatorDetails.delegationStatus;
2674
3659
  };
@@ -2686,7 +3671,13 @@ type PendingDelegatorDetails = {
2686
3671
  delegationFee: string;
2687
3672
  startTimestamp: number;
2688
3673
  endTimestamp: number;
3674
+ /**
3675
+ * Estimated total rewards that will be distributed for the successful delegation.
3676
+ */
2689
3677
  estimatedGrossReward: string;
3678
+ /**
3679
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
3680
+ */
2690
3681
  estimatedNetReward: string;
2691
3682
  delegationStatus: PendingDelegatorDetails.delegationStatus;
2692
3683
  };
@@ -2712,37 +3703,41 @@ type BalanceOwner = {
2712
3703
  threshold: number;
2713
3704
  };
2714
3705
 
2715
- type SovDetailsFull = {
3706
+ type L1ValidatorDetailsFull = {
2716
3707
  /**
2717
- * Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
3708
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
2718
3709
  */
2719
3710
  validationId: string;
3711
+ /**
3712
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
3713
+ */
3714
+ validationIdHex: string;
2720
3715
  nodeId: string;
2721
3716
  subnetId: string;
2722
3717
  /**
2723
- * Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
3718
+ * 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
2724
3719
  */
2725
3720
  weight: number;
2726
3721
  /**
2727
- * Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
3722
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
2728
3723
  */
2729
3724
  remainingBalance: number;
2730
3725
  /**
2731
- * The timestamp of the transaction which created this SoV
3726
+ * The timestamp of the transaction which created this L1 validator
2732
3727
  */
2733
3728
  creationTimestamp: number;
2734
3729
  blsCredentials: Record<string, any>;
2735
3730
  /**
2736
- * The SoV owner's balance, returned after it's disabled or removed
3731
+ * The L1 validator owner's balance, returned after it's disabled or removed
2737
3732
  */
2738
3733
  remainingBalanceOwner: BalanceOwner;
2739
3734
  /**
2740
- * Owner ddresses details which can disable or remove the SoV
3735
+ * Owner ddresses details which can disable or remove the L1 validator
2741
3736
  */
2742
3737
  deactivationOwner: BalanceOwner;
2743
3738
  };
2744
3739
 
2745
- type ListSubnetOnlyValidatorsResponse = {
3740
+ type ListL1ValidatorsResponse = {
2746
3741
  /**
2747
3742
  * 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.
2748
3743
  */
@@ -2750,11 +3745,11 @@ type ListSubnetOnlyValidatorsResponse = {
2750
3745
  /**
2751
3746
  * The list of L1 validations for the given Subnet ID, NodeId or validationId
2752
3747
  */
2753
- validators: Array<SovDetailsFull>;
2754
- };
2755
-
2756
- type BlockchainInfo = {
2757
- blockchainId: string;
3748
+ validators: Array<L1ValidatorDetailsFull>;
3749
+ /**
3750
+ * Block height at which the L1 validator's remaining balance is calculated
3751
+ */
3752
+ blockHeight: string;
2758
3753
  };
2759
3754
 
2760
3755
  type L1ValidatorManagerDetails = {
@@ -2804,11 +3799,15 @@ type Subnet = {
2804
3799
  * Whether the subnet is an L1 or not.
2805
3800
  */
2806
3801
  isL1: boolean;
3802
+ /**
3803
+ * Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
3804
+ */
3805
+ l1ConversionTransactionHash?: string;
2807
3806
  /**
2808
3807
  * L1 validator manager details.
2809
3808
  */
2810
3809
  l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
2811
- blockchains: Array<BlockchainInfo>;
3810
+ blockchains: Array<Blockchain>;
2812
3811
  };
2813
3812
 
2814
3813
  type ListSubnetsResponse = {
@@ -2824,6 +3823,29 @@ type BlsCredentials = {
2824
3823
  proofOfPossession: string;
2825
3824
  };
2826
3825
 
3826
+ type Geolocation = {
3827
+ /**
3828
+ * The name of the validator node.
3829
+ */
3830
+ city: string;
3831
+ /**
3832
+ * The city of the validator node.
3833
+ */
3834
+ country: string;
3835
+ /**
3836
+ * The country code of the validator node.
3837
+ */
3838
+ countryCode: string;
3839
+ /**
3840
+ * The latitude of the validator node.
3841
+ */
3842
+ latitude: number;
3843
+ /**
3844
+ * The longitude of the validator node.
3845
+ */
3846
+ longitude: number;
3847
+ };
3848
+
2827
3849
  type Rewards = {
2828
3850
  validationRewardAmount: string;
2829
3851
  delegationRewardAmount: string;
@@ -2855,6 +3877,9 @@ type ActiveValidatorDetails = {
2855
3877
  nodeId: string;
2856
3878
  subnetId: string;
2857
3879
  amountStaked: string;
3880
+ /**
3881
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3882
+ */
2858
3883
  delegationFee?: string;
2859
3884
  startTimestamp: number;
2860
3885
  endTimestamp: number;
@@ -2862,15 +3887,37 @@ type ActiveValidatorDetails = {
2862
3887
  * Present for AddPermissionlessValidatorTx
2863
3888
  */
2864
3889
  blsCredentials?: BlsCredentials;
3890
+ /**
3891
+ * The percentage of this validator's stake amount to the total active stake.
3892
+ */
2865
3893
  stakePercentage: number;
3894
+ /**
3895
+ * The number of delegators linked to the validator.
3896
+ */
2866
3897
  delegatorCount: number;
3898
+ /**
3899
+ * The total amount in nAVAX delegated to the validator.
3900
+ */
2867
3901
  amountDelegated?: string;
3902
+ /**
3903
+ * The validator's uptime percentage, as observed by our internal node and measured over time.
3904
+ */
2868
3905
  uptimePerformance: number;
2869
3906
  avalancheGoVersion?: string;
3907
+ /**
3908
+ * The amount of stake in nAVAX that can be delegated to this validator.
3909
+ */
2870
3910
  delegationCapacity?: string;
3911
+ /**
3912
+ * Estimated rewards for the validator if the validation is successful.
3913
+ */
2871
3914
  potentialRewards: Rewards;
2872
3915
  validationStatus: ActiveValidatorDetails.validationStatus;
2873
3916
  validatorHealth: ValidatorHealthDetails;
3917
+ /**
3918
+ * The geographical location of the validator node, if available.
3919
+ */
3920
+ geolocation: Geolocation | null;
2874
3921
  };
2875
3922
  declare namespace ActiveValidatorDetails {
2876
3923
  enum validationStatus {
@@ -2883,6 +3930,9 @@ type CompletedValidatorDetails = {
2883
3930
  nodeId: string;
2884
3931
  subnetId: string;
2885
3932
  amountStaked: string;
3933
+ /**
3934
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3935
+ */
2886
3936
  delegationFee?: string;
2887
3937
  startTimestamp: number;
2888
3938
  endTimestamp: number;
@@ -2906,6 +3956,9 @@ type PendingValidatorDetails = {
2906
3956
  nodeId: string;
2907
3957
  subnetId: string;
2908
3958
  amountStaked: string;
3959
+ /**
3960
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3961
+ */
2909
3962
  delegationFee?: string;
2910
3963
  startTimestamp: number;
2911
3964
  endTimestamp: number;
@@ -2926,6 +3979,9 @@ type RemovedValidatorDetails = {
2926
3979
  nodeId: string;
2927
3980
  subnetId: string;
2928
3981
  amountStaked: string;
3982
+ /**
3983
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
3984
+ */
2929
3985
  delegationFee?: string;
2930
3986
  startTimestamp: number;
2931
3987
  endTimestamp: number;
@@ -2933,7 +3989,13 @@ type RemovedValidatorDetails = {
2933
3989
  * Present for AddPermissionlessValidatorTx
2934
3990
  */
2935
3991
  blsCredentials?: BlsCredentials;
3992
+ /**
3993
+ * The transaction hash that removed the permissioned subnet validator.
3994
+ */
2936
3995
  removeTxHash: string;
3996
+ /**
3997
+ * The timestamp of the transaction that removed the permissioned subnet validator.
3998
+ */
2937
3999
  removeTimestamp: number;
2938
4000
  validationStatus: RemovedValidatorDetails.validationStatus;
2939
4001
  };
@@ -3013,7 +4075,6 @@ type XChainAssetDetails = {
3013
4075
  declare enum XChainId {
3014
4076
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3015
4077
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3016
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3017
4078
  X_CHAIN = "x-chain"
3018
4079
  }
3019
4080
 
@@ -3084,7 +4145,7 @@ declare class PrimaryNetworkService {
3084
4145
  */
3085
4146
  pageToken?: string;
3086
4147
  /**
3087
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4148
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3088
4149
  */
3089
4150
  pageSize?: number;
3090
4151
  /**
@@ -3092,6 +4153,22 @@ declare class PrimaryNetworkService {
3092
4153
  */
3093
4154
  sortOrder?: SortOrder;
3094
4155
  }): CancelablePromise<ListBlockchainsResponse>;
4156
+ /**
4157
+ * Get blockchain details by ID
4158
+ * Get details of the blockchain registered on the network.
4159
+ * @returns Blockchain Successful response
4160
+ * @throws ApiError
4161
+ */
4162
+ getBlockchainById({ blockchainId, network, }: {
4163
+ /**
4164
+ * The blockchain ID of the blockchain to retrieve.
4165
+ */
4166
+ blockchainId: string;
4167
+ /**
4168
+ * Either mainnet or testnet/fuji.
4169
+ */
4170
+ network: Network;
4171
+ }): CancelablePromise<Blockchain>;
3095
4172
  /**
3096
4173
  * List subnets
3097
4174
  * Lists all subnets registered on the network.
@@ -3108,7 +4185,7 @@ declare class PrimaryNetworkService {
3108
4185
  */
3109
4186
  pageToken?: string;
3110
4187
  /**
3111
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4188
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
3112
4189
  */
3113
4190
  pageSize?: number;
3114
4191
  /**
@@ -3134,7 +4211,7 @@ declare class PrimaryNetworkService {
3134
4211
  }): CancelablePromise<Subnet>;
3135
4212
  /**
3136
4213
  * List validators
3137
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
4214
+ * 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.
3138
4215
  * @returns ListValidatorDetailsResponse Successful response
3139
4216
  * @throws ApiError
3140
4217
  */
@@ -3152,7 +4229,7 @@ declare class PrimaryNetworkService {
3152
4229
  */
3153
4230
  pageSize?: number;
3154
4231
  /**
3155
- * A comma separated list of node ids to filter by.
4232
+ * A comma separated list of node ids to filter by. Supports substring matching.
3156
4233
  */
3157
4234
  nodeIds?: string;
3158
4235
  /**
@@ -3275,12 +4352,12 @@ declare class PrimaryNetworkService {
3275
4352
  nodeIds?: string;
3276
4353
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3277
4354
  /**
3278
- * List subnet-only validators
3279
- * Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
3280
- * @returns ListSubnetOnlyValidatorsResponse Successful response
4355
+ * List L1 validators
4356
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
4357
+ * @returns ListL1ValidatorsResponse Successful response
3281
4358
  * @throws ApiError
3282
4359
  */
3283
- listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
4360
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
3284
4361
  /**
3285
4362
  * Either mainnet or testnet/fuji.
3286
4363
  */
@@ -3294,10 +4371,10 @@ declare class PrimaryNetworkService {
3294
4371
  */
3295
4372
  pageSize?: number;
3296
4373
  /**
3297
- * The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
4374
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
3298
4375
  */
3299
- sovValidationId?: any;
3300
- includeInactiveSovs?: boolean;
4376
+ l1ValidationId?: string;
4377
+ includeInactiveL1Validators?: boolean;
3301
4378
  /**
3302
4379
  * A valid node ID in format 'NodeID-HASH'.
3303
4380
  */
@@ -3306,17 +4383,15 @@ declare class PrimaryNetworkService {
3306
4383
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
3307
4384
  */
3308
4385
  subnetId?: any;
3309
- }): CancelablePromise<ListSubnetOnlyValidatorsResponse>;
4386
+ }): CancelablePromise<ListL1ValidatorsResponse>;
3310
4387
  }
3311
4388
 
3312
4389
  declare enum BlockchainId {
3313
4390
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3314
4391
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3315
4392
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3316
- _2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
3317
4393
  _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
3318
4394
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
3319
- V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
3320
4395
  P_CHAIN = "p-chain",
3321
4396
  X_CHAIN = "x-chain",
3322
4397
  C_CHAIN = "c-chain"
@@ -3553,8 +4628,8 @@ type GetPrimaryNetworkBlockResponse = {
3553
4628
  txCount: number;
3554
4629
  transactions: Array<string>;
3555
4630
  blockSizeBytes: number;
3556
- subnetOnlyValidatorsAccruedFees?: number;
3557
- activeSubnetOnlyValidators?: number;
4631
+ l1ValidatorsAccruedFees?: number;
4632
+ activeL1Validators?: number;
3558
4633
  currentSupply?: string;
3559
4634
  proposerDetails?: ProposerDetails;
3560
4635
  };
@@ -3568,8 +4643,8 @@ type PrimaryNetworkBlock = {
3568
4643
  txCount: number;
3569
4644
  transactions: Array<string>;
3570
4645
  blockSizeBytes: number;
3571
- subnetOnlyValidatorsAccruedFees?: number;
3572
- activeSubnetOnlyValidators?: number;
4646
+ l1ValidatorsAccruedFees?: number;
4647
+ activeL1Validators?: number;
3573
4648
  currentSupply?: string;
3574
4649
  proposerDetails?: ProposerDetails;
3575
4650
  };
@@ -3612,7 +4687,7 @@ declare class PrimaryNetworkBlocksService {
3612
4687
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3613
4688
  * @throws ApiError
3614
4689
  */
3615
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
4690
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3616
4691
  /**
3617
4692
  * A primary network blockchain id or alias.
3618
4693
  */
@@ -3625,6 +4700,14 @@ declare class PrimaryNetworkBlocksService {
3625
4700
  * A primary network (P or X chain) nodeId.
3626
4701
  */
3627
4702
  nodeId: string;
4703
+ /**
4704
+ * Query param for retrieving items after a specific timestamp.
4705
+ */
4706
+ startTimestamp?: number;
4707
+ /**
4708
+ * Query param for retrieving items before a specific timestamp.
4709
+ */
4710
+ endTimestamp?: number;
3628
4711
  /**
3629
4712
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3630
4713
  */
@@ -3640,7 +4723,7 @@ declare class PrimaryNetworkBlocksService {
3640
4723
  * @returns ListPrimaryNetworkBlocksResponse Successful response
3641
4724
  * @throws ApiError
3642
4725
  */
3643
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
4726
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3644
4727
  /**
3645
4728
  * A primary network blockchain id or alias.
3646
4729
  */
@@ -3649,6 +4732,14 @@ declare class PrimaryNetworkBlocksService {
3649
4732
  * Either mainnet or testnet/fuji.
3650
4733
  */
3651
4734
  network: Network;
4735
+ /**
4736
+ * Query param for retrieving items after a specific timestamp.
4737
+ */
4738
+ startTimestamp?: number;
4739
+ /**
4740
+ * Query param for retrieving items before a specific timestamp.
4741
+ */
4742
+ endTimestamp?: number;
3652
4743
  /**
3653
4744
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3654
4745
  */
@@ -3890,6 +4981,10 @@ type Utxo = {
3890
4981
  * UTXO ID for this output.
3891
4982
  */
3892
4983
  utxoId: string;
4984
+ /**
4985
+ * The bytes of the UTXO
4986
+ */
4987
+ utxoBytes?: string;
3893
4988
  /**
3894
4989
  * Unix timestamp in seconds at which this output was consumed.
3895
4990
  */
@@ -4058,6 +5153,41 @@ type ListCChainAtomicTransactionsResponse = {
4058
5153
  chainInfo: PrimaryNetworkChainInfo;
4059
5154
  };
4060
5155
 
5156
+ type BlockchainInfo = {
5157
+ chainName: string;
5158
+ vmId: string;
5159
+ /**
5160
+ * 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
5161
+ */
5162
+ genesisData?: (EvmGenesisDto | string);
5163
+ };
5164
+
5165
+ type L1ValidatorDetailsTransaction = {
5166
+ /**
5167
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
5168
+ */
5169
+ validationId: string;
5170
+ /**
5171
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
5172
+ */
5173
+ validationIdHex: string;
5174
+ nodeId: string;
5175
+ subnetId: string;
5176
+ /**
5177
+ * 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
5178
+ */
5179
+ weight: number;
5180
+ /**
5181
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
5182
+ */
5183
+ remainingBalance: number;
5184
+ /**
5185
+ * 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
5186
+ */
5187
+ balanceChange?: number;
5188
+ blsCredentials?: Record<string, any>;
5189
+ };
5190
+
4061
5191
  declare enum PChainTransactionType {
4062
5192
  ADD_VALIDATOR_TX = "AddValidatorTx",
4063
5193
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
@@ -4074,14 +5204,17 @@ declare enum PChainTransactionType {
4074
5204
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4075
5205
  BASE_TX = "BaseTx",
4076
5206
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4077
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
4078
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4079
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4080
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4081
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
5207
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5208
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5209
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5210
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5211
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4082
5212
  UNKNOWN = "UNKNOWN"
4083
5213
  }
4084
5214
 
5215
+ /**
5216
+ * Indicates whether the UTXO is staked or transferable
5217
+ */
4085
5218
  declare enum UtxoType {
4086
5219
  STAKE = "STAKE",
4087
5220
  TRANSFER = "TRANSFER"
@@ -4109,6 +5242,10 @@ type PChainUtxo = {
4109
5242
  * UTXO ID for this output.
4110
5243
  */
4111
5244
  utxoId: string;
5245
+ /**
5246
+ * The bytes of the UTXO
5247
+ */
5248
+ utxoBytes?: string;
4112
5249
  /**
4113
5250
  * @deprecated
4114
5251
  */
@@ -4119,40 +5256,45 @@ type PChainUtxo = {
4119
5256
  assetId: string;
4120
5257
  blockNumber: string;
4121
5258
  blockTimestamp: number;
5259
+ /**
5260
+ * Block height in which the transaction consuming this UTXO was included
5261
+ */
4122
5262
  consumingBlockNumber?: string;
5263
+ /**
5264
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
5265
+ */
4123
5266
  consumingBlockTimestamp?: number;
5267
+ /**
5268
+ * Timestamp in seconds after which this UTXO can be consumed
5269
+ */
4124
5270
  platformLocktime?: number;
5271
+ /**
5272
+ * The index of the UTXO in the transaction
5273
+ */
4125
5274
  outputIndex: number;
4126
5275
  rewardType?: RewardType;
5276
+ /**
5277
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
5278
+ */
4127
5279
  stakeableLocktime?: number;
4128
5280
  staked?: boolean;
4129
- threshold?: number;
4130
- txHash: string;
4131
- utxoEndTimestamp?: number;
4132
- utxoStartTimestamp?: number;
4133
- utxoType: UtxoType;
4134
- };
4135
-
4136
- type SoVDetailsTransaction = {
4137
5281
  /**
4138
- * Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
5282
+ * The minimum number of signatures required to spend this UTXO
4139
5283
  */
4140
- validationId: string;
4141
- nodeId: string;
4142
- subnetId: string;
5284
+ threshold?: number;
4143
5285
  /**
4144
- * Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
5286
+ * The hash of the transaction that created this UTXO
4145
5287
  */
4146
- weight: number;
5288
+ txHash: string;
4147
5289
  /**
4148
- * Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
5290
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
4149
5291
  */
4150
- remainingBalance: number;
5292
+ utxoEndTimestamp?: number;
4151
5293
  /**
4152
- * The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
5294
+ * Timestamp in seconds at which the staked UTXO was locked.
4153
5295
  */
4154
- balanceChange?: number;
4155
- blsCredentials?: Record<string, any>;
5296
+ utxoStartTimestamp?: number;
5297
+ utxoType: UtxoType;
4156
5298
  };
4157
5299
 
4158
5300
  type PChainTransaction = {
@@ -4165,9 +5307,18 @@ type PChainTransaction = {
4165
5307
  * The block finality timestamp.
4166
5308
  */
4167
5309
  blockTimestamp: number;
5310
+ /**
5311
+ * The height of the block in which the transaction was included
5312
+ */
4168
5313
  blockNumber: string;
4169
5314
  blockHash: string;
5315
+ /**
5316
+ * The consumed UTXOs of the transaction
5317
+ */
4170
5318
  consumedUtxos: Array<PChainUtxo>;
5319
+ /**
5320
+ * The newly created UTXOs of the transaction
5321
+ */
4171
5322
  emittedUtxos: Array<PChainUtxo>;
4172
5323
  /**
4173
5324
  * Source chain for an atomic transaction.
@@ -4178,11 +5329,11 @@ type PChainTransaction = {
4178
5329
  */
4179
5330
  destinationChain?: string;
4180
5331
  /**
4181
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5332
+ * 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
4182
5333
  */
4183
5334
  value: Array<AssetAmount>;
4184
5335
  /**
4185
- * 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 nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
4186
5337
  */
4187
5338
  amountBurned: Array<AssetAmount>;
4188
5339
  /**
@@ -4190,9 +5341,9 @@ type PChainTransaction = {
4190
5341
  */
4191
5342
  amountStaked: Array<AssetAmount>;
4192
5343
  /**
4193
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
5344
+ * 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.
4194
5345
  */
4195
- amountSovBalanceBurned: Array<AssetAmount>;
5346
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
4196
5347
  /**
4197
5348
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4198
5349
  */
@@ -4202,11 +5353,11 @@ type PChainTransaction = {
4202
5353
  */
4203
5354
  endTimestamp?: number;
4204
5355
  /**
4205
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
5356
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
4206
5357
  */
4207
5358
  delegationFeePercent?: string;
4208
5359
  /**
4209
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5360
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4210
5361
  */
4211
5362
  nodeId?: string;
4212
5363
  /**
@@ -4214,22 +5365,25 @@ type PChainTransaction = {
4214
5365
  */
4215
5366
  subnetId?: string;
4216
5367
  /**
4217
- * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
5368
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
4218
5369
  */
4219
5370
  l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
4220
5371
  /**
4221
- * Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
5372
+ * 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
4222
5373
  */
4223
- l1ValidatorDetails?: Array<SoVDetailsTransaction>;
5374
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
4224
5375
  /**
4225
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
5376
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4226
5377
  */
4227
5378
  estimatedReward?: string;
5379
+ /**
5380
+ * Reward transaction hash for the completed validations or delegations
5381
+ */
4228
5382
  rewardTxHash?: string;
4229
5383
  rewardAddresses?: Array<string>;
4230
5384
  memo?: string;
4231
5385
  /**
4232
- * Present for RewardValidatorTx
5386
+ * Staking transaction corresponding to the RewardValidatorTx
4233
5387
  */
4234
5388
  stakingTxHash?: string;
4235
5389
  /**
@@ -4237,9 +5391,13 @@ type PChainTransaction = {
4237
5391
  */
4238
5392
  subnetOwnershipInfo?: SubnetOwnershipInfo;
4239
5393
  /**
4240
- * Present for AddPermissionlessValidatorTx
5394
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
4241
5395
  */
4242
5396
  blsCredentials?: BlsCredentials;
5397
+ /**
5398
+ * Details of the blockchain that was created in the CreateChainTx
5399
+ */
5400
+ blockchainInfo?: BlockchainInfo;
4243
5401
  };
4244
5402
 
4245
5403
  type ListPChainTransactionsResponse = {
@@ -4422,11 +5580,11 @@ declare enum PrimaryNetworkTxType {
4422
5580
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4423
5581
  BASE_TX = "BaseTx",
4424
5582
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4425
- CONVERT_SUBNET_TX = "ConvertSubnetTx",
4426
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4427
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4428
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4429
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
5583
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
5584
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
5585
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
5586
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
5587
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
4430
5588
  UNKNOWN = "UNKNOWN",
4431
5589
  CREATE_ASSET_TX = "CreateAssetTx",
4432
5590
  OPERATION_TX = "OperationTx"
@@ -4461,13 +5619,13 @@ declare class PrimaryNetworkTransactionsService {
4461
5619
  *
4462
5620
  * 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.
4463
5621
  *
4464
- * For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well.
5622
+ * 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.
4465
5623
  *
4466
5624
  * 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.
4467
5625
  * @returns any Successful response
4468
5626
  * @throws ApiError
4469
5627
  */
4470
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
5628
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
4471
5629
  /**
4472
5630
  * A primary network blockchain id or alias.
4473
5631
  */
@@ -4480,7 +5638,7 @@ declare class PrimaryNetworkTransactionsService {
4480
5638
  * 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.
4481
5639
  */
4482
5640
  addresses?: string;
4483
- sovValidationId?: string;
5641
+ l1ValidationId?: string;
4484
5642
  /**
4485
5643
  * Query param for filtering items based on transaction types.
4486
5644
  */
@@ -4610,6 +5768,18 @@ type ListUtxosResponse = {
4610
5768
  chainInfo: PrimaryNetworkChainInfo;
4611
5769
  };
4612
5770
 
5771
+ type PrimaryNetworkAddressesBodyDto = {
5772
+ /**
5773
+ * Comma-separated list of primary network addresses
5774
+ */
5775
+ addresses: string;
5776
+ };
5777
+
5778
+ declare enum UtxosSortByOption {
5779
+ TIMESTAMP = "timestamp",
5780
+ AMOUNT = "amount"
5781
+ }
5782
+
4613
5783
  declare class PrimaryNetworkUtxOsService {
4614
5784
  readonly httpRequest: BaseHttpRequest;
4615
5785
  constructor(httpRequest: BaseHttpRequest);
@@ -4619,7 +5789,7 @@ declare class PrimaryNetworkUtxOsService {
4619
5789
  * @returns any Successful response
4620
5790
  * @throws ApiError
4621
5791
  */
4622
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5792
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
4623
5793
  /**
4624
5794
  * A primary network blockchain id or alias.
4625
5795
  */
@@ -4644,10 +5814,63 @@ declare class PrimaryNetworkUtxOsService {
4644
5814
  * Asset ID for any asset (only applicable X-Chain)
4645
5815
  */
4646
5816
  assetId?: string;
5817
+ /**
5818
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5819
+ */
5820
+ minUtxoAmount?: number;
5821
+ /**
5822
+ * Boolean filter to include spent UTXOs.
5823
+ */
5824
+ includeSpent?: boolean;
5825
+ /**
5826
+ * Which property to sort by, in conjunction with sortOrder.
5827
+ */
5828
+ sortBy?: UtxosSortByOption;
5829
+ /**
5830
+ * 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.
5831
+ */
5832
+ sortOrder?: SortOrder;
5833
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5834
+ /**
5835
+ * List UTXOs v2 - Supports querying for more addresses
5836
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5837
+ * @returns any Successful response
5838
+ * @throws ApiError
5839
+ */
5840
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5841
+ /**
5842
+ * A primary network blockchain id or alias.
5843
+ */
5844
+ blockchainId: BlockchainId;
5845
+ /**
5846
+ * Either mainnet or testnet/fuji.
5847
+ */
5848
+ network: Network;
5849
+ requestBody: PrimaryNetworkAddressesBodyDto;
5850
+ /**
5851
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5852
+ */
5853
+ pageToken?: string;
5854
+ /**
5855
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5856
+ */
5857
+ pageSize?: number;
5858
+ /**
5859
+ * Asset ID for any asset (only applicable X-Chain)
5860
+ */
5861
+ assetId?: string;
5862
+ /**
5863
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5864
+ */
5865
+ minUtxoAmount?: number;
4647
5866
  /**
4648
5867
  * Boolean filter to include spent UTXOs.
4649
5868
  */
4650
5869
  includeSpent?: boolean;
5870
+ /**
5871
+ * Which property to sort by, in conjunction with sortOrder.
5872
+ */
5873
+ sortBy?: UtxosSortByOption;
4651
5874
  /**
4652
5875
  * 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.
4653
5876
  */
@@ -4762,15 +5985,29 @@ type SignatureAggregationResponse = {
4762
5985
 
4763
5986
  type SignatureAggregatorRequest = {
4764
5987
  /**
4765
- * Must be defined if justification is not defined
5988
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
4766
5989
  */
4767
5990
  message?: string;
4768
5991
  /**
4769
- * Must be defined if message is not defined
5992
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
4770
5993
  */
4771
5994
  justification?: string;
5995
+ /**
5996
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
5997
+ */
4772
5998
  signingSubnetId?: string;
5999
+ /**
6000
+ * 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.
6001
+ */
4773
6002
  quorumPercentage?: number;
6003
+ /**
6004
+ * 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.
6005
+ */
6006
+ quorumPercentageBuffer?: number;
6007
+ /**
6008
+ * 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.
6009
+ */
6010
+ pChainHeight?: number;
4774
6011
  };
4775
6012
 
4776
6013
  declare class SignatureAggregatorService {
@@ -4782,9 +6019,29 @@ declare class SignatureAggregatorService {
4782
6019
  * @returns SignatureAggregationResponse Successful response
4783
6020
  * @throws ApiError
4784
6021
  */
4785
- aggregateSignatures({ requestBody, }: {
6022
+ aggregateSignatures({ network, requestBody, }: {
6023
+ /**
6024
+ * Either mainnet or testnet/fuji.
6025
+ */
6026
+ network: Network;
4786
6027
  requestBody: SignatureAggregatorRequest;
4787
6028
  }): CancelablePromise<SignatureAggregationResponse>;
6029
+ /**
6030
+ * Get Aggregated Signatures
6031
+ * Get Aggregated Signatures for a P-Chain L1 related Warp Message.
6032
+ * @returns SignatureAggregationResponse Successful response
6033
+ * @throws ApiError
6034
+ */
6035
+ getAggregatedSignatures({ network, txHash, }: {
6036
+ /**
6037
+ * Either mainnet or testnet/fuji.
6038
+ */
6039
+ network: Network;
6040
+ /**
6041
+ * A primary network (P or X chain) transaction hash.
6042
+ */
6043
+ txHash: string;
6044
+ }): CancelablePromise<SignatureAggregationResponse>;
4788
6045
  }
4789
6046
 
4790
6047
  type TeleporterDestinationTransaction = {
@@ -4918,15 +6175,17 @@ type ListTeleporterMessagesResponse = {
4918
6175
  * 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.
4919
6176
  */
4920
6177
  nextPageToken?: string;
4921
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
6178
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
4922
6179
  };
4923
6180
 
4924
6181
  declare class TeleporterService {
4925
6182
  readonly httpRequest: BaseHttpRequest;
4926
6183
  constructor(httpRequest: BaseHttpRequest);
4927
6184
  /**
4928
- * Get a teleporter message
4929
- * Gets a teleporter message by message ID.
6185
+ * @deprecated
6186
+ * **[Deprecated]** Gets a teleporter message by message ID.
6187
+ *
6188
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
4930
6189
  * @returns any Successful response
4931
6190
  * @throws ApiError
4932
6191
  */
@@ -4937,8 +6196,10 @@ declare class TeleporterService {
4937
6196
  messageId: string;
4938
6197
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4939
6198
  /**
4940
- * List teleporter messages
4941
- * Lists teleporter messages. Ordered by timestamp in descending order.
6199
+ * @deprecated
6200
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
6201
+ *
6202
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
4942
6203
  * @returns ListTeleporterMessagesResponse Successful response
4943
6204
  * @throws ApiError
4944
6205
  */
@@ -4977,8 +6238,10 @@ declare class TeleporterService {
4977
6238
  network?: Network;
4978
6239
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4979
6240
  /**
4980
- * List teleporter messages by address
4981
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
6241
+ * @deprecated
6242
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
6243
+ *
6244
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
4982
6245
  * @returns ListTeleporterMessagesResponse Successful response
4983
6246
  * @throws ApiError
4984
6247
  */
@@ -5011,68 +6274,212 @@ type AddressesChangeRequest = {
5011
6274
 
5012
6275
  type AddressActivityMetadata = {
5013
6276
  /**
5014
- * Ethereum address(es) for the address_activity event type
6277
+ * Array of hexadecimal strings of the event signatures.
6278
+ */
6279
+ eventSignatures?: Array<string>;
6280
+ /**
6281
+ * 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.
5015
6282
  */
5016
6283
  addresses: Array<string>;
6284
+ };
6285
+
6286
+ type EVMAddressActivityRequest = {
6287
+ eventType: EVMAddressActivityRequest.eventType;
6288
+ url: string;
6289
+ name?: string;
6290
+ description?: string;
6291
+ chainId: string;
6292
+ metadata: AddressActivityMetadata;
5017
6293
  /**
5018
- * Array of hexadecimal strings of the event signatures.
6294
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
5019
6295
  */
5020
- eventSignatures?: Array<string>;
6296
+ includeInternalTxs?: boolean;
6297
+ /**
6298
+ * Whether to include logs in the webhook payload.
6299
+ */
6300
+ includeLogs?: boolean;
5021
6301
  };
6302
+ declare namespace EVMAddressActivityRequest {
6303
+ enum eventType {
6304
+ ADDRESS_ACTIVITY = "address_activity"
6305
+ }
6306
+ }
5022
6307
 
5023
- declare enum EventType {
6308
+ declare enum AddressActivityEventType {
5024
6309
  ADDRESS_ACTIVITY = "address_activity"
5025
6310
  }
5026
6311
 
5027
- type CreateWebhookRequest = {
6312
+ declare enum WebhookStatusType {
6313
+ ACTIVE = "active",
6314
+ INACTIVE = "inactive"
6315
+ }
6316
+
6317
+ type EVMAddressActivityResponse = {
6318
+ id: string;
5028
6319
  url: string;
5029
6320
  chainId: string;
5030
- eventType: EventType;
6321
+ status: WebhookStatusType;
6322
+ createdAt: number;
6323
+ name: string;
6324
+ description: string;
6325
+ eventType: AddressActivityEventType;
5031
6326
  metadata: AddressActivityMetadata;
5032
- name?: string;
5033
- description?: string;
5034
6327
  /**
5035
- * Whether to include traces in the webhook payload.
6328
+ * Whether to include traces in the webhook payload.
6329
+ */
6330
+ includeInternalTxs?: boolean;
6331
+ /**
6332
+ * Whether to include logs in the webhook payload.
6333
+ */
6334
+ includeLogs?: boolean;
6335
+ };
6336
+
6337
+ type ListWebhookAddressesResponse = {
6338
+ /**
6339
+ * 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.
6340
+ */
6341
+ nextPageToken?: string;
6342
+ addresses: Array<string>;
6343
+ totalAddresses: number;
6344
+ };
6345
+
6346
+ declare enum PrimaryNetworkAddressActivityEventType {
6347
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6348
+ }
6349
+
6350
+ /**
6351
+ * The type of key to monitor for the address activity event type.
6352
+ */
6353
+ declare enum PlatformAddressActivityKeyType {
6354
+ ADDRESSES = "addresses"
6355
+ }
6356
+
6357
+ /**
6358
+ * Array of address activity sub-event types
6359
+ */
6360
+ declare enum PrimaryNetworkAddressActivitySubEventType {
6361
+ BALANCE_CHANGE = "balance_change",
6362
+ BALANCE_THRESHOLD = "balance_threshold",
6363
+ REWARD_DISTRIBUTION = "reward_distribution"
6364
+ }
6365
+
6366
+ type PrimaryNetworkAddressActivitySubEvents = {
6367
+ addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
6368
+ };
6369
+
6370
+ /**
6371
+ * Type of balance to monitor
6372
+ */
6373
+ declare enum CommonBalanceType {
6374
+ UNLOCKED_UNSTAKED = "unlockedUnstaked",
6375
+ UNLOCKED_STAKED = "unlockedStaked",
6376
+ LOCKED_PLATFORM = "lockedPlatform",
6377
+ LOCKED_STAKEABLE = "lockedStakeable",
6378
+ LOCKED_STAKED = "lockedStaked",
6379
+ PENDING_STAKED = "pendingStaked",
6380
+ UNLOCKED = "unlocked",
6381
+ LOCKED = "locked",
6382
+ ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
6383
+ ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
6384
+ }
6385
+
6386
+ type PrimaryNetworkBalanceThresholdFilter = {
6387
+ balanceType: CommonBalanceType;
6388
+ /**
6389
+ * Threshold for balance corresponding to balanceType in nAVAX
6390
+ */
6391
+ balanceThreshold: string;
6392
+ };
6393
+
6394
+ type PrimaryNetworkAddressActivityMetadata = {
6395
+ /**
6396
+ * Array of hexadecimal strings of the event signatures.
6397
+ */
6398
+ eventSignatures?: Array<string>;
6399
+ keyType: PlatformAddressActivityKeyType;
6400
+ /**
6401
+ * 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.
6402
+ */
6403
+ keys: Array<string>;
6404
+ /**
6405
+ * Sub-events to monitor
6406
+ */
6407
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
6408
+ /**
6409
+ * Balance threshold filter
6410
+ */
6411
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
6412
+ };
6413
+
6414
+ type PrimaryNetworkAddressActivityResponse = {
6415
+ id: string;
6416
+ url: string;
6417
+ chainId: string;
6418
+ status: WebhookStatusType;
6419
+ createdAt: number;
6420
+ name: string;
6421
+ description: string;
6422
+ eventType: PrimaryNetworkAddressActivityEventType;
6423
+ metadata: PrimaryNetworkAddressActivityMetadata;
6424
+ };
6425
+
6426
+ declare enum ValidatorActivityEventType {
6427
+ VALIDATOR_ACTIVITY = "validator_activity"
6428
+ }
6429
+
6430
+ /**
6431
+ * The type of key to monitor for the validator activity event type.
6432
+ */
6433
+ declare enum ValidatorActivityKeyType {
6434
+ NODE_ID = "nodeId",
6435
+ SUBNET_ID = "subnetId"
6436
+ }
6437
+
6438
+ type ValidatorActivitySubEvents = {
6439
+ /**
6440
+ * Array of validator activity sub-event types
6441
+ */
6442
+ validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
6443
+ };
6444
+
6445
+ type ValidatorActivityMetadata = {
6446
+ /**
6447
+ * Array of hexadecimal strings of the event signatures.
6448
+ */
6449
+ eventSignatures?: Array<string>;
6450
+ keyType: ValidatorActivityKeyType;
6451
+ /**
6452
+ * Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
5036
6453
  */
5037
- includeInternalTxs?: boolean;
6454
+ keys: Array<string>;
5038
6455
  /**
5039
- * Whether to include logs in the webhook payload.
6456
+ * Sub-events to monitor
5040
6457
  */
5041
- includeLogs?: boolean;
5042
- };
5043
-
5044
- type ListWebhookAddressesResponse = {
6458
+ subEvents: ValidatorActivitySubEvents;
5045
6459
  /**
5046
- * 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.
6460
+ * Array of node IDs to filter the events
5047
6461
  */
5048
- nextPageToken?: string;
5049
- addresses: Array<string>;
5050
- totalAddresses: number;
5051
- };
5052
-
5053
- declare enum WebhookStatusType {
5054
- ACTIVE = "active",
5055
- INACTIVE = "inactive"
5056
- }
5057
-
5058
- type WebhookResponse = {
5059
- id: string;
5060
- eventType: EventType;
5061
- metadata: AddressActivityMetadata;
6462
+ nodeIds?: Array<string>;
5062
6463
  /**
5063
- * Whether to include traces in the webhook payload.
6464
+ * Array of subnet IDs to filter the events
5064
6465
  */
5065
- includeInternalTxs?: boolean;
6466
+ subnetIds?: Array<string>;
5066
6467
  /**
5067
- * Whether to include logs in the webhook payload.
6468
+ * L1 validator fee balance threshold in nAVAX
5068
6469
  */
5069
- includeLogs?: boolean;
6470
+ l1ValidatorFeeBalanceThreshold?: string;
6471
+ };
6472
+
6473
+ type ValidatorActivityResponse = {
6474
+ id: string;
5070
6475
  url: string;
5071
6476
  chainId: string;
5072
6477
  status: WebhookStatusType;
5073
6478
  createdAt: number;
5074
6479
  name: string;
5075
6480
  description: string;
6481
+ eventType: ValidatorActivityEventType;
6482
+ metadata: ValidatorActivityMetadata;
5076
6483
  };
5077
6484
 
5078
6485
  type ListWebhooksResponse = {
@@ -5080,8 +6487,31 @@ type ListWebhooksResponse = {
5080
6487
  * 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.
5081
6488
  */
5082
6489
  nextPageToken?: string;
5083
- webhooks: Array<WebhookResponse>;
6490
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
6491
+ };
6492
+
6493
+ declare enum PrimaryNetworkType {
6494
+ MAINNET = "mainnet",
6495
+ FUJI = "fuji"
6496
+ }
6497
+
6498
+ type PrimaryNetworkAddressActivityRequest = {
6499
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6500
+ url: string;
6501
+ name?: string;
6502
+ description?: string;
6503
+ network: PrimaryNetworkType;
6504
+ chainId: string;
6505
+ /**
6506
+ * Metadata for platform address activity event
6507
+ */
6508
+ metadata: PrimaryNetworkAddressActivityMetadata;
5084
6509
  };
6510
+ declare namespace PrimaryNetworkAddressActivityRequest {
6511
+ enum eventType {
6512
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
6513
+ }
6514
+ }
5085
6515
 
5086
6516
  type SharedSecretsResponse = {
5087
6517
  secret: string;
@@ -5092,10 +6522,30 @@ type UpdateWebhookRequest = {
5092
6522
  description?: string;
5093
6523
  url?: string;
5094
6524
  status?: WebhookStatusType;
6525
+ /**
6526
+ * Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
6527
+ */
5095
6528
  includeInternalTxs?: boolean;
5096
6529
  includeLogs?: boolean;
5097
6530
  };
5098
6531
 
6532
+ type ValidatorActivityRequest = {
6533
+ eventType: ValidatorActivityRequest.eventType;
6534
+ url: string;
6535
+ name?: string;
6536
+ description?: string;
6537
+ network: PrimaryNetworkType;
6538
+ /**
6539
+ * Metadata for platform validator activity event
6540
+ */
6541
+ metadata: ValidatorActivityMetadata;
6542
+ };
6543
+ declare namespace ValidatorActivityRequest {
6544
+ enum eventType {
6545
+ VALIDATOR_ACTIVITY = "validator_activity"
6546
+ }
6547
+ }
6548
+
5099
6549
  declare enum WebhookStatus {
5100
6550
  ACTIVE = "active",
5101
6551
  INACTIVE = "inactive"
@@ -5107,12 +6557,12 @@ declare class WebhooksService {
5107
6557
  /**
5108
6558
  * Create a webhook
5109
6559
  * Create a new webhook.
5110
- * @returns WebhookResponse Successful response
6560
+ * @returns any Successful response
5111
6561
  * @throws ApiError
5112
6562
  */
5113
6563
  createWebhook({ requestBody, }: {
5114
- requestBody: CreateWebhookRequest;
5115
- }): CancelablePromise<WebhookResponse>;
6564
+ requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
6565
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5116
6566
  /**
5117
6567
  * List webhooks
5118
6568
  * Lists webhooks for the user.
@@ -5136,7 +6586,7 @@ declare class WebhooksService {
5136
6586
  /**
5137
6587
  * Get a webhook by ID
5138
6588
  * Retrieves a webhook by ID.
5139
- * @returns WebhookResponse Successful response
6589
+ * @returns any Successful response
5140
6590
  * @throws ApiError
5141
6591
  */
5142
6592
  getWebhook({ id, }: {
@@ -5144,11 +6594,11 @@ declare class WebhooksService {
5144
6594
  * The webhook identifier.
5145
6595
  */
5146
6596
  id: string;
5147
- }): CancelablePromise<WebhookResponse>;
6597
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5148
6598
  /**
5149
6599
  * Deactivate a webhook
5150
6600
  * Deactivates a webhook by ID.
5151
- * @returns WebhookResponse Successful response
6601
+ * @returns any Successful response
5152
6602
  * @throws ApiError
5153
6603
  */
5154
6604
  deactivateWebhook({ id, }: {
@@ -5156,11 +6606,11 @@ declare class WebhooksService {
5156
6606
  * The webhook identifier.
5157
6607
  */
5158
6608
  id: string;
5159
- }): CancelablePromise<WebhookResponse>;
6609
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5160
6610
  /**
5161
6611
  * Update a webhook
5162
6612
  * Updates an existing webhook.
5163
- * @returns WebhookResponse Successful response
6613
+ * @returns any Successful response
5164
6614
  * @throws ApiError
5165
6615
  */
5166
6616
  updateWebhook({ id, requestBody, }: {
@@ -5169,14 +6619,14 @@ declare class WebhooksService {
5169
6619
  */
5170
6620
  id: string;
5171
6621
  requestBody: UpdateWebhookRequest;
5172
- }): CancelablePromise<WebhookResponse>;
6622
+ }): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
5173
6623
  /**
5174
- * Generate a shared secret
5175
- * Generates a new shared secret.
6624
+ * Generate or rotate a shared secret
6625
+ * Generates a new shared secret or rotate an existing one.
5176
6626
  * @returns SharedSecretsResponse Successful response
5177
6627
  * @throws ApiError
5178
6628
  */
5179
- generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
6629
+ generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5180
6630
  /**
5181
6631
  * Get a shared secret
5182
6632
  * Get a previously generated shared secret.
@@ -5185,9 +6635,9 @@ declare class WebhooksService {
5185
6635
  */
5186
6636
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
5187
6637
  /**
5188
- * Add addresses to webhook
5189
- * Add addresses to webhook.
5190
- * @returns WebhookResponse Successful response
6638
+ * Add addresses to EVM activity webhook
6639
+ * Add addresses to webhook. Only valid for EVM activity webhooks.
6640
+ * @returns EVMAddressActivityResponse Successful response
5191
6641
  * @throws ApiError
5192
6642
  */
5193
6643
  addAddressesToWebhook({ id, requestBody, }: {
@@ -5196,11 +6646,11 @@ declare class WebhooksService {
5196
6646
  */
5197
6647
  id: string;
5198
6648
  requestBody: AddressesChangeRequest;
5199
- }): CancelablePromise<WebhookResponse>;
6649
+ }): CancelablePromise<EVMAddressActivityResponse>;
5200
6650
  /**
5201
- * Remove addresses from webhook
5202
- * Remove addresses from webhook.
5203
- * @returns WebhookResponse Successful response
6651
+ * Remove addresses from EVM activity webhook
6652
+ * Remove addresses from webhook. Only valid for EVM activity webhooks.
6653
+ * @returns EVMAddressActivityResponse Successful response
5204
6654
  * @throws ApiError
5205
6655
  */
5206
6656
  removeAddressesFromWebhook({ id, requestBody, }: {
@@ -5209,10 +6659,10 @@ declare class WebhooksService {
5209
6659
  */
5210
6660
  id: string;
5211
6661
  requestBody: AddressesChangeRequest;
5212
- }): CancelablePromise<WebhookResponse>;
6662
+ }): CancelablePromise<EVMAddressActivityResponse>;
5213
6663
  /**
5214
- * List adresses by webhook
5215
- * List adresses by webhook.
6664
+ * List adresses by EVM activity webhooks
6665
+ * List adresses by webhook. Only valid for EVM activity webhooks.
5216
6666
  * @returns ListWebhookAddressesResponse Successful response
5217
6667
  * @throws ApiError
5218
6668
  */
@@ -5234,6 +6684,7 @@ declare class WebhooksService {
5234
6684
 
5235
6685
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
5236
6686
  declare class Glacier {
6687
+ readonly avaxSupply: AvaxSupplyService;
5237
6688
  readonly dataApiUsageMetrics: DataApiUsageMetricsService;
5238
6689
  readonly default: DefaultService;
5239
6690
  readonly evmBalances: EvmBalancesService;
@@ -5242,7 +6693,9 @@ declare class Glacier {
5242
6693
  readonly evmContracts: EvmContractsService;
5243
6694
  readonly evmTransactions: EvmTransactionsService;
5244
6695
  readonly healthCheck: HealthCheckService;
6696
+ readonly interchainMessaging: InterchainMessagingService;
5245
6697
  readonly nfTs: NfTsService;
6698
+ readonly notifications: NotificationsService;
5246
6699
  readonly operations: OperationsService;
5247
6700
  readonly primaryNetwork: PrimaryNetworkService;
5248
6701
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -5275,6 +6728,17 @@ declare class ApiError extends Error {
5275
6728
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
5276
6729
  }
5277
6730
 
6731
+ type AccessListData = {
6732
+ /**
6733
+ * Access Address
6734
+ */
6735
+ accessAddresses: string;
6736
+ /**
6737
+ * Storage keys
6738
+ */
6739
+ storageKeys: Array<string>;
6740
+ };
6741
+
5278
6742
  type BadGateway = {
5279
6743
  /**
5280
6744
  * The error message describing the reason for the exception
@@ -5309,6 +6773,76 @@ type DataListChainsResponse = {
5309
6773
  chains: Array<ChainInfo>;
5310
6774
  };
5311
6775
 
6776
+ type ERCToken = {
6777
+ /**
6778
+ * Token contract address
6779
+ */
6780
+ address: string;
6781
+ /**
6782
+ * Token name
6783
+ */
6784
+ name: string;
6785
+ /**
6786
+ * Token symbol
6787
+ */
6788
+ symbol: string;
6789
+ /**
6790
+ * Token decimals
6791
+ */
6792
+ decimals: number;
6793
+ /**
6794
+ * Value including decimals
6795
+ */
6796
+ valueWithDecimals: string;
6797
+ };
6798
+
6799
+ type ERCTransfer = {
6800
+ /**
6801
+ * Transaction hash
6802
+ */
6803
+ transactionHash: string;
6804
+ /**
6805
+ * Transfer type
6806
+ */
6807
+ type: string;
6808
+ /**
6809
+ * Sender address
6810
+ */
6811
+ from: string;
6812
+ /**
6813
+ * Recipient address
6814
+ */
6815
+ to: string;
6816
+ /**
6817
+ * Amount transferred
6818
+ */
6819
+ value: string;
6820
+ /**
6821
+ * Token Id
6822
+ */
6823
+ tokenId?: string;
6824
+ /**
6825
+ * Block timestamp
6826
+ */
6827
+ blockTimestamp: number;
6828
+ /**
6829
+ * Log index
6830
+ */
6831
+ logIndex: number;
6832
+ /**
6833
+ * erc20 Token details
6834
+ */
6835
+ erc20Token?: ERCToken;
6836
+ /**
6837
+ * erc721 Token details
6838
+ */
6839
+ erc721Token?: ERCToken;
6840
+ /**
6841
+ * erc1155 Token details
6842
+ */
6843
+ erc1155Token?: ERCToken;
6844
+ };
6845
+
5312
6846
  type Forbidden = {
5313
6847
  /**
5314
6848
  * The error message describing the reason for the exception
@@ -5339,6 +6873,64 @@ type InternalServerError = {
5339
6873
  error: string;
5340
6874
  };
5341
6875
 
6876
+ type Log = {
6877
+ /**
6878
+ * Contract address
6879
+ */
6880
+ address: string;
6881
+ /**
6882
+ * First topic
6883
+ */
6884
+ topic0: string;
6885
+ /**
6886
+ * Second topic (optional)
6887
+ */
6888
+ topic1?: string;
6889
+ /**
6890
+ * Third topic (optional)
6891
+ */
6892
+ topic2?: string;
6893
+ /**
6894
+ * Fourth topic (optional)
6895
+ */
6896
+ topic3?: string;
6897
+ /**
6898
+ * Event data
6899
+ */
6900
+ data: string;
6901
+ /**
6902
+ * Transaction index
6903
+ */
6904
+ transactionIndex: number;
6905
+ /**
6906
+ * Log index
6907
+ */
6908
+ logIndex: number;
6909
+ /**
6910
+ * Indicates if the log was removed
6911
+ */
6912
+ removed: boolean;
6913
+ };
6914
+
6915
+ type NetworkTokenInfo = {
6916
+ /**
6917
+ * Token name
6918
+ */
6919
+ tokenName?: string;
6920
+ /**
6921
+ * Token symbol
6922
+ */
6923
+ tokenSymbol?: string;
6924
+ /**
6925
+ * Token decimals
6926
+ */
6927
+ tokenDecimals?: number;
6928
+ /**
6929
+ * Value including decimals
6930
+ */
6931
+ valueWithDecimals?: string;
6932
+ };
6933
+
5342
6934
  type NextPageToken = {
5343
6935
  /**
5344
6936
  * 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.
@@ -5391,6 +6983,163 @@ type TooManyRequests = {
5391
6983
  error: string;
5392
6984
  };
5393
6985
 
6986
+ type WebhookInternalTransaction = {
6987
+ /**
6988
+ * Sender address
6989
+ */
6990
+ from: string;
6991
+ /**
6992
+ * Recipient address
6993
+ */
6994
+ to: string;
6995
+ /**
6996
+ * Internal transaction type
6997
+ */
6998
+ internalTxType: string;
6999
+ /**
7000
+ * Value transferred
7001
+ */
7002
+ value: string;
7003
+ /**
7004
+ * Gas used
7005
+ */
7006
+ gasUsed: string;
7007
+ /**
7008
+ * Gas limit
7009
+ */
7010
+ gasLimit: string;
7011
+ /**
7012
+ * Transaction hash
7013
+ */
7014
+ transactionHash: string;
7015
+ };
7016
+
7017
+ type Transaction = {
7018
+ /**
7019
+ * Block hash of the transaction
7020
+ */
7021
+ blockHash: string;
7022
+ /**
7023
+ * Block number of the transaction
7024
+ */
7025
+ blockNumber: string;
7026
+ /**
7027
+ * Sender address
7028
+ */
7029
+ from: string;
7030
+ /**
7031
+ * Gas limit for the transaction
7032
+ */
7033
+ gas: string;
7034
+ /**
7035
+ * Gas price used
7036
+ */
7037
+ gasPrice: string;
7038
+ /**
7039
+ * Maximum fee per gas
7040
+ */
7041
+ maxFeePerGas: string;
7042
+ /**
7043
+ * Maximum priority fee per gas
7044
+ */
7045
+ maxPriorityFeePerGas: string;
7046
+ /**
7047
+ * Transaction hash
7048
+ */
7049
+ txHash: string;
7050
+ /**
7051
+ * Transaction status
7052
+ */
7053
+ txStatus: string;
7054
+ /**
7055
+ * Input data
7056
+ */
7057
+ input: string;
7058
+ /**
7059
+ * Nonce value
7060
+ */
7061
+ nonce: string;
7062
+ /**
7063
+ * Recipient address
7064
+ */
7065
+ to: string;
7066
+ /**
7067
+ * Transaction index
7068
+ */
7069
+ transactionIndex: number;
7070
+ /**
7071
+ * Value transferred in the transaction
7072
+ */
7073
+ value: string;
7074
+ /**
7075
+ * Transaction type
7076
+ */
7077
+ type: number;
7078
+ /**
7079
+ * Chain ID of the network
7080
+ */
7081
+ chainId: string;
7082
+ /**
7083
+ * Cumulative gas used
7084
+ */
7085
+ receiptCumulativeGasUsed: string;
7086
+ /**
7087
+ * Gas used
7088
+ */
7089
+ receiptGasUsed: string;
7090
+ /**
7091
+ * Effective gas price
7092
+ */
7093
+ receiptEffectiveGasPrice: string;
7094
+ /**
7095
+ * Receipt root
7096
+ */
7097
+ receiptRoot: string;
7098
+ /**
7099
+ * Block timestamp
7100
+ */
7101
+ blockTimestamp: number;
7102
+ /**
7103
+ * Contract address (optional)
7104
+ */
7105
+ contractAddress?: string;
7106
+ /**
7107
+ * ERC20 transfers
7108
+ */
7109
+ erc20Transfers: Array<ERCTransfer>;
7110
+ /**
7111
+ * ERC721 transfers
7112
+ */
7113
+ erc721Transfers: Array<ERCTransfer>;
7114
+ /**
7115
+ * ERC1155 transfers
7116
+ */
7117
+ erc1155Transfers: Array<ERCTransfer>;
7118
+ /**
7119
+ * Internal transactions (optional)
7120
+ */
7121
+ internalTransactions?: Array<WebhookInternalTransaction>;
7122
+ /**
7123
+ * Access list (optional)
7124
+ */
7125
+ accessList?: Array<AccessListData>;
7126
+ /**
7127
+ * Network token info (optional)
7128
+ */
7129
+ networkToken?: NetworkTokenInfo;
7130
+ };
7131
+
7132
+ type TransactionEvent = {
7133
+ /**
7134
+ * Transaction details
7135
+ */
7136
+ transaction: Transaction;
7137
+ /**
7138
+ * Array of log events
7139
+ */
7140
+ logs?: Array<Log>;
7141
+ };
7142
+
5394
7143
  type Unauthorized = {
5395
7144
  /**
5396
7145
  * The error message describing the reason for the exception
@@ -5406,4 +7155,43 @@ type Unauthorized = {
5406
7155
  error: string;
5407
7156
  };
5408
7157
 
5409
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, 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, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetOnlyValidatorsResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SoVDetailsTransaction, SortByOption, SortOrder, SovDetailsFull, 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 };
7158
+ type WebhookAddressActivityResponse = {
7159
+ /**
7160
+ * Webhook ID
7161
+ */
7162
+ webhookId: string;
7163
+ /**
7164
+ * Event type
7165
+ */
7166
+ eventType: WebhookAddressActivityResponse.eventType;
7167
+ /**
7168
+ * Message ID
7169
+ */
7170
+ messageId: string;
7171
+ /**
7172
+ * Event details
7173
+ */
7174
+ event: TransactionEvent;
7175
+ };
7176
+ declare namespace WebhookAddressActivityResponse {
7177
+ /**
7178
+ * Event type
7179
+ */
7180
+ enum eventType {
7181
+ ADDRESS_ACTIVITY = "address_activity"
7182
+ }
7183
+ }
7184
+
7185
+ declare class FetchHttpRequest extends BaseHttpRequest {
7186
+ constructor(config: OpenAPIConfig);
7187
+ /**
7188
+ * Request method
7189
+ * @param options The request options from the service
7190
+ * @returns CancelablePromise<T>
7191
+ * @throws ApiError
7192
+ */
7193
+ request<T>(options: ApiRequestOptions): CancelablePromise<T>;
7194
+ }
7195
+
7196
+ 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 };
7197
+ 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 };