@avalabs/glacier-sdk 3.1.0-alpha.1 → 3.1.0-alpha.100

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 (354) hide show
  1. package/CHANGELOG.md +1754 -0
  2. package/dist/index.cjs +1 -0
  3. package/dist/index.d.ts +6116 -3184
  4. package/esm/generated/Glacier.d.ts +8 -4
  5. package/esm/generated/Glacier.js +1 -1
  6. package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
  7. package/esm/generated/core/ApiResult.d.ts +1 -1
  8. package/esm/generated/core/CancelablePromise.d.ts +2 -1
  9. package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
  10. package/esm/generated/core/OpenAPI.d.ts +2 -1
  11. package/esm/generated/core/OpenAPI.js +1 -1
  12. package/esm/generated/models/AccessListData.d.ts +12 -0
  13. package/esm/generated/models/ActiveValidatorDetails.d.ts +35 -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 +2 -2
  18. package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
  19. package/esm/generated/models/ApiFeature.d.ts +7 -0
  20. package/esm/generated/models/ApiFeature.js +1 -0
  21. package/esm/generated/models/AssetAmount.d.ts +1 -1
  22. package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
  23. package/esm/generated/models/AutoRenewDetails.d.ts +41 -0
  24. package/esm/generated/models/AutoRenewExitReason.d.ts +9 -0
  25. package/esm/generated/models/AutoRenewExitReason.js +1 -0
  26. package/esm/generated/models/AutoRenewState.d.ts +11 -0
  27. package/esm/generated/models/AutoRenewState.js +1 -0
  28. package/esm/generated/models/AutoRenewedCycle.d.ts +67 -0
  29. package/esm/generated/models/AutoRenewedCycleOutcome.d.ts +10 -0
  30. package/esm/generated/models/AutoRenewedCycleOutcome.js +1 -0
  31. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  32. package/esm/generated/models/BadGateway.d.ts +16 -0
  33. package/esm/generated/models/BadRequest.d.ts +16 -0
  34. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  35. package/esm/generated/models/Blockchain.d.ts +11 -1
  36. package/esm/generated/models/BlockchainInfo.d.ts +9 -2
  37. package/esm/generated/models/BlsCredentials.d.ts +1 -1
  38. package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
  39. package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
  40. package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
  41. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
  42. package/esm/generated/models/ChainInfo.d.ts +2 -2
  43. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  44. package/esm/generated/models/CommonBalanceType.js +1 -0
  45. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  46. package/esm/generated/models/CompletedValidatorDetails.d.ts +22 -0
  47. package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
  48. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
  49. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
  50. package/esm/generated/models/CurrentAutoRenewedCycle.d.ts +47 -0
  51. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  52. package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
  53. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  54. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  55. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  56. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  57. package/esm/generated/models/ERCToken.d.ts +24 -0
  58. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  59. package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
  60. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  61. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  62. package/esm/generated/models/EVMInput.d.ts +1 -1
  63. package/esm/generated/models/EVMOutput.d.ts +1 -1
  64. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  65. package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
  66. package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
  67. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
  68. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  69. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  70. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  71. package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
  72. package/esm/generated/models/Erc20TokenV2.js +1 -0
  73. package/esm/generated/models/Erc20Transfer.d.ts +6 -2
  74. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
  75. package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
  76. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  77. package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
  78. package/esm/generated/models/Erc721Transfer.d.ts +6 -2
  79. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
  80. package/esm/generated/models/EvmBlock.d.ts +14 -2
  81. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  82. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  83. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  84. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  85. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  86. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  87. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  88. package/esm/generated/models/Forbidden.d.ts +16 -0
  89. package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
  90. package/esm/generated/models/Geolocation.d.ts +24 -0
  91. package/esm/generated/models/GetChainResponse.d.ts +2 -2
  92. package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
  93. package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
  94. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
  95. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
  96. package/esm/generated/models/GetTransactionResponse.d.ts +7 -2
  97. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  98. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  99. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  100. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  101. package/esm/generated/models/HistoricalReward.d.ts +6 -1
  102. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  103. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  104. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  105. package/esm/generated/models/{ContractSubmissionErc20.js → IcmRewardDetails.js} +1 -1
  106. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  107. package/esm/generated/models/ImageAsset.d.ts +1 -1
  108. package/esm/generated/models/InternalServerError.d.ts +16 -0
  109. package/esm/generated/models/InternalTransaction.d.ts +6 -2
  110. package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
  111. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  112. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  113. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  114. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
  115. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  116. package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
  117. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  118. package/esm/generated/models/ListAutoRenewedCyclesResponse.d.ts +19 -0
  119. package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
  120. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
  121. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
  122. package/esm/generated/models/ListChainsResponse.d.ts +1 -1
  123. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
  124. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  125. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
  126. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
  127. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
  128. package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
  129. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
  130. package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
  131. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
  132. package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
  133. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
  134. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  135. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
  136. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
  137. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
  138. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  139. package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
  140. package/esm/generated/models/ListPChainStakingTransactionsResponse.d.ts +13 -0
  141. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
  142. package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
  143. package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
  144. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
  145. package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
  146. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
  147. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
  148. package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
  149. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  150. package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
  151. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  152. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
  153. package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
  154. package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
  155. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
  156. package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
  157. package/esm/generated/models/Log.d.ts +40 -0
  158. package/esm/generated/models/LogsFormat.d.ts +60 -0
  159. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  160. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  161. package/esm/generated/models/Method.d.ts +1 -1
  162. package/esm/generated/models/Metric.d.ts +14 -0
  163. package/esm/generated/models/Money.d.ts +1 -1
  164. package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
  165. package/esm/generated/models/NativeTransaction.d.ts +14 -2
  166. package/esm/generated/models/Network.d.ts +2 -1
  167. package/esm/generated/models/Network.js +1 -1
  168. package/esm/generated/models/NetworkToken.d.ts +1 -1
  169. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
  170. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  171. package/esm/generated/models/NextPageToken.d.ts +1 -1
  172. package/esm/generated/models/NotFound.d.ts +16 -0
  173. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  174. package/esm/generated/models/PChainBalance.d.ts +7 -1
  175. package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
  176. package/esm/generated/models/PChainStakingTransaction.d.ts +131 -0
  177. package/esm/generated/models/PChainTransaction.d.ts +56 -12
  178. package/esm/generated/models/PChainTransactionType.d.ts +8 -0
  179. package/esm/generated/models/PChainTransactionType.js +1 -1
  180. package/esm/generated/models/PChainUtxo.d.ts +32 -1
  181. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  182. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  183. package/esm/generated/models/PendingIcmMessage.js +1 -0
  184. package/esm/generated/models/PendingReward.d.ts +7 -2
  185. package/esm/generated/models/PendingValidatorDetails.d.ts +5 -0
  186. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  187. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  188. package/esm/generated/models/PricingProviders.d.ts +1 -1
  189. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  190. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  191. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  192. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  193. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  194. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  195. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  196. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  197. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  198. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  199. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  200. package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
  201. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
  202. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  203. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  204. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  205. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  206. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  207. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  208. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  209. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -0
  210. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  211. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  212. package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
  213. package/esm/generated/models/ProposerDetails.d.ts +1 -1
  214. package/esm/generated/models/RemovedValidatorDetails.d.ts +11 -0
  215. package/esm/generated/models/RequestType.d.ts +9 -0
  216. package/esm/generated/models/RequestType.js +1 -0
  217. package/esm/generated/models/ResourceLink.d.ts +1 -1
  218. package/esm/generated/models/Rewards.d.ts +1 -1
  219. package/esm/generated/models/RichAddress.d.ts +1 -1
  220. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  221. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  222. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  223. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  224. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  225. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  226. package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
  227. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  228. package/esm/generated/models/SignatureAggregatorRequest.d.ts +28 -0
  229. package/esm/generated/models/StakingDistribution.d.ts +10 -1
  230. package/esm/generated/models/StakingType.d.ts +9 -0
  231. package/esm/generated/models/StakingType.js +1 -0
  232. package/esm/generated/models/Subnet.d.ts +16 -3
  233. package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
  234. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  235. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  236. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  237. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
  238. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  239. package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
  240. package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
  241. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  242. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  243. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  244. package/esm/generated/models/Transaction.d.ts +121 -0
  245. package/esm/generated/models/TransactionDetails.d.ts +2 -2
  246. package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
  247. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  248. package/esm/generated/models/TransactionDirectionType.js +1 -0
  249. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  250. package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
  251. package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
  252. package/esm/generated/models/Unauthorized.d.ts +16 -0
  253. package/esm/generated/models/UnknownContract.d.ts +1 -1
  254. package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
  255. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  256. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  257. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  258. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  259. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  260. package/esm/generated/models/UtilityAddresses.d.ts +1 -1
  261. package/esm/generated/models/Utxo.d.ts +5 -1
  262. package/esm/generated/models/UtxoCredential.d.ts +1 -1
  263. package/esm/generated/models/UtxoType.d.ts +3 -0
  264. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  265. package/esm/generated/models/UtxosSortByOption.js +1 -0
  266. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  267. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  268. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  269. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  270. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  271. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  272. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  273. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  274. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  275. package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
  276. package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
  277. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  278. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  279. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  280. package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
  281. package/esm/generated/models/XChainBalances.d.ts +1 -1
  282. package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
  283. package/esm/generated/models/XChainVertex.d.ts +1 -1
  284. package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
  285. package/esm/generated/services/AvaxSupplyService.js +1 -0
  286. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  287. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  288. package/esm/generated/services/EvmBalancesService.d.ts +14 -14
  289. package/esm/generated/services/EvmBalancesService.js +1 -1
  290. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  291. package/esm/generated/services/EvmBlocksService.js +1 -1
  292. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  293. package/esm/generated/services/EvmChainsService.js +1 -1
  294. package/esm/generated/services/EvmContractsService.d.ts +2 -21
  295. package/esm/generated/services/EvmContractsService.js +1 -1
  296. package/esm/generated/services/EvmTransactionsService.d.ts +99 -26
  297. package/esm/generated/services/EvmTransactionsService.js +1 -1
  298. package/esm/generated/services/HealthCheckService.d.ts +11 -7
  299. package/esm/generated/services/HealthCheckService.js +1 -1
  300. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  301. package/esm/generated/services/InterchainMessagingService.js +1 -0
  302. package/esm/generated/services/NfTsService.d.ts +6 -6
  303. package/esm/generated/services/NfTsService.js +1 -1
  304. package/esm/generated/services/OperationsService.d.ts +2 -2
  305. package/esm/generated/services/OperationsService.js +1 -1
  306. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  307. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  308. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  309. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  310. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  311. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  312. package/esm/generated/services/PrimaryNetworkService.d.ts +112 -22
  313. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  314. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +15 -11
  315. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  316. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +96 -3
  317. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  318. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  319. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  320. package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
  321. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  322. package/esm/generated/services/TeleporterService.d.ts +44 -10
  323. package/esm/generated/services/TeleporterService.js +1 -1
  324. package/esm/generated/services/WebhooksService.d.ts +32 -28
  325. package/esm/generated/services/WebhooksService.js +1 -1
  326. package/esm/index.d.ts +106 -18
  327. package/esm/index.js +1 -1
  328. package/package.json +16 -7
  329. package/LICENSE.md +0 -9
  330. package/dist/index.js +0 -1
  331. package/esm/generated/models/ContractSubmissionBody.d.ts +0 -10
  332. package/esm/generated/models/ContractSubmissionErc1155.d.ts +0 -31
  333. package/esm/generated/models/ContractSubmissionErc1155.js +0 -1
  334. package/esm/generated/models/ContractSubmissionErc20.d.ts +0 -31
  335. package/esm/generated/models/ContractSubmissionErc721.d.ts +0 -29
  336. package/esm/generated/models/ContractSubmissionErc721.js +0 -1
  337. package/esm/generated/models/ContractSubmissionUnknown.d.ts +0 -25
  338. package/esm/generated/models/ContractSubmissionUnknown.js +0 -1
  339. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  340. package/esm/generated/models/EventType.d.ts +0 -5
  341. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  342. package/esm/generated/models/GlacierApiFeature.js +0 -1
  343. package/esm/generated/models/NetworkType.d.ts +0 -6
  344. package/esm/generated/models/NetworkType.js +0 -1
  345. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  346. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  347. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  348. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  349. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  350. package/esm/generated/models/UpdateContractResponse.d.ts +0 -10
  351. package/esm/generated/services/DefaultService.d.ts +0 -14
  352. package/esm/generated/services/DefaultService.js +0 -1
  353. package/esm/generated/services/RpcService.d.ts +0 -25
  354. package/esm/generated/services/RpcService.js +0 -1
