@avalabs/glacier-sdk 3.1.0-canary.979d9e5.0 → 3.1.0-canary.9974863.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2332 -410
- 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 +2 -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/Erc20Transfer.d.ts +2 -2
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- 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 +2 -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 +2 -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/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/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/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 +35 -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 +56 -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 +71 -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,7 +2221,7 @@ 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;
|
|
1792
2227
|
/**
|
|
@@ -1818,7 +2253,7 @@ type Erc20Transfer = {
|
|
|
1818
2253
|
*/
|
|
1819
2254
|
blockNumber: string;
|
|
1820
2255
|
/**
|
|
1821
|
-
* The block
|
|
2256
|
+
* The block creation (proposal) timestamp in seconds
|
|
1822
2257
|
*/
|
|
1823
2258
|
blockTimestamp: number;
|
|
1824
2259
|
/**
|
|
@@ -1850,7 +2285,7 @@ type Erc721Transfer = {
|
|
|
1850
2285
|
*/
|
|
1851
2286
|
blockNumber: string;
|
|
1852
2287
|
/**
|
|
1853
|
-
* The block
|
|
2288
|
+
* The block creation (proposal) timestamp in seconds
|
|
1854
2289
|
*/
|
|
1855
2290
|
blockTimestamp: number;
|
|
1856
2291
|
/**
|
|
@@ -1881,7 +2316,7 @@ type InternalTransaction = {
|
|
|
1881
2316
|
*/
|
|
1882
2317
|
blockNumber: string;
|
|
1883
2318
|
/**
|
|
1884
|
-
* The block
|
|
2319
|
+
* The block creation (proposal) timestamp in seconds
|
|
1885
2320
|
*/
|
|
1886
2321
|
blockTimestamp: number;
|
|
1887
2322
|
/**
|
|
@@ -1912,97 +2347,38 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2347
|
transactions: Array<InternalTransaction>;
|
|
1913
2348
|
};
|
|
1914
2349
|
|
|
1915
|
-
type
|
|
2350
|
+
type TransactionDetails = {
|
|
1916
2351
|
/**
|
|
1917
|
-
* The
|
|
2352
|
+
* The native (top-level) transaction details.
|
|
1918
2353
|
*/
|
|
1919
|
-
|
|
2354
|
+
nativeTransaction: NativeTransaction;
|
|
1920
2355
|
/**
|
|
1921
|
-
* The
|
|
2356
|
+
* The list of ERC-20 transfers.
|
|
1922
2357
|
*/
|
|
1923
|
-
|
|
2358
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1924
2359
|
/**
|
|
1925
|
-
* The
|
|
2360
|
+
* The list of ERC-721 transfers.
|
|
1926
2361
|
*/
|
|
1927
|
-
|
|
2362
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1928
2363
|
/**
|
|
1929
|
-
* The
|
|
2364
|
+
* The list of ERC-1155 transfers.
|
|
1930
2365
|
*/
|
|
1931
|
-
|
|
2366
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1932
2367
|
/**
|
|
1933
|
-
* The
|
|
2368
|
+
* 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
2369
|
*/
|
|
1935
|
-
|
|
2370
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2371
|
+
};
|
|
2372
|
+
|
|
2373
|
+
type ListTransactionDetailsResponse = {
|
|
1936
2374
|
/**
|
|
1937
|
-
*
|
|
2375
|
+
* 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
2376
|
*/
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
/**
|
|
1945
|
-
* The gas limit set for the transaction.
|
|
1946
|
-
*/
|
|
1947
|
-
gasLimit: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* The amount of gas used.
|
|
1950
|
-
*/
|
|
1951
|
-
gasUsed: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1954
|
-
*/
|
|
1955
|
-
gasPrice: string;
|
|
1956
|
-
/**
|
|
1957
|
-
* The nonce used by the sender of the transaction.
|
|
1958
|
-
*/
|
|
1959
|
-
nonce: string;
|
|
1960
|
-
from: RichAddress;
|
|
1961
|
-
to: RichAddress;
|
|
1962
|
-
method?: Method;
|
|
1963
|
-
value: string;
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
type ListNativeTransactionsResponse = {
|
|
1967
|
-
/**
|
|
1968
|
-
* 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.
|
|
1969
|
-
*/
|
|
1970
|
-
nextPageToken?: string;
|
|
1971
|
-
transactions: Array<NativeTransaction>;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
type TransactionDetails = {
|
|
1975
|
-
/**
|
|
1976
|
-
* The native (top-level) transaction details.
|
|
1977
|
-
*/
|
|
1978
|
-
nativeTransaction: NativeTransaction;
|
|
1979
|
-
/**
|
|
1980
|
-
* The list of ERC-20 transfers.
|
|
1981
|
-
*/
|
|
1982
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1983
|
-
/**
|
|
1984
|
-
* The list of ERC-721 transfers.
|
|
1985
|
-
*/
|
|
1986
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1987
|
-
/**
|
|
1988
|
-
* The list of ERC-1155 transfers.
|
|
1989
|
-
*/
|
|
1990
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1991
|
-
/**
|
|
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 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1993
|
-
*/
|
|
1994
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
type ListTransactionDetailsResponse = {
|
|
1998
|
-
/**
|
|
1999
|
-
* 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
|
-
*/
|
|
2001
|
-
nextPageToken?: string;
|
|
2002
|
-
transactions: Array<TransactionDetails>;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
type ListTransfersResponse = {
|
|
2377
|
+
nextPageToken?: string;
|
|
2378
|
+
transactions: Array<TransactionDetails>;
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
type ListTransfersResponse = {
|
|
2006
2382
|
/**
|
|
2007
2383
|
* 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.
|
|
2008
2384
|
*/
|
|
@@ -2015,14 +2391,33 @@ declare enum SortOrder {
|
|
|
2015
2391
|
DESC = "desc"
|
|
2016
2392
|
}
|
|
2017
2393
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2394
|
declare class EvmTransactionsService {
|
|
2024
2395
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
2396
|
constructor(httpRequest: BaseHttpRequest);
|
|
2397
|
+
/**
|
|
2398
|
+
* List the latest transactions across all supported EVM chains
|
|
2399
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2400
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2401
|
+
* @throws ApiError
|
|
2402
|
+
*/
|
|
2403
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2404
|
+
/**
|
|
2405
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2406
|
+
*/
|
|
2407
|
+
pageToken?: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2410
|
+
*/
|
|
2411
|
+
pageSize?: number;
|
|
2412
|
+
/**
|
|
2413
|
+
* Either mainnet or testnet/fuji.
|
|
2414
|
+
*/
|
|
2415
|
+
network?: Network;
|
|
2416
|
+
/**
|
|
2417
|
+
* A status filter for listed transactions.
|
|
2418
|
+
*/
|
|
2419
|
+
status?: TransactionStatus;
|
|
2420
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2026
2421
|
/**
|
|
2027
2422
|
* Get deployment transaction
|
|
2028
2423
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2269,7 +2664,7 @@ declare class EvmTransactionsService {
|
|
|
2269
2664
|
* List internal transactions
|
|
2270
2665
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
2666
|
*
|
|
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.
|
|
2667
|
+
* 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
2668
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
2669
|
* @throws ApiError
|
|
2275
2670
|
*/
|
|
@@ -2321,7 +2716,7 @@ declare class EvmTransactionsService {
|
|
|
2321
2716
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2717
|
* @throws ApiError
|
|
2323
2718
|
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2719
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2325
2720
|
/**
|
|
2326
2721
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2327
2722
|
*/
|
|
@@ -2330,6 +2725,14 @@ declare class EvmTransactionsService {
|
|
|
2330
2725
|
* A block identifier which is either a block number or the block hash.
|
|
2331
2726
|
*/
|
|
2332
2727
|
blockId: string;
|
|
2728
|
+
/**
|
|
2729
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2730
|
+
*/
|
|
2731
|
+
pageToken?: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2734
|
+
*/
|
|
2735
|
+
pageSize?: number;
|
|
2333
2736
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2334
2737
|
/**
|
|
2335
2738
|
* List latest transactions
|
|
@@ -2357,68 +2760,211 @@ declare class EvmTransactionsService {
|
|
|
2357
2760
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2358
2761
|
}
|
|
2359
2762
|
|
|
2763
|
+
type HealthIndicatorResultDto = {
|
|
2764
|
+
/**
|
|
2765
|
+
* Status of the health indicator.
|
|
2766
|
+
*/
|
|
2767
|
+
status?: HealthIndicatorResultDto.status;
|
|
2768
|
+
};
|
|
2769
|
+
declare namespace HealthIndicatorResultDto {
|
|
2770
|
+
/**
|
|
2771
|
+
* Status of the health indicator.
|
|
2772
|
+
*/
|
|
2773
|
+
enum status {
|
|
2774
|
+
UP = "up",
|
|
2775
|
+
DOWN = "down"
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
type HealthCheckResultDto = {
|
|
2780
|
+
status?: HealthCheckResultDto.status;
|
|
2781
|
+
info?: any | null;
|
|
2782
|
+
error?: any | null;
|
|
2783
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2784
|
+
};
|
|
2785
|
+
declare namespace HealthCheckResultDto {
|
|
2786
|
+
enum status {
|
|
2787
|
+
ERROR = "error",
|
|
2788
|
+
OK = "ok",
|
|
2789
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2360
2793
|
declare class HealthCheckService {
|
|
2361
2794
|
readonly httpRequest: BaseHttpRequest;
|
|
2362
2795
|
constructor(httpRequest: BaseHttpRequest);
|
|
2363
2796
|
/**
|
|
2364
2797
|
* Get the health of the service
|
|
2365
|
-
*
|
|
2798
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2799
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2366
2800
|
* @throws ApiError
|
|
2367
2801
|
*/
|
|
2368
|
-
dataHealthCheck(): CancelablePromise<
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2802
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2803
|
+
/**
|
|
2804
|
+
* Get the liveliness of the service (reads only)
|
|
2805
|
+
* Check the liveliness of the service (reads only).
|
|
2806
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2807
|
+
* @throws ApiError
|
|
2808
|
+
*/
|
|
2809
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2374
2810
|
}
|
|
2375
2811
|
|
|
2376
|
-
type
|
|
2812
|
+
type IcmDestinationTransaction = {
|
|
2813
|
+
txHash: string;
|
|
2814
|
+
timestamp: number;
|
|
2815
|
+
gasSpent: string;
|
|
2816
|
+
rewardRedeemer: string;
|
|
2817
|
+
delivererAddress: string;
|
|
2818
|
+
};
|
|
2819
|
+
|
|
2820
|
+
type IcmReceipt = {
|
|
2821
|
+
receivedMessageNonce: string;
|
|
2822
|
+
relayerRewardAddress: string;
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
type IcmRewardDetails = {
|
|
2826
|
+
/**
|
|
2827
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2828
|
+
*/
|
|
2829
|
+
address: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* The contract name.
|
|
2832
|
+
*/
|
|
2833
|
+
name: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* The contract symbol.
|
|
2836
|
+
*/
|
|
2837
|
+
symbol: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2840
|
+
*/
|
|
2841
|
+
decimals: number;
|
|
2842
|
+
/**
|
|
2843
|
+
* The logo uri for the address.
|
|
2844
|
+
*/
|
|
2845
|
+
logoUri?: string;
|
|
2846
|
+
ercType: IcmRewardDetails.ercType;
|
|
2847
|
+
/**
|
|
2848
|
+
* The token price, if available.
|
|
2849
|
+
*/
|
|
2850
|
+
price?: Money;
|
|
2851
|
+
value: string;
|
|
2852
|
+
};
|
|
2853
|
+
declare namespace IcmRewardDetails {
|
|
2854
|
+
enum ercType {
|
|
2855
|
+
ERC_20 = "ERC-20"
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
type IcmSourceTransaction = {
|
|
2860
|
+
txHash: string;
|
|
2861
|
+
timestamp: number;
|
|
2862
|
+
gasSpent: string;
|
|
2863
|
+
};
|
|
2864
|
+
|
|
2865
|
+
type DeliveredIcmMessage = {
|
|
2866
|
+
messageId: string;
|
|
2867
|
+
icmContractAddress: string;
|
|
2868
|
+
sourceBlockchainId: string;
|
|
2869
|
+
destinationBlockchainId: string;
|
|
2870
|
+
sourceEvmChainId: string;
|
|
2871
|
+
destinationEvmChainId: string;
|
|
2872
|
+
messageNonce: string;
|
|
2873
|
+
from: string;
|
|
2874
|
+
to: string;
|
|
2875
|
+
data?: string;
|
|
2876
|
+
messageExecuted: boolean;
|
|
2877
|
+
receipts: Array<IcmReceipt>;
|
|
2878
|
+
receiptDelivered: boolean;
|
|
2879
|
+
rewardDetails: IcmRewardDetails;
|
|
2880
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2881
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2882
|
+
status: DeliveredIcmMessage.status;
|
|
2883
|
+
};
|
|
2884
|
+
declare namespace DeliveredIcmMessage {
|
|
2885
|
+
enum status {
|
|
2886
|
+
DELIVERED = "delivered"
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2891
|
+
messageId: string;
|
|
2892
|
+
icmContractAddress: string;
|
|
2893
|
+
sourceBlockchainId: string;
|
|
2894
|
+
destinationBlockchainId: string;
|
|
2895
|
+
sourceEvmChainId: string;
|
|
2896
|
+
destinationEvmChainId: string;
|
|
2897
|
+
messageNonce: string;
|
|
2898
|
+
from: string;
|
|
2899
|
+
to: string;
|
|
2900
|
+
data?: string;
|
|
2901
|
+
messageExecuted: boolean;
|
|
2902
|
+
receipts: Array<IcmReceipt>;
|
|
2903
|
+
receiptDelivered: boolean;
|
|
2904
|
+
rewardDetails: IcmRewardDetails;
|
|
2905
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2906
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2907
|
+
};
|
|
2908
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2909
|
+
enum status {
|
|
2910
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
type PendingIcmMessage = {
|
|
2915
|
+
messageId: string;
|
|
2916
|
+
icmContractAddress: string;
|
|
2917
|
+
sourceBlockchainId: string;
|
|
2918
|
+
destinationBlockchainId: string;
|
|
2919
|
+
sourceEvmChainId: string;
|
|
2920
|
+
destinationEvmChainId: string;
|
|
2921
|
+
messageNonce: string;
|
|
2922
|
+
from: string;
|
|
2923
|
+
to: string;
|
|
2924
|
+
data?: string;
|
|
2925
|
+
messageExecuted: boolean;
|
|
2926
|
+
receipts: Array<IcmReceipt>;
|
|
2927
|
+
receiptDelivered: boolean;
|
|
2928
|
+
rewardDetails: IcmRewardDetails;
|
|
2929
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2930
|
+
status: PendingIcmMessage.status;
|
|
2931
|
+
};
|
|
2932
|
+
declare namespace PendingIcmMessage {
|
|
2933
|
+
enum status {
|
|
2934
|
+
PENDING = "pending"
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
type ListIcmMessagesResponse = {
|
|
2377
2939
|
/**
|
|
2378
2940
|
* 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.
|
|
2379
2941
|
*/
|
|
2380
2942
|
nextPageToken?: string;
|
|
2381
|
-
|
|
2943
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2382
2944
|
};
|
|
2383
2945
|
|
|
2384
|
-
declare class
|
|
2946
|
+
declare class InterchainMessagingService {
|
|
2385
2947
|
readonly httpRequest: BaseHttpRequest;
|
|
2386
2948
|
constructor(httpRequest: BaseHttpRequest);
|
|
2387
2949
|
/**
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2950
|
+
* Get an ICM message
|
|
2951
|
+
* Gets an ICM message by teleporter message ID.
|
|
2390
2952
|
* @returns any Successful response
|
|
2391
2953
|
* @throws ApiError
|
|
2392
2954
|
*/
|
|
2393
|
-
|
|
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;
|
|
2955
|
+
getIcmMessage({ messageId, }: {
|
|
2402
2956
|
/**
|
|
2403
|
-
*
|
|
2957
|
+
* The teleporter message ID of the ICM message.
|
|
2404
2958
|
*/
|
|
2405
|
-
|
|
2406
|
-
}): CancelablePromise<
|
|
2959
|
+
messageId: string;
|
|
2960
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2407
2961
|
/**
|
|
2408
|
-
* List
|
|
2409
|
-
* Lists
|
|
2410
|
-
* @returns
|
|
2962
|
+
* List ICM messages
|
|
2963
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2964
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2411
2965
|
* @throws ApiError
|
|
2412
2966
|
*/
|
|
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;
|
|
2967
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2422
2968
|
/**
|
|
2423
2969
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2424
2970
|
*/
|
|
@@ -2427,22 +2973,127 @@ declare class NfTsService {
|
|
|
2427
2973
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2428
2974
|
*/
|
|
2429
2975
|
pageSize?: number;
|
|
2430
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2431
|
-
/**
|
|
2432
|
-
* Get token details
|
|
2433
|
-
* Gets token details for a specific token of an NFT contract.
|
|
2434
|
-
* @returns any Successful response
|
|
2435
|
-
* @throws ApiError
|
|
2436
|
-
*/
|
|
2437
|
-
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2438
2976
|
/**
|
|
2439
|
-
*
|
|
2977
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2440
2978
|
*/
|
|
2441
|
-
|
|
2979
|
+
sourceBlockchainId?: string;
|
|
2442
2980
|
/**
|
|
2443
|
-
*
|
|
2981
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2444
2982
|
*/
|
|
2445
|
-
|
|
2983
|
+
destinationBlockchainId?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2986
|
+
*/
|
|
2987
|
+
blockchainId?: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* The address of the recipient of the ICM message.
|
|
2990
|
+
*/
|
|
2991
|
+
to?: string;
|
|
2992
|
+
/**
|
|
2993
|
+
* The address of the sender of the ICM message.
|
|
2994
|
+
*/
|
|
2995
|
+
from?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* Either mainnet or testnet/fuji.
|
|
2998
|
+
*/
|
|
2999
|
+
network?: Network;
|
|
3000
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3001
|
+
/**
|
|
3002
|
+
* List ICM messages by address
|
|
3003
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3004
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3005
|
+
* @throws ApiError
|
|
3006
|
+
*/
|
|
3007
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
3008
|
+
/**
|
|
3009
|
+
* An EVM address.
|
|
3010
|
+
*/
|
|
3011
|
+
address: string;
|
|
3012
|
+
/**
|
|
3013
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3014
|
+
*/
|
|
3015
|
+
pageToken?: string;
|
|
3016
|
+
/**
|
|
3017
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3018
|
+
*/
|
|
3019
|
+
pageSize?: number;
|
|
3020
|
+
/**
|
|
3021
|
+
* Either mainnet or testnet/fuji.
|
|
3022
|
+
*/
|
|
3023
|
+
network?: Network;
|
|
3024
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
type ListNftTokens = {
|
|
3028
|
+
/**
|
|
3029
|
+
* 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.
|
|
3030
|
+
*/
|
|
3031
|
+
nextPageToken?: string;
|
|
3032
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
declare class NfTsService {
|
|
3036
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3037
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3038
|
+
/**
|
|
3039
|
+
* Reindex NFT metadata
|
|
3040
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3041
|
+
* @returns any Successful response
|
|
3042
|
+
* @throws ApiError
|
|
3043
|
+
*/
|
|
3044
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3045
|
+
/**
|
|
3046
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3047
|
+
*/
|
|
3048
|
+
chainId: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* Contract address on the relevant chain.
|
|
3051
|
+
*/
|
|
3052
|
+
address: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* TokenId on the contract
|
|
3055
|
+
*/
|
|
3056
|
+
tokenId: string;
|
|
3057
|
+
}): CancelablePromise<any>;
|
|
3058
|
+
/**
|
|
3059
|
+
* List tokens
|
|
3060
|
+
* Lists tokens for an NFT contract.
|
|
3061
|
+
* @returns ListNftTokens Successful response
|
|
3062
|
+
* @throws ApiError
|
|
3063
|
+
*/
|
|
3064
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3065
|
+
/**
|
|
3066
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3067
|
+
*/
|
|
3068
|
+
chainId: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* Contract address on the relevant chain.
|
|
3071
|
+
*/
|
|
3072
|
+
address: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3075
|
+
*/
|
|
3076
|
+
pageToken?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3079
|
+
*/
|
|
3080
|
+
pageSize?: number;
|
|
3081
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3082
|
+
/**
|
|
3083
|
+
* Get token details
|
|
3084
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3085
|
+
* @returns any Successful response
|
|
3086
|
+
* @throws ApiError
|
|
3087
|
+
*/
|
|
3088
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3089
|
+
/**
|
|
3090
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3091
|
+
*/
|
|
3092
|
+
chainId: string;
|
|
3093
|
+
/**
|
|
3094
|
+
* Contract address on the relevant chain.
|
|
3095
|
+
*/
|
|
3096
|
+
address: string;
|
|
2446
3097
|
/**
|
|
2447
3098
|
* TokenId on the contract
|
|
2448
3099
|
*/
|
|
@@ -2450,6 +3101,108 @@ declare class NfTsService {
|
|
|
2450
3101
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2451
3102
|
}
|
|
2452
3103
|
|
|
3104
|
+
type AccessRequest = {
|
|
3105
|
+
/**
|
|
3106
|
+
* The email address to send the access token to
|
|
3107
|
+
*/
|
|
3108
|
+
email: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* The captcha to verify the user
|
|
3111
|
+
*/
|
|
3112
|
+
captcha: string;
|
|
3113
|
+
};
|
|
3114
|
+
|
|
3115
|
+
type NotificationsResponse = {
|
|
3116
|
+
message: string;
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
type SubscribeRequest = {
|
|
3120
|
+
/**
|
|
3121
|
+
* The access token to use for authentication
|
|
3122
|
+
*/
|
|
3123
|
+
accessToken: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* The node ID to subscribe to
|
|
3126
|
+
*/
|
|
3127
|
+
nodeId: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3130
|
+
*/
|
|
3131
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
type SubscriptionsRequest = {
|
|
3135
|
+
/**
|
|
3136
|
+
* The access token to use for authentication
|
|
3137
|
+
*/
|
|
3138
|
+
accessToken: string;
|
|
3139
|
+
};
|
|
3140
|
+
|
|
3141
|
+
type SubscriptionsResponse = {
|
|
3142
|
+
/**
|
|
3143
|
+
* The email address of the user
|
|
3144
|
+
*/
|
|
3145
|
+
email: string;
|
|
3146
|
+
/**
|
|
3147
|
+
* The subscriptions of the user
|
|
3148
|
+
*/
|
|
3149
|
+
subscriptions: Record<string, {
|
|
3150
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3151
|
+
}>;
|
|
3152
|
+
};
|
|
3153
|
+
|
|
3154
|
+
type UnsubscribeRequest = {
|
|
3155
|
+
/**
|
|
3156
|
+
* The access token to use for authentication
|
|
3157
|
+
*/
|
|
3158
|
+
accessToken: string;
|
|
3159
|
+
/**
|
|
3160
|
+
* The node ID to subscribe to
|
|
3161
|
+
*/
|
|
3162
|
+
nodeId: string;
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
declare class NotificationsService {
|
|
3166
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3167
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3168
|
+
/**
|
|
3169
|
+
* Access Notifications
|
|
3170
|
+
* Access notifications.
|
|
3171
|
+
* @returns NotificationsResponse Successful response
|
|
3172
|
+
* @throws ApiError
|
|
3173
|
+
*/
|
|
3174
|
+
access({ requestBody, }: {
|
|
3175
|
+
requestBody: AccessRequest;
|
|
3176
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3177
|
+
/**
|
|
3178
|
+
* Subscribe to Notifications
|
|
3179
|
+
* Subscribe to receive notifications.
|
|
3180
|
+
* @returns NotificationsResponse Successful response
|
|
3181
|
+
* @throws ApiError
|
|
3182
|
+
*/
|
|
3183
|
+
subscribe({ requestBody, }: {
|
|
3184
|
+
requestBody: SubscribeRequest;
|
|
3185
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3186
|
+
/**
|
|
3187
|
+
* Unsubscribe from Notifications
|
|
3188
|
+
* Unsubscribe from receiving notifications.
|
|
3189
|
+
* @returns NotificationsResponse Successful response
|
|
3190
|
+
* @throws ApiError
|
|
3191
|
+
*/
|
|
3192
|
+
unsubscribe({ requestBody, }: {
|
|
3193
|
+
requestBody: UnsubscribeRequest;
|
|
3194
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3195
|
+
/**
|
|
3196
|
+
* Get Subscriptions
|
|
3197
|
+
* Get subscriptions.
|
|
3198
|
+
* @returns SubscriptionsResponse Successful response
|
|
3199
|
+
* @throws ApiError
|
|
3200
|
+
*/
|
|
3201
|
+
subscriptions({ requestBody, }: {
|
|
3202
|
+
requestBody: SubscriptionsRequest;
|
|
3203
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
2453
3206
|
type EvmNetworkOptions = {
|
|
2454
3207
|
addresses: Array<string>;
|
|
2455
3208
|
includeChains: Array<string>;
|
|
@@ -2483,7 +3236,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2483
3236
|
type PrimaryNetworkOptions = {
|
|
2484
3237
|
addresses?: Array<string>;
|
|
2485
3238
|
cChainEvmAddresses?: Array<string>;
|
|
2486
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3239
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2487
3240
|
};
|
|
2488
3241
|
|
|
2489
3242
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2538,7 +3291,7 @@ type OperationStatusResponse = {
|
|
|
2538
3291
|
operationType: OperationType;
|
|
2539
3292
|
operationStatus: OperationStatus;
|
|
2540
3293
|
message?: string;
|
|
2541
|
-
metadata
|
|
3294
|
+
metadata?: TransactionExportMetadata;
|
|
2542
3295
|
createdAtTimestamp: number;
|
|
2543
3296
|
updatedAtTimestamp: number;
|
|
2544
3297
|
};
|
|
@@ -2571,14 +3324,275 @@ declare class OperationsService {
|
|
|
2571
3324
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2572
3325
|
}
|
|
2573
3326
|
|
|
3327
|
+
type EvmGenesisAllocDto = {
|
|
3328
|
+
/**
|
|
3329
|
+
* Account balance in hex format
|
|
3330
|
+
*/
|
|
3331
|
+
balance?: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* Contract bytecode in hex format
|
|
3334
|
+
*/
|
|
3335
|
+
code?: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* Contract storage slots
|
|
3338
|
+
*/
|
|
3339
|
+
storage?: Record<string, string>;
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3343
|
+
/**
|
|
3344
|
+
* Block timestamp
|
|
3345
|
+
*/
|
|
3346
|
+
blockTimestamp?: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Admin addresses
|
|
3349
|
+
*/
|
|
3350
|
+
adminAddresses?: Array<string>;
|
|
3351
|
+
/**
|
|
3352
|
+
* Manager addresses
|
|
3353
|
+
*/
|
|
3354
|
+
managerAddresses?: Array<string>;
|
|
3355
|
+
/**
|
|
3356
|
+
* Enabled addresses
|
|
3357
|
+
*/
|
|
3358
|
+
enabledAddresses?: Array<string>;
|
|
3359
|
+
};
|
|
3360
|
+
|
|
3361
|
+
type EvmGenesisFeeConfigDto = {
|
|
3362
|
+
/**
|
|
3363
|
+
* Base fee change denominator
|
|
3364
|
+
*/
|
|
3365
|
+
baseFeeChangeDenominator?: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Block gas cost step
|
|
3368
|
+
*/
|
|
3369
|
+
blockGasCostStep?: number;
|
|
3370
|
+
/**
|
|
3371
|
+
* Gas limit
|
|
3372
|
+
*/
|
|
3373
|
+
gasLimit?: number;
|
|
3374
|
+
/**
|
|
3375
|
+
* Maximum block gas cost
|
|
3376
|
+
*/
|
|
3377
|
+
maxBlockGasCost?: number;
|
|
3378
|
+
/**
|
|
3379
|
+
* Minimum base fee
|
|
3380
|
+
*/
|
|
3381
|
+
minBaseFee?: number;
|
|
3382
|
+
/**
|
|
3383
|
+
* Minimum block gas cost
|
|
3384
|
+
*/
|
|
3385
|
+
minBlockGasCost?: number;
|
|
3386
|
+
/**
|
|
3387
|
+
* Target block rate
|
|
3388
|
+
*/
|
|
3389
|
+
targetBlockRate?: number;
|
|
3390
|
+
/**
|
|
3391
|
+
* Target gas
|
|
3392
|
+
*/
|
|
3393
|
+
targetGas?: number;
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
type EvmGenesisWarpConfigDto = {
|
|
3397
|
+
/**
|
|
3398
|
+
* Block timestamp
|
|
3399
|
+
*/
|
|
3400
|
+
blockTimestamp?: number;
|
|
3401
|
+
/**
|
|
3402
|
+
* Quorum numerator
|
|
3403
|
+
*/
|
|
3404
|
+
quorumNumerator?: number;
|
|
3405
|
+
/**
|
|
3406
|
+
* Require primary network signers
|
|
3407
|
+
*/
|
|
3408
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3411
|
+
type EvmGenesisConfigDto = {
|
|
3412
|
+
/**
|
|
3413
|
+
* Berlin block number
|
|
3414
|
+
*/
|
|
3415
|
+
berlinBlock?: number;
|
|
3416
|
+
/**
|
|
3417
|
+
* Byzantium block number
|
|
3418
|
+
*/
|
|
3419
|
+
byzantiumBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* Chain ID
|
|
3422
|
+
*/
|
|
3423
|
+
chainId?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* Constantinople block number
|
|
3426
|
+
*/
|
|
3427
|
+
constantinopleBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* EIP-150 block number
|
|
3430
|
+
*/
|
|
3431
|
+
eip150Block?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* EIP-150 hash
|
|
3434
|
+
*/
|
|
3435
|
+
eip150Hash?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* EIP-155 block number
|
|
3438
|
+
*/
|
|
3439
|
+
eip155Block?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* EIP-158 block number
|
|
3442
|
+
*/
|
|
3443
|
+
eip158Block?: number;
|
|
3444
|
+
/**
|
|
3445
|
+
* Fee configuration
|
|
3446
|
+
*/
|
|
3447
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Homestead block number
|
|
3450
|
+
*/
|
|
3451
|
+
homesteadBlock?: number;
|
|
3452
|
+
/**
|
|
3453
|
+
* Istanbul block number
|
|
3454
|
+
*/
|
|
3455
|
+
istanbulBlock?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* London block number
|
|
3458
|
+
*/
|
|
3459
|
+
londonBlock?: number;
|
|
3460
|
+
/**
|
|
3461
|
+
* Muir Glacier block number
|
|
3462
|
+
*/
|
|
3463
|
+
muirGlacierBlock?: number;
|
|
3464
|
+
/**
|
|
3465
|
+
* Petersburg block number
|
|
3466
|
+
*/
|
|
3467
|
+
petersburgBlock?: number;
|
|
3468
|
+
/**
|
|
3469
|
+
* Subnet EVM timestamp
|
|
3470
|
+
*/
|
|
3471
|
+
subnetEVMTimestamp?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* Allow fee recipients
|
|
3474
|
+
*/
|
|
3475
|
+
allowFeeRecipients?: boolean;
|
|
3476
|
+
/**
|
|
3477
|
+
* Warp configuration
|
|
3478
|
+
*/
|
|
3479
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3480
|
+
/**
|
|
3481
|
+
* Transaction allow list configuration
|
|
3482
|
+
*/
|
|
3483
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3484
|
+
/**
|
|
3485
|
+
* Contract deployer allow list configuration
|
|
3486
|
+
*/
|
|
3487
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3488
|
+
/**
|
|
3489
|
+
* Contract native minter configuration
|
|
3490
|
+
*/
|
|
3491
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3492
|
+
/**
|
|
3493
|
+
* Fee manager configuration
|
|
3494
|
+
*/
|
|
3495
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3496
|
+
/**
|
|
3497
|
+
* Reward manager configuration
|
|
3498
|
+
*/
|
|
3499
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
type EvmGenesisDto = {
|
|
3503
|
+
/**
|
|
3504
|
+
* Airdrop amount
|
|
3505
|
+
*/
|
|
3506
|
+
airdropAmount?: number | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Airdrop hash
|
|
3509
|
+
*/
|
|
3510
|
+
airdropHash?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Allocation of accounts and balances
|
|
3513
|
+
*/
|
|
3514
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3515
|
+
/**
|
|
3516
|
+
* Base fee per gas
|
|
3517
|
+
*/
|
|
3518
|
+
baseFeePerGas?: number | null;
|
|
3519
|
+
/**
|
|
3520
|
+
* Blob gas used
|
|
3521
|
+
*/
|
|
3522
|
+
blobGasUsed?: string | null;
|
|
3523
|
+
/**
|
|
3524
|
+
* Coinbase address
|
|
3525
|
+
*/
|
|
3526
|
+
coinbase?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Genesis configuration
|
|
3529
|
+
*/
|
|
3530
|
+
config?: EvmGenesisConfigDto;
|
|
3531
|
+
/**
|
|
3532
|
+
* Difficulty
|
|
3533
|
+
*/
|
|
3534
|
+
difficulty?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Excess blob gas
|
|
3537
|
+
*/
|
|
3538
|
+
excessBlobGas?: string | null;
|
|
3539
|
+
/**
|
|
3540
|
+
* Extra data
|
|
3541
|
+
*/
|
|
3542
|
+
extraData?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Gas limit
|
|
3545
|
+
*/
|
|
3546
|
+
gasLimit?: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* Gas used
|
|
3549
|
+
*/
|
|
3550
|
+
gasUsed?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* Mix hash
|
|
3553
|
+
*/
|
|
3554
|
+
mixHash?: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* Nonce
|
|
3557
|
+
*/
|
|
3558
|
+
nonce?: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* Block number
|
|
3561
|
+
*/
|
|
3562
|
+
number?: string;
|
|
3563
|
+
/**
|
|
3564
|
+
* Parent hash
|
|
3565
|
+
*/
|
|
3566
|
+
parentHash?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Block timestamp
|
|
3569
|
+
*/
|
|
3570
|
+
timestamp?: string;
|
|
3571
|
+
};
|
|
3572
|
+
|
|
3573
|
+
type Blockchain = {
|
|
3574
|
+
createBlockTimestamp: number;
|
|
3575
|
+
createBlockNumber: string;
|
|
3576
|
+
blockchainId: string;
|
|
3577
|
+
vmId: string;
|
|
3578
|
+
subnetId: string;
|
|
3579
|
+
blockchainName: string;
|
|
3580
|
+
/**
|
|
3581
|
+
* 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.
|
|
3582
|
+
*/
|
|
3583
|
+
evmChainId?: number;
|
|
3584
|
+
/**
|
|
3585
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3586
|
+
*/
|
|
3587
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3588
|
+
};
|
|
3589
|
+
|
|
2574
3590
|
declare enum BlockchainIds {
|
|
2575
3591
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2576
3592
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2577
3593
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2579
3594
|
_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"
|
|
3595
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2582
3596
|
}
|
|
2583
3597
|
|
|
2584
3598
|
type ChainAddressChainIdMap = {
|
|
@@ -2602,16 +3616,31 @@ type DelegatorsDetails = {
|
|
|
2602
3616
|
};
|
|
2603
3617
|
|
|
2604
3618
|
type StakingDistribution = {
|
|
3619
|
+
/**
|
|
3620
|
+
* AvalancheGo version for the validator node.
|
|
3621
|
+
*/
|
|
2605
3622
|
version: string;
|
|
3623
|
+
/**
|
|
3624
|
+
* The total amount staked by validators using this version.
|
|
3625
|
+
*/
|
|
2606
3626
|
amountStaked: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* The number of validators using this version.
|
|
3629
|
+
*/
|
|
2607
3630
|
validatorCount: number;
|
|
2608
3631
|
};
|
|
2609
3632
|
|
|
2610
3633
|
type ValidatorsDetails = {
|
|
2611
3634
|
validatorCount: number;
|
|
2612
3635
|
totalAmountStaked: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3638
|
+
*/
|
|
2613
3639
|
estimatedAnnualStakingReward: string;
|
|
2614
3640
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3641
|
+
/**
|
|
3642
|
+
* Ratio of total active stake amount to the current supply.
|
|
3643
|
+
*/
|
|
2615
3644
|
stakingRatio: string;
|
|
2616
3645
|
};
|
|
2617
3646
|
|
|
@@ -2620,15 +3649,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2620
3649
|
delegatorDetails: DelegatorsDetails;
|
|
2621
3650
|
};
|
|
2622
3651
|
|
|
2623
|
-
type Blockchain = {
|
|
2624
|
-
createBlockTimestamp: number;
|
|
2625
|
-
createBlockNumber: string;
|
|
2626
|
-
blockchainId: string;
|
|
2627
|
-
vmId: string;
|
|
2628
|
-
subnetId: string;
|
|
2629
|
-
blockchainName: string;
|
|
2630
|
-
};
|
|
2631
|
-
|
|
2632
3652
|
type ListBlockchainsResponse = {
|
|
2633
3653
|
/**
|
|
2634
3654
|
* 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 +3683,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3683
|
delegationFee: string;
|
|
2664
3684
|
startTimestamp: number;
|
|
2665
3685
|
endTimestamp: number;
|
|
3686
|
+
/**
|
|
3687
|
+
* Total rewards distributed for the successful delegation.
|
|
3688
|
+
*/
|
|
2666
3689
|
grossReward: string;
|
|
3690
|
+
/**
|
|
3691
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3692
|
+
*/
|
|
2667
3693
|
netReward: string;
|
|
2668
3694
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3695
|
};
|
|
@@ -2681,7 +3707,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3707
|
delegationFee: string;
|
|
2682
3708
|
startTimestamp: number;
|
|
2683
3709
|
endTimestamp: number;
|
|
3710
|
+
/**
|
|
3711
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3712
|
+
*/
|
|
2684
3713
|
estimatedGrossReward: string;
|
|
3714
|
+
/**
|
|
3715
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3716
|
+
*/
|
|
2685
3717
|
estimatedNetReward: string;
|
|
2686
3718
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3719
|
};
|
|
@@ -2702,8 +3734,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3734
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3735
|
};
|
|
2704
3736
|
|
|
2705
|
-
type
|
|
3737
|
+
type BalanceOwner = {
|
|
3738
|
+
addresses: Array<string>;
|
|
3739
|
+
threshold: number;
|
|
3740
|
+
};
|
|
3741
|
+
|
|
3742
|
+
type L1ValidatorDetailsFull = {
|
|
3743
|
+
/**
|
|
3744
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3745
|
+
*/
|
|
3746
|
+
validationId: string;
|
|
3747
|
+
/**
|
|
3748
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3749
|
+
*/
|
|
3750
|
+
validationIdHex: string;
|
|
3751
|
+
nodeId: string;
|
|
3752
|
+
subnetId: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* 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
|
|
3755
|
+
*/
|
|
3756
|
+
weight: number;
|
|
3757
|
+
/**
|
|
3758
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3759
|
+
*/
|
|
3760
|
+
remainingBalance: number;
|
|
3761
|
+
/**
|
|
3762
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3763
|
+
*/
|
|
3764
|
+
creationTimestamp: number;
|
|
3765
|
+
blsCredentials: Record<string, any>;
|
|
3766
|
+
/**
|
|
3767
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3768
|
+
*/
|
|
3769
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3770
|
+
/**
|
|
3771
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3772
|
+
*/
|
|
3773
|
+
deactivationOwner: BalanceOwner;
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
type ListL1ValidatorsResponse = {
|
|
3777
|
+
/**
|
|
3778
|
+
* 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.
|
|
3779
|
+
*/
|
|
3780
|
+
nextPageToken?: string;
|
|
3781
|
+
/**
|
|
3782
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3783
|
+
*/
|
|
3784
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3785
|
+
/**
|
|
3786
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3787
|
+
*/
|
|
3788
|
+
blockHeight: string;
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
type L1ValidatorManagerDetails = {
|
|
2706
3792
|
blockchainId: string;
|
|
3793
|
+
contractAddress: string;
|
|
2707
3794
|
};
|
|
2708
3795
|
|
|
2709
3796
|
type SubnetOwnershipInfo = {
|
|
@@ -2744,7 +3831,19 @@ type Subnet = {
|
|
|
2744
3831
|
* Latest subnet owner details for this Subnet.
|
|
2745
3832
|
*/
|
|
2746
3833
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2747
|
-
|
|
3834
|
+
/**
|
|
3835
|
+
* Whether the subnet is an L1 or not.
|
|
3836
|
+
*/
|
|
3837
|
+
isL1: boolean;
|
|
3838
|
+
/**
|
|
3839
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3840
|
+
*/
|
|
3841
|
+
l1ConversionTransactionHash?: string;
|
|
3842
|
+
/**
|
|
3843
|
+
* L1 validator manager details.
|
|
3844
|
+
*/
|
|
3845
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3846
|
+
blockchains: Array<Blockchain>;
|
|
2748
3847
|
};
|
|
2749
3848
|
|
|
2750
3849
|
type ListSubnetsResponse = {
|
|
@@ -2760,6 +3859,29 @@ type BlsCredentials = {
|
|
|
2760
3859
|
proofOfPossession: string;
|
|
2761
3860
|
};
|
|
2762
3861
|
|
|
3862
|
+
type Geolocation = {
|
|
3863
|
+
/**
|
|
3864
|
+
* The name of the validator node.
|
|
3865
|
+
*/
|
|
3866
|
+
city: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* The city of the validator node.
|
|
3869
|
+
*/
|
|
3870
|
+
country: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* The country code of the validator node.
|
|
3873
|
+
*/
|
|
3874
|
+
countryCode: string;
|
|
3875
|
+
/**
|
|
3876
|
+
* The latitude of the validator node.
|
|
3877
|
+
*/
|
|
3878
|
+
latitude: number;
|
|
3879
|
+
/**
|
|
3880
|
+
* The longitude of the validator node.
|
|
3881
|
+
*/
|
|
3882
|
+
longitude: number;
|
|
3883
|
+
};
|
|
3884
|
+
|
|
2763
3885
|
type Rewards = {
|
|
2764
3886
|
validationRewardAmount: string;
|
|
2765
3887
|
delegationRewardAmount: string;
|
|
@@ -2791,6 +3913,9 @@ type ActiveValidatorDetails = {
|
|
|
2791
3913
|
nodeId: string;
|
|
2792
3914
|
subnetId: string;
|
|
2793
3915
|
amountStaked: string;
|
|
3916
|
+
/**
|
|
3917
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3918
|
+
*/
|
|
2794
3919
|
delegationFee?: string;
|
|
2795
3920
|
startTimestamp: number;
|
|
2796
3921
|
endTimestamp: number;
|
|
@@ -2798,15 +3923,37 @@ type ActiveValidatorDetails = {
|
|
|
2798
3923
|
* Present for AddPermissionlessValidatorTx
|
|
2799
3924
|
*/
|
|
2800
3925
|
blsCredentials?: BlsCredentials;
|
|
3926
|
+
/**
|
|
3927
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3928
|
+
*/
|
|
2801
3929
|
stakePercentage: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* The number of delegators linked to the validator.
|
|
3932
|
+
*/
|
|
2802
3933
|
delegatorCount: number;
|
|
3934
|
+
/**
|
|
3935
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3936
|
+
*/
|
|
2803
3937
|
amountDelegated?: string;
|
|
3938
|
+
/**
|
|
3939
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3940
|
+
*/
|
|
2804
3941
|
uptimePerformance: number;
|
|
2805
3942
|
avalancheGoVersion?: string;
|
|
3943
|
+
/**
|
|
3944
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3945
|
+
*/
|
|
2806
3946
|
delegationCapacity?: string;
|
|
3947
|
+
/**
|
|
3948
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3949
|
+
*/
|
|
2807
3950
|
potentialRewards: Rewards;
|
|
2808
3951
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
3952
|
validatorHealth: ValidatorHealthDetails;
|
|
3953
|
+
/**
|
|
3954
|
+
* The geographical location of the validator node, if available.
|
|
3955
|
+
*/
|
|
3956
|
+
geolocation: Geolocation | null;
|
|
2810
3957
|
};
|
|
2811
3958
|
declare namespace ActiveValidatorDetails {
|
|
2812
3959
|
enum validationStatus {
|
|
@@ -2819,6 +3966,9 @@ type CompletedValidatorDetails = {
|
|
|
2819
3966
|
nodeId: string;
|
|
2820
3967
|
subnetId: string;
|
|
2821
3968
|
amountStaked: string;
|
|
3969
|
+
/**
|
|
3970
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3971
|
+
*/
|
|
2822
3972
|
delegationFee?: string;
|
|
2823
3973
|
startTimestamp: number;
|
|
2824
3974
|
endTimestamp: number;
|
|
@@ -2842,6 +3992,9 @@ type PendingValidatorDetails = {
|
|
|
2842
3992
|
nodeId: string;
|
|
2843
3993
|
subnetId: string;
|
|
2844
3994
|
amountStaked: string;
|
|
3995
|
+
/**
|
|
3996
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3997
|
+
*/
|
|
2845
3998
|
delegationFee?: string;
|
|
2846
3999
|
startTimestamp: number;
|
|
2847
4000
|
endTimestamp: number;
|
|
@@ -2862,6 +4015,9 @@ type RemovedValidatorDetails = {
|
|
|
2862
4015
|
nodeId: string;
|
|
2863
4016
|
subnetId: string;
|
|
2864
4017
|
amountStaked: string;
|
|
4018
|
+
/**
|
|
4019
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4020
|
+
*/
|
|
2865
4021
|
delegationFee?: string;
|
|
2866
4022
|
startTimestamp: number;
|
|
2867
4023
|
endTimestamp: number;
|
|
@@ -2869,7 +4025,13 @@ type RemovedValidatorDetails = {
|
|
|
2869
4025
|
* Present for AddPermissionlessValidatorTx
|
|
2870
4026
|
*/
|
|
2871
4027
|
blsCredentials?: BlsCredentials;
|
|
4028
|
+
/**
|
|
4029
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4030
|
+
*/
|
|
2872
4031
|
removeTxHash: string;
|
|
4032
|
+
/**
|
|
4033
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4034
|
+
*/
|
|
2873
4035
|
removeTimestamp: number;
|
|
2874
4036
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
4037
|
};
|
|
@@ -2949,7 +4111,6 @@ type XChainAssetDetails = {
|
|
|
2949
4111
|
declare enum XChainId {
|
|
2950
4112
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2951
4113
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2953
4114
|
X_CHAIN = "x-chain"
|
|
2954
4115
|
}
|
|
2955
4116
|
|
|
@@ -3020,7 +4181,7 @@ declare class PrimaryNetworkService {
|
|
|
3020
4181
|
*/
|
|
3021
4182
|
pageToken?: string;
|
|
3022
4183
|
/**
|
|
3023
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4184
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3024
4185
|
*/
|
|
3025
4186
|
pageSize?: number;
|
|
3026
4187
|
/**
|
|
@@ -3028,6 +4189,22 @@ declare class PrimaryNetworkService {
|
|
|
3028
4189
|
*/
|
|
3029
4190
|
sortOrder?: SortOrder;
|
|
3030
4191
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4192
|
+
/**
|
|
4193
|
+
* Get blockchain details by ID
|
|
4194
|
+
* Get details of the blockchain registered on the network.
|
|
4195
|
+
* @returns Blockchain Successful response
|
|
4196
|
+
* @throws ApiError
|
|
4197
|
+
*/
|
|
4198
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4199
|
+
/**
|
|
4200
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4201
|
+
*/
|
|
4202
|
+
blockchainId: string;
|
|
4203
|
+
/**
|
|
4204
|
+
* Either mainnet or testnet/fuji.
|
|
4205
|
+
*/
|
|
4206
|
+
network: Network;
|
|
4207
|
+
}): CancelablePromise<Blockchain>;
|
|
3031
4208
|
/**
|
|
3032
4209
|
* List subnets
|
|
3033
4210
|
* Lists all subnets registered on the network.
|
|
@@ -3044,7 +4221,7 @@ declare class PrimaryNetworkService {
|
|
|
3044
4221
|
*/
|
|
3045
4222
|
pageToken?: string;
|
|
3046
4223
|
/**
|
|
3047
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4224
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3048
4225
|
*/
|
|
3049
4226
|
pageSize?: number;
|
|
3050
4227
|
/**
|
|
@@ -3070,7 +4247,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
4247
|
}): CancelablePromise<Subnet>;
|
|
3071
4248
|
/**
|
|
3072
4249
|
* List validators
|
|
3073
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4250
|
+
* 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
4251
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3075
4252
|
* @throws ApiError
|
|
3076
4253
|
*/
|
|
@@ -3088,7 +4265,7 @@ declare class PrimaryNetworkService {
|
|
|
3088
4265
|
*/
|
|
3089
4266
|
pageSize?: number;
|
|
3090
4267
|
/**
|
|
3091
|
-
* A comma separated list of node ids to filter by.
|
|
4268
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3092
4269
|
*/
|
|
3093
4270
|
nodeIds?: string;
|
|
3094
4271
|
/**
|
|
@@ -3210,16 +4387,47 @@ declare class PrimaryNetworkService {
|
|
|
3210
4387
|
*/
|
|
3211
4388
|
nodeIds?: string;
|
|
3212
4389
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4390
|
+
/**
|
|
4391
|
+
* List L1 validators
|
|
4392
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4393
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4394
|
+
* @throws ApiError
|
|
4395
|
+
*/
|
|
4396
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4397
|
+
/**
|
|
4398
|
+
* Either mainnet or testnet/fuji.
|
|
4399
|
+
*/
|
|
4400
|
+
network: Network;
|
|
4401
|
+
/**
|
|
4402
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4403
|
+
*/
|
|
4404
|
+
pageToken?: string;
|
|
4405
|
+
/**
|
|
4406
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4407
|
+
*/
|
|
4408
|
+
pageSize?: number;
|
|
4409
|
+
/**
|
|
4410
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4411
|
+
*/
|
|
4412
|
+
l1ValidationId?: string;
|
|
4413
|
+
includeInactiveL1Validators?: boolean;
|
|
4414
|
+
/**
|
|
4415
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4416
|
+
*/
|
|
4417
|
+
nodeId?: string;
|
|
4418
|
+
/**
|
|
4419
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4420
|
+
*/
|
|
4421
|
+
subnetId?: any;
|
|
4422
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3213
4423
|
}
|
|
3214
4424
|
|
|
3215
4425
|
declare enum BlockchainId {
|
|
3216
4426
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3217
4427
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3218
4428
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3220
4429
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3221
4430
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3223
4431
|
P_CHAIN = "p-chain",
|
|
3224
4432
|
X_CHAIN = "x-chain",
|
|
3225
4433
|
C_CHAIN = "c-chain"
|
|
@@ -3256,12 +4464,6 @@ type CChainAtomicBalances = {
|
|
|
3256
4464
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3257
4465
|
};
|
|
3258
4466
|
|
|
3259
|
-
declare enum PrimaryNetwork {
|
|
3260
|
-
MAINNET = "mainnet",
|
|
3261
|
-
FUJI = "fuji",
|
|
3262
|
-
DEVNET = "devnet"
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
4467
|
declare enum PrimaryNetworkChainName {
|
|
3266
4468
|
P_CHAIN = "p-chain",
|
|
3267
4469
|
X_CHAIN = "x-chain",
|
|
@@ -3270,7 +4472,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3270
4472
|
|
|
3271
4473
|
type PrimaryNetworkChainInfo = {
|
|
3272
4474
|
chainName: PrimaryNetworkChainName;
|
|
3273
|
-
network:
|
|
4475
|
+
network: Network;
|
|
3274
4476
|
};
|
|
3275
4477
|
|
|
3276
4478
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3462,6 +4664,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3462
4664
|
txCount: number;
|
|
3463
4665
|
transactions: Array<string>;
|
|
3464
4666
|
blockSizeBytes: number;
|
|
4667
|
+
l1ValidatorsAccruedFees?: number;
|
|
4668
|
+
activeL1Validators?: number;
|
|
3465
4669
|
currentSupply?: string;
|
|
3466
4670
|
proposerDetails?: ProposerDetails;
|
|
3467
4671
|
};
|
|
@@ -3475,6 +4679,8 @@ type PrimaryNetworkBlock = {
|
|
|
3475
4679
|
txCount: number;
|
|
3476
4680
|
transactions: Array<string>;
|
|
3477
4681
|
blockSizeBytes: number;
|
|
4682
|
+
l1ValidatorsAccruedFees?: number;
|
|
4683
|
+
activeL1Validators?: number;
|
|
3478
4684
|
currentSupply?: string;
|
|
3479
4685
|
proposerDetails?: ProposerDetails;
|
|
3480
4686
|
};
|
|
@@ -3517,7 +4723,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3517
4723
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3518
4724
|
* @throws ApiError
|
|
3519
4725
|
*/
|
|
3520
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4726
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3521
4727
|
/**
|
|
3522
4728
|
* A primary network blockchain id or alias.
|
|
3523
4729
|
*/
|
|
@@ -3530,6 +4736,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3530
4736
|
* A primary network (P or X chain) nodeId.
|
|
3531
4737
|
*/
|
|
3532
4738
|
nodeId: string;
|
|
4739
|
+
/**
|
|
4740
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4741
|
+
*/
|
|
4742
|
+
startTimestamp?: number;
|
|
4743
|
+
/**
|
|
4744
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4745
|
+
*/
|
|
4746
|
+
endTimestamp?: number;
|
|
3533
4747
|
/**
|
|
3534
4748
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3535
4749
|
*/
|
|
@@ -3545,7 +4759,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3545
4759
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3546
4760
|
* @throws ApiError
|
|
3547
4761
|
*/
|
|
3548
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4762
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3549
4763
|
/**
|
|
3550
4764
|
* A primary network blockchain id or alias.
|
|
3551
4765
|
*/
|
|
@@ -3554,6 +4768,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3554
4768
|
* Either mainnet or testnet/fuji.
|
|
3555
4769
|
*/
|
|
3556
4770
|
network: Network;
|
|
4771
|
+
/**
|
|
4772
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4773
|
+
*/
|
|
4774
|
+
startTimestamp?: number;
|
|
4775
|
+
/**
|
|
4776
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4777
|
+
*/
|
|
4778
|
+
endTimestamp?: number;
|
|
3557
4779
|
/**
|
|
3558
4780
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3559
4781
|
*/
|
|
@@ -3795,6 +5017,10 @@ type Utxo = {
|
|
|
3795
5017
|
* UTXO ID for this output.
|
|
3796
5018
|
*/
|
|
3797
5019
|
utxoId: string;
|
|
5020
|
+
/**
|
|
5021
|
+
* The bytes of the UTXO
|
|
5022
|
+
*/
|
|
5023
|
+
utxoBytes?: string;
|
|
3798
5024
|
/**
|
|
3799
5025
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3800
5026
|
*/
|
|
@@ -3956,11 +5182,46 @@ declare namespace CChainImportTransaction {
|
|
|
3956
5182
|
|
|
3957
5183
|
type ListCChainAtomicTransactionsResponse = {
|
|
3958
5184
|
/**
|
|
3959
|
-
* 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.
|
|
5185
|
+
* 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.
|
|
5186
|
+
*/
|
|
5187
|
+
nextPageToken?: string;
|
|
5188
|
+
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
5189
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
5190
|
+
};
|
|
5191
|
+
|
|
5192
|
+
type BlockchainInfo = {
|
|
5193
|
+
chainName: string;
|
|
5194
|
+
vmId: string;
|
|
5195
|
+
/**
|
|
5196
|
+
* 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
|
|
5197
|
+
*/
|
|
5198
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5199
|
+
};
|
|
5200
|
+
|
|
5201
|
+
type L1ValidatorDetailsTransaction = {
|
|
5202
|
+
/**
|
|
5203
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5204
|
+
*/
|
|
5205
|
+
validationId: string;
|
|
5206
|
+
/**
|
|
5207
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5208
|
+
*/
|
|
5209
|
+
validationIdHex: string;
|
|
5210
|
+
nodeId: string;
|
|
5211
|
+
subnetId: string;
|
|
5212
|
+
/**
|
|
5213
|
+
* 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
|
|
3960
5214
|
*/
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
5215
|
+
weight: number;
|
|
5216
|
+
/**
|
|
5217
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5218
|
+
*/
|
|
5219
|
+
remainingBalance: number;
|
|
5220
|
+
/**
|
|
5221
|
+
* 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
|
|
5222
|
+
*/
|
|
5223
|
+
balanceChange?: number;
|
|
5224
|
+
blsCredentials?: Record<string, any>;
|
|
3964
5225
|
};
|
|
3965
5226
|
|
|
3966
5227
|
declare enum PChainTransactionType {
|
|
@@ -3979,9 +5240,17 @@ declare enum PChainTransactionType {
|
|
|
3979
5240
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3980
5241
|
BASE_TX = "BaseTx",
|
|
3981
5242
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5243
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5244
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5245
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5246
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5247
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3982
5248
|
UNKNOWN = "UNKNOWN"
|
|
3983
5249
|
}
|
|
3984
5250
|
|
|
5251
|
+
/**
|
|
5252
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5253
|
+
*/
|
|
3985
5254
|
declare enum UtxoType {
|
|
3986
5255
|
STAKE = "STAKE",
|
|
3987
5256
|
TRANSFER = "TRANSFER"
|
|
@@ -4009,6 +5278,10 @@ type PChainUtxo = {
|
|
|
4009
5278
|
* UTXO ID for this output.
|
|
4010
5279
|
*/
|
|
4011
5280
|
utxoId: string;
|
|
5281
|
+
/**
|
|
5282
|
+
* The bytes of the UTXO
|
|
5283
|
+
*/
|
|
5284
|
+
utxoBytes?: string;
|
|
4012
5285
|
/**
|
|
4013
5286
|
* @deprecated
|
|
4014
5287
|
*/
|
|
@@ -4019,16 +5292,43 @@ type PChainUtxo = {
|
|
|
4019
5292
|
assetId: string;
|
|
4020
5293
|
blockNumber: string;
|
|
4021
5294
|
blockTimestamp: number;
|
|
5295
|
+
/**
|
|
5296
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5297
|
+
*/
|
|
4022
5298
|
consumingBlockNumber?: string;
|
|
5299
|
+
/**
|
|
5300
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5301
|
+
*/
|
|
4023
5302
|
consumingBlockTimestamp?: number;
|
|
5303
|
+
/**
|
|
5304
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5305
|
+
*/
|
|
4024
5306
|
platformLocktime?: number;
|
|
5307
|
+
/**
|
|
5308
|
+
* The index of the UTXO in the transaction
|
|
5309
|
+
*/
|
|
4025
5310
|
outputIndex: number;
|
|
4026
5311
|
rewardType?: RewardType;
|
|
5312
|
+
/**
|
|
5313
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5314
|
+
*/
|
|
4027
5315
|
stakeableLocktime?: number;
|
|
4028
5316
|
staked?: boolean;
|
|
5317
|
+
/**
|
|
5318
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5319
|
+
*/
|
|
4029
5320
|
threshold?: number;
|
|
5321
|
+
/**
|
|
5322
|
+
* The hash of the transaction that created this UTXO
|
|
5323
|
+
*/
|
|
4030
5324
|
txHash: string;
|
|
5325
|
+
/**
|
|
5326
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5327
|
+
*/
|
|
4031
5328
|
utxoEndTimestamp?: number;
|
|
5329
|
+
/**
|
|
5330
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5331
|
+
*/
|
|
4032
5332
|
utxoStartTimestamp?: number;
|
|
4033
5333
|
utxoType: UtxoType;
|
|
4034
5334
|
};
|
|
@@ -4040,12 +5340,21 @@ type PChainTransaction = {
|
|
|
4040
5340
|
txHash: string;
|
|
4041
5341
|
txType: PChainTransactionType;
|
|
4042
5342
|
/**
|
|
4043
|
-
* The block
|
|
5343
|
+
* The block creation (proposal) timestamp in seconds
|
|
4044
5344
|
*/
|
|
4045
5345
|
blockTimestamp: number;
|
|
5346
|
+
/**
|
|
5347
|
+
* The height of the block in which the transaction was included
|
|
5348
|
+
*/
|
|
4046
5349
|
blockNumber: string;
|
|
4047
5350
|
blockHash: string;
|
|
5351
|
+
/**
|
|
5352
|
+
* The consumed UTXOs of the transaction
|
|
5353
|
+
*/
|
|
4048
5354
|
consumedUtxos: Array<PChainUtxo>;
|
|
5355
|
+
/**
|
|
5356
|
+
* The newly created UTXOs of the transaction
|
|
5357
|
+
*/
|
|
4049
5358
|
emittedUtxos: Array<PChainUtxo>;
|
|
4050
5359
|
/**
|
|
4051
5360
|
* Source chain for an atomic transaction.
|
|
@@ -4056,17 +5365,21 @@ type PChainTransaction = {
|
|
|
4056
5365
|
*/
|
|
4057
5366
|
destinationChain?: string;
|
|
4058
5367
|
/**
|
|
4059
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5368
|
+
* 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
5369
|
*/
|
|
4061
5370
|
value: Array<AssetAmount>;
|
|
4062
5371
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5372
|
+
* 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
5373
|
*/
|
|
4065
5374
|
amountBurned: Array<AssetAmount>;
|
|
4066
5375
|
/**
|
|
4067
5376
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4068
5377
|
*/
|
|
4069
5378
|
amountStaked: Array<AssetAmount>;
|
|
5379
|
+
/**
|
|
5380
|
+
* 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.
|
|
5381
|
+
*/
|
|
5382
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4070
5383
|
/**
|
|
4071
5384
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4072
5385
|
*/
|
|
@@ -4076,11 +5389,11 @@ type PChainTransaction = {
|
|
|
4076
5389
|
*/
|
|
4077
5390
|
endTimestamp?: number;
|
|
4078
5391
|
/**
|
|
4079
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5392
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4080
5393
|
*/
|
|
4081
5394
|
delegationFeePercent?: string;
|
|
4082
5395
|
/**
|
|
4083
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5396
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4084
5397
|
*/
|
|
4085
5398
|
nodeId?: string;
|
|
4086
5399
|
/**
|
|
@@ -4088,14 +5401,25 @@ type PChainTransaction = {
|
|
|
4088
5401
|
*/
|
|
4089
5402
|
subnetId?: string;
|
|
4090
5403
|
/**
|
|
4091
|
-
* Present for
|
|
5404
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5405
|
+
*/
|
|
5406
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5407
|
+
/**
|
|
5408
|
+
* 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
|
|
5409
|
+
*/
|
|
5410
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5411
|
+
/**
|
|
5412
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
5413
|
*/
|
|
4093
5414
|
estimatedReward?: string;
|
|
5415
|
+
/**
|
|
5416
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5417
|
+
*/
|
|
4094
5418
|
rewardTxHash?: string;
|
|
4095
5419
|
rewardAddresses?: Array<string>;
|
|
4096
5420
|
memo?: string;
|
|
4097
5421
|
/**
|
|
4098
|
-
*
|
|
5422
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4099
5423
|
*/
|
|
4100
5424
|
stakingTxHash?: string;
|
|
4101
5425
|
/**
|
|
@@ -4103,9 +5427,13 @@ type PChainTransaction = {
|
|
|
4103
5427
|
*/
|
|
4104
5428
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4105
5429
|
/**
|
|
4106
|
-
* Present for AddPermissionlessValidatorTx
|
|
5430
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4107
5431
|
*/
|
|
4108
5432
|
blsCredentials?: BlsCredentials;
|
|
5433
|
+
/**
|
|
5434
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5435
|
+
*/
|
|
5436
|
+
blockchainInfo?: BlockchainInfo;
|
|
4109
5437
|
};
|
|
4110
5438
|
|
|
4111
5439
|
type ListPChainTransactionsResponse = {
|
|
@@ -4288,6 +5616,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4288
5616
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4289
5617
|
BASE_TX = "BaseTx",
|
|
4290
5618
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5619
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5620
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5621
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5622
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5623
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4291
5624
|
UNKNOWN = "UNKNOWN",
|
|
4292
5625
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4293
5626
|
OPERATION_TX = "OperationTx"
|
|
@@ -4322,11 +5655,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4322
5655
|
*
|
|
4323
5656
|
* 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
5657
|
*
|
|
5658
|
+
* 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.
|
|
5659
|
+
*
|
|
4325
5660
|
* 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
5661
|
* @returns any Successful response
|
|
4327
5662
|
* @throws ApiError
|
|
4328
5663
|
*/
|
|
4329
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5664
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4330
5665
|
/**
|
|
4331
5666
|
* A primary network blockchain id or alias.
|
|
4332
5667
|
*/
|
|
@@ -4339,6 +5674,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4339
5674
|
* 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
5675
|
*/
|
|
4341
5676
|
addresses?: string;
|
|
5677
|
+
l1ValidationId?: string;
|
|
4342
5678
|
/**
|
|
4343
5679
|
* Query param for filtering items based on transaction types.
|
|
4344
5680
|
*/
|
|
@@ -4468,6 +5804,18 @@ type ListUtxosResponse = {
|
|
|
4468
5804
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4469
5805
|
};
|
|
4470
5806
|
|
|
5807
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5808
|
+
/**
|
|
5809
|
+
* Comma-separated list of primary network addresses
|
|
5810
|
+
*/
|
|
5811
|
+
addresses: string;
|
|
5812
|
+
};
|
|
5813
|
+
|
|
5814
|
+
declare enum UtxosSortByOption {
|
|
5815
|
+
TIMESTAMP = "timestamp",
|
|
5816
|
+
AMOUNT = "amount"
|
|
5817
|
+
}
|
|
5818
|
+
|
|
4471
5819
|
declare class PrimaryNetworkUtxOsService {
|
|
4472
5820
|
readonly httpRequest: BaseHttpRequest;
|
|
4473
5821
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4477,7 +5825,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4477
5825
|
* @returns any Successful response
|
|
4478
5826
|
* @throws ApiError
|
|
4479
5827
|
*/
|
|
4480
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5828
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4481
5829
|
/**
|
|
4482
5830
|
* A primary network blockchain id or alias.
|
|
4483
5831
|
*/
|
|
@@ -4502,10 +5850,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4502
5850
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4503
5851
|
*/
|
|
4504
5852
|
assetId?: string;
|
|
5853
|
+
/**
|
|
5854
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5855
|
+
*/
|
|
5856
|
+
minUtxoAmount?: number;
|
|
5857
|
+
/**
|
|
5858
|
+
* Boolean filter to include spent UTXOs.
|
|
5859
|
+
*/
|
|
5860
|
+
includeSpent?: boolean;
|
|
5861
|
+
/**
|
|
5862
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5863
|
+
*/
|
|
5864
|
+
sortBy?: UtxosSortByOption;
|
|
5865
|
+
/**
|
|
5866
|
+
* 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.
|
|
5867
|
+
*/
|
|
5868
|
+
sortOrder?: SortOrder;
|
|
5869
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5870
|
+
/**
|
|
5871
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5872
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5873
|
+
* @returns any Successful response
|
|
5874
|
+
* @throws ApiError
|
|
5875
|
+
*/
|
|
5876
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5877
|
+
/**
|
|
5878
|
+
* A primary network blockchain id or alias.
|
|
5879
|
+
*/
|
|
5880
|
+
blockchainId: BlockchainId;
|
|
5881
|
+
/**
|
|
5882
|
+
* Either mainnet or testnet/fuji.
|
|
5883
|
+
*/
|
|
5884
|
+
network: Network;
|
|
5885
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5886
|
+
/**
|
|
5887
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5888
|
+
*/
|
|
5889
|
+
pageToken?: string;
|
|
5890
|
+
/**
|
|
5891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5892
|
+
*/
|
|
5893
|
+
pageSize?: number;
|
|
5894
|
+
/**
|
|
5895
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5896
|
+
*/
|
|
5897
|
+
assetId?: string;
|
|
5898
|
+
/**
|
|
5899
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5900
|
+
*/
|
|
5901
|
+
minUtxoAmount?: number;
|
|
4505
5902
|
/**
|
|
4506
5903
|
* Boolean filter to include spent UTXOs.
|
|
4507
5904
|
*/
|
|
4508
5905
|
includeSpent?: boolean;
|
|
5906
|
+
/**
|
|
5907
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5908
|
+
*/
|
|
5909
|
+
sortBy?: UtxosSortByOption;
|
|
4509
5910
|
/**
|
|
4510
5911
|
* 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
5912
|
*/
|
|
@@ -4614,64 +6015,35 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4614
6015
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4615
6016
|
}
|
|
4616
6017
|
|
|
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
6018
|
type SignatureAggregationResponse = {
|
|
4661
6019
|
signedMessage: string;
|
|
4662
6020
|
};
|
|
4663
6021
|
|
|
4664
6022
|
type SignatureAggregatorRequest = {
|
|
4665
6023
|
/**
|
|
4666
|
-
*
|
|
6024
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4667
6025
|
*/
|
|
4668
6026
|
message?: string;
|
|
4669
6027
|
/**
|
|
4670
|
-
*
|
|
6028
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4671
6029
|
*/
|
|
4672
6030
|
justification?: string;
|
|
6031
|
+
/**
|
|
6032
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6033
|
+
*/
|
|
4673
6034
|
signingSubnetId?: string;
|
|
6035
|
+
/**
|
|
6036
|
+
* 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.
|
|
6037
|
+
*/
|
|
4674
6038
|
quorumPercentage?: number;
|
|
6039
|
+
/**
|
|
6040
|
+
* 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.
|
|
6041
|
+
*/
|
|
6042
|
+
quorumPercentageBuffer?: number;
|
|
6043
|
+
/**
|
|
6044
|
+
* 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.
|
|
6045
|
+
*/
|
|
6046
|
+
pChainHeight?: number;
|
|
4675
6047
|
};
|
|
4676
6048
|
|
|
4677
6049
|
declare class SignatureAggregatorService {
|
|
@@ -4683,9 +6055,29 @@ declare class SignatureAggregatorService {
|
|
|
4683
6055
|
* @returns SignatureAggregationResponse Successful response
|
|
4684
6056
|
* @throws ApiError
|
|
4685
6057
|
*/
|
|
4686
|
-
aggregateSignatures({ requestBody, }: {
|
|
6058
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6059
|
+
/**
|
|
6060
|
+
* Either mainnet or testnet/fuji.
|
|
6061
|
+
*/
|
|
6062
|
+
network: Network;
|
|
4687
6063
|
requestBody: SignatureAggregatorRequest;
|
|
4688
6064
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6065
|
+
/**
|
|
6066
|
+
* Get Aggregated Signatures
|
|
6067
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6068
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6069
|
+
* @throws ApiError
|
|
6070
|
+
*/
|
|
6071
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6072
|
+
/**
|
|
6073
|
+
* Either mainnet or testnet/fuji.
|
|
6074
|
+
*/
|
|
6075
|
+
network: Network;
|
|
6076
|
+
/**
|
|
6077
|
+
* A primary network (P or X chain) transaction hash.
|
|
6078
|
+
*/
|
|
6079
|
+
txHash: string;
|
|
6080
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4689
6081
|
}
|
|
4690
6082
|
|
|
4691
6083
|
type TeleporterDestinationTransaction = {
|
|
@@ -4819,15 +6211,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4819
6211
|
* 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
6212
|
*/
|
|
4821
6213
|
nextPageToken?: string;
|
|
4822
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6214
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4823
6215
|
};
|
|
4824
6216
|
|
|
4825
6217
|
declare class TeleporterService {
|
|
4826
6218
|
readonly httpRequest: BaseHttpRequest;
|
|
4827
6219
|
constructor(httpRequest: BaseHttpRequest);
|
|
4828
6220
|
/**
|
|
4829
|
-
*
|
|
4830
|
-
* Gets a teleporter message by message ID.
|
|
6221
|
+
* @deprecated
|
|
6222
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6223
|
+
*
|
|
6224
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4831
6225
|
* @returns any Successful response
|
|
4832
6226
|
* @throws ApiError
|
|
4833
6227
|
*/
|
|
@@ -4838,8 +6232,10 @@ declare class TeleporterService {
|
|
|
4838
6232
|
messageId: string;
|
|
4839
6233
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4840
6234
|
/**
|
|
4841
|
-
*
|
|
4842
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6235
|
+
* @deprecated
|
|
6236
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6237
|
+
*
|
|
6238
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4843
6239
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4844
6240
|
* @throws ApiError
|
|
4845
6241
|
*/
|
|
@@ -4878,8 +6274,10 @@ declare class TeleporterService {
|
|
|
4878
6274
|
network?: Network;
|
|
4879
6275
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4880
6276
|
/**
|
|
4881
|
-
*
|
|
4882
|
-
* Lists teleporter messages by address. Ordered by
|
|
6277
|
+
* @deprecated
|
|
6278
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6279
|
+
*
|
|
6280
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4883
6281
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4884
6282
|
* @throws ApiError
|
|
4885
6283
|
*/
|
|
@@ -4912,68 +6310,212 @@ type AddressesChangeRequest = {
|
|
|
4912
6310
|
|
|
4913
6311
|
type AddressActivityMetadata = {
|
|
4914
6312
|
/**
|
|
4915
|
-
*
|
|
6313
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6314
|
+
*/
|
|
6315
|
+
eventSignatures?: Array<string>;
|
|
6316
|
+
/**
|
|
6317
|
+
* 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
6318
|
*/
|
|
4917
6319
|
addresses: Array<string>;
|
|
6320
|
+
};
|
|
6321
|
+
|
|
6322
|
+
type EVMAddressActivityRequest = {
|
|
6323
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6324
|
+
url: string;
|
|
6325
|
+
name?: string;
|
|
6326
|
+
description?: string;
|
|
6327
|
+
chainId: string;
|
|
6328
|
+
metadata: AddressActivityMetadata;
|
|
4918
6329
|
/**
|
|
4919
|
-
*
|
|
6330
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4920
6331
|
*/
|
|
4921
|
-
|
|
6332
|
+
includeInternalTxs?: boolean;
|
|
6333
|
+
/**
|
|
6334
|
+
* Whether to include logs in the webhook payload.
|
|
6335
|
+
*/
|
|
6336
|
+
includeLogs?: boolean;
|
|
4922
6337
|
};
|
|
6338
|
+
declare namespace EVMAddressActivityRequest {
|
|
6339
|
+
enum eventType {
|
|
6340
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6341
|
+
}
|
|
6342
|
+
}
|
|
4923
6343
|
|
|
4924
|
-
declare enum
|
|
6344
|
+
declare enum AddressActivityEventType {
|
|
4925
6345
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4926
6346
|
}
|
|
4927
6347
|
|
|
4928
|
-
|
|
6348
|
+
declare enum WebhookStatusType {
|
|
6349
|
+
ACTIVE = "active",
|
|
6350
|
+
INACTIVE = "inactive"
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
type EVMAddressActivityResponse = {
|
|
6354
|
+
id: string;
|
|
4929
6355
|
url: string;
|
|
4930
6356
|
chainId: string;
|
|
4931
|
-
|
|
6357
|
+
status: WebhookStatusType;
|
|
6358
|
+
createdAt: number;
|
|
6359
|
+
name: string;
|
|
6360
|
+
description: string;
|
|
6361
|
+
eventType: AddressActivityEventType;
|
|
4932
6362
|
metadata: AddressActivityMetadata;
|
|
4933
|
-
name?: string;
|
|
4934
|
-
description?: string;
|
|
4935
6363
|
/**
|
|
4936
|
-
* Whether to include traces in the webhook payload.
|
|
6364
|
+
* Whether to include traces in the webhook payload.
|
|
6365
|
+
*/
|
|
6366
|
+
includeInternalTxs?: boolean;
|
|
6367
|
+
/**
|
|
6368
|
+
* Whether to include logs in the webhook payload.
|
|
6369
|
+
*/
|
|
6370
|
+
includeLogs?: boolean;
|
|
6371
|
+
};
|
|
6372
|
+
|
|
6373
|
+
type ListWebhookAddressesResponse = {
|
|
6374
|
+
/**
|
|
6375
|
+
* 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.
|
|
6376
|
+
*/
|
|
6377
|
+
nextPageToken?: string;
|
|
6378
|
+
addresses: Array<string>;
|
|
6379
|
+
totalAddresses: number;
|
|
6380
|
+
};
|
|
6381
|
+
|
|
6382
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6383
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6384
|
+
}
|
|
6385
|
+
|
|
6386
|
+
/**
|
|
6387
|
+
* The type of key to monitor for the address activity event type.
|
|
6388
|
+
*/
|
|
6389
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6390
|
+
ADDRESSES = "addresses"
|
|
6391
|
+
}
|
|
6392
|
+
|
|
6393
|
+
/**
|
|
6394
|
+
* Array of address activity sub-event types
|
|
6395
|
+
*/
|
|
6396
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6397
|
+
BALANCE_CHANGE = "balance_change",
|
|
6398
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6399
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6403
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6404
|
+
};
|
|
6405
|
+
|
|
6406
|
+
/**
|
|
6407
|
+
* Type of balance to monitor
|
|
6408
|
+
*/
|
|
6409
|
+
declare enum CommonBalanceType {
|
|
6410
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6411
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6412
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6413
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6414
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6415
|
+
PENDING_STAKED = "pendingStaked",
|
|
6416
|
+
UNLOCKED = "unlocked",
|
|
6417
|
+
LOCKED = "locked",
|
|
6418
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6419
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6420
|
+
}
|
|
6421
|
+
|
|
6422
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6423
|
+
balanceType: CommonBalanceType;
|
|
6424
|
+
/**
|
|
6425
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6426
|
+
*/
|
|
6427
|
+
balanceThreshold: string;
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6431
|
+
/**
|
|
6432
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6433
|
+
*/
|
|
6434
|
+
eventSignatures?: Array<string>;
|
|
6435
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6436
|
+
/**
|
|
6437
|
+
* 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.
|
|
6438
|
+
*/
|
|
6439
|
+
keys: Array<string>;
|
|
6440
|
+
/**
|
|
6441
|
+
* Sub-events to monitor
|
|
6442
|
+
*/
|
|
6443
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6444
|
+
/**
|
|
6445
|
+
* Balance threshold filter
|
|
6446
|
+
*/
|
|
6447
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6448
|
+
};
|
|
6449
|
+
|
|
6450
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6451
|
+
id: string;
|
|
6452
|
+
url: string;
|
|
6453
|
+
chainId: string;
|
|
6454
|
+
status: WebhookStatusType;
|
|
6455
|
+
createdAt: number;
|
|
6456
|
+
name: string;
|
|
6457
|
+
description: string;
|
|
6458
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6459
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6460
|
+
};
|
|
6461
|
+
|
|
6462
|
+
declare enum ValidatorActivityEventType {
|
|
6463
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6464
|
+
}
|
|
6465
|
+
|
|
6466
|
+
/**
|
|
6467
|
+
* The type of key to monitor for the validator activity event type.
|
|
6468
|
+
*/
|
|
6469
|
+
declare enum ValidatorActivityKeyType {
|
|
6470
|
+
NODE_ID = "nodeId",
|
|
6471
|
+
SUBNET_ID = "subnetId"
|
|
6472
|
+
}
|
|
6473
|
+
|
|
6474
|
+
type ValidatorActivitySubEvents = {
|
|
6475
|
+
/**
|
|
6476
|
+
* Array of validator activity sub-event types
|
|
6477
|
+
*/
|
|
6478
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6479
|
+
};
|
|
6480
|
+
|
|
6481
|
+
type ValidatorActivityMetadata = {
|
|
6482
|
+
/**
|
|
6483
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6484
|
+
*/
|
|
6485
|
+
eventSignatures?: Array<string>;
|
|
6486
|
+
keyType: ValidatorActivityKeyType;
|
|
6487
|
+
/**
|
|
6488
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
4937
6489
|
*/
|
|
4938
|
-
|
|
6490
|
+
keys: Array<string>;
|
|
4939
6491
|
/**
|
|
4940
|
-
*
|
|
6492
|
+
* Sub-events to monitor
|
|
4941
6493
|
*/
|
|
4942
|
-
|
|
4943
|
-
};
|
|
4944
|
-
|
|
4945
|
-
type ListWebhookAddressesResponse = {
|
|
6494
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4946
6495
|
/**
|
|
4947
|
-
*
|
|
6496
|
+
* Array of node IDs to filter the events
|
|
4948
6497
|
*/
|
|
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;
|
|
6498
|
+
nodeIds?: Array<string>;
|
|
4963
6499
|
/**
|
|
4964
|
-
*
|
|
6500
|
+
* Array of subnet IDs to filter the events
|
|
4965
6501
|
*/
|
|
4966
|
-
|
|
6502
|
+
subnetIds?: Array<string>;
|
|
4967
6503
|
/**
|
|
4968
|
-
*
|
|
6504
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4969
6505
|
*/
|
|
4970
|
-
|
|
6506
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6507
|
+
};
|
|
6508
|
+
|
|
6509
|
+
type ValidatorActivityResponse = {
|
|
6510
|
+
id: string;
|
|
4971
6511
|
url: string;
|
|
4972
6512
|
chainId: string;
|
|
4973
6513
|
status: WebhookStatusType;
|
|
4974
6514
|
createdAt: number;
|
|
4975
6515
|
name: string;
|
|
4976
6516
|
description: string;
|
|
6517
|
+
eventType: ValidatorActivityEventType;
|
|
6518
|
+
metadata: ValidatorActivityMetadata;
|
|
4977
6519
|
};
|
|
4978
6520
|
|
|
4979
6521
|
type ListWebhooksResponse = {
|
|
@@ -4981,8 +6523,31 @@ type ListWebhooksResponse = {
|
|
|
4981
6523
|
* 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
6524
|
*/
|
|
4983
6525
|
nextPageToken?: string;
|
|
4984
|
-
webhooks: Array<
|
|
6526
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6527
|
+
};
|
|
6528
|
+
|
|
6529
|
+
declare enum PrimaryNetworkType {
|
|
6530
|
+
MAINNET = "mainnet",
|
|
6531
|
+
FUJI = "fuji"
|
|
6532
|
+
}
|
|
6533
|
+
|
|
6534
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6535
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6536
|
+
url: string;
|
|
6537
|
+
name?: string;
|
|
6538
|
+
description?: string;
|
|
6539
|
+
network: PrimaryNetworkType;
|
|
6540
|
+
chainId: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Metadata for platform address activity event
|
|
6543
|
+
*/
|
|
6544
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
4985
6545
|
};
|
|
6546
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6547
|
+
enum eventType {
|
|
6548
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6549
|
+
}
|
|
6550
|
+
}
|
|
4986
6551
|
|
|
4987
6552
|
type SharedSecretsResponse = {
|
|
4988
6553
|
secret: string;
|
|
@@ -4993,10 +6558,30 @@ type UpdateWebhookRequest = {
|
|
|
4993
6558
|
description?: string;
|
|
4994
6559
|
url?: string;
|
|
4995
6560
|
status?: WebhookStatusType;
|
|
6561
|
+
/**
|
|
6562
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6563
|
+
*/
|
|
4996
6564
|
includeInternalTxs?: boolean;
|
|
4997
6565
|
includeLogs?: boolean;
|
|
4998
6566
|
};
|
|
4999
6567
|
|
|
6568
|
+
type ValidatorActivityRequest = {
|
|
6569
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6570
|
+
url: string;
|
|
6571
|
+
name?: string;
|
|
6572
|
+
description?: string;
|
|
6573
|
+
network: PrimaryNetworkType;
|
|
6574
|
+
/**
|
|
6575
|
+
* Metadata for platform validator activity event
|
|
6576
|
+
*/
|
|
6577
|
+
metadata: ValidatorActivityMetadata;
|
|
6578
|
+
};
|
|
6579
|
+
declare namespace ValidatorActivityRequest {
|
|
6580
|
+
enum eventType {
|
|
6581
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6582
|
+
}
|
|
6583
|
+
}
|
|
6584
|
+
|
|
5000
6585
|
declare enum WebhookStatus {
|
|
5001
6586
|
ACTIVE = "active",
|
|
5002
6587
|
INACTIVE = "inactive"
|
|
@@ -5008,12 +6593,12 @@ declare class WebhooksService {
|
|
|
5008
6593
|
/**
|
|
5009
6594
|
* Create a webhook
|
|
5010
6595
|
* Create a new webhook.
|
|
5011
|
-
* @returns
|
|
6596
|
+
* @returns any Successful response
|
|
5012
6597
|
* @throws ApiError
|
|
5013
6598
|
*/
|
|
5014
6599
|
createWebhook({ requestBody, }: {
|
|
5015
|
-
requestBody:
|
|
5016
|
-
}): CancelablePromise<
|
|
6600
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6601
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5017
6602
|
/**
|
|
5018
6603
|
* List webhooks
|
|
5019
6604
|
* Lists webhooks for the user.
|
|
@@ -5037,7 +6622,7 @@ declare class WebhooksService {
|
|
|
5037
6622
|
/**
|
|
5038
6623
|
* Get a webhook by ID
|
|
5039
6624
|
* Retrieves a webhook by ID.
|
|
5040
|
-
* @returns
|
|
6625
|
+
* @returns any Successful response
|
|
5041
6626
|
* @throws ApiError
|
|
5042
6627
|
*/
|
|
5043
6628
|
getWebhook({ id, }: {
|
|
@@ -5045,11 +6630,11 @@ declare class WebhooksService {
|
|
|
5045
6630
|
* The webhook identifier.
|
|
5046
6631
|
*/
|
|
5047
6632
|
id: string;
|
|
5048
|
-
}): CancelablePromise<
|
|
6633
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5049
6634
|
/**
|
|
5050
6635
|
* Deactivate a webhook
|
|
5051
6636
|
* Deactivates a webhook by ID.
|
|
5052
|
-
* @returns
|
|
6637
|
+
* @returns any Successful response
|
|
5053
6638
|
* @throws ApiError
|
|
5054
6639
|
*/
|
|
5055
6640
|
deactivateWebhook({ id, }: {
|
|
@@ -5057,11 +6642,11 @@ declare class WebhooksService {
|
|
|
5057
6642
|
* The webhook identifier.
|
|
5058
6643
|
*/
|
|
5059
6644
|
id: string;
|
|
5060
|
-
}): CancelablePromise<
|
|
6645
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5061
6646
|
/**
|
|
5062
6647
|
* Update a webhook
|
|
5063
6648
|
* Updates an existing webhook.
|
|
5064
|
-
* @returns
|
|
6649
|
+
* @returns any Successful response
|
|
5065
6650
|
* @throws ApiError
|
|
5066
6651
|
*/
|
|
5067
6652
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5070,14 +6655,14 @@ declare class WebhooksService {
|
|
|
5070
6655
|
*/
|
|
5071
6656
|
id: string;
|
|
5072
6657
|
requestBody: UpdateWebhookRequest;
|
|
5073
|
-
}): CancelablePromise<
|
|
6658
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5074
6659
|
/**
|
|
5075
|
-
* Generate a shared secret
|
|
5076
|
-
* Generates a new shared secret.
|
|
6660
|
+
* Generate or rotate a shared secret
|
|
6661
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5077
6662
|
* @returns SharedSecretsResponse Successful response
|
|
5078
6663
|
* @throws ApiError
|
|
5079
6664
|
*/
|
|
5080
|
-
|
|
6665
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5081
6666
|
/**
|
|
5082
6667
|
* Get a shared secret
|
|
5083
6668
|
* Get a previously generated shared secret.
|
|
@@ -5086,9 +6671,9 @@ declare class WebhooksService {
|
|
|
5086
6671
|
*/
|
|
5087
6672
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5088
6673
|
/**
|
|
5089
|
-
* Add addresses to webhook
|
|
5090
|
-
* Add addresses to webhook.
|
|
5091
|
-
* @returns
|
|
6674
|
+
* Add addresses to EVM activity webhook
|
|
6675
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6676
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5092
6677
|
* @throws ApiError
|
|
5093
6678
|
*/
|
|
5094
6679
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5097,11 +6682,11 @@ declare class WebhooksService {
|
|
|
5097
6682
|
*/
|
|
5098
6683
|
id: string;
|
|
5099
6684
|
requestBody: AddressesChangeRequest;
|
|
5100
|
-
}): CancelablePromise<
|
|
6685
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5101
6686
|
/**
|
|
5102
|
-
* Remove addresses from webhook
|
|
5103
|
-
* Remove addresses from webhook.
|
|
5104
|
-
* @returns
|
|
6687
|
+
* Remove addresses from EVM activity webhook
|
|
6688
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6689
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5105
6690
|
* @throws ApiError
|
|
5106
6691
|
*/
|
|
5107
6692
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5110,10 +6695,10 @@ declare class WebhooksService {
|
|
|
5110
6695
|
*/
|
|
5111
6696
|
id: string;
|
|
5112
6697
|
requestBody: AddressesChangeRequest;
|
|
5113
|
-
}): CancelablePromise<
|
|
6698
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5114
6699
|
/**
|
|
5115
|
-
* List adresses by
|
|
5116
|
-
* List adresses by webhook.
|
|
6700
|
+
* List adresses by EVM activity webhooks
|
|
6701
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5117
6702
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5118
6703
|
* @throws ApiError
|
|
5119
6704
|
*/
|
|
@@ -5135,6 +6720,7 @@ declare class WebhooksService {
|
|
|
5135
6720
|
|
|
5136
6721
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5137
6722
|
declare class Glacier {
|
|
6723
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5138
6724
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5139
6725
|
readonly default: DefaultService;
|
|
5140
6726
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5143,7 +6729,9 @@ declare class Glacier {
|
|
|
5143
6729
|
readonly evmContracts: EvmContractsService;
|
|
5144
6730
|
readonly evmTransactions: EvmTransactionsService;
|
|
5145
6731
|
readonly healthCheck: HealthCheckService;
|
|
6732
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5146
6733
|
readonly nfTs: NfTsService;
|
|
6734
|
+
readonly notifications: NotificationsService;
|
|
5147
6735
|
readonly operations: OperationsService;
|
|
5148
6736
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5149
6737
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5152,7 +6740,6 @@ declare class Glacier {
|
|
|
5152
6740
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5153
6741
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5154
6742
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5155
|
-
readonly rpc: RpcService;
|
|
5156
6743
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5157
6744
|
readonly teleporter: TeleporterService;
|
|
5158
6745
|
readonly webhooks: WebhooksService;
|
|
@@ -5177,6 +6764,17 @@ declare class ApiError extends Error {
|
|
|
5177
6764
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5178
6765
|
}
|
|
5179
6766
|
|
|
6767
|
+
type AccessListData = {
|
|
6768
|
+
/**
|
|
6769
|
+
* Access Address
|
|
6770
|
+
*/
|
|
6771
|
+
accessAddresses: string;
|
|
6772
|
+
/**
|
|
6773
|
+
* Storage keys
|
|
6774
|
+
*/
|
|
6775
|
+
storageKeys: Array<string>;
|
|
6776
|
+
};
|
|
6777
|
+
|
|
5180
6778
|
type BadGateway = {
|
|
5181
6779
|
/**
|
|
5182
6780
|
* The error message describing the reason for the exception
|
|
@@ -5211,6 +6809,76 @@ type DataListChainsResponse = {
|
|
|
5211
6809
|
chains: Array<ChainInfo>;
|
|
5212
6810
|
};
|
|
5213
6811
|
|
|
6812
|
+
type ERCToken = {
|
|
6813
|
+
/**
|
|
6814
|
+
* Token contract address
|
|
6815
|
+
*/
|
|
6816
|
+
address: string;
|
|
6817
|
+
/**
|
|
6818
|
+
* Token name
|
|
6819
|
+
*/
|
|
6820
|
+
name: string;
|
|
6821
|
+
/**
|
|
6822
|
+
* Token symbol
|
|
6823
|
+
*/
|
|
6824
|
+
symbol: string;
|
|
6825
|
+
/**
|
|
6826
|
+
* Token decimals
|
|
6827
|
+
*/
|
|
6828
|
+
decimals: number;
|
|
6829
|
+
/**
|
|
6830
|
+
* Value including decimals
|
|
6831
|
+
*/
|
|
6832
|
+
valueWithDecimals: string;
|
|
6833
|
+
};
|
|
6834
|
+
|
|
6835
|
+
type ERCTransfer = {
|
|
6836
|
+
/**
|
|
6837
|
+
* Transaction hash
|
|
6838
|
+
*/
|
|
6839
|
+
transactionHash: string;
|
|
6840
|
+
/**
|
|
6841
|
+
* Transfer type
|
|
6842
|
+
*/
|
|
6843
|
+
type: string;
|
|
6844
|
+
/**
|
|
6845
|
+
* Sender address
|
|
6846
|
+
*/
|
|
6847
|
+
from: string;
|
|
6848
|
+
/**
|
|
6849
|
+
* Recipient address
|
|
6850
|
+
*/
|
|
6851
|
+
to: string;
|
|
6852
|
+
/**
|
|
6853
|
+
* Amount transferred
|
|
6854
|
+
*/
|
|
6855
|
+
value: string;
|
|
6856
|
+
/**
|
|
6857
|
+
* Token Id
|
|
6858
|
+
*/
|
|
6859
|
+
tokenId?: string;
|
|
6860
|
+
/**
|
|
6861
|
+
* Block timestamp
|
|
6862
|
+
*/
|
|
6863
|
+
blockTimestamp: number;
|
|
6864
|
+
/**
|
|
6865
|
+
* Log index
|
|
6866
|
+
*/
|
|
6867
|
+
logIndex: number;
|
|
6868
|
+
/**
|
|
6869
|
+
* erc20 Token details
|
|
6870
|
+
*/
|
|
6871
|
+
erc20Token?: ERCToken;
|
|
6872
|
+
/**
|
|
6873
|
+
* erc721 Token details
|
|
6874
|
+
*/
|
|
6875
|
+
erc721Token?: ERCToken;
|
|
6876
|
+
/**
|
|
6877
|
+
* erc1155 Token details
|
|
6878
|
+
*/
|
|
6879
|
+
erc1155Token?: ERCToken;
|
|
6880
|
+
};
|
|
6881
|
+
|
|
5214
6882
|
type Forbidden = {
|
|
5215
6883
|
/**
|
|
5216
6884
|
* The error message describing the reason for the exception
|
|
@@ -5241,6 +6909,64 @@ type InternalServerError = {
|
|
|
5241
6909
|
error: string;
|
|
5242
6910
|
};
|
|
5243
6911
|
|
|
6912
|
+
type Log = {
|
|
6913
|
+
/**
|
|
6914
|
+
* Contract address
|
|
6915
|
+
*/
|
|
6916
|
+
address: string;
|
|
6917
|
+
/**
|
|
6918
|
+
* First topic
|
|
6919
|
+
*/
|
|
6920
|
+
topic0: string;
|
|
6921
|
+
/**
|
|
6922
|
+
* Second topic (optional)
|
|
6923
|
+
*/
|
|
6924
|
+
topic1?: string;
|
|
6925
|
+
/**
|
|
6926
|
+
* Third topic (optional)
|
|
6927
|
+
*/
|
|
6928
|
+
topic2?: string;
|
|
6929
|
+
/**
|
|
6930
|
+
* Fourth topic (optional)
|
|
6931
|
+
*/
|
|
6932
|
+
topic3?: string;
|
|
6933
|
+
/**
|
|
6934
|
+
* Event data
|
|
6935
|
+
*/
|
|
6936
|
+
data: string;
|
|
6937
|
+
/**
|
|
6938
|
+
* Transaction index
|
|
6939
|
+
*/
|
|
6940
|
+
transactionIndex: number;
|
|
6941
|
+
/**
|
|
6942
|
+
* Log index
|
|
6943
|
+
*/
|
|
6944
|
+
logIndex: number;
|
|
6945
|
+
/**
|
|
6946
|
+
* Indicates if the log was removed
|
|
6947
|
+
*/
|
|
6948
|
+
removed: boolean;
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
type NetworkTokenInfo = {
|
|
6952
|
+
/**
|
|
6953
|
+
* Token name
|
|
6954
|
+
*/
|
|
6955
|
+
tokenName?: string;
|
|
6956
|
+
/**
|
|
6957
|
+
* Token symbol
|
|
6958
|
+
*/
|
|
6959
|
+
tokenSymbol?: string;
|
|
6960
|
+
/**
|
|
6961
|
+
* Token decimals
|
|
6962
|
+
*/
|
|
6963
|
+
tokenDecimals?: number;
|
|
6964
|
+
/**
|
|
6965
|
+
* Value including decimals
|
|
6966
|
+
*/
|
|
6967
|
+
valueWithDecimals?: string;
|
|
6968
|
+
};
|
|
6969
|
+
|
|
5244
6970
|
type NextPageToken = {
|
|
5245
6971
|
/**
|
|
5246
6972
|
* 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 +7019,163 @@ type TooManyRequests = {
|
|
|
5293
7019
|
error: string;
|
|
5294
7020
|
};
|
|
5295
7021
|
|
|
7022
|
+
type WebhookInternalTransaction = {
|
|
7023
|
+
/**
|
|
7024
|
+
* Sender address
|
|
7025
|
+
*/
|
|
7026
|
+
from: string;
|
|
7027
|
+
/**
|
|
7028
|
+
* Recipient address
|
|
7029
|
+
*/
|
|
7030
|
+
to: string;
|
|
7031
|
+
/**
|
|
7032
|
+
* Internal transaction type
|
|
7033
|
+
*/
|
|
7034
|
+
internalTxType: string;
|
|
7035
|
+
/**
|
|
7036
|
+
* Value transferred
|
|
7037
|
+
*/
|
|
7038
|
+
value: string;
|
|
7039
|
+
/**
|
|
7040
|
+
* Gas used
|
|
7041
|
+
*/
|
|
7042
|
+
gasUsed: string;
|
|
7043
|
+
/**
|
|
7044
|
+
* Gas limit
|
|
7045
|
+
*/
|
|
7046
|
+
gasLimit: string;
|
|
7047
|
+
/**
|
|
7048
|
+
* Transaction hash
|
|
7049
|
+
*/
|
|
7050
|
+
transactionHash: string;
|
|
7051
|
+
};
|
|
7052
|
+
|
|
7053
|
+
type Transaction = {
|
|
7054
|
+
/**
|
|
7055
|
+
* Block hash of the transaction
|
|
7056
|
+
*/
|
|
7057
|
+
blockHash: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* Block number of the transaction
|
|
7060
|
+
*/
|
|
7061
|
+
blockNumber: string;
|
|
7062
|
+
/**
|
|
7063
|
+
* Sender address
|
|
7064
|
+
*/
|
|
7065
|
+
from: string;
|
|
7066
|
+
/**
|
|
7067
|
+
* Gas limit for the transaction
|
|
7068
|
+
*/
|
|
7069
|
+
gas: string;
|
|
7070
|
+
/**
|
|
7071
|
+
* Gas price used
|
|
7072
|
+
*/
|
|
7073
|
+
gasPrice: string;
|
|
7074
|
+
/**
|
|
7075
|
+
* Maximum fee per gas
|
|
7076
|
+
*/
|
|
7077
|
+
maxFeePerGas: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Maximum priority fee per gas
|
|
7080
|
+
*/
|
|
7081
|
+
maxPriorityFeePerGas: string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Transaction hash
|
|
7084
|
+
*/
|
|
7085
|
+
txHash: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Transaction status
|
|
7088
|
+
*/
|
|
7089
|
+
txStatus: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Input data
|
|
7092
|
+
*/
|
|
7093
|
+
input: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Nonce value
|
|
7096
|
+
*/
|
|
7097
|
+
nonce: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Recipient address
|
|
7100
|
+
*/
|
|
7101
|
+
to: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Transaction index
|
|
7104
|
+
*/
|
|
7105
|
+
transactionIndex: number;
|
|
7106
|
+
/**
|
|
7107
|
+
* Value transferred in the transaction
|
|
7108
|
+
*/
|
|
7109
|
+
value: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* Transaction type
|
|
7112
|
+
*/
|
|
7113
|
+
type: number;
|
|
7114
|
+
/**
|
|
7115
|
+
* Chain ID of the network
|
|
7116
|
+
*/
|
|
7117
|
+
chainId: string;
|
|
7118
|
+
/**
|
|
7119
|
+
* Cumulative gas used
|
|
7120
|
+
*/
|
|
7121
|
+
receiptCumulativeGasUsed: string;
|
|
7122
|
+
/**
|
|
7123
|
+
* Gas used
|
|
7124
|
+
*/
|
|
7125
|
+
receiptGasUsed: string;
|
|
7126
|
+
/**
|
|
7127
|
+
* Effective gas price
|
|
7128
|
+
*/
|
|
7129
|
+
receiptEffectiveGasPrice: string;
|
|
7130
|
+
/**
|
|
7131
|
+
* Receipt root
|
|
7132
|
+
*/
|
|
7133
|
+
receiptRoot: string;
|
|
7134
|
+
/**
|
|
7135
|
+
* Block timestamp
|
|
7136
|
+
*/
|
|
7137
|
+
blockTimestamp: number;
|
|
7138
|
+
/**
|
|
7139
|
+
* Contract address (optional)
|
|
7140
|
+
*/
|
|
7141
|
+
contractAddress?: string;
|
|
7142
|
+
/**
|
|
7143
|
+
* ERC20 transfers
|
|
7144
|
+
*/
|
|
7145
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7146
|
+
/**
|
|
7147
|
+
* ERC721 transfers
|
|
7148
|
+
*/
|
|
7149
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7150
|
+
/**
|
|
7151
|
+
* ERC1155 transfers
|
|
7152
|
+
*/
|
|
7153
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7154
|
+
/**
|
|
7155
|
+
* Internal transactions (optional)
|
|
7156
|
+
*/
|
|
7157
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7158
|
+
/**
|
|
7159
|
+
* Access list (optional)
|
|
7160
|
+
*/
|
|
7161
|
+
accessList?: Array<AccessListData>;
|
|
7162
|
+
/**
|
|
7163
|
+
* Network token info (optional)
|
|
7164
|
+
*/
|
|
7165
|
+
networkToken?: NetworkTokenInfo;
|
|
7166
|
+
};
|
|
7167
|
+
|
|
7168
|
+
type TransactionEvent = {
|
|
7169
|
+
/**
|
|
7170
|
+
* Transaction details
|
|
7171
|
+
*/
|
|
7172
|
+
transaction: Transaction;
|
|
7173
|
+
/**
|
|
7174
|
+
* Array of log events
|
|
7175
|
+
*/
|
|
7176
|
+
logs?: Array<Log>;
|
|
7177
|
+
};
|
|
7178
|
+
|
|
5296
7179
|
type Unauthorized = {
|
|
5297
7180
|
/**
|
|
5298
7181
|
* The error message describing the reason for the exception
|
|
@@ -5308,4 +7191,43 @@ type Unauthorized = {
|
|
|
5308
7191
|
error: string;
|
|
5309
7192
|
};
|
|
5310
7193
|
|
|
5311
|
-
|
|
7194
|
+
type WebhookAddressActivityResponse = {
|
|
7195
|
+
/**
|
|
7196
|
+
* Webhook ID
|
|
7197
|
+
*/
|
|
7198
|
+
webhookId: string;
|
|
7199
|
+
/**
|
|
7200
|
+
* Event type
|
|
7201
|
+
*/
|
|
7202
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7203
|
+
/**
|
|
7204
|
+
* Message ID
|
|
7205
|
+
*/
|
|
7206
|
+
messageId: string;
|
|
7207
|
+
/**
|
|
7208
|
+
* Event details
|
|
7209
|
+
*/
|
|
7210
|
+
event: TransactionEvent;
|
|
7211
|
+
};
|
|
7212
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7213
|
+
/**
|
|
7214
|
+
* Event type
|
|
7215
|
+
*/
|
|
7216
|
+
enum eventType {
|
|
7217
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7218
|
+
}
|
|
7219
|
+
}
|
|
7220
|
+
|
|
7221
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7222
|
+
constructor(config: OpenAPIConfig);
|
|
7223
|
+
/**
|
|
7224
|
+
* Request method
|
|
7225
|
+
* @param options The request options from the service
|
|
7226
|
+
* @returns CancelablePromise<T>
|
|
7227
|
+
* @throws ApiError
|
|
7228
|
+
*/
|
|
7229
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7230
|
+
}
|
|
7231
|
+
|
|
7232
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7233
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|