@avalabs/glacier-sdk 3.1.0-alpha.8 → 3.1.0-alpha.80
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/dist/index.cjs +1 -0
- package/dist/index.d.ts +2576 -454
- package/esm/generated/Glacier.d.ts +6 -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/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -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/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 +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.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/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 +1 -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/IcmRewardDetails.js +1 -0
- 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/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/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/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +40 -9
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- 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 +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -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 +3 -3
- 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 +5 -0
- 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 +9 -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/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/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- 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/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.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 +122 -23
- 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/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/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.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 +55 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- 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 +76 -10
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.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/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type AvaxSupplyResponse = {
|
|
58
|
+
/**
|
|
59
|
+
* The circulating supply of AVAX.
|
|
60
|
+
*/
|
|
61
|
+
circulatingSupply: string;
|
|
62
|
+
/**
|
|
63
|
+
* The total supply of AVAX.
|
|
64
|
+
*/
|
|
65
|
+
totalSupply: string;
|
|
66
|
+
/**
|
|
67
|
+
* Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
|
|
72
|
+
*/
|
|
73
|
+
totalCBurned: string;
|
|
74
|
+
/**
|
|
75
|
+
* The total X-chain burned fees of AVAX.
|
|
76
|
+
*/
|
|
77
|
+
totalXBurned: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total staked AVAX.
|
|
80
|
+
*/
|
|
81
|
+
totalStaked: string;
|
|
82
|
+
/**
|
|
83
|
+
* The total locked AVAX.
|
|
84
|
+
*/
|
|
85
|
+
totalLocked: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total rewards AVAX.
|
|
88
|
+
*/
|
|
89
|
+
totalRewards: string;
|
|
90
|
+
/**
|
|
91
|
+
* The last updated time of the AVAX supply.
|
|
92
|
+
*/
|
|
93
|
+
lastUpdated: string;
|
|
94
|
+
/**
|
|
95
|
+
* The genesis unlock amount of the AVAX supply.
|
|
96
|
+
*/
|
|
97
|
+
genesisUnlock: string;
|
|
98
|
+
/**
|
|
99
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare class AvaxSupplyService {
|
|
105
|
+
readonly httpRequest: BaseHttpRequest;
|
|
106
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
107
|
+
/**
|
|
108
|
+
* Get AVAX supply information
|
|
109
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
57
116
|
type LogsFormatMetadata = {
|
|
58
117
|
/**
|
|
59
118
|
* The IP address of the client that made the request.
|
|
@@ -148,6 +207,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
|
*/
|
|
@@ -333,7 +459,7 @@ declare class DataApiUsageMetricsService {
|
|
|
333
459
|
*/
|
|
334
460
|
startTimestamp?: number;
|
|
335
461
|
/**
|
|
336
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
462
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
337
463
|
*/
|
|
338
464
|
endTimestamp?: number;
|
|
339
465
|
/**
|
|
@@ -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
|
*/
|
|
@@ -381,17 +507,13 @@ declare class DataApiUsageMetricsService {
|
|
|
381
507
|
*/
|
|
382
508
|
startTimestamp?: number;
|
|
383
509
|
/**
|
|
384
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
510
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
385
511
|
*/
|
|
386
512
|
endTimestamp?: number;
|
|
387
513
|
/**
|
|
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,35 +541,75 @@ 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
|
*/
|
|
430
557
|
startTimestamp?: number;
|
|
431
558
|
/**
|
|
432
|
-
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
559
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
433
560
|
*/
|
|
434
561
|
endTimestamp?: number;
|
|
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,7 +622,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
622
|
* Filter data by Rl Bypass API Token.
|
|
457
623
|
*/
|
|
458
624
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
625
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
626
|
+
/**
|
|
627
|
+
* Get usage metrics for the Primary Network RPC
|
|
628
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
629
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
630
|
+
* @throws ApiError
|
|
631
|
+
*/
|
|
632
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
633
|
+
/**
|
|
634
|
+
* Either mainnet or testnet/fuji.
|
|
635
|
+
*/
|
|
636
|
+
network: Network;
|
|
637
|
+
/**
|
|
638
|
+
* Time interval granularity for data aggregation for subnet
|
|
639
|
+
* rpc metrics
|
|
640
|
+
*/
|
|
641
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
642
|
+
/**
|
|
643
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
644
|
+
*/
|
|
645
|
+
startTimestamp?: number;
|
|
646
|
+
/**
|
|
647
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
648
|
+
*/
|
|
649
|
+
endTimestamp?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Query param for the criterion used for grouping metrics
|
|
652
|
+
*/
|
|
653
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
654
|
+
/**
|
|
655
|
+
* Filter data by response status code.
|
|
656
|
+
*/
|
|
657
|
+
responseCode?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Filter data by request path.
|
|
660
|
+
*/
|
|
661
|
+
requestPath?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
664
|
+
*/
|
|
665
|
+
country?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
668
|
+
*/
|
|
669
|
+
continent?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Filter data by User Agent.
|
|
672
|
+
*/
|
|
673
|
+
userAgent?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Filter data by RPC method.
|
|
676
|
+
*/
|
|
677
|
+
rpcMethod?: string;
|
|
678
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
460
679
|
}
|
|
461
680
|
|
|
462
681
|
declare class DefaultService {
|
|
@@ -655,6 +874,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
874
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
656
875
|
*/
|
|
657
876
|
nextPageToken?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The native token balance for the address.
|
|
879
|
+
*/
|
|
880
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
881
|
/**
|
|
659
882
|
* The list of ERC-1155 token balances for the address.
|
|
660
883
|
*/
|
|
@@ -699,11 +922,22 @@ type Erc20TokenBalance = {
|
|
|
699
922
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
923
|
*/
|
|
701
924
|
balanceValue?: Money;
|
|
925
|
+
/**
|
|
926
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
927
|
+
*/
|
|
928
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
929
|
};
|
|
703
930
|
declare namespace Erc20TokenBalance {
|
|
704
931
|
enum ercType {
|
|
705
932
|
ERC_20 = "ERC-20"
|
|
706
933
|
}
|
|
934
|
+
/**
|
|
935
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
936
|
+
*/
|
|
937
|
+
enum tokenReputation {
|
|
938
|
+
MALICIOUS = "Malicious",
|
|
939
|
+
BENIGN = "Benign"
|
|
940
|
+
}
|
|
707
941
|
}
|
|
708
942
|
|
|
709
943
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +945,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
945
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
712
946
|
*/
|
|
713
947
|
nextPageToken?: string;
|
|
948
|
+
/**
|
|
949
|
+
* The native token balance for the address.
|
|
950
|
+
*/
|
|
951
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
952
|
/**
|
|
715
953
|
* The list of ERC-20 token balances for the address.
|
|
716
954
|
*/
|
|
@@ -722,6 +960,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
960
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
723
961
|
*/
|
|
724
962
|
nextPageToken?: string;
|
|
963
|
+
/**
|
|
964
|
+
* The native token balance for the address.
|
|
965
|
+
*/
|
|
966
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
967
|
/**
|
|
726
968
|
* The list of ERC-721 token balances for the address.
|
|
727
969
|
*/
|
|
@@ -785,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
785
1027
|
*/
|
|
786
1028
|
pageToken?: string;
|
|
787
1029
|
/**
|
|
788
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
789
1031
|
*/
|
|
790
1032
|
pageSize?: number;
|
|
791
1033
|
/**
|
|
@@ -823,7 +1065,7 @@ declare class EvmBalancesService {
|
|
|
823
1065
|
*/
|
|
824
1066
|
pageToken?: string;
|
|
825
1067
|
/**
|
|
826
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1068
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
827
1069
|
*/
|
|
828
1070
|
pageSize?: number;
|
|
829
1071
|
/**
|
|
@@ -859,7 +1101,7 @@ declare class EvmBalancesService {
|
|
|
859
1101
|
*/
|
|
860
1102
|
pageToken?: string;
|
|
861
1103
|
/**
|
|
862
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1104
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
863
1105
|
*/
|
|
864
1106
|
pageSize?: number;
|
|
865
1107
|
/**
|
|
@@ -889,7 +1131,7 @@ declare class EvmBalancesService {
|
|
|
889
1131
|
*/
|
|
890
1132
|
pageToken?: string;
|
|
891
1133
|
/**
|
|
892
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1134
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
893
1135
|
*/
|
|
894
1136
|
pageSize?: number;
|
|
895
1137
|
/**
|
|
@@ -900,14 +1142,26 @@ declare class EvmBalancesService {
|
|
|
900
1142
|
}
|
|
901
1143
|
|
|
902
1144
|
type GetEvmBlockResponse = {
|
|
1145
|
+
/**
|
|
1146
|
+
* The EVM chain ID on which the block was created.
|
|
1147
|
+
*/
|
|
1148
|
+
chainId: string;
|
|
903
1149
|
/**
|
|
904
1150
|
* The block number on the chain.
|
|
905
1151
|
*/
|
|
906
1152
|
blockNumber: string;
|
|
907
1153
|
/**
|
|
908
|
-
* The block
|
|
1154
|
+
* The block creation (proposal) timestamp in seconds
|
|
909
1155
|
*/
|
|
910
1156
|
blockTimestamp: number;
|
|
1157
|
+
/**
|
|
1158
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1159
|
+
*/
|
|
1160
|
+
blockTimestampMilliseconds?: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1163
|
+
*/
|
|
1164
|
+
blockMinDelayExcess?: number;
|
|
911
1165
|
/**
|
|
912
1166
|
* The block hash identifier.
|
|
913
1167
|
*/
|
|
@@ -944,14 +1198,26 @@ type GetEvmBlockResponse = {
|
|
|
944
1198
|
};
|
|
945
1199
|
|
|
946
1200
|
type EvmBlock = {
|
|
1201
|
+
/**
|
|
1202
|
+
* The EVM chain ID on which the block was created.
|
|
1203
|
+
*/
|
|
1204
|
+
chainId: string;
|
|
947
1205
|
/**
|
|
948
1206
|
* The block number on the chain.
|
|
949
1207
|
*/
|
|
950
1208
|
blockNumber: string;
|
|
951
1209
|
/**
|
|
952
|
-
* The block
|
|
1210
|
+
* The block creation (proposal) timestamp in seconds
|
|
953
1211
|
*/
|
|
954
1212
|
blockTimestamp: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1215
|
+
*/
|
|
1216
|
+
blockTimestampMilliseconds?: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1219
|
+
*/
|
|
1220
|
+
blockMinDelayExcess?: number;
|
|
955
1221
|
/**
|
|
956
1222
|
* The block hash identifier.
|
|
957
1223
|
*/
|
|
@@ -998,6 +1264,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1264
|
declare class EvmBlocksService {
|
|
999
1265
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1266
|
constructor(httpRequest: BaseHttpRequest);
|
|
1267
|
+
/**
|
|
1268
|
+
* List latest blocks across all supported EVM chains
|
|
1269
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1270
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1271
|
+
* @throws ApiError
|
|
1272
|
+
*/
|
|
1273
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1274
|
+
/**
|
|
1275
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1276
|
+
*/
|
|
1277
|
+
pageToken?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1280
|
+
*/
|
|
1281
|
+
pageSize?: number;
|
|
1282
|
+
/**
|
|
1283
|
+
* Either mainnet or testnet/fuji.
|
|
1284
|
+
*/
|
|
1285
|
+
network?: Network;
|
|
1286
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1287
|
/**
|
|
1002
1288
|
* List latest blocks
|
|
1003
1289
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1120,52 +1406,184 @@ type ChainInfo = {
|
|
|
1120
1406
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1407
|
};
|
|
1122
1408
|
|
|
1409
|
+
type ListAddressChainsResponse = {
|
|
1410
|
+
indexedChains?: Array<ChainInfo>;
|
|
1411
|
+
unindexedChains?: Array<string>;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1123
1414
|
type ListChainsResponse = {
|
|
1124
1415
|
chains: Array<ChainInfo>;
|
|
1125
1416
|
};
|
|
1126
1417
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1418
|
+
/**
|
|
1419
|
+
* 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.
|
|
1420
|
+
*/
|
|
1421
|
+
declare enum TransactionMethodType {
|
|
1422
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1423
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1424
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1132
1425
|
}
|
|
1133
1426
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1427
|
+
type Method = {
|
|
1428
|
+
callType: TransactionMethodType;
|
|
1137
1429
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1140
|
-
* @returns ListChainsResponse Successful response
|
|
1141
|
-
* @throws ApiError
|
|
1430
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1142
1431
|
*/
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Either mainnet or testnet/fuji.
|
|
1146
|
-
*/
|
|
1147
|
-
network?: Network;
|
|
1148
|
-
/**
|
|
1149
|
-
* Filter by feature.
|
|
1150
|
-
*/
|
|
1151
|
-
feature?: ApiFeature;
|
|
1152
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1432
|
+
methodHash: string;
|
|
1153
1433
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1156
|
-
* @returns GetChainResponse Successful response
|
|
1157
|
-
* @throws ApiError
|
|
1434
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1158
1435
|
*/
|
|
1159
|
-
|
|
1436
|
+
methodName?: string;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
type RichAddress = {
|
|
1440
|
+
/**
|
|
1441
|
+
* The contract name.
|
|
1442
|
+
*/
|
|
1443
|
+
name?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* The contract symbol.
|
|
1446
|
+
*/
|
|
1447
|
+
symbol?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1450
|
+
*/
|
|
1451
|
+
decimals?: number;
|
|
1452
|
+
/**
|
|
1453
|
+
* The logo uri for the address.
|
|
1454
|
+
*/
|
|
1455
|
+
logoUri?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1458
|
+
*/
|
|
1459
|
+
address: string;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
type NativeTransaction = {
|
|
1463
|
+
/**
|
|
1464
|
+
* The block number on the chain.
|
|
1465
|
+
*/
|
|
1466
|
+
blockNumber: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* The block creation (proposal) timestamp in seconds
|
|
1469
|
+
*/
|
|
1470
|
+
blockTimestamp: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1473
|
+
*/
|
|
1474
|
+
blockTimestampMilliseconds?: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1477
|
+
*/
|
|
1478
|
+
blockMinDelayExcess?: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* The block hash identifier.
|
|
1481
|
+
*/
|
|
1482
|
+
blockHash: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The EVM chain ID on which the transaction occured.
|
|
1485
|
+
*/
|
|
1486
|
+
chainId: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1489
|
+
*/
|
|
1490
|
+
blockIndex: number;
|
|
1491
|
+
/**
|
|
1492
|
+
* The transaction hash identifier.
|
|
1493
|
+
*/
|
|
1494
|
+
txHash: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1497
|
+
*/
|
|
1498
|
+
txStatus: string;
|
|
1499
|
+
/**
|
|
1500
|
+
* The transaction type.
|
|
1501
|
+
*/
|
|
1502
|
+
txType: number;
|
|
1503
|
+
/**
|
|
1504
|
+
* The gas limit set for the transaction.
|
|
1505
|
+
*/
|
|
1506
|
+
gasLimit: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* The amount of gas used.
|
|
1509
|
+
*/
|
|
1510
|
+
gasUsed: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1513
|
+
*/
|
|
1514
|
+
gasPrice: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* The nonce used by the sender of the transaction.
|
|
1517
|
+
*/
|
|
1518
|
+
nonce: string;
|
|
1519
|
+
from: RichAddress;
|
|
1520
|
+
to: RichAddress;
|
|
1521
|
+
method?: Method;
|
|
1522
|
+
value: string;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
type ListNativeTransactionsResponse = {
|
|
1526
|
+
/**
|
|
1527
|
+
* 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.
|
|
1528
|
+
*/
|
|
1529
|
+
nextPageToken?: string;
|
|
1530
|
+
transactions: Array<NativeTransaction>;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
declare enum TransactionStatus {
|
|
1534
|
+
FAILED = "failed",
|
|
1535
|
+
SUCCESS = "success"
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
declare class EvmChainsService {
|
|
1539
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1540
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1541
|
+
/**
|
|
1542
|
+
* List all chains associated with a given address
|
|
1543
|
+
* 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.
|
|
1544
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1545
|
+
* @throws ApiError
|
|
1546
|
+
*/
|
|
1547
|
+
listAddressChains({ address, }: {
|
|
1548
|
+
/**
|
|
1549
|
+
* A wallet address.
|
|
1550
|
+
*/
|
|
1551
|
+
address: string;
|
|
1552
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1553
|
+
/**
|
|
1554
|
+
* List chains
|
|
1555
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1556
|
+
* @returns ListChainsResponse Successful response
|
|
1557
|
+
* @throws ApiError
|
|
1558
|
+
*/
|
|
1559
|
+
supportedChains({ network, feature, }: {
|
|
1560
|
+
/**
|
|
1561
|
+
* Either mainnet or testnet/fuji.
|
|
1562
|
+
*/
|
|
1563
|
+
network?: Network;
|
|
1564
|
+
/**
|
|
1565
|
+
* Filter by feature.
|
|
1566
|
+
*/
|
|
1567
|
+
feature?: ApiFeature;
|
|
1568
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Get chain information
|
|
1571
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1572
|
+
* @returns GetChainResponse Successful response
|
|
1573
|
+
* @throws ApiError
|
|
1574
|
+
*/
|
|
1575
|
+
getChainInfo({ chainId, }: {
|
|
1160
1576
|
/**
|
|
1161
1577
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1162
1578
|
*/
|
|
1163
1579
|
chainId: string;
|
|
1164
1580
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
1581
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* Gets
|
|
1168
|
-
*
|
|
1582
|
+
* @deprecated
|
|
1583
|
+
* **[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.
|
|
1584
|
+
*
|
|
1585
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1586
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1169
1587
|
* @throws ApiError
|
|
1170
1588
|
*/
|
|
1171
1589
|
getAddressChains({ address, }: {
|
|
@@ -1173,7 +1591,55 @@ declare class EvmChainsService {
|
|
|
1173
1591
|
* A wallet address.
|
|
1174
1592
|
*/
|
|
1175
1593
|
address: string;
|
|
1176
|
-
}): CancelablePromise<
|
|
1594
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1595
|
+
/**
|
|
1596
|
+
* @deprecated
|
|
1597
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1598
|
+
*
|
|
1599
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1600
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1601
|
+
* @throws ApiError
|
|
1602
|
+
*/
|
|
1603
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1604
|
+
/**
|
|
1605
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1606
|
+
*/
|
|
1607
|
+
pageToken?: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1610
|
+
*/
|
|
1611
|
+
pageSize?: number;
|
|
1612
|
+
/**
|
|
1613
|
+
* Either mainnet or testnet/fuji.
|
|
1614
|
+
*/
|
|
1615
|
+
network?: Network;
|
|
1616
|
+
/**
|
|
1617
|
+
* A status filter for listed transactions.
|
|
1618
|
+
*/
|
|
1619
|
+
status?: TransactionStatus;
|
|
1620
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1621
|
+
/**
|
|
1622
|
+
* @deprecated
|
|
1623
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1624
|
+
*
|
|
1625
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1626
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1627
|
+
* @throws ApiError
|
|
1628
|
+
*/
|
|
1629
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1630
|
+
/**
|
|
1631
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1632
|
+
*/
|
|
1633
|
+
pageToken?: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1636
|
+
*/
|
|
1637
|
+
pageSize?: number;
|
|
1638
|
+
/**
|
|
1639
|
+
* Either mainnet or testnet/fuji.
|
|
1640
|
+
*/
|
|
1641
|
+
network?: Network;
|
|
1642
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1177
1643
|
}
|
|
1178
1644
|
|
|
1179
1645
|
type ImageAsset = {
|
|
@@ -1345,7 +1811,7 @@ type Erc1155Contract = {
|
|
|
1345
1811
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1346
1812
|
*/
|
|
1347
1813
|
address: string;
|
|
1348
|
-
deploymentDetails
|
|
1814
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1349
1815
|
ercType: Erc1155Contract.ercType;
|
|
1350
1816
|
/**
|
|
1351
1817
|
* The contract symbol.
|
|
@@ -1376,7 +1842,7 @@ type Erc20Contract = {
|
|
|
1376
1842
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1377
1843
|
*/
|
|
1378
1844
|
address: string;
|
|
1379
|
-
deploymentDetails
|
|
1845
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1380
1846
|
ercType: Erc20Contract.ercType;
|
|
1381
1847
|
/**
|
|
1382
1848
|
* The contract symbol.
|
|
@@ -1411,7 +1877,7 @@ type Erc721Contract = {
|
|
|
1411
1877
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1412
1878
|
*/
|
|
1413
1879
|
address: string;
|
|
1414
|
-
deploymentDetails
|
|
1880
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1415
1881
|
ercType: Erc721Contract.ercType;
|
|
1416
1882
|
/**
|
|
1417
1883
|
* The contract symbol.
|
|
@@ -1441,7 +1907,7 @@ type UnknownContract = {
|
|
|
1441
1907
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1442
1908
|
*/
|
|
1443
1909
|
address: string;
|
|
1444
|
-
deploymentDetails
|
|
1910
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1445
1911
|
ercType: UnknownContract.ercType;
|
|
1446
1912
|
};
|
|
1447
1913
|
declare namespace UnknownContract {
|
|
@@ -1508,29 +1974,6 @@ declare namespace Erc1155Token {
|
|
|
1508
1974
|
}
|
|
1509
1975
|
}
|
|
1510
1976
|
|
|
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
1977
|
type Erc1155TransferDetails = {
|
|
1535
1978
|
from: RichAddress;
|
|
1536
1979
|
to: RichAddress;
|
|
@@ -1615,40 +2058,31 @@ type Erc721TransferDetails = {
|
|
|
1615
2058
|
erc721Token: Erc721Token;
|
|
1616
2059
|
};
|
|
1617
2060
|
|
|
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
2061
|
type FullNativeTransactionDetails = {
|
|
1640
2062
|
/**
|
|
1641
2063
|
* The block number on the chain.
|
|
1642
2064
|
*/
|
|
1643
2065
|
blockNumber: string;
|
|
1644
2066
|
/**
|
|
1645
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
1646
2068
|
*/
|
|
1647
2069
|
blockTimestamp: number;
|
|
2070
|
+
/**
|
|
2071
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2072
|
+
*/
|
|
2073
|
+
blockTimestampMilliseconds?: number;
|
|
2074
|
+
/**
|
|
2075
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
2076
|
+
*/
|
|
2077
|
+
blockMinDelayExcess?: number;
|
|
1648
2078
|
/**
|
|
1649
2079
|
* The block hash identifier.
|
|
1650
2080
|
*/
|
|
1651
2081
|
blockHash: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The EVM chain ID on which the transaction occured.
|
|
2084
|
+
*/
|
|
2085
|
+
chainId: string;
|
|
1652
2086
|
/**
|
|
1653
2087
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1654
2088
|
*/
|
|
@@ -1699,6 +2133,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1699
2133
|
CALL = "CALL",
|
|
1700
2134
|
CREATE = "CREATE",
|
|
1701
2135
|
CREATE2 = "CREATE2",
|
|
2136
|
+
CREATE3 = "CREATE3",
|
|
1702
2137
|
CALLCODE = "CALLCODE",
|
|
1703
2138
|
DELEGATECALL = "DELEGATECALL",
|
|
1704
2139
|
STATICCALL = "STATICCALL"
|
|
@@ -1740,11 +2175,11 @@ type TeleporterMessageInfo = {
|
|
|
1740
2175
|
/**
|
|
1741
2176
|
* chain id of the source chain. valid only for destination transactions
|
|
1742
2177
|
*/
|
|
1743
|
-
sourceChainId?:
|
|
2178
|
+
sourceChainId?: string;
|
|
1744
2179
|
/**
|
|
1745
2180
|
* chain id of the destination chain. valid only for source transactions
|
|
1746
2181
|
*/
|
|
1747
|
-
destinationChainId?:
|
|
2182
|
+
destinationChainId?: string;
|
|
1748
2183
|
};
|
|
1749
2184
|
|
|
1750
2185
|
type GetTransactionResponse = {
|
|
@@ -1761,7 +2196,7 @@ type GetTransactionResponse = {
|
|
|
1761
2196
|
*/
|
|
1762
2197
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1763
2198
|
/**
|
|
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
|
|
2199
|
+
* 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
2200
|
*/
|
|
1766
2201
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1767
2202
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1786,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
1786
2221
|
*/
|
|
1787
2222
|
blockNumber: string;
|
|
1788
2223
|
/**
|
|
1789
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
1790
2225
|
*/
|
|
1791
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
1792
2231
|
/**
|
|
1793
2232
|
* The block hash identifier.
|
|
1794
2233
|
*/
|
|
@@ -1818,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
1818
2257
|
*/
|
|
1819
2258
|
blockNumber: string;
|
|
1820
2259
|
/**
|
|
1821
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
1822
2261
|
*/
|
|
1823
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
1824
2267
|
/**
|
|
1825
2268
|
* The block hash identifier.
|
|
1826
2269
|
*/
|
|
@@ -1850,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
1850
2293
|
*/
|
|
1851
2294
|
blockNumber: string;
|
|
1852
2295
|
/**
|
|
1853
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
1854
2297
|
*/
|
|
1855
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
1856
2303
|
/**
|
|
1857
2304
|
* The block hash identifier.
|
|
1858
2305
|
*/
|
|
@@ -1881,9 +2328,13 @@ type InternalTransaction = {
|
|
|
1881
2328
|
*/
|
|
1882
2329
|
blockNumber: string;
|
|
1883
2330
|
/**
|
|
1884
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
1885
2332
|
*/
|
|
1886
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
1887
2338
|
/**
|
|
1888
2339
|
* The block hash identifier.
|
|
1889
2340
|
*/
|
|
@@ -1912,66 +2363,90 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2363
|
transactions: Array<InternalTransaction>;
|
|
1913
2364
|
};
|
|
1914
2365
|
|
|
1915
|
-
type
|
|
2366
|
+
type TransactionDetails = {
|
|
1916
2367
|
/**
|
|
1917
|
-
* The
|
|
2368
|
+
* The native (top-level) transaction details.
|
|
1918
2369
|
*/
|
|
1919
|
-
|
|
2370
|
+
nativeTransaction: NativeTransaction;
|
|
1920
2371
|
/**
|
|
1921
|
-
* The
|
|
2372
|
+
* The list of ERC-20 transfers.
|
|
1922
2373
|
*/
|
|
1923
|
-
|
|
2374
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1924
2375
|
/**
|
|
1925
|
-
* The
|
|
2376
|
+
* The list of ERC-721 transfers.
|
|
1926
2377
|
*/
|
|
1927
|
-
|
|
2378
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1928
2379
|
/**
|
|
1929
|
-
* The
|
|
2380
|
+
* The list of ERC-1155 transfers.
|
|
1930
2381
|
*/
|
|
1931
|
-
|
|
2382
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1932
2383
|
/**
|
|
1933
|
-
* The
|
|
2384
|
+
* 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
2385
|
*/
|
|
1935
|
-
|
|
2386
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
type ListTransactionDetailsResponse = {
|
|
1936
2390
|
/**
|
|
1937
|
-
*
|
|
2391
|
+
* 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
2392
|
*/
|
|
1939
|
-
|
|
2393
|
+
nextPageToken?: string;
|
|
2394
|
+
transactions: Array<TransactionDetails>;
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
type Erc20TokenV2 = {
|
|
1940
2398
|
/**
|
|
1941
|
-
*
|
|
2399
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1942
2400
|
*/
|
|
1943
|
-
|
|
2401
|
+
address: string;
|
|
1944
2402
|
/**
|
|
1945
|
-
* The
|
|
2403
|
+
* The contract name.
|
|
1946
2404
|
*/
|
|
1947
|
-
|
|
2405
|
+
name: string;
|
|
1948
2406
|
/**
|
|
1949
|
-
* The
|
|
2407
|
+
* The contract symbol.
|
|
1950
2408
|
*/
|
|
1951
|
-
|
|
2409
|
+
symbol: string;
|
|
1952
2410
|
/**
|
|
1953
|
-
* The
|
|
2411
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1954
2412
|
*/
|
|
1955
|
-
|
|
2413
|
+
decimals: number;
|
|
1956
2414
|
/**
|
|
1957
|
-
* The
|
|
2415
|
+
* The logo uri for the address.
|
|
1958
2416
|
*/
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
2417
|
+
logoUri?: string;
|
|
2418
|
+
ercType: Erc20TokenV2.ercType;
|
|
2419
|
+
/**
|
|
2420
|
+
* The token price, if available.
|
|
2421
|
+
*/
|
|
2422
|
+
price?: Money;
|
|
2423
|
+
/**
|
|
2424
|
+
* 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.
|
|
2425
|
+
*/
|
|
2426
|
+
tokenReputation: Erc20TokenV2.tokenReputation;
|
|
1964
2427
|
};
|
|
1965
|
-
|
|
1966
|
-
|
|
2428
|
+
declare namespace Erc20TokenV2 {
|
|
2429
|
+
enum ercType {
|
|
2430
|
+
ERC_20 = "ERC-20"
|
|
2431
|
+
}
|
|
1967
2432
|
/**
|
|
1968
|
-
*
|
|
2433
|
+
* 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
2434
|
*/
|
|
1970
|
-
|
|
1971
|
-
|
|
2435
|
+
enum tokenReputation {
|
|
2436
|
+
MALICIOUS = "Malicious",
|
|
2437
|
+
BENIGN = "Benign"
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
type Erc20TransferDetailsV2 = {
|
|
2442
|
+
from: RichAddress;
|
|
2443
|
+
to: RichAddress;
|
|
2444
|
+
logIndex: number;
|
|
2445
|
+
value: string;
|
|
2446
|
+
erc20Token: Erc20TokenV2;
|
|
1972
2447
|
};
|
|
1973
2448
|
|
|
1974
|
-
type
|
|
2449
|
+
type TransactionDetailsV2 = {
|
|
1975
2450
|
/**
|
|
1976
2451
|
* The native (top-level) transaction details.
|
|
1977
2452
|
*/
|
|
@@ -1979,7 +2454,7 @@ type TransactionDetails = {
|
|
|
1979
2454
|
/**
|
|
1980
2455
|
* The list of ERC-20 transfers.
|
|
1981
2456
|
*/
|
|
1982
|
-
erc20Transfers?: Array<
|
|
2457
|
+
erc20Transfers?: Array<Erc20TransferDetailsV2>;
|
|
1983
2458
|
/**
|
|
1984
2459
|
* The list of ERC-721 transfers.
|
|
1985
2460
|
*/
|
|
@@ -1989,17 +2464,17 @@ type TransactionDetails = {
|
|
|
1989
2464
|
*/
|
|
1990
2465
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1991
2466
|
/**
|
|
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
|
|
2467
|
+
* 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
2468
|
*/
|
|
1994
2469
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1995
2470
|
};
|
|
1996
2471
|
|
|
1997
|
-
type
|
|
2472
|
+
type ListTransactionDetailsResponseV2 = {
|
|
1998
2473
|
/**
|
|
1999
2474
|
* 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
2475
|
*/
|
|
2001
2476
|
nextPageToken?: string;
|
|
2002
|
-
transactions: Array<
|
|
2477
|
+
transactions: Array<TransactionDetailsV2>;
|
|
2003
2478
|
};
|
|
2004
2479
|
|
|
2005
2480
|
type ListTransfersResponse = {
|
|
@@ -2015,14 +2490,33 @@ declare enum SortOrder {
|
|
|
2015
2490
|
DESC = "desc"
|
|
2016
2491
|
}
|
|
2017
2492
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2493
|
declare class EvmTransactionsService {
|
|
2024
2494
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
2495
|
constructor(httpRequest: BaseHttpRequest);
|
|
2496
|
+
/**
|
|
2497
|
+
* List the latest transactions across all supported EVM chains
|
|
2498
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2499
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2500
|
+
* @throws ApiError
|
|
2501
|
+
*/
|
|
2502
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2503
|
+
/**
|
|
2504
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2505
|
+
*/
|
|
2506
|
+
pageToken?: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2509
|
+
*/
|
|
2510
|
+
pageSize?: number;
|
|
2511
|
+
/**
|
|
2512
|
+
* Either mainnet or testnet/fuji.
|
|
2513
|
+
*/
|
|
2514
|
+
network?: Network;
|
|
2515
|
+
/**
|
|
2516
|
+
* A status filter for listed transactions.
|
|
2517
|
+
*/
|
|
2518
|
+
status?: TransactionStatus;
|
|
2519
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2026
2520
|
/**
|
|
2027
2521
|
* Get deployment transaction
|
|
2028
2522
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2137,6 +2631,45 @@ declare class EvmTransactionsService {
|
|
|
2137
2631
|
*/
|
|
2138
2632
|
sortOrder?: SortOrder;
|
|
2139
2633
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
2634
|
+
/**
|
|
2635
|
+
* List transactions v2
|
|
2636
|
+
* 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.
|
|
2637
|
+
*
|
|
2638
|
+
* Filterable by block ranges.
|
|
2639
|
+
* @returns ListTransactionDetailsResponseV2 Successful response
|
|
2640
|
+
* @throws ApiError
|
|
2641
|
+
*/
|
|
2642
|
+
listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
|
|
2643
|
+
/**
|
|
2644
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
+
*/
|
|
2646
|
+
chainId: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* A wallet address.
|
|
2649
|
+
*/
|
|
2650
|
+
address: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
|
+
*/
|
|
2654
|
+
pageToken?: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
+
*/
|
|
2658
|
+
pageSize?: number;
|
|
2659
|
+
/**
|
|
2660
|
+
* 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.
|
|
2661
|
+
*/
|
|
2662
|
+
startBlock?: number;
|
|
2663
|
+
/**
|
|
2664
|
+
* 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.
|
|
2665
|
+
*/
|
|
2666
|
+
endBlock?: number;
|
|
2667
|
+
filterSpamTokens?: boolean;
|
|
2668
|
+
/**
|
|
2669
|
+
* 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.
|
|
2670
|
+
*/
|
|
2671
|
+
sortOrder?: SortOrder;
|
|
2672
|
+
}): CancelablePromise<ListTransactionDetailsResponseV2>;
|
|
2140
2673
|
/**
|
|
2141
2674
|
* List native transactions
|
|
2142
2675
|
* Lists native transactions for an address. Filterable by block range.
|
|
@@ -2269,7 +2802,7 @@ declare class EvmTransactionsService {
|
|
|
2269
2802
|
* List internal transactions
|
|
2270
2803
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
2804
|
*
|
|
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.
|
|
2805
|
+
* 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
2806
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
2807
|
* @throws ApiError
|
|
2275
2808
|
*/
|
|
@@ -2321,7 +2854,7 @@ declare class EvmTransactionsService {
|
|
|
2321
2854
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2855
|
* @throws ApiError
|
|
2323
2856
|
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2857
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2325
2858
|
/**
|
|
2326
2859
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2327
2860
|
*/
|
|
@@ -2330,6 +2863,14 @@ declare class EvmTransactionsService {
|
|
|
2330
2863
|
* A block identifier which is either a block number or the block hash.
|
|
2331
2864
|
*/
|
|
2332
2865
|
blockId: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2868
|
+
*/
|
|
2869
|
+
pageToken?: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2872
|
+
*/
|
|
2873
|
+
pageSize?: number;
|
|
2333
2874
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2334
2875
|
/**
|
|
2335
2876
|
* List latest transactions
|
|
@@ -2357,149 +2898,499 @@ declare class EvmTransactionsService {
|
|
|
2357
2898
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2358
2899
|
}
|
|
2359
2900
|
|
|
2360
|
-
|
|
2361
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2362
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2901
|
+
type HealthIndicatorResultDto = {
|
|
2363
2902
|
/**
|
|
2364
|
-
*
|
|
2365
|
-
* @returns any The Health Check is successful
|
|
2366
|
-
* @throws ApiError
|
|
2903
|
+
* Status of the health indicator.
|
|
2367
2904
|
*/
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2372
|
-
details?: Record<string, Record<string, string>>;
|
|
2373
|
-
}>;
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
type ListNftTokens = {
|
|
2905
|
+
status?: HealthIndicatorResultDto.status;
|
|
2906
|
+
};
|
|
2907
|
+
declare namespace HealthIndicatorResultDto {
|
|
2377
2908
|
/**
|
|
2378
|
-
*
|
|
2909
|
+
* Status of the health indicator.
|
|
2379
2910
|
*/
|
|
2380
|
-
|
|
2381
|
-
|
|
2911
|
+
enum status {
|
|
2912
|
+
UP = "up",
|
|
2913
|
+
DOWN = "down"
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
type HealthCheckResultDto = {
|
|
2918
|
+
status?: HealthCheckResultDto.status;
|
|
2919
|
+
info?: any | null;
|
|
2920
|
+
error?: any | null;
|
|
2921
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2382
2922
|
};
|
|
2923
|
+
declare namespace HealthCheckResultDto {
|
|
2924
|
+
enum status {
|
|
2925
|
+
ERROR = "error",
|
|
2926
|
+
OK = "ok",
|
|
2927
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2383
2930
|
|
|
2384
|
-
declare class
|
|
2931
|
+
declare class HealthCheckService {
|
|
2385
2932
|
readonly httpRequest: BaseHttpRequest;
|
|
2386
2933
|
constructor(httpRequest: BaseHttpRequest);
|
|
2387
2934
|
/**
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2390
|
-
* @returns
|
|
2391
|
-
* @throws ApiError
|
|
2392
|
-
*/
|
|
2393
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
2394
|
-
/**
|
|
2395
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2396
|
-
*/
|
|
2397
|
-
chainId: string;
|
|
2398
|
-
/**
|
|
2399
|
-
* Contract address on the relevant chain.
|
|
2400
|
-
*/
|
|
2401
|
-
address: string;
|
|
2402
|
-
/**
|
|
2403
|
-
* TokenId on the contract
|
|
2404
|
-
*/
|
|
2405
|
-
tokenId: string;
|
|
2406
|
-
}): CancelablePromise<any>;
|
|
2407
|
-
/**
|
|
2408
|
-
* List tokens
|
|
2409
|
-
* Lists tokens for an NFT contract.
|
|
2410
|
-
* @returns ListNftTokens Successful response
|
|
2935
|
+
* Get the health of the service
|
|
2936
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2937
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2411
2938
|
* @throws ApiError
|
|
2412
2939
|
*/
|
|
2413
|
-
|
|
2414
|
-
/**
|
|
2415
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2416
|
-
*/
|
|
2417
|
-
chainId: string;
|
|
2418
|
-
/**
|
|
2419
|
-
* Contract address on the relevant chain.
|
|
2420
|
-
*/
|
|
2421
|
-
address: string;
|
|
2422
|
-
/**
|
|
2423
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2424
|
-
*/
|
|
2425
|
-
pageToken?: string;
|
|
2426
|
-
/**
|
|
2427
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2428
|
-
*/
|
|
2429
|
-
pageSize?: number;
|
|
2430
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2940
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2431
2941
|
/**
|
|
2432
|
-
* Get
|
|
2433
|
-
*
|
|
2434
|
-
* @returns
|
|
2942
|
+
* Get the liveliness of the service (reads only)
|
|
2943
|
+
* Check the liveliness of the service (reads only).
|
|
2944
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2435
2945
|
* @throws ApiError
|
|
2436
2946
|
*/
|
|
2437
|
-
|
|
2438
|
-
/**
|
|
2439
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2440
|
-
*/
|
|
2441
|
-
chainId: string;
|
|
2442
|
-
/**
|
|
2443
|
-
* Contract address on the relevant chain.
|
|
2444
|
-
*/
|
|
2445
|
-
address: string;
|
|
2446
|
-
/**
|
|
2447
|
-
* TokenId on the contract
|
|
2448
|
-
*/
|
|
2449
|
-
tokenId: string;
|
|
2450
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2947
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2451
2948
|
}
|
|
2452
2949
|
|
|
2453
|
-
type
|
|
2454
|
-
|
|
2455
|
-
|
|
2950
|
+
type IcmDestinationTransaction = {
|
|
2951
|
+
txHash: string;
|
|
2952
|
+
timestamp: number;
|
|
2953
|
+
gasSpent: string;
|
|
2954
|
+
rewardRedeemer: string;
|
|
2955
|
+
delivererAddress: string;
|
|
2456
2956
|
};
|
|
2457
2957
|
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2958
|
+
type IcmReceipt = {
|
|
2959
|
+
receivedMessageNonce: string;
|
|
2960
|
+
relayerRewardAddress: string;
|
|
2961
|
+
};
|
|
2461
2962
|
|
|
2462
|
-
type
|
|
2463
|
-
type: EVMOperationType;
|
|
2464
|
-
firstDate?: string;
|
|
2465
|
-
lastDate?: string;
|
|
2963
|
+
type IcmRewardDetails = {
|
|
2466
2964
|
/**
|
|
2467
|
-
*
|
|
2965
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2468
2966
|
*/
|
|
2469
|
-
|
|
2967
|
+
address: string;
|
|
2470
2968
|
/**
|
|
2471
|
-
*
|
|
2969
|
+
* The contract name.
|
|
2472
2970
|
*/
|
|
2473
|
-
|
|
2474
|
-
options: EvmNetworkOptions;
|
|
2475
|
-
};
|
|
2476
|
-
|
|
2477
|
-
declare enum PrimaryNetworkOperationType {
|
|
2478
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2479
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2480
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
type PrimaryNetworkOptions = {
|
|
2484
|
-
addresses?: Array<string>;
|
|
2485
|
-
cChainEvmAddresses?: Array<string>;
|
|
2486
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2487
|
-
};
|
|
2488
|
-
|
|
2489
|
-
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2490
|
-
type: PrimaryNetworkOperationType;
|
|
2491
|
-
firstDate?: string;
|
|
2492
|
-
lastDate?: string;
|
|
2971
|
+
name: string;
|
|
2493
2972
|
/**
|
|
2494
|
-
*
|
|
2973
|
+
* The contract symbol.
|
|
2495
2974
|
*/
|
|
2496
|
-
|
|
2975
|
+
symbol: string;
|
|
2497
2976
|
/**
|
|
2498
|
-
*
|
|
2977
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2499
2978
|
*/
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2979
|
+
decimals: number;
|
|
2980
|
+
/**
|
|
2981
|
+
* The logo uri for the address.
|
|
2982
|
+
*/
|
|
2983
|
+
logoUri?: string;
|
|
2984
|
+
ercType: IcmRewardDetails.ercType;
|
|
2985
|
+
/**
|
|
2986
|
+
* The token price, if available.
|
|
2987
|
+
*/
|
|
2988
|
+
price?: Money;
|
|
2989
|
+
value: string;
|
|
2990
|
+
};
|
|
2991
|
+
declare namespace IcmRewardDetails {
|
|
2992
|
+
enum ercType {
|
|
2993
|
+
ERC_20 = "ERC-20"
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
type IcmSourceTransaction = {
|
|
2998
|
+
txHash: string;
|
|
2999
|
+
timestamp: number;
|
|
3000
|
+
gasSpent: string;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
type DeliveredIcmMessage = {
|
|
3004
|
+
messageId: string;
|
|
3005
|
+
icmContractAddress: string;
|
|
3006
|
+
sourceBlockchainId: string;
|
|
3007
|
+
destinationBlockchainId: string;
|
|
3008
|
+
sourceEvmChainId: string;
|
|
3009
|
+
destinationEvmChainId: string;
|
|
3010
|
+
messageNonce: string;
|
|
3011
|
+
from: string;
|
|
3012
|
+
to: string;
|
|
3013
|
+
data?: string;
|
|
3014
|
+
messageExecuted: boolean;
|
|
3015
|
+
receipts: Array<IcmReceipt>;
|
|
3016
|
+
receiptDelivered: boolean;
|
|
3017
|
+
rewardDetails: IcmRewardDetails;
|
|
3018
|
+
sourceTransaction: IcmSourceTransaction;
|
|
3019
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
3020
|
+
status: DeliveredIcmMessage.status;
|
|
3021
|
+
};
|
|
3022
|
+
declare namespace DeliveredIcmMessage {
|
|
3023
|
+
enum status {
|
|
3024
|
+
DELIVERED = "delivered"
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
3029
|
+
messageId: string;
|
|
3030
|
+
icmContractAddress: string;
|
|
3031
|
+
sourceBlockchainId: string;
|
|
3032
|
+
destinationBlockchainId: string;
|
|
3033
|
+
sourceEvmChainId: string;
|
|
3034
|
+
destinationEvmChainId: string;
|
|
3035
|
+
messageNonce: string;
|
|
3036
|
+
from: string;
|
|
3037
|
+
to: string;
|
|
3038
|
+
data?: string;
|
|
3039
|
+
messageExecuted: boolean;
|
|
3040
|
+
receipts: Array<IcmReceipt>;
|
|
3041
|
+
receiptDelivered: boolean;
|
|
3042
|
+
rewardDetails: IcmRewardDetails;
|
|
3043
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
3044
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
3045
|
+
};
|
|
3046
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
3047
|
+
enum status {
|
|
3048
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
type PendingIcmMessage = {
|
|
3053
|
+
messageId: string;
|
|
3054
|
+
icmContractAddress: string;
|
|
3055
|
+
sourceBlockchainId: string;
|
|
3056
|
+
destinationBlockchainId: string;
|
|
3057
|
+
sourceEvmChainId: string;
|
|
3058
|
+
destinationEvmChainId: string;
|
|
3059
|
+
messageNonce: string;
|
|
3060
|
+
from: string;
|
|
3061
|
+
to: string;
|
|
3062
|
+
data?: string;
|
|
3063
|
+
messageExecuted: boolean;
|
|
3064
|
+
receipts: Array<IcmReceipt>;
|
|
3065
|
+
receiptDelivered: boolean;
|
|
3066
|
+
rewardDetails: IcmRewardDetails;
|
|
3067
|
+
sourceTransaction: IcmSourceTransaction;
|
|
3068
|
+
status: PendingIcmMessage.status;
|
|
3069
|
+
};
|
|
3070
|
+
declare namespace PendingIcmMessage {
|
|
3071
|
+
enum status {
|
|
3072
|
+
PENDING = "pending"
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
type ListIcmMessagesResponse = {
|
|
3077
|
+
/**
|
|
3078
|
+
* 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.
|
|
3079
|
+
*/
|
|
3080
|
+
nextPageToken?: string;
|
|
3081
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
declare class InterchainMessagingService {
|
|
3085
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3086
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3087
|
+
/**
|
|
3088
|
+
* Get an ICM message
|
|
3089
|
+
* Gets an ICM message by teleporter message ID.
|
|
3090
|
+
* @returns any Successful response
|
|
3091
|
+
* @throws ApiError
|
|
3092
|
+
*/
|
|
3093
|
+
getIcmMessage({ messageId, }: {
|
|
3094
|
+
/**
|
|
3095
|
+
* The teleporter message ID of the ICM message.
|
|
3096
|
+
*/
|
|
3097
|
+
messageId: string;
|
|
3098
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
3099
|
+
/**
|
|
3100
|
+
* List ICM messages
|
|
3101
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
3102
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3103
|
+
* @throws ApiError
|
|
3104
|
+
*/
|
|
3105
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
3106
|
+
/**
|
|
3107
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3108
|
+
*/
|
|
3109
|
+
pageToken?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3112
|
+
*/
|
|
3113
|
+
pageSize?: number;
|
|
3114
|
+
/**
|
|
3115
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
3116
|
+
*/
|
|
3117
|
+
sourceBlockchainId?: string;
|
|
3118
|
+
/**
|
|
3119
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
3120
|
+
*/
|
|
3121
|
+
destinationBlockchainId?: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
3124
|
+
*/
|
|
3125
|
+
blockchainId?: string;
|
|
3126
|
+
/**
|
|
3127
|
+
* The address of the recipient of the ICM message.
|
|
3128
|
+
*/
|
|
3129
|
+
to?: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* The address of the sender of the ICM message.
|
|
3132
|
+
*/
|
|
3133
|
+
from?: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* Either mainnet or testnet/fuji.
|
|
3136
|
+
*/
|
|
3137
|
+
network?: Network;
|
|
3138
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3139
|
+
/**
|
|
3140
|
+
* List ICM messages by address
|
|
3141
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3142
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3143
|
+
* @throws ApiError
|
|
3144
|
+
*/
|
|
3145
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
3146
|
+
/**
|
|
3147
|
+
* An EVM address.
|
|
3148
|
+
*/
|
|
3149
|
+
address: string;
|
|
3150
|
+
/**
|
|
3151
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3152
|
+
*/
|
|
3153
|
+
pageToken?: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3156
|
+
*/
|
|
3157
|
+
pageSize?: number;
|
|
3158
|
+
/**
|
|
3159
|
+
* Either mainnet or testnet/fuji.
|
|
3160
|
+
*/
|
|
3161
|
+
network?: Network;
|
|
3162
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
type ListNftTokens = {
|
|
3166
|
+
/**
|
|
3167
|
+
* 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.
|
|
3168
|
+
*/
|
|
3169
|
+
nextPageToken?: string;
|
|
3170
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3171
|
+
};
|
|
3172
|
+
|
|
3173
|
+
declare class NfTsService {
|
|
3174
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3175
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3176
|
+
/**
|
|
3177
|
+
* Reindex NFT metadata
|
|
3178
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3179
|
+
* @returns any Successful response
|
|
3180
|
+
* @throws ApiError
|
|
3181
|
+
*/
|
|
3182
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3183
|
+
/**
|
|
3184
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3185
|
+
*/
|
|
3186
|
+
chainId: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* Contract address on the relevant chain.
|
|
3189
|
+
*/
|
|
3190
|
+
address: string;
|
|
3191
|
+
/**
|
|
3192
|
+
* TokenId on the contract
|
|
3193
|
+
*/
|
|
3194
|
+
tokenId: string;
|
|
3195
|
+
}): CancelablePromise<any>;
|
|
3196
|
+
/**
|
|
3197
|
+
* List tokens
|
|
3198
|
+
* Lists tokens for an NFT contract.
|
|
3199
|
+
* @returns ListNftTokens Successful response
|
|
3200
|
+
* @throws ApiError
|
|
3201
|
+
*/
|
|
3202
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3203
|
+
/**
|
|
3204
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3205
|
+
*/
|
|
3206
|
+
chainId: string;
|
|
3207
|
+
/**
|
|
3208
|
+
* Contract address on the relevant chain.
|
|
3209
|
+
*/
|
|
3210
|
+
address: string;
|
|
3211
|
+
/**
|
|
3212
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3213
|
+
*/
|
|
3214
|
+
pageToken?: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3217
|
+
*/
|
|
3218
|
+
pageSize?: number;
|
|
3219
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3220
|
+
/**
|
|
3221
|
+
* Get token details
|
|
3222
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3223
|
+
* @returns any Successful response
|
|
3224
|
+
* @throws ApiError
|
|
3225
|
+
*/
|
|
3226
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3227
|
+
/**
|
|
3228
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3229
|
+
*/
|
|
3230
|
+
chainId: string;
|
|
3231
|
+
/**
|
|
3232
|
+
* Contract address on the relevant chain.
|
|
3233
|
+
*/
|
|
3234
|
+
address: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* TokenId on the contract
|
|
3237
|
+
*/
|
|
3238
|
+
tokenId: string;
|
|
3239
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
type AccessRequest = {
|
|
3243
|
+
/**
|
|
3244
|
+
* The email address to send the access token to
|
|
3245
|
+
*/
|
|
3246
|
+
email: string;
|
|
3247
|
+
/**
|
|
3248
|
+
* The captcha to verify the user
|
|
3249
|
+
*/
|
|
3250
|
+
captcha: string;
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
type NotificationsResponse = {
|
|
3254
|
+
message: string;
|
|
3255
|
+
};
|
|
3256
|
+
|
|
3257
|
+
type SubscribeRequest = {
|
|
3258
|
+
/**
|
|
3259
|
+
* The access token to use for authentication
|
|
3260
|
+
*/
|
|
3261
|
+
accessToken: string;
|
|
3262
|
+
/**
|
|
3263
|
+
* The node ID to subscribe to
|
|
3264
|
+
*/
|
|
3265
|
+
nodeId: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3268
|
+
*/
|
|
3269
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3270
|
+
};
|
|
3271
|
+
|
|
3272
|
+
type SubscriptionsRequest = {
|
|
3273
|
+
/**
|
|
3274
|
+
* The access token to use for authentication
|
|
3275
|
+
*/
|
|
3276
|
+
accessToken: string;
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
type SubscriptionsResponse = {
|
|
3280
|
+
/**
|
|
3281
|
+
* The email address of the user
|
|
3282
|
+
*/
|
|
3283
|
+
email: string;
|
|
3284
|
+
/**
|
|
3285
|
+
* The subscriptions of the user
|
|
3286
|
+
*/
|
|
3287
|
+
subscriptions: Record<string, {
|
|
3288
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3289
|
+
}>;
|
|
3290
|
+
};
|
|
3291
|
+
|
|
3292
|
+
type UnsubscribeRequest = {
|
|
3293
|
+
/**
|
|
3294
|
+
* The access token to use for authentication
|
|
3295
|
+
*/
|
|
3296
|
+
accessToken: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* The node ID to subscribe to
|
|
3299
|
+
*/
|
|
3300
|
+
nodeId: string;
|
|
3301
|
+
};
|
|
3302
|
+
|
|
3303
|
+
declare class NotificationsService {
|
|
3304
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3305
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3306
|
+
/**
|
|
3307
|
+
* Access Notifications
|
|
3308
|
+
* Access notifications.
|
|
3309
|
+
* @returns NotificationsResponse Successful response
|
|
3310
|
+
* @throws ApiError
|
|
3311
|
+
*/
|
|
3312
|
+
access({ requestBody, }: {
|
|
3313
|
+
requestBody: AccessRequest;
|
|
3314
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3315
|
+
/**
|
|
3316
|
+
* Subscribe to Notifications
|
|
3317
|
+
* Subscribe to receive notifications.
|
|
3318
|
+
* @returns NotificationsResponse Successful response
|
|
3319
|
+
* @throws ApiError
|
|
3320
|
+
*/
|
|
3321
|
+
subscribe({ requestBody, }: {
|
|
3322
|
+
requestBody: SubscribeRequest;
|
|
3323
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3324
|
+
/**
|
|
3325
|
+
* Unsubscribe from Notifications
|
|
3326
|
+
* Unsubscribe from receiving notifications.
|
|
3327
|
+
* @returns NotificationsResponse Successful response
|
|
3328
|
+
* @throws ApiError
|
|
3329
|
+
*/
|
|
3330
|
+
unsubscribe({ requestBody, }: {
|
|
3331
|
+
requestBody: UnsubscribeRequest;
|
|
3332
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3333
|
+
/**
|
|
3334
|
+
* Get Subscriptions
|
|
3335
|
+
* Get subscriptions.
|
|
3336
|
+
* @returns SubscriptionsResponse Successful response
|
|
3337
|
+
* @throws ApiError
|
|
3338
|
+
*/
|
|
3339
|
+
subscriptions({ requestBody, }: {
|
|
3340
|
+
requestBody: SubscriptionsRequest;
|
|
3341
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
type EvmNetworkOptions = {
|
|
3345
|
+
addresses: Array<string>;
|
|
3346
|
+
includeChains: Array<string>;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
declare enum EVMOperationType {
|
|
3350
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
type CreateEvmTransactionExportRequest = {
|
|
3354
|
+
type: EVMOperationType;
|
|
3355
|
+
firstDate?: string;
|
|
3356
|
+
lastDate?: string;
|
|
3357
|
+
/**
|
|
3358
|
+
* @deprecated
|
|
3359
|
+
*/
|
|
3360
|
+
startDate?: string;
|
|
3361
|
+
/**
|
|
3362
|
+
* @deprecated
|
|
3363
|
+
*/
|
|
3364
|
+
endDate?: string;
|
|
3365
|
+
options: EvmNetworkOptions;
|
|
3366
|
+
};
|
|
3367
|
+
|
|
3368
|
+
declare enum PrimaryNetworkOperationType {
|
|
3369
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3370
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
3371
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3374
|
+
type PrimaryNetworkOptions = {
|
|
3375
|
+
addresses?: Array<string>;
|
|
3376
|
+
cChainEvmAddresses?: Array<string>;
|
|
3377
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
3381
|
+
type: PrimaryNetworkOperationType;
|
|
3382
|
+
firstDate?: string;
|
|
3383
|
+
lastDate?: string;
|
|
3384
|
+
/**
|
|
3385
|
+
* @deprecated
|
|
3386
|
+
*/
|
|
3387
|
+
startDate?: string;
|
|
3388
|
+
/**
|
|
3389
|
+
* @deprecated
|
|
3390
|
+
*/
|
|
3391
|
+
endDate?: string;
|
|
3392
|
+
options: PrimaryNetworkOptions;
|
|
3393
|
+
};
|
|
2503
3394
|
|
|
2504
3395
|
declare enum OperationStatus {
|
|
2505
3396
|
RUNNING = "RUNNING",
|
|
@@ -2538,47 +3429,308 @@ type OperationStatusResponse = {
|
|
|
2538
3429
|
operationType: OperationType;
|
|
2539
3430
|
operationStatus: OperationStatus;
|
|
2540
3431
|
message?: string;
|
|
2541
|
-
metadata
|
|
3432
|
+
metadata?: TransactionExportMetadata;
|
|
2542
3433
|
createdAtTimestamp: number;
|
|
2543
3434
|
updatedAtTimestamp: number;
|
|
2544
3435
|
};
|
|
2545
3436
|
|
|
2546
|
-
declare class OperationsService {
|
|
2547
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2548
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
3437
|
+
declare class OperationsService {
|
|
3438
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3439
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3440
|
+
/**
|
|
3441
|
+
* Get operation
|
|
3442
|
+
* Gets operation details for the given operation id.
|
|
3443
|
+
* @returns OperationStatusResponse Successful response
|
|
3444
|
+
* @throws ApiError
|
|
3445
|
+
*/
|
|
3446
|
+
getOperationResult({ operationId, }: {
|
|
3447
|
+
/**
|
|
3448
|
+
* UUID of given operation
|
|
3449
|
+
*/
|
|
3450
|
+
operationId: string;
|
|
3451
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3452
|
+
/**
|
|
3453
|
+
* Create transaction export operation
|
|
3454
|
+
* Trigger a transaction export operation with given parameters.
|
|
3455
|
+
*
|
|
3456
|
+
* 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.
|
|
3457
|
+
* @returns OperationStatusResponse Successful response
|
|
3458
|
+
* @throws ApiError
|
|
3459
|
+
*/
|
|
3460
|
+
postTransactionExportJob({ requestBody, }: {
|
|
3461
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
3462
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
type EvmGenesisAllocDto = {
|
|
3466
|
+
/**
|
|
3467
|
+
* Account balance in hex format
|
|
3468
|
+
*/
|
|
3469
|
+
balance?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
* Contract bytecode in hex format
|
|
3472
|
+
*/
|
|
3473
|
+
code?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* Contract storage slots
|
|
3476
|
+
*/
|
|
3477
|
+
storage?: Record<string, string>;
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3480
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3481
|
+
/**
|
|
3482
|
+
* Block timestamp
|
|
3483
|
+
*/
|
|
3484
|
+
blockTimestamp?: number;
|
|
3485
|
+
/**
|
|
3486
|
+
* Admin addresses
|
|
3487
|
+
*/
|
|
3488
|
+
adminAddresses?: Array<string>;
|
|
3489
|
+
/**
|
|
3490
|
+
* Manager addresses
|
|
3491
|
+
*/
|
|
3492
|
+
managerAddresses?: Array<string>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Enabled addresses
|
|
3495
|
+
*/
|
|
3496
|
+
enabledAddresses?: Array<string>;
|
|
3497
|
+
};
|
|
3498
|
+
|
|
3499
|
+
type EvmGenesisFeeConfigDto = {
|
|
3500
|
+
/**
|
|
3501
|
+
* Base fee change denominator
|
|
3502
|
+
*/
|
|
3503
|
+
baseFeeChangeDenominator?: number;
|
|
3504
|
+
/**
|
|
3505
|
+
* Block gas cost step
|
|
3506
|
+
*/
|
|
3507
|
+
blockGasCostStep?: number;
|
|
3508
|
+
/**
|
|
3509
|
+
* Gas limit
|
|
3510
|
+
*/
|
|
3511
|
+
gasLimit?: number;
|
|
3512
|
+
/**
|
|
3513
|
+
* Maximum block gas cost
|
|
3514
|
+
*/
|
|
3515
|
+
maxBlockGasCost?: number;
|
|
3516
|
+
/**
|
|
3517
|
+
* Minimum base fee
|
|
3518
|
+
*/
|
|
3519
|
+
minBaseFee?: number;
|
|
3520
|
+
/**
|
|
3521
|
+
* Minimum block gas cost
|
|
3522
|
+
*/
|
|
3523
|
+
minBlockGasCost?: number;
|
|
3524
|
+
/**
|
|
3525
|
+
* Target block rate
|
|
3526
|
+
*/
|
|
3527
|
+
targetBlockRate?: number;
|
|
3528
|
+
/**
|
|
3529
|
+
* Target gas
|
|
3530
|
+
*/
|
|
3531
|
+
targetGas?: number;
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
type EvmGenesisWarpConfigDto = {
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
blockTimestamp?: number;
|
|
3539
|
+
/**
|
|
3540
|
+
* Quorum numerator
|
|
3541
|
+
*/
|
|
3542
|
+
quorumNumerator?: number;
|
|
3543
|
+
/**
|
|
3544
|
+
* Require primary network signers
|
|
3545
|
+
*/
|
|
3546
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3547
|
+
};
|
|
3548
|
+
|
|
3549
|
+
type EvmGenesisConfigDto = {
|
|
3550
|
+
/**
|
|
3551
|
+
* Berlin block number
|
|
3552
|
+
*/
|
|
3553
|
+
berlinBlock?: number;
|
|
3554
|
+
/**
|
|
3555
|
+
* Byzantium block number
|
|
3556
|
+
*/
|
|
3557
|
+
byzantiumBlock?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Chain ID
|
|
3560
|
+
*/
|
|
3561
|
+
chainId?: number;
|
|
3562
|
+
/**
|
|
3563
|
+
* Constantinople block number
|
|
3564
|
+
*/
|
|
3565
|
+
constantinopleBlock?: number;
|
|
3566
|
+
/**
|
|
3567
|
+
* EIP-150 block number
|
|
3568
|
+
*/
|
|
3569
|
+
eip150Block?: number;
|
|
3570
|
+
/**
|
|
3571
|
+
* EIP-150 hash
|
|
3572
|
+
*/
|
|
3573
|
+
eip150Hash?: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* EIP-155 block number
|
|
3576
|
+
*/
|
|
3577
|
+
eip155Block?: number;
|
|
3578
|
+
/**
|
|
3579
|
+
* EIP-158 block number
|
|
3580
|
+
*/
|
|
3581
|
+
eip158Block?: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Fee configuration
|
|
3584
|
+
*/
|
|
3585
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3586
|
+
/**
|
|
3587
|
+
* Homestead block number
|
|
3588
|
+
*/
|
|
3589
|
+
homesteadBlock?: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* Istanbul block number
|
|
3592
|
+
*/
|
|
3593
|
+
istanbulBlock?: number;
|
|
3594
|
+
/**
|
|
3595
|
+
* London block number
|
|
3596
|
+
*/
|
|
3597
|
+
londonBlock?: number;
|
|
3598
|
+
/**
|
|
3599
|
+
* Muir Glacier block number
|
|
3600
|
+
*/
|
|
3601
|
+
muirGlacierBlock?: number;
|
|
3602
|
+
/**
|
|
3603
|
+
* Petersburg block number
|
|
3604
|
+
*/
|
|
3605
|
+
petersburgBlock?: number;
|
|
3606
|
+
/**
|
|
3607
|
+
* Subnet EVM timestamp
|
|
3608
|
+
*/
|
|
3609
|
+
subnetEVMTimestamp?: number;
|
|
3610
|
+
/**
|
|
3611
|
+
* Allow fee recipients
|
|
3612
|
+
*/
|
|
3613
|
+
allowFeeRecipients?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* Warp configuration
|
|
3616
|
+
*/
|
|
3617
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3618
|
+
/**
|
|
3619
|
+
* Transaction allow list configuration
|
|
3620
|
+
*/
|
|
3621
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3622
|
+
/**
|
|
3623
|
+
* Contract deployer allow list configuration
|
|
3624
|
+
*/
|
|
3625
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3626
|
+
/**
|
|
3627
|
+
* Contract native minter configuration
|
|
3628
|
+
*/
|
|
3629
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3630
|
+
/**
|
|
3631
|
+
* Fee manager configuration
|
|
3632
|
+
*/
|
|
3633
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3634
|
+
/**
|
|
3635
|
+
* Reward manager configuration
|
|
3636
|
+
*/
|
|
3637
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3638
|
+
};
|
|
3639
|
+
|
|
3640
|
+
type EvmGenesisDto = {
|
|
3641
|
+
/**
|
|
3642
|
+
* Airdrop amount
|
|
3643
|
+
*/
|
|
3644
|
+
airdropAmount?: number | null;
|
|
3645
|
+
/**
|
|
3646
|
+
* Airdrop hash
|
|
3647
|
+
*/
|
|
3648
|
+
airdropHash?: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* Allocation of accounts and balances
|
|
3651
|
+
*/
|
|
3652
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3653
|
+
/**
|
|
3654
|
+
* Base fee per gas
|
|
3655
|
+
*/
|
|
3656
|
+
baseFeePerGas?: number | null;
|
|
3657
|
+
/**
|
|
3658
|
+
* Blob gas used
|
|
3659
|
+
*/
|
|
3660
|
+
blobGasUsed?: string | null;
|
|
3661
|
+
/**
|
|
3662
|
+
* Coinbase address
|
|
3663
|
+
*/
|
|
3664
|
+
coinbase?: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* Genesis configuration
|
|
3667
|
+
*/
|
|
3668
|
+
config?: EvmGenesisConfigDto;
|
|
3669
|
+
/**
|
|
3670
|
+
* Difficulty
|
|
3671
|
+
*/
|
|
3672
|
+
difficulty?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Excess blob gas
|
|
3675
|
+
*/
|
|
3676
|
+
excessBlobGas?: string | null;
|
|
3677
|
+
/**
|
|
3678
|
+
* Extra data
|
|
3679
|
+
*/
|
|
3680
|
+
extraData?: string;
|
|
3681
|
+
/**
|
|
3682
|
+
* Gas limit
|
|
3683
|
+
*/
|
|
3684
|
+
gasLimit?: string;
|
|
3685
|
+
/**
|
|
3686
|
+
* Gas used
|
|
3687
|
+
*/
|
|
3688
|
+
gasUsed?: string;
|
|
3689
|
+
/**
|
|
3690
|
+
* Mix hash
|
|
3691
|
+
*/
|
|
3692
|
+
mixHash?: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* Nonce
|
|
3695
|
+
*/
|
|
3696
|
+
nonce?: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* Block number
|
|
3699
|
+
*/
|
|
3700
|
+
number?: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* Parent hash
|
|
3703
|
+
*/
|
|
3704
|
+
parentHash?: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Block timestamp
|
|
3707
|
+
*/
|
|
3708
|
+
timestamp?: string;
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3711
|
+
type Blockchain = {
|
|
3712
|
+
createBlockTimestamp: number;
|
|
3713
|
+
createBlockNumber: string;
|
|
3714
|
+
blockchainId: string;
|
|
3715
|
+
vmId: string;
|
|
3716
|
+
subnetId: string;
|
|
3717
|
+
blockchainName: string;
|
|
2549
3718
|
/**
|
|
2550
|
-
*
|
|
2551
|
-
* Gets operation details for the given operation id.
|
|
2552
|
-
* @returns OperationStatusResponse Successful response
|
|
2553
|
-
* @throws ApiError
|
|
3719
|
+
* 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
3720
|
*/
|
|
2555
|
-
|
|
2556
|
-
/**
|
|
2557
|
-
* UUID of given operation
|
|
2558
|
-
*/
|
|
2559
|
-
operationId: string;
|
|
2560
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
3721
|
+
evmChainId?: number;
|
|
2561
3722
|
/**
|
|
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
|
|
3723
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
2568
3724
|
*/
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2572
|
-
}
|
|
3725
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3726
|
+
};
|
|
2573
3727
|
|
|
2574
3728
|
declare enum BlockchainIds {
|
|
2575
3729
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2576
3730
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2577
3731
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2579
3732
|
_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"
|
|
3733
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2582
3734
|
}
|
|
2583
3735
|
|
|
2584
3736
|
type ChainAddressChainIdMap = {
|
|
@@ -2602,16 +3754,31 @@ type DelegatorsDetails = {
|
|
|
2602
3754
|
};
|
|
2603
3755
|
|
|
2604
3756
|
type StakingDistribution = {
|
|
3757
|
+
/**
|
|
3758
|
+
* AvalancheGo version for the validator node.
|
|
3759
|
+
*/
|
|
2605
3760
|
version: string;
|
|
3761
|
+
/**
|
|
3762
|
+
* The total amount staked by validators using this version.
|
|
3763
|
+
*/
|
|
2606
3764
|
amountStaked: string;
|
|
3765
|
+
/**
|
|
3766
|
+
* The number of validators using this version.
|
|
3767
|
+
*/
|
|
2607
3768
|
validatorCount: number;
|
|
2608
3769
|
};
|
|
2609
3770
|
|
|
2610
3771
|
type ValidatorsDetails = {
|
|
2611
3772
|
validatorCount: number;
|
|
2612
3773
|
totalAmountStaked: string;
|
|
3774
|
+
/**
|
|
3775
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3776
|
+
*/
|
|
2613
3777
|
estimatedAnnualStakingReward: string;
|
|
2614
3778
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3779
|
+
/**
|
|
3780
|
+
* Ratio of total active stake amount to the current supply.
|
|
3781
|
+
*/
|
|
2615
3782
|
stakingRatio: string;
|
|
2616
3783
|
};
|
|
2617
3784
|
|
|
@@ -2620,15 +3787,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2620
3787
|
delegatorDetails: DelegatorsDetails;
|
|
2621
3788
|
};
|
|
2622
3789
|
|
|
2623
|
-
type Blockchain = {
|
|
2624
|
-
createBlockTimestamp: number;
|
|
2625
|
-
createBlockNumber: string;
|
|
2626
|
-
blockchainId: string;
|
|
2627
|
-
vmId: string;
|
|
2628
|
-
subnetId: string;
|
|
2629
|
-
blockchainName: string;
|
|
2630
|
-
};
|
|
2631
|
-
|
|
2632
3790
|
type ListBlockchainsResponse = {
|
|
2633
3791
|
/**
|
|
2634
3792
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2663,7 +3821,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3821
|
delegationFee: string;
|
|
2664
3822
|
startTimestamp: number;
|
|
2665
3823
|
endTimestamp: number;
|
|
3824
|
+
/**
|
|
3825
|
+
* Total rewards distributed for the successful delegation.
|
|
3826
|
+
*/
|
|
2666
3827
|
grossReward: string;
|
|
3828
|
+
/**
|
|
3829
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3830
|
+
*/
|
|
2667
3831
|
netReward: string;
|
|
2668
3832
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3833
|
};
|
|
@@ -2681,7 +3845,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3845
|
delegationFee: string;
|
|
2682
3846
|
startTimestamp: number;
|
|
2683
3847
|
endTimestamp: number;
|
|
3848
|
+
/**
|
|
3849
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3850
|
+
*/
|
|
2684
3851
|
estimatedGrossReward: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3854
|
+
*/
|
|
2685
3855
|
estimatedNetReward: string;
|
|
2686
3856
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3857
|
};
|
|
@@ -2702,8 +3872,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3872
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3873
|
};
|
|
2704
3874
|
|
|
2705
|
-
type
|
|
3875
|
+
type BalanceOwner = {
|
|
3876
|
+
addresses: Array<string>;
|
|
3877
|
+
threshold: number;
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
type L1ValidatorDetailsFull = {
|
|
3881
|
+
/**
|
|
3882
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3883
|
+
*/
|
|
3884
|
+
validationId: string;
|
|
3885
|
+
/**
|
|
3886
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3887
|
+
*/
|
|
3888
|
+
validationIdHex: string;
|
|
3889
|
+
nodeId: string;
|
|
3890
|
+
subnetId: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* 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
|
|
3893
|
+
*/
|
|
3894
|
+
weight: number;
|
|
3895
|
+
/**
|
|
3896
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3897
|
+
*/
|
|
3898
|
+
remainingBalance: number;
|
|
3899
|
+
/**
|
|
3900
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3901
|
+
*/
|
|
3902
|
+
creationTimestamp: number;
|
|
3903
|
+
blsCredentials: Record<string, any>;
|
|
3904
|
+
/**
|
|
3905
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3906
|
+
*/
|
|
3907
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3908
|
+
/**
|
|
3909
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3910
|
+
*/
|
|
3911
|
+
deactivationOwner: BalanceOwner;
|
|
3912
|
+
};
|
|
3913
|
+
|
|
3914
|
+
type ListL1ValidatorsResponse = {
|
|
3915
|
+
/**
|
|
3916
|
+
* 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.
|
|
3917
|
+
*/
|
|
3918
|
+
nextPageToken?: string;
|
|
3919
|
+
/**
|
|
3920
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3921
|
+
*/
|
|
3922
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3923
|
+
/**
|
|
3924
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3925
|
+
*/
|
|
3926
|
+
blockHeight: string;
|
|
3927
|
+
};
|
|
3928
|
+
|
|
3929
|
+
type L1ValidatorManagerDetails = {
|
|
2706
3930
|
blockchainId: string;
|
|
3931
|
+
contractAddress: string;
|
|
2707
3932
|
};
|
|
2708
3933
|
|
|
2709
3934
|
type SubnetOwnershipInfo = {
|
|
@@ -2744,7 +3969,19 @@ type Subnet = {
|
|
|
2744
3969
|
* Latest subnet owner details for this Subnet.
|
|
2745
3970
|
*/
|
|
2746
3971
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2747
|
-
|
|
3972
|
+
/**
|
|
3973
|
+
* Whether the subnet is an L1 or not.
|
|
3974
|
+
*/
|
|
3975
|
+
isL1: boolean;
|
|
3976
|
+
/**
|
|
3977
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3978
|
+
*/
|
|
3979
|
+
l1ConversionTransactionHash?: string;
|
|
3980
|
+
/**
|
|
3981
|
+
* L1 validator manager details.
|
|
3982
|
+
*/
|
|
3983
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3984
|
+
blockchains: Array<Blockchain>;
|
|
2748
3985
|
};
|
|
2749
3986
|
|
|
2750
3987
|
type ListSubnetsResponse = {
|
|
@@ -2760,6 +3997,29 @@ type BlsCredentials = {
|
|
|
2760
3997
|
proofOfPossession: string;
|
|
2761
3998
|
};
|
|
2762
3999
|
|
|
4000
|
+
type Geolocation = {
|
|
4001
|
+
/**
|
|
4002
|
+
* The name of the validator node.
|
|
4003
|
+
*/
|
|
4004
|
+
city: string;
|
|
4005
|
+
/**
|
|
4006
|
+
* The city of the validator node.
|
|
4007
|
+
*/
|
|
4008
|
+
country: string;
|
|
4009
|
+
/**
|
|
4010
|
+
* The country code of the validator node.
|
|
4011
|
+
*/
|
|
4012
|
+
countryCode: string;
|
|
4013
|
+
/**
|
|
4014
|
+
* The latitude of the validator node.
|
|
4015
|
+
*/
|
|
4016
|
+
latitude: number;
|
|
4017
|
+
/**
|
|
4018
|
+
* The longitude of the validator node.
|
|
4019
|
+
*/
|
|
4020
|
+
longitude: number;
|
|
4021
|
+
};
|
|
4022
|
+
|
|
2763
4023
|
type Rewards = {
|
|
2764
4024
|
validationRewardAmount: string;
|
|
2765
4025
|
delegationRewardAmount: string;
|
|
@@ -2791,6 +4051,9 @@ type ActiveValidatorDetails = {
|
|
|
2791
4051
|
nodeId: string;
|
|
2792
4052
|
subnetId: string;
|
|
2793
4053
|
amountStaked: string;
|
|
4054
|
+
/**
|
|
4055
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4056
|
+
*/
|
|
2794
4057
|
delegationFee?: string;
|
|
2795
4058
|
startTimestamp: number;
|
|
2796
4059
|
endTimestamp: number;
|
|
@@ -2798,15 +4061,37 @@ type ActiveValidatorDetails = {
|
|
|
2798
4061
|
* Present for AddPermissionlessValidatorTx
|
|
2799
4062
|
*/
|
|
2800
4063
|
blsCredentials?: BlsCredentials;
|
|
4064
|
+
/**
|
|
4065
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
4066
|
+
*/
|
|
2801
4067
|
stakePercentage: number;
|
|
4068
|
+
/**
|
|
4069
|
+
* The number of delegators linked to the validator.
|
|
4070
|
+
*/
|
|
2802
4071
|
delegatorCount: number;
|
|
4072
|
+
/**
|
|
4073
|
+
* The total amount in nAVAX delegated to the validator.
|
|
4074
|
+
*/
|
|
2803
4075
|
amountDelegated?: string;
|
|
4076
|
+
/**
|
|
4077
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
4078
|
+
*/
|
|
2804
4079
|
uptimePerformance: number;
|
|
2805
4080
|
avalancheGoVersion?: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
4083
|
+
*/
|
|
2806
4084
|
delegationCapacity?: string;
|
|
4085
|
+
/**
|
|
4086
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
4087
|
+
*/
|
|
2807
4088
|
potentialRewards: Rewards;
|
|
2808
4089
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
4090
|
validatorHealth: ValidatorHealthDetails;
|
|
4091
|
+
/**
|
|
4092
|
+
* The geographical location of the validator node, if available.
|
|
4093
|
+
*/
|
|
4094
|
+
geolocation: Geolocation | null;
|
|
2810
4095
|
};
|
|
2811
4096
|
declare namespace ActiveValidatorDetails {
|
|
2812
4097
|
enum validationStatus {
|
|
@@ -2819,6 +4104,9 @@ type CompletedValidatorDetails = {
|
|
|
2819
4104
|
nodeId: string;
|
|
2820
4105
|
subnetId: string;
|
|
2821
4106
|
amountStaked: string;
|
|
4107
|
+
/**
|
|
4108
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4109
|
+
*/
|
|
2822
4110
|
delegationFee?: string;
|
|
2823
4111
|
startTimestamp: number;
|
|
2824
4112
|
endTimestamp: number;
|
|
@@ -2842,6 +4130,9 @@ type PendingValidatorDetails = {
|
|
|
2842
4130
|
nodeId: string;
|
|
2843
4131
|
subnetId: string;
|
|
2844
4132
|
amountStaked: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4135
|
+
*/
|
|
2845
4136
|
delegationFee?: string;
|
|
2846
4137
|
startTimestamp: number;
|
|
2847
4138
|
endTimestamp: number;
|
|
@@ -2862,6 +4153,9 @@ type RemovedValidatorDetails = {
|
|
|
2862
4153
|
nodeId: string;
|
|
2863
4154
|
subnetId: string;
|
|
2864
4155
|
amountStaked: string;
|
|
4156
|
+
/**
|
|
4157
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4158
|
+
*/
|
|
2865
4159
|
delegationFee?: string;
|
|
2866
4160
|
startTimestamp: number;
|
|
2867
4161
|
endTimestamp: number;
|
|
@@ -2869,7 +4163,13 @@ type RemovedValidatorDetails = {
|
|
|
2869
4163
|
* Present for AddPermissionlessValidatorTx
|
|
2870
4164
|
*/
|
|
2871
4165
|
blsCredentials?: BlsCredentials;
|
|
4166
|
+
/**
|
|
4167
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4168
|
+
*/
|
|
2872
4169
|
removeTxHash: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4172
|
+
*/
|
|
2873
4173
|
removeTimestamp: number;
|
|
2874
4174
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
4175
|
};
|
|
@@ -2949,7 +4249,6 @@ type XChainAssetDetails = {
|
|
|
2949
4249
|
declare enum XChainId {
|
|
2950
4250
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2951
4251
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2953
4252
|
X_CHAIN = "x-chain"
|
|
2954
4253
|
}
|
|
2955
4254
|
|
|
@@ -3020,7 +4319,7 @@ declare class PrimaryNetworkService {
|
|
|
3020
4319
|
*/
|
|
3021
4320
|
pageToken?: string;
|
|
3022
4321
|
/**
|
|
3023
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4322
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3024
4323
|
*/
|
|
3025
4324
|
pageSize?: number;
|
|
3026
4325
|
/**
|
|
@@ -3028,6 +4327,22 @@ declare class PrimaryNetworkService {
|
|
|
3028
4327
|
*/
|
|
3029
4328
|
sortOrder?: SortOrder;
|
|
3030
4329
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4330
|
+
/**
|
|
4331
|
+
* Get blockchain details by ID
|
|
4332
|
+
* Get details of the blockchain registered on the network.
|
|
4333
|
+
* @returns Blockchain Successful response
|
|
4334
|
+
* @throws ApiError
|
|
4335
|
+
*/
|
|
4336
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4337
|
+
/**
|
|
4338
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4339
|
+
*/
|
|
4340
|
+
blockchainId: string;
|
|
4341
|
+
/**
|
|
4342
|
+
* Either mainnet or testnet/fuji.
|
|
4343
|
+
*/
|
|
4344
|
+
network: Network;
|
|
4345
|
+
}): CancelablePromise<Blockchain>;
|
|
3031
4346
|
/**
|
|
3032
4347
|
* List subnets
|
|
3033
4348
|
* Lists all subnets registered on the network.
|
|
@@ -3044,7 +4359,7 @@ declare class PrimaryNetworkService {
|
|
|
3044
4359
|
*/
|
|
3045
4360
|
pageToken?: string;
|
|
3046
4361
|
/**
|
|
3047
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4362
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3048
4363
|
*/
|
|
3049
4364
|
pageSize?: number;
|
|
3050
4365
|
/**
|
|
@@ -3070,7 +4385,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
4385
|
}): CancelablePromise<Subnet>;
|
|
3071
4386
|
/**
|
|
3072
4387
|
* List validators
|
|
3073
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4388
|
+
* 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
4389
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3075
4390
|
* @throws ApiError
|
|
3076
4391
|
*/
|
|
@@ -3088,7 +4403,7 @@ declare class PrimaryNetworkService {
|
|
|
3088
4403
|
*/
|
|
3089
4404
|
pageSize?: number;
|
|
3090
4405
|
/**
|
|
3091
|
-
* A comma separated list of node ids to filter by.
|
|
4406
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3092
4407
|
*/
|
|
3093
4408
|
nodeIds?: string;
|
|
3094
4409
|
/**
|
|
@@ -3210,16 +4525,47 @@ declare class PrimaryNetworkService {
|
|
|
3210
4525
|
*/
|
|
3211
4526
|
nodeIds?: string;
|
|
3212
4527
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4528
|
+
/**
|
|
4529
|
+
* List L1 validators
|
|
4530
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4531
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4532
|
+
* @throws ApiError
|
|
4533
|
+
*/
|
|
4534
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4535
|
+
/**
|
|
4536
|
+
* Either mainnet or testnet/fuji.
|
|
4537
|
+
*/
|
|
4538
|
+
network: Network;
|
|
4539
|
+
/**
|
|
4540
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4541
|
+
*/
|
|
4542
|
+
pageToken?: string;
|
|
4543
|
+
/**
|
|
4544
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4545
|
+
*/
|
|
4546
|
+
pageSize?: number;
|
|
4547
|
+
/**
|
|
4548
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4549
|
+
*/
|
|
4550
|
+
l1ValidationId?: string;
|
|
4551
|
+
includeInactiveL1Validators?: boolean;
|
|
4552
|
+
/**
|
|
4553
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4554
|
+
*/
|
|
4555
|
+
nodeId?: string;
|
|
4556
|
+
/**
|
|
4557
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4558
|
+
*/
|
|
4559
|
+
subnetId?: any;
|
|
4560
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3213
4561
|
}
|
|
3214
4562
|
|
|
3215
4563
|
declare enum BlockchainId {
|
|
3216
4564
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3217
4565
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3218
4566
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3220
4567
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3221
4568
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3223
4569
|
P_CHAIN = "p-chain",
|
|
3224
4570
|
X_CHAIN = "x-chain",
|
|
3225
4571
|
C_CHAIN = "c-chain"
|
|
@@ -3256,12 +4602,6 @@ type CChainAtomicBalances = {
|
|
|
3256
4602
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3257
4603
|
};
|
|
3258
4604
|
|
|
3259
|
-
declare enum PrimaryNetwork {
|
|
3260
|
-
MAINNET = "mainnet",
|
|
3261
|
-
FUJI = "fuji",
|
|
3262
|
-
DEVNET = "devnet"
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
4605
|
declare enum PrimaryNetworkChainName {
|
|
3266
4606
|
P_CHAIN = "p-chain",
|
|
3267
4607
|
X_CHAIN = "x-chain",
|
|
@@ -3270,7 +4610,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3270
4610
|
|
|
3271
4611
|
type PrimaryNetworkChainInfo = {
|
|
3272
4612
|
chainName: PrimaryNetworkChainName;
|
|
3273
|
-
network:
|
|
4613
|
+
network: Network;
|
|
3274
4614
|
};
|
|
3275
4615
|
|
|
3276
4616
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3462,6 +4802,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3462
4802
|
txCount: number;
|
|
3463
4803
|
transactions: Array<string>;
|
|
3464
4804
|
blockSizeBytes: number;
|
|
4805
|
+
l1ValidatorsAccruedFees?: number;
|
|
4806
|
+
activeL1Validators?: number;
|
|
3465
4807
|
currentSupply?: string;
|
|
3466
4808
|
proposerDetails?: ProposerDetails;
|
|
3467
4809
|
};
|
|
@@ -3475,6 +4817,8 @@ type PrimaryNetworkBlock = {
|
|
|
3475
4817
|
txCount: number;
|
|
3476
4818
|
transactions: Array<string>;
|
|
3477
4819
|
blockSizeBytes: number;
|
|
4820
|
+
l1ValidatorsAccruedFees?: number;
|
|
4821
|
+
activeL1Validators?: number;
|
|
3478
4822
|
currentSupply?: string;
|
|
3479
4823
|
proposerDetails?: ProposerDetails;
|
|
3480
4824
|
};
|
|
@@ -3517,7 +4861,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3517
4861
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3518
4862
|
* @throws ApiError
|
|
3519
4863
|
*/
|
|
3520
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4864
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3521
4865
|
/**
|
|
3522
4866
|
* A primary network blockchain id or alias.
|
|
3523
4867
|
*/
|
|
@@ -3530,6 +4874,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3530
4874
|
* A primary network (P or X chain) nodeId.
|
|
3531
4875
|
*/
|
|
3532
4876
|
nodeId: string;
|
|
4877
|
+
/**
|
|
4878
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4879
|
+
*/
|
|
4880
|
+
startTimestamp?: number;
|
|
4881
|
+
/**
|
|
4882
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4883
|
+
*/
|
|
4884
|
+
endTimestamp?: number;
|
|
3533
4885
|
/**
|
|
3534
4886
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3535
4887
|
*/
|
|
@@ -3545,7 +4897,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3545
4897
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3546
4898
|
* @throws ApiError
|
|
3547
4899
|
*/
|
|
3548
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4900
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3549
4901
|
/**
|
|
3550
4902
|
* A primary network blockchain id or alias.
|
|
3551
4903
|
*/
|
|
@@ -3554,6 +4906,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3554
4906
|
* Either mainnet or testnet/fuji.
|
|
3555
4907
|
*/
|
|
3556
4908
|
network: Network;
|
|
4909
|
+
/**
|
|
4910
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4911
|
+
*/
|
|
4912
|
+
startTimestamp?: number;
|
|
4913
|
+
/**
|
|
4914
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4915
|
+
*/
|
|
4916
|
+
endTimestamp?: number;
|
|
3557
4917
|
/**
|
|
3558
4918
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3559
4919
|
*/
|
|
@@ -3795,6 +5155,10 @@ type Utxo = {
|
|
|
3795
5155
|
* UTXO ID for this output.
|
|
3796
5156
|
*/
|
|
3797
5157
|
utxoId: string;
|
|
5158
|
+
/**
|
|
5159
|
+
* The bytes of the UTXO
|
|
5160
|
+
*/
|
|
5161
|
+
utxoBytes?: string;
|
|
3798
5162
|
/**
|
|
3799
5163
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3800
5164
|
*/
|
|
@@ -3963,6 +5327,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3963
5327
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3964
5328
|
};
|
|
3965
5329
|
|
|
5330
|
+
type BlockchainInfo = {
|
|
5331
|
+
chainName: string;
|
|
5332
|
+
vmId: string;
|
|
5333
|
+
/**
|
|
5334
|
+
* 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
|
|
5335
|
+
*/
|
|
5336
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5337
|
+
};
|
|
5338
|
+
|
|
5339
|
+
type L1ValidatorDetailsTransaction = {
|
|
5340
|
+
/**
|
|
5341
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5342
|
+
*/
|
|
5343
|
+
validationId: string;
|
|
5344
|
+
/**
|
|
5345
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5346
|
+
*/
|
|
5347
|
+
validationIdHex: string;
|
|
5348
|
+
nodeId: string;
|
|
5349
|
+
subnetId: string;
|
|
5350
|
+
/**
|
|
5351
|
+
* 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
|
|
5352
|
+
*/
|
|
5353
|
+
weight: number;
|
|
5354
|
+
/**
|
|
5355
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5356
|
+
*/
|
|
5357
|
+
remainingBalance: number;
|
|
5358
|
+
/**
|
|
5359
|
+
* 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
|
|
5360
|
+
*/
|
|
5361
|
+
balanceChange?: number;
|
|
5362
|
+
blsCredentials?: Record<string, any>;
|
|
5363
|
+
};
|
|
5364
|
+
|
|
3966
5365
|
declare enum PChainTransactionType {
|
|
3967
5366
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3968
5367
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3979,9 +5378,17 @@ declare enum PChainTransactionType {
|
|
|
3979
5378
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3980
5379
|
BASE_TX = "BaseTx",
|
|
3981
5380
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5381
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5382
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5383
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5384
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5385
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3982
5386
|
UNKNOWN = "UNKNOWN"
|
|
3983
5387
|
}
|
|
3984
5388
|
|
|
5389
|
+
/**
|
|
5390
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5391
|
+
*/
|
|
3985
5392
|
declare enum UtxoType {
|
|
3986
5393
|
STAKE = "STAKE",
|
|
3987
5394
|
TRANSFER = "TRANSFER"
|
|
@@ -4009,6 +5416,10 @@ type PChainUtxo = {
|
|
|
4009
5416
|
* UTXO ID for this output.
|
|
4010
5417
|
*/
|
|
4011
5418
|
utxoId: string;
|
|
5419
|
+
/**
|
|
5420
|
+
* The bytes of the UTXO
|
|
5421
|
+
*/
|
|
5422
|
+
utxoBytes?: string;
|
|
4012
5423
|
/**
|
|
4013
5424
|
* @deprecated
|
|
4014
5425
|
*/
|
|
@@ -4019,16 +5430,43 @@ type PChainUtxo = {
|
|
|
4019
5430
|
assetId: string;
|
|
4020
5431
|
blockNumber: string;
|
|
4021
5432
|
blockTimestamp: number;
|
|
5433
|
+
/**
|
|
5434
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5435
|
+
*/
|
|
4022
5436
|
consumingBlockNumber?: string;
|
|
5437
|
+
/**
|
|
5438
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5439
|
+
*/
|
|
4023
5440
|
consumingBlockTimestamp?: number;
|
|
5441
|
+
/**
|
|
5442
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5443
|
+
*/
|
|
4024
5444
|
platformLocktime?: number;
|
|
5445
|
+
/**
|
|
5446
|
+
* The index of the UTXO in the transaction
|
|
5447
|
+
*/
|
|
4025
5448
|
outputIndex: number;
|
|
4026
5449
|
rewardType?: RewardType;
|
|
5450
|
+
/**
|
|
5451
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5452
|
+
*/
|
|
4027
5453
|
stakeableLocktime?: number;
|
|
4028
5454
|
staked?: boolean;
|
|
5455
|
+
/**
|
|
5456
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5457
|
+
*/
|
|
4029
5458
|
threshold?: number;
|
|
5459
|
+
/**
|
|
5460
|
+
* The hash of the transaction that created this UTXO
|
|
5461
|
+
*/
|
|
4030
5462
|
txHash: string;
|
|
5463
|
+
/**
|
|
5464
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5465
|
+
*/
|
|
4031
5466
|
utxoEndTimestamp?: number;
|
|
5467
|
+
/**
|
|
5468
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5469
|
+
*/
|
|
4032
5470
|
utxoStartTimestamp?: number;
|
|
4033
5471
|
utxoType: UtxoType;
|
|
4034
5472
|
};
|
|
@@ -4040,12 +5478,21 @@ type PChainTransaction = {
|
|
|
4040
5478
|
txHash: string;
|
|
4041
5479
|
txType: PChainTransactionType;
|
|
4042
5480
|
/**
|
|
4043
|
-
* The block
|
|
5481
|
+
* The block creation (proposal) timestamp in seconds
|
|
4044
5482
|
*/
|
|
4045
5483
|
blockTimestamp: number;
|
|
5484
|
+
/**
|
|
5485
|
+
* The height of the block in which the transaction was included
|
|
5486
|
+
*/
|
|
4046
5487
|
blockNumber: string;
|
|
4047
5488
|
blockHash: string;
|
|
5489
|
+
/**
|
|
5490
|
+
* The consumed UTXOs of the transaction
|
|
5491
|
+
*/
|
|
4048
5492
|
consumedUtxos: Array<PChainUtxo>;
|
|
5493
|
+
/**
|
|
5494
|
+
* The newly created UTXOs of the transaction
|
|
5495
|
+
*/
|
|
4049
5496
|
emittedUtxos: Array<PChainUtxo>;
|
|
4050
5497
|
/**
|
|
4051
5498
|
* Source chain for an atomic transaction.
|
|
@@ -4056,17 +5503,21 @@ type PChainTransaction = {
|
|
|
4056
5503
|
*/
|
|
4057
5504
|
destinationChain?: string;
|
|
4058
5505
|
/**
|
|
4059
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5506
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4060
5507
|
*/
|
|
4061
5508
|
value: Array<AssetAmount>;
|
|
4062
5509
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5510
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4064
5511
|
*/
|
|
4065
5512
|
amountBurned: Array<AssetAmount>;
|
|
4066
5513
|
/**
|
|
4067
5514
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4068
5515
|
*/
|
|
4069
5516
|
amountStaked: Array<AssetAmount>;
|
|
5517
|
+
/**
|
|
5518
|
+
* 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.
|
|
5519
|
+
*/
|
|
5520
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4070
5521
|
/**
|
|
4071
5522
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4072
5523
|
*/
|
|
@@ -4076,11 +5527,11 @@ type PChainTransaction = {
|
|
|
4076
5527
|
*/
|
|
4077
5528
|
endTimestamp?: number;
|
|
4078
5529
|
/**
|
|
4079
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5530
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4080
5531
|
*/
|
|
4081
5532
|
delegationFeePercent?: string;
|
|
4082
5533
|
/**
|
|
4083
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5534
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4084
5535
|
*/
|
|
4085
5536
|
nodeId?: string;
|
|
4086
5537
|
/**
|
|
@@ -4088,14 +5539,25 @@ type PChainTransaction = {
|
|
|
4088
5539
|
*/
|
|
4089
5540
|
subnetId?: string;
|
|
4090
5541
|
/**
|
|
4091
|
-
* Present for
|
|
5542
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5543
|
+
*/
|
|
5544
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5545
|
+
/**
|
|
5546
|
+
* 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
|
|
5547
|
+
*/
|
|
5548
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5549
|
+
/**
|
|
5550
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
5551
|
*/
|
|
4093
5552
|
estimatedReward?: string;
|
|
5553
|
+
/**
|
|
5554
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5555
|
+
*/
|
|
4094
5556
|
rewardTxHash?: string;
|
|
4095
5557
|
rewardAddresses?: Array<string>;
|
|
4096
5558
|
memo?: string;
|
|
4097
5559
|
/**
|
|
4098
|
-
*
|
|
5560
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4099
5561
|
*/
|
|
4100
5562
|
stakingTxHash?: string;
|
|
4101
5563
|
/**
|
|
@@ -4103,9 +5565,13 @@ type PChainTransaction = {
|
|
|
4103
5565
|
*/
|
|
4104
5566
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4105
5567
|
/**
|
|
4106
|
-
* Present for AddPermissionlessValidatorTx
|
|
5568
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4107
5569
|
*/
|
|
4108
5570
|
blsCredentials?: BlsCredentials;
|
|
5571
|
+
/**
|
|
5572
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5573
|
+
*/
|
|
5574
|
+
blockchainInfo?: BlockchainInfo;
|
|
4109
5575
|
};
|
|
4110
5576
|
|
|
4111
5577
|
type ListPChainTransactionsResponse = {
|
|
@@ -4288,6 +5754,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4288
5754
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4289
5755
|
BASE_TX = "BaseTx",
|
|
4290
5756
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5757
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5758
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5759
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5760
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5761
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4291
5762
|
UNKNOWN = "UNKNOWN",
|
|
4292
5763
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4293
5764
|
OPERATION_TX = "OperationTx"
|
|
@@ -4322,11 +5793,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4322
5793
|
*
|
|
4323
5794
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4324
5795
|
*
|
|
5796
|
+
* 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.
|
|
5797
|
+
*
|
|
4325
5798
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4326
5799
|
* @returns any Successful response
|
|
4327
5800
|
* @throws ApiError
|
|
4328
5801
|
*/
|
|
4329
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5802
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4330
5803
|
/**
|
|
4331
5804
|
* A primary network blockchain id or alias.
|
|
4332
5805
|
*/
|
|
@@ -4339,6 +5812,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4339
5812
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4340
5813
|
*/
|
|
4341
5814
|
addresses?: string;
|
|
5815
|
+
l1ValidationId?: string;
|
|
4342
5816
|
/**
|
|
4343
5817
|
* Query param for filtering items based on transaction types.
|
|
4344
5818
|
*/
|
|
@@ -4450,6 +5924,36 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4450
5924
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
4451
5925
|
}
|
|
4452
5926
|
|
|
5927
|
+
declare enum PrimaryNetworkType {
|
|
5928
|
+
MAINNET = "mainnet",
|
|
5929
|
+
FUJI = "fuji"
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
type LastActivityTimestamp = {
|
|
5933
|
+
/**
|
|
5934
|
+
* Unix timestamp in seconds at which the last activity occurred.
|
|
5935
|
+
*/
|
|
5936
|
+
timestamp: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Block height at which the last activity occurred.
|
|
5939
|
+
*/
|
|
5940
|
+
blockNumber: string;
|
|
5941
|
+
/**
|
|
5942
|
+
* Transaction hash of the transaction that created or consumed the address' UTXOs.
|
|
5943
|
+
*/
|
|
5944
|
+
txHash: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* UTXO ID of the UTXO that was created or consumed.
|
|
5947
|
+
*/
|
|
5948
|
+
utxoId: string;
|
|
5949
|
+
/**
|
|
5950
|
+
* Whether the last activity was a consumption of an existing UTXO.
|
|
5951
|
+
*/
|
|
5952
|
+
isConsumed: boolean;
|
|
5953
|
+
chainName: PrimaryNetworkChainName;
|
|
5954
|
+
network: PrimaryNetworkType;
|
|
5955
|
+
};
|
|
5956
|
+
|
|
4453
5957
|
type ListPChainUtxosResponse = {
|
|
4454
5958
|
/**
|
|
4455
5959
|
* 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.
|
|
@@ -4468,6 +5972,18 @@ type ListUtxosResponse = {
|
|
|
4468
5972
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4469
5973
|
};
|
|
4470
5974
|
|
|
5975
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5976
|
+
/**
|
|
5977
|
+
* Comma-separated list of primary network addresses
|
|
5978
|
+
*/
|
|
5979
|
+
addresses: string;
|
|
5980
|
+
};
|
|
5981
|
+
|
|
5982
|
+
declare enum UtxosSortByOption {
|
|
5983
|
+
TIMESTAMP = "timestamp",
|
|
5984
|
+
AMOUNT = "amount"
|
|
5985
|
+
}
|
|
5986
|
+
|
|
4471
5987
|
declare class PrimaryNetworkUtxOsService {
|
|
4472
5988
|
readonly httpRequest: BaseHttpRequest;
|
|
4473
5989
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4477,7 +5993,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4477
5993
|
* @returns any Successful response
|
|
4478
5994
|
* @throws ApiError
|
|
4479
5995
|
*/
|
|
4480
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5996
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4481
5997
|
/**
|
|
4482
5998
|
* A primary network blockchain id or alias.
|
|
4483
5999
|
*/
|
|
@@ -4502,15 +6018,105 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4502
6018
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4503
6019
|
*/
|
|
4504
6020
|
assetId?: string;
|
|
6021
|
+
/**
|
|
6022
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6023
|
+
*/
|
|
6024
|
+
minUtxoAmount?: number;
|
|
6025
|
+
/**
|
|
6026
|
+
* Boolean filter to include spent UTXOs.
|
|
6027
|
+
*/
|
|
6028
|
+
includeSpent?: boolean;
|
|
6029
|
+
/**
|
|
6030
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6031
|
+
*/
|
|
6032
|
+
sortBy?: UtxosSortByOption;
|
|
6033
|
+
/**
|
|
6034
|
+
* 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.
|
|
6035
|
+
*/
|
|
6036
|
+
sortOrder?: SortOrder;
|
|
6037
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6038
|
+
/**
|
|
6039
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
6040
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
6041
|
+
* @returns any Successful response
|
|
6042
|
+
* @throws ApiError
|
|
6043
|
+
*/
|
|
6044
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
6045
|
+
/**
|
|
6046
|
+
* A primary network blockchain id or alias.
|
|
6047
|
+
*/
|
|
6048
|
+
blockchainId: BlockchainId;
|
|
6049
|
+
/**
|
|
6050
|
+
* Either mainnet or testnet/fuji.
|
|
6051
|
+
*/
|
|
6052
|
+
network: Network;
|
|
6053
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6054
|
+
/**
|
|
6055
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
6056
|
+
*/
|
|
6057
|
+
pageToken?: string;
|
|
6058
|
+
/**
|
|
6059
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
6060
|
+
*/
|
|
6061
|
+
pageSize?: number;
|
|
6062
|
+
/**
|
|
6063
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
6064
|
+
*/
|
|
6065
|
+
assetId?: string;
|
|
6066
|
+
/**
|
|
6067
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6068
|
+
*/
|
|
6069
|
+
minUtxoAmount?: number;
|
|
4505
6070
|
/**
|
|
4506
6071
|
* Boolean filter to include spent UTXOs.
|
|
4507
6072
|
*/
|
|
4508
6073
|
includeSpent?: boolean;
|
|
6074
|
+
/**
|
|
6075
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6076
|
+
*/
|
|
6077
|
+
sortBy?: UtxosSortByOption;
|
|
4509
6078
|
/**
|
|
4510
6079
|
* 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.
|
|
4511
6080
|
*/
|
|
4512
6081
|
sortOrder?: SortOrder;
|
|
4513
6082
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6083
|
+
/**
|
|
6084
|
+
* Get last activity timestamp by addresses
|
|
6085
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
|
|
6086
|
+
* @returns any Successful response
|
|
6087
|
+
* @throws ApiError
|
|
6088
|
+
*/
|
|
6089
|
+
getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
|
|
6090
|
+
/**
|
|
6091
|
+
* A primary network blockchain id or alias.
|
|
6092
|
+
*/
|
|
6093
|
+
blockchainId: BlockchainId;
|
|
6094
|
+
/**
|
|
6095
|
+
* Either mainnet or testnet/fuji.
|
|
6096
|
+
*/
|
|
6097
|
+
network: Network;
|
|
6098
|
+
/**
|
|
6099
|
+
* 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".
|
|
6100
|
+
*/
|
|
6101
|
+
addresses?: string;
|
|
6102
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
6103
|
+
/**
|
|
6104
|
+
* Get last activity timestamp by addresses v2
|
|
6105
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
|
|
6106
|
+
* @returns any Successful response
|
|
6107
|
+
* @throws ApiError
|
|
6108
|
+
*/
|
|
6109
|
+
getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
|
|
6110
|
+
/**
|
|
6111
|
+
* A primary network blockchain id or alias.
|
|
6112
|
+
*/
|
|
6113
|
+
blockchainId: BlockchainId;
|
|
6114
|
+
/**
|
|
6115
|
+
* Either mainnet or testnet/fuji.
|
|
6116
|
+
*/
|
|
6117
|
+
network: Network;
|
|
6118
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6119
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
4514
6120
|
}
|
|
4515
6121
|
|
|
4516
6122
|
type XChainVertex = {
|
|
@@ -4614,64 +6220,35 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4614
6220
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4615
6221
|
}
|
|
4616
6222
|
|
|
4617
|
-
type RpcErrorDto = {
|
|
4618
|
-
code: number;
|
|
4619
|
-
message: string;
|
|
4620
|
-
data?: Record<string, any>;
|
|
4621
|
-
};
|
|
4622
|
-
|
|
4623
|
-
type RpcErrorResponseDto = {
|
|
4624
|
-
jsonrpc: string;
|
|
4625
|
-
id?: (string | number);
|
|
4626
|
-
error: RpcErrorDto;
|
|
4627
|
-
};
|
|
4628
|
-
|
|
4629
|
-
type RpcRequestBodyDto = {
|
|
4630
|
-
method: string;
|
|
4631
|
-
params?: Record<string, any>;
|
|
4632
|
-
id?: (string | number);
|
|
4633
|
-
jsonrpc?: string;
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
|
-
type RpcSuccessResponseDto = {
|
|
4637
|
-
jsonrpc: string;
|
|
4638
|
-
id?: (string | number);
|
|
4639
|
-
result: Record<string, any>;
|
|
4640
|
-
};
|
|
4641
|
-
|
|
4642
|
-
declare class RpcService {
|
|
4643
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4644
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4645
|
-
/**
|
|
4646
|
-
* Calls JSON-RPC method
|
|
4647
|
-
* Calls JSON-RPC method.
|
|
4648
|
-
* @returns any Successful response
|
|
4649
|
-
* @throws ApiError
|
|
4650
|
-
*/
|
|
4651
|
-
rpc({ chainId, requestBody, }: {
|
|
4652
|
-
/**
|
|
4653
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4654
|
-
*/
|
|
4655
|
-
chainId: string;
|
|
4656
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4657
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
6223
|
type SignatureAggregationResponse = {
|
|
4661
6224
|
signedMessage: string;
|
|
4662
6225
|
};
|
|
4663
6226
|
|
|
4664
6227
|
type SignatureAggregatorRequest = {
|
|
4665
6228
|
/**
|
|
4666
|
-
*
|
|
6229
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4667
6230
|
*/
|
|
4668
6231
|
message?: string;
|
|
4669
6232
|
/**
|
|
4670
|
-
*
|
|
6233
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4671
6234
|
*/
|
|
4672
6235
|
justification?: string;
|
|
6236
|
+
/**
|
|
6237
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6238
|
+
*/
|
|
4673
6239
|
signingSubnetId?: string;
|
|
6240
|
+
/**
|
|
6241
|
+
* 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.
|
|
6242
|
+
*/
|
|
4674
6243
|
quorumPercentage?: number;
|
|
6244
|
+
/**
|
|
6245
|
+
* 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.
|
|
6246
|
+
*/
|
|
6247
|
+
quorumPercentageBuffer?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* 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.
|
|
6250
|
+
*/
|
|
6251
|
+
pChainHeight?: number;
|
|
4675
6252
|
};
|
|
4676
6253
|
|
|
4677
6254
|
declare class SignatureAggregatorService {
|
|
@@ -4683,9 +6260,29 @@ declare class SignatureAggregatorService {
|
|
|
4683
6260
|
* @returns SignatureAggregationResponse Successful response
|
|
4684
6261
|
* @throws ApiError
|
|
4685
6262
|
*/
|
|
4686
|
-
aggregateSignatures({ requestBody, }: {
|
|
6263
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6264
|
+
/**
|
|
6265
|
+
* Either mainnet or testnet/fuji.
|
|
6266
|
+
*/
|
|
6267
|
+
network: Network;
|
|
4687
6268
|
requestBody: SignatureAggregatorRequest;
|
|
4688
6269
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6270
|
+
/**
|
|
6271
|
+
* Get Aggregated Signatures
|
|
6272
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6273
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6274
|
+
* @throws ApiError
|
|
6275
|
+
*/
|
|
6276
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6277
|
+
/**
|
|
6278
|
+
* Either mainnet or testnet/fuji.
|
|
6279
|
+
*/
|
|
6280
|
+
network: Network;
|
|
6281
|
+
/**
|
|
6282
|
+
* A primary network (P or X chain) transaction hash.
|
|
6283
|
+
*/
|
|
6284
|
+
txHash: string;
|
|
6285
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4689
6286
|
}
|
|
4690
6287
|
|
|
4691
6288
|
type TeleporterDestinationTransaction = {
|
|
@@ -4819,15 +6416,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4819
6416
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4820
6417
|
*/
|
|
4821
6418
|
nextPageToken?: string;
|
|
4822
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6419
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4823
6420
|
};
|
|
4824
6421
|
|
|
4825
6422
|
declare class TeleporterService {
|
|
4826
6423
|
readonly httpRequest: BaseHttpRequest;
|
|
4827
6424
|
constructor(httpRequest: BaseHttpRequest);
|
|
4828
6425
|
/**
|
|
4829
|
-
*
|
|
4830
|
-
* Gets a teleporter message by message ID.
|
|
6426
|
+
* @deprecated
|
|
6427
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6428
|
+
*
|
|
6429
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4831
6430
|
* @returns any Successful response
|
|
4832
6431
|
* @throws ApiError
|
|
4833
6432
|
*/
|
|
@@ -4838,8 +6437,10 @@ declare class TeleporterService {
|
|
|
4838
6437
|
messageId: string;
|
|
4839
6438
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4840
6439
|
/**
|
|
4841
|
-
*
|
|
4842
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6440
|
+
* @deprecated
|
|
6441
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6442
|
+
*
|
|
6443
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4843
6444
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4844
6445
|
* @throws ApiError
|
|
4845
6446
|
*/
|
|
@@ -4878,8 +6479,10 @@ declare class TeleporterService {
|
|
|
4878
6479
|
network?: Network;
|
|
4879
6480
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4880
6481
|
/**
|
|
4881
|
-
*
|
|
4882
|
-
* Lists teleporter messages by address. Ordered by
|
|
6482
|
+
* @deprecated
|
|
6483
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6484
|
+
*
|
|
6485
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4883
6486
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4884
6487
|
* @throws ApiError
|
|
4885
6488
|
*/
|
|
@@ -4912,68 +6515,212 @@ type AddressesChangeRequest = {
|
|
|
4912
6515
|
|
|
4913
6516
|
type AddressActivityMetadata = {
|
|
4914
6517
|
/**
|
|
4915
|
-
*
|
|
6518
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6519
|
+
*/
|
|
6520
|
+
eventSignatures?: Array<string>;
|
|
6521
|
+
/**
|
|
6522
|
+
* 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.
|
|
4916
6523
|
*/
|
|
4917
6524
|
addresses: Array<string>;
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
type EVMAddressActivityRequest = {
|
|
6528
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6529
|
+
url: string;
|
|
6530
|
+
name?: string;
|
|
6531
|
+
description?: string;
|
|
6532
|
+
chainId: string;
|
|
6533
|
+
metadata: AddressActivityMetadata;
|
|
4918
6534
|
/**
|
|
4919
|
-
*
|
|
6535
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4920
6536
|
*/
|
|
4921
|
-
|
|
6537
|
+
includeInternalTxs?: boolean;
|
|
6538
|
+
/**
|
|
6539
|
+
* Whether to include logs in the webhook payload.
|
|
6540
|
+
*/
|
|
6541
|
+
includeLogs?: boolean;
|
|
4922
6542
|
};
|
|
6543
|
+
declare namespace EVMAddressActivityRequest {
|
|
6544
|
+
enum eventType {
|
|
6545
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
4923
6548
|
|
|
4924
|
-
declare enum
|
|
6549
|
+
declare enum AddressActivityEventType {
|
|
4925
6550
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4926
6551
|
}
|
|
4927
6552
|
|
|
4928
|
-
|
|
6553
|
+
declare enum WebhookStatusType {
|
|
6554
|
+
ACTIVE = "active",
|
|
6555
|
+
INACTIVE = "inactive"
|
|
6556
|
+
}
|
|
6557
|
+
|
|
6558
|
+
type EVMAddressActivityResponse = {
|
|
6559
|
+
id: string;
|
|
4929
6560
|
url: string;
|
|
4930
6561
|
chainId: string;
|
|
4931
|
-
|
|
6562
|
+
status: WebhookStatusType;
|
|
6563
|
+
createdAt: number;
|
|
6564
|
+
name: string;
|
|
6565
|
+
description: string;
|
|
6566
|
+
eventType: AddressActivityEventType;
|
|
4932
6567
|
metadata: AddressActivityMetadata;
|
|
4933
|
-
name?: string;
|
|
4934
|
-
description?: string;
|
|
4935
6568
|
/**
|
|
4936
|
-
* Whether to include traces in the webhook payload.
|
|
6569
|
+
* Whether to include traces in the webhook payload.
|
|
6570
|
+
*/
|
|
6571
|
+
includeInternalTxs?: boolean;
|
|
6572
|
+
/**
|
|
6573
|
+
* Whether to include logs in the webhook payload.
|
|
6574
|
+
*/
|
|
6575
|
+
includeLogs?: boolean;
|
|
6576
|
+
};
|
|
6577
|
+
|
|
6578
|
+
type ListWebhookAddressesResponse = {
|
|
6579
|
+
/**
|
|
6580
|
+
* 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.
|
|
6581
|
+
*/
|
|
6582
|
+
nextPageToken?: string;
|
|
6583
|
+
addresses: Array<string>;
|
|
6584
|
+
totalAddresses: number;
|
|
6585
|
+
};
|
|
6586
|
+
|
|
6587
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6588
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6589
|
+
}
|
|
6590
|
+
|
|
6591
|
+
/**
|
|
6592
|
+
* The type of key to monitor for the address activity event type.
|
|
6593
|
+
*/
|
|
6594
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6595
|
+
ADDRESSES = "addresses"
|
|
6596
|
+
}
|
|
6597
|
+
|
|
6598
|
+
/**
|
|
6599
|
+
* Array of address activity sub-event types
|
|
6600
|
+
*/
|
|
6601
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6602
|
+
BALANCE_CHANGE = "balance_change",
|
|
6603
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6604
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6607
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6608
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6609
|
+
};
|
|
6610
|
+
|
|
6611
|
+
/**
|
|
6612
|
+
* Type of balance to monitor
|
|
6613
|
+
*/
|
|
6614
|
+
declare enum CommonBalanceType {
|
|
6615
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6616
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6617
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6618
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6619
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6620
|
+
PENDING_STAKED = "pendingStaked",
|
|
6621
|
+
UNLOCKED = "unlocked",
|
|
6622
|
+
LOCKED = "locked",
|
|
6623
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6624
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6625
|
+
}
|
|
6626
|
+
|
|
6627
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6628
|
+
balanceType: CommonBalanceType;
|
|
6629
|
+
/**
|
|
6630
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6631
|
+
*/
|
|
6632
|
+
balanceThreshold: string;
|
|
6633
|
+
};
|
|
6634
|
+
|
|
6635
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6636
|
+
/**
|
|
6637
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6638
|
+
*/
|
|
6639
|
+
eventSignatures?: Array<string>;
|
|
6640
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6641
|
+
/**
|
|
6642
|
+
* 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.
|
|
6643
|
+
*/
|
|
6644
|
+
keys: Array<string>;
|
|
6645
|
+
/**
|
|
6646
|
+
* Sub-events to monitor
|
|
6647
|
+
*/
|
|
6648
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6649
|
+
/**
|
|
6650
|
+
* Balance threshold filter
|
|
6651
|
+
*/
|
|
6652
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6653
|
+
};
|
|
6654
|
+
|
|
6655
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6656
|
+
id: string;
|
|
6657
|
+
url: string;
|
|
6658
|
+
chainId: string;
|
|
6659
|
+
status: WebhookStatusType;
|
|
6660
|
+
createdAt: number;
|
|
6661
|
+
name: string;
|
|
6662
|
+
description: string;
|
|
6663
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6664
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6665
|
+
};
|
|
6666
|
+
|
|
6667
|
+
declare enum ValidatorActivityEventType {
|
|
6668
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6669
|
+
}
|
|
6670
|
+
|
|
6671
|
+
/**
|
|
6672
|
+
* The type of key to monitor for the validator activity event type.
|
|
6673
|
+
*/
|
|
6674
|
+
declare enum ValidatorActivityKeyType {
|
|
6675
|
+
NODE_ID = "nodeId",
|
|
6676
|
+
SUBNET_ID = "subnetId"
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
type ValidatorActivitySubEvents = {
|
|
6680
|
+
/**
|
|
6681
|
+
* Array of validator activity sub-event types
|
|
6682
|
+
*/
|
|
6683
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6684
|
+
};
|
|
6685
|
+
|
|
6686
|
+
type ValidatorActivityMetadata = {
|
|
6687
|
+
/**
|
|
6688
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6689
|
+
*/
|
|
6690
|
+
eventSignatures?: Array<string>;
|
|
6691
|
+
keyType: ValidatorActivityKeyType;
|
|
6692
|
+
/**
|
|
6693
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
4937
6694
|
*/
|
|
4938
|
-
|
|
6695
|
+
keys: Array<string>;
|
|
4939
6696
|
/**
|
|
4940
|
-
*
|
|
6697
|
+
* Sub-events to monitor
|
|
4941
6698
|
*/
|
|
4942
|
-
|
|
4943
|
-
};
|
|
4944
|
-
|
|
4945
|
-
type ListWebhookAddressesResponse = {
|
|
6699
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4946
6700
|
/**
|
|
4947
|
-
*
|
|
6701
|
+
* Array of node IDs to filter the events
|
|
4948
6702
|
*/
|
|
4949
|
-
|
|
4950
|
-
addresses: Array<string>;
|
|
4951
|
-
totalAddresses: number;
|
|
4952
|
-
};
|
|
4953
|
-
|
|
4954
|
-
declare enum WebhookStatusType {
|
|
4955
|
-
ACTIVE = "active",
|
|
4956
|
-
INACTIVE = "inactive"
|
|
4957
|
-
}
|
|
4958
|
-
|
|
4959
|
-
type WebhookResponse = {
|
|
4960
|
-
id: string;
|
|
4961
|
-
eventType: EventType;
|
|
4962
|
-
metadata: AddressActivityMetadata;
|
|
6703
|
+
nodeIds?: Array<string>;
|
|
4963
6704
|
/**
|
|
4964
|
-
*
|
|
6705
|
+
* Array of subnet IDs to filter the events
|
|
4965
6706
|
*/
|
|
4966
|
-
|
|
6707
|
+
subnetIds?: Array<string>;
|
|
4967
6708
|
/**
|
|
4968
|
-
*
|
|
6709
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4969
6710
|
*/
|
|
4970
|
-
|
|
6711
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6712
|
+
};
|
|
6713
|
+
|
|
6714
|
+
type ValidatorActivityResponse = {
|
|
6715
|
+
id: string;
|
|
4971
6716
|
url: string;
|
|
4972
6717
|
chainId: string;
|
|
4973
6718
|
status: WebhookStatusType;
|
|
4974
6719
|
createdAt: number;
|
|
4975
6720
|
name: string;
|
|
4976
6721
|
description: string;
|
|
6722
|
+
eventType: ValidatorActivityEventType;
|
|
6723
|
+
metadata: ValidatorActivityMetadata;
|
|
4977
6724
|
};
|
|
4978
6725
|
|
|
4979
6726
|
type ListWebhooksResponse = {
|
|
@@ -4981,8 +6728,26 @@ type ListWebhooksResponse = {
|
|
|
4981
6728
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4982
6729
|
*/
|
|
4983
6730
|
nextPageToken?: string;
|
|
4984
|
-
webhooks: Array<
|
|
6731
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6732
|
+
};
|
|
6733
|
+
|
|
6734
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6735
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6736
|
+
url: string;
|
|
6737
|
+
name?: string;
|
|
6738
|
+
description?: string;
|
|
6739
|
+
network: PrimaryNetworkType;
|
|
6740
|
+
chainId: string;
|
|
6741
|
+
/**
|
|
6742
|
+
* Metadata for platform address activity event
|
|
6743
|
+
*/
|
|
6744
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
4985
6745
|
};
|
|
6746
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6747
|
+
enum eventType {
|
|
6748
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6749
|
+
}
|
|
6750
|
+
}
|
|
4986
6751
|
|
|
4987
6752
|
type SharedSecretsResponse = {
|
|
4988
6753
|
secret: string;
|
|
@@ -4993,10 +6758,30 @@ type UpdateWebhookRequest = {
|
|
|
4993
6758
|
description?: string;
|
|
4994
6759
|
url?: string;
|
|
4995
6760
|
status?: WebhookStatusType;
|
|
6761
|
+
/**
|
|
6762
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6763
|
+
*/
|
|
4996
6764
|
includeInternalTxs?: boolean;
|
|
4997
6765
|
includeLogs?: boolean;
|
|
4998
6766
|
};
|
|
4999
6767
|
|
|
6768
|
+
type ValidatorActivityRequest = {
|
|
6769
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6770
|
+
url: string;
|
|
6771
|
+
name?: string;
|
|
6772
|
+
description?: string;
|
|
6773
|
+
network: PrimaryNetworkType;
|
|
6774
|
+
/**
|
|
6775
|
+
* Metadata for platform validator activity event
|
|
6776
|
+
*/
|
|
6777
|
+
metadata: ValidatorActivityMetadata;
|
|
6778
|
+
};
|
|
6779
|
+
declare namespace ValidatorActivityRequest {
|
|
6780
|
+
enum eventType {
|
|
6781
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6782
|
+
}
|
|
6783
|
+
}
|
|
6784
|
+
|
|
5000
6785
|
declare enum WebhookStatus {
|
|
5001
6786
|
ACTIVE = "active",
|
|
5002
6787
|
INACTIVE = "inactive"
|
|
@@ -5008,12 +6793,12 @@ declare class WebhooksService {
|
|
|
5008
6793
|
/**
|
|
5009
6794
|
* Create a webhook
|
|
5010
6795
|
* Create a new webhook.
|
|
5011
|
-
* @returns
|
|
6796
|
+
* @returns any Successful response
|
|
5012
6797
|
* @throws ApiError
|
|
5013
6798
|
*/
|
|
5014
6799
|
createWebhook({ requestBody, }: {
|
|
5015
|
-
requestBody:
|
|
5016
|
-
}): CancelablePromise<
|
|
6800
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6801
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5017
6802
|
/**
|
|
5018
6803
|
* List webhooks
|
|
5019
6804
|
* Lists webhooks for the user.
|
|
@@ -5037,7 +6822,7 @@ declare class WebhooksService {
|
|
|
5037
6822
|
/**
|
|
5038
6823
|
* Get a webhook by ID
|
|
5039
6824
|
* Retrieves a webhook by ID.
|
|
5040
|
-
* @returns
|
|
6825
|
+
* @returns any Successful response
|
|
5041
6826
|
* @throws ApiError
|
|
5042
6827
|
*/
|
|
5043
6828
|
getWebhook({ id, }: {
|
|
@@ -5045,11 +6830,11 @@ declare class WebhooksService {
|
|
|
5045
6830
|
* The webhook identifier.
|
|
5046
6831
|
*/
|
|
5047
6832
|
id: string;
|
|
5048
|
-
}): CancelablePromise<
|
|
6833
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5049
6834
|
/**
|
|
5050
6835
|
* Deactivate a webhook
|
|
5051
6836
|
* Deactivates a webhook by ID.
|
|
5052
|
-
* @returns
|
|
6837
|
+
* @returns any Successful response
|
|
5053
6838
|
* @throws ApiError
|
|
5054
6839
|
*/
|
|
5055
6840
|
deactivateWebhook({ id, }: {
|
|
@@ -5057,11 +6842,11 @@ declare class WebhooksService {
|
|
|
5057
6842
|
* The webhook identifier.
|
|
5058
6843
|
*/
|
|
5059
6844
|
id: string;
|
|
5060
|
-
}): CancelablePromise<
|
|
6845
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5061
6846
|
/**
|
|
5062
6847
|
* Update a webhook
|
|
5063
6848
|
* Updates an existing webhook.
|
|
5064
|
-
* @returns
|
|
6849
|
+
* @returns any Successful response
|
|
5065
6850
|
* @throws ApiError
|
|
5066
6851
|
*/
|
|
5067
6852
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5070,14 +6855,14 @@ declare class WebhooksService {
|
|
|
5070
6855
|
*/
|
|
5071
6856
|
id: string;
|
|
5072
6857
|
requestBody: UpdateWebhookRequest;
|
|
5073
|
-
}): CancelablePromise<
|
|
6858
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5074
6859
|
/**
|
|
5075
|
-
* Generate a shared secret
|
|
5076
|
-
* Generates a new shared secret.
|
|
6860
|
+
* Generate or rotate a shared secret
|
|
6861
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5077
6862
|
* @returns SharedSecretsResponse Successful response
|
|
5078
6863
|
* @throws ApiError
|
|
5079
6864
|
*/
|
|
5080
|
-
|
|
6865
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5081
6866
|
/**
|
|
5082
6867
|
* Get a shared secret
|
|
5083
6868
|
* Get a previously generated shared secret.
|
|
@@ -5086,9 +6871,9 @@ declare class WebhooksService {
|
|
|
5086
6871
|
*/
|
|
5087
6872
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5088
6873
|
/**
|
|
5089
|
-
* Add addresses to webhook
|
|
5090
|
-
* Add addresses to webhook.
|
|
5091
|
-
* @returns
|
|
6874
|
+
* Add addresses to EVM activity webhook
|
|
6875
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6876
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5092
6877
|
* @throws ApiError
|
|
5093
6878
|
*/
|
|
5094
6879
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5097,11 +6882,11 @@ declare class WebhooksService {
|
|
|
5097
6882
|
*/
|
|
5098
6883
|
id: string;
|
|
5099
6884
|
requestBody: AddressesChangeRequest;
|
|
5100
|
-
}): CancelablePromise<
|
|
6885
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5101
6886
|
/**
|
|
5102
|
-
* Remove addresses from webhook
|
|
5103
|
-
* Remove addresses from webhook.
|
|
5104
|
-
* @returns
|
|
6887
|
+
* Remove addresses from EVM activity webhook
|
|
6888
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6889
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5105
6890
|
* @throws ApiError
|
|
5106
6891
|
*/
|
|
5107
6892
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5110,10 +6895,10 @@ declare class WebhooksService {
|
|
|
5110
6895
|
*/
|
|
5111
6896
|
id: string;
|
|
5112
6897
|
requestBody: AddressesChangeRequest;
|
|
5113
|
-
}): CancelablePromise<
|
|
6898
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5114
6899
|
/**
|
|
5115
|
-
* List adresses by
|
|
5116
|
-
* List adresses by webhook.
|
|
6900
|
+
* List adresses by EVM activity webhooks
|
|
6901
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5117
6902
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5118
6903
|
* @throws ApiError
|
|
5119
6904
|
*/
|
|
@@ -5135,6 +6920,7 @@ declare class WebhooksService {
|
|
|
5135
6920
|
|
|
5136
6921
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5137
6922
|
declare class Glacier {
|
|
6923
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5138
6924
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5139
6925
|
readonly default: DefaultService;
|
|
5140
6926
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5143,7 +6929,9 @@ declare class Glacier {
|
|
|
5143
6929
|
readonly evmContracts: EvmContractsService;
|
|
5144
6930
|
readonly evmTransactions: EvmTransactionsService;
|
|
5145
6931
|
readonly healthCheck: HealthCheckService;
|
|
6932
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5146
6933
|
readonly nfTs: NfTsService;
|
|
6934
|
+
readonly notifications: NotificationsService;
|
|
5147
6935
|
readonly operations: OperationsService;
|
|
5148
6936
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5149
6937
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5152,7 +6940,6 @@ declare class Glacier {
|
|
|
5152
6940
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5153
6941
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5154
6942
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5155
|
-
readonly rpc: RpcService;
|
|
5156
6943
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5157
6944
|
readonly teleporter: TeleporterService;
|
|
5158
6945
|
readonly webhooks: WebhooksService;
|
|
@@ -5177,6 +6964,17 @@ declare class ApiError extends Error {
|
|
|
5177
6964
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5178
6965
|
}
|
|
5179
6966
|
|
|
6967
|
+
type AccessListData = {
|
|
6968
|
+
/**
|
|
6969
|
+
* Access Address
|
|
6970
|
+
*/
|
|
6971
|
+
accessAddresses: string;
|
|
6972
|
+
/**
|
|
6973
|
+
* Storage keys
|
|
6974
|
+
*/
|
|
6975
|
+
storageKeys: Array<string>;
|
|
6976
|
+
};
|
|
6977
|
+
|
|
5180
6978
|
type BadGateway = {
|
|
5181
6979
|
/**
|
|
5182
6980
|
* The error message describing the reason for the exception
|
|
@@ -5211,6 +7009,76 @@ type DataListChainsResponse = {
|
|
|
5211
7009
|
chains: Array<ChainInfo>;
|
|
5212
7010
|
};
|
|
5213
7011
|
|
|
7012
|
+
type ERCToken = {
|
|
7013
|
+
/**
|
|
7014
|
+
* Token contract address
|
|
7015
|
+
*/
|
|
7016
|
+
address: string;
|
|
7017
|
+
/**
|
|
7018
|
+
* Token name
|
|
7019
|
+
*/
|
|
7020
|
+
name: string;
|
|
7021
|
+
/**
|
|
7022
|
+
* Token symbol
|
|
7023
|
+
*/
|
|
7024
|
+
symbol: string;
|
|
7025
|
+
/**
|
|
7026
|
+
* Token decimals
|
|
7027
|
+
*/
|
|
7028
|
+
decimals: number;
|
|
7029
|
+
/**
|
|
7030
|
+
* Value including decimals
|
|
7031
|
+
*/
|
|
7032
|
+
valueWithDecimals: string;
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
type ERCTransfer = {
|
|
7036
|
+
/**
|
|
7037
|
+
* Transaction hash
|
|
7038
|
+
*/
|
|
7039
|
+
transactionHash: string;
|
|
7040
|
+
/**
|
|
7041
|
+
* Transfer type
|
|
7042
|
+
*/
|
|
7043
|
+
type: string;
|
|
7044
|
+
/**
|
|
7045
|
+
* Sender address
|
|
7046
|
+
*/
|
|
7047
|
+
from: string;
|
|
7048
|
+
/**
|
|
7049
|
+
* Recipient address
|
|
7050
|
+
*/
|
|
7051
|
+
to: string;
|
|
7052
|
+
/**
|
|
7053
|
+
* Amount transferred
|
|
7054
|
+
*/
|
|
7055
|
+
value: string;
|
|
7056
|
+
/**
|
|
7057
|
+
* Token Id
|
|
7058
|
+
*/
|
|
7059
|
+
tokenId?: string;
|
|
7060
|
+
/**
|
|
7061
|
+
* Block timestamp
|
|
7062
|
+
*/
|
|
7063
|
+
blockTimestamp: number;
|
|
7064
|
+
/**
|
|
7065
|
+
* Log index
|
|
7066
|
+
*/
|
|
7067
|
+
logIndex: number;
|
|
7068
|
+
/**
|
|
7069
|
+
* erc20 Token details
|
|
7070
|
+
*/
|
|
7071
|
+
erc20Token?: ERCToken;
|
|
7072
|
+
/**
|
|
7073
|
+
* erc721 Token details
|
|
7074
|
+
*/
|
|
7075
|
+
erc721Token?: ERCToken;
|
|
7076
|
+
/**
|
|
7077
|
+
* erc1155 Token details
|
|
7078
|
+
*/
|
|
7079
|
+
erc1155Token?: ERCToken;
|
|
7080
|
+
};
|
|
7081
|
+
|
|
5214
7082
|
type Forbidden = {
|
|
5215
7083
|
/**
|
|
5216
7084
|
* The error message describing the reason for the exception
|
|
@@ -5241,6 +7109,64 @@ type InternalServerError = {
|
|
|
5241
7109
|
error: string;
|
|
5242
7110
|
};
|
|
5243
7111
|
|
|
7112
|
+
type Log = {
|
|
7113
|
+
/**
|
|
7114
|
+
* Contract address
|
|
7115
|
+
*/
|
|
7116
|
+
address: string;
|
|
7117
|
+
/**
|
|
7118
|
+
* First topic
|
|
7119
|
+
*/
|
|
7120
|
+
topic0: string;
|
|
7121
|
+
/**
|
|
7122
|
+
* Second topic (optional)
|
|
7123
|
+
*/
|
|
7124
|
+
topic1?: string;
|
|
7125
|
+
/**
|
|
7126
|
+
* Third topic (optional)
|
|
7127
|
+
*/
|
|
7128
|
+
topic2?: string;
|
|
7129
|
+
/**
|
|
7130
|
+
* Fourth topic (optional)
|
|
7131
|
+
*/
|
|
7132
|
+
topic3?: string;
|
|
7133
|
+
/**
|
|
7134
|
+
* Event data
|
|
7135
|
+
*/
|
|
7136
|
+
data: string;
|
|
7137
|
+
/**
|
|
7138
|
+
* Transaction index
|
|
7139
|
+
*/
|
|
7140
|
+
transactionIndex: number;
|
|
7141
|
+
/**
|
|
7142
|
+
* Log index
|
|
7143
|
+
*/
|
|
7144
|
+
logIndex: number;
|
|
7145
|
+
/**
|
|
7146
|
+
* Indicates if the log was removed
|
|
7147
|
+
*/
|
|
7148
|
+
removed: boolean;
|
|
7149
|
+
};
|
|
7150
|
+
|
|
7151
|
+
type NetworkTokenInfo = {
|
|
7152
|
+
/**
|
|
7153
|
+
* Token name
|
|
7154
|
+
*/
|
|
7155
|
+
tokenName?: string;
|
|
7156
|
+
/**
|
|
7157
|
+
* Token symbol
|
|
7158
|
+
*/
|
|
7159
|
+
tokenSymbol?: string;
|
|
7160
|
+
/**
|
|
7161
|
+
* Token decimals
|
|
7162
|
+
*/
|
|
7163
|
+
tokenDecimals?: number;
|
|
7164
|
+
/**
|
|
7165
|
+
* Value including decimals
|
|
7166
|
+
*/
|
|
7167
|
+
valueWithDecimals?: string;
|
|
7168
|
+
};
|
|
7169
|
+
|
|
5244
7170
|
type NextPageToken = {
|
|
5245
7171
|
/**
|
|
5246
7172
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5293,6 +7219,163 @@ type TooManyRequests = {
|
|
|
5293
7219
|
error: string;
|
|
5294
7220
|
};
|
|
5295
7221
|
|
|
7222
|
+
type WebhookInternalTransaction = {
|
|
7223
|
+
/**
|
|
7224
|
+
* Sender address
|
|
7225
|
+
*/
|
|
7226
|
+
from: string;
|
|
7227
|
+
/**
|
|
7228
|
+
* Recipient address
|
|
7229
|
+
*/
|
|
7230
|
+
to: string;
|
|
7231
|
+
/**
|
|
7232
|
+
* Internal transaction type
|
|
7233
|
+
*/
|
|
7234
|
+
internalTxType: string;
|
|
7235
|
+
/**
|
|
7236
|
+
* Value transferred
|
|
7237
|
+
*/
|
|
7238
|
+
value: string;
|
|
7239
|
+
/**
|
|
7240
|
+
* Gas used
|
|
7241
|
+
*/
|
|
7242
|
+
gasUsed: string;
|
|
7243
|
+
/**
|
|
7244
|
+
* Gas limit
|
|
7245
|
+
*/
|
|
7246
|
+
gasLimit: string;
|
|
7247
|
+
/**
|
|
7248
|
+
* Transaction hash
|
|
7249
|
+
*/
|
|
7250
|
+
transactionHash: string;
|
|
7251
|
+
};
|
|
7252
|
+
|
|
7253
|
+
type Transaction = {
|
|
7254
|
+
/**
|
|
7255
|
+
* Block hash of the transaction
|
|
7256
|
+
*/
|
|
7257
|
+
blockHash: string;
|
|
7258
|
+
/**
|
|
7259
|
+
* Block number of the transaction
|
|
7260
|
+
*/
|
|
7261
|
+
blockNumber: string;
|
|
7262
|
+
/**
|
|
7263
|
+
* Sender address
|
|
7264
|
+
*/
|
|
7265
|
+
from: string;
|
|
7266
|
+
/**
|
|
7267
|
+
* Gas limit for the transaction
|
|
7268
|
+
*/
|
|
7269
|
+
gas: string;
|
|
7270
|
+
/**
|
|
7271
|
+
* Gas price used
|
|
7272
|
+
*/
|
|
7273
|
+
gasPrice: string;
|
|
7274
|
+
/**
|
|
7275
|
+
* Maximum fee per gas
|
|
7276
|
+
*/
|
|
7277
|
+
maxFeePerGas: string;
|
|
7278
|
+
/**
|
|
7279
|
+
* Maximum priority fee per gas
|
|
7280
|
+
*/
|
|
7281
|
+
maxPriorityFeePerGas: string;
|
|
7282
|
+
/**
|
|
7283
|
+
* Transaction hash
|
|
7284
|
+
*/
|
|
7285
|
+
txHash: string;
|
|
7286
|
+
/**
|
|
7287
|
+
* Transaction status
|
|
7288
|
+
*/
|
|
7289
|
+
txStatus: string;
|
|
7290
|
+
/**
|
|
7291
|
+
* Input data
|
|
7292
|
+
*/
|
|
7293
|
+
input: string;
|
|
7294
|
+
/**
|
|
7295
|
+
* Nonce value
|
|
7296
|
+
*/
|
|
7297
|
+
nonce: string;
|
|
7298
|
+
/**
|
|
7299
|
+
* Recipient address
|
|
7300
|
+
*/
|
|
7301
|
+
to: string;
|
|
7302
|
+
/**
|
|
7303
|
+
* Transaction index
|
|
7304
|
+
*/
|
|
7305
|
+
transactionIndex: number;
|
|
7306
|
+
/**
|
|
7307
|
+
* Value transferred in the transaction
|
|
7308
|
+
*/
|
|
7309
|
+
value: string;
|
|
7310
|
+
/**
|
|
7311
|
+
* Transaction type
|
|
7312
|
+
*/
|
|
7313
|
+
type: number;
|
|
7314
|
+
/**
|
|
7315
|
+
* Chain ID of the network
|
|
7316
|
+
*/
|
|
7317
|
+
chainId: string;
|
|
7318
|
+
/**
|
|
7319
|
+
* Cumulative gas used
|
|
7320
|
+
*/
|
|
7321
|
+
receiptCumulativeGasUsed: string;
|
|
7322
|
+
/**
|
|
7323
|
+
* Gas used
|
|
7324
|
+
*/
|
|
7325
|
+
receiptGasUsed: string;
|
|
7326
|
+
/**
|
|
7327
|
+
* Effective gas price
|
|
7328
|
+
*/
|
|
7329
|
+
receiptEffectiveGasPrice: string;
|
|
7330
|
+
/**
|
|
7331
|
+
* Receipt root
|
|
7332
|
+
*/
|
|
7333
|
+
receiptRoot: string;
|
|
7334
|
+
/**
|
|
7335
|
+
* Block timestamp
|
|
7336
|
+
*/
|
|
7337
|
+
blockTimestamp: number;
|
|
7338
|
+
/**
|
|
7339
|
+
* Contract address (optional)
|
|
7340
|
+
*/
|
|
7341
|
+
contractAddress?: string;
|
|
7342
|
+
/**
|
|
7343
|
+
* ERC20 transfers
|
|
7344
|
+
*/
|
|
7345
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7346
|
+
/**
|
|
7347
|
+
* ERC721 transfers
|
|
7348
|
+
*/
|
|
7349
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7350
|
+
/**
|
|
7351
|
+
* ERC1155 transfers
|
|
7352
|
+
*/
|
|
7353
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7354
|
+
/**
|
|
7355
|
+
* Internal transactions (optional)
|
|
7356
|
+
*/
|
|
7357
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7358
|
+
/**
|
|
7359
|
+
* Access list (optional)
|
|
7360
|
+
*/
|
|
7361
|
+
accessList?: Array<AccessListData>;
|
|
7362
|
+
/**
|
|
7363
|
+
* Network token info (optional)
|
|
7364
|
+
*/
|
|
7365
|
+
networkToken?: NetworkTokenInfo;
|
|
7366
|
+
};
|
|
7367
|
+
|
|
7368
|
+
type TransactionEvent = {
|
|
7369
|
+
/**
|
|
7370
|
+
* Transaction details
|
|
7371
|
+
*/
|
|
7372
|
+
transaction: Transaction;
|
|
7373
|
+
/**
|
|
7374
|
+
* Array of log events
|
|
7375
|
+
*/
|
|
7376
|
+
logs?: Array<Log>;
|
|
7377
|
+
};
|
|
7378
|
+
|
|
5296
7379
|
type Unauthorized = {
|
|
5297
7380
|
/**
|
|
5298
7381
|
* The error message describing the reason for the exception
|
|
@@ -5308,4 +7391,43 @@ type Unauthorized = {
|
|
|
5308
7391
|
error: string;
|
|
5309
7392
|
};
|
|
5310
7393
|
|
|
5311
|
-
|
|
7394
|
+
type WebhookAddressActivityResponse = {
|
|
7395
|
+
/**
|
|
7396
|
+
* Webhook ID
|
|
7397
|
+
*/
|
|
7398
|
+
webhookId: string;
|
|
7399
|
+
/**
|
|
7400
|
+
* Event type
|
|
7401
|
+
*/
|
|
7402
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7403
|
+
/**
|
|
7404
|
+
* Message ID
|
|
7405
|
+
*/
|
|
7406
|
+
messageId: string;
|
|
7407
|
+
/**
|
|
7408
|
+
* Event details
|
|
7409
|
+
*/
|
|
7410
|
+
event: TransactionEvent;
|
|
7411
|
+
};
|
|
7412
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7413
|
+
/**
|
|
7414
|
+
* Event type
|
|
7415
|
+
*/
|
|
7416
|
+
enum eventType {
|
|
7417
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7418
|
+
}
|
|
7419
|
+
}
|
|
7420
|
+
|
|
7421
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7422
|
+
constructor(config: OpenAPIConfig);
|
|
7423
|
+
/**
|
|
7424
|
+
* Request method
|
|
7425
|
+
* @param options The request options from the service
|
|
7426
|
+
* @returns CancelablePromise<T>
|
|
7427
|
+
* @throws ApiError
|
|
7428
|
+
*/
|
|
7429
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7430
|
+
}
|
|
7431
|
+
|
|
7432
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20TokenV2, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7433
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, 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, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransactionDetailsResponseV2, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionDetailsV2, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|