@@ -1 +1 @@
1
- class t{constructor(t){this.httpRequest=t}getOperationResult({operationId:t}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:t}})}postTransactionExportJob({requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:t,mediaType:"application/json"})}}export{t as OperationsService};
1
+ class e{constructor(e){this.httpRequest=e}getOperationResult({operationId:e}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}postTransactionExportJob({requestBody:e}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:e,mediaType:"application/json",errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as OperationsService};
@@ -14,7 +14,7 @@ declare class PrimaryNetworkBalancesService {
14
14
  * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
15
15
  *
16
16
  * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
17
- * @returns any
17
+ * @returns any Successful response
18
18
  * @throws ApiError
19
19
  */
20
20
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
@@ -23,7 +23,7 @@ declare class PrimaryNetworkBalancesService {
23
23
  */
24
24
  blockchainId: BlockchainId;
25
25
  /**
26
- * Either mainnet or a testnet.
26
+ * Either mainnet or testnet/fuji.
27
27
  */
28
28
  network: Network;
29
29
  /**
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:s,blockTimestamp:t,addresses:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:s},query:{blockTimestamp:t,addresses:c}})}}export{e as PrimaryNetworkBalancesService};
1
+ class e{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:r,blockTimestamp:t,addresses:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:r},query:{blockTimestamp:t,addresses:s},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkBalancesService};
@@ -11,7 +11,7 @@ declare class PrimaryNetworkBlocksService {
11
11
  /**
12
12
  * Get block
13
13
  * Gets a block by block height or block hash on one of the Primary Network chains.
14
- * @returns GetPrimaryNetworkBlockResponse
14
+ * @returns GetPrimaryNetworkBlockResponse Successful response
15
15
  * @throws ApiError
16
16
  */
17
17
  getBlockById({ blockchainId, network, blockId, }: {
@@ -20,7 +20,7 @@ declare class PrimaryNetworkBlocksService {
20
20
  */
21
21
  blockchainId: BlockchainId;
22
22
  /**
23
- * Either mainnet or a testnet.
23
+ * Either mainnet or testnet/fuji.
24
24
  */
25
25
  network: Network;
26
26
  /**
@@ -31,22 +31,30 @@ declare class PrimaryNetworkBlocksService {
31
31
  /**
32
32
  * List blocks proposed by node
33
33
  * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
34
- * @returns ListPrimaryNetworkBlocksResponse
34
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
35
35
  * @throws ApiError
36
36
  */
37
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
37
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
38
38
  /**
39
39
  * A primary network blockchain id or alias.
40
40
  */
41
41
  blockchainId: BlockchainId;
42
42
  /**
43
- * Either mainnet or a testnet.
43
+ * Either mainnet or testnet/fuji.
44
44
  */
45
45
  network: Network;
46
46
  /**
47
47
  * A primary network (P or X chain) nodeId.
48
48
  */
49
49
  nodeId: string;
50
+ /**
51
+ * Query param for retrieving items after a specific timestamp.
52
+ */
53
+ startTimestamp?: number;
54
+ /**
55
+ * Query param for retrieving items before a specific timestamp.
56
+ */
57
+ endTimestamp?: number;
50
58
  /**
51
59
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
52
60
  */
@@ -59,18 +67,26 @@ declare class PrimaryNetworkBlocksService {
59
67
  /**
60
68
  * List latest blocks
61
69
  * Lists latest blocks on one of the Primary Network chains.
62
- * @returns ListPrimaryNetworkBlocksResponse
70
+ * @returns ListPrimaryNetworkBlocksResponse Successful response
63
71
  * @throws ApiError
64
72
  */
65
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
73
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
66
74
  /**
67
75
  * A primary network blockchain id or alias.
68
76
  */
69
77
  blockchainId: BlockchainId;
70
78
  /**
71
- * Either mainnet or a testnet.
79
+ * Either mainnet or testnet/fuji.
72
80
  */
73
81
  network: Network;
82
+ /**
83
+ * Query param for retrieving items after a specific timestamp.
84
+ */
85
+ startTimestamp?: number;
86
+ /**
87
+ * Query param for retrieving items before a specific timestamp.
88
+ */
89
+ endTimestamp?: number;
74
90
  /**
75
91
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
76
92
  */
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:o,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:o,blockId:t}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:o,nodeId:t,pageToken:k,pageSize:c=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:o,nodeId:t},query:{pageToken:k,pageSize:c}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:o,pageToken:t,pageSize:k=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:o},query:{pageToken:t,pageSize:k}})}}export{e as PrimaryNetworkBlocksService};
1
+ class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:r,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:r,blockId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:r,nodeId:t,startTimestamp:n,endTimestamp:s,pageToken:a,pageSize:i=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:r,nodeId:t},query:{startTimestamp:n,endTimestamp:s,pageToken:a,pageSize:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:r,startTimestamp:t,endTimestamp:n,pageToken:s,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:r},query:{startTimestamp:t,endTimestamp:n,pageToken:s,pageSize:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkBlocksService};
@@ -12,12 +12,12 @@ declare class PrimaryNetworkRewardsService {
12
12
  /**
13
13
  * List pending rewards
14
14
  * Lists pending rewards on the Primary Network for the supplied addresses.
15
- * @returns ListPendingRewardsResponse
15
+ * @returns ListPendingRewardsResponse Successful response
16
16
  * @throws ApiError
17
17
  */
18
18
  listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
19
19
  /**
20
- * Either mainnet or a testnet.
20
+ * Either mainnet or testnet/fuji.
21
21
  */
22
22
  network: Network;
23
23
  /**
@@ -44,12 +44,12 @@ declare class PrimaryNetworkRewardsService {
44
44
  /**
45
45
  * List historical rewards
46
46
  * Lists historical rewards on the Primary Network for the supplied addresses.
47
- * @returns ListHistoricalRewardsResponse
47
+ * @returns ListHistoricalRewardsResponse Successful response
48
48
  * @throws ApiError
49
49
  */
50
50
  listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
51
51
  /**
52
- * Either mainnet or a testnet.
52
+ * Either mainnet or testnet/fuji.
53
53
  */
54
54
  network: Network;
55
55
  /**
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o,currency:n}})}}export{e as PrimaryNetworkRewardsService};
1
+ class e{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:r,pageToken:t,pageSize:s=10,nodeIds:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:r,pageToken:t,pageSize:s,nodeIds:n,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:r,pageToken:t,pageSize:s=10,nodeIds:n,sortOrder:a,currency:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:r,pageToken:t,pageSize:s,nodeIds:n,sortOrder:a,currency:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkRewardsService};
@@ -1,8 +1,11 @@
1
+ import { Blockchain } from '../models/Blockchain.js';
1
2
  import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
2
3
  import { DelegationStatusType } from '../models/DelegationStatusType.js';
3
4
  import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
5
+ import { ListAutoRenewedCyclesResponse } from '../models/ListAutoRenewedCyclesResponse.js';
4
6
  import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
5
7
  import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js';
8
+ import { ListL1ValidatorsResponse } from '../models/ListL1ValidatorsResponse.js';
6
9
  import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
7
10
  import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
8
11
  import { Network } from '../models/Network.js';
@@ -21,7 +24,7 @@ declare class PrimaryNetworkService {
21
24
  /**
22
25
  * Get asset details
23
26
  * Gets asset details corresponding to the given asset id on the X-Chain.
24
- * @returns XChainAssetDetails
27
+ * @returns XChainAssetDetails Successful response
25
28
  * @throws ApiError
26
29
  */
27
30
  getAssetDetails({ blockchainId, network, assetId, }: {
@@ -30,7 +33,7 @@ declare class PrimaryNetworkService {
30
33
  */
31
34
  blockchainId: XChainId;
32
35
  /**
33
- * Either mainnet or a testnet.
36
+ * Either mainnet or testnet/fuji.
34
37
  */
35
38
  network: Network;
36
39
  /**
@@ -41,7 +44,7 @@ declare class PrimaryNetworkService {
41
44
  /**
42
45
  * Get chain interactions for addresses
43
46
  * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
44
- * @returns ChainAddressChainIdMapListResponse
47
+ * @returns ChainAddressChainIdMapListResponse Successful response
45
48
  * @throws ApiError
46
49
  */
47
50
  getChainIdsForAddresses({ addresses, network, }: {
@@ -50,31 +53,31 @@ declare class PrimaryNetworkService {
50
53
  */
51
54
  addresses: string;
52
55
  /**
53
- * Either mainnet or a testnet.
56
+ * Either mainnet or testnet/fuji.
54
57
  */
55
58
  network: Network;
56
59
  }): CancelablePromise<ChainAddressChainIdMapListResponse>;
57
60
  /**
58
61
  * Get network details
59
62
  * Gets network details such as validator and delegator stats.
60
- * @returns GetNetworkDetailsResponse
63
+ * @returns GetNetworkDetailsResponse Successful response
61
64
  * @throws ApiError
62
65
  */
63
66
  getNetworkDetails({ network, }: {
64
67
  /**
65
- * Either mainnet or a testnet.
68
+ * Either mainnet or testnet/fuji.
66
69
  */
67
70
  network: Network;
68
71
  }): CancelablePromise<GetNetworkDetailsResponse>;
69
72
  /**
70
73
  * List blockchains
71
74
  * Lists all blockchains registered on the network.
72
- * @returns ListBlockchainsResponse
75
+ * @returns ListBlockchainsResponse Successful response
73
76
  * @throws ApiError
74
77
  */
75
78
  listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
76
79
  /**
77
- * Either mainnet or a testnet.
80
+ * Either mainnet or testnet/fuji.
78
81
  */
79
82
  network: Network;
80
83
  /**
@@ -82,7 +85,7 @@ declare class PrimaryNetworkService {
82
85
  */
83
86
  pageToken?: string;
84
87
  /**
85
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
88
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
86
89
  */
87
90
  pageSize?: number;
88
91
  /**
@@ -90,15 +93,31 @@ declare class PrimaryNetworkService {
90
93
  */
91
94
  sortOrder?: SortOrder;
92
95
  }): CancelablePromise<ListBlockchainsResponse>;
96
+ /**
97
+ * Get blockchain details by ID
98
+ * Get details of the blockchain registered on the network.
99
+ * @returns Blockchain Successful response
100
+ * @throws ApiError
101
+ */
102
+ getBlockchainById({ blockchainId, network, }: {
103
+ /**
104
+ * The blockchain ID of the blockchain to retrieve.
105
+ */
106
+ blockchainId: string;
107
+ /**
108
+ * Either mainnet or testnet/fuji.
109
+ */
110
+ network: Network;
111
+ }): CancelablePromise<Blockchain>;
93
112
  /**
94
113
  * List subnets
95
114
  * Lists all subnets registered on the network.
96
- * @returns ListSubnetsResponse
115
+ * @returns ListSubnetsResponse Successful response
97
116
  * @throws ApiError
98
117
  */
99
118
  listSubnets({ network, pageToken, pageSize, sortOrder, }: {
100
119
  /**
101
- * Either mainnet or a testnet.
120
+ * Either mainnet or testnet/fuji.
102
121
  */
103
122
  network: Network;
104
123
  /**
@@ -106,7 +125,7 @@ declare class PrimaryNetworkService {
106
125
  */
107
126
  pageToken?: string;
108
127
  /**
109
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
128
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
110
129
  */
111
130
  pageSize?: number;
112
131
  /**
@@ -117,12 +136,12 @@ declare class PrimaryNetworkService {
117
136
  /**
118
137
  * Get Subnet details by ID
119
138
  * Get details of the Subnet registered on the network.
120
- * @returns Subnet
139
+ * @returns Subnet Successful response
121
140
  * @throws ApiError
122
141
  */
123
142
  getSubnetById({ network, subnetId, }: {
124
143
  /**
125
- * Either mainnet or a testnet.
144
+ * Either mainnet or testnet/fuji.
126
145
  */
127
146
  network: Network;
128
147
  /**
@@ -132,13 +151,13 @@ declare class PrimaryNetworkService {
132
151
  }): CancelablePromise<Subnet>;
133
152
  /**
134
153
  * List validators
135
- * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
136
- * @returns ListValidatorDetailsResponse
154
+ * 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.
155
+ * @returns ListValidatorDetailsResponse Successful response
137
156
  * @throws ApiError
138
157
  */
139
158
  listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
140
159
  /**
141
- * Either mainnet or a testnet.
160
+ * Either mainnet or testnet/fuji.
142
161
  */
143
162
  network: Network;
144
163
  /**
@@ -150,7 +169,7 @@ declare class PrimaryNetworkService {
150
169
  */
151
170
  pageSize?: number;
152
171
  /**
153
- * A comma separated list of node ids to filter by.
172
+ * A comma separated list of node ids to filter by. Supports substring matching.
154
173
  */
155
174
  nodeIds?: string;
156
175
  /**
@@ -207,12 +226,12 @@ declare class PrimaryNetworkService {
207
226
  /**
208
227
  * Get single validator details
209
228
  * List validator details for a single validator. Filterable by validation status.
210
- * @returns ListValidatorDetailsResponse
229
+ * @returns ListValidatorDetailsResponse Successful response
211
230
  * @throws ApiError
212
231
  */
213
232
  getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
214
233
  /**
215
- * Either mainnet or a testnet.
234
+ * Either mainnet or testnet/fuji.
216
235
  */
217
236
  network: Network;
218
237
  /**
@@ -236,15 +255,53 @@ declare class PrimaryNetworkService {
236
255
  */
237
256
  sortOrder?: SortOrder;
238
257
  }): CancelablePromise<ListValidatorDetailsResponse>;
258
+ /**
259
+ * List auto-renewed validator cycles
260
+ * Lists the settled staking cycles of an auto-renewed (ACP-236) validator, newest first. Each cycle reports the weight bonded for that cycle and the gross / withdrawn / compounded split of its rewards.
261
+ *
262
+ * Includes cycles that paid nothing out. A fully-compounding cycle mints no reward UTXO and so does not appear in reward history at all.
263
+ *
264
+ * The in-flight cycle is not listed; it is on the validator object. Returns an empty list for a node with no auto-renewed validation.
265
+ *
266
+ * `cycleIndex` is 1-based per position, so a node that has held more than one auto-renewed position has more than one cycle 1. Group by `stakingTxHash`, or pass `txHash` for a single series.
267
+ * @returns ListAutoRenewedCyclesResponse Successful response
268
+ * @throws ApiError
269
+ */
270
+ listAutoRenewedValidatorCycles({ network, nodeId, txHash, pageToken, pageSize, sortOrder, }: {
271
+ /**
272
+ * Either mainnet or testnet/fuji.
273
+ */
274
+ network: Network;
275
+ /**
276
+ * A primary network (P or X chain) nodeId.
277
+ */
278
+ nodeId: string;
279
+ /**
280
+ * Restrict results to a single auto-renewed position, given its `AddAutoRenewedValidatorTx` hash. Only needed for a node that has held more than one auto-renewed validation, where `cycleIndex` restarts at 1 per position.
281
+ */
282
+ txHash?: string;
283
+ /**
284
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
285
+ */
286
+ pageToken?: string;
287
+ /**
288
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
289
+ */
290
+ pageSize?: number;
291
+ /**
292
+ * 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.
293
+ */
294
+ sortOrder?: SortOrder;
295
+ }): CancelablePromise<ListAutoRenewedCyclesResponse>;
239
296
  /**
240
297
  * List delegators
241
298
  * Lists details for delegators.
242
- * @returns ListDelegatorDetailsResponse
299
+ * @returns ListDelegatorDetailsResponse Successful response
243
300
  * @throws ApiError
244
301
  */
245
302
  listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
246
303
  /**
247
- * Either mainnet or a testnet.
304
+ * Either mainnet or testnet/fuji.
248
305
  */
249
306
  network: Network;
250
307
  /**
@@ -272,6 +329,39 @@ declare class PrimaryNetworkService {
272
329
  */
273
330
  nodeIds?: string;
274
331
  }): CancelablePromise<ListDelegatorDetailsResponse>;
332
+ /**
333
+ * List L1 validators
334
+ * Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
335
+ * @returns ListL1ValidatorsResponse Successful response
336
+ * @throws ApiError
337
+ */
338
+ listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
339
+ /**
340
+ * Either mainnet or testnet/fuji.
341
+ */
342
+ network: Network;
343
+ /**
344
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
345
+ */
346
+ pageToken?: string;
347
+ /**
348
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
349
+ */
350
+ pageSize?: number;
351
+ /**
352
+ * The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
353
+ */
354
+ l1ValidationId?: string;
355
+ includeInactiveL1Validators?: boolean;
356
+ /**
357
+ * A valid node ID in format 'NodeID-HASH'.
358
+ */
359
+ nodeId?: string;
360
+ /**
361
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
362
+ */
363
+ subnetId?: any;
364
+ }): CancelablePromise<ListL1ValidatorsResponse>;
275
365
  }
