@avalabs/glacier-sdk 3.1.0-alpha.10 → 3.1.0-alpha.101
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.
- package/CHANGELOG.md +1758 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2866 -540
- package/esm/generated/Glacier.d.ts +4 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +35 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/AutoRenewDetails.d.ts +41 -0
- package/esm/generated/models/AutoRenewExitReason.d.ts +9 -0
- package/esm/generated/models/AutoRenewExitReason.js +1 -0
- package/esm/generated/models/AutoRenewState.d.ts +11 -0
- package/esm/generated/models/AutoRenewState.js +1 -0
- package/esm/generated/models/AutoRenewedCycle.d.ts +67 -0
- package/esm/generated/models/AutoRenewedCycleOutcome.d.ts +10 -0
- package/esm/generated/models/AutoRenewedCycleOutcome.js +1 -0
- package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +9 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CurrentAutoRenewedCycle.d.ts +47 -0
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
- package/esm/generated/models/Erc20TokenV2.js +1 -0
- package/esm/generated/models/Erc20Transfer.d.ts +6 -2
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +6 -2
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +14 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +6 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/{ContractSubmissionErc20.js → IcmRewardDetails.js} +1 -1
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +6 -2
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListAutoRenewedCyclesResponse.d.ts +19 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainStakingTransactionsResponse.d.ts +13 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +14 -2
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +7 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainStakingTransaction.d.ts +131 -0
- package/esm/generated/models/PChainTransaction.d.ts +50 -19
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +32 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +7 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +5 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +11 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +17 -3
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/StakingType.d.ts +9 -0
- package/esm/generated/models/StakingType.js +1 -0
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +72 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +0 -19
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +75 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +11 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +94 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +7 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +94 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +79 -12
- package/esm/index.js +1 -1
- package/package.json +16 -7
- package/LICENSE.md +0 -9
- package/dist/index.js +0 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +0 -10
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +0 -31
- package/esm/generated/models/ContractSubmissionErc1155.js +0 -1
- package/esm/generated/models/ContractSubmissionErc20.d.ts +0 -31
- package/esm/generated/models/ContractSubmissionErc721.d.ts +0 -29
- package/esm/generated/models/ContractSubmissionErc721.js +0 -1
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +0 -25
- package/esm/generated/models/ContractSubmissionUnknown.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
- package/esm/generated/models/UpdateContractResponse.d.ts +0 -10
- package/esm/generated/services/DefaultService.d.ts +0 -14
- package/esm/generated/services/DefaultService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type AvaxSupplyResponse = {
|
|
58
|
+
/**
|
|
59
|
+
* The circulating supply of AVAX.
|
|
60
|
+
*/
|
|
61
|
+
circulatingSupply: string;
|
|
62
|
+
/**
|
|
63
|
+
* The total supply of AVAX.
|
|
64
|
+
*/
|
|
65
|
+
totalSupply: string;
|
|
66
|
+
/**
|
|
67
|
+
* Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
|
|
72
|
+
*/
|
|
73
|
+
totalCBurned: string;
|
|
74
|
+
/**
|
|
75
|
+
* The total X-chain burned fees of AVAX.
|
|
76
|
+
*/
|
|
77
|
+
totalXBurned: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total staked AVAX.
|
|
80
|
+
*/
|
|
81
|
+
totalStaked: string;
|
|
82
|
+
/**
|
|
83
|
+
* The total locked AVAX.
|
|
84
|
+
*/
|
|
85
|
+
totalLocked: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total rewards AVAX.
|
|
88
|
+
*/
|
|
89
|
+
totalRewards: string;
|
|
90
|
+
/**
|
|
91
|
+
* The last updated time of the AVAX supply.
|
|
92
|
+
*/
|
|
93
|
+
lastUpdated: string;
|
|
94
|
+
/**
|
|
95
|
+
* The genesis unlock amount of the AVAX supply.
|
|
96
|
+
*/
|
|
97
|
+
genesisUnlock: string;
|
|
98
|
+
/**
|
|
99
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare class AvaxSupplyService {
|
|
105
|
+
readonly httpRequest: BaseHttpRequest;
|
|
106
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
107
|
+
/**
|
|
108
|
+
* Get AVAX supply information
|
|
109
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
57
116
|
type LogsFormatMetadata = {
|
|
58
117
|
/**
|
|
59
118
|
* The IP address of the client that made the request.
|
|
@@ -148,6 +207,28 @@ type LogsResponseDTO = {
|
|
|
148
207
|
logs: Array<LogsFormat>;
|
|
149
208
|
};
|
|
150
209
|
|
|
210
|
+
declare enum Network {
|
|
211
|
+
MAINNET = "mainnet",
|
|
212
|
+
FUJI = "fuji",
|
|
213
|
+
TESTNET = "testnet"
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
218
|
+
REQUEST_PATH = "requestPath",
|
|
219
|
+
RESPONSE_CODE = "responseCode",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent"
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
226
|
+
HOURLY = "hourly",
|
|
227
|
+
DAILY = "daily",
|
|
228
|
+
WEEKLY = "weekly",
|
|
229
|
+
MONTHLY = "monthly"
|
|
230
|
+
}
|
|
231
|
+
|
|
151
232
|
type RpcUsageMetricsValueAggregated = {
|
|
152
233
|
/**
|
|
153
234
|
* The total number of requests
|
|
@@ -173,6 +254,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
254
|
* The number of invalid requests
|
|
174
255
|
*/
|
|
175
256
|
invalidRequests: number;
|
|
257
|
+
/**
|
|
258
|
+
* The number of API credits wasted on invalid requests
|
|
259
|
+
*/
|
|
260
|
+
apiCreditsWasted: number;
|
|
176
261
|
/**
|
|
177
262
|
* Column name used for data aggregation
|
|
178
263
|
*/
|
|
@@ -190,6 +275,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
275
|
RPC_METHOD = "rpcMethod",
|
|
191
276
|
RESPONSE_CODE = "responseCode",
|
|
192
277
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
278
|
+
REQUEST_PATH = "requestPath",
|
|
279
|
+
COUNTRY = "country",
|
|
280
|
+
CONTINENT = "continent",
|
|
281
|
+
USER_AGENT = "userAgent",
|
|
193
282
|
NONE = "None"
|
|
194
283
|
}
|
|
195
284
|
}
|
|
@@ -205,19 +294,56 @@ type RpcMetrics = {
|
|
|
205
294
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
295
|
};
|
|
207
296
|
|
|
208
|
-
type
|
|
297
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
298
|
/**
|
|
210
299
|
* Duration in which the metrics value is aggregated
|
|
211
300
|
*/
|
|
212
301
|
aggregateDuration: string;
|
|
213
302
|
/**
|
|
214
|
-
*
|
|
303
|
+
* Metrics values
|
|
215
304
|
*/
|
|
216
|
-
|
|
305
|
+
metrics: Array<RpcMetrics>;
|
|
306
|
+
/**
|
|
307
|
+
* Network type for which the metrics are aggregated
|
|
308
|
+
*/
|
|
309
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
310
|
+
};
|
|
311
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
312
|
+
/**
|
|
313
|
+
* Network type for which the metrics are aggregated
|
|
314
|
+
*/
|
|
315
|
+
enum network {
|
|
316
|
+
MAINNET = "mainnet",
|
|
317
|
+
TESTNET = "testnet"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
322
|
+
RPC_METHOD = "rpcMethod",
|
|
323
|
+
RESPONSE_CODE = "responseCode",
|
|
324
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
328
|
+
HOURLY = "hourly",
|
|
329
|
+
DAILY = "daily",
|
|
330
|
+
WEEKLY = "weekly",
|
|
331
|
+
MONTHLY = "monthly"
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
335
|
+
/**
|
|
336
|
+
* Duration in which the metrics value is aggregated
|
|
337
|
+
*/
|
|
338
|
+
aggregateDuration: string;
|
|
217
339
|
/**
|
|
218
340
|
* Metrics values
|
|
219
341
|
*/
|
|
220
342
|
metrics: Array<RpcMetrics>;
|
|
343
|
+
/**
|
|
344
|
+
* ChainId for which the metrics are aggregated
|
|
345
|
+
*/
|
|
346
|
+
chainId: string;
|
|
221
347
|
};
|
|
222
348
|
|
|
223
349
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +449,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
449
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
450
|
* @throws ApiError
|
|
325
451
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
452
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
453
|
/**
|
|
328
454
|
* Organization ID to fetch usage metrics for
|
|
329
455
|
*/
|
|
@@ -348,10 +474,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
474
|
* Filter data by chain ID.
|
|
349
475
|
*/
|
|
350
476
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
477
|
/**
|
|
356
478
|
* Filter data by response status code.
|
|
357
479
|
*/
|
|
@@ -364,6 +486,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
486
|
* Filter data by API key ID.
|
|
365
487
|
*/
|
|
366
488
|
apiKeyId?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Filter data by request path.
|
|
491
|
+
*/
|
|
492
|
+
requestPath?: string;
|
|
367
493
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
494
|
/**
|
|
369
495
|
* Get logs for requests made by client
|
|
@@ -371,7 +497,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
497
|
* @returns LogsResponseDTO Successful response
|
|
372
498
|
* @throws ApiError
|
|
373
499
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
500
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
501
|
/**
|
|
376
502
|
* Organization ID to fetch usage metrics for
|
|
377
503
|
*/
|
|
@@ -388,10 +514,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
514
|
* Filter data by chain ID.
|
|
389
515
|
*/
|
|
390
516
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
517
|
/**
|
|
396
518
|
* Filter data by response status code.
|
|
397
519
|
*/
|
|
@@ -404,6 +526,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
526
|
* Filter data by API key ID.
|
|
405
527
|
*/
|
|
406
528
|
apiKeyId?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by request path.
|
|
531
|
+
*/
|
|
532
|
+
requestPath?: string;
|
|
407
533
|
/**
|
|
408
534
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
535
|
*/
|
|
@@ -415,15 +541,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
541
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
542
|
/**
|
|
417
543
|
* 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
|
|
544
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
545
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
546
|
* @throws ApiError
|
|
421
547
|
*/
|
|
422
|
-
|
|
548
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
549
|
/**
|
|
424
|
-
*
|
|
550
|
+
* Time interval granularity for data aggregation for subnet
|
|
551
|
+
* rpc metrics
|
|
425
552
|
*/
|
|
426
|
-
timeInterval?:
|
|
553
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
554
|
/**
|
|
428
555
|
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
556
|
*/
|
|
@@ -435,15 +562,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
562
|
/**
|
|
436
563
|
* Query param for the criterion used for grouping metrics
|
|
437
564
|
*/
|
|
438
|
-
groupBy?:
|
|
565
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
566
|
/**
|
|
440
567
|
* Filter data by chain ID.
|
|
441
568
|
*/
|
|
442
569
|
chainId?: string;
|
|
443
570
|
/**
|
|
444
|
-
* Filter data by
|
|
571
|
+
* Filter data by response status code.
|
|
445
572
|
*/
|
|
446
|
-
|
|
573
|
+
responseCode?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Filter data by RPC method.
|
|
576
|
+
*/
|
|
577
|
+
rpcMethod?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Filter data by Rl Bypass API Token.
|
|
580
|
+
*/
|
|
581
|
+
rlBypassApiToken?: string;
|
|
582
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
583
|
+
/**
|
|
584
|
+
* @deprecated
|
|
585
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
586
|
+
*
|
|
587
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
588
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
589
|
+
* @throws ApiError
|
|
590
|
+
*/
|
|
591
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
592
|
+
/**
|
|
593
|
+
* Time interval granularity for data aggregation for subnet
|
|
594
|
+
* rpc metrics
|
|
595
|
+
*/
|
|
596
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
597
|
+
/**
|
|
598
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
599
|
+
*/
|
|
600
|
+
startTimestamp?: number;
|
|
601
|
+
/**
|
|
602
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
603
|
+
*/
|
|
604
|
+
endTimestamp?: number;
|
|
605
|
+
/**
|
|
606
|
+
* Query param for the criterion used for grouping metrics
|
|
607
|
+
*/
|
|
608
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
609
|
+
/**
|
|
610
|
+
* Filter data by chain ID.
|
|
611
|
+
*/
|
|
612
|
+
chainId?: string;
|
|
447
613
|
/**
|
|
448
614
|
* Filter data by response status code.
|
|
449
615
|
*/
|
|
@@ -456,17 +622,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
622
|
* Filter data by Rl Bypass API Token.
|
|
457
623
|
*/
|
|
458
624
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
declare class DefaultService {
|
|
463
|
-
readonly httpRequest: BaseHttpRequest;
|
|
464
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
625
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
465
626
|
/**
|
|
466
|
-
*
|
|
627
|
+
* Get usage metrics for the Primary Network RPC
|
|
628
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
629
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
467
630
|
* @throws ApiError
|
|
468
631
|
*/
|
|
469
|
-
|
|
632
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
633
|
+
/**
|
|
634
|
+
* Either mainnet or testnet/fuji.
|
|
635
|
+
*/
|
|
636
|
+
network: Network;
|
|
637
|
+
/**
|
|
638
|
+
* Time interval granularity for data aggregation for subnet
|
|
639
|
+
* rpc metrics
|
|
640
|
+
*/
|
|
641
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
642
|
+
/**
|
|
643
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
644
|
+
*/
|
|
645
|
+
startTimestamp?: number;
|
|
646
|
+
/**
|
|
647
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
648
|
+
*/
|
|
649
|
+
endTimestamp?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Query param for the criterion used for grouping metrics
|
|
652
|
+
*/
|
|
653
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
654
|
+
/**
|
|
655
|
+
* Filter data by response status code.
|
|
656
|
+
*/
|
|
657
|
+
responseCode?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Filter data by request path.
|
|
660
|
+
*/
|
|
661
|
+
requestPath?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
664
|
+
*/
|
|
665
|
+
country?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
668
|
+
*/
|
|
669
|
+
continent?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Filter data by User Agent.
|
|
672
|
+
*/
|
|
673
|
+
userAgent?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Filter data by RPC method.
|
|
676
|
+
*/
|
|
677
|
+
rpcMethod?: string;
|
|
678
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
470
679
|
}
|
|
471
680
|
|
|
472
681
|
/**
|
|
@@ -655,6 +864,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
864
|
* 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
865
|
*/
|
|
657
866
|
nextPageToken?: string;
|
|
867
|
+
/**
|
|
868
|
+
* The native token balance for the address.
|
|
869
|
+
*/
|
|
870
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
871
|
/**
|
|
659
872
|
* The list of ERC-1155 token balances for the address.
|
|
660
873
|
*/
|
|
@@ -699,11 +912,22 @@ type Erc20TokenBalance = {
|
|
|
699
912
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
913
|
*/
|
|
701
914
|
balanceValue?: Money;
|
|
915
|
+
/**
|
|
916
|
+
* 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.
|
|
917
|
+
*/
|
|
918
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
919
|
};
|
|
703
920
|
declare namespace Erc20TokenBalance {
|
|
704
921
|
enum ercType {
|
|
705
922
|
ERC_20 = "ERC-20"
|
|
706
923
|
}
|
|
924
|
+
/**
|
|
925
|
+
* 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.
|
|
926
|
+
*/
|
|
927
|
+
enum tokenReputation {
|
|
928
|
+
MALICIOUS = "Malicious",
|
|
929
|
+
BENIGN = "Benign"
|
|
930
|
+
}
|
|
707
931
|
}
|
|
708
932
|
|
|
709
933
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +935,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
935
|
* 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
936
|
*/
|
|
713
937
|
nextPageToken?: string;
|
|
938
|
+
/**
|
|
939
|
+
* The native token balance for the address.
|
|
940
|
+
*/
|
|
941
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
942
|
/**
|
|
715
943
|
* The list of ERC-20 token balances for the address.
|
|
716
944
|
*/
|
|
@@ -722,6 +950,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
950
|
* 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
951
|
*/
|
|
724
952
|
nextPageToken?: string;
|
|
953
|
+
/**
|
|
954
|
+
* The native token balance for the address.
|
|
955
|
+
*/
|
|
956
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
957
|
/**
|
|
726
958
|
* The list of ERC-721 token balances for the address.
|
|
727
959
|
*/
|
|
@@ -785,7 +1017,7 @@ declare class EvmBalancesService {
|
|
|
785
1017
|
*/
|
|
786
1018
|
pageToken?: string;
|
|
787
1019
|
/**
|
|
788
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1020
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
789
1021
|
*/
|
|
790
1022
|
pageSize?: number;
|
|
791
1023
|
/**
|
|
@@ -823,7 +1055,7 @@ declare class EvmBalancesService {
|
|
|
823
1055
|
*/
|
|
824
1056
|
pageToken?: string;
|
|
825
1057
|
/**
|
|
826
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1058
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
827
1059
|
*/
|
|
828
1060
|
pageSize?: number;
|
|
829
1061
|
/**
|
|
@@ -859,7 +1091,7 @@ declare class EvmBalancesService {
|
|
|
859
1091
|
*/
|
|
860
1092
|
pageToken?: string;
|
|
861
1093
|
/**
|
|
862
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1094
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
863
1095
|
*/
|
|
864
1096
|
pageSize?: number;
|
|
865
1097
|
/**
|
|
@@ -889,7 +1121,7 @@ declare class EvmBalancesService {
|
|
|
889
1121
|
*/
|
|
890
1122
|
pageToken?: string;
|
|
891
1123
|
/**
|
|
892
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1124
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
893
1125
|
*/
|
|
894
1126
|
pageSize?: number;
|
|
895
1127
|
/**
|
|
@@ -900,14 +1132,26 @@ declare class EvmBalancesService {
|
|
|
900
1132
|
}
|
|
901
1133
|
|
|
902
1134
|
type GetEvmBlockResponse = {
|
|
1135
|
+
/**
|
|
1136
|
+
* The EVM chain ID on which the block was created.
|
|
1137
|
+
*/
|
|
1138
|
+
chainId: string;
|
|
903
1139
|
/**
|
|
904
1140
|
* The block number on the chain.
|
|
905
1141
|
*/
|
|
906
1142
|
blockNumber: string;
|
|
907
1143
|
/**
|
|
908
|
-
* The block
|
|
1144
|
+
* The block creation (proposal) timestamp in seconds
|
|
909
1145
|
*/
|
|
910
1146
|
blockTimestamp: number;
|
|
1147
|
+
/**
|
|
1148
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1149
|
+
*/
|
|
1150
|
+
blockTimestampMilliseconds?: number;
|
|
1151
|
+
/**
|
|
1152
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1153
|
+
*/
|
|
1154
|
+
blockMinDelayExcess?: number;
|
|
911
1155
|
/**
|
|
912
1156
|
* The block hash identifier.
|
|
913
1157
|
*/
|
|
@@ -944,14 +1188,26 @@ type GetEvmBlockResponse = {
|
|
|
944
1188
|
};
|
|
945
1189
|
|
|
946
1190
|
type EvmBlock = {
|
|
1191
|
+
/**
|
|
1192
|
+
* The EVM chain ID on which the block was created.
|
|
1193
|
+
*/
|
|
1194
|
+
chainId: string;
|
|
947
1195
|
/**
|
|
948
1196
|
* The block number on the chain.
|
|
949
1197
|
*/
|
|
950
1198
|
blockNumber: string;
|
|
951
1199
|
/**
|
|
952
|
-
* The block
|
|
1200
|
+
* The block creation (proposal) timestamp in seconds
|
|
953
1201
|
*/
|
|
954
1202
|
blockTimestamp: number;
|
|
1203
|
+
/**
|
|
1204
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1205
|
+
*/
|
|
1206
|
+
blockTimestampMilliseconds?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1209
|
+
*/
|
|
1210
|
+
blockMinDelayExcess?: number;
|
|
955
1211
|
/**
|
|
956
1212
|
* The block hash identifier.
|
|
957
1213
|
*/
|
|
@@ -998,6 +1254,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1254
|
declare class EvmBlocksService {
|
|
999
1255
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1256
|
constructor(httpRequest: BaseHttpRequest);
|
|
1257
|
+
/**
|
|
1258
|
+
* List latest blocks across all supported EVM chains
|
|
1259
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1260
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1261
|
+
* @throws ApiError
|
|
1262
|
+
*/
|
|
1263
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1264
|
+
/**
|
|
1265
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1266
|
+
*/
|
|
1267
|
+
pageToken?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1270
|
+
*/
|
|
1271
|
+
pageSize?: number;
|
|
1272
|
+
/**
|
|
1273
|
+
* Either mainnet or testnet/fuji.
|
|
1274
|
+
*/
|
|
1275
|
+
network?: Network;
|
|
1276
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1277
|
/**
|
|
1002
1278
|
* List latest blocks
|
|
1003
1279
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1120,40 +1396,170 @@ type ChainInfo = {
|
|
|
1120
1396
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1397
|
};
|
|
1122
1398
|
|
|
1399
|
+
type ListAddressChainsResponse = {
|
|
1400
|
+
indexedChains?: Array<ChainInfo>;
|
|
1401
|
+
unindexedChains?: Array<string>;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1123
1404
|
type ListChainsResponse = {
|
|
1124
1405
|
chains: Array<ChainInfo>;
|
|
1125
1406
|
};
|
|
1126
1407
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1408
|
+
/**
|
|
1409
|
+
* 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.
|
|
1410
|
+
*/
|
|
1411
|
+
declare enum TransactionMethodType {
|
|
1412
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1413
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1414
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1132
1415
|
}
|
|
1133
1416
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1417
|
+
type Method = {
|
|
1418
|
+
callType: TransactionMethodType;
|
|
1137
1419
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1140
|
-
* @returns ListChainsResponse Successful response
|
|
1141
|
-
* @throws ApiError
|
|
1420
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1142
1421
|
*/
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Either mainnet or testnet/fuji.
|
|
1146
|
-
*/
|
|
1147
|
-
network?: Network;
|
|
1148
|
-
/**
|
|
1149
|
-
* Filter by feature.
|
|
1150
|
-
*/
|
|
1151
|
-
feature?: ApiFeature;
|
|
1152
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1422
|
+
methodHash: string;
|
|
1153
1423
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
|
|
1156
|
-
|
|
1424
|
+
* 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'.
|
|
1425
|
+
*/
|
|
1426
|
+
methodName?: string;
|
|
1427
|
+
};
|
|
1428
|
+
|
|
1429
|
+
type RichAddress = {
|
|
1430
|
+
/**
|
|
1431
|
+
* The contract name.
|
|
1432
|
+
*/
|
|
1433
|
+
name?: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* The contract symbol.
|
|
1436
|
+
*/
|
|
1437
|
+
symbol?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1440
|
+
*/
|
|
1441
|
+
decimals?: number;
|
|
1442
|
+
/**
|
|
1443
|
+
* The logo uri for the address.
|
|
1444
|
+
*/
|
|
1445
|
+
logoUri?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1448
|
+
*/
|
|
1449
|
+
address: string;
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
type NativeTransaction = {
|
|
1453
|
+
/**
|
|
1454
|
+
* The block number on the chain.
|
|
1455
|
+
*/
|
|
1456
|
+
blockNumber: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* The block creation (proposal) timestamp in seconds
|
|
1459
|
+
*/
|
|
1460
|
+
blockTimestamp: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1463
|
+
*/
|
|
1464
|
+
blockTimestampMilliseconds?: number;
|
|
1465
|
+
/**
|
|
1466
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1467
|
+
*/
|
|
1468
|
+
blockMinDelayExcess?: number;
|
|
1469
|
+
/**
|
|
1470
|
+
* The block hash identifier.
|
|
1471
|
+
*/
|
|
1472
|
+
blockHash: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* The EVM chain ID on which the transaction occured.
|
|
1475
|
+
*/
|
|
1476
|
+
chainId: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1479
|
+
*/
|
|
1480
|
+
blockIndex: number;
|
|
1481
|
+
/**
|
|
1482
|
+
* The transaction hash identifier.
|
|
1483
|
+
*/
|
|
1484
|
+
txHash: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1487
|
+
*/
|
|
1488
|
+
txStatus: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* The transaction type.
|
|
1491
|
+
*/
|
|
1492
|
+
txType: number;
|
|
1493
|
+
/**
|
|
1494
|
+
* The gas limit set for the transaction.
|
|
1495
|
+
*/
|
|
1496
|
+
gasLimit: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* The amount of gas used.
|
|
1499
|
+
*/
|
|
1500
|
+
gasUsed: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1503
|
+
*/
|
|
1504
|
+
gasPrice: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* The nonce used by the sender of the transaction.
|
|
1507
|
+
*/
|
|
1508
|
+
nonce: string;
|
|
1509
|
+
from: RichAddress;
|
|
1510
|
+
to: RichAddress;
|
|
1511
|
+
method?: Method;
|
|
1512
|
+
value: string;
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
type ListNativeTransactionsResponse = {
|
|
1516
|
+
/**
|
|
1517
|
+
* 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.
|
|
1518
|
+
*/
|
|
1519
|
+
nextPageToken?: string;
|
|
1520
|
+
transactions: Array<NativeTransaction>;
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
declare enum TransactionStatus {
|
|
1524
|
+
FAILED = "failed",
|
|
1525
|
+
SUCCESS = "success"
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
declare class EvmChainsService {
|
|
1529
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1530
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1531
|
+
/**
|
|
1532
|
+
* List all chains associated with a given address
|
|
1533
|
+
* 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.
|
|
1534
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1535
|
+
* @throws ApiError
|
|
1536
|
+
*/
|
|
1537
|
+
listAddressChains({ address, }: {
|
|
1538
|
+
/**
|
|
1539
|
+
* A wallet address.
|
|
1540
|
+
*/
|
|
1541
|
+
address: string;
|
|
1542
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1543
|
+
/**
|
|
1544
|
+
* List chains
|
|
1545
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1546
|
+
* @returns ListChainsResponse Successful response
|
|
1547
|
+
* @throws ApiError
|
|
1548
|
+
*/
|
|
1549
|
+
supportedChains({ network, feature, }: {
|
|
1550
|
+
/**
|
|
1551
|
+
* Either mainnet or testnet/fuji.
|
|
1552
|
+
*/
|
|
1553
|
+
network?: Network;
|
|
1554
|
+
/**
|
|
1555
|
+
* Filter by feature.
|
|
1556
|
+
*/
|
|
1557
|
+
feature?: ApiFeature;
|
|
1558
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Get chain information
|
|
1561
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1562
|
+
* @returns GetChainResponse Successful response
|
|
1157
1563
|
* @throws ApiError
|
|
1158
1564
|
*/
|
|
1159
1565
|
getChainInfo({ chainId, }: {
|
|
@@ -1163,9 +1569,11 @@ declare class EvmChainsService {
|
|
|
1163
1569
|
chainId: string;
|
|
1164
1570
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
1571
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* Gets
|
|
1168
|
-
*
|
|
1572
|
+
* @deprecated
|
|
1573
|
+
* **[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.
|
|
1574
|
+
*
|
|
1575
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1576
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1169
1577
|
* @throws ApiError
|
|
1170
1578
|
*/
|
|
1171
1579
|
getAddressChains({ address, }: {
|
|
@@ -1173,9 +1581,69 @@ declare class EvmChainsService {
|
|
|
1173
1581
|
* A wallet address.
|
|
1174
1582
|
*/
|
|
1175
1583
|
address: string;
|
|
1176
|
-
}): CancelablePromise<
|
|
1584
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1585
|
+
/**
|
|
1586
|
+
* @deprecated
|
|
1587
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1588
|
+
*
|
|
1589
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1590
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1591
|
+
* @throws ApiError
|
|
1592
|
+
*/
|
|
1593
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1594
|
+
/**
|
|
1595
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1596
|
+
*/
|
|
1597
|
+
pageToken?: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1600
|
+
*/
|
|
1601
|
+
pageSize?: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* Either mainnet or testnet/fuji.
|
|
1604
|
+
*/
|
|
1605
|
+
network?: Network;
|
|
1606
|
+
/**
|
|
1607
|
+
* A status filter for listed transactions.
|
|
1608
|
+
*/
|
|
1609
|
+
status?: TransactionStatus;
|
|
1610
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1611
|
+
/**
|
|
1612
|
+
* @deprecated
|
|
1613
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1614
|
+
*
|
|
1615
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1616
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1617
|
+
* @throws ApiError
|
|
1618
|
+
*/
|
|
1619
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1620
|
+
/**
|
|
1621
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
|
+
*/
|
|
1623
|
+
pageToken?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1626
|
+
*/
|
|
1627
|
+
pageSize?: number;
|
|
1628
|
+
/**
|
|
1629
|
+
* Either mainnet or testnet/fuji.
|
|
1630
|
+
*/
|
|
1631
|
+
network?: Network;
|
|
1632
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1177
1633
|
}
|
|
1178
1634
|
|
|
1635
|
+
type ContractDeploymentDetails = {
|
|
1636
|
+
txHash: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1639
|
+
*/
|
|
1640
|
+
deployerAddress: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1643
|
+
*/
|
|
1644
|
+
deployerContractAddress?: string;
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1179
1647
|
type ImageAsset = {
|
|
1180
1648
|
assetId?: string;
|
|
1181
1649
|
/**
|
|
@@ -1214,120 +1682,6 @@ type ResourceLink = {
|
|
|
1214
1682
|
url: string;
|
|
1215
1683
|
};
|
|
1216
1684
|
|
|
1217
|
-
type ContractSubmissionErc1155 = {
|
|
1218
|
-
description?: string;
|
|
1219
|
-
officialSite?: string;
|
|
1220
|
-
email?: string;
|
|
1221
|
-
logoAsset?: ImageAsset;
|
|
1222
|
-
bannerAsset?: ImageAsset;
|
|
1223
|
-
color?: string;
|
|
1224
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1225
|
-
tags?: Array<string>;
|
|
1226
|
-
/**
|
|
1227
|
-
* The contract name.
|
|
1228
|
-
*/
|
|
1229
|
-
name: string;
|
|
1230
|
-
ercType: ContractSubmissionErc1155.ercType;
|
|
1231
|
-
/**
|
|
1232
|
-
* The contract symbol.
|
|
1233
|
-
*/
|
|
1234
|
-
symbol: string;
|
|
1235
|
-
pricingProviders?: PricingProviders;
|
|
1236
|
-
};
|
|
1237
|
-
declare namespace ContractSubmissionErc1155 {
|
|
1238
|
-
enum ercType {
|
|
1239
|
-
ERC_1155 = "ERC-1155"
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
type ContractSubmissionErc20 = {
|
|
1244
|
-
description?: string;
|
|
1245
|
-
officialSite?: string;
|
|
1246
|
-
email?: string;
|
|
1247
|
-
logoAsset?: ImageAsset;
|
|
1248
|
-
bannerAsset?: ImageAsset;
|
|
1249
|
-
color?: string;
|
|
1250
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1251
|
-
tags?: Array<string>;
|
|
1252
|
-
/**
|
|
1253
|
-
* The contract name.
|
|
1254
|
-
*/
|
|
1255
|
-
name: string;
|
|
1256
|
-
ercType: ContractSubmissionErc20.ercType;
|
|
1257
|
-
/**
|
|
1258
|
-
* The contract symbol.
|
|
1259
|
-
*/
|
|
1260
|
-
symbol: string;
|
|
1261
|
-
pricingProviders?: PricingProviders;
|
|
1262
|
-
};
|
|
1263
|
-
declare namespace ContractSubmissionErc20 {
|
|
1264
|
-
enum ercType {
|
|
1265
|
-
ERC_20 = "ERC-20"
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
type ContractSubmissionErc721 = {
|
|
1270
|
-
description?: string;
|
|
1271
|
-
officialSite?: string;
|
|
1272
|
-
email?: string;
|
|
1273
|
-
logoAsset?: ImageAsset;
|
|
1274
|
-
bannerAsset?: ImageAsset;
|
|
1275
|
-
color?: string;
|
|
1276
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1277
|
-
tags?: Array<string>;
|
|
1278
|
-
/**
|
|
1279
|
-
* The contract name.
|
|
1280
|
-
*/
|
|
1281
|
-
name: string;
|
|
1282
|
-
ercType: ContractSubmissionErc721.ercType;
|
|
1283
|
-
/**
|
|
1284
|
-
* The contract symbol.
|
|
1285
|
-
*/
|
|
1286
|
-
symbol: string;
|
|
1287
|
-
};
|
|
1288
|
-
declare namespace ContractSubmissionErc721 {
|
|
1289
|
-
enum ercType {
|
|
1290
|
-
ERC_721 = "ERC-721"
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
type ContractSubmissionUnknown = {
|
|
1295
|
-
description?: string;
|
|
1296
|
-
officialSite?: string;
|
|
1297
|
-
email?: string;
|
|
1298
|
-
logoAsset?: ImageAsset;
|
|
1299
|
-
bannerAsset?: ImageAsset;
|
|
1300
|
-
color?: string;
|
|
1301
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1302
|
-
tags?: Array<string>;
|
|
1303
|
-
/**
|
|
1304
|
-
* The contract name.
|
|
1305
|
-
*/
|
|
1306
|
-
name: string;
|
|
1307
|
-
ercType: ContractSubmissionUnknown.ercType;
|
|
1308
|
-
};
|
|
1309
|
-
declare namespace ContractSubmissionUnknown {
|
|
1310
|
-
enum ercType {
|
|
1311
|
-
UNKNOWN = "UNKNOWN"
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
type ContractSubmissionBody = {
|
|
1316
|
-
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
type ContractDeploymentDetails = {
|
|
1320
|
-
txHash: string;
|
|
1321
|
-
/**
|
|
1322
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1323
|
-
*/
|
|
1324
|
-
deployerAddress: string;
|
|
1325
|
-
/**
|
|
1326
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1327
|
-
*/
|
|
1328
|
-
deployerContractAddress?: string;
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
1685
|
type Erc1155Contract = {
|
|
1332
1686
|
/**
|
|
1333
1687
|
* The contract name.
|
|
@@ -1345,7 +1699,7 @@ type Erc1155Contract = {
|
|
|
1345
1699
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1346
1700
|
*/
|
|
1347
1701
|
address: string;
|
|
1348
|
-
deploymentDetails
|
|
1702
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1349
1703
|
ercType: Erc1155Contract.ercType;
|
|
1350
1704
|
/**
|
|
1351
1705
|
* The contract symbol.
|
|
@@ -1376,7 +1730,7 @@ type Erc20Contract = {
|
|
|
1376
1730
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1377
1731
|
*/
|
|
1378
1732
|
address: string;
|
|
1379
|
-
deploymentDetails
|
|
1733
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1380
1734
|
ercType: Erc20Contract.ercType;
|
|
1381
1735
|
/**
|
|
1382
1736
|
* The contract symbol.
|
|
@@ -1411,7 +1765,7 @@ type Erc721Contract = {
|
|
|
1411
1765
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1412
1766
|
*/
|
|
1413
1767
|
address: string;
|
|
1414
|
-
deploymentDetails
|
|
1768
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1415
1769
|
ercType: Erc721Contract.ercType;
|
|
1416
1770
|
/**
|
|
1417
1771
|
* The contract symbol.
|
|
@@ -1441,7 +1795,7 @@ type UnknownContract = {
|
|
|
1441
1795
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1442
1796
|
*/
|
|
1443
1797
|
address: string;
|
|
1444
|
-
deploymentDetails
|
|
1798
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1445
1799
|
ercType: UnknownContract.ercType;
|
|
1446
1800
|
};
|
|
1447
1801
|
declare namespace UnknownContract {
|
|
@@ -1450,10 +1804,6 @@ declare namespace UnknownContract {
|
|
|
1450
1804
|
}
|
|
1451
1805
|
}
|
|
1452
1806
|
|
|
1453
|
-
type UpdateContractResponse = {
|
|
1454
|
-
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1455
|
-
};
|
|
1456
|
-
|
|
1457
1807
|
declare class EvmContractsService {
|
|
1458
1808
|
readonly httpRequest: BaseHttpRequest;
|
|
1459
1809
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1473,23 +1823,6 @@ declare class EvmContractsService {
|
|
|
1473
1823
|
*/
|
|
1474
1824
|
address: string;
|
|
1475
1825
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1476
|
-
/**
|
|
1477
|
-
* Update contract information
|
|
1478
|
-
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1479
|
-
* @returns UpdateContractResponse Successful response
|
|
1480
|
-
* @throws ApiError
|
|
1481
|
-
*/
|
|
1482
|
-
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1483
|
-
/**
|
|
1484
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1485
|
-
*/
|
|
1486
|
-
chainId: string;
|
|
1487
|
-
/**
|
|
1488
|
-
* Contract address on the relevant chain.
|
|
1489
|
-
*/
|
|
1490
|
-
address: string;
|
|
1491
|
-
requestBody: ContractSubmissionBody;
|
|
1492
|
-
}): CancelablePromise<UpdateContractResponse>;
|
|
1493
1826
|
}
|
|
1494
1827
|
|
|
1495
1828
|
type Erc1155Token = {
|
|
@@ -1508,29 +1841,6 @@ declare namespace Erc1155Token {
|
|
|
1508
1841
|
}
|
|
1509
1842
|
}
|
|
1510
1843
|
|
|
1511
|
-
type RichAddress = {
|
|
1512
|
-
/**
|
|
1513
|
-
* The contract name.
|
|
1514
|
-
*/
|
|
1515
|
-
name?: string;
|
|
1516
|
-
/**
|
|
1517
|
-
* The contract symbol.
|
|
1518
|
-
*/
|
|
1519
|
-
symbol?: string;
|
|
1520
|
-
/**
|
|
1521
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1522
|
-
*/
|
|
1523
|
-
decimals?: number;
|
|
1524
|
-
/**
|
|
1525
|
-
* The logo uri for the address.
|
|
1526
|
-
*/
|
|
1527
|
-
logoUri?: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1530
|
-
*/
|
|
1531
|
-
address: string;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
1844
|
type Erc1155TransferDetails = {
|
|
1535
1845
|
from: RichAddress;
|
|
1536
1846
|
to: RichAddress;
|
|
@@ -1615,40 +1925,31 @@ type Erc721TransferDetails = {
|
|
|
1615
1925
|
erc721Token: Erc721Token;
|
|
1616
1926
|
};
|
|
1617
1927
|
|
|
1618
|
-
/**
|
|
1619
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1620
|
-
*/
|
|
1621
|
-
declare enum TransactionMethodType {
|
|
1622
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1623
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1624
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
type Method = {
|
|
1628
|
-
callType: TransactionMethodType;
|
|
1629
|
-
/**
|
|
1630
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1631
|
-
*/
|
|
1632
|
-
methodHash: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1635
|
-
*/
|
|
1636
|
-
methodName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
1928
|
type FullNativeTransactionDetails = {
|
|
1640
1929
|
/**
|
|
1641
1930
|
* The block number on the chain.
|
|
1642
1931
|
*/
|
|
1643
1932
|
blockNumber: string;
|
|
1644
1933
|
/**
|
|
1645
|
-
* The block
|
|
1934
|
+
* The block creation (proposal) timestamp in seconds
|
|
1646
1935
|
*/
|
|
1647
1936
|
blockTimestamp: number;
|
|
1937
|
+
/**
|
|
1938
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1939
|
+
*/
|
|
1940
|
+
blockTimestampMilliseconds?: number;
|
|
1941
|
+
/**
|
|
1942
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1943
|
+
*/
|
|
1944
|
+
blockMinDelayExcess?: number;
|
|
1648
1945
|
/**
|
|
1649
1946
|
* The block hash identifier.
|
|
1650
1947
|
*/
|
|
1651
1948
|
blockHash: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* The EVM chain ID on which the transaction occured.
|
|
1951
|
+
*/
|
|
1952
|
+
chainId: string;
|
|
1652
1953
|
/**
|
|
1653
1954
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1654
1955
|
*/
|
|
@@ -1699,6 +2000,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1699
2000
|
CALL = "CALL",
|
|
1700
2001
|
CREATE = "CREATE",
|
|
1701
2002
|
CREATE2 = "CREATE2",
|
|
2003
|
+
CREATE3 = "CREATE3",
|
|
1702
2004
|
CALLCODE = "CALLCODE",
|
|
1703
2005
|
DELEGATECALL = "DELEGATECALL",
|
|
1704
2006
|
STATICCALL = "STATICCALL"
|
|
@@ -1740,11 +2042,11 @@ type TeleporterMessageInfo = {
|
|
|
1740
2042
|
/**
|
|
1741
2043
|
* chain id of the source chain. valid only for destination transactions
|
|
1742
2044
|
*/
|
|
1743
|
-
sourceChainId?:
|
|
2045
|
+
sourceChainId?: string;
|
|
1744
2046
|
/**
|
|
1745
2047
|
* chain id of the destination chain. valid only for source transactions
|
|
1746
2048
|
*/
|
|
1747
|
-
destinationChainId?:
|
|
2049
|
+
destinationChainId?: string;
|
|
1748
2050
|
};
|
|
1749
2051
|
|
|
1750
2052
|
type GetTransactionResponse = {
|
|
@@ -1761,7 +2063,7 @@ type GetTransactionResponse = {
|
|
|
1761
2063
|
*/
|
|
1762
2064
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1763
2065
|
/**
|
|
1764
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2066
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1765
2067
|
*/
|
|
1766
2068
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1767
2069
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1786,9 +2088,13 @@ type Erc1155Transfer = {
|
|
|
1786
2088
|
*/
|
|
1787
2089
|
blockNumber: string;
|
|
1788
2090
|
/**
|
|
1789
|
-
* The block
|
|
2091
|
+
* The block creation (proposal) timestamp in seconds
|
|
1790
2092
|
*/
|
|
1791
2093
|
blockTimestamp: number;
|
|
2094
|
+
/**
|
|
2095
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2096
|
+
*/
|
|
2097
|
+
blockTimestampMilliseconds?: number;
|
|
1792
2098
|
/**
|
|
1793
2099
|
* The block hash identifier.
|
|
1794
2100
|
*/
|
|
@@ -1818,9 +2124,13 @@ type Erc20Transfer = {
|
|
|
1818
2124
|
*/
|
|
1819
2125
|
blockNumber: string;
|
|
1820
2126
|
/**
|
|
1821
|
-
* The block
|
|
2127
|
+
* The block creation (proposal) timestamp in seconds
|
|
1822
2128
|
*/
|
|
1823
2129
|
blockTimestamp: number;
|
|
2130
|
+
/**
|
|
2131
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2132
|
+
*/
|
|
2133
|
+
blockTimestampMilliseconds?: number;
|
|
1824
2134
|
/**
|
|
1825
2135
|
* The block hash identifier.
|
|
1826
2136
|
*/
|
|
@@ -1850,9 +2160,13 @@ type Erc721Transfer = {
|
|
|
1850
2160
|
*/
|
|
1851
2161
|
blockNumber: string;
|
|
1852
2162
|
/**
|
|
1853
|
-
* The block
|
|
2163
|
+
* The block creation (proposal) timestamp in seconds
|
|
1854
2164
|
*/
|
|
1855
2165
|
blockTimestamp: number;
|
|
2166
|
+
/**
|
|
2167
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2168
|
+
*/
|
|
2169
|
+
blockTimestampMilliseconds?: number;
|
|
1856
2170
|
/**
|
|
1857
2171
|
* The block hash identifier.
|
|
1858
2172
|
*/
|
|
@@ -1881,9 +2195,13 @@ type InternalTransaction = {
|
|
|
1881
2195
|
*/
|
|
1882
2196
|
blockNumber: string;
|
|
1883
2197
|
/**
|
|
1884
|
-
* The block
|
|
2198
|
+
* The block creation (proposal) timestamp in seconds
|
|
1885
2199
|
*/
|
|
1886
2200
|
blockTimestamp: number;
|
|
2201
|
+
/**
|
|
2202
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2203
|
+
*/
|
|
2204
|
+
blockTimestampMilliseconds?: number;
|
|
1887
2205
|
/**
|
|
1888
2206
|
* The block hash identifier.
|
|
1889
2207
|
*/
|
|
@@ -1912,66 +2230,90 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2230
|
transactions: Array<InternalTransaction>;
|
|
1913
2231
|
};
|
|
1914
2232
|
|
|
1915
|
-
type
|
|
2233
|
+
type TransactionDetails = {
|
|
1916
2234
|
/**
|
|
1917
|
-
* The
|
|
2235
|
+
* The native (top-level) transaction details.
|
|
1918
2236
|
*/
|
|
1919
|
-
|
|
2237
|
+
nativeTransaction: NativeTransaction;
|
|
1920
2238
|
/**
|
|
1921
|
-
* The
|
|
2239
|
+
* The list of ERC-20 transfers.
|
|
1922
2240
|
*/
|
|
1923
|
-
|
|
2241
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1924
2242
|
/**
|
|
1925
|
-
* The
|
|
2243
|
+
* The list of ERC-721 transfers.
|
|
1926
2244
|
*/
|
|
1927
|
-
|
|
2245
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1928
2246
|
/**
|
|
1929
|
-
* The
|
|
2247
|
+
* The list of ERC-1155 transfers.
|
|
1930
2248
|
*/
|
|
1931
|
-
|
|
2249
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1932
2250
|
/**
|
|
1933
|
-
* The
|
|
2251
|
+
* 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.
|
|
1934
2252
|
*/
|
|
1935
|
-
|
|
2253
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
type ListTransactionDetailsResponse = {
|
|
1936
2257
|
/**
|
|
1937
|
-
*
|
|
2258
|
+
* 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.
|
|
1938
2259
|
*/
|
|
1939
|
-
|
|
2260
|
+
nextPageToken?: string;
|
|
2261
|
+
transactions: Array<TransactionDetails>;
|
|
2262
|
+
};
|
|
2263
|
+
|
|
2264
|
+
type Erc20TokenV2 = {
|
|
1940
2265
|
/**
|
|
1941
|
-
*
|
|
2266
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1942
2267
|
*/
|
|
1943
|
-
|
|
2268
|
+
address: string;
|
|
1944
2269
|
/**
|
|
1945
|
-
* The
|
|
2270
|
+
* The contract name.
|
|
1946
2271
|
*/
|
|
1947
|
-
|
|
2272
|
+
name: string;
|
|
1948
2273
|
/**
|
|
1949
|
-
* The
|
|
2274
|
+
* The contract symbol.
|
|
1950
2275
|
*/
|
|
1951
|
-
|
|
2276
|
+
symbol: string;
|
|
1952
2277
|
/**
|
|
1953
|
-
* The
|
|
2278
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1954
2279
|
*/
|
|
1955
|
-
|
|
2280
|
+
decimals: number;
|
|
1956
2281
|
/**
|
|
1957
|
-
* The
|
|
2282
|
+
* The logo uri for the address.
|
|
1958
2283
|
*/
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
2284
|
+
logoUri?: string;
|
|
2285
|
+
ercType: Erc20TokenV2.ercType;
|
|
2286
|
+
/**
|
|
2287
|
+
* The token price, if available.
|
|
2288
|
+
*/
|
|
2289
|
+
price?: Money;
|
|
2290
|
+
/**
|
|
2291
|
+
* 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.
|
|
2292
|
+
*/
|
|
2293
|
+
tokenReputation: Erc20TokenV2.tokenReputation;
|
|
1964
2294
|
};
|
|
1965
|
-
|
|
1966
|
-
|
|
2295
|
+
declare namespace Erc20TokenV2 {
|
|
2296
|
+
enum ercType {
|
|
2297
|
+
ERC_20 = "ERC-20"
|
|
2298
|
+
}
|
|
1967
2299
|
/**
|
|
1968
|
-
*
|
|
2300
|
+
* 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.
|
|
1969
2301
|
*/
|
|
1970
|
-
|
|
1971
|
-
|
|
2302
|
+
enum tokenReputation {
|
|
2303
|
+
MALICIOUS = "Malicious",
|
|
2304
|
+
BENIGN = "Benign"
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
type Erc20TransferDetailsV2 = {
|
|
2309
|
+
from: RichAddress;
|
|
2310
|
+
to: RichAddress;
|
|
2311
|
+
logIndex: number;
|
|
2312
|
+
value: string;
|
|
2313
|
+
erc20Token: Erc20TokenV2;
|
|
1972
2314
|
};
|
|
1973
2315
|
|
|
1974
|
-
type
|
|
2316
|
+
type TransactionDetailsV2 = {
|
|
1975
2317
|
/**
|
|
1976
2318
|
* The native (top-level) transaction details.
|
|
1977
2319
|
*/
|
|
@@ -1979,7 +2321,7 @@ type TransactionDetails = {
|
|
|
1979
2321
|
/**
|
|
1980
2322
|
* The list of ERC-20 transfers.
|
|
1981
2323
|
*/
|
|
1982
|
-
erc20Transfers?: Array<
|
|
2324
|
+
erc20Transfers?: Array<Erc20TransferDetailsV2>;
|
|
1983
2325
|
/**
|
|
1984
2326
|
* The list of ERC-721 transfers.
|
|
1985
2327
|
*/
|
|
@@ -1989,17 +2331,17 @@ type TransactionDetails = {
|
|
|
1989
2331
|
*/
|
|
1990
2332
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1991
2333
|
/**
|
|
1992
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2334
|
+
* 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.
|
|
1993
2335
|
*/
|
|
1994
2336
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1995
2337
|
};
|
|
1996
2338
|
|
|
1997
|
-
type
|
|
2339
|
+
type ListTransactionDetailsResponseV2 = {
|
|
1998
2340
|
/**
|
|
1999
2341
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2000
2342
|
*/
|
|
2001
2343
|
nextPageToken?: string;
|
|
2002
|
-
transactions: Array<
|
|
2344
|
+
transactions: Array<TransactionDetailsV2>;
|
|
2003
2345
|
};
|
|
2004
2346
|
|
|
2005
2347
|
type ListTransfersResponse = {
|
|
@@ -2015,14 +2357,33 @@ declare enum SortOrder {
|
|
|
2015
2357
|
DESC = "desc"
|
|
2016
2358
|
}
|
|
2017
2359
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2360
|
declare class EvmTransactionsService {
|
|
2024
2361
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
2362
|
constructor(httpRequest: BaseHttpRequest);
|
|
2363
|
+
/**
|
|
2364
|
+
* List the latest transactions across all supported EVM chains
|
|
2365
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2366
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2367
|
+
* @throws ApiError
|
|
2368
|
+
*/
|
|
2369
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2370
|
+
/**
|
|
2371
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2372
|
+
*/
|
|
2373
|
+
pageToken?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2376
|
+
*/
|
|
2377
|
+
pageSize?: number;
|
|
2378
|
+
/**
|
|
2379
|
+
* Either mainnet or testnet/fuji.
|
|
2380
|
+
*/
|
|
2381
|
+
network?: Network;
|
|
2382
|
+
/**
|
|
2383
|
+
* A status filter for listed transactions.
|
|
2384
|
+
*/
|
|
2385
|
+
status?: TransactionStatus;
|
|
2386
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2026
2387
|
/**
|
|
2027
2388
|
* Get deployment transaction
|
|
2028
2389
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2137,6 +2498,45 @@ declare class EvmTransactionsService {
|
|
|
2137
2498
|
*/
|
|
2138
2499
|
sortOrder?: SortOrder;
|
|
2139
2500
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
2501
|
+
/**
|
|
2502
|
+
* List transactions v2
|
|
2503
|
+
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers (with token reputation), ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
2504
|
+
*
|
|
2505
|
+
* Filterable by block ranges.
|
|
2506
|
+
* @returns ListTransactionDetailsResponseV2 Successful response
|
|
2507
|
+
* @throws ApiError
|
|
2508
|
+
*/
|
|
2509
|
+
listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
|
|
2510
|
+
/**
|
|
2511
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2512
|
+
*/
|
|
2513
|
+
chainId: string;
|
|
2514
|
+
/**
|
|
2515
|
+
* A wallet address.
|
|
2516
|
+
*/
|
|
2517
|
+
address: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2520
|
+
*/
|
|
2521
|
+
pageToken?: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2524
|
+
*/
|
|
2525
|
+
pageSize?: number;
|
|
2526
|
+
/**
|
|
2527
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2528
|
+
*/
|
|
2529
|
+
startBlock?: number;
|
|
2530
|
+
/**
|
|
2531
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2532
|
+
*/
|
|
2533
|
+
endBlock?: number;
|
|
2534
|
+
filterSpamTokens?: boolean;
|
|
2535
|
+
/**
|
|
2536
|
+
* 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.
|
|
2537
|
+
*/
|
|
2538
|
+
sortOrder?: SortOrder;
|
|
2539
|
+
}): CancelablePromise<ListTransactionDetailsResponseV2>;
|
|
2140
2540
|
/**
|
|
2141
2541
|
* List native transactions
|
|
2142
2542
|
* Lists native transactions for an address. Filterable by block range.
|
|
@@ -2269,7 +2669,7 @@ declare class EvmTransactionsService {
|
|
|
2269
2669
|
* List internal transactions
|
|
2270
2670
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
2671
|
*
|
|
2272
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2672
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2273
2673
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
2674
|
* @throws ApiError
|
|
2275
2675
|
*/
|
|
@@ -2298,50 +2698,322 @@ declare class EvmTransactionsService {
|
|
|
2298
2698
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2299
2699
|
*/
|
|
2300
2700
|
pageSize?: number;
|
|
2301
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2302
|
-
/**
|
|
2303
|
-
* Get transaction
|
|
2304
|
-
* Gets the details of a single transaction.
|
|
2305
|
-
* @returns GetTransactionResponse Successful response
|
|
2306
|
-
* @throws ApiError
|
|
2307
|
-
*/
|
|
2308
|
-
getTransaction({ chainId, txHash, }: {
|
|
2701
|
+
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
2702
|
+
/**
|
|
2703
|
+
* Get transaction
|
|
2704
|
+
* Gets the details of a single transaction.
|
|
2705
|
+
* @returns GetTransactionResponse Successful response
|
|
2706
|
+
* @throws ApiError
|
|
2707
|
+
*/
|
|
2708
|
+
getTransaction({ chainId, txHash, }: {
|
|
2709
|
+
/**
|
|
2710
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2711
|
+
*/
|
|
2712
|
+
chainId: string;
|
|
2713
|
+
/**
|
|
2714
|
+
* A transaction hash.
|
|
2715
|
+
*/
|
|
2716
|
+
txHash: string;
|
|
2717
|
+
}): CancelablePromise<GetTransactionResponse>;
|
|
2718
|
+
/**
|
|
2719
|
+
* List transactions for a block
|
|
2720
|
+
* Lists the transactions that occured in a given block.
|
|
2721
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2722
|
+
* @throws ApiError
|
|
2723
|
+
*/
|
|
2724
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2725
|
+
/**
|
|
2726
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2727
|
+
*/
|
|
2728
|
+
chainId: string;
|
|
2729
|
+
/**
|
|
2730
|
+
* A block identifier which is either a block number or the block hash.
|
|
2731
|
+
*/
|
|
2732
|
+
blockId: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2735
|
+
*/
|
|
2736
|
+
pageToken?: string;
|
|
2737
|
+
/**
|
|
2738
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2739
|
+
*/
|
|
2740
|
+
pageSize?: number;
|
|
2741
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2742
|
+
/**
|
|
2743
|
+
* List latest transactions
|
|
2744
|
+
* Lists the latest transactions. Filterable by status.
|
|
2745
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2746
|
+
* @throws ApiError
|
|
2747
|
+
*/
|
|
2748
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2749
|
+
/**
|
|
2750
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2751
|
+
*/
|
|
2752
|
+
chainId: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2755
|
+
*/
|
|
2756
|
+
pageToken?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2759
|
+
*/
|
|
2760
|
+
pageSize?: number;
|
|
2761
|
+
/**
|
|
2762
|
+
* A status filter for listed transactions.
|
|
2763
|
+
*/
|
|
2764
|
+
status?: TransactionStatus;
|
|
2765
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
type HealthIndicatorResultDto = {
|
|
2769
|
+
/**
|
|
2770
|
+
* Status of the health indicator.
|
|
2771
|
+
*/
|
|
2772
|
+
status?: HealthIndicatorResultDto.status;
|
|
2773
|
+
};
|
|
2774
|
+
declare namespace HealthIndicatorResultDto {
|
|
2775
|
+
/**
|
|
2776
|
+
* Status of the health indicator.
|
|
2777
|
+
*/
|
|
2778
|
+
enum status {
|
|
2779
|
+
UP = "up",
|
|
2780
|
+
DOWN = "down"
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
type HealthCheckResultDto = {
|
|
2785
|
+
status?: HealthCheckResultDto.status;
|
|
2786
|
+
info?: any | null;
|
|
2787
|
+
error?: any | null;
|
|
2788
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2789
|
+
};
|
|
2790
|
+
declare namespace HealthCheckResultDto {
|
|
2791
|
+
enum status {
|
|
2792
|
+
ERROR = "error",
|
|
2793
|
+
OK = "ok",
|
|
2794
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
declare class HealthCheckService {
|
|
2799
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2800
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2801
|
+
/**
|
|
2802
|
+
* Get the health of the service
|
|
2803
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2804
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2805
|
+
* @throws ApiError
|
|
2806
|
+
*/
|
|
2807
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2808
|
+
/**
|
|
2809
|
+
* Get the liveliness of the service (reads only)
|
|
2810
|
+
* Check the liveliness of the service (reads only).
|
|
2811
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2812
|
+
* @throws ApiError
|
|
2813
|
+
*/
|
|
2814
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
type IcmDestinationTransaction = {
|
|
2818
|
+
txHash: string;
|
|
2819
|
+
timestamp: number;
|
|
2820
|
+
gasSpent: string;
|
|
2821
|
+
rewardRedeemer: string;
|
|
2822
|
+
delivererAddress: string;
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
type IcmReceipt = {
|
|
2826
|
+
receivedMessageNonce: string;
|
|
2827
|
+
relayerRewardAddress: string;
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
type IcmRewardDetails = {
|
|
2831
|
+
/**
|
|
2832
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2833
|
+
*/
|
|
2834
|
+
address: string;
|
|
2835
|
+
/**
|
|
2836
|
+
* The contract name.
|
|
2837
|
+
*/
|
|
2838
|
+
name: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* The contract symbol.
|
|
2841
|
+
*/
|
|
2842
|
+
symbol: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2845
|
+
*/
|
|
2846
|
+
decimals: number;
|
|
2847
|
+
/**
|
|
2848
|
+
* The logo uri for the address.
|
|
2849
|
+
*/
|
|
2850
|
+
logoUri?: string;
|
|
2851
|
+
ercType: IcmRewardDetails.ercType;
|
|
2852
|
+
/**
|
|
2853
|
+
* The token price, if available.
|
|
2854
|
+
*/
|
|
2855
|
+
price?: Money;
|
|
2856
|
+
value: string;
|
|
2857
|
+
};
|
|
2858
|
+
declare namespace IcmRewardDetails {
|
|
2859
|
+
enum ercType {
|
|
2860
|
+
ERC_20 = "ERC-20"
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
type IcmSourceTransaction = {
|
|
2865
|
+
txHash: string;
|
|
2866
|
+
timestamp: number;
|
|
2867
|
+
gasSpent: string;
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
type DeliveredIcmMessage = {
|
|
2871
|
+
messageId: string;
|
|
2872
|
+
icmContractAddress: string;
|
|
2873
|
+
sourceBlockchainId: string;
|
|
2874
|
+
destinationBlockchainId: string;
|
|
2875
|
+
sourceEvmChainId: string;
|
|
2876
|
+
destinationEvmChainId: string;
|
|
2877
|
+
messageNonce: string;
|
|
2878
|
+
from: string;
|
|
2879
|
+
to: string;
|
|
2880
|
+
data?: string;
|
|
2881
|
+
messageExecuted: boolean;
|
|
2882
|
+
receipts: Array<IcmReceipt>;
|
|
2883
|
+
receiptDelivered: boolean;
|
|
2884
|
+
rewardDetails: IcmRewardDetails;
|
|
2885
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2886
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2887
|
+
status: DeliveredIcmMessage.status;
|
|
2888
|
+
};
|
|
2889
|
+
declare namespace DeliveredIcmMessage {
|
|
2890
|
+
enum status {
|
|
2891
|
+
DELIVERED = "delivered"
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2896
|
+
messageId: string;
|
|
2897
|
+
icmContractAddress: string;
|
|
2898
|
+
sourceBlockchainId: string;
|
|
2899
|
+
destinationBlockchainId: string;
|
|
2900
|
+
sourceEvmChainId: string;
|
|
2901
|
+
destinationEvmChainId: string;
|
|
2902
|
+
messageNonce: string;
|
|
2903
|
+
from: string;
|
|
2904
|
+
to: string;
|
|
2905
|
+
data?: string;
|
|
2906
|
+
messageExecuted: boolean;
|
|
2907
|
+
receipts: Array<IcmReceipt>;
|
|
2908
|
+
receiptDelivered: boolean;
|
|
2909
|
+
rewardDetails: IcmRewardDetails;
|
|
2910
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2911
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2912
|
+
};
|
|
2913
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2914
|
+
enum status {
|
|
2915
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
type PendingIcmMessage = {
|
|
2920
|
+
messageId: string;
|
|
2921
|
+
icmContractAddress: string;
|
|
2922
|
+
sourceBlockchainId: string;
|
|
2923
|
+
destinationBlockchainId: string;
|
|
2924
|
+
sourceEvmChainId: string;
|
|
2925
|
+
destinationEvmChainId: string;
|
|
2926
|
+
messageNonce: string;
|
|
2927
|
+
from: string;
|
|
2928
|
+
to: string;
|
|
2929
|
+
data?: string;
|
|
2930
|
+
messageExecuted: boolean;
|
|
2931
|
+
receipts: Array<IcmReceipt>;
|
|
2932
|
+
receiptDelivered: boolean;
|
|
2933
|
+
rewardDetails: IcmRewardDetails;
|
|
2934
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2935
|
+
status: PendingIcmMessage.status;
|
|
2936
|
+
};
|
|
2937
|
+
declare namespace PendingIcmMessage {
|
|
2938
|
+
enum status {
|
|
2939
|
+
PENDING = "pending"
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
type ListIcmMessagesResponse = {
|
|
2944
|
+
/**
|
|
2945
|
+
* 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.
|
|
2946
|
+
*/
|
|
2947
|
+
nextPageToken?: string;
|
|
2948
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2949
|
+
};
|
|
2950
|
+
|
|
2951
|
+
declare class InterchainMessagingService {
|
|
2952
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2953
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2954
|
+
/**
|
|
2955
|
+
* Get an ICM message
|
|
2956
|
+
* Gets an ICM message by teleporter message ID.
|
|
2957
|
+
* @returns any Successful response
|
|
2958
|
+
* @throws ApiError
|
|
2959
|
+
*/
|
|
2960
|
+
getIcmMessage({ messageId, }: {
|
|
2961
|
+
/**
|
|
2962
|
+
* The teleporter message ID of the ICM message.
|
|
2963
|
+
*/
|
|
2964
|
+
messageId: string;
|
|
2965
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2966
|
+
/**
|
|
2967
|
+
* List ICM messages
|
|
2968
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2969
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2970
|
+
* @throws ApiError
|
|
2971
|
+
*/
|
|
2972
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2973
|
+
/**
|
|
2974
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2975
|
+
*/
|
|
2976
|
+
pageToken?: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2979
|
+
*/
|
|
2980
|
+
pageSize?: number;
|
|
2309
2981
|
/**
|
|
2310
|
-
*
|
|
2982
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2311
2983
|
*/
|
|
2312
|
-
|
|
2984
|
+
sourceBlockchainId?: string;
|
|
2313
2985
|
/**
|
|
2314
|
-
*
|
|
2986
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2315
2987
|
*/
|
|
2316
|
-
|
|
2317
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
2318
|
-
/**
|
|
2319
|
-
* List transactions for a block
|
|
2320
|
-
* Lists the transactions that occured in a given block.
|
|
2321
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
|
-
* @throws ApiError
|
|
2323
|
-
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2988
|
+
destinationBlockchainId?: string;
|
|
2325
2989
|
/**
|
|
2326
|
-
*
|
|
2990
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2327
2991
|
*/
|
|
2328
|
-
|
|
2992
|
+
blockchainId?: string;
|
|
2329
2993
|
/**
|
|
2330
|
-
*
|
|
2994
|
+
* The address of the recipient of the ICM message.
|
|
2331
2995
|
*/
|
|
2332
|
-
|
|
2333
|
-
|
|
2996
|
+
to?: string;
|
|
2997
|
+
/**
|
|
2998
|
+
* The address of the sender of the ICM message.
|
|
2999
|
+
*/
|
|
3000
|
+
from?: string;
|
|
3001
|
+
/**
|
|
3002
|
+
* Either mainnet or testnet/fuji.
|
|
3003
|
+
*/
|
|
3004
|
+
network?: Network;
|
|
3005
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2334
3006
|
/**
|
|
2335
|
-
* List
|
|
2336
|
-
* Lists
|
|
2337
|
-
* @returns
|
|
3007
|
+
* List ICM messages by address
|
|
3008
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3009
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2338
3010
|
* @throws ApiError
|
|
2339
3011
|
*/
|
|
2340
|
-
|
|
3012
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2341
3013
|
/**
|
|
2342
|
-
*
|
|
3014
|
+
* An EVM address.
|
|
2343
3015
|
*/
|
|
2344
|
-
|
|
3016
|
+
address: string;
|
|
2345
3017
|
/**
|
|
2346
3018
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2347
3019
|
*/
|
|
@@ -2351,26 +3023,10 @@ declare class EvmTransactionsService {
|
|
|
2351
3023
|
*/
|
|
2352
3024
|
pageSize?: number;
|
|
2353
3025
|
/**
|
|
2354
|
-
*
|
|
3026
|
+
* Either mainnet or testnet/fuji.
|
|
2355
3027
|
*/
|
|
2356
|
-
|
|
2357
|
-
}): CancelablePromise<
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
declare class HealthCheckService {
|
|
2361
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2362
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2363
|
-
/**
|
|
2364
|
-
* Get the health of the service
|
|
2365
|
-
* @returns any The Health Check is successful
|
|
2366
|
-
* @throws ApiError
|
|
2367
|
-
*/
|
|
2368
|
-
dataHealthCheck(): CancelablePromise<{
|
|
2369
|
-
status?: string;
|
|
2370
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2371
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2372
|
-
details?: Record<string, Record<string, string>>;
|
|
2373
|
-
}>;
|
|
3028
|
+
network?: Network;
|
|
3029
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2374
3030
|
}
|
|
2375
3031
|
|
|
2376
3032
|
type ListNftTokens = {
|
|
@@ -2483,7 +3139,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2483
3139
|
type PrimaryNetworkOptions = {
|
|
2484
3140
|
addresses?: Array<string>;
|
|
2485
3141
|
cChainEvmAddresses?: Array<string>;
|
|
2486
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3142
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2487
3143
|
};
|
|
2488
3144
|
|
|
2489
3145
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2491,94 +3147,355 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2491
3147
|
firstDate?: string;
|
|
2492
3148
|
lastDate?: string;
|
|
2493
3149
|
/**
|
|
2494
|
-
* @deprecated
|
|
3150
|
+
* @deprecated
|
|
3151
|
+
*/
|
|
3152
|
+
startDate?: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* @deprecated
|
|
3155
|
+
*/
|
|
3156
|
+
endDate?: string;
|
|
3157
|
+
options: PrimaryNetworkOptions;
|
|
3158
|
+
};
|
|
3159
|
+
|
|
3160
|
+
declare enum OperationStatus {
|
|
3161
|
+
RUNNING = "RUNNING",
|
|
3162
|
+
COMPLETED = "COMPLETED",
|
|
3163
|
+
COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
|
|
3164
|
+
FAILED = "FAILED"
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
declare enum OperationType {
|
|
3168
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3169
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
3170
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
3171
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
declare enum OperationStatusCode {
|
|
3175
|
+
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
3176
|
+
ERR_INTERNAL = "ErrInternal",
|
|
3177
|
+
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
type TransactionExportMetadata = {
|
|
3181
|
+
code?: OperationStatusCode;
|
|
3182
|
+
/**
|
|
3183
|
+
* File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
|
|
3184
|
+
*/
|
|
3185
|
+
downloadUrl?: string;
|
|
3186
|
+
/**
|
|
3187
|
+
* The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
|
|
3188
|
+
*/
|
|
3189
|
+
nextDate?: string;
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
type OperationStatusResponse = {
|
|
3193
|
+
operationId: string;
|
|
3194
|
+
operationType: OperationType;
|
|
3195
|
+
operationStatus: OperationStatus;
|
|
3196
|
+
message?: string;
|
|
3197
|
+
metadata?: TransactionExportMetadata;
|
|
3198
|
+
createdAtTimestamp: number;
|
|
3199
|
+
updatedAtTimestamp: number;
|
|
3200
|
+
};
|
|
3201
|
+
|
|
3202
|
+
declare class OperationsService {
|
|
3203
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3204
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3205
|
+
/**
|
|
3206
|
+
* Get operation
|
|
3207
|
+
* Gets operation details for the given operation id.
|
|
3208
|
+
* @returns OperationStatusResponse Successful response
|
|
3209
|
+
* @throws ApiError
|
|
3210
|
+
*/
|
|
3211
|
+
getOperationResult({ operationId, }: {
|
|
3212
|
+
/**
|
|
3213
|
+
* UUID of given operation
|
|
3214
|
+
*/
|
|
3215
|
+
operationId: string;
|
|
3216
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3217
|
+
/**
|
|
3218
|
+
* Create transaction export operation
|
|
3219
|
+
* Trigger a transaction export operation with given parameters.
|
|
3220
|
+
*
|
|
3221
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
3222
|
+
* @returns OperationStatusResponse Successful response
|
|
3223
|
+
* @throws ApiError
|
|
3224
|
+
*/
|
|
3225
|
+
postTransactionExportJob({ requestBody, }: {
|
|
3226
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
3227
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
type EvmGenesisAllocDto = {
|
|
3231
|
+
/**
|
|
3232
|
+
* Account balance in hex format
|
|
3233
|
+
*/
|
|
3234
|
+
balance?: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* Contract bytecode in hex format
|
|
3237
|
+
*/
|
|
3238
|
+
code?: string;
|
|
3239
|
+
/**
|
|
3240
|
+
* Contract storage slots
|
|
3241
|
+
*/
|
|
3242
|
+
storage?: Record<string, string>;
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3245
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3246
|
+
/**
|
|
3247
|
+
* Block timestamp
|
|
3248
|
+
*/
|
|
3249
|
+
blockTimestamp?: number;
|
|
3250
|
+
/**
|
|
3251
|
+
* Admin addresses
|
|
3252
|
+
*/
|
|
3253
|
+
adminAddresses?: Array<string>;
|
|
3254
|
+
/**
|
|
3255
|
+
* Manager addresses
|
|
3256
|
+
*/
|
|
3257
|
+
managerAddresses?: Array<string>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Enabled addresses
|
|
3260
|
+
*/
|
|
3261
|
+
enabledAddresses?: Array<string>;
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
type EvmGenesisFeeConfigDto = {
|
|
3265
|
+
/**
|
|
3266
|
+
* Base fee change denominator
|
|
3267
|
+
*/
|
|
3268
|
+
baseFeeChangeDenominator?: number;
|
|
3269
|
+
/**
|
|
3270
|
+
* Block gas cost step
|
|
3271
|
+
*/
|
|
3272
|
+
blockGasCostStep?: number;
|
|
3273
|
+
/**
|
|
3274
|
+
* Gas limit
|
|
3275
|
+
*/
|
|
3276
|
+
gasLimit?: number;
|
|
3277
|
+
/**
|
|
3278
|
+
* Maximum block gas cost
|
|
3279
|
+
*/
|
|
3280
|
+
maxBlockGasCost?: number;
|
|
3281
|
+
/**
|
|
3282
|
+
* Minimum base fee
|
|
3283
|
+
*/
|
|
3284
|
+
minBaseFee?: number;
|
|
3285
|
+
/**
|
|
3286
|
+
* Minimum block gas cost
|
|
3287
|
+
*/
|
|
3288
|
+
minBlockGasCost?: number;
|
|
3289
|
+
/**
|
|
3290
|
+
* Target block rate
|
|
3291
|
+
*/
|
|
3292
|
+
targetBlockRate?: number;
|
|
3293
|
+
/**
|
|
3294
|
+
* Target gas
|
|
3295
|
+
*/
|
|
3296
|
+
targetGas?: number;
|
|
3297
|
+
};
|
|
3298
|
+
|
|
3299
|
+
type EvmGenesisWarpConfigDto = {
|
|
3300
|
+
/**
|
|
3301
|
+
* Block timestamp
|
|
3302
|
+
*/
|
|
3303
|
+
blockTimestamp?: number;
|
|
3304
|
+
/**
|
|
3305
|
+
* Quorum numerator
|
|
3306
|
+
*/
|
|
3307
|
+
quorumNumerator?: number;
|
|
3308
|
+
/**
|
|
3309
|
+
* Require primary network signers
|
|
3310
|
+
*/
|
|
3311
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3312
|
+
};
|
|
3313
|
+
|
|
3314
|
+
type EvmGenesisConfigDto = {
|
|
3315
|
+
/**
|
|
3316
|
+
* Berlin block number
|
|
3317
|
+
*/
|
|
3318
|
+
berlinBlock?: number;
|
|
3319
|
+
/**
|
|
3320
|
+
* Byzantium block number
|
|
3321
|
+
*/
|
|
3322
|
+
byzantiumBlock?: number;
|
|
3323
|
+
/**
|
|
3324
|
+
* Chain ID
|
|
3325
|
+
*/
|
|
3326
|
+
chainId?: number;
|
|
3327
|
+
/**
|
|
3328
|
+
* Constantinople block number
|
|
3329
|
+
*/
|
|
3330
|
+
constantinopleBlock?: number;
|
|
3331
|
+
/**
|
|
3332
|
+
* EIP-150 block number
|
|
3333
|
+
*/
|
|
3334
|
+
eip150Block?: number;
|
|
3335
|
+
/**
|
|
3336
|
+
* EIP-150 hash
|
|
3337
|
+
*/
|
|
3338
|
+
eip150Hash?: string;
|
|
3339
|
+
/**
|
|
3340
|
+
* EIP-155 block number
|
|
3341
|
+
*/
|
|
3342
|
+
eip155Block?: number;
|
|
3343
|
+
/**
|
|
3344
|
+
* EIP-158 block number
|
|
3345
|
+
*/
|
|
3346
|
+
eip158Block?: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Fee configuration
|
|
3349
|
+
*/
|
|
3350
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3351
|
+
/**
|
|
3352
|
+
* Homestead block number
|
|
3353
|
+
*/
|
|
3354
|
+
homesteadBlock?: number;
|
|
3355
|
+
/**
|
|
3356
|
+
* Istanbul block number
|
|
3357
|
+
*/
|
|
3358
|
+
istanbulBlock?: number;
|
|
3359
|
+
/**
|
|
3360
|
+
* London block number
|
|
3361
|
+
*/
|
|
3362
|
+
londonBlock?: number;
|
|
3363
|
+
/**
|
|
3364
|
+
* Muir Glacier block number
|
|
3365
|
+
*/
|
|
3366
|
+
muirGlacierBlock?: number;
|
|
3367
|
+
/**
|
|
3368
|
+
* Petersburg block number
|
|
3369
|
+
*/
|
|
3370
|
+
petersburgBlock?: number;
|
|
3371
|
+
/**
|
|
3372
|
+
* Subnet EVM timestamp
|
|
3373
|
+
*/
|
|
3374
|
+
subnetEVMTimestamp?: number;
|
|
3375
|
+
/**
|
|
3376
|
+
* Allow fee recipients
|
|
3377
|
+
*/
|
|
3378
|
+
allowFeeRecipients?: boolean;
|
|
3379
|
+
/**
|
|
3380
|
+
* Warp configuration
|
|
3381
|
+
*/
|
|
3382
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3383
|
+
/**
|
|
3384
|
+
* Transaction allow list configuration
|
|
3385
|
+
*/
|
|
3386
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3387
|
+
/**
|
|
3388
|
+
* Contract deployer allow list configuration
|
|
3389
|
+
*/
|
|
3390
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3391
|
+
/**
|
|
3392
|
+
* Contract native minter configuration
|
|
3393
|
+
*/
|
|
3394
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3395
|
+
/**
|
|
3396
|
+
* Fee manager configuration
|
|
3397
|
+
*/
|
|
3398
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3399
|
+
/**
|
|
3400
|
+
* Reward manager configuration
|
|
3401
|
+
*/
|
|
3402
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3403
|
+
};
|
|
3404
|
+
|
|
3405
|
+
type EvmGenesisDto = {
|
|
3406
|
+
/**
|
|
3407
|
+
* Airdrop amount
|
|
3408
|
+
*/
|
|
3409
|
+
airdropAmount?: number | null;
|
|
3410
|
+
/**
|
|
3411
|
+
* Airdrop hash
|
|
3412
|
+
*/
|
|
3413
|
+
airdropHash?: string;
|
|
3414
|
+
/**
|
|
3415
|
+
* Allocation of accounts and balances
|
|
3416
|
+
*/
|
|
3417
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3418
|
+
/**
|
|
3419
|
+
* Base fee per gas
|
|
3420
|
+
*/
|
|
3421
|
+
baseFeePerGas?: number | null;
|
|
3422
|
+
/**
|
|
3423
|
+
* Blob gas used
|
|
3424
|
+
*/
|
|
3425
|
+
blobGasUsed?: string | null;
|
|
3426
|
+
/**
|
|
3427
|
+
* Coinbase address
|
|
3428
|
+
*/
|
|
3429
|
+
coinbase?: string;
|
|
3430
|
+
/**
|
|
3431
|
+
* Genesis configuration
|
|
3432
|
+
*/
|
|
3433
|
+
config?: EvmGenesisConfigDto;
|
|
3434
|
+
/**
|
|
3435
|
+
* Difficulty
|
|
3436
|
+
*/
|
|
3437
|
+
difficulty?: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* Excess blob gas
|
|
3440
|
+
*/
|
|
3441
|
+
excessBlobGas?: string | null;
|
|
3442
|
+
/**
|
|
3443
|
+
* Extra data
|
|
3444
|
+
*/
|
|
3445
|
+
extraData?: string;
|
|
3446
|
+
/**
|
|
3447
|
+
* Gas limit
|
|
3448
|
+
*/
|
|
3449
|
+
gasLimit?: string;
|
|
3450
|
+
/**
|
|
3451
|
+
* Gas used
|
|
3452
|
+
*/
|
|
3453
|
+
gasUsed?: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* Mix hash
|
|
3456
|
+
*/
|
|
3457
|
+
mixHash?: string;
|
|
3458
|
+
/**
|
|
3459
|
+
* Nonce
|
|
2495
3460
|
*/
|
|
2496
|
-
|
|
3461
|
+
nonce?: string;
|
|
2497
3462
|
/**
|
|
2498
|
-
*
|
|
3463
|
+
* Block number
|
|
2499
3464
|
*/
|
|
2500
|
-
|
|
2501
|
-
options: PrimaryNetworkOptions;
|
|
2502
|
-
};
|
|
2503
|
-
|
|
2504
|
-
declare enum OperationStatus {
|
|
2505
|
-
RUNNING = "RUNNING",
|
|
2506
|
-
COMPLETED = "COMPLETED",
|
|
2507
|
-
COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
|
|
2508
|
-
FAILED = "FAILED"
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
declare enum OperationType {
|
|
2512
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2513
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2514
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2515
|
-
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
declare enum OperationStatusCode {
|
|
2519
|
-
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
2520
|
-
ERR_INTERNAL = "ErrInternal",
|
|
2521
|
-
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
type TransactionExportMetadata = {
|
|
2525
|
-
code?: OperationStatusCode;
|
|
3465
|
+
number?: string;
|
|
2526
3466
|
/**
|
|
2527
|
-
*
|
|
3467
|
+
* Parent hash
|
|
2528
3468
|
*/
|
|
2529
|
-
|
|
3469
|
+
parentHash?: string;
|
|
2530
3470
|
/**
|
|
2531
|
-
*
|
|
3471
|
+
* Block timestamp
|
|
2532
3472
|
*/
|
|
2533
|
-
|
|
2534
|
-
};
|
|
2535
|
-
|
|
2536
|
-
type OperationStatusResponse = {
|
|
2537
|
-
operationId: string;
|
|
2538
|
-
operationType: OperationType;
|
|
2539
|
-
operationStatus: OperationStatus;
|
|
2540
|
-
message?: string;
|
|
2541
|
-
metadata: TransactionExportMetadata;
|
|
2542
|
-
createdAtTimestamp: number;
|
|
2543
|
-
updatedAtTimestamp: number;
|
|
3473
|
+
timestamp?: string;
|
|
2544
3474
|
};
|
|
2545
3475
|
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
3476
|
+
type Blockchain = {
|
|
3477
|
+
createBlockTimestamp: number;
|
|
3478
|
+
createBlockNumber: string;
|
|
3479
|
+
blockchainId: string;
|
|
3480
|
+
vmId: string;
|
|
3481
|
+
subnetId: string;
|
|
3482
|
+
blockchainName: string;
|
|
2549
3483
|
/**
|
|
2550
|
-
*
|
|
2551
|
-
* Gets operation details for the given operation id.
|
|
2552
|
-
* @returns OperationStatusResponse Successful response
|
|
2553
|
-
* @throws ApiError
|
|
3484
|
+
* 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.
|
|
2554
3485
|
*/
|
|
2555
|
-
|
|
2556
|
-
/**
|
|
2557
|
-
* UUID of given operation
|
|
2558
|
-
*/
|
|
2559
|
-
operationId: string;
|
|
2560
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
3486
|
+
evmChainId?: number;
|
|
2561
3487
|
/**
|
|
2562
|
-
*
|
|
2563
|
-
* Trigger a transaction export operation with given parameters.
|
|
2564
|
-
*
|
|
2565
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2566
|
-
* @returns OperationStatusResponse Successful response
|
|
2567
|
-
* @throws ApiError
|
|
3488
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
2568
3489
|
*/
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2572
|
-
}
|
|
3490
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3491
|
+
};
|
|
2573
3492
|
|
|
2574
3493
|
declare enum BlockchainIds {
|
|
2575
3494
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2576
3495
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2577
3496
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2579
3497
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2580
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2581
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3498
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2582
3499
|
}
|
|
2583
3500
|
|
|
2584
3501
|
type ChainAddressChainIdMap = {
|
|
@@ -2602,16 +3519,31 @@ type DelegatorsDetails = {
|
|
|
2602
3519
|
};
|
|
2603
3520
|
|
|
2604
3521
|
type StakingDistribution = {
|
|
3522
|
+
/**
|
|
3523
|
+
* AvalancheGo version for the validator node.
|
|
3524
|
+
*/
|
|
2605
3525
|
version: string;
|
|
3526
|
+
/**
|
|
3527
|
+
* The total amount staked by validators using this version.
|
|
3528
|
+
*/
|
|
2606
3529
|
amountStaked: string;
|
|
3530
|
+
/**
|
|
3531
|
+
* The number of validators using this version.
|
|
3532
|
+
*/
|
|
2607
3533
|
validatorCount: number;
|
|
2608
3534
|
};
|
|
2609
3535
|
|
|
2610
3536
|
type ValidatorsDetails = {
|
|
2611
3537
|
validatorCount: number;
|
|
2612
3538
|
totalAmountStaked: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3541
|
+
*/
|
|
2613
3542
|
estimatedAnnualStakingReward: string;
|
|
2614
3543
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3544
|
+
/**
|
|
3545
|
+
* Ratio of total active stake amount to the current supply.
|
|
3546
|
+
*/
|
|
2615
3547
|
stakingRatio: string;
|
|
2616
3548
|
};
|
|
2617
3549
|
|
|
@@ -2620,13 +3552,146 @@ type GetNetworkDetailsResponse = {
|
|
|
2620
3552
|
delegatorDetails: DelegatorsDetails;
|
|
2621
3553
|
};
|
|
2622
3554
|
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
3555
|
+
/**
|
|
3556
|
+
* How this cycle ended. `renewed` = rolled into another cycle; `exited` = final cycle of a graceful exit; `aborted` = reward eligibility not met.
|
|
3557
|
+
*/
|
|
3558
|
+
declare enum AutoRenewedCycleOutcome {
|
|
3559
|
+
RENEWED = "renewed",
|
|
3560
|
+
EXITED = "exited",
|
|
3561
|
+
ABORTED = "aborted"
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
type AutoRenewedCycle = {
|
|
3565
|
+
/**
|
|
3566
|
+
* 1-based sequence within this position. A node that has held more than one auto-renewed position has more than one cycle 1, so group by `stakingTxHash` or filter with the `txHash` query param.
|
|
3567
|
+
*/
|
|
3568
|
+
cycleIndex: number;
|
|
3569
|
+
/**
|
|
3570
|
+
* The transaction that settled this cycle. Present even when the cycle paid nothing out, which is what makes a fully-compounding cycle visible.
|
|
3571
|
+
*/
|
|
3572
|
+
rewardTxHash: string;
|
|
3573
|
+
/**
|
|
3574
|
+
* The originating AddAutoRenewedValidatorTx. Identifies the position, and is shared by every cycle of it.
|
|
3575
|
+
*/
|
|
3576
|
+
stakingTxHash: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* This cycle's window start, unix seconds.
|
|
3579
|
+
*/
|
|
3580
|
+
startTimestamp: number;
|
|
3581
|
+
/**
|
|
3582
|
+
* This cycle's window end, unix seconds.
|
|
3583
|
+
*/
|
|
3584
|
+
endTimestamp: number;
|
|
3585
|
+
/**
|
|
3586
|
+
* Weight bonded for this cycle in nAVAX, before this cycle's own rewards were compounded into it. The denominator for per-cycle yield.
|
|
3587
|
+
*/
|
|
3588
|
+
weightAtCycleStart: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* Validation reward earned this cycle, in nAVAX. `"0"` when the cycle was aborted, since the reward is forfeited. Excludes rewards earned in earlier cycles.
|
|
3591
|
+
*/
|
|
3592
|
+
grossValidationReward: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Portion paid out as a reward UTXO, in nAVAX.
|
|
3595
|
+
*/
|
|
3596
|
+
withdrawnValidationReward: string;
|
|
3597
|
+
/**
|
|
3598
|
+
* Portion restaked into validator weight, in nAVAX. Produces no UTXO. May be below `share x gross` when restaking would exceed the maximum validator stake.
|
|
3599
|
+
*/
|
|
3600
|
+
compoundedValidationReward: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* Delegatee commission earned this cycle, in nAVAX. Still paid when the cycle is aborted. `"0"` when the validator had no delegators.
|
|
3603
|
+
*/
|
|
3604
|
+
grossDelegateeReward: string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Commission paid out, in nAVAX.
|
|
3607
|
+
*/
|
|
3608
|
+
withdrawnDelegateeReward: string;
|
|
3609
|
+
/**
|
|
3610
|
+
* Commission restaked into weight, in nAVAX.
|
|
3611
|
+
*/
|
|
3612
|
+
compoundedDelegateeReward: string;
|
|
3613
|
+
/**
|
|
3614
|
+
* 0-100. The share in effect during this cycle, not the current one.
|
|
3615
|
+
*/
|
|
3616
|
+
autoCompoundSharePercent: number;
|
|
3617
|
+
outcome: AutoRenewedCycleOutcome;
|
|
3618
|
+
/**
|
|
3619
|
+
* Delegations overlapping this cycle's window. A delegation covering part of the cycle counts the same as one covering all of it.
|
|
3620
|
+
*/
|
|
3621
|
+
delegatorCount: number;
|
|
3622
|
+
/**
|
|
3623
|
+
* Total weight of those delegations in nAVAX. Not included in `weightAtCycleStart`.
|
|
3624
|
+
*/
|
|
3625
|
+
amountDelegated: string;
|
|
3626
|
+
};
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* `renewing` = will roll into another cycle; `exiting` = graceful exit armed, this is the final cycle. Not an outcome - the cycle can still abort on reward eligibility.
|
|
3630
|
+
*/
|
|
3631
|
+
declare enum AutoRenewState {
|
|
3632
|
+
RENEWING = "renewing",
|
|
3633
|
+
EXITING = "exiting",
|
|
3634
|
+
EXITED = "exited",
|
|
3635
|
+
ABORTED = "aborted"
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
type CurrentAutoRenewedCycle = {
|
|
3639
|
+
/**
|
|
3640
|
+
* 1-based sequence within this position. The settled cycles in `cycles` run from 1 to this value minus one.
|
|
3641
|
+
*/
|
|
3642
|
+
cycleIndex: number;
|
|
3643
|
+
/**
|
|
3644
|
+
* The originating AddAutoRenewedValidatorTx for this position.
|
|
3645
|
+
*/
|
|
3646
|
+
stakingTxHash: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* This cycle's window start, unix seconds.
|
|
3649
|
+
*/
|
|
3650
|
+
startTimestamp: number;
|
|
3651
|
+
/**
|
|
3652
|
+
* This cycle's window end, unix seconds. A delegation into this validator must end within it.
|
|
3653
|
+
*/
|
|
3654
|
+
endTimestamp: number;
|
|
3655
|
+
/**
|
|
3656
|
+
* Weight bonded for this cycle in nAVAX. Rewards compound into weight only at settlement, so this is stable for the whole cycle.
|
|
3657
|
+
*/
|
|
3658
|
+
weightAtCycleStart: string;
|
|
3659
|
+
/**
|
|
3660
|
+
* Forecast validation reward for the **whole** cycle in nAVAX, minted at cycle start. Not an amount earned so far, and not comparable to a settled cycle's `grossValidationReward` until this cycle settles. Do not add it to sums over `cycles`.
|
|
3661
|
+
*/
|
|
3662
|
+
projectedValidationReward: string;
|
|
3663
|
+
/**
|
|
3664
|
+
* Delegatee commission already accrued this cycle, in nAVAX, from delegations that have settled within it. Unlike the validation reward this is realised, not forecast; delegations still running contribute nothing yet.
|
|
3665
|
+
*/
|
|
3666
|
+
accruedDelegateeReward: string;
|
|
3667
|
+
/**
|
|
3668
|
+
* 0-100. The share that will apply when this cycle settles. A SetAutoRenewedValidatorConfigTx mid-cycle changes it, so it is not final until settlement.
|
|
3669
|
+
*/
|
|
3670
|
+
autoCompoundSharePercent: number;
|
|
3671
|
+
state: AutoRenewState;
|
|
3672
|
+
/**
|
|
3673
|
+
* Delegations overlapping this cycle's window.
|
|
3674
|
+
*/
|
|
3675
|
+
delegatorCount: number;
|
|
3676
|
+
/**
|
|
3677
|
+
* Total weight of those delegations in nAVAX. Not included in `weightAtCycleStart`.
|
|
3678
|
+
*/
|
|
3679
|
+
amountDelegated: string;
|
|
3680
|
+
};
|
|
3681
|
+
|
|
3682
|
+
type ListAutoRenewedCyclesResponse = {
|
|
3683
|
+
/**
|
|
3684
|
+
* 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.
|
|
3685
|
+
*/
|
|
3686
|
+
nextPageToken?: string;
|
|
3687
|
+
/**
|
|
3688
|
+
* Settled cycles, newest first by default. Empty for a node with no auto-renewed validation. The in-flight cycle is not included; it is on the validator object.
|
|
3689
|
+
*/
|
|
3690
|
+
cycles: Array<AutoRenewedCycle>;
|
|
3691
|
+
/**
|
|
3692
|
+
* The cycle in flight. Absent when the position has ended, and on any page but the first.
|
|
3693
|
+
*/
|
|
3694
|
+
currentCycle?: CurrentAutoRenewedCycle;
|
|
2630
3695
|
};
|
|
2631
3696
|
|
|
2632
3697
|
type ListBlockchainsResponse = {
|
|
@@ -2663,7 +3728,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3728
|
delegationFee: string;
|
|
2664
3729
|
startTimestamp: number;
|
|
2665
3730
|
endTimestamp: number;
|
|
3731
|
+
/**
|
|
3732
|
+
* Total rewards distributed for the successful delegation.
|
|
3733
|
+
*/
|
|
2666
3734
|
grossReward: string;
|
|
3735
|
+
/**
|
|
3736
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3737
|
+
*/
|
|
2667
3738
|
netReward: string;
|
|
2668
3739
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3740
|
};
|
|
@@ -2681,7 +3752,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3752
|
delegationFee: string;
|
|
2682
3753
|
startTimestamp: number;
|
|
2683
3754
|
endTimestamp: number;
|
|
3755
|
+
/**
|
|
3756
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3757
|
+
*/
|
|
2684
3758
|
estimatedGrossReward: string;
|
|
3759
|
+
/**
|
|
3760
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3761
|
+
*/
|
|
2685
3762
|
estimatedNetReward: string;
|
|
2686
3763
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3764
|
};
|
|
@@ -2702,8 +3779,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3779
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3780
|
};
|
|
2704
3781
|
|
|
2705
|
-
type
|
|
3782
|
+
type BalanceOwner = {
|
|
3783
|
+
addresses: Array<string>;
|
|
3784
|
+
threshold: number;
|
|
3785
|
+
};
|
|
3786
|
+
|
|
3787
|
+
type L1ValidatorDetailsFull = {
|
|
3788
|
+
/**
|
|
3789
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3790
|
+
*/
|
|
3791
|
+
validationId: string;
|
|
3792
|
+
/**
|
|
3793
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3794
|
+
*/
|
|
3795
|
+
validationIdHex: string;
|
|
3796
|
+
nodeId: string;
|
|
3797
|
+
subnetId: string;
|
|
3798
|
+
/**
|
|
3799
|
+
* 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
|
|
3800
|
+
*/
|
|
3801
|
+
weight: number;
|
|
3802
|
+
/**
|
|
3803
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3804
|
+
*/
|
|
3805
|
+
remainingBalance: number;
|
|
3806
|
+
/**
|
|
3807
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3808
|
+
*/
|
|
3809
|
+
creationTimestamp: number;
|
|
3810
|
+
blsCredentials: Record<string, any>;
|
|
3811
|
+
/**
|
|
3812
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3813
|
+
*/
|
|
3814
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3815
|
+
/**
|
|
3816
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3817
|
+
*/
|
|
3818
|
+
deactivationOwner: BalanceOwner;
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
type ListL1ValidatorsResponse = {
|
|
3822
|
+
/**
|
|
3823
|
+
* 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.
|
|
3824
|
+
*/
|
|
3825
|
+
nextPageToken?: string;
|
|
3826
|
+
/**
|
|
3827
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3828
|
+
*/
|
|
3829
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3830
|
+
/**
|
|
3831
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3832
|
+
*/
|
|
3833
|
+
blockHeight: string;
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3836
|
+
type L1ValidatorManagerDetails = {
|
|
2706
3837
|
blockchainId: string;
|
|
3838
|
+
contractAddress: string;
|
|
2707
3839
|
};
|
|
2708
3840
|
|
|
2709
3841
|
type SubnetOwnershipInfo = {
|
|
@@ -2744,7 +3876,19 @@ type Subnet = {
|
|
|
2744
3876
|
* Latest subnet owner details for this Subnet.
|
|
2745
3877
|
*/
|
|
2746
3878
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2747
|
-
|
|
3879
|
+
/**
|
|
3880
|
+
* Whether the subnet is an L1 or not.
|
|
3881
|
+
*/
|
|
3882
|
+
isL1: boolean;
|
|
3883
|
+
/**
|
|
3884
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3885
|
+
*/
|
|
3886
|
+
l1ConversionTransactionHash?: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* L1 validator manager details.
|
|
3889
|
+
*/
|
|
3890
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3891
|
+
blockchains: Array<Blockchain>;
|
|
2748
3892
|
};
|
|
2749
3893
|
|
|
2750
3894
|
type ListSubnetsResponse = {
|
|
@@ -2755,11 +3899,79 @@ type ListSubnetsResponse = {
|
|
|
2755
3899
|
subnets: Array<Subnet>;
|
|
2756
3900
|
};
|
|
2757
3901
|
|
|
3902
|
+
/**
|
|
3903
|
+
* Why the validation ended. `graceful` = exited after being configured to stop renewing; `uptime_not_met` = removed because reward eligibility was not met. Null while still active (`renewing` or `exiting`). `state` carries the same distinction (`exited` vs `aborted`).
|
|
3904
|
+
*/
|
|
3905
|
+
declare enum AutoRenewExitReason {
|
|
3906
|
+
GRACEFUL = "graceful",
|
|
3907
|
+
UPTIME_NOT_MET = "uptime_not_met"
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
type AutoRenewDetails = {
|
|
3911
|
+
state: AutoRenewState;
|
|
3912
|
+
/**
|
|
3913
|
+
* Length of the next cycle in seconds. `0` = graceful exit armed at the end of the current cycle.
|
|
3914
|
+
*/
|
|
3915
|
+
nextPeriodSeconds: number;
|
|
3916
|
+
/**
|
|
3917
|
+
* Share of each cycle's rewards that is restaked (compounded into validator weight), as a percent from 0 to 100 (not millionths/ppm, e.g. 90 means 90%).
|
|
3918
|
+
*/
|
|
3919
|
+
autoCompoundSharePercent: number;
|
|
3920
|
+
/**
|
|
3921
|
+
* Current validator weight in nAVAX: the original stake plus all rewards restaked across prior cycles.
|
|
3922
|
+
*/
|
|
3923
|
+
compoundedWeight: string;
|
|
3924
|
+
/**
|
|
3925
|
+
* Cumulative validation rewards restaked from prior cycles, in nAVAX.
|
|
3926
|
+
*/
|
|
3927
|
+
accruedValidationRewards: string;
|
|
3928
|
+
/**
|
|
3929
|
+
* Cumulative delegatee commission restaked from prior cycles, in nAVAX.
|
|
3930
|
+
*/
|
|
3931
|
+
accruedDelegateeRewards: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* Reward owner addresses (validation).
|
|
3934
|
+
*/
|
|
3935
|
+
validationRewardAddresses: Array<string>;
|
|
3936
|
+
/**
|
|
3937
|
+
* Reward owner addresses (delegation).
|
|
3938
|
+
*/
|
|
3939
|
+
delegationRewardAddresses: Array<string>;
|
|
3940
|
+
exitReason: AutoRenewExitReason | null;
|
|
3941
|
+
/**
|
|
3942
|
+
* When it exited/aborted; null while still active.
|
|
3943
|
+
*/
|
|
3944
|
+
endedAtTimestamp: any | null;
|
|
3945
|
+
};
|
|
3946
|
+
|
|
2758
3947
|
type BlsCredentials = {
|
|
2759
3948
|
publicKey: string;
|
|
2760
3949
|
proofOfPossession: string;
|
|
2761
3950
|
};
|
|
2762
3951
|
|
|
3952
|
+
type Geolocation = {
|
|
3953
|
+
/**
|
|
3954
|
+
* The name of the validator node.
|
|
3955
|
+
*/
|
|
3956
|
+
city: string;
|
|
3957
|
+
/**
|
|
3958
|
+
* The city of the validator node.
|
|
3959
|
+
*/
|
|
3960
|
+
country: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* The country code of the validator node.
|
|
3963
|
+
*/
|
|
3964
|
+
countryCode: string;
|
|
3965
|
+
/**
|
|
3966
|
+
* The latitude of the validator node.
|
|
3967
|
+
*/
|
|
3968
|
+
latitude: number;
|
|
3969
|
+
/**
|
|
3970
|
+
* The longitude of the validator node.
|
|
3971
|
+
*/
|
|
3972
|
+
longitude: number;
|
|
3973
|
+
};
|
|
3974
|
+
|
|
2763
3975
|
type Rewards = {
|
|
2764
3976
|
validationRewardAmount: string;
|
|
2765
3977
|
delegationRewardAmount: string;
|
|
@@ -2767,6 +3979,14 @@ type Rewards = {
|
|
|
2767
3979
|
rewardTxHash?: string;
|
|
2768
3980
|
};
|
|
2769
3981
|
|
|
3982
|
+
/**
|
|
3983
|
+
* Staking kind. `autoRenewed` type validators run in repeating cycles; for these the top-level startTimestamp/endTimestamp/amountStaked reflect the current cycle and compounded weight.
|
|
3984
|
+
*/
|
|
3985
|
+
declare enum StakingType {
|
|
3986
|
+
FIXED = "fixed",
|
|
3987
|
+
AUTO_RENEWED = "autoRenewed"
|
|
3988
|
+
}
|
|
3989
|
+
|
|
2770
3990
|
type ValidatorHealthDetails = {
|
|
2771
3991
|
/**
|
|
2772
3992
|
* Percent of requests responded to in last polling.
|
|
@@ -2791,22 +4011,54 @@ type ActiveValidatorDetails = {
|
|
|
2791
4011
|
nodeId: string;
|
|
2792
4012
|
subnetId: string;
|
|
2793
4013
|
amountStaked: string;
|
|
4014
|
+
/**
|
|
4015
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4016
|
+
*/
|
|
2794
4017
|
delegationFee?: string;
|
|
2795
4018
|
startTimestamp: number;
|
|
2796
4019
|
endTimestamp: number;
|
|
4020
|
+
stakingType: StakingType;
|
|
2797
4021
|
/**
|
|
2798
4022
|
* Present for AddPermissionlessValidatorTx
|
|
2799
4023
|
*/
|
|
2800
4024
|
blsCredentials?: BlsCredentials;
|
|
4025
|
+
/**
|
|
4026
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
4027
|
+
*/
|
|
2801
4028
|
stakePercentage: number;
|
|
4029
|
+
/**
|
|
4030
|
+
* The number of delegators linked to the validator. For `autoRenewed` validators this counts the current staking cycle only (a single validation period, like a fixed validator over its one period) — not a cumulative total across cycles.
|
|
4031
|
+
*/
|
|
2802
4032
|
delegatorCount: number;
|
|
4033
|
+
/**
|
|
4034
|
+
* The total amount in nAVAX delegated to the validator. For `autoRenewed` validators this reflects the current staking cycle only (a single validation period), not a cumulative total across cycles.
|
|
4035
|
+
*/
|
|
2803
4036
|
amountDelegated?: string;
|
|
4037
|
+
/**
|
|
4038
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
4039
|
+
*/
|
|
2804
4040
|
uptimePerformance: number;
|
|
2805
4041
|
avalancheGoVersion?: string;
|
|
4042
|
+
/**
|
|
4043
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
4044
|
+
*/
|
|
2806
4045
|
delegationCapacity?: string;
|
|
4046
|
+
/**
|
|
4047
|
+
* Estimated rewards for the validator if the validation is successful. For `autoRenewed` validators the delegation portion (`delegationRewardAmount`) covers the current staking cycle only.
|
|
4048
|
+
*
|
|
4049
|
+
* For `autoRenewed` validators these amounts are **gross** — the whole reward the cycle is expected to earn, before any of it is restaked. The portion that will actually be paid out to the reward address is `gross * (100 - autoRenew.autoCompoundSharePercent) / 100`. Note this differs from `estimatedReward` on `/rewards::listPending`, which reports that withdrawn portion directly.
|
|
4050
|
+
*/
|
|
2807
4051
|
potentialRewards: Rewards;
|
|
2808
4052
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
4053
|
validatorHealth: ValidatorHealthDetails;
|
|
4054
|
+
/**
|
|
4055
|
+
* The geographical location of the validator node, if available.
|
|
4056
|
+
*/
|
|
4057
|
+
geolocation: Geolocation | null;
|
|
4058
|
+
/**
|
|
4059
|
+
* Current-cycle renewal and compounding detail. Present only when stakingType is `autoRenewed`.
|
|
4060
|
+
*/
|
|
4061
|
+
autoRenew?: AutoRenewDetails;
|
|
2810
4062
|
};
|
|
2811
4063
|
declare namespace ActiveValidatorDetails {
|
|
2812
4064
|
enum validationStatus {
|
|
@@ -2819,17 +4071,36 @@ type CompletedValidatorDetails = {
|
|
|
2819
4071
|
nodeId: string;
|
|
2820
4072
|
subnetId: string;
|
|
2821
4073
|
amountStaked: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4076
|
+
*/
|
|
2822
4077
|
delegationFee?: string;
|
|
2823
4078
|
startTimestamp: number;
|
|
2824
4079
|
endTimestamp: number;
|
|
4080
|
+
stakingType: StakingType;
|
|
2825
4081
|
/**
|
|
2826
4082
|
* Present for AddPermissionlessValidatorTx
|
|
2827
4083
|
*/
|
|
2828
4084
|
blsCredentials?: BlsCredentials;
|
|
4085
|
+
/**
|
|
4086
|
+
* The number of delegators linked to the validator. For `autoRenewed` validators this reflects the final staking cycle (a single validation period), not a cumulative total across cycles.
|
|
4087
|
+
*/
|
|
2829
4088
|
delegatorCount: number;
|
|
4089
|
+
/**
|
|
4090
|
+
* The total amount in nAVAX delegated to the validator. For `autoRenewed` validators this reflects the final staking cycle.
|
|
4091
|
+
*/
|
|
2830
4092
|
amountDelegated?: string;
|
|
4093
|
+
/**
|
|
4094
|
+
* Rewards for the validator. For `autoRenewed` validators the delegation portion covers the final staking cycle.
|
|
4095
|
+
*
|
|
4096
|
+
* As with `potentialRewards` on an active validator, for `autoRenewed` validators these amounts are **gross** — before the restaked share is deducted.
|
|
4097
|
+
*/
|
|
2831
4098
|
rewards: Rewards;
|
|
2832
4099
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
4100
|
+
/**
|
|
4101
|
+
* Final-cycle renewal and compounding detail for an auto-renewed validator that has exited/aborted. Present only when stakingType is `autoRenewed`.
|
|
4102
|
+
*/
|
|
4103
|
+
autoRenew?: AutoRenewDetails;
|
|
2833
4104
|
};
|
|
2834
4105
|
declare namespace CompletedValidatorDetails {
|
|
2835
4106
|
enum validationStatus {
|
|
@@ -2842,6 +4113,9 @@ type PendingValidatorDetails = {
|
|
|
2842
4113
|
nodeId: string;
|
|
2843
4114
|
subnetId: string;
|
|
2844
4115
|
amountStaked: string;
|
|
4116
|
+
/**
|
|
4117
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4118
|
+
*/
|
|
2845
4119
|
delegationFee?: string;
|
|
2846
4120
|
startTimestamp: number;
|
|
2847
4121
|
endTimestamp: number;
|
|
@@ -2850,6 +4124,7 @@ type PendingValidatorDetails = {
|
|
|
2850
4124
|
*/
|
|
2851
4125
|
blsCredentials?: BlsCredentials;
|
|
2852
4126
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
4127
|
+
stakingType: StakingType;
|
|
2853
4128
|
};
|
|
2854
4129
|
declare namespace PendingValidatorDetails {
|
|
2855
4130
|
enum validationStatus {
|
|
@@ -2862,14 +4137,24 @@ type RemovedValidatorDetails = {
|
|
|
2862
4137
|
nodeId: string;
|
|
2863
4138
|
subnetId: string;
|
|
2864
4139
|
amountStaked: string;
|
|
4140
|
+
/**
|
|
4141
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4142
|
+
*/
|
|
2865
4143
|
delegationFee?: string;
|
|
2866
4144
|
startTimestamp: number;
|
|
2867
4145
|
endTimestamp: number;
|
|
4146
|
+
stakingType: StakingType;
|
|
2868
4147
|
/**
|
|
2869
4148
|
* Present for AddPermissionlessValidatorTx
|
|
2870
4149
|
*/
|
|
2871
4150
|
blsCredentials?: BlsCredentials;
|
|
4151
|
+
/**
|
|
4152
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4153
|
+
*/
|
|
2872
4154
|
removeTxHash: string;
|
|
4155
|
+
/**
|
|
4156
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4157
|
+
*/
|
|
2873
4158
|
removeTimestamp: number;
|
|
2874
4159
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
4160
|
};
|
|
@@ -2949,7 +4234,6 @@ type XChainAssetDetails = {
|
|
|
2949
4234
|
declare enum XChainId {
|
|
2950
4235
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2951
4236
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2953
4237
|
X_CHAIN = "x-chain"
|
|
2954
4238
|
}
|
|
2955
4239
|
|
|
@@ -3020,7 +4304,7 @@ declare class PrimaryNetworkService {
|
|
|
3020
4304
|
*/
|
|
3021
4305
|
pageToken?: string;
|
|
3022
4306
|
/**
|
|
3023
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4307
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3024
4308
|
*/
|
|
3025
4309
|
pageSize?: number;
|
|
3026
4310
|
/**
|
|
@@ -3028,6 +4312,22 @@ declare class PrimaryNetworkService {
|
|
|
3028
4312
|
*/
|
|
3029
4313
|
sortOrder?: SortOrder;
|
|
3030
4314
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4315
|
+
/**
|
|
4316
|
+
* Get blockchain details by ID
|
|
4317
|
+
* Get details of the blockchain registered on the network.
|
|
4318
|
+
* @returns Blockchain Successful response
|
|
4319
|
+
* @throws ApiError
|
|
4320
|
+
*/
|
|
4321
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4322
|
+
/**
|
|
4323
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4324
|
+
*/
|
|
4325
|
+
blockchainId: string;
|
|
4326
|
+
/**
|
|
4327
|
+
* Either mainnet or testnet/fuji.
|
|
4328
|
+
*/
|
|
4329
|
+
network: Network;
|
|
4330
|
+
}): CancelablePromise<Blockchain>;
|
|
3031
4331
|
/**
|
|
3032
4332
|
* List subnets
|
|
3033
4333
|
* Lists all subnets registered on the network.
|
|
@@ -3044,7 +4344,7 @@ declare class PrimaryNetworkService {
|
|
|
3044
4344
|
*/
|
|
3045
4345
|
pageToken?: string;
|
|
3046
4346
|
/**
|
|
3047
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4347
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3048
4348
|
*/
|
|
3049
4349
|
pageSize?: number;
|
|
3050
4350
|
/**
|
|
@@ -3070,7 +4370,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
4370
|
}): CancelablePromise<Subnet>;
|
|
3071
4371
|
/**
|
|
3072
4372
|
* List validators
|
|
3073
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4373
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3074
4374
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3075
4375
|
* @throws ApiError
|
|
3076
4376
|
*/
|
|
@@ -3088,7 +4388,7 @@ declare class PrimaryNetworkService {
|
|
|
3088
4388
|
*/
|
|
3089
4389
|
pageSize?: number;
|
|
3090
4390
|
/**
|
|
3091
|
-
* A comma separated list of node ids to filter by.
|
|
4391
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3092
4392
|
*/
|
|
3093
4393
|
nodeIds?: string;
|
|
3094
4394
|
/**
|
|
@@ -3174,6 +4474,44 @@ declare class PrimaryNetworkService {
|
|
|
3174
4474
|
*/
|
|
3175
4475
|
sortOrder?: SortOrder;
|
|
3176
4476
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
4477
|
+
/**
|
|
4478
|
+
* List auto-renewed validator cycles
|
|
4479
|
+
* 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.
|
|
4480
|
+
*
|
|
4481
|
+
* Includes cycles that paid nothing out. A fully-compounding cycle mints no reward UTXO and so does not appear in reward history at all.
|
|
4482
|
+
*
|
|
4483
|
+
* 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.
|
|
4484
|
+
*
|
|
4485
|
+
* `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.
|
|
4486
|
+
* @returns ListAutoRenewedCyclesResponse Successful response
|
|
4487
|
+
* @throws ApiError
|
|
4488
|
+
*/
|
|
4489
|
+
listAutoRenewedValidatorCycles({ network, nodeId, txHash, pageToken, pageSize, sortOrder, }: {
|
|
4490
|
+
/**
|
|
4491
|
+
* Either mainnet or testnet/fuji.
|
|
4492
|
+
*/
|
|
4493
|
+
network: Network;
|
|
4494
|
+
/**
|
|
4495
|
+
* A primary network (P or X chain) nodeId.
|
|
4496
|
+
*/
|
|
4497
|
+
nodeId: string;
|
|
4498
|
+
/**
|
|
4499
|
+
* 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.
|
|
4500
|
+
*/
|
|
4501
|
+
txHash?: string;
|
|
4502
|
+
/**
|
|
4503
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4504
|
+
*/
|
|
4505
|
+
pageToken?: string;
|
|
4506
|
+
/**
|
|
4507
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4508
|
+
*/
|
|
4509
|
+
pageSize?: number;
|
|
4510
|
+
/**
|
|
4511
|
+
* 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.
|
|
4512
|
+
*/
|
|
4513
|
+
sortOrder?: SortOrder;
|
|
4514
|
+
}): CancelablePromise<ListAutoRenewedCyclesResponse>;
|
|
3177
4515
|
/**
|
|
3178
4516
|
* List delegators
|
|
3179
4517
|
* Lists details for delegators.
|
|
@@ -3210,16 +4548,47 @@ declare class PrimaryNetworkService {
|
|
|
3210
4548
|
*/
|
|
3211
4549
|
nodeIds?: string;
|
|
3212
4550
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4551
|
+
/**
|
|
4552
|
+
* List L1 validators
|
|
4553
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4554
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4555
|
+
* @throws ApiError
|
|
4556
|
+
*/
|
|
4557
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4558
|
+
/**
|
|
4559
|
+
* Either mainnet or testnet/fuji.
|
|
4560
|
+
*/
|
|
4561
|
+
network: Network;
|
|
4562
|
+
/**
|
|
4563
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4564
|
+
*/
|
|
4565
|
+
pageToken?: string;
|
|
4566
|
+
/**
|
|
4567
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4568
|
+
*/
|
|
4569
|
+
pageSize?: number;
|
|
4570
|
+
/**
|
|
4571
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4572
|
+
*/
|
|
4573
|
+
l1ValidationId?: string;
|
|
4574
|
+
includeInactiveL1Validators?: boolean;
|
|
4575
|
+
/**
|
|
4576
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4577
|
+
*/
|
|
4578
|
+
nodeId?: string;
|
|
4579
|
+
/**
|
|
4580
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4581
|
+
*/
|
|
4582
|
+
subnetId?: any;
|
|
4583
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3213
4584
|
}
|
|
3214
4585
|
|
|
3215
4586
|
declare enum BlockchainId {
|
|
3216
4587
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3217
4588
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3218
4589
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3220
4590
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3221
4591
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3223
4592
|
P_CHAIN = "p-chain",
|
|
3224
4593
|
X_CHAIN = "x-chain",
|
|
3225
4594
|
C_CHAIN = "c-chain"
|
|
@@ -3349,6 +4718,12 @@ type PChainBalance = {
|
|
|
3349
4718
|
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
3350
4719
|
*/
|
|
3351
4720
|
pendingStaked: Array<AggregatedAssetAmount>;
|
|
4721
|
+
/**
|
|
4722
|
+
* Total AVAX (in nAVAX) restaked into auto-renewed validators via compounding. These rewards are bonded into validator weight and have no UTXO until the validator exits, so they are reported here as a separate amount (always AVAX). Add to unlockedStaked/lockedStaked for an auto-renewed validator's full current staked value.
|
|
4723
|
+
*
|
|
4724
|
+
* Current-balance queries only. The field is OMITTED for historical queries, i.e. when blockTimestamp is supplied with a value greater than 0, because compounding history is not reconstructable from current-state data. Absence therefore means "not available for this timestamp" — it does not mean nothing was compounded. A current-balance query for an address with no auto-renewed position returns "0". Note blockTimestamp=0 is treated as "no timestamp supplied" and is answered as a current-balance query.
|
|
4725
|
+
*/
|
|
4726
|
+
restakedRewards?: string;
|
|
3352
4727
|
/**
|
|
3353
4728
|
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
3354
4729
|
*/
|
|
@@ -3456,6 +4831,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3456
4831
|
txCount: number;
|
|
3457
4832
|
transactions: Array<string>;
|
|
3458
4833
|
blockSizeBytes: number;
|
|
4834
|
+
l1ValidatorsAccruedFees?: number;
|
|
4835
|
+
activeL1Validators?: number;
|
|
3459
4836
|
currentSupply?: string;
|
|
3460
4837
|
proposerDetails?: ProposerDetails;
|
|
3461
4838
|
};
|
|
@@ -3469,6 +4846,8 @@ type PrimaryNetworkBlock = {
|
|
|
3469
4846
|
txCount: number;
|
|
3470
4847
|
transactions: Array<string>;
|
|
3471
4848
|
blockSizeBytes: number;
|
|
4849
|
+
l1ValidatorsAccruedFees?: number;
|
|
4850
|
+
activeL1Validators?: number;
|
|
3472
4851
|
currentSupply?: string;
|
|
3473
4852
|
proposerDetails?: ProposerDetails;
|
|
3474
4853
|
};
|
|
@@ -3511,7 +4890,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3511
4890
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3512
4891
|
* @throws ApiError
|
|
3513
4892
|
*/
|
|
3514
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4893
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3515
4894
|
/**
|
|
3516
4895
|
* A primary network blockchain id or alias.
|
|
3517
4896
|
*/
|
|
@@ -3524,6 +4903,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3524
4903
|
* A primary network (P or X chain) nodeId.
|
|
3525
4904
|
*/
|
|
3526
4905
|
nodeId: string;
|
|
4906
|
+
/**
|
|
4907
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4908
|
+
*/
|
|
4909
|
+
startTimestamp?: number;
|
|
4910
|
+
/**
|
|
4911
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4912
|
+
*/
|
|
4913
|
+
endTimestamp?: number;
|
|
3527
4914
|
/**
|
|
3528
4915
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3529
4916
|
*/
|
|
@@ -3539,7 +4926,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3539
4926
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3540
4927
|
* @throws ApiError
|
|
3541
4928
|
*/
|
|
3542
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4929
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3543
4930
|
/**
|
|
3544
4931
|
* A primary network blockchain id or alias.
|
|
3545
4932
|
*/
|
|
@@ -3548,6 +4935,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3548
4935
|
* Either mainnet or testnet/fuji.
|
|
3549
4936
|
*/
|
|
3550
4937
|
network: Network;
|
|
4938
|
+
/**
|
|
4939
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4940
|
+
*/
|
|
4941
|
+
startTimestamp?: number;
|
|
4942
|
+
/**
|
|
4943
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4944
|
+
*/
|
|
4945
|
+
endTimestamp?: number;
|
|
3551
4946
|
/**
|
|
3552
4947
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3553
4948
|
*/
|
|
@@ -3599,11 +4994,15 @@ type HistoricalReward = {
|
|
|
3599
4994
|
*/
|
|
3600
4995
|
addresses: Array<string>;
|
|
3601
4996
|
txHash: string;
|
|
4997
|
+
/**
|
|
4998
|
+
* Amount staked by the validator this reward comes from. For autoRenewed validators this is the position's compounded weight, so it is the same on every cycle rather than the weight held during that particular cycle — per-cycle weight is not recorded on chain.
|
|
4999
|
+
*/
|
|
3602
5000
|
amountStaked: string;
|
|
3603
5001
|
nodeId: string;
|
|
3604
5002
|
startTimestamp: number;
|
|
3605
5003
|
endTimestamp: number;
|
|
3606
5004
|
rewardType: RewardType;
|
|
5005
|
+
stakingType: StakingType;
|
|
3607
5006
|
utxoId: string;
|
|
3608
5007
|
outputIndex: number;
|
|
3609
5008
|
reward: AssetWithPriceInfo;
|
|
@@ -3648,14 +5047,18 @@ type PendingReward = {
|
|
|
3648
5047
|
*/
|
|
3649
5048
|
addresses: Array<string>;
|
|
3650
5049
|
txHash: string;
|
|
5050
|
+
/**
|
|
5051
|
+
* Amount staked by the validator this reward comes from. For autoRenewed validators this is the position's compounded weight, so it is the same on every cycle rather than the weight held during that particular cycle — per-cycle weight is not recorded on chain.
|
|
5052
|
+
*/
|
|
3651
5053
|
amountStaked: string;
|
|
3652
5054
|
nodeId: string;
|
|
3653
5055
|
startTimestamp: number;
|
|
3654
5056
|
endTimestamp: number;
|
|
3655
5057
|
rewardType: RewardType;
|
|
5058
|
+
stakingType: StakingType;
|
|
3656
5059
|
progress: number;
|
|
3657
5060
|
/**
|
|
3658
|
-
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5061
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID. For `autoRenewed` validators this amount is **net** of compounding: it is only the portion of the cycle's reward that will be paid out to the reward address, already reduced by the auto-compound share. Do **not** apply `autoRenew.autoCompoundSharePercent` to it again — that double-discounts the payout. The gross figure for the same cycle is `potentialRewards.validationRewardAmount` on the validator endpoints.
|
|
3659
5062
|
*/
|
|
3660
5063
|
estimatedReward: AssetAmount;
|
|
3661
5064
|
};
|
|
@@ -3789,6 +5192,10 @@ type Utxo = {
|
|
|
3789
5192
|
* UTXO ID for this output.
|
|
3790
5193
|
*/
|
|
3791
5194
|
utxoId: string;
|
|
5195
|
+
/**
|
|
5196
|
+
* The bytes of the UTXO
|
|
5197
|
+
*/
|
|
5198
|
+
utxoBytes?: string;
|
|
3792
5199
|
/**
|
|
3793
5200
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3794
5201
|
*/
|
|
@@ -3957,6 +5364,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3957
5364
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3958
5365
|
};
|
|
3959
5366
|
|
|
5367
|
+
type BlockchainInfo = {
|
|
5368
|
+
chainName: string;
|
|
5369
|
+
vmId: string;
|
|
5370
|
+
/**
|
|
5371
|
+
* 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
|
|
5372
|
+
*/
|
|
5373
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5374
|
+
};
|
|
5375
|
+
|
|
5376
|
+
type L1ValidatorDetailsTransaction = {
|
|
5377
|
+
/**
|
|
5378
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5379
|
+
*/
|
|
5380
|
+
validationId: string;
|
|
5381
|
+
/**
|
|
5382
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5383
|
+
*/
|
|
5384
|
+
validationIdHex: string;
|
|
5385
|
+
nodeId: string;
|
|
5386
|
+
subnetId: string;
|
|
5387
|
+
/**
|
|
5388
|
+
* 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
|
|
5389
|
+
*/
|
|
5390
|
+
weight: number;
|
|
5391
|
+
/**
|
|
5392
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5393
|
+
*/
|
|
5394
|
+
remainingBalance: number;
|
|
5395
|
+
/**
|
|
5396
|
+
* 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
|
|
5397
|
+
*/
|
|
5398
|
+
balanceChange?: number;
|
|
5399
|
+
blsCredentials?: Record<string, any>;
|
|
5400
|
+
};
|
|
5401
|
+
|
|
3960
5402
|
declare enum PChainTransactionType {
|
|
3961
5403
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3962
5404
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3973,14 +5415,20 @@ declare enum PChainTransactionType {
|
|
|
3973
5415
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3974
5416
|
BASE_TX = "BaseTx",
|
|
3975
5417
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
5418
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5419
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5420
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5421
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5422
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
5423
|
+
ADD_AUTO_RENEWED_VALIDATOR_TX = "AddAutoRenewedValidatorTx",
|
|
5424
|
+
SET_AUTO_RENEWED_VALIDATOR_CONFIG_TX = "SetAutoRenewedValidatorConfigTx",
|
|
5425
|
+
REWARD_AUTO_RENEWED_VALIDATOR_TX = "RewardAutoRenewedValidatorTx",
|
|
3981
5426
|
UNKNOWN = "UNKNOWN"
|
|
3982
5427
|
}
|
|
3983
5428
|
|
|
5429
|
+
/**
|
|
5430
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5431
|
+
*/
|
|
3984
5432
|
declare enum UtxoType {
|
|
3985
5433
|
STAKE = "STAKE",
|
|
3986
5434
|
TRANSFER = "TRANSFER"
|
|
@@ -4008,6 +5456,10 @@ type PChainUtxo = {
|
|
|
4008
5456
|
* UTXO ID for this output.
|
|
4009
5457
|
*/
|
|
4010
5458
|
utxoId: string;
|
|
5459
|
+
/**
|
|
5460
|
+
* The bytes of the UTXO
|
|
5461
|
+
*/
|
|
5462
|
+
utxoBytes?: string;
|
|
4011
5463
|
/**
|
|
4012
5464
|
* @deprecated
|
|
4013
5465
|
*/
|
|
@@ -4018,23 +5470,173 @@ type PChainUtxo = {
|
|
|
4018
5470
|
assetId: string;
|
|
4019
5471
|
blockNumber: string;
|
|
4020
5472
|
blockTimestamp: number;
|
|
5473
|
+
/**
|
|
5474
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5475
|
+
*/
|
|
4021
5476
|
consumingBlockNumber?: string;
|
|
5477
|
+
/**
|
|
5478
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5479
|
+
*/
|
|
4022
5480
|
consumingBlockTimestamp?: number;
|
|
5481
|
+
/**
|
|
5482
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5483
|
+
*/
|
|
4023
5484
|
platformLocktime?: number;
|
|
5485
|
+
/**
|
|
5486
|
+
* The index of the UTXO in the transaction
|
|
5487
|
+
*/
|
|
4024
5488
|
outputIndex: number;
|
|
4025
5489
|
rewardType?: RewardType;
|
|
5490
|
+
/**
|
|
5491
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5492
|
+
*/
|
|
4026
5493
|
stakeableLocktime?: number;
|
|
4027
5494
|
staked?: boolean;
|
|
5495
|
+
/**
|
|
5496
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5497
|
+
*/
|
|
4028
5498
|
threshold?: number;
|
|
5499
|
+
/**
|
|
5500
|
+
* The hash of the transaction that created this UTXO
|
|
5501
|
+
*/
|
|
4029
5502
|
txHash: string;
|
|
5503
|
+
/**
|
|
5504
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked. For an auto-renewed (ACP-236) position this is the end of the CURRENT validation cycle, not an unlock date: the principal stays bonded and is returned only when the validator stops, so the value rolls forward each time the position renews. Use autoRenew.state from the validator endpoints to tell a renewing position from an exiting one.
|
|
5505
|
+
*/
|
|
4030
5506
|
utxoEndTimestamp?: number;
|
|
5507
|
+
/**
|
|
5508
|
+
* Timestamp in seconds at which the staked UTXO was locked. For an auto-renewed (ACP-236) position this is the start of the CURRENT validation cycle, not the original bonding time, so it advances each time the position renews.
|
|
5509
|
+
*/
|
|
4031
5510
|
utxoStartTimestamp?: number;
|
|
4032
5511
|
utxoType: UtxoType;
|
|
4033
5512
|
};
|
|
4034
5513
|
|
|
4035
|
-
type
|
|
4036
|
-
|
|
4037
|
-
|
|
5514
|
+
type PChainStakingTransaction = {
|
|
5515
|
+
/**
|
|
5516
|
+
* A P-Chain transaction hash.
|
|
5517
|
+
*/
|
|
5518
|
+
txHash: string;
|
|
5519
|
+
txType: PChainTransactionType;
|
|
5520
|
+
/**
|
|
5521
|
+
* The block creation (proposal) timestamp in seconds
|
|
5522
|
+
*/
|
|
5523
|
+
blockTimestamp: number;
|
|
5524
|
+
/**
|
|
5525
|
+
* The height of the block in which the transaction was included
|
|
5526
|
+
*/
|
|
5527
|
+
blockNumber: string;
|
|
5528
|
+
blockHash: string;
|
|
5529
|
+
/**
|
|
5530
|
+
* The consumed UTXOs of the transaction
|
|
5531
|
+
*/
|
|
5532
|
+
consumedUtxos: Array<PChainUtxo>;
|
|
5533
|
+
/**
|
|
5534
|
+
* The newly created UTXOs of the transaction
|
|
5535
|
+
*/
|
|
5536
|
+
emittedUtxos: Array<PChainUtxo>;
|
|
5537
|
+
/**
|
|
5538
|
+
* Source chain for an atomic transaction.
|
|
5539
|
+
*/
|
|
5540
|
+
sourceChain?: string;
|
|
5541
|
+
/**
|
|
5542
|
+
* Destination chain for an atomic transaction.
|
|
5543
|
+
*/
|
|
5544
|
+
destinationChain?: string;
|
|
5545
|
+
/**
|
|
5546
|
+
* 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
|
|
5547
|
+
*/
|
|
5548
|
+
value: Array<AssetAmount>;
|
|
5549
|
+
/**
|
|
5550
|
+
* 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
|
|
5551
|
+
*/
|
|
5552
|
+
amountBurned: Array<AssetAmount>;
|
|
5553
|
+
/**
|
|
5554
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
5555
|
+
*/
|
|
5556
|
+
amountStaked: Array<AssetAmount>;
|
|
5557
|
+
/**
|
|
5558
|
+
* 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.
|
|
5559
|
+
*/
|
|
5560
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
5561
|
+
/**
|
|
5562
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal; use blockTimestamp for when the position was first created.
|
|
5563
|
+
*/
|
|
5564
|
+
startTimestamp?: number;
|
|
5565
|
+
/**
|
|
5566
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal.
|
|
5567
|
+
*/
|
|
5568
|
+
endTimestamp?: number;
|
|
5569
|
+
/**
|
|
5570
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
5571
|
+
*/
|
|
5572
|
+
delegationFeePercent?: string;
|
|
5573
|
+
/**
|
|
5574
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
5575
|
+
*/
|
|
5576
|
+
nodeId?: string;
|
|
5577
|
+
/**
|
|
5578
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
5579
|
+
*/
|
|
5580
|
+
subnetId?: string;
|
|
5581
|
+
/**
|
|
5582
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5583
|
+
*/
|
|
5584
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5585
|
+
/**
|
|
5586
|
+
* 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
|
|
5587
|
+
*/
|
|
5588
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5589
|
+
/**
|
|
5590
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx (the cycle the validator is currently serving), and each RewardAutoRenewedValidatorTx (the estimate for the next cycle it starts).
|
|
5591
|
+
*/
|
|
5592
|
+
estimatedReward?: string;
|
|
5593
|
+
/**
|
|
5594
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5595
|
+
*/
|
|
5596
|
+
rewardTxHash?: string;
|
|
5597
|
+
rewardAddresses?: Array<string>;
|
|
5598
|
+
memo?: string;
|
|
5599
|
+
/**
|
|
5600
|
+
* Staking transaction corresponding to the RewardValidatorTx, or the originating AddAutoRenewedValidatorTx for a RewardAutoRenewedValidatorTx
|
|
5601
|
+
*/
|
|
5602
|
+
stakingTxHash?: string;
|
|
5603
|
+
/**
|
|
5604
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
5605
|
+
*/
|
|
5606
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
5607
|
+
/**
|
|
5608
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
5609
|
+
*/
|
|
5610
|
+
blsCredentials?: BlsCredentials;
|
|
5611
|
+
/**
|
|
5612
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5613
|
+
*/
|
|
5614
|
+
blockchainInfo?: BlockchainInfo;
|
|
5615
|
+
/**
|
|
5616
|
+
* Length of an auto-renewed validation cycle, in seconds. Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx. A value of 0 on SetAutoRenewedValidatorConfigTx indicates validation will attempt a graceful exit at the end of the current cycle.
|
|
5617
|
+
*/
|
|
5618
|
+
period?: number;
|
|
5619
|
+
/**
|
|
5620
|
+
* Fraction of each cycle’s rewards that is restaked (compounded into validator weight) rather than withdrawn, expressed in millionths (0–1000000). Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx.
|
|
5621
|
+
*/
|
|
5622
|
+
autoCompoundRewardShares?: number;
|
|
5623
|
+
/**
|
|
5624
|
+
* Owner (addresses + signature threshold) authorized to reconfigure or exit the auto-renewed validator via SetAutoRenewedValidatorConfigTx. Present for AddAutoRenewedValidatorTx.
|
|
5625
|
+
*/
|
|
5626
|
+
validatorAuthority?: BalanceOwner;
|
|
5627
|
+
/**
|
|
5628
|
+
* Present only for an active auto-renewed validator (AddAutoRenewedValidatorTx). The validator's current live auto-renew state and latest/next-cycle config, different from the initial `period`/`autoCompoundRewardShares`.
|
|
5629
|
+
*/
|
|
5630
|
+
autoRenew?: AutoRenewDetails;
|
|
5631
|
+
};
|
|
5632
|
+
|
|
5633
|
+
type ListPChainStakingTransactionsResponse = {
|
|
5634
|
+
/**
|
|
5635
|
+
* 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.
|
|
5636
|
+
*/
|
|
5637
|
+
nextPageToken?: string;
|
|
5638
|
+
transactions: Array<PChainStakingTransaction>;
|
|
5639
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
4038
5640
|
};
|
|
4039
5641
|
|
|
4040
5642
|
type PChainTransaction = {
|
|
@@ -4044,12 +5646,21 @@ type PChainTransaction = {
|
|
|
4044
5646
|
txHash: string;
|
|
4045
5647
|
txType: PChainTransactionType;
|
|
4046
5648
|
/**
|
|
4047
|
-
* The block
|
|
5649
|
+
* The block creation (proposal) timestamp in seconds
|
|
4048
5650
|
*/
|
|
4049
5651
|
blockTimestamp: number;
|
|
5652
|
+
/**
|
|
5653
|
+
* The height of the block in which the transaction was included
|
|
5654
|
+
*/
|
|
4050
5655
|
blockNumber: string;
|
|
4051
5656
|
blockHash: string;
|
|
5657
|
+
/**
|
|
5658
|
+
* The consumed UTXOs of the transaction
|
|
5659
|
+
*/
|
|
4052
5660
|
consumedUtxos: Array<PChainUtxo>;
|
|
5661
|
+
/**
|
|
5662
|
+
* The newly created UTXOs of the transaction
|
|
5663
|
+
*/
|
|
4053
5664
|
emittedUtxos: Array<PChainUtxo>;
|
|
4054
5665
|
/**
|
|
4055
5666
|
* Source chain for an atomic transaction.
|
|
@@ -4060,35 +5671,35 @@ type PChainTransaction = {
|
|
|
4060
5671
|
*/
|
|
4061
5672
|
destinationChain?: string;
|
|
4062
5673
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5674
|
+
* 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
|
|
4064
5675
|
*/
|
|
4065
5676
|
value: Array<AssetAmount>;
|
|
4066
5677
|
/**
|
|
4067
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5678
|
+
* 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
|
|
4068
5679
|
*/
|
|
4069
5680
|
amountBurned: Array<AssetAmount>;
|
|
4070
5681
|
/**
|
|
4071
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5682
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
4072
5683
|
*/
|
|
4073
5684
|
amountStaked: Array<AssetAmount>;
|
|
4074
5685
|
/**
|
|
4075
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5686
|
+
* 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.
|
|
4076
5687
|
*/
|
|
4077
|
-
|
|
5688
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4078
5689
|
/**
|
|
4079
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5690
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal; use blockTimestamp for when the position was first created.
|
|
4080
5691
|
*/
|
|
4081
5692
|
startTimestamp?: number;
|
|
4082
5693
|
/**
|
|
4083
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5694
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal.
|
|
4084
5695
|
*/
|
|
4085
5696
|
endTimestamp?: number;
|
|
4086
5697
|
/**
|
|
4087
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5698
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
4088
5699
|
*/
|
|
4089
5700
|
delegationFeePercent?: string;
|
|
4090
5701
|
/**
|
|
4091
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5702
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
4092
5703
|
*/
|
|
4093
5704
|
nodeId?: string;
|
|
4094
5705
|
/**
|
|
@@ -4096,22 +5707,25 @@ type PChainTransaction = {
|
|
|
4096
5707
|
*/
|
|
4097
5708
|
subnetId?: string;
|
|
4098
5709
|
/**
|
|
4099
|
-
* Present for
|
|
5710
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4100
5711
|
*/
|
|
4101
|
-
|
|
5712
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4102
5713
|
/**
|
|
4103
|
-
*
|
|
5714
|
+
* 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
|
|
4104
5715
|
*/
|
|
4105
|
-
|
|
5716
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4106
5717
|
/**
|
|
4107
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5718
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx (the cycle the validator is currently serving), and each RewardAutoRenewedValidatorTx (the estimate for the next cycle it starts).
|
|
4108
5719
|
*/
|
|
4109
5720
|
estimatedReward?: string;
|
|
5721
|
+
/**
|
|
5722
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5723
|
+
*/
|
|
4110
5724
|
rewardTxHash?: string;
|
|
4111
5725
|
rewardAddresses?: Array<string>;
|
|
4112
5726
|
memo?: string;
|
|
4113
5727
|
/**
|
|
4114
|
-
*
|
|
5728
|
+
* Staking transaction corresponding to the RewardValidatorTx, or the originating AddAutoRenewedValidatorTx for a RewardAutoRenewedValidatorTx
|
|
4115
5729
|
*/
|
|
4116
5730
|
stakingTxHash?: string;
|
|
4117
5731
|
/**
|
|
@@ -4119,9 +5733,25 @@ type PChainTransaction = {
|
|
|
4119
5733
|
*/
|
|
4120
5734
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4121
5735
|
/**
|
|
4122
|
-
* Present for AddPermissionlessValidatorTx
|
|
5736
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
4123
5737
|
*/
|
|
4124
5738
|
blsCredentials?: BlsCredentials;
|
|
5739
|
+
/**
|
|
5740
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5741
|
+
*/
|
|
5742
|
+
blockchainInfo?: BlockchainInfo;
|
|
5743
|
+
/**
|
|
5744
|
+
* Length of an auto-renewed validation cycle, in seconds. Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx. A value of 0 on SetAutoRenewedValidatorConfigTx indicates validation will attempt a graceful exit at the end of the current cycle.
|
|
5745
|
+
*/
|
|
5746
|
+
period?: number;
|
|
5747
|
+
/**
|
|
5748
|
+
* Fraction of each cycle’s rewards that is restaked (compounded into validator weight) rather than withdrawn, expressed in millionths (0–1000000). Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx.
|
|
5749
|
+
*/
|
|
5750
|
+
autoCompoundRewardShares?: number;
|
|
5751
|
+
/**
|
|
5752
|
+
* Owner (addresses + signature threshold) authorized to reconfigure or exit the auto-renewed validator via SetAutoRenewedValidatorConfigTx. Present for AddAutoRenewedValidatorTx.
|
|
5753
|
+
*/
|
|
5754
|
+
validatorAuthority?: BalanceOwner;
|
|
4125
5755
|
};
|
|
4126
5756
|
|
|
4127
5757
|
type ListPChainTransactionsResponse = {
|
|
@@ -4304,11 +5934,14 @@ declare enum PrimaryNetworkTxType {
|
|
|
4304
5934
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4305
5935
|
BASE_TX = "BaseTx",
|
|
4306
5936
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
5937
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5938
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5939
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5940
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5941
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
5942
|
+
ADD_AUTO_RENEWED_VALIDATOR_TX = "AddAutoRenewedValidatorTx",
|
|
5943
|
+
SET_AUTO_RENEWED_VALIDATOR_CONFIG_TX = "SetAutoRenewedValidatorConfigTx",
|
|
5944
|
+
REWARD_AUTO_RENEWED_VALIDATOR_TX = "RewardAutoRenewedValidatorTx",
|
|
4312
5945
|
UNKNOWN = "UNKNOWN",
|
|
4313
5946
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4314
5947
|
OPERATION_TX = "OperationTx"
|
|
@@ -4343,11 +5976,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4343
5976
|
*
|
|
4344
5977
|
* 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.
|
|
4345
5978
|
*
|
|
5979
|
+
* 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.
|
|
5980
|
+
*
|
|
4346
5981
|
* 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.
|
|
4347
5982
|
* @returns any Successful response
|
|
4348
5983
|
* @throws ApiError
|
|
4349
5984
|
*/
|
|
4350
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5985
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4351
5986
|
/**
|
|
4352
5987
|
* A primary network blockchain id or alias.
|
|
4353
5988
|
*/
|
|
@@ -4360,6 +5995,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4360
5995
|
* 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.
|
|
4361
5996
|
*/
|
|
4362
5997
|
addresses?: string;
|
|
5998
|
+
l1ValidationId?: string;
|
|
4363
5999
|
/**
|
|
4364
6000
|
* Query param for filtering items based on transaction types.
|
|
4365
6001
|
*/
|
|
@@ -4388,7 +6024,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4388
6024
|
/**
|
|
4389
6025
|
* List staking transactions
|
|
4390
6026
|
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
4391
|
-
* @returns
|
|
6027
|
+
* @returns ListPChainStakingTransactionsResponse Successful response
|
|
4392
6028
|
* @throws ApiError
|
|
4393
6029
|
*/
|
|
4394
6030
|
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
@@ -4428,7 +6064,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4428
6064
|
* 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.
|
|
4429
6065
|
*/
|
|
4430
6066
|
sortOrder?: SortOrder;
|
|
4431
|
-
}): CancelablePromise<
|
|
6067
|
+
}): CancelablePromise<ListPChainStakingTransactionsResponse>;
|
|
4432
6068
|
/**
|
|
4433
6069
|
* List asset transactions
|
|
4434
6070
|
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
@@ -4471,6 +6107,36 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4471
6107
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
4472
6108
|
}
|
|
4473
6109
|
|
|
6110
|
+
declare enum PrimaryNetworkType {
|
|
6111
|
+
MAINNET = "mainnet",
|
|
6112
|
+
FUJI = "fuji"
|
|
6113
|
+
}
|
|
6114
|
+
|
|
6115
|
+
type LastActivityTimestamp = {
|
|
6116
|
+
/**
|
|
6117
|
+
* Unix timestamp in seconds at which the last activity occurred.
|
|
6118
|
+
*/
|
|
6119
|
+
timestamp: number;
|
|
6120
|
+
/**
|
|
6121
|
+
* Block height at which the last activity occurred.
|
|
6122
|
+
*/
|
|
6123
|
+
blockNumber: string;
|
|
6124
|
+
/**
|
|
6125
|
+
* Transaction hash of the transaction that created or consumed the address' UTXOs.
|
|
6126
|
+
*/
|
|
6127
|
+
txHash: string;
|
|
6128
|
+
/**
|
|
6129
|
+
* UTXO ID of the UTXO that was created or consumed.
|
|
6130
|
+
*/
|
|
6131
|
+
utxoId: string;
|
|
6132
|
+
/**
|
|
6133
|
+
* Whether the last activity was a consumption of an existing UTXO.
|
|
6134
|
+
*/
|
|
6135
|
+
isConsumed: boolean;
|
|
6136
|
+
chainName: PrimaryNetworkChainName;
|
|
6137
|
+
network: PrimaryNetworkType;
|
|
6138
|
+
};
|
|
6139
|
+
|
|
4474
6140
|
type ListPChainUtxosResponse = {
|
|
4475
6141
|
/**
|
|
4476
6142
|
* 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.
|
|
@@ -4489,6 +6155,18 @@ type ListUtxosResponse = {
|
|
|
4489
6155
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4490
6156
|
};
|
|
4491
6157
|
|
|
6158
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
6159
|
+
/**
|
|
6160
|
+
* Comma-separated list of primary network addresses
|
|
6161
|
+
*/
|
|
6162
|
+
addresses: string;
|
|
6163
|
+
};
|
|
6164
|
+
|
|
6165
|
+
declare enum UtxosSortByOption {
|
|
6166
|
+
TIMESTAMP = "timestamp",
|
|
6167
|
+
AMOUNT = "amount"
|
|
6168
|
+
}
|
|
6169
|
+
|
|
4492
6170
|
declare class PrimaryNetworkUtxOsService {
|
|
4493
6171
|
readonly httpRequest: BaseHttpRequest;
|
|
4494
6172
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4498,7 +6176,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4498
6176
|
* @returns any Successful response
|
|
4499
6177
|
* @throws ApiError
|
|
4500
6178
|
*/
|
|
4501
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
6179
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4502
6180
|
/**
|
|
4503
6181
|
* A primary network blockchain id or alias.
|
|
4504
6182
|
*/
|
|
@@ -4523,15 +6201,105 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4523
6201
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4524
6202
|
*/
|
|
4525
6203
|
assetId?: string;
|
|
6204
|
+
/**
|
|
6205
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6206
|
+
*/
|
|
6207
|
+
minUtxoAmount?: number;
|
|
6208
|
+
/**
|
|
6209
|
+
* Boolean filter to include spent UTXOs.
|
|
6210
|
+
*/
|
|
6211
|
+
includeSpent?: boolean;
|
|
6212
|
+
/**
|
|
6213
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6214
|
+
*/
|
|
6215
|
+
sortBy?: UtxosSortByOption;
|
|
6216
|
+
/**
|
|
6217
|
+
* 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.
|
|
6218
|
+
*/
|
|
6219
|
+
sortOrder?: SortOrder;
|
|
6220
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6221
|
+
/**
|
|
6222
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
6223
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
6224
|
+
* @returns any Successful response
|
|
6225
|
+
* @throws ApiError
|
|
6226
|
+
*/
|
|
6227
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
6228
|
+
/**
|
|
6229
|
+
* A primary network blockchain id or alias.
|
|
6230
|
+
*/
|
|
6231
|
+
blockchainId: BlockchainId;
|
|
6232
|
+
/**
|
|
6233
|
+
* Either mainnet or testnet/fuji.
|
|
6234
|
+
*/
|
|
6235
|
+
network: Network;
|
|
6236
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6237
|
+
/**
|
|
6238
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
6239
|
+
*/
|
|
6240
|
+
pageToken?: string;
|
|
6241
|
+
/**
|
|
6242
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
6243
|
+
*/
|
|
6244
|
+
pageSize?: number;
|
|
6245
|
+
/**
|
|
6246
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
6247
|
+
*/
|
|
6248
|
+
assetId?: string;
|
|
6249
|
+
/**
|
|
6250
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6251
|
+
*/
|
|
6252
|
+
minUtxoAmount?: number;
|
|
4526
6253
|
/**
|
|
4527
6254
|
* Boolean filter to include spent UTXOs.
|
|
4528
6255
|
*/
|
|
4529
6256
|
includeSpent?: boolean;
|
|
6257
|
+
/**
|
|
6258
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6259
|
+
*/
|
|
6260
|
+
sortBy?: UtxosSortByOption;
|
|
4530
6261
|
/**
|
|
4531
6262
|
* 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.
|
|
4532
6263
|
*/
|
|
4533
6264
|
sortOrder?: SortOrder;
|
|
4534
6265
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6266
|
+
/**
|
|
6267
|
+
* Get last activity timestamp by addresses
|
|
6268
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
|
|
6269
|
+
* @returns any Successful response
|
|
6270
|
+
* @throws ApiError
|
|
6271
|
+
*/
|
|
6272
|
+
getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
|
|
6273
|
+
/**
|
|
6274
|
+
* A primary network blockchain id or alias.
|
|
6275
|
+
*/
|
|
6276
|
+
blockchainId: BlockchainId;
|
|
6277
|
+
/**
|
|
6278
|
+
* Either mainnet or testnet/fuji.
|
|
6279
|
+
*/
|
|
6280
|
+
network: Network;
|
|
6281
|
+
/**
|
|
6282
|
+
* 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".
|
|
6283
|
+
*/
|
|
6284
|
+
addresses?: string;
|
|
6285
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
6286
|
+
/**
|
|
6287
|
+
* Get last activity timestamp by addresses v2
|
|
6288
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
|
|
6289
|
+
* @returns any Successful response
|
|
6290
|
+
* @throws ApiError
|
|
6291
|
+
*/
|
|
6292
|
+
getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
|
|
6293
|
+
/**
|
|
6294
|
+
* A primary network blockchain id or alias.
|
|
6295
|
+
*/
|
|
6296
|
+
blockchainId: BlockchainId;
|
|
6297
|
+
/**
|
|
6298
|
+
* Either mainnet or testnet/fuji.
|
|
6299
|
+
*/
|
|
6300
|
+
network: Network;
|
|
6301
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6302
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
4535
6303
|
}
|
|
4536
6304
|
|
|
4537
6305
|
type XChainVertex = {
|
|
@@ -4641,15 +6409,29 @@ type SignatureAggregationResponse = {
|
|
|
4641
6409
|
|
|
4642
6410
|
type SignatureAggregatorRequest = {
|
|
4643
6411
|
/**
|
|
4644
|
-
*
|
|
6412
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4645
6413
|
*/
|
|
4646
6414
|
message?: string;
|
|
4647
6415
|
/**
|
|
4648
|
-
*
|
|
6416
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4649
6417
|
*/
|
|
4650
6418
|
justification?: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6421
|
+
*/
|
|
4651
6422
|
signingSubnetId?: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* 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.
|
|
6425
|
+
*/
|
|
4652
6426
|
quorumPercentage?: number;
|
|
6427
|
+
/**
|
|
6428
|
+
* 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.
|
|
6429
|
+
*/
|
|
6430
|
+
quorumPercentageBuffer?: number;
|
|
6431
|
+
/**
|
|
6432
|
+
* 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.
|
|
6433
|
+
*/
|
|
6434
|
+
pChainHeight?: number;
|
|
4653
6435
|
};
|
|
4654
6436
|
|
|
4655
6437
|
declare class SignatureAggregatorService {
|
|
@@ -4661,9 +6443,29 @@ declare class SignatureAggregatorService {
|
|
|
4661
6443
|
* @returns SignatureAggregationResponse Successful response
|
|
4662
6444
|
* @throws ApiError
|
|
4663
6445
|
*/
|
|
4664
|
-
aggregateSignatures({ requestBody, }: {
|
|
6446
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6447
|
+
/**
|
|
6448
|
+
* Either mainnet or testnet/fuji.
|
|
6449
|
+
*/
|
|
6450
|
+
network: Network;
|
|
4665
6451
|
requestBody: SignatureAggregatorRequest;
|
|
4666
6452
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6453
|
+
/**
|
|
6454
|
+
* Get Aggregated Signatures
|
|
6455
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6456
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6457
|
+
* @throws ApiError
|
|
6458
|
+
*/
|
|
6459
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6460
|
+
/**
|
|
6461
|
+
* Either mainnet or testnet/fuji.
|
|
6462
|
+
*/
|
|
6463
|
+
network: Network;
|
|
6464
|
+
/**
|
|
6465
|
+
* A primary network (P or X chain) transaction hash.
|
|
6466
|
+
*/
|
|
6467
|
+
txHash: string;
|
|
6468
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4667
6469
|
}
|
|
4668
6470
|
|
|
4669
6471
|
type TeleporterDestinationTransaction = {
|
|
@@ -4797,15 +6599,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4797
6599
|
* 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.
|
|
4798
6600
|
*/
|
|
4799
6601
|
nextPageToken?: string;
|
|
4800
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6602
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4801
6603
|
};
|
|
4802
6604
|
|
|
4803
6605
|
declare class TeleporterService {
|
|
4804
6606
|
readonly httpRequest: BaseHttpRequest;
|
|
4805
6607
|
constructor(httpRequest: BaseHttpRequest);
|
|
4806
6608
|
/**
|
|
4807
|
-
*
|
|
4808
|
-
* Gets a teleporter message by message ID.
|
|
6609
|
+
* @deprecated
|
|
6610
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6611
|
+
*
|
|
6612
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4809
6613
|
* @returns any Successful response
|
|
4810
6614
|
* @throws ApiError
|
|
4811
6615
|
*/
|
|
@@ -4816,8 +6620,10 @@ declare class TeleporterService {
|
|
|
4816
6620
|
messageId: string;
|
|
4817
6621
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4818
6622
|
/**
|
|
4819
|
-
*
|
|
4820
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6623
|
+
* @deprecated
|
|
6624
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6625
|
+
*
|
|
6626
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4821
6627
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4822
6628
|
* @throws ApiError
|
|
4823
6629
|
*/
|
|
@@ -4856,8 +6662,10 @@ declare class TeleporterService {
|
|
|
4856
6662
|
network?: Network;
|
|
4857
6663
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4858
6664
|
/**
|
|
4859
|
-
*
|
|
4860
|
-
* Lists teleporter messages by address. Ordered by
|
|
6665
|
+
* @deprecated
|
|
6666
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6667
|
+
*
|
|
6668
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4861
6669
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4862
6670
|
* @throws ApiError
|
|
4863
6671
|
*/
|
|
@@ -4890,68 +6698,212 @@ type AddressesChangeRequest = {
|
|
|
4890
6698
|
|
|
4891
6699
|
type AddressActivityMetadata = {
|
|
4892
6700
|
/**
|
|
4893
|
-
*
|
|
6701
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6702
|
+
*/
|
|
6703
|
+
eventSignatures?: Array<string>;
|
|
6704
|
+
/**
|
|
6705
|
+
* 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.
|
|
4894
6706
|
*/
|
|
4895
6707
|
addresses: Array<string>;
|
|
6708
|
+
};
|
|
6709
|
+
|
|
6710
|
+
type EVMAddressActivityRequest = {
|
|
6711
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6712
|
+
url: string;
|
|
6713
|
+
name?: string;
|
|
6714
|
+
description?: string;
|
|
6715
|
+
chainId: string;
|
|
6716
|
+
metadata: AddressActivityMetadata;
|
|
4896
6717
|
/**
|
|
4897
|
-
*
|
|
6718
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4898
6719
|
*/
|
|
4899
|
-
|
|
6720
|
+
includeInternalTxs?: boolean;
|
|
6721
|
+
/**
|
|
6722
|
+
* Whether to include logs in the webhook payload.
|
|
6723
|
+
*/
|
|
6724
|
+
includeLogs?: boolean;
|
|
4900
6725
|
};
|
|
6726
|
+
declare namespace EVMAddressActivityRequest {
|
|
6727
|
+
enum eventType {
|
|
6728
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6729
|
+
}
|
|
6730
|
+
}
|
|
4901
6731
|
|
|
4902
|
-
declare enum
|
|
6732
|
+
declare enum AddressActivityEventType {
|
|
4903
6733
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4904
6734
|
}
|
|
4905
6735
|
|
|
4906
|
-
|
|
6736
|
+
declare enum WebhookStatusType {
|
|
6737
|
+
ACTIVE = "active",
|
|
6738
|
+
INACTIVE = "inactive"
|
|
6739
|
+
}
|
|
6740
|
+
|
|
6741
|
+
type EVMAddressActivityResponse = {
|
|
6742
|
+
id: string;
|
|
4907
6743
|
url: string;
|
|
4908
6744
|
chainId: string;
|
|
4909
|
-
|
|
6745
|
+
status: WebhookStatusType;
|
|
6746
|
+
createdAt: number;
|
|
6747
|
+
name: string;
|
|
6748
|
+
description: string;
|
|
6749
|
+
eventType: AddressActivityEventType;
|
|
4910
6750
|
metadata: AddressActivityMetadata;
|
|
4911
|
-
name?: string;
|
|
4912
|
-
description?: string;
|
|
4913
6751
|
/**
|
|
4914
|
-
* Whether to include traces in the webhook payload.
|
|
6752
|
+
* Whether to include traces in the webhook payload.
|
|
6753
|
+
*/
|
|
6754
|
+
includeInternalTxs?: boolean;
|
|
6755
|
+
/**
|
|
6756
|
+
* Whether to include logs in the webhook payload.
|
|
6757
|
+
*/
|
|
6758
|
+
includeLogs?: boolean;
|
|
6759
|
+
};
|
|
6760
|
+
|
|
6761
|
+
type ListWebhookAddressesResponse = {
|
|
6762
|
+
/**
|
|
6763
|
+
* 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.
|
|
6764
|
+
*/
|
|
6765
|
+
nextPageToken?: string;
|
|
6766
|
+
addresses: Array<string>;
|
|
6767
|
+
totalAddresses: number;
|
|
6768
|
+
};
|
|
6769
|
+
|
|
6770
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6771
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
/**
|
|
6775
|
+
* The type of key to monitor for the address activity event type.
|
|
6776
|
+
*/
|
|
6777
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6778
|
+
ADDRESSES = "addresses"
|
|
6779
|
+
}
|
|
6780
|
+
|
|
6781
|
+
/**
|
|
6782
|
+
* Array of address activity sub-event types
|
|
6783
|
+
*/
|
|
6784
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6785
|
+
BALANCE_CHANGE = "balance_change",
|
|
6786
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6787
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6788
|
+
}
|
|
6789
|
+
|
|
6790
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6791
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6792
|
+
};
|
|
6793
|
+
|
|
6794
|
+
/**
|
|
6795
|
+
* Type of balance to monitor
|
|
6796
|
+
*/
|
|
6797
|
+
declare enum CommonBalanceType {
|
|
6798
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6799
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6800
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6801
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6802
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6803
|
+
PENDING_STAKED = "pendingStaked",
|
|
6804
|
+
UNLOCKED = "unlocked",
|
|
6805
|
+
LOCKED = "locked",
|
|
6806
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6807
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6811
|
+
balanceType: CommonBalanceType;
|
|
6812
|
+
/**
|
|
6813
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6814
|
+
*/
|
|
6815
|
+
balanceThreshold: string;
|
|
6816
|
+
};
|
|
6817
|
+
|
|
6818
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6819
|
+
/**
|
|
6820
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6821
|
+
*/
|
|
6822
|
+
eventSignatures?: Array<string>;
|
|
6823
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6824
|
+
/**
|
|
6825
|
+
* 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.
|
|
6826
|
+
*/
|
|
6827
|
+
keys: Array<string>;
|
|
6828
|
+
/**
|
|
6829
|
+
* Sub-events to monitor
|
|
6830
|
+
*/
|
|
6831
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6832
|
+
/**
|
|
6833
|
+
* Balance threshold filter
|
|
6834
|
+
*/
|
|
6835
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6836
|
+
};
|
|
6837
|
+
|
|
6838
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6839
|
+
id: string;
|
|
6840
|
+
url: string;
|
|
6841
|
+
chainId: string;
|
|
6842
|
+
status: WebhookStatusType;
|
|
6843
|
+
createdAt: number;
|
|
6844
|
+
name: string;
|
|
6845
|
+
description: string;
|
|
6846
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6847
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6848
|
+
};
|
|
6849
|
+
|
|
6850
|
+
declare enum ValidatorActivityEventType {
|
|
6851
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6852
|
+
}
|
|
6853
|
+
|
|
6854
|
+
/**
|
|
6855
|
+
* The type of key to monitor for the validator activity event type.
|
|
6856
|
+
*/
|
|
6857
|
+
declare enum ValidatorActivityKeyType {
|
|
6858
|
+
NODE_ID = "nodeId",
|
|
6859
|
+
SUBNET_ID = "subnetId"
|
|
6860
|
+
}
|
|
6861
|
+
|
|
6862
|
+
type ValidatorActivitySubEvents = {
|
|
6863
|
+
/**
|
|
6864
|
+
* Array of validator activity sub-event types
|
|
6865
|
+
*/
|
|
6866
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6867
|
+
};
|
|
6868
|
+
|
|
6869
|
+
type ValidatorActivityMetadata = {
|
|
6870
|
+
/**
|
|
6871
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6872
|
+
*/
|
|
6873
|
+
eventSignatures?: Array<string>;
|
|
6874
|
+
keyType: ValidatorActivityKeyType;
|
|
6875
|
+
/**
|
|
6876
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
4915
6877
|
*/
|
|
4916
|
-
|
|
6878
|
+
keys: Array<string>;
|
|
4917
6879
|
/**
|
|
4918
|
-
*
|
|
6880
|
+
* Sub-events to monitor
|
|
4919
6881
|
*/
|
|
4920
|
-
|
|
4921
|
-
};
|
|
4922
|
-
|
|
4923
|
-
type ListWebhookAddressesResponse = {
|
|
6882
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4924
6883
|
/**
|
|
4925
|
-
*
|
|
6884
|
+
* Array of node IDs to filter the events
|
|
4926
6885
|
*/
|
|
4927
|
-
|
|
4928
|
-
addresses: Array<string>;
|
|
4929
|
-
totalAddresses: number;
|
|
4930
|
-
};
|
|
4931
|
-
|
|
4932
|
-
declare enum WebhookStatusType {
|
|
4933
|
-
ACTIVE = "active",
|
|
4934
|
-
INACTIVE = "inactive"
|
|
4935
|
-
}
|
|
4936
|
-
|
|
4937
|
-
type WebhookResponse = {
|
|
4938
|
-
id: string;
|
|
4939
|
-
eventType: EventType;
|
|
4940
|
-
metadata: AddressActivityMetadata;
|
|
6886
|
+
nodeIds?: Array<string>;
|
|
4941
6887
|
/**
|
|
4942
|
-
*
|
|
6888
|
+
* Array of subnet IDs to filter the events
|
|
4943
6889
|
*/
|
|
4944
|
-
|
|
6890
|
+
subnetIds?: Array<string>;
|
|
4945
6891
|
/**
|
|
4946
|
-
*
|
|
6892
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4947
6893
|
*/
|
|
4948
|
-
|
|
6894
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6895
|
+
};
|
|
6896
|
+
|
|
6897
|
+
type ValidatorActivityResponse = {
|
|
6898
|
+
id: string;
|
|
4949
6899
|
url: string;
|
|
4950
6900
|
chainId: string;
|
|
4951
6901
|
status: WebhookStatusType;
|
|
4952
6902
|
createdAt: number;
|
|
4953
6903
|
name: string;
|
|
4954
6904
|
description: string;
|
|
6905
|
+
eventType: ValidatorActivityEventType;
|
|
6906
|
+
metadata: ValidatorActivityMetadata;
|
|
4955
6907
|
};
|
|
4956
6908
|
|
|
4957
6909
|
type ListWebhooksResponse = {
|
|
@@ -4959,8 +6911,26 @@ type ListWebhooksResponse = {
|
|
|
4959
6911
|
* 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.
|
|
4960
6912
|
*/
|
|
4961
6913
|
nextPageToken?: string;
|
|
4962
|
-
webhooks: Array<
|
|
6914
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6915
|
+
};
|
|
6916
|
+
|
|
6917
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6918
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6919
|
+
url: string;
|
|
6920
|
+
name?: string;
|
|
6921
|
+
description?: string;
|
|
6922
|
+
network: PrimaryNetworkType;
|
|
6923
|
+
chainId: string;
|
|
6924
|
+
/**
|
|
6925
|
+
* Metadata for platform address activity event
|
|
6926
|
+
*/
|
|
6927
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
4963
6928
|
};
|
|
6929
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6930
|
+
enum eventType {
|
|
6931
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
4964
6934
|
|
|
4965
6935
|
type SharedSecretsResponse = {
|
|
4966
6936
|
secret: string;
|
|
@@ -4971,10 +6941,30 @@ type UpdateWebhookRequest = {
|
|
|
4971
6941
|
description?: string;
|
|
4972
6942
|
url?: string;
|
|
4973
6943
|
status?: WebhookStatusType;
|
|
6944
|
+
/**
|
|
6945
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6946
|
+
*/
|
|
4974
6947
|
includeInternalTxs?: boolean;
|
|
4975
6948
|
includeLogs?: boolean;
|
|
4976
6949
|
};
|
|
4977
6950
|
|
|
6951
|
+
type ValidatorActivityRequest = {
|
|
6952
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6953
|
+
url: string;
|
|
6954
|
+
name?: string;
|
|
6955
|
+
description?: string;
|
|
6956
|
+
network: PrimaryNetworkType;
|
|
6957
|
+
/**
|
|
6958
|
+
* Metadata for platform validator activity event
|
|
6959
|
+
*/
|
|
6960
|
+
metadata: ValidatorActivityMetadata;
|
|
6961
|
+
};
|
|
6962
|
+
declare namespace ValidatorActivityRequest {
|
|
6963
|
+
enum eventType {
|
|
6964
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6965
|
+
}
|
|
6966
|
+
}
|
|
6967
|
+
|
|
4978
6968
|
declare enum WebhookStatus {
|
|
4979
6969
|
ACTIVE = "active",
|
|
4980
6970
|
INACTIVE = "inactive"
|
|
@@ -4986,12 +6976,12 @@ declare class WebhooksService {
|
|
|
4986
6976
|
/**
|
|
4987
6977
|
* Create a webhook
|
|
4988
6978
|
* Create a new webhook.
|
|
4989
|
-
* @returns
|
|
6979
|
+
* @returns any Successful response
|
|
4990
6980
|
* @throws ApiError
|
|
4991
6981
|
*/
|
|
4992
6982
|
createWebhook({ requestBody, }: {
|
|
4993
|
-
requestBody:
|
|
4994
|
-
}): CancelablePromise<
|
|
6983
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6984
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4995
6985
|
/**
|
|
4996
6986
|
* List webhooks
|
|
4997
6987
|
* Lists webhooks for the user.
|
|
@@ -5015,7 +7005,7 @@ declare class WebhooksService {
|
|
|
5015
7005
|
/**
|
|
5016
7006
|
* Get a webhook by ID
|
|
5017
7007
|
* Retrieves a webhook by ID.
|
|
5018
|
-
* @returns
|
|
7008
|
+
* @returns any Successful response
|
|
5019
7009
|
* @throws ApiError
|
|
5020
7010
|
*/
|
|
5021
7011
|
getWebhook({ id, }: {
|
|
@@ -5023,11 +7013,11 @@ declare class WebhooksService {
|
|
|
5023
7013
|
* The webhook identifier.
|
|
5024
7014
|
*/
|
|
5025
7015
|
id: string;
|
|
5026
|
-
}): CancelablePromise<
|
|
7016
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5027
7017
|
/**
|
|
5028
7018
|
* Deactivate a webhook
|
|
5029
7019
|
* Deactivates a webhook by ID.
|
|
5030
|
-
* @returns
|
|
7020
|
+
* @returns any Successful response
|
|
5031
7021
|
* @throws ApiError
|
|
5032
7022
|
*/
|
|
5033
7023
|
deactivateWebhook({ id, }: {
|
|
@@ -5035,11 +7025,11 @@ declare class WebhooksService {
|
|
|
5035
7025
|
* The webhook identifier.
|
|
5036
7026
|
*/
|
|
5037
7027
|
id: string;
|
|
5038
|
-
}): CancelablePromise<
|
|
7028
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5039
7029
|
/**
|
|
5040
7030
|
* Update a webhook
|
|
5041
7031
|
* Updates an existing webhook.
|
|
5042
|
-
* @returns
|
|
7032
|
+
* @returns any Successful response
|
|
5043
7033
|
* @throws ApiError
|
|
5044
7034
|
*/
|
|
5045
7035
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5048,14 +7038,14 @@ declare class WebhooksService {
|
|
|
5048
7038
|
*/
|
|
5049
7039
|
id: string;
|
|
5050
7040
|
requestBody: UpdateWebhookRequest;
|
|
5051
|
-
}): CancelablePromise<
|
|
7041
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5052
7042
|
/**
|
|
5053
|
-
* Generate a shared secret
|
|
5054
|
-
* Generates a new shared secret.
|
|
7043
|
+
* Generate or rotate a shared secret
|
|
7044
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5055
7045
|
* @returns SharedSecretsResponse Successful response
|
|
5056
7046
|
* @throws ApiError
|
|
5057
7047
|
*/
|
|
5058
|
-
|
|
7048
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5059
7049
|
/**
|
|
5060
7050
|
* Get a shared secret
|
|
5061
7051
|
* Get a previously generated shared secret.
|
|
@@ -5064,9 +7054,9 @@ declare class WebhooksService {
|
|
|
5064
7054
|
*/
|
|
5065
7055
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5066
7056
|
/**
|
|
5067
|
-
* Add addresses to webhook
|
|
5068
|
-
* Add addresses to webhook.
|
|
5069
|
-
* @returns
|
|
7057
|
+
* Add addresses to EVM activity webhook
|
|
7058
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
7059
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5070
7060
|
* @throws ApiError
|
|
5071
7061
|
*/
|
|
5072
7062
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5075,11 +7065,11 @@ declare class WebhooksService {
|
|
|
5075
7065
|
*/
|
|
5076
7066
|
id: string;
|
|
5077
7067
|
requestBody: AddressesChangeRequest;
|
|
5078
|
-
}): CancelablePromise<
|
|
7068
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5079
7069
|
/**
|
|
5080
|
-
* Remove addresses from webhook
|
|
5081
|
-
* Remove addresses from webhook.
|
|
5082
|
-
* @returns
|
|
7070
|
+
* Remove addresses from EVM activity webhook
|
|
7071
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
7072
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5083
7073
|
* @throws ApiError
|
|
5084
7074
|
*/
|
|
5085
7075
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5088,10 +7078,10 @@ declare class WebhooksService {
|
|
|
5088
7078
|
*/
|
|
5089
7079
|
id: string;
|
|
5090
7080
|
requestBody: AddressesChangeRequest;
|
|
5091
|
-
}): CancelablePromise<
|
|
7081
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5092
7082
|
/**
|
|
5093
|
-
* List adresses by
|
|
5094
|
-
* List adresses by webhook.
|
|
7083
|
+
* List adresses by EVM activity webhooks
|
|
7084
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5095
7085
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5096
7086
|
* @throws ApiError
|
|
5097
7087
|
*/
|
|
@@ -5113,14 +7103,15 @@ declare class WebhooksService {
|
|
|
5113
7103
|
|
|
5114
7104
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5115
7105
|
declare class Glacier {
|
|
7106
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5116
7107
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5117
|
-
readonly default: DefaultService;
|
|
5118
7108
|
readonly evmBalances: EvmBalancesService;
|
|
5119
7109
|
readonly evmBlocks: EvmBlocksService;
|
|
5120
7110
|
readonly evmChains: EvmChainsService;
|
|
5121
7111
|
readonly evmContracts: EvmContractsService;
|
|
5122
7112
|
readonly evmTransactions: EvmTransactionsService;
|
|
5123
7113
|
readonly healthCheck: HealthCheckService;
|
|
7114
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5124
7115
|
readonly nfTs: NfTsService;
|
|
5125
7116
|
readonly operations: OperationsService;
|
|
5126
7117
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -5154,6 +7145,17 @@ declare class ApiError extends Error {
|
|
|
5154
7145
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5155
7146
|
}
|
|
5156
7147
|
|
|
7148
|
+
type AccessListData = {
|
|
7149
|
+
/**
|
|
7150
|
+
* Access Address
|
|
7151
|
+
*/
|
|
7152
|
+
accessAddresses: string;
|
|
7153
|
+
/**
|
|
7154
|
+
* Storage keys
|
|
7155
|
+
*/
|
|
7156
|
+
storageKeys: Array<string>;
|
|
7157
|
+
};
|
|
7158
|
+
|
|
5157
7159
|
type BadGateway = {
|
|
5158
7160
|
/**
|
|
5159
7161
|
* The error message describing the reason for the exception
|
|
@@ -5188,6 +7190,76 @@ type DataListChainsResponse = {
|
|
|
5188
7190
|
chains: Array<ChainInfo>;
|
|
5189
7191
|
};
|
|
5190
7192
|
|
|
7193
|
+
type ERCToken = {
|
|
7194
|
+
/**
|
|
7195
|
+
* Token contract address
|
|
7196
|
+
*/
|
|
7197
|
+
address: string;
|
|
7198
|
+
/**
|
|
7199
|
+
* Token name
|
|
7200
|
+
*/
|
|
7201
|
+
name: string;
|
|
7202
|
+
/**
|
|
7203
|
+
* Token symbol
|
|
7204
|
+
*/
|
|
7205
|
+
symbol: string;
|
|
7206
|
+
/**
|
|
7207
|
+
* Token decimals
|
|
7208
|
+
*/
|
|
7209
|
+
decimals: number;
|
|
7210
|
+
/**
|
|
7211
|
+
* Value including decimals
|
|
7212
|
+
*/
|
|
7213
|
+
valueWithDecimals: string;
|
|
7214
|
+
};
|
|
7215
|
+
|
|
7216
|
+
type ERCTransfer = {
|
|
7217
|
+
/**
|
|
7218
|
+
* Transaction hash
|
|
7219
|
+
*/
|
|
7220
|
+
transactionHash: string;
|
|
7221
|
+
/**
|
|
7222
|
+
* Transfer type
|
|
7223
|
+
*/
|
|
7224
|
+
type: string;
|
|
7225
|
+
/**
|
|
7226
|
+
* Sender address
|
|
7227
|
+
*/
|
|
7228
|
+
from: string;
|
|
7229
|
+
/**
|
|
7230
|
+
* Recipient address
|
|
7231
|
+
*/
|
|
7232
|
+
to: string;
|
|
7233
|
+
/**
|
|
7234
|
+
* Amount transferred
|
|
7235
|
+
*/
|
|
7236
|
+
value: string;
|
|
7237
|
+
/**
|
|
7238
|
+
* Token Id
|
|
7239
|
+
*/
|
|
7240
|
+
tokenId?: string;
|
|
7241
|
+
/**
|
|
7242
|
+
* Block timestamp
|
|
7243
|
+
*/
|
|
7244
|
+
blockTimestamp: number;
|
|
7245
|
+
/**
|
|
7246
|
+
* Log index
|
|
7247
|
+
*/
|
|
7248
|
+
logIndex: number;
|
|
7249
|
+
/**
|
|
7250
|
+
* erc20 Token details
|
|
7251
|
+
*/
|
|
7252
|
+
erc20Token?: ERCToken;
|
|
7253
|
+
/**
|
|
7254
|
+
* erc721 Token details
|
|
7255
|
+
*/
|
|
7256
|
+
erc721Token?: ERCToken;
|
|
7257
|
+
/**
|
|
7258
|
+
* erc1155 Token details
|
|
7259
|
+
*/
|
|
7260
|
+
erc1155Token?: ERCToken;
|
|
7261
|
+
};
|
|
7262
|
+
|
|
5191
7263
|
type Forbidden = {
|
|
5192
7264
|
/**
|
|
5193
7265
|
* The error message describing the reason for the exception
|
|
@@ -5218,6 +7290,64 @@ type InternalServerError = {
|
|
|
5218
7290
|
error: string;
|
|
5219
7291
|
};
|
|
5220
7292
|
|
|
7293
|
+
type Log = {
|
|
7294
|
+
/**
|
|
7295
|
+
* Contract address
|
|
7296
|
+
*/
|
|
7297
|
+
address: string;
|
|
7298
|
+
/**
|
|
7299
|
+
* First topic
|
|
7300
|
+
*/
|
|
7301
|
+
topic0: string;
|
|
7302
|
+
/**
|
|
7303
|
+
* Second topic (optional)
|
|
7304
|
+
*/
|
|
7305
|
+
topic1?: string;
|
|
7306
|
+
/**
|
|
7307
|
+
* Third topic (optional)
|
|
7308
|
+
*/
|
|
7309
|
+
topic2?: string;
|
|
7310
|
+
/**
|
|
7311
|
+
* Fourth topic (optional)
|
|
7312
|
+
*/
|
|
7313
|
+
topic3?: string;
|
|
7314
|
+
/**
|
|
7315
|
+
* Event data
|
|
7316
|
+
*/
|
|
7317
|
+
data: string;
|
|
7318
|
+
/**
|
|
7319
|
+
* Transaction index
|
|
7320
|
+
*/
|
|
7321
|
+
transactionIndex: number;
|
|
7322
|
+
/**
|
|
7323
|
+
* Log index
|
|
7324
|
+
*/
|
|
7325
|
+
logIndex: number;
|
|
7326
|
+
/**
|
|
7327
|
+
* Indicates if the log was removed
|
|
7328
|
+
*/
|
|
7329
|
+
removed: boolean;
|
|
7330
|
+
};
|
|
7331
|
+
|
|
7332
|
+
type NetworkTokenInfo = {
|
|
7333
|
+
/**
|
|
7334
|
+
* Token name
|
|
7335
|
+
*/
|
|
7336
|
+
tokenName?: string;
|
|
7337
|
+
/**
|
|
7338
|
+
* Token symbol
|
|
7339
|
+
*/
|
|
7340
|
+
tokenSymbol?: string;
|
|
7341
|
+
/**
|
|
7342
|
+
* Token decimals
|
|
7343
|
+
*/
|
|
7344
|
+
tokenDecimals?: number;
|
|
7345
|
+
/**
|
|
7346
|
+
* Value including decimals
|
|
7347
|
+
*/
|
|
7348
|
+
valueWithDecimals?: string;
|
|
7349
|
+
};
|
|
7350
|
+
|
|
5221
7351
|
type NextPageToken = {
|
|
5222
7352
|
/**
|
|
5223
7353
|
* 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.
|
|
@@ -5270,6 +7400,163 @@ type TooManyRequests = {
|
|
|
5270
7400
|
error: string;
|
|
5271
7401
|
};
|
|
5272
7402
|
|
|
7403
|
+
type WebhookInternalTransaction = {
|
|
7404
|
+
/**
|
|
7405
|
+
* Sender address
|
|
7406
|
+
*/
|
|
7407
|
+
from: string;
|
|
7408
|
+
/**
|
|
7409
|
+
* Recipient address
|
|
7410
|
+
*/
|
|
7411
|
+
to: string;
|
|
7412
|
+
/**
|
|
7413
|
+
* Internal transaction type
|
|
7414
|
+
*/
|
|
7415
|
+
internalTxType: string;
|
|
7416
|
+
/**
|
|
7417
|
+
* Value transferred
|
|
7418
|
+
*/
|
|
7419
|
+
value: string;
|
|
7420
|
+
/**
|
|
7421
|
+
* Gas used
|
|
7422
|
+
*/
|
|
7423
|
+
gasUsed: string;
|
|
7424
|
+
/**
|
|
7425
|
+
* Gas limit
|
|
7426
|
+
*/
|
|
7427
|
+
gasLimit: string;
|
|
7428
|
+
/**
|
|
7429
|
+
* Transaction hash
|
|
7430
|
+
*/
|
|
7431
|
+
transactionHash: string;
|
|
7432
|
+
};
|
|
7433
|
+
|
|
7434
|
+
type Transaction = {
|
|
7435
|
+
/**
|
|
7436
|
+
* Block hash of the transaction
|
|
7437
|
+
*/
|
|
7438
|
+
blockHash: string;
|
|
7439
|
+
/**
|
|
7440
|
+
* Block number of the transaction
|
|
7441
|
+
*/
|
|
7442
|
+
blockNumber: string;
|
|
7443
|
+
/**
|
|
7444
|
+
* Sender address
|
|
7445
|
+
*/
|
|
7446
|
+
from: string;
|
|
7447
|
+
/**
|
|
7448
|
+
* Gas limit for the transaction
|
|
7449
|
+
*/
|
|
7450
|
+
gas: string;
|
|
7451
|
+
/**
|
|
7452
|
+
* Gas price used
|
|
7453
|
+
*/
|
|
7454
|
+
gasPrice: string;
|
|
7455
|
+
/**
|
|
7456
|
+
* Maximum fee per gas
|
|
7457
|
+
*/
|
|
7458
|
+
maxFeePerGas: string;
|
|
7459
|
+
/**
|
|
7460
|
+
* Maximum priority fee per gas
|
|
7461
|
+
*/
|
|
7462
|
+
maxPriorityFeePerGas: string;
|
|
7463
|
+
/**
|
|
7464
|
+
* Transaction hash
|
|
7465
|
+
*/
|
|
7466
|
+
txHash: string;
|
|
7467
|
+
/**
|
|
7468
|
+
* Transaction status
|
|
7469
|
+
*/
|
|
7470
|
+
txStatus: string;
|
|
7471
|
+
/**
|
|
7472
|
+
* Input data
|
|
7473
|
+
*/
|
|
7474
|
+
input: string;
|
|
7475
|
+
/**
|
|
7476
|
+
* Nonce value
|
|
7477
|
+
*/
|
|
7478
|
+
nonce: string;
|
|
7479
|
+
/**
|
|
7480
|
+
* Recipient address
|
|
7481
|
+
*/
|
|
7482
|
+
to: string;
|
|
7483
|
+
/**
|
|
7484
|
+
* Transaction index
|
|
7485
|
+
*/
|
|
7486
|
+
transactionIndex: number;
|
|
7487
|
+
/**
|
|
7488
|
+
* Value transferred in the transaction
|
|
7489
|
+
*/
|
|
7490
|
+
value: string;
|
|
7491
|
+
/**
|
|
7492
|
+
* Transaction type
|
|
7493
|
+
*/
|
|
7494
|
+
type: number;
|
|
7495
|
+
/**
|
|
7496
|
+
* Chain ID of the network
|
|
7497
|
+
*/
|
|
7498
|
+
chainId: string;
|
|
7499
|
+
/**
|
|
7500
|
+
* Cumulative gas used
|
|
7501
|
+
*/
|
|
7502
|
+
receiptCumulativeGasUsed: string;
|
|
7503
|
+
/**
|
|
7504
|
+
* Gas used
|
|
7505
|
+
*/
|
|
7506
|
+
receiptGasUsed: string;
|
|
7507
|
+
/**
|
|
7508
|
+
* Effective gas price
|
|
7509
|
+
*/
|
|
7510
|
+
receiptEffectiveGasPrice: string;
|
|
7511
|
+
/**
|
|
7512
|
+
* Receipt root
|
|
7513
|
+
*/
|
|
7514
|
+
receiptRoot: string;
|
|
7515
|
+
/**
|
|
7516
|
+
* Block timestamp
|
|
7517
|
+
*/
|
|
7518
|
+
blockTimestamp: number;
|
|
7519
|
+
/**
|
|
7520
|
+
* Contract address (optional)
|
|
7521
|
+
*/
|
|
7522
|
+
contractAddress?: string;
|
|
7523
|
+
/**
|
|
7524
|
+
* ERC20 transfers
|
|
7525
|
+
*/
|
|
7526
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7527
|
+
/**
|
|
7528
|
+
* ERC721 transfers
|
|
7529
|
+
*/
|
|
7530
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7531
|
+
/**
|
|
7532
|
+
* ERC1155 transfers
|
|
7533
|
+
*/
|
|
7534
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7535
|
+
/**
|
|
7536
|
+
* Internal transactions (optional)
|
|
7537
|
+
*/
|
|
7538
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7539
|
+
/**
|
|
7540
|
+
* Access list (optional)
|
|
7541
|
+
*/
|
|
7542
|
+
accessList?: Array<AccessListData>;
|
|
7543
|
+
/**
|
|
7544
|
+
* Network token info (optional)
|
|
7545
|
+
*/
|
|
7546
|
+
networkToken?: NetworkTokenInfo;
|
|
7547
|
+
};
|
|
7548
|
+
|
|
7549
|
+
type TransactionEvent = {
|
|
7550
|
+
/**
|
|
7551
|
+
* Transaction details
|
|
7552
|
+
*/
|
|
7553
|
+
transaction: Transaction;
|
|
7554
|
+
/**
|
|
7555
|
+
* Array of log events
|
|
7556
|
+
*/
|
|
7557
|
+
logs?: Array<Log>;
|
|
7558
|
+
};
|
|
7559
|
+
|
|
5273
7560
|
type Unauthorized = {
|
|
5274
7561
|
/**
|
|
5275
7562
|
* The error message describing the reason for the exception
|
|
@@ -5285,4 +7572,43 @@ type Unauthorized = {
|
|
|
5285
7572
|
error: string;
|
|
5286
7573
|
};
|
|
5287
7574
|
|
|
5288
|
-
|
|
7575
|
+
type WebhookAddressActivityResponse = {
|
|
7576
|
+
/**
|
|
7577
|
+
* Webhook ID
|
|
7578
|
+
*/
|
|
7579
|
+
webhookId: string;
|
|
7580
|
+
/**
|
|
7581
|
+
* Event type
|
|
7582
|
+
*/
|
|
7583
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7584
|
+
/**
|
|
7585
|
+
* Message ID
|
|
7586
|
+
*/
|
|
7587
|
+
messageId: string;
|
|
7588
|
+
/**
|
|
7589
|
+
* Event details
|
|
7590
|
+
*/
|
|
7591
|
+
event: TransactionEvent;
|
|
7592
|
+
};
|
|
7593
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7594
|
+
/**
|
|
7595
|
+
* Event type
|
|
7596
|
+
*/
|
|
7597
|
+
enum eventType {
|
|
7598
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7599
|
+
}
|
|
7600
|
+
}
|
|
7601
|
+
|
|
7602
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7603
|
+
constructor(config: OpenAPIConfig);
|
|
7604
|
+
/**
|
|
7605
|
+
* Request method
|
|
7606
|
+
* @param options The request options from the service
|
|
7607
|
+
* @returns CancelablePromise<T>
|
|
7608
|
+
* @throws ApiError
|
|
7609
|
+
*/
|
|
7610
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7611
|
+
}
|
|
7612
|
+
|
|
7613
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AutoRenewExitReason, AutoRenewState, AutoRenewedCycleOutcome, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, CurrencyCode, DataApiUsageMetricsService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20TokenV2, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, 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, StakingType, 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 };
|
|
7614
|
+
export type { AccessListData, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AutoRenewDetails, AutoRenewedCycle, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrentAutoRenewedCycle, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc20TransferDetailsV2, 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, LastActivityTimestamp, ListAddressChainsResponse, ListAutoRenewedCyclesResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainStakingTransactionsResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransactionDetailsResponseV2, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainStakingTransaction, 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, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionDetailsV2, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|