276
366
 
277
367
  export { PrimaryNetworkService };
@@ -1 +1 @@
1
- class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:t,assetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:t,assetId:r}})}getChainIdsForAddresses({addresses:e,network:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:t},query:{addresses:e}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e}})}listBlockchains({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}listSubnets({network:e,pageToken:t,pageSize:r=10,sortOrder:s}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:t,pageSize:r,sortOrder:s}})}getSubnetById({network:e,subnetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:t}})}listValidators({network:e,pageToken:t,pageSize:r=10,nodeIds:s,sortBy:n,sortOrder:a,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:t,pageSize:r,nodeIds:s,sortBy:n,sortOrder:a,validationStatus:o,minDelegationCapacity:i,maxDelegationCapacity:d,minTimeRemaining:u,maxTimeRemaining:k,minFeePercentage:p,maxFeePercentage:h,minUptimePerformance:g,maxUptimePerformance:l,subnetId:m}})}getSingleValidatorDetails({network:e,nodeId:t,pageToken:r,pageSize:s=10,validationStatus:n,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:t},query:{pageToken:r,pageSize:s,validationStatus:n,sortOrder:a}})}listDelegators({network:e,pageToken:t,pageSize:r=10,rewardAddresses:s,sortOrder:n,delegationStatus:a,nodeIds:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:t,pageSize:r,rewardAddresses:s,sortOrder:n,delegationStatus:a,nodeIds:o}})}}export{e as PrimaryNetworkService};
1
+ class e{constructor(e){this.httpRequest=e}getAssetDetails({blockchainId:e,network:r,assetId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",path:{blockchainId:e,network:r,assetId:t},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getChainIdsForAddresses({addresses:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/addresses:listChainIds",path:{network:r},query:{addresses:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getNetworkDetails({network:e}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}",path:{network:e},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listBlockchains({network:e,pageToken:r,pageSize:t=100,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getBlockchainById({blockchainId:e,network:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}",path:{blockchainId:e,network:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listSubnets({network:e,pageToken:r,pageSize:t=100,sortOrder:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets",path:{network:e},query:{pageToken:r,pageSize:t,sortOrder:n},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSubnetById({network:e,subnetId:r}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/subnets/{subnetId}",path:{network:e,subnetId:r},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listValidators({network:e,pageToken:r,pageSize:t=10,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators",path:{network:e},query:{pageToken:r,pageSize:t,nodeIds:n,sortBy:s,sortOrder:a,validationStatus:i,minDelegationCapacity:o,maxDelegationCapacity:h,minTimeRemaining:d,maxTimeRemaining:u,minFeePercentage:c,maxFeePercentage:l,minUptimePerformance:p,maxUptimePerformance:m,subnetId:v},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}getSingleValidatorDetails({network:e,nodeId:r,pageToken:t,pageSize:n=10,validationStatus:s,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}",path:{network:e,nodeId:r},query:{pageToken:t,pageSize:n,validationStatus:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listAutoRenewedValidatorCycles({network:e,nodeId:r,txHash:t,pageToken:n,pageSize:s=10,sortOrder:a}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/validators/{nodeId}/cycles",path:{network:e,nodeId:r},query:{txHash:t,pageToken:n,pageSize:s,sortOrder:a},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listDelegators({network:e,pageToken:r,pageSize:t=10,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/delegators",path:{network:e},query:{pageToken:r,pageSize:t,rewardAddresses:n,sortOrder:s,delegationStatus:a,nodeIds:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}listL1Validators({network:e,pageToken:r,pageSize:t=10,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/l1Validators",path:{network:e},query:{pageToken:r,pageSize:t,l1ValidationId:n,includeInactiveL1Validators:s,nodeId:a,subnetId:i},errors:{400:"Bad requests generally mean the client has passed invalid\n or malformed parameters. Error messages in the response could help in\n evaluating the error.",401:"When a client attempts to access resources that require\n authorization credentials but the client lacks proper authentication\n in the request, the server responds with 401.",403:"When a client attempts to access resources with valid\n credentials but doesn't have the privilege to perform that action,\n the server responds with 403.",404:"The error is mostly returned when the client requests\n with either mistyped URL, or the passed resource is moved or deleted,\n or the resource doesn't exist.",429:"This error is returned when the client has sent too many,\n and has hit the rate limit.",500:"The error is a generic server side error that is\n returned for any uncaught and unexpected issues on the server side.\n This should be very rare, and you may reach out to us if the problem\n persists for a longer duration.",502:"This is an internal error indicating invalid response\n received by the client-facing proxy or gateway from the upstream server.",503:"The error is returned for certain routes on a particular\n Subnet. This indicates an internal problem with our Subnet node, and may\n not necessarily mean the Subnet is down or affected."}})}}export{e as PrimaryNetworkService};
@@ -2,6 +2,7 @@ import { BlockchainId } from '../models/BlockchainId.js';
2
2
  import { CChainExportTransaction } from '../models/CChainExportTransaction.js';
3
3
  import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
4
4
  import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
5
+ import { ListPChainStakingTransactionsResponse } from '../models/ListPChainStakingTransactionsResponse.js';
5
6
  import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
6
7
  import { ListXChainTransactionsResponse } from '../models/ListXChainTransactionsResponse.js';
7
8
  import { Network } from '../models/Network.js';
@@ -21,7 +22,7 @@ declare class PrimaryNetworkTransactionsService {
21
22
  /**
22
23
  * Get transaction
23
24
  * Gets the details of a single transaction on one of the Primary Network chains.
24
- * @returns any
25
+ * @returns any Successful response
25
26
  * @throws ApiError
26
27
  */
27
28
  getTxByHash({ blockchainId, network, txHash, }: {
@@ -30,7 +31,7 @@ declare class PrimaryNetworkTransactionsService {
30
31
  */
31
32
  blockchainId: BlockchainId;
32
33
  /**
33
- * Either mainnet or a testnet.
34
+ * Either mainnet or testnet/fuji.
34
35
  */
35
36
  network: Network;
36
37
  /**
@@ -44,23 +45,26 @@ declare class PrimaryNetworkTransactionsService {
44
45
  *
45
46
  * 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.
46
47
  *
48
+ * 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.
49
+ *
47
50
  * 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.
48
- * @returns any
51
+ * @returns any Successful response
49
52
  * @throws ApiError
50
53
  */
51
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
54
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
52
55
  /**
53
56
  * A primary network blockchain id or alias.
54
57
  */
55
58
  blockchainId: BlockchainId;
56
59
  /**
57
- * Either mainnet or a testnet.
60
+ * Either mainnet or testnet/fuji.
58
61
  */
59
62
  network: Network;
60
63
  /**
61
- * 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".
64
+ * 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.
62
65
  */
63
66
  addresses?: string;
67
+ l1ValidationId?: string;
64
68
  /**
65
69
  * Query param for filtering items based on transaction types.
66
70
  */
@@ -89,7 +93,7 @@ declare class PrimaryNetworkTransactionsService {
89
93
  /**
90
94
  * List staking transactions
91
95
  * Lists active staking transactions on the P-Chain for the supplied addresses.
92
- * @returns ListPChainTransactionsResponse
96
+ * @returns ListPChainStakingTransactionsResponse Successful response
93
97
  * @throws ApiError
94
98
  */
95
99
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
@@ -98,7 +102,7 @@ declare class PrimaryNetworkTransactionsService {
98
102
  */
99
103
  blockchainId: PChainId;
100
104
  /**
101
- * Either mainnet or a testnet.
105
+ * Either mainnet or testnet/fuji.
102
106
  */
103
107
  network: Network;
104
108
  /**
@@ -129,11 +133,11 @@ declare class PrimaryNetworkTransactionsService {
129
133
  * 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.
130
134
  */
131
135
  sortOrder?: SortOrder;
132
- }): CancelablePromise<ListPChainTransactionsResponse>;
136
+ }): CancelablePromise<ListPChainStakingTransactionsResponse>;
133
137
  /**
134
138
  * List asset transactions
135
139
  * Lists asset transactions corresponding to the given asset id on the X-Chain.
136
- * @returns ListXChainTransactionsResponse
140
+ * @returns ListXChainTransactionsResponse Successful response
137
141
  * @throws ApiError
138
142
  */
139
143
  listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
@@ -142,7 +146,7 @@ declare class PrimaryNetworkTransactionsService {
142
146
  */
143
147
  blockchainId: XChainId;
144
148
  /**
145
- * Either mainnet or a testnet.
149
+ * Either mainnet or testnet/fuji.
146
150
  */
147
151
  network: Network;
148
152
  /**