@avalabs/glacier-sdk 3.1.0-canary.b1108b2.0 → 3.1.0-canary.b29ab7b.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 +2644 -543
- package/esm/generated/Glacier.d.ts +8 -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/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 +5 -5
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20Transfer.d.ts +6 -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 +6 -2
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +14 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +6 -2
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/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 +2 -1
- 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 +1 -1
- 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/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
- 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 +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- 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 +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +28 -0
- 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/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- 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/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 +166 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +9 -9
- package/esm/generated/services/EvmBlocksService.d.ts +23 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +84 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
- 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/NfTsService.d.ts +3 -3
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +64 -13
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +57 -2
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +17 -11
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +76 -10
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- 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,145 @@ 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
|
+
|
|
232
|
+
type RpcUsageMetricsValueAggregated = {
|
|
233
|
+
/**
|
|
234
|
+
* The total number of requests
|
|
235
|
+
*/
|
|
236
|
+
totalRequests: number;
|
|
237
|
+
/**
|
|
238
|
+
* The number of API credits used
|
|
239
|
+
*/
|
|
240
|
+
apiCreditsUsed: number;
|
|
241
|
+
/**
|
|
242
|
+
* The number of requests per second
|
|
243
|
+
*/
|
|
244
|
+
requestsPerSecond: number;
|
|
245
|
+
/**
|
|
246
|
+
* The success rate percentage
|
|
247
|
+
*/
|
|
248
|
+
successRatePercent: number;
|
|
249
|
+
/**
|
|
250
|
+
* The median response time in milliseconds
|
|
251
|
+
*/
|
|
252
|
+
medianResponseTimeMsecs: number;
|
|
253
|
+
/**
|
|
254
|
+
* The number of invalid requests
|
|
255
|
+
*/
|
|
256
|
+
invalidRequests: number;
|
|
257
|
+
/**
|
|
258
|
+
* The number of API credits wasted on invalid requests
|
|
259
|
+
*/
|
|
260
|
+
apiCreditsWasted: number;
|
|
261
|
+
/**
|
|
262
|
+
* Column name used for data aggregation
|
|
263
|
+
*/
|
|
264
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
265
|
+
/**
|
|
266
|
+
* The value of the column used for data aggregation
|
|
267
|
+
*/
|
|
268
|
+
groupValue?: (string | number);
|
|
269
|
+
};
|
|
270
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
271
|
+
/**
|
|
272
|
+
* Column name used for data aggregation
|
|
273
|
+
*/
|
|
274
|
+
enum groupedBy {
|
|
275
|
+
RPC_METHOD = "rpcMethod",
|
|
276
|
+
RESPONSE_CODE = "responseCode",
|
|
277
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
278
|
+
REQUEST_PATH = "requestPath",
|
|
279
|
+
COUNTRY = "country",
|
|
280
|
+
CONTINENT = "continent",
|
|
281
|
+
USER_AGENT = "userAgent",
|
|
282
|
+
NONE = "None"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
type RpcMetrics = {
|
|
287
|
+
/**
|
|
288
|
+
* The timestamp of the metrics value
|
|
289
|
+
*/
|
|
290
|
+
timestamp: number;
|
|
291
|
+
/**
|
|
292
|
+
* The metrics values for the timestamp
|
|
293
|
+
*/
|
|
294
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
298
|
+
/**
|
|
299
|
+
* Duration in which the metrics value is aggregated
|
|
300
|
+
*/
|
|
301
|
+
aggregateDuration: string;
|
|
302
|
+
/**
|
|
303
|
+
* Metrics values
|
|
304
|
+
*/
|
|
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;
|
|
339
|
+
/**
|
|
340
|
+
* Metrics values
|
|
341
|
+
*/
|
|
342
|
+
metrics: Array<RpcMetrics>;
|
|
343
|
+
/**
|
|
344
|
+
* ChainId for which the metrics are aggregated
|
|
345
|
+
*/
|
|
346
|
+
chainId: string;
|
|
347
|
+
};
|
|
348
|
+
|
|
151
349
|
declare enum TimeIntervalGranularityExtended {
|
|
152
350
|
MINUTE = "minute",
|
|
153
351
|
HOURLY = "hourly",
|
|
@@ -251,17 +449,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
449
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
450
|
* @throws ApiError
|
|
253
451
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
452
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
453
|
/**
|
|
256
454
|
* Organization ID to fetch usage metrics for
|
|
257
455
|
*/
|
|
258
456
|
orgId?: string;
|
|
259
457
|
/**
|
|
260
|
-
*
|
|
458
|
+
* 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.
|
|
261
459
|
*/
|
|
262
460
|
startTimestamp?: number;
|
|
263
461
|
/**
|
|
264
|
-
*
|
|
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.
|
|
265
463
|
*/
|
|
266
464
|
endTimestamp?: number;
|
|
267
465
|
/**
|
|
@@ -273,25 +471,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
471
|
*/
|
|
274
472
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
473
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
474
|
+
* Filter data by chain ID.
|
|
281
475
|
*/
|
|
282
|
-
|
|
476
|
+
chainId?: string;
|
|
283
477
|
/**
|
|
284
478
|
* Filter data by response status code.
|
|
285
479
|
*/
|
|
286
480
|
responseCode?: string;
|
|
287
481
|
/**
|
|
288
|
-
* Filter data by
|
|
482
|
+
* Filter data by request type.
|
|
289
483
|
*/
|
|
290
|
-
|
|
484
|
+
requestType?: 'data' | 'rpc';
|
|
291
485
|
/**
|
|
292
486
|
* Filter data by API key ID.
|
|
293
487
|
*/
|
|
294
488
|
apiKeyId?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Filter data by request path.
|
|
491
|
+
*/
|
|
492
|
+
requestPath?: string;
|
|
295
493
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
494
|
/**
|
|
297
495
|
* Get logs for requests made by client
|
|
@@ -299,39 +497,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
497
|
* @returns LogsResponseDTO Successful response
|
|
300
498
|
* @throws ApiError
|
|
301
499
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
500
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
501
|
/**
|
|
304
502
|
* Organization ID to fetch usage metrics for
|
|
305
503
|
*/
|
|
306
504
|
orgId?: string;
|
|
307
505
|
/**
|
|
308
|
-
*
|
|
506
|
+
* 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.
|
|
309
507
|
*/
|
|
310
508
|
startTimestamp?: number;
|
|
311
509
|
/**
|
|
312
|
-
*
|
|
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.
|
|
313
511
|
*/
|
|
314
512
|
endTimestamp?: number;
|
|
315
513
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
514
|
+
* Filter data by chain ID.
|
|
321
515
|
*/
|
|
322
|
-
|
|
516
|
+
chainId?: string;
|
|
323
517
|
/**
|
|
324
518
|
* Filter data by response status code.
|
|
325
519
|
*/
|
|
326
520
|
responseCode?: string;
|
|
327
521
|
/**
|
|
328
|
-
* Filter data by
|
|
522
|
+
* Filter data by request type.
|
|
329
523
|
*/
|
|
330
|
-
|
|
524
|
+
requestType?: 'data' | 'rpc';
|
|
331
525
|
/**
|
|
332
526
|
* Filter data by API key ID.
|
|
333
527
|
*/
|
|
334
528
|
apiKeyId?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by request path.
|
|
531
|
+
*/
|
|
532
|
+
requestPath?: string;
|
|
335
533
|
/**
|
|
336
534
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
535
|
*/
|
|
@@ -341,68 +539,205 @@ declare class DataApiUsageMetricsService {
|
|
|
341
539
|
*/
|
|
342
540
|
pageSize?: number;
|
|
343
541
|
}): CancelablePromise<LogsResponseDTO>;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
declare class DefaultService {
|
|
347
|
-
readonly httpRequest: BaseHttpRequest;
|
|
348
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
349
542
|
/**
|
|
350
|
-
*
|
|
543
|
+
* Get usage metrics for the Subnet RPC
|
|
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
|
|
351
546
|
* @throws ApiError
|
|
352
547
|
*/
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
name: string;
|
|
389
|
-
/**
|
|
390
|
-
* The contract symbol.
|
|
391
|
-
*/
|
|
392
|
-
symbol: string;
|
|
393
|
-
/**
|
|
394
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
395
|
-
*/
|
|
396
|
-
decimals: number;
|
|
397
|
-
/**
|
|
398
|
-
* The logo uri for the address.
|
|
399
|
-
*/
|
|
400
|
-
logoUri?: string;
|
|
548
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
549
|
+
/**
|
|
550
|
+
* Time interval granularity for data aggregation for subnet
|
|
551
|
+
* rpc metrics
|
|
552
|
+
*/
|
|
553
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
554
|
+
/**
|
|
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.
|
|
556
|
+
*/
|
|
557
|
+
startTimestamp?: number;
|
|
558
|
+
/**
|
|
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.
|
|
560
|
+
*/
|
|
561
|
+
endTimestamp?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Query param for the criterion used for grouping metrics
|
|
564
|
+
*/
|
|
565
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
566
|
+
/**
|
|
567
|
+
* Filter data by chain ID.
|
|
568
|
+
*/
|
|
569
|
+
chainId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Filter data by response status code.
|
|
572
|
+
*/
|
|
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>;
|
|
401
583
|
/**
|
|
402
|
-
*
|
|
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
|
|
403
590
|
*/
|
|
404
|
-
chainId:
|
|
405
|
-
|
|
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;
|
|
613
|
+
/**
|
|
614
|
+
* Filter data by response status code.
|
|
615
|
+
*/
|
|
616
|
+
responseCode?: string;
|
|
617
|
+
/**
|
|
618
|
+
* Filter data by RPC method.
|
|
619
|
+
*/
|
|
620
|
+
rpcMethod?: string;
|
|
621
|
+
/**
|
|
622
|
+
* Filter data by Rl Bypass API Token.
|
|
623
|
+
*/
|
|
624
|
+
rlBypassApiToken?: string;
|
|
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>;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
declare class DefaultService {
|
|
682
|
+
readonly httpRequest: BaseHttpRequest;
|
|
683
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
684
|
+
/**
|
|
685
|
+
* @returns any
|
|
686
|
+
* @throws ApiError
|
|
687
|
+
*/
|
|
688
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* ISO 4217 currency code.
|
|
693
|
+
*/
|
|
694
|
+
declare enum CurrencyCode {
|
|
695
|
+
USD = "usd",
|
|
696
|
+
EUR = "eur",
|
|
697
|
+
AUD = "aud",
|
|
698
|
+
CAD = "cad",
|
|
699
|
+
CHF = "chf",
|
|
700
|
+
CLP = "clp",
|
|
701
|
+
CNY = "cny",
|
|
702
|
+
CZK = "czk",
|
|
703
|
+
DKK = "dkk",
|
|
704
|
+
GBP = "gbp",
|
|
705
|
+
HKD = "hkd",
|
|
706
|
+
HUF = "huf",
|
|
707
|
+
JPY = "jpy",
|
|
708
|
+
NZD = "nzd"
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
type Money = {
|
|
712
|
+
currencyCode: CurrencyCode;
|
|
713
|
+
/**
|
|
714
|
+
* Monetary value in base 10 decimals.
|
|
715
|
+
*/
|
|
716
|
+
value: number;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
type NativeTokenBalance = {
|
|
720
|
+
/**
|
|
721
|
+
* The contract name.
|
|
722
|
+
*/
|
|
723
|
+
name: string;
|
|
724
|
+
/**
|
|
725
|
+
* The contract symbol.
|
|
726
|
+
*/
|
|
727
|
+
symbol: string;
|
|
728
|
+
/**
|
|
729
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
730
|
+
*/
|
|
731
|
+
decimals: number;
|
|
732
|
+
/**
|
|
733
|
+
* The logo uri for the address.
|
|
734
|
+
*/
|
|
735
|
+
logoUri?: string;
|
|
736
|
+
/**
|
|
737
|
+
* The evm chain id.
|
|
738
|
+
*/
|
|
739
|
+
chainId: string;
|
|
740
|
+
/**
|
|
406
741
|
* The token price, if available.
|
|
407
742
|
*/
|
|
408
743
|
price?: Money;
|
|
@@ -539,6 +874,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
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.
|
|
540
875
|
*/
|
|
541
876
|
nextPageToken?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The native token balance for the address.
|
|
879
|
+
*/
|
|
880
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
881
|
/**
|
|
543
882
|
* The list of ERC-1155 token balances for the address.
|
|
544
883
|
*/
|
|
@@ -583,11 +922,22 @@ type Erc20TokenBalance = {
|
|
|
583
922
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
923
|
*/
|
|
585
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;
|
|
586
929
|
};
|
|
587
930
|
declare namespace Erc20TokenBalance {
|
|
588
931
|
enum ercType {
|
|
589
932
|
ERC_20 = "ERC-20"
|
|
590
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
|
+
}
|
|
591
941
|
}
|
|
592
942
|
|
|
593
943
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +945,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
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.
|
|
596
946
|
*/
|
|
597
947
|
nextPageToken?: string;
|
|
948
|
+
/**
|
|
949
|
+
* The native token balance for the address.
|
|
950
|
+
*/
|
|
951
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
952
|
/**
|
|
599
953
|
* The list of ERC-20 token balances for the address.
|
|
600
954
|
*/
|
|
@@ -606,6 +960,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
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.
|
|
607
961
|
*/
|
|
608
962
|
nextPageToken?: string;
|
|
963
|
+
/**
|
|
964
|
+
* The native token balance for the address.
|
|
965
|
+
*/
|
|
966
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
967
|
/**
|
|
610
968
|
* The list of ERC-721 token balances for the address.
|
|
611
969
|
*/
|
|
@@ -625,7 +983,7 @@ declare class EvmBalancesService {
|
|
|
625
983
|
*/
|
|
626
984
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
627
985
|
/**
|
|
628
|
-
* A supported evm chain id
|
|
986
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
629
987
|
*/
|
|
630
988
|
chainId: string;
|
|
631
989
|
/**
|
|
@@ -653,7 +1011,7 @@ declare class EvmBalancesService {
|
|
|
653
1011
|
*/
|
|
654
1012
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
655
1013
|
/**
|
|
656
|
-
* A supported evm chain id
|
|
1014
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
657
1015
|
*/
|
|
658
1016
|
chainId: string;
|
|
659
1017
|
/**
|
|
@@ -669,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
669
1027
|
*/
|
|
670
1028
|
pageToken?: string;
|
|
671
1029
|
/**
|
|
672
|
-
* 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.
|
|
673
1031
|
*/
|
|
674
1032
|
pageSize?: number;
|
|
675
1033
|
/**
|
|
@@ -695,7 +1053,7 @@ declare class EvmBalancesService {
|
|
|
695
1053
|
*/
|
|
696
1054
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
697
1055
|
/**
|
|
698
|
-
* A supported evm chain id
|
|
1056
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
699
1057
|
*/
|
|
700
1058
|
chainId: string;
|
|
701
1059
|
/**
|
|
@@ -707,7 +1065,7 @@ declare class EvmBalancesService {
|
|
|
707
1065
|
*/
|
|
708
1066
|
pageToken?: string;
|
|
709
1067
|
/**
|
|
710
|
-
* 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.
|
|
711
1069
|
*/
|
|
712
1070
|
pageSize?: number;
|
|
713
1071
|
/**
|
|
@@ -727,7 +1085,7 @@ declare class EvmBalancesService {
|
|
|
727
1085
|
*/
|
|
728
1086
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
729
1087
|
/**
|
|
730
|
-
* A supported evm chain id
|
|
1088
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
731
1089
|
*/
|
|
732
1090
|
chainId: string;
|
|
733
1091
|
/**
|
|
@@ -743,7 +1101,7 @@ declare class EvmBalancesService {
|
|
|
743
1101
|
*/
|
|
744
1102
|
pageToken?: string;
|
|
745
1103
|
/**
|
|
746
|
-
* 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.
|
|
747
1105
|
*/
|
|
748
1106
|
pageSize?: number;
|
|
749
1107
|
/**
|
|
@@ -761,7 +1119,7 @@ declare class EvmBalancesService {
|
|
|
761
1119
|
*/
|
|
762
1120
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
763
1121
|
/**
|
|
764
|
-
* A supported evm chain id
|
|
1122
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
765
1123
|
*/
|
|
766
1124
|
chainId: string;
|
|
767
1125
|
/**
|
|
@@ -773,7 +1131,7 @@ declare class EvmBalancesService {
|
|
|
773
1131
|
*/
|
|
774
1132
|
pageToken?: string;
|
|
775
1133
|
/**
|
|
776
|
-
* 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.
|
|
777
1135
|
*/
|
|
778
1136
|
pageSize?: number;
|
|
779
1137
|
/**
|
|
@@ -784,14 +1142,26 @@ declare class EvmBalancesService {
|
|
|
784
1142
|
}
|
|
785
1143
|
|
|
786
1144
|
type GetEvmBlockResponse = {
|
|
1145
|
+
/**
|
|
1146
|
+
* The EVM chain ID on which the block was created.
|
|
1147
|
+
*/
|
|
1148
|
+
chainId: string;
|
|
787
1149
|
/**
|
|
788
1150
|
* The block number on the chain.
|
|
789
1151
|
*/
|
|
790
1152
|
blockNumber: string;
|
|
791
1153
|
/**
|
|
792
|
-
* The block
|
|
1154
|
+
* The block creation (proposal) timestamp in seconds
|
|
793
1155
|
*/
|
|
794
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;
|
|
795
1165
|
/**
|
|
796
1166
|
* The block hash identifier.
|
|
797
1167
|
*/
|
|
@@ -828,14 +1198,26 @@ type GetEvmBlockResponse = {
|
|
|
828
1198
|
};
|
|
829
1199
|
|
|
830
1200
|
type EvmBlock = {
|
|
1201
|
+
/**
|
|
1202
|
+
* The EVM chain ID on which the block was created.
|
|
1203
|
+
*/
|
|
1204
|
+
chainId: string;
|
|
831
1205
|
/**
|
|
832
1206
|
* The block number on the chain.
|
|
833
1207
|
*/
|
|
834
1208
|
blockNumber: string;
|
|
835
1209
|
/**
|
|
836
|
-
* The block
|
|
1210
|
+
* The block creation (proposal) timestamp in seconds
|
|
837
1211
|
*/
|
|
838
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;
|
|
839
1221
|
/**
|
|
840
1222
|
* The block hash identifier.
|
|
841
1223
|
*/
|
|
@@ -882,6 +1264,26 @@ type ListEvmBlocksResponse = {
|
|
|
882
1264
|
declare class EvmBlocksService {
|
|
883
1265
|
readonly httpRequest: BaseHttpRequest;
|
|
884
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>;
|
|
885
1287
|
/**
|
|
886
1288
|
* List latest blocks
|
|
887
1289
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -890,7 +1292,7 @@ declare class EvmBlocksService {
|
|
|
890
1292
|
*/
|
|
891
1293
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
892
1294
|
/**
|
|
893
|
-
* A supported evm chain id
|
|
1295
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
894
1296
|
*/
|
|
895
1297
|
chainId: string;
|
|
896
1298
|
/**
|
|
@@ -910,7 +1312,7 @@ declare class EvmBlocksService {
|
|
|
910
1312
|
*/
|
|
911
1313
|
getBlock({ chainId, blockId, }: {
|
|
912
1314
|
/**
|
|
913
|
-
* A supported evm chain id
|
|
1315
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
914
1316
|
*/
|
|
915
1317
|
chainId: string;
|
|
916
1318
|
/**
|
|
@@ -1004,99 +1406,293 @@ type ChainInfo = {
|
|
|
1004
1406
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1407
|
};
|
|
1006
1408
|
|
|
1409
|
+
type ListAddressChainsResponse = {
|
|
1410
|
+
indexedChains?: Array<ChainInfo>;
|
|
1411
|
+
unindexedChains?: Array<string>;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1007
1414
|
type ListChainsResponse = {
|
|
1008
1415
|
chains: Array<ChainInfo>;
|
|
1009
1416
|
};
|
|
1010
1417
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
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"
|
|
1014
1425
|
}
|
|
1015
1426
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1019
|
-
/**
|
|
1020
|
-
* List chains
|
|
1021
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1022
|
-
* @returns ListChainsResponse Successful response
|
|
1023
|
-
* @throws ApiError
|
|
1024
|
-
*/
|
|
1025
|
-
supportedChains({ network, feature, }: {
|
|
1026
|
-
/**
|
|
1027
|
-
* mainnet or testnet.
|
|
1028
|
-
*/
|
|
1029
|
-
network?: NetworkType;
|
|
1030
|
-
/**
|
|
1031
|
-
* Filter by feature.
|
|
1032
|
-
*/
|
|
1033
|
-
feature?: ApiFeature;
|
|
1034
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1427
|
+
type Method = {
|
|
1428
|
+
callType: TransactionMethodType;
|
|
1035
1429
|
/**
|
|
1036
|
-
*
|
|
1037
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1038
|
-
* @returns GetChainResponse Successful response
|
|
1039
|
-
* @throws ApiError
|
|
1430
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1040
1431
|
*/
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
|
-
*/
|
|
1045
|
-
chainId: string;
|
|
1046
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
type ImageAsset = {
|
|
1050
|
-
assetId?: string;
|
|
1432
|
+
methodHash: string;
|
|
1051
1433
|
/**
|
|
1052
|
-
*
|
|
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'.
|
|
1053
1435
|
*/
|
|
1054
|
-
|
|
1055
|
-
};
|
|
1056
|
-
|
|
1057
|
-
type PricingProviders = {
|
|
1058
|
-
coingeckoCoinId?: string;
|
|
1059
|
-
};
|
|
1060
|
-
|
|
1061
|
-
declare enum ResourceLinkType {
|
|
1062
|
-
BLOG = "Blog",
|
|
1063
|
-
COIN_GECKO = "CoinGecko",
|
|
1064
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1065
|
-
DISCORD = "Discord",
|
|
1066
|
-
DOCUMENTATION = "Documentation",
|
|
1067
|
-
FACEBOOK = "Facebook",
|
|
1068
|
-
GITHUB = "Github",
|
|
1069
|
-
INSTAGRAM = "Instagram",
|
|
1070
|
-
LINKED_IN = "LinkedIn",
|
|
1071
|
-
MEDIUM = "Medium",
|
|
1072
|
-
REDDIT = "Reddit",
|
|
1073
|
-
SUPPORT = "Support",
|
|
1074
|
-
TELEGRAM = "Telegram",
|
|
1075
|
-
TIK_TOK = "TikTok",
|
|
1076
|
-
TWITTER = "Twitter",
|
|
1077
|
-
WEBSITE = "Website",
|
|
1078
|
-
WHITEPAPER = "Whitepaper",
|
|
1079
|
-
YOUTUBE = "Youtube"
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type ResourceLink = {
|
|
1083
|
-
type: ResourceLinkType;
|
|
1084
|
-
url: string;
|
|
1436
|
+
methodName?: string;
|
|
1085
1437
|
};
|
|
1086
1438
|
|
|
1087
|
-
type
|
|
1088
|
-
description?: string;
|
|
1089
|
-
officialSite?: string;
|
|
1090
|
-
email?: string;
|
|
1091
|
-
logoAsset?: ImageAsset;
|
|
1092
|
-
bannerAsset?: ImageAsset;
|
|
1093
|
-
color?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1439
|
+
type RichAddress = {
|
|
1096
1440
|
/**
|
|
1097
1441
|
* The contract name.
|
|
1098
1442
|
*/
|
|
1099
|
-
name
|
|
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, }: {
|
|
1576
|
+
/**
|
|
1577
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1578
|
+
*/
|
|
1579
|
+
chainId: string;
|
|
1580
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1581
|
+
/**
|
|
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
|
|
1587
|
+
* @throws ApiError
|
|
1588
|
+
*/
|
|
1589
|
+
getAddressChains({ address, }: {
|
|
1590
|
+
/**
|
|
1591
|
+
* A wallet address.
|
|
1592
|
+
*/
|
|
1593
|
+
address: string;
|
|
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>;
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
type ImageAsset = {
|
|
1646
|
+
assetId?: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* OUTPUT ONLY
|
|
1649
|
+
*/
|
|
1650
|
+
imageUri?: string;
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
type PricingProviders = {
|
|
1654
|
+
coingeckoCoinId?: string;
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
declare enum ResourceLinkType {
|
|
1658
|
+
BLOG = "Blog",
|
|
1659
|
+
COIN_GECKO = "CoinGecko",
|
|
1660
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1661
|
+
DISCORD = "Discord",
|
|
1662
|
+
DOCUMENTATION = "Documentation",
|
|
1663
|
+
FACEBOOK = "Facebook",
|
|
1664
|
+
GITHUB = "Github",
|
|
1665
|
+
INSTAGRAM = "Instagram",
|
|
1666
|
+
LINKED_IN = "LinkedIn",
|
|
1667
|
+
MEDIUM = "Medium",
|
|
1668
|
+
REDDIT = "Reddit",
|
|
1669
|
+
SUPPORT = "Support",
|
|
1670
|
+
TELEGRAM = "Telegram",
|
|
1671
|
+
TIK_TOK = "TikTok",
|
|
1672
|
+
TWITTER = "Twitter",
|
|
1673
|
+
WEBSITE = "Website",
|
|
1674
|
+
WHITEPAPER = "Whitepaper",
|
|
1675
|
+
YOUTUBE = "Youtube"
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
type ResourceLink = {
|
|
1679
|
+
type: ResourceLinkType;
|
|
1680
|
+
url: string;
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
type ContractSubmissionErc1155 = {
|
|
1684
|
+
description?: string;
|
|
1685
|
+
officialSite?: string;
|
|
1686
|
+
email?: string;
|
|
1687
|
+
logoAsset?: ImageAsset;
|
|
1688
|
+
bannerAsset?: ImageAsset;
|
|
1689
|
+
color?: string;
|
|
1690
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1691
|
+
tags?: Array<string>;
|
|
1692
|
+
/**
|
|
1693
|
+
* The contract name.
|
|
1694
|
+
*/
|
|
1695
|
+
name: string;
|
|
1100
1696
|
ercType: ContractSubmissionErc1155.ercType;
|
|
1101
1697
|
/**
|
|
1102
1698
|
* The contract symbol.
|
|
@@ -1215,7 +1811,7 @@ type Erc1155Contract = {
|
|
|
1215
1811
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1216
1812
|
*/
|
|
1217
1813
|
address: string;
|
|
1218
|
-
deploymentDetails
|
|
1814
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1219
1815
|
ercType: Erc1155Contract.ercType;
|
|
1220
1816
|
/**
|
|
1221
1817
|
* The contract symbol.
|
|
@@ -1246,7 +1842,7 @@ type Erc20Contract = {
|
|
|
1246
1842
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1247
1843
|
*/
|
|
1248
1844
|
address: string;
|
|
1249
|
-
deploymentDetails
|
|
1845
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1250
1846
|
ercType: Erc20Contract.ercType;
|
|
1251
1847
|
/**
|
|
1252
1848
|
* The contract symbol.
|
|
@@ -1281,7 +1877,7 @@ type Erc721Contract = {
|
|
|
1281
1877
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1282
1878
|
*/
|
|
1283
1879
|
address: string;
|
|
1284
|
-
deploymentDetails
|
|
1880
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1285
1881
|
ercType: Erc721Contract.ercType;
|
|
1286
1882
|
/**
|
|
1287
1883
|
* The contract symbol.
|
|
@@ -1311,7 +1907,7 @@ type UnknownContract = {
|
|
|
1311
1907
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1312
1908
|
*/
|
|
1313
1909
|
address: string;
|
|
1314
|
-
deploymentDetails
|
|
1910
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1315
1911
|
ercType: UnknownContract.ercType;
|
|
1316
1912
|
};
|
|
1317
1913
|
declare namespace UnknownContract {
|
|
@@ -1335,7 +1931,7 @@ declare class EvmContractsService {
|
|
|
1335
1931
|
*/
|
|
1336
1932
|
getContractMetadata({ chainId, address, }: {
|
|
1337
1933
|
/**
|
|
1338
|
-
* A supported evm chain id
|
|
1934
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1339
1935
|
*/
|
|
1340
1936
|
chainId: string;
|
|
1341
1937
|
/**
|
|
@@ -1351,7 +1947,7 @@ declare class EvmContractsService {
|
|
|
1351
1947
|
*/
|
|
1352
1948
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1353
1949
|
/**
|
|
1354
|
-
* A supported evm chain id
|
|
1950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1355
1951
|
*/
|
|
1356
1952
|
chainId: string;
|
|
1357
1953
|
/**
|
|
@@ -1378,29 +1974,6 @@ declare namespace Erc1155Token {
|
|
|
1378
1974
|
}
|
|
1379
1975
|
}
|
|
1380
1976
|
|
|
1381
|
-
type RichAddress = {
|
|
1382
|
-
/**
|
|
1383
|
-
* The contract name.
|
|
1384
|
-
*/
|
|
1385
|
-
name?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The contract symbol.
|
|
1388
|
-
*/
|
|
1389
|
-
symbol?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1392
|
-
*/
|
|
1393
|
-
decimals?: number;
|
|
1394
|
-
/**
|
|
1395
|
-
* The logo uri for the address.
|
|
1396
|
-
*/
|
|
1397
|
-
logoUri?: string;
|
|
1398
|
-
/**
|
|
1399
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1400
|
-
*/
|
|
1401
|
-
address: string;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
1977
|
type Erc1155TransferDetails = {
|
|
1405
1978
|
from: RichAddress;
|
|
1406
1979
|
to: RichAddress;
|
|
@@ -1485,40 +2058,31 @@ type Erc721TransferDetails = {
|
|
|
1485
2058
|
erc721Token: Erc721Token;
|
|
1486
2059
|
};
|
|
1487
2060
|
|
|
1488
|
-
/**
|
|
1489
|
-
* 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.
|
|
1490
|
-
*/
|
|
1491
|
-
declare enum TransactionMethodType {
|
|
1492
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1493
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1494
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
type Method = {
|
|
1498
|
-
callType: TransactionMethodType;
|
|
1499
|
-
/**
|
|
1500
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1501
|
-
*/
|
|
1502
|
-
methodHash: string;
|
|
1503
|
-
/**
|
|
1504
|
-
* 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'.
|
|
1505
|
-
*/
|
|
1506
|
-
methodName?: string;
|
|
1507
|
-
};
|
|
1508
|
-
|
|
1509
2061
|
type FullNativeTransactionDetails = {
|
|
1510
2062
|
/**
|
|
1511
2063
|
* The block number on the chain.
|
|
1512
2064
|
*/
|
|
1513
2065
|
blockNumber: string;
|
|
1514
2066
|
/**
|
|
1515
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
1516
2068
|
*/
|
|
1517
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;
|
|
1518
2078
|
/**
|
|
1519
2079
|
* The block hash identifier.
|
|
1520
2080
|
*/
|
|
1521
2081
|
blockHash: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The EVM chain ID on which the transaction occured.
|
|
2084
|
+
*/
|
|
2085
|
+
chainId: string;
|
|
1522
2086
|
/**
|
|
1523
2087
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1524
2088
|
*/
|
|
@@ -1569,6 +2133,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1569
2133
|
CALL = "CALL",
|
|
1570
2134
|
CREATE = "CREATE",
|
|
1571
2135
|
CREATE2 = "CREATE2",
|
|
2136
|
+
CREATE3 = "CREATE3",
|
|
1572
2137
|
CALLCODE = "CALLCODE",
|
|
1573
2138
|
DELEGATECALL = "DELEGATECALL",
|
|
1574
2139
|
STATICCALL = "STATICCALL"
|
|
@@ -1610,11 +2175,11 @@ type TeleporterMessageInfo = {
|
|
|
1610
2175
|
/**
|
|
1611
2176
|
* chain id of the source chain. valid only for destination transactions
|
|
1612
2177
|
*/
|
|
1613
|
-
sourceChainId?:
|
|
2178
|
+
sourceChainId?: string;
|
|
1614
2179
|
/**
|
|
1615
2180
|
* chain id of the destination chain. valid only for source transactions
|
|
1616
2181
|
*/
|
|
1617
|
-
destinationChainId?:
|
|
2182
|
+
destinationChainId?: string;
|
|
1618
2183
|
};
|
|
1619
2184
|
|
|
1620
2185
|
type GetTransactionResponse = {
|
|
@@ -1631,7 +2196,7 @@ type GetTransactionResponse = {
|
|
|
1631
2196
|
*/
|
|
1632
2197
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1633
2198
|
/**
|
|
1634
|
-
* 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.
|
|
1635
2200
|
*/
|
|
1636
2201
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1637
2202
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1656,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
1656
2221
|
*/
|
|
1657
2222
|
blockNumber: string;
|
|
1658
2223
|
/**
|
|
1659
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
1660
2225
|
*/
|
|
1661
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
1662
2231
|
/**
|
|
1663
2232
|
* The block hash identifier.
|
|
1664
2233
|
*/
|
|
@@ -1688,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
1688
2257
|
*/
|
|
1689
2258
|
blockNumber: string;
|
|
1690
2259
|
/**
|
|
1691
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
1692
2261
|
*/
|
|
1693
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
1694
2267
|
/**
|
|
1695
2268
|
* The block hash identifier.
|
|
1696
2269
|
*/
|
|
@@ -1720,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
1720
2293
|
*/
|
|
1721
2294
|
blockNumber: string;
|
|
1722
2295
|
/**
|
|
1723
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
1724
2297
|
*/
|
|
1725
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
1726
2303
|
/**
|
|
1727
2304
|
* The block hash identifier.
|
|
1728
2305
|
*/
|
|
@@ -1751,9 +2328,13 @@ type InternalTransaction = {
|
|
|
1751
2328
|
*/
|
|
1752
2329
|
blockNumber: string;
|
|
1753
2330
|
/**
|
|
1754
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
1755
2332
|
*/
|
|
1756
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
1757
2338
|
/**
|
|
1758
2339
|
* The block hash identifier.
|
|
1759
2340
|
*/
|
|
@@ -1782,65 +2363,6 @@ type ListInternalTransactionsResponse = {
|
|
|
1782
2363
|
transactions: Array<InternalTransaction>;
|
|
1783
2364
|
};
|
|
1784
2365
|
|
|
1785
|
-
type NativeTransaction = {
|
|
1786
|
-
/**
|
|
1787
|
-
* The block number on the chain.
|
|
1788
|
-
*/
|
|
1789
|
-
blockNumber: string;
|
|
1790
|
-
/**
|
|
1791
|
-
* The block finality timestamp.
|
|
1792
|
-
*/
|
|
1793
|
-
blockTimestamp: number;
|
|
1794
|
-
/**
|
|
1795
|
-
* The block hash identifier.
|
|
1796
|
-
*/
|
|
1797
|
-
blockHash: string;
|
|
1798
|
-
/**
|
|
1799
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1800
|
-
*/
|
|
1801
|
-
blockIndex: number;
|
|
1802
|
-
/**
|
|
1803
|
-
* The transaction hash identifier.
|
|
1804
|
-
*/
|
|
1805
|
-
txHash: string;
|
|
1806
|
-
/**
|
|
1807
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1808
|
-
*/
|
|
1809
|
-
txStatus: string;
|
|
1810
|
-
/**
|
|
1811
|
-
* The transaction type.
|
|
1812
|
-
*/
|
|
1813
|
-
txType: number;
|
|
1814
|
-
/**
|
|
1815
|
-
* The gas limit set for the transaction.
|
|
1816
|
-
*/
|
|
1817
|
-
gasLimit: string;
|
|
1818
|
-
/**
|
|
1819
|
-
* The amount of gas used.
|
|
1820
|
-
*/
|
|
1821
|
-
gasUsed: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1824
|
-
*/
|
|
1825
|
-
gasPrice: string;
|
|
1826
|
-
/**
|
|
1827
|
-
* The nonce used by the sender of the transaction.
|
|
1828
|
-
*/
|
|
1829
|
-
nonce: string;
|
|
1830
|
-
from: RichAddress;
|
|
1831
|
-
to: RichAddress;
|
|
1832
|
-
method?: Method;
|
|
1833
|
-
value: string;
|
|
1834
|
-
};
|
|
1835
|
-
|
|
1836
|
-
type ListNativeTransactionsResponse = {
|
|
1837
|
-
/**
|
|
1838
|
-
* 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.
|
|
1839
|
-
*/
|
|
1840
|
-
nextPageToken?: string;
|
|
1841
|
-
transactions: Array<NativeTransaction>;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
2366
|
type TransactionDetails = {
|
|
1845
2367
|
/**
|
|
1846
2368
|
* The native (top-level) transaction details.
|
|
@@ -1859,7 +2381,7 @@ type TransactionDetails = {
|
|
|
1859
2381
|
*/
|
|
1860
2382
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1861
2383
|
/**
|
|
1862
|
-
* 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
|
|
2384
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1863
2385
|
*/
|
|
1864
2386
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1865
2387
|
};
|
|
@@ -1885,14 +2407,33 @@ declare enum SortOrder {
|
|
|
1885
2407
|
DESC = "desc"
|
|
1886
2408
|
}
|
|
1887
2409
|
|
|
1888
|
-
declare enum TransactionStatus {
|
|
1889
|
-
FAILED = "failed",
|
|
1890
|
-
SUCCESS = "success"
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
2410
|
declare class EvmTransactionsService {
|
|
1894
2411
|
readonly httpRequest: BaseHttpRequest;
|
|
1895
2412
|
constructor(httpRequest: BaseHttpRequest);
|
|
2413
|
+
/**
|
|
2414
|
+
* List the latest transactions across all supported EVM chains
|
|
2415
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2416
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2417
|
+
* @throws ApiError
|
|
2418
|
+
*/
|
|
2419
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2420
|
+
/**
|
|
2421
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2422
|
+
*/
|
|
2423
|
+
pageToken?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2426
|
+
*/
|
|
2427
|
+
pageSize?: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* Either mainnet or testnet/fuji.
|
|
2430
|
+
*/
|
|
2431
|
+
network?: Network;
|
|
2432
|
+
/**
|
|
2433
|
+
* A status filter for listed transactions.
|
|
2434
|
+
*/
|
|
2435
|
+
status?: TransactionStatus;
|
|
2436
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1896
2437
|
/**
|
|
1897
2438
|
* Get deployment transaction
|
|
1898
2439
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -1901,7 +2442,7 @@ declare class EvmTransactionsService {
|
|
|
1901
2442
|
*/
|
|
1902
2443
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1903
2444
|
/**
|
|
1904
|
-
* A supported evm chain id
|
|
2445
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
2446
|
*/
|
|
1906
2447
|
chainId: string;
|
|
1907
2448
|
/**
|
|
@@ -1921,7 +2462,7 @@ declare class EvmTransactionsService {
|
|
|
1921
2462
|
*/
|
|
1922
2463
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1923
2464
|
/**
|
|
1924
|
-
* A supported evm chain id
|
|
2465
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1925
2466
|
*/
|
|
1926
2467
|
chainId: string;
|
|
1927
2468
|
/**
|
|
@@ -1945,7 +2486,7 @@ declare class EvmTransactionsService {
|
|
|
1945
2486
|
*/
|
|
1946
2487
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1947
2488
|
/**
|
|
1948
|
-
* A supported evm chain id
|
|
2489
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
2490
|
*/
|
|
1950
2491
|
chainId: string;
|
|
1951
2492
|
/**
|
|
@@ -1979,7 +2520,7 @@ declare class EvmTransactionsService {
|
|
|
1979
2520
|
*/
|
|
1980
2521
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1981
2522
|
/**
|
|
1982
|
-
* A supported evm chain id
|
|
2523
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1983
2524
|
*/
|
|
1984
2525
|
chainId: string;
|
|
1985
2526
|
/**
|
|
@@ -2015,7 +2556,7 @@ declare class EvmTransactionsService {
|
|
|
2015
2556
|
*/
|
|
2016
2557
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2017
2558
|
/**
|
|
2018
|
-
* A supported evm chain id
|
|
2559
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2019
2560
|
*/
|
|
2020
2561
|
chainId: string;
|
|
2021
2562
|
/**
|
|
@@ -2047,7 +2588,7 @@ declare class EvmTransactionsService {
|
|
|
2047
2588
|
*/
|
|
2048
2589
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2049
2590
|
/**
|
|
2050
|
-
* A supported evm chain id
|
|
2591
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2051
2592
|
*/
|
|
2052
2593
|
chainId: string;
|
|
2053
2594
|
/**
|
|
@@ -2079,7 +2620,7 @@ declare class EvmTransactionsService {
|
|
|
2079
2620
|
*/
|
|
2080
2621
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2081
2622
|
/**
|
|
2082
|
-
* A supported evm chain id
|
|
2623
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2083
2624
|
*/
|
|
2084
2625
|
chainId: string;
|
|
2085
2626
|
/**
|
|
@@ -2111,7 +2652,7 @@ declare class EvmTransactionsService {
|
|
|
2111
2652
|
*/
|
|
2112
2653
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2113
2654
|
/**
|
|
2114
|
-
* A supported evm chain id
|
|
2655
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2115
2656
|
*/
|
|
2116
2657
|
chainId: string;
|
|
2117
2658
|
/**
|
|
@@ -2139,13 +2680,13 @@ declare class EvmTransactionsService {
|
|
|
2139
2680
|
* List internal transactions
|
|
2140
2681
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2141
2682
|
*
|
|
2142
|
-
* 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.
|
|
2683
|
+
* 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.
|
|
2143
2684
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2144
2685
|
* @throws ApiError
|
|
2145
2686
|
*/
|
|
2146
2687
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2147
2688
|
/**
|
|
2148
|
-
* A supported evm chain id
|
|
2689
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2149
2690
|
*/
|
|
2150
2691
|
chainId: string;
|
|
2151
2692
|
/**
|
|
@@ -2177,7 +2718,7 @@ declare class EvmTransactionsService {
|
|
|
2177
2718
|
*/
|
|
2178
2719
|
getTransaction({ chainId, txHash, }: {
|
|
2179
2720
|
/**
|
|
2180
|
-
* A supported evm chain id
|
|
2721
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2181
2722
|
*/
|
|
2182
2723
|
chainId: string;
|
|
2183
2724
|
/**
|
|
@@ -2191,15 +2732,23 @@ declare class EvmTransactionsService {
|
|
|
2191
2732
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2192
2733
|
* @throws ApiError
|
|
2193
2734
|
*/
|
|
2194
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2735
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2195
2736
|
/**
|
|
2196
|
-
* A supported evm chain id
|
|
2737
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2197
2738
|
*/
|
|
2198
2739
|
chainId: string;
|
|
2199
2740
|
/**
|
|
2200
2741
|
* A block identifier which is either a block number or the block hash.
|
|
2201
2742
|
*/
|
|
2202
2743
|
blockId: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2746
|
+
*/
|
|
2747
|
+
pageToken?: string;
|
|
2748
|
+
/**
|
|
2749
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2750
|
+
*/
|
|
2751
|
+
pageSize?: number;
|
|
2203
2752
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2204
2753
|
/**
|
|
2205
2754
|
* List latest transactions
|
|
@@ -2209,7 +2758,7 @@ declare class EvmTransactionsService {
|
|
|
2209
2758
|
*/
|
|
2210
2759
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2211
2760
|
/**
|
|
2212
|
-
* A supported evm chain id
|
|
2761
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2213
2762
|
*/
|
|
2214
2763
|
chainId: string;
|
|
2215
2764
|
/**
|
|
@@ -2227,20 +2776,268 @@ declare class EvmTransactionsService {
|
|
|
2227
2776
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2228
2777
|
}
|
|
2229
2778
|
|
|
2779
|
+
type HealthIndicatorResultDto = {
|
|
2780
|
+
/**
|
|
2781
|
+
* Status of the health indicator.
|
|
2782
|
+
*/
|
|
2783
|
+
status?: HealthIndicatorResultDto.status;
|
|
2784
|
+
};
|
|
2785
|
+
declare namespace HealthIndicatorResultDto {
|
|
2786
|
+
/**
|
|
2787
|
+
* Status of the health indicator.
|
|
2788
|
+
*/
|
|
2789
|
+
enum status {
|
|
2790
|
+
UP = "up",
|
|
2791
|
+
DOWN = "down"
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
type HealthCheckResultDto = {
|
|
2796
|
+
status?: HealthCheckResultDto.status;
|
|
2797
|
+
info?: any | null;
|
|
2798
|
+
error?: any | null;
|
|
2799
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2800
|
+
};
|
|
2801
|
+
declare namespace HealthCheckResultDto {
|
|
2802
|
+
enum status {
|
|
2803
|
+
ERROR = "error",
|
|
2804
|
+
OK = "ok",
|
|
2805
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2230
2809
|
declare class HealthCheckService {
|
|
2231
2810
|
readonly httpRequest: BaseHttpRequest;
|
|
2232
2811
|
constructor(httpRequest: BaseHttpRequest);
|
|
2233
2812
|
/**
|
|
2234
2813
|
* Get the health of the service
|
|
2235
|
-
*
|
|
2814
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2815
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2236
2816
|
* @throws ApiError
|
|
2237
2817
|
*/
|
|
2238
|
-
dataHealthCheck(): CancelablePromise<
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2818
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2819
|
+
/**
|
|
2820
|
+
* Get the liveliness of the service (reads only)
|
|
2821
|
+
* Check the liveliness of the service (reads only).
|
|
2822
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2823
|
+
* @throws ApiError
|
|
2824
|
+
*/
|
|
2825
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
type IcmDestinationTransaction = {
|
|
2829
|
+
txHash: string;
|
|
2830
|
+
timestamp: number;
|
|
2831
|
+
gasSpent: string;
|
|
2832
|
+
rewardRedeemer: string;
|
|
2833
|
+
delivererAddress: string;
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
type IcmReceipt = {
|
|
2837
|
+
receivedMessageNonce: string;
|
|
2838
|
+
relayerRewardAddress: string;
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
type IcmRewardDetails = {
|
|
2842
|
+
/**
|
|
2843
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2844
|
+
*/
|
|
2845
|
+
address: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* The contract name.
|
|
2848
|
+
*/
|
|
2849
|
+
name: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* The contract symbol.
|
|
2852
|
+
*/
|
|
2853
|
+
symbol: string;
|
|
2854
|
+
/**
|
|
2855
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2856
|
+
*/
|
|
2857
|
+
decimals: number;
|
|
2858
|
+
/**
|
|
2859
|
+
* The logo uri for the address.
|
|
2860
|
+
*/
|
|
2861
|
+
logoUri?: string;
|
|
2862
|
+
ercType: IcmRewardDetails.ercType;
|
|
2863
|
+
/**
|
|
2864
|
+
* The token price, if available.
|
|
2865
|
+
*/
|
|
2866
|
+
price?: Money;
|
|
2867
|
+
value: string;
|
|
2868
|
+
};
|
|
2869
|
+
declare namespace IcmRewardDetails {
|
|
2870
|
+
enum ercType {
|
|
2871
|
+
ERC_20 = "ERC-20"
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
type IcmSourceTransaction = {
|
|
2876
|
+
txHash: string;
|
|
2877
|
+
timestamp: number;
|
|
2878
|
+
gasSpent: string;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
type DeliveredIcmMessage = {
|
|
2882
|
+
messageId: string;
|
|
2883
|
+
icmContractAddress: string;
|
|
2884
|
+
sourceBlockchainId: string;
|
|
2885
|
+
destinationBlockchainId: string;
|
|
2886
|
+
sourceEvmChainId: string;
|
|
2887
|
+
destinationEvmChainId: string;
|
|
2888
|
+
messageNonce: string;
|
|
2889
|
+
from: string;
|
|
2890
|
+
to: string;
|
|
2891
|
+
data?: string;
|
|
2892
|
+
messageExecuted: boolean;
|
|
2893
|
+
receipts: Array<IcmReceipt>;
|
|
2894
|
+
receiptDelivered: boolean;
|
|
2895
|
+
rewardDetails: IcmRewardDetails;
|
|
2896
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2897
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2898
|
+
status: DeliveredIcmMessage.status;
|
|
2899
|
+
};
|
|
2900
|
+
declare namespace DeliveredIcmMessage {
|
|
2901
|
+
enum status {
|
|
2902
|
+
DELIVERED = "delivered"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2907
|
+
messageId: string;
|
|
2908
|
+
icmContractAddress: string;
|
|
2909
|
+
sourceBlockchainId: string;
|
|
2910
|
+
destinationBlockchainId: string;
|
|
2911
|
+
sourceEvmChainId: string;
|
|
2912
|
+
destinationEvmChainId: string;
|
|
2913
|
+
messageNonce: string;
|
|
2914
|
+
from: string;
|
|
2915
|
+
to: string;
|
|
2916
|
+
data?: string;
|
|
2917
|
+
messageExecuted: boolean;
|
|
2918
|
+
receipts: Array<IcmReceipt>;
|
|
2919
|
+
receiptDelivered: boolean;
|
|
2920
|
+
rewardDetails: IcmRewardDetails;
|
|
2921
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2922
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2923
|
+
};
|
|
2924
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2925
|
+
enum status {
|
|
2926
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
type PendingIcmMessage = {
|
|
2931
|
+
messageId: string;
|
|
2932
|
+
icmContractAddress: string;
|
|
2933
|
+
sourceBlockchainId: string;
|
|
2934
|
+
destinationBlockchainId: string;
|
|
2935
|
+
sourceEvmChainId: string;
|
|
2936
|
+
destinationEvmChainId: string;
|
|
2937
|
+
messageNonce: string;
|
|
2938
|
+
from: string;
|
|
2939
|
+
to: string;
|
|
2940
|
+
data?: string;
|
|
2941
|
+
messageExecuted: boolean;
|
|
2942
|
+
receipts: Array<IcmReceipt>;
|
|
2943
|
+
receiptDelivered: boolean;
|
|
2944
|
+
rewardDetails: IcmRewardDetails;
|
|
2945
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2946
|
+
status: PendingIcmMessage.status;
|
|
2947
|
+
};
|
|
2948
|
+
declare namespace PendingIcmMessage {
|
|
2949
|
+
enum status {
|
|
2950
|
+
PENDING = "pending"
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
type ListIcmMessagesResponse = {
|
|
2955
|
+
/**
|
|
2956
|
+
* 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.
|
|
2957
|
+
*/
|
|
2958
|
+
nextPageToken?: string;
|
|
2959
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
declare class InterchainMessagingService {
|
|
2963
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2964
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2965
|
+
/**
|
|
2966
|
+
* Get an ICM message
|
|
2967
|
+
* Gets an ICM message by teleporter message ID.
|
|
2968
|
+
* @returns any Successful response
|
|
2969
|
+
* @throws ApiError
|
|
2970
|
+
*/
|
|
2971
|
+
getIcmMessage({ messageId, }: {
|
|
2972
|
+
/**
|
|
2973
|
+
* The teleporter message ID of the ICM message.
|
|
2974
|
+
*/
|
|
2975
|
+
messageId: string;
|
|
2976
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2977
|
+
/**
|
|
2978
|
+
* List ICM messages
|
|
2979
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2980
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2981
|
+
* @throws ApiError
|
|
2982
|
+
*/
|
|
2983
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2984
|
+
/**
|
|
2985
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2986
|
+
*/
|
|
2987
|
+
pageToken?: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2990
|
+
*/
|
|
2991
|
+
pageSize?: number;
|
|
2992
|
+
/**
|
|
2993
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2994
|
+
*/
|
|
2995
|
+
sourceBlockchainId?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2998
|
+
*/
|
|
2999
|
+
destinationBlockchainId?: string;
|
|
3000
|
+
/**
|
|
3001
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
3002
|
+
*/
|
|
3003
|
+
blockchainId?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* The address of the recipient of the ICM message.
|
|
3006
|
+
*/
|
|
3007
|
+
to?: string;
|
|
3008
|
+
/**
|
|
3009
|
+
* The address of the sender of the ICM message.
|
|
3010
|
+
*/
|
|
3011
|
+
from?: string;
|
|
3012
|
+
/**
|
|
3013
|
+
* Either mainnet or testnet/fuji.
|
|
3014
|
+
*/
|
|
3015
|
+
network?: Network;
|
|
3016
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3017
|
+
/**
|
|
3018
|
+
* List ICM messages by address
|
|
3019
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3020
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3021
|
+
* @throws ApiError
|
|
3022
|
+
*/
|
|
3023
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
3024
|
+
/**
|
|
3025
|
+
* An EVM address.
|
|
3026
|
+
*/
|
|
3027
|
+
address: string;
|
|
3028
|
+
/**
|
|
3029
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3030
|
+
*/
|
|
3031
|
+
pageToken?: string;
|
|
3032
|
+
/**
|
|
3033
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3034
|
+
*/
|
|
3035
|
+
pageSize?: number;
|
|
3036
|
+
/**
|
|
3037
|
+
* Either mainnet or testnet/fuji.
|
|
3038
|
+
*/
|
|
3039
|
+
network?: Network;
|
|
3040
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2244
3041
|
}
|
|
2245
3042
|
|
|
2246
3043
|
type ListNftTokens = {
|
|
@@ -2262,7 +3059,7 @@ declare class NfTsService {
|
|
|
2262
3059
|
*/
|
|
2263
3060
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2264
3061
|
/**
|
|
2265
|
-
* A supported evm chain id
|
|
3062
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2266
3063
|
*/
|
|
2267
3064
|
chainId: string;
|
|
2268
3065
|
/**
|
|
@@ -2282,7 +3079,7 @@ declare class NfTsService {
|
|
|
2282
3079
|
*/
|
|
2283
3080
|
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2284
3081
|
/**
|
|
2285
|
-
* A supported evm chain id
|
|
3082
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2286
3083
|
*/
|
|
2287
3084
|
chainId: string;
|
|
2288
3085
|
/**
|
|
@@ -2306,7 +3103,7 @@ declare class NfTsService {
|
|
|
2306
3103
|
*/
|
|
2307
3104
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2308
3105
|
/**
|
|
2309
|
-
* A supported evm chain id
|
|
3106
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2310
3107
|
*/
|
|
2311
3108
|
chainId: string;
|
|
2312
3109
|
/**
|
|
@@ -2320,6 +3117,108 @@ declare class NfTsService {
|
|
|
2320
3117
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2321
3118
|
}
|
|
2322
3119
|
|
|
3120
|
+
type AccessRequest = {
|
|
3121
|
+
/**
|
|
3122
|
+
* The email address to send the access token to
|
|
3123
|
+
*/
|
|
3124
|
+
email: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* The captcha to verify the user
|
|
3127
|
+
*/
|
|
3128
|
+
captcha: string;
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
type NotificationsResponse = {
|
|
3132
|
+
message: string;
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
type SubscribeRequest = {
|
|
3136
|
+
/**
|
|
3137
|
+
* The access token to use for authentication
|
|
3138
|
+
*/
|
|
3139
|
+
accessToken: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* The node ID to subscribe to
|
|
3142
|
+
*/
|
|
3143
|
+
nodeId: string;
|
|
3144
|
+
/**
|
|
3145
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3146
|
+
*/
|
|
3147
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
type SubscriptionsRequest = {
|
|
3151
|
+
/**
|
|
3152
|
+
* The access token to use for authentication
|
|
3153
|
+
*/
|
|
3154
|
+
accessToken: string;
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
type SubscriptionsResponse = {
|
|
3158
|
+
/**
|
|
3159
|
+
* The email address of the user
|
|
3160
|
+
*/
|
|
3161
|
+
email: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* The subscriptions of the user
|
|
3164
|
+
*/
|
|
3165
|
+
subscriptions: Record<string, {
|
|
3166
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3167
|
+
}>;
|
|
3168
|
+
};
|
|
3169
|
+
|
|
3170
|
+
type UnsubscribeRequest = {
|
|
3171
|
+
/**
|
|
3172
|
+
* The access token to use for authentication
|
|
3173
|
+
*/
|
|
3174
|
+
accessToken: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* The node ID to subscribe to
|
|
3177
|
+
*/
|
|
3178
|
+
nodeId: string;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
declare class NotificationsService {
|
|
3182
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3183
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3184
|
+
/**
|
|
3185
|
+
* Access Notifications
|
|
3186
|
+
* Access notifications.
|
|
3187
|
+
* @returns NotificationsResponse Successful response
|
|
3188
|
+
* @throws ApiError
|
|
3189
|
+
*/
|
|
3190
|
+
access({ requestBody, }: {
|
|
3191
|
+
requestBody: AccessRequest;
|
|
3192
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3193
|
+
/**
|
|
3194
|
+
* Subscribe to Notifications
|
|
3195
|
+
* Subscribe to receive notifications.
|
|
3196
|
+
* @returns NotificationsResponse Successful response
|
|
3197
|
+
* @throws ApiError
|
|
3198
|
+
*/
|
|
3199
|
+
subscribe({ requestBody, }: {
|
|
3200
|
+
requestBody: SubscribeRequest;
|
|
3201
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3202
|
+
/**
|
|
3203
|
+
* Unsubscribe from Notifications
|
|
3204
|
+
* Unsubscribe from receiving notifications.
|
|
3205
|
+
* @returns NotificationsResponse Successful response
|
|
3206
|
+
* @throws ApiError
|
|
3207
|
+
*/
|
|
3208
|
+
unsubscribe({ requestBody, }: {
|
|
3209
|
+
requestBody: UnsubscribeRequest;
|
|
3210
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3211
|
+
/**
|
|
3212
|
+
* Get Subscriptions
|
|
3213
|
+
* Get subscriptions.
|
|
3214
|
+
* @returns SubscriptionsResponse Successful response
|
|
3215
|
+
* @throws ApiError
|
|
3216
|
+
*/
|
|
3217
|
+
subscriptions({ requestBody, }: {
|
|
3218
|
+
requestBody: SubscriptionsRequest;
|
|
3219
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
2323
3222
|
type EvmNetworkOptions = {
|
|
2324
3223
|
addresses: Array<string>;
|
|
2325
3224
|
includeChains: Array<string>;
|
|
@@ -2331,16 +3230,16 @@ declare enum EVMOperationType {
|
|
|
2331
3230
|
|
|
2332
3231
|
type CreateEvmTransactionExportRequest = {
|
|
2333
3232
|
type: EVMOperationType;
|
|
2334
|
-
firstDate
|
|
2335
|
-
lastDate
|
|
3233
|
+
firstDate?: string;
|
|
3234
|
+
lastDate?: string;
|
|
2336
3235
|
/**
|
|
2337
3236
|
* @deprecated
|
|
2338
3237
|
*/
|
|
2339
|
-
startDate
|
|
3238
|
+
startDate?: string;
|
|
2340
3239
|
/**
|
|
2341
3240
|
* @deprecated
|
|
2342
3241
|
*/
|
|
2343
|
-
endDate
|
|
3242
|
+
endDate?: string;
|
|
2344
3243
|
options: EvmNetworkOptions;
|
|
2345
3244
|
};
|
|
2346
3245
|
|
|
@@ -2358,16 +3257,16 @@ type PrimaryNetworkOptions = {
|
|
|
2358
3257
|
|
|
2359
3258
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2360
3259
|
type: PrimaryNetworkOperationType;
|
|
2361
|
-
firstDate
|
|
2362
|
-
lastDate
|
|
3260
|
+
firstDate?: string;
|
|
3261
|
+
lastDate?: string;
|
|
2363
3262
|
/**
|
|
2364
3263
|
* @deprecated
|
|
2365
3264
|
*/
|
|
2366
|
-
startDate
|
|
3265
|
+
startDate?: string;
|
|
2367
3266
|
/**
|
|
2368
3267
|
* @deprecated
|
|
2369
3268
|
*/
|
|
2370
|
-
endDate
|
|
3269
|
+
endDate?: string;
|
|
2371
3270
|
options: PrimaryNetworkOptions;
|
|
2372
3271
|
};
|
|
2373
3272
|
|
|
@@ -2394,52 +3293,315 @@ declare enum OperationStatusCode {
|
|
|
2394
3293
|
type TransactionExportMetadata = {
|
|
2395
3294
|
code?: OperationStatusCode;
|
|
2396
3295
|
/**
|
|
2397
|
-
* File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
|
|
3296
|
+
* File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
|
|
3297
|
+
*/
|
|
3298
|
+
downloadUrl?: string;
|
|
3299
|
+
/**
|
|
3300
|
+
* The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
|
|
3301
|
+
*/
|
|
3302
|
+
nextDate?: string;
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
type OperationStatusResponse = {
|
|
3306
|
+
operationId: string;
|
|
3307
|
+
operationType: OperationType;
|
|
3308
|
+
operationStatus: OperationStatus;
|
|
3309
|
+
message?: string;
|
|
3310
|
+
metadata?: TransactionExportMetadata;
|
|
3311
|
+
createdAtTimestamp: number;
|
|
3312
|
+
updatedAtTimestamp: number;
|
|
3313
|
+
};
|
|
3314
|
+
|
|
3315
|
+
declare class OperationsService {
|
|
3316
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3317
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3318
|
+
/**
|
|
3319
|
+
* Get operation
|
|
3320
|
+
* Gets operation details for the given operation id.
|
|
3321
|
+
* @returns OperationStatusResponse Successful response
|
|
3322
|
+
* @throws ApiError
|
|
3323
|
+
*/
|
|
3324
|
+
getOperationResult({ operationId, }: {
|
|
3325
|
+
/**
|
|
3326
|
+
* UUID of given operation
|
|
3327
|
+
*/
|
|
3328
|
+
operationId: string;
|
|
3329
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3330
|
+
/**
|
|
3331
|
+
* Create transaction export operation
|
|
3332
|
+
* Trigger a transaction export operation with given parameters.
|
|
3333
|
+
*
|
|
3334
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
3335
|
+
* @returns OperationStatusResponse Successful response
|
|
3336
|
+
* @throws ApiError
|
|
3337
|
+
*/
|
|
3338
|
+
postTransactionExportJob({ requestBody, }: {
|
|
3339
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
3340
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
type EvmGenesisAllocDto = {
|
|
3344
|
+
/**
|
|
3345
|
+
* Account balance in hex format
|
|
3346
|
+
*/
|
|
3347
|
+
balance?: string;
|
|
3348
|
+
/**
|
|
3349
|
+
* Contract bytecode in hex format
|
|
3350
|
+
*/
|
|
3351
|
+
code?: string;
|
|
3352
|
+
/**
|
|
3353
|
+
* Contract storage slots
|
|
3354
|
+
*/
|
|
3355
|
+
storage?: Record<string, string>;
|
|
3356
|
+
};
|
|
3357
|
+
|
|
3358
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3359
|
+
/**
|
|
3360
|
+
* Block timestamp
|
|
3361
|
+
*/
|
|
3362
|
+
blockTimestamp?: number;
|
|
3363
|
+
/**
|
|
3364
|
+
* Admin addresses
|
|
3365
|
+
*/
|
|
3366
|
+
adminAddresses?: Array<string>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Manager addresses
|
|
3369
|
+
*/
|
|
3370
|
+
managerAddresses?: Array<string>;
|
|
3371
|
+
/**
|
|
3372
|
+
* Enabled addresses
|
|
3373
|
+
*/
|
|
3374
|
+
enabledAddresses?: Array<string>;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
type EvmGenesisFeeConfigDto = {
|
|
3378
|
+
/**
|
|
3379
|
+
* Base fee change denominator
|
|
3380
|
+
*/
|
|
3381
|
+
baseFeeChangeDenominator?: number;
|
|
3382
|
+
/**
|
|
3383
|
+
* Block gas cost step
|
|
3384
|
+
*/
|
|
3385
|
+
blockGasCostStep?: number;
|
|
3386
|
+
/**
|
|
3387
|
+
* Gas limit
|
|
3388
|
+
*/
|
|
3389
|
+
gasLimit?: number;
|
|
3390
|
+
/**
|
|
3391
|
+
* Maximum block gas cost
|
|
3392
|
+
*/
|
|
3393
|
+
maxBlockGasCost?: number;
|
|
3394
|
+
/**
|
|
3395
|
+
* Minimum base fee
|
|
3396
|
+
*/
|
|
3397
|
+
minBaseFee?: number;
|
|
3398
|
+
/**
|
|
3399
|
+
* Minimum block gas cost
|
|
3400
|
+
*/
|
|
3401
|
+
minBlockGasCost?: number;
|
|
3402
|
+
/**
|
|
3403
|
+
* Target block rate
|
|
3404
|
+
*/
|
|
3405
|
+
targetBlockRate?: number;
|
|
3406
|
+
/**
|
|
3407
|
+
* Target gas
|
|
3408
|
+
*/
|
|
3409
|
+
targetGas?: number;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3412
|
+
type EvmGenesisWarpConfigDto = {
|
|
3413
|
+
/**
|
|
3414
|
+
* Block timestamp
|
|
3415
|
+
*/
|
|
3416
|
+
blockTimestamp?: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* Quorum numerator
|
|
3419
|
+
*/
|
|
3420
|
+
quorumNumerator?: number;
|
|
3421
|
+
/**
|
|
3422
|
+
* Require primary network signers
|
|
3423
|
+
*/
|
|
3424
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3425
|
+
};
|
|
3426
|
+
|
|
3427
|
+
type EvmGenesisConfigDto = {
|
|
3428
|
+
/**
|
|
3429
|
+
* Berlin block number
|
|
3430
|
+
*/
|
|
3431
|
+
berlinBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Byzantium block number
|
|
3434
|
+
*/
|
|
3435
|
+
byzantiumBlock?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Chain ID
|
|
3438
|
+
*/
|
|
3439
|
+
chainId?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Constantinople block number
|
|
3442
|
+
*/
|
|
3443
|
+
constantinopleBlock?: number;
|
|
3444
|
+
/**
|
|
3445
|
+
* EIP-150 block number
|
|
3446
|
+
*/
|
|
3447
|
+
eip150Block?: number;
|
|
3448
|
+
/**
|
|
3449
|
+
* EIP-150 hash
|
|
3450
|
+
*/
|
|
3451
|
+
eip150Hash?: string;
|
|
3452
|
+
/**
|
|
3453
|
+
* EIP-155 block number
|
|
3454
|
+
*/
|
|
3455
|
+
eip155Block?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* EIP-158 block number
|
|
3458
|
+
*/
|
|
3459
|
+
eip158Block?: number;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fee configuration
|
|
3462
|
+
*/
|
|
3463
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3464
|
+
/**
|
|
3465
|
+
* Homestead block number
|
|
3466
|
+
*/
|
|
3467
|
+
homesteadBlock?: number;
|
|
3468
|
+
/**
|
|
3469
|
+
* Istanbul block number
|
|
3470
|
+
*/
|
|
3471
|
+
istanbulBlock?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* London block number
|
|
3474
|
+
*/
|
|
3475
|
+
londonBlock?: number;
|
|
3476
|
+
/**
|
|
3477
|
+
* Muir Glacier block number
|
|
3478
|
+
*/
|
|
3479
|
+
muirGlacierBlock?: number;
|
|
3480
|
+
/**
|
|
3481
|
+
* Petersburg block number
|
|
3482
|
+
*/
|
|
3483
|
+
petersburgBlock?: number;
|
|
3484
|
+
/**
|
|
3485
|
+
* Subnet EVM timestamp
|
|
3486
|
+
*/
|
|
3487
|
+
subnetEVMTimestamp?: number;
|
|
3488
|
+
/**
|
|
3489
|
+
* Allow fee recipients
|
|
3490
|
+
*/
|
|
3491
|
+
allowFeeRecipients?: boolean;
|
|
3492
|
+
/**
|
|
3493
|
+
* Warp configuration
|
|
3494
|
+
*/
|
|
3495
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3496
|
+
/**
|
|
3497
|
+
* Transaction allow list configuration
|
|
3498
|
+
*/
|
|
3499
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3500
|
+
/**
|
|
3501
|
+
* Contract deployer allow list configuration
|
|
3502
|
+
*/
|
|
3503
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3504
|
+
/**
|
|
3505
|
+
* Contract native minter configuration
|
|
3506
|
+
*/
|
|
3507
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3508
|
+
/**
|
|
3509
|
+
* Fee manager configuration
|
|
3510
|
+
*/
|
|
3511
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3512
|
+
/**
|
|
3513
|
+
* Reward manager configuration
|
|
3514
|
+
*/
|
|
3515
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3516
|
+
};
|
|
3517
|
+
|
|
3518
|
+
type EvmGenesisDto = {
|
|
3519
|
+
/**
|
|
3520
|
+
* Airdrop amount
|
|
3521
|
+
*/
|
|
3522
|
+
airdropAmount?: number | null;
|
|
3523
|
+
/**
|
|
3524
|
+
* Airdrop hash
|
|
3525
|
+
*/
|
|
3526
|
+
airdropHash?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Allocation of accounts and balances
|
|
3529
|
+
*/
|
|
3530
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3531
|
+
/**
|
|
3532
|
+
* Base fee per gas
|
|
3533
|
+
*/
|
|
3534
|
+
baseFeePerGas?: number | null;
|
|
3535
|
+
/**
|
|
3536
|
+
* Blob gas used
|
|
3537
|
+
*/
|
|
3538
|
+
blobGasUsed?: string | null;
|
|
3539
|
+
/**
|
|
3540
|
+
* Coinbase address
|
|
3541
|
+
*/
|
|
3542
|
+
coinbase?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Genesis configuration
|
|
3545
|
+
*/
|
|
3546
|
+
config?: EvmGenesisConfigDto;
|
|
3547
|
+
/**
|
|
3548
|
+
* Difficulty
|
|
3549
|
+
*/
|
|
3550
|
+
difficulty?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* Excess blob gas
|
|
3553
|
+
*/
|
|
3554
|
+
excessBlobGas?: string | null;
|
|
3555
|
+
/**
|
|
3556
|
+
* Extra data
|
|
3557
|
+
*/
|
|
3558
|
+
extraData?: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* Gas limit
|
|
2398
3561
|
*/
|
|
2399
|
-
|
|
3562
|
+
gasLimit?: string;
|
|
2400
3563
|
/**
|
|
2401
|
-
*
|
|
3564
|
+
* Gas used
|
|
2402
3565
|
*/
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
3566
|
+
gasUsed?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Mix hash
|
|
3569
|
+
*/
|
|
3570
|
+
mixHash?: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* Nonce
|
|
3573
|
+
*/
|
|
3574
|
+
nonce?: string;
|
|
3575
|
+
/**
|
|
3576
|
+
* Block number
|
|
3577
|
+
*/
|
|
3578
|
+
number?: string;
|
|
3579
|
+
/**
|
|
3580
|
+
* Parent hash
|
|
3581
|
+
*/
|
|
3582
|
+
parentHash?: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* Block timestamp
|
|
3585
|
+
*/
|
|
3586
|
+
timestamp?: string;
|
|
2414
3587
|
};
|
|
2415
3588
|
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
3589
|
+
type Blockchain = {
|
|
3590
|
+
createBlockTimestamp: number;
|
|
3591
|
+
createBlockNumber: string;
|
|
3592
|
+
blockchainId: string;
|
|
3593
|
+
vmId: string;
|
|
3594
|
+
subnetId: string;
|
|
3595
|
+
blockchainName: string;
|
|
2419
3596
|
/**
|
|
2420
|
-
*
|
|
2421
|
-
* Gets operation details for the given operation id.
|
|
2422
|
-
* @returns OperationStatusResponse Successful response
|
|
2423
|
-
* @throws ApiError
|
|
3597
|
+
* 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.
|
|
2424
3598
|
*/
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* UUID of given operation
|
|
2428
|
-
*/
|
|
2429
|
-
operationId: string;
|
|
2430
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
3599
|
+
evmChainId?: number;
|
|
2431
3600
|
/**
|
|
2432
|
-
*
|
|
2433
|
-
* Trigger a transaction export operation with given parameters.
|
|
2434
|
-
*
|
|
2435
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2436
|
-
* @returns OperationStatusResponse Successful response
|
|
2437
|
-
* @throws ApiError
|
|
3601
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
2438
3602
|
*/
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2442
|
-
}
|
|
3603
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3604
|
+
};
|
|
2443
3605
|
|
|
2444
3606
|
declare enum BlockchainIds {
|
|
2445
3607
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
@@ -2470,16 +3632,31 @@ type DelegatorsDetails = {
|
|
|
2470
3632
|
};
|
|
2471
3633
|
|
|
2472
3634
|
type StakingDistribution = {
|
|
3635
|
+
/**
|
|
3636
|
+
* AvalancheGo version for the validator node.
|
|
3637
|
+
*/
|
|
2473
3638
|
version: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* The total amount staked by validators using this version.
|
|
3641
|
+
*/
|
|
2474
3642
|
amountStaked: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* The number of validators using this version.
|
|
3645
|
+
*/
|
|
2475
3646
|
validatorCount: number;
|
|
2476
3647
|
};
|
|
2477
3648
|
|
|
2478
3649
|
type ValidatorsDetails = {
|
|
2479
3650
|
validatorCount: number;
|
|
2480
3651
|
totalAmountStaked: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3654
|
+
*/
|
|
2481
3655
|
estimatedAnnualStakingReward: string;
|
|
2482
3656
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Ratio of total active stake amount to the current supply.
|
|
3659
|
+
*/
|
|
2483
3660
|
stakingRatio: string;
|
|
2484
3661
|
};
|
|
2485
3662
|
|
|
@@ -2488,15 +3665,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2488
3665
|
delegatorDetails: DelegatorsDetails;
|
|
2489
3666
|
};
|
|
2490
3667
|
|
|
2491
|
-
type Blockchain = {
|
|
2492
|
-
createBlockTimestamp: number;
|
|
2493
|
-
createBlockNumber: string;
|
|
2494
|
-
blockchainId: string;
|
|
2495
|
-
vmId: string;
|
|
2496
|
-
subnetId: string;
|
|
2497
|
-
blockchainName: string;
|
|
2498
|
-
};
|
|
2499
|
-
|
|
2500
3668
|
type ListBlockchainsResponse = {
|
|
2501
3669
|
/**
|
|
2502
3670
|
* 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.
|
|
@@ -2531,7 +3699,13 @@ type CompletedDelegatorDetails = {
|
|
|
2531
3699
|
delegationFee: string;
|
|
2532
3700
|
startTimestamp: number;
|
|
2533
3701
|
endTimestamp: number;
|
|
3702
|
+
/**
|
|
3703
|
+
* Total rewards distributed for the successful delegation.
|
|
3704
|
+
*/
|
|
2534
3705
|
grossReward: string;
|
|
3706
|
+
/**
|
|
3707
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3708
|
+
*/
|
|
2535
3709
|
netReward: string;
|
|
2536
3710
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2537
3711
|
};
|
|
@@ -2549,7 +3723,13 @@ type PendingDelegatorDetails = {
|
|
|
2549
3723
|
delegationFee: string;
|
|
2550
3724
|
startTimestamp: number;
|
|
2551
3725
|
endTimestamp: number;
|
|
3726
|
+
/**
|
|
3727
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3728
|
+
*/
|
|
2552
3729
|
estimatedGrossReward: string;
|
|
3730
|
+
/**
|
|
3731
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3732
|
+
*/
|
|
2553
3733
|
estimatedNetReward: string;
|
|
2554
3734
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2555
3735
|
};
|
|
@@ -2570,8 +3750,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2570
3750
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2571
3751
|
};
|
|
2572
3752
|
|
|
2573
|
-
type
|
|
3753
|
+
type BalanceOwner = {
|
|
3754
|
+
addresses: Array<string>;
|
|
3755
|
+
threshold: number;
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
type L1ValidatorDetailsFull = {
|
|
3759
|
+
/**
|
|
3760
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3761
|
+
*/
|
|
3762
|
+
validationId: string;
|
|
3763
|
+
/**
|
|
3764
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3765
|
+
*/
|
|
3766
|
+
validationIdHex: string;
|
|
3767
|
+
nodeId: string;
|
|
3768
|
+
subnetId: string;
|
|
3769
|
+
/**
|
|
3770
|
+
* 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
|
|
3771
|
+
*/
|
|
3772
|
+
weight: number;
|
|
3773
|
+
/**
|
|
3774
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3775
|
+
*/
|
|
3776
|
+
remainingBalance: number;
|
|
3777
|
+
/**
|
|
3778
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3779
|
+
*/
|
|
3780
|
+
creationTimestamp: number;
|
|
3781
|
+
blsCredentials: Record<string, any>;
|
|
3782
|
+
/**
|
|
3783
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3784
|
+
*/
|
|
3785
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3786
|
+
/**
|
|
3787
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3788
|
+
*/
|
|
3789
|
+
deactivationOwner: BalanceOwner;
|
|
3790
|
+
};
|
|
3791
|
+
|
|
3792
|
+
type ListL1ValidatorsResponse = {
|
|
3793
|
+
/**
|
|
3794
|
+
* 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.
|
|
3795
|
+
*/
|
|
3796
|
+
nextPageToken?: string;
|
|
3797
|
+
/**
|
|
3798
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3799
|
+
*/
|
|
3800
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3801
|
+
/**
|
|
3802
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3803
|
+
*/
|
|
3804
|
+
blockHeight: string;
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
type L1ValidatorManagerDetails = {
|
|
2574
3808
|
blockchainId: string;
|
|
3809
|
+
contractAddress: string;
|
|
2575
3810
|
};
|
|
2576
3811
|
|
|
2577
3812
|
type SubnetOwnershipInfo = {
|
|
@@ -2612,7 +3847,19 @@ type Subnet = {
|
|
|
2612
3847
|
* Latest subnet owner details for this Subnet.
|
|
2613
3848
|
*/
|
|
2614
3849
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2615
|
-
|
|
3850
|
+
/**
|
|
3851
|
+
* Whether the subnet is an L1 or not.
|
|
3852
|
+
*/
|
|
3853
|
+
isL1: boolean;
|
|
3854
|
+
/**
|
|
3855
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3856
|
+
*/
|
|
3857
|
+
l1ConversionTransactionHash?: string;
|
|
3858
|
+
/**
|
|
3859
|
+
* L1 validator manager details.
|
|
3860
|
+
*/
|
|
3861
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3862
|
+
blockchains: Array<Blockchain>;
|
|
2616
3863
|
};
|
|
2617
3864
|
|
|
2618
3865
|
type ListSubnetsResponse = {
|
|
@@ -2628,6 +3875,29 @@ type BlsCredentials = {
|
|
|
2628
3875
|
proofOfPossession: string;
|
|
2629
3876
|
};
|
|
2630
3877
|
|
|
3878
|
+
type Geolocation = {
|
|
3879
|
+
/**
|
|
3880
|
+
* The name of the validator node.
|
|
3881
|
+
*/
|
|
3882
|
+
city: string;
|
|
3883
|
+
/**
|
|
3884
|
+
* The city of the validator node.
|
|
3885
|
+
*/
|
|
3886
|
+
country: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* The country code of the validator node.
|
|
3889
|
+
*/
|
|
3890
|
+
countryCode: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The latitude of the validator node.
|
|
3893
|
+
*/
|
|
3894
|
+
latitude: number;
|
|
3895
|
+
/**
|
|
3896
|
+
* The longitude of the validator node.
|
|
3897
|
+
*/
|
|
3898
|
+
longitude: number;
|
|
3899
|
+
};
|
|
3900
|
+
|
|
2631
3901
|
type Rewards = {
|
|
2632
3902
|
validationRewardAmount: string;
|
|
2633
3903
|
delegationRewardAmount: string;
|
|
@@ -2659,6 +3929,9 @@ type ActiveValidatorDetails = {
|
|
|
2659
3929
|
nodeId: string;
|
|
2660
3930
|
subnetId: string;
|
|
2661
3931
|
amountStaked: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3934
|
+
*/
|
|
2662
3935
|
delegationFee?: string;
|
|
2663
3936
|
startTimestamp: number;
|
|
2664
3937
|
endTimestamp: number;
|
|
@@ -2666,15 +3939,37 @@ type ActiveValidatorDetails = {
|
|
|
2666
3939
|
* Present for AddPermissionlessValidatorTx
|
|
2667
3940
|
*/
|
|
2668
3941
|
blsCredentials?: BlsCredentials;
|
|
3942
|
+
/**
|
|
3943
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3944
|
+
*/
|
|
2669
3945
|
stakePercentage: number;
|
|
3946
|
+
/**
|
|
3947
|
+
* The number of delegators linked to the validator.
|
|
3948
|
+
*/
|
|
2670
3949
|
delegatorCount: number;
|
|
3950
|
+
/**
|
|
3951
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3952
|
+
*/
|
|
2671
3953
|
amountDelegated?: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3956
|
+
*/
|
|
2672
3957
|
uptimePerformance: number;
|
|
2673
3958
|
avalancheGoVersion?: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3961
|
+
*/
|
|
2674
3962
|
delegationCapacity?: string;
|
|
3963
|
+
/**
|
|
3964
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3965
|
+
*/
|
|
2675
3966
|
potentialRewards: Rewards;
|
|
2676
3967
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2677
3968
|
validatorHealth: ValidatorHealthDetails;
|
|
3969
|
+
/**
|
|
3970
|
+
* The geographical location of the validator node, if available.
|
|
3971
|
+
*/
|
|
3972
|
+
geolocation: Geolocation | null;
|
|
2678
3973
|
};
|
|
2679
3974
|
declare namespace ActiveValidatorDetails {
|
|
2680
3975
|
enum validationStatus {
|
|
@@ -2687,6 +3982,9 @@ type CompletedValidatorDetails = {
|
|
|
2687
3982
|
nodeId: string;
|
|
2688
3983
|
subnetId: string;
|
|
2689
3984
|
amountStaked: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3987
|
+
*/
|
|
2690
3988
|
delegationFee?: string;
|
|
2691
3989
|
startTimestamp: number;
|
|
2692
3990
|
endTimestamp: number;
|
|
@@ -2710,6 +4008,9 @@ type PendingValidatorDetails = {
|
|
|
2710
4008
|
nodeId: string;
|
|
2711
4009
|
subnetId: string;
|
|
2712
4010
|
amountStaked: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4013
|
+
*/
|
|
2713
4014
|
delegationFee?: string;
|
|
2714
4015
|
startTimestamp: number;
|
|
2715
4016
|
endTimestamp: number;
|
|
@@ -2730,6 +4031,9 @@ type RemovedValidatorDetails = {
|
|
|
2730
4031
|
nodeId: string;
|
|
2731
4032
|
subnetId: string;
|
|
2732
4033
|
amountStaked: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4036
|
+
*/
|
|
2733
4037
|
delegationFee?: string;
|
|
2734
4038
|
startTimestamp: number;
|
|
2735
4039
|
endTimestamp: number;
|
|
@@ -2737,7 +4041,13 @@ type RemovedValidatorDetails = {
|
|
|
2737
4041
|
* Present for AddPermissionlessValidatorTx
|
|
2738
4042
|
*/
|
|
2739
4043
|
blsCredentials?: BlsCredentials;
|
|
4044
|
+
/**
|
|
4045
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4046
|
+
*/
|
|
2740
4047
|
removeTxHash: string;
|
|
4048
|
+
/**
|
|
4049
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4050
|
+
*/
|
|
2741
4051
|
removeTimestamp: number;
|
|
2742
4052
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2743
4053
|
};
|
|
@@ -2758,11 +4068,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2758
4068
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2759
4069
|
};
|
|
2760
4070
|
|
|
2761
|
-
declare enum Network {
|
|
2762
|
-
MAINNET = "mainnet",
|
|
2763
|
-
FUJI = "fuji"
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
4071
|
declare enum SortByOption {
|
|
2767
4072
|
BLOCK_INDEX = "blockIndex",
|
|
2768
4073
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2840,7 +4145,7 @@ declare class PrimaryNetworkService {
|
|
|
2840
4145
|
*/
|
|
2841
4146
|
blockchainId: XChainId;
|
|
2842
4147
|
/**
|
|
2843
|
-
* Either mainnet or
|
|
4148
|
+
* Either mainnet or testnet/fuji.
|
|
2844
4149
|
*/
|
|
2845
4150
|
network: Network;
|
|
2846
4151
|
/**
|
|
@@ -2860,7 +4165,7 @@ declare class PrimaryNetworkService {
|
|
|
2860
4165
|
*/
|
|
2861
4166
|
addresses: string;
|
|
2862
4167
|
/**
|
|
2863
|
-
* Either mainnet or
|
|
4168
|
+
* Either mainnet or testnet/fuji.
|
|
2864
4169
|
*/
|
|
2865
4170
|
network: Network;
|
|
2866
4171
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -2872,7 +4177,7 @@ declare class PrimaryNetworkService {
|
|
|
2872
4177
|
*/
|
|
2873
4178
|
getNetworkDetails({ network, }: {
|
|
2874
4179
|
/**
|
|
2875
|
-
* Either mainnet or
|
|
4180
|
+
* Either mainnet or testnet/fuji.
|
|
2876
4181
|
*/
|
|
2877
4182
|
network: Network;
|
|
2878
4183
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -2884,7 +4189,7 @@ declare class PrimaryNetworkService {
|
|
|
2884
4189
|
*/
|
|
2885
4190
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2886
4191
|
/**
|
|
2887
|
-
* Either mainnet or
|
|
4192
|
+
* Either mainnet or testnet/fuji.
|
|
2888
4193
|
*/
|
|
2889
4194
|
network: Network;
|
|
2890
4195
|
/**
|
|
@@ -2892,7 +4197,7 @@ declare class PrimaryNetworkService {
|
|
|
2892
4197
|
*/
|
|
2893
4198
|
pageToken?: string;
|
|
2894
4199
|
/**
|
|
2895
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4200
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2896
4201
|
*/
|
|
2897
4202
|
pageSize?: number;
|
|
2898
4203
|
/**
|
|
@@ -2900,6 +4205,22 @@ declare class PrimaryNetworkService {
|
|
|
2900
4205
|
*/
|
|
2901
4206
|
sortOrder?: SortOrder;
|
|
2902
4207
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4208
|
+
/**
|
|
4209
|
+
* Get blockchain details by ID
|
|
4210
|
+
* Get details of the blockchain registered on the network.
|
|
4211
|
+
* @returns Blockchain Successful response
|
|
4212
|
+
* @throws ApiError
|
|
4213
|
+
*/
|
|
4214
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4215
|
+
/**
|
|
4216
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4217
|
+
*/
|
|
4218
|
+
blockchainId: string;
|
|
4219
|
+
/**
|
|
4220
|
+
* Either mainnet or testnet/fuji.
|
|
4221
|
+
*/
|
|
4222
|
+
network: Network;
|
|
4223
|
+
}): CancelablePromise<Blockchain>;
|
|
2903
4224
|
/**
|
|
2904
4225
|
* List subnets
|
|
2905
4226
|
* Lists all subnets registered on the network.
|
|
@@ -2908,7 +4229,7 @@ declare class PrimaryNetworkService {
|
|
|
2908
4229
|
*/
|
|
2909
4230
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2910
4231
|
/**
|
|
2911
|
-
* Either mainnet or
|
|
4232
|
+
* Either mainnet or testnet/fuji.
|
|
2912
4233
|
*/
|
|
2913
4234
|
network: Network;
|
|
2914
4235
|
/**
|
|
@@ -2916,7 +4237,7 @@ declare class PrimaryNetworkService {
|
|
|
2916
4237
|
*/
|
|
2917
4238
|
pageToken?: string;
|
|
2918
4239
|
/**
|
|
2919
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4240
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2920
4241
|
*/
|
|
2921
4242
|
pageSize?: number;
|
|
2922
4243
|
/**
|
|
@@ -2932,7 +4253,7 @@ declare class PrimaryNetworkService {
|
|
|
2932
4253
|
*/
|
|
2933
4254
|
getSubnetById({ network, subnetId, }: {
|
|
2934
4255
|
/**
|
|
2935
|
-
* Either mainnet or
|
|
4256
|
+
* Either mainnet or testnet/fuji.
|
|
2936
4257
|
*/
|
|
2937
4258
|
network: Network;
|
|
2938
4259
|
/**
|
|
@@ -2942,13 +4263,13 @@ declare class PrimaryNetworkService {
|
|
|
2942
4263
|
}): CancelablePromise<Subnet>;
|
|
2943
4264
|
/**
|
|
2944
4265
|
* List validators
|
|
2945
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4266
|
+
* 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.
|
|
2946
4267
|
* @returns ListValidatorDetailsResponse Successful response
|
|
2947
4268
|
* @throws ApiError
|
|
2948
4269
|
*/
|
|
2949
4270
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2950
4271
|
/**
|
|
2951
|
-
* Either mainnet or
|
|
4272
|
+
* Either mainnet or testnet/fuji.
|
|
2952
4273
|
*/
|
|
2953
4274
|
network: Network;
|
|
2954
4275
|
/**
|
|
@@ -2960,7 +4281,7 @@ declare class PrimaryNetworkService {
|
|
|
2960
4281
|
*/
|
|
2961
4282
|
pageSize?: number;
|
|
2962
4283
|
/**
|
|
2963
|
-
* A comma separated list of node ids to filter by.
|
|
4284
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
2964
4285
|
*/
|
|
2965
4286
|
nodeIds?: string;
|
|
2966
4287
|
/**
|
|
@@ -3022,7 +4343,7 @@ declare class PrimaryNetworkService {
|
|
|
3022
4343
|
*/
|
|
3023
4344
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
3024
4345
|
/**
|
|
3025
|
-
* Either mainnet or
|
|
4346
|
+
* Either mainnet or testnet/fuji.
|
|
3026
4347
|
*/
|
|
3027
4348
|
network: Network;
|
|
3028
4349
|
/**
|
|
@@ -3054,7 +4375,7 @@ declare class PrimaryNetworkService {
|
|
|
3054
4375
|
*/
|
|
3055
4376
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
3056
4377
|
/**
|
|
3057
|
-
* Either mainnet or
|
|
4378
|
+
* Either mainnet or testnet/fuji.
|
|
3058
4379
|
*/
|
|
3059
4380
|
network: Network;
|
|
3060
4381
|
/**
|
|
@@ -3082,6 +4403,39 @@ declare class PrimaryNetworkService {
|
|
|
3082
4403
|
*/
|
|
3083
4404
|
nodeIds?: string;
|
|
3084
4405
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4406
|
+
/**
|
|
4407
|
+
* List L1 validators
|
|
4408
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4409
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4410
|
+
* @throws ApiError
|
|
4411
|
+
*/
|
|
4412
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4413
|
+
/**
|
|
4414
|
+
* Either mainnet or testnet/fuji.
|
|
4415
|
+
*/
|
|
4416
|
+
network: Network;
|
|
4417
|
+
/**
|
|
4418
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4419
|
+
*/
|
|
4420
|
+
pageToken?: string;
|
|
4421
|
+
/**
|
|
4422
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4423
|
+
*/
|
|
4424
|
+
pageSize?: number;
|
|
4425
|
+
/**
|
|
4426
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4427
|
+
*/
|
|
4428
|
+
l1ValidationId?: string;
|
|
4429
|
+
includeInactiveL1Validators?: boolean;
|
|
4430
|
+
/**
|
|
4431
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4432
|
+
*/
|
|
4433
|
+
nodeId?: string;
|
|
4434
|
+
/**
|
|
4435
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4436
|
+
*/
|
|
4437
|
+
subnetId?: any;
|
|
4438
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3085
4439
|
}
|
|
3086
4440
|
|
|
3087
4441
|
declare enum BlockchainId {
|
|
@@ -3126,11 +4480,6 @@ type CChainAtomicBalances = {
|
|
|
3126
4480
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3127
4481
|
};
|
|
3128
4482
|
|
|
3129
|
-
declare enum PrimaryNetwork {
|
|
3130
|
-
MAINNET = "mainnet",
|
|
3131
|
-
FUJI = "fuji"
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
4483
|
declare enum PrimaryNetworkChainName {
|
|
3135
4484
|
P_CHAIN = "p-chain",
|
|
3136
4485
|
X_CHAIN = "x-chain",
|
|
@@ -3139,7 +4488,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3139
4488
|
|
|
3140
4489
|
type PrimaryNetworkChainInfo = {
|
|
3141
4490
|
chainName: PrimaryNetworkChainName;
|
|
3142
|
-
network:
|
|
4491
|
+
network: Network;
|
|
3143
4492
|
};
|
|
3144
4493
|
|
|
3145
4494
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3300,7 +4649,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3300
4649
|
*/
|
|
3301
4650
|
blockchainId: BlockchainId;
|
|
3302
4651
|
/**
|
|
3303
|
-
* Either mainnet or
|
|
4652
|
+
* Either mainnet or testnet/fuji.
|
|
3304
4653
|
*/
|
|
3305
4654
|
network: Network;
|
|
3306
4655
|
/**
|
|
@@ -3331,6 +4680,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3331
4680
|
txCount: number;
|
|
3332
4681
|
transactions: Array<string>;
|
|
3333
4682
|
blockSizeBytes: number;
|
|
4683
|
+
l1ValidatorsAccruedFees?: number;
|
|
4684
|
+
activeL1Validators?: number;
|
|
3334
4685
|
currentSupply?: string;
|
|
3335
4686
|
proposerDetails?: ProposerDetails;
|
|
3336
4687
|
};
|
|
@@ -3344,6 +4695,8 @@ type PrimaryNetworkBlock = {
|
|
|
3344
4695
|
txCount: number;
|
|
3345
4696
|
transactions: Array<string>;
|
|
3346
4697
|
blockSizeBytes: number;
|
|
4698
|
+
l1ValidatorsAccruedFees?: number;
|
|
4699
|
+
activeL1Validators?: number;
|
|
3347
4700
|
currentSupply?: string;
|
|
3348
4701
|
proposerDetails?: ProposerDetails;
|
|
3349
4702
|
};
|
|
@@ -3372,7 +4725,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3372
4725
|
*/
|
|
3373
4726
|
blockchainId: BlockchainId;
|
|
3374
4727
|
/**
|
|
3375
|
-
* Either mainnet or
|
|
4728
|
+
* Either mainnet or testnet/fuji.
|
|
3376
4729
|
*/
|
|
3377
4730
|
network: Network;
|
|
3378
4731
|
/**
|
|
@@ -3386,19 +4739,27 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3386
4739
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3387
4740
|
* @throws ApiError
|
|
3388
4741
|
*/
|
|
3389
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4742
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3390
4743
|
/**
|
|
3391
4744
|
* A primary network blockchain id or alias.
|
|
3392
4745
|
*/
|
|
3393
4746
|
blockchainId: BlockchainId;
|
|
3394
4747
|
/**
|
|
3395
|
-
* Either mainnet or
|
|
4748
|
+
* Either mainnet or testnet/fuji.
|
|
3396
4749
|
*/
|
|
3397
4750
|
network: Network;
|
|
3398
4751
|
/**
|
|
3399
4752
|
* A primary network (P or X chain) nodeId.
|
|
3400
4753
|
*/
|
|
3401
4754
|
nodeId: string;
|
|
4755
|
+
/**
|
|
4756
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4757
|
+
*/
|
|
4758
|
+
startTimestamp?: number;
|
|
4759
|
+
/**
|
|
4760
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4761
|
+
*/
|
|
4762
|
+
endTimestamp?: number;
|
|
3402
4763
|
/**
|
|
3403
4764
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3404
4765
|
*/
|
|
@@ -3414,15 +4775,23 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3414
4775
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3415
4776
|
* @throws ApiError
|
|
3416
4777
|
*/
|
|
3417
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4778
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3418
4779
|
/**
|
|
3419
4780
|
* A primary network blockchain id or alias.
|
|
3420
4781
|
*/
|
|
3421
4782
|
blockchainId: BlockchainId;
|
|
3422
4783
|
/**
|
|
3423
|
-
* Either mainnet or
|
|
4784
|
+
* Either mainnet or testnet/fuji.
|
|
3424
4785
|
*/
|
|
3425
4786
|
network: Network;
|
|
4787
|
+
/**
|
|
4788
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4789
|
+
*/
|
|
4790
|
+
startTimestamp?: number;
|
|
4791
|
+
/**
|
|
4792
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4793
|
+
*/
|
|
4794
|
+
endTimestamp?: number;
|
|
3426
4795
|
/**
|
|
3427
4796
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3428
4797
|
*/
|
|
@@ -3554,7 +4923,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3554
4923
|
*/
|
|
3555
4924
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3556
4925
|
/**
|
|
3557
|
-
* Either mainnet or
|
|
4926
|
+
* Either mainnet or testnet/fuji.
|
|
3558
4927
|
*/
|
|
3559
4928
|
network: Network;
|
|
3560
4929
|
/**
|
|
@@ -3586,7 +4955,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3586
4955
|
*/
|
|
3587
4956
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3588
4957
|
/**
|
|
3589
|
-
* Either mainnet or
|
|
4958
|
+
* Either mainnet or testnet/fuji.
|
|
3590
4959
|
*/
|
|
3591
4960
|
network: Network;
|
|
3592
4961
|
/**
|
|
@@ -3664,6 +5033,10 @@ type Utxo = {
|
|
|
3664
5033
|
* UTXO ID for this output.
|
|
3665
5034
|
*/
|
|
3666
5035
|
utxoId: string;
|
|
5036
|
+
/**
|
|
5037
|
+
* The bytes of the UTXO
|
|
5038
|
+
*/
|
|
5039
|
+
utxoBytes?: string;
|
|
3667
5040
|
/**
|
|
3668
5041
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3669
5042
|
*/
|
|
@@ -3808,28 +5181,63 @@ type CChainImportTransaction = {
|
|
|
3808
5181
|
*/
|
|
3809
5182
|
destinationChain: string;
|
|
3810
5183
|
/**
|
|
3811
|
-
* Type of transaction.
|
|
5184
|
+
* Type of transaction.
|
|
5185
|
+
*/
|
|
5186
|
+
txType: CChainImportTransaction.txType;
|
|
5187
|
+
evmOutputs: Array<EVMOutput>;
|
|
5188
|
+
consumedUtxos: Array<Utxo>;
|
|
5189
|
+
};
|
|
5190
|
+
declare namespace CChainImportTransaction {
|
|
5191
|
+
/**
|
|
5192
|
+
* Type of transaction.
|
|
5193
|
+
*/
|
|
5194
|
+
enum txType {
|
|
5195
|
+
IMPORT_TX = "ImportTx"
|
|
5196
|
+
}
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
type ListCChainAtomicTransactionsResponse = {
|
|
5200
|
+
/**
|
|
5201
|
+
* 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.
|
|
5202
|
+
*/
|
|
5203
|
+
nextPageToken?: string;
|
|
5204
|
+
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
5205
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
type BlockchainInfo = {
|
|
5209
|
+
chainName: string;
|
|
5210
|
+
vmId: string;
|
|
5211
|
+
/**
|
|
5212
|
+
* 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
|
|
5213
|
+
*/
|
|
5214
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5215
|
+
};
|
|
5216
|
+
|
|
5217
|
+
type L1ValidatorDetailsTransaction = {
|
|
5218
|
+
/**
|
|
5219
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5220
|
+
*/
|
|
5221
|
+
validationId: string;
|
|
5222
|
+
/**
|
|
5223
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5224
|
+
*/
|
|
5225
|
+
validationIdHex: string;
|
|
5226
|
+
nodeId: string;
|
|
5227
|
+
subnetId: string;
|
|
5228
|
+
/**
|
|
5229
|
+
* 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
|
|
3812
5230
|
*/
|
|
3813
|
-
|
|
3814
|
-
evmOutputs: Array<EVMOutput>;
|
|
3815
|
-
consumedUtxos: Array<Utxo>;
|
|
3816
|
-
};
|
|
3817
|
-
declare namespace CChainImportTransaction {
|
|
5231
|
+
weight: number;
|
|
3818
5232
|
/**
|
|
3819
|
-
*
|
|
5233
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3820
5234
|
*/
|
|
3821
|
-
|
|
3822
|
-
IMPORT_TX = "ImportTx"
|
|
3823
|
-
}
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
type ListCChainAtomicTransactionsResponse = {
|
|
5235
|
+
remainingBalance: number;
|
|
3827
5236
|
/**
|
|
3828
|
-
*
|
|
5237
|
+
* 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
|
|
3829
5238
|
*/
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
chainInfo: PrimaryNetworkChainInfo;
|
|
5239
|
+
balanceChange?: number;
|
|
5240
|
+
blsCredentials?: Record<string, any>;
|
|
3833
5241
|
};
|
|
3834
5242
|
|
|
3835
5243
|
declare enum PChainTransactionType {
|
|
@@ -3848,9 +5256,17 @@ declare enum PChainTransactionType {
|
|
|
3848
5256
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3849
5257
|
BASE_TX = "BaseTx",
|
|
3850
5258
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5259
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5260
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5261
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5262
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5263
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3851
5264
|
UNKNOWN = "UNKNOWN"
|
|
3852
5265
|
}
|
|
3853
5266
|
|
|
5267
|
+
/**
|
|
5268
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5269
|
+
*/
|
|
3854
5270
|
declare enum UtxoType {
|
|
3855
5271
|
STAKE = "STAKE",
|
|
3856
5272
|
TRANSFER = "TRANSFER"
|
|
@@ -3878,6 +5294,10 @@ type PChainUtxo = {
|
|
|
3878
5294
|
* UTXO ID for this output.
|
|
3879
5295
|
*/
|
|
3880
5296
|
utxoId: string;
|
|
5297
|
+
/**
|
|
5298
|
+
* The bytes of the UTXO
|
|
5299
|
+
*/
|
|
5300
|
+
utxoBytes?: string;
|
|
3881
5301
|
/**
|
|
3882
5302
|
* @deprecated
|
|
3883
5303
|
*/
|
|
@@ -3888,16 +5308,43 @@ type PChainUtxo = {
|
|
|
3888
5308
|
assetId: string;
|
|
3889
5309
|
blockNumber: string;
|
|
3890
5310
|
blockTimestamp: number;
|
|
5311
|
+
/**
|
|
5312
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5313
|
+
*/
|
|
3891
5314
|
consumingBlockNumber?: string;
|
|
5315
|
+
/**
|
|
5316
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5317
|
+
*/
|
|
3892
5318
|
consumingBlockTimestamp?: number;
|
|
5319
|
+
/**
|
|
5320
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5321
|
+
*/
|
|
3893
5322
|
platformLocktime?: number;
|
|
5323
|
+
/**
|
|
5324
|
+
* The index of the UTXO in the transaction
|
|
5325
|
+
*/
|
|
3894
5326
|
outputIndex: number;
|
|
3895
5327
|
rewardType?: RewardType;
|
|
5328
|
+
/**
|
|
5329
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5330
|
+
*/
|
|
3896
5331
|
stakeableLocktime?: number;
|
|
3897
5332
|
staked?: boolean;
|
|
5333
|
+
/**
|
|
5334
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5335
|
+
*/
|
|
3898
5336
|
threshold?: number;
|
|
5337
|
+
/**
|
|
5338
|
+
* The hash of the transaction that created this UTXO
|
|
5339
|
+
*/
|
|
3899
5340
|
txHash: string;
|
|
5341
|
+
/**
|
|
5342
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5343
|
+
*/
|
|
3900
5344
|
utxoEndTimestamp?: number;
|
|
5345
|
+
/**
|
|
5346
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5347
|
+
*/
|
|
3901
5348
|
utxoStartTimestamp?: number;
|
|
3902
5349
|
utxoType: UtxoType;
|
|
3903
5350
|
};
|
|
@@ -3909,12 +5356,21 @@ type PChainTransaction = {
|
|
|
3909
5356
|
txHash: string;
|
|
3910
5357
|
txType: PChainTransactionType;
|
|
3911
5358
|
/**
|
|
3912
|
-
* The block
|
|
5359
|
+
* The block creation (proposal) timestamp in seconds
|
|
3913
5360
|
*/
|
|
3914
5361
|
blockTimestamp: number;
|
|
5362
|
+
/**
|
|
5363
|
+
* The height of the block in which the transaction was included
|
|
5364
|
+
*/
|
|
3915
5365
|
blockNumber: string;
|
|
3916
5366
|
blockHash: string;
|
|
5367
|
+
/**
|
|
5368
|
+
* The consumed UTXOs of the transaction
|
|
5369
|
+
*/
|
|
3917
5370
|
consumedUtxos: Array<PChainUtxo>;
|
|
5371
|
+
/**
|
|
5372
|
+
* The newly created UTXOs of the transaction
|
|
5373
|
+
*/
|
|
3918
5374
|
emittedUtxos: Array<PChainUtxo>;
|
|
3919
5375
|
/**
|
|
3920
5376
|
* Source chain for an atomic transaction.
|
|
@@ -3925,17 +5381,21 @@ type PChainTransaction = {
|
|
|
3925
5381
|
*/
|
|
3926
5382
|
destinationChain?: string;
|
|
3927
5383
|
/**
|
|
3928
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5384
|
+
* 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
|
|
3929
5385
|
*/
|
|
3930
5386
|
value: Array<AssetAmount>;
|
|
3931
5387
|
/**
|
|
3932
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5388
|
+
* 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
|
|
3933
5389
|
*/
|
|
3934
5390
|
amountBurned: Array<AssetAmount>;
|
|
3935
5391
|
/**
|
|
3936
5392
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3937
5393
|
*/
|
|
3938
5394
|
amountStaked: Array<AssetAmount>;
|
|
5395
|
+
/**
|
|
5396
|
+
* 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.
|
|
5397
|
+
*/
|
|
5398
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3939
5399
|
/**
|
|
3940
5400
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3941
5401
|
*/
|
|
@@ -3945,11 +5405,11 @@ type PChainTransaction = {
|
|
|
3945
5405
|
*/
|
|
3946
5406
|
endTimestamp?: number;
|
|
3947
5407
|
/**
|
|
3948
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5408
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3949
5409
|
*/
|
|
3950
5410
|
delegationFeePercent?: string;
|
|
3951
5411
|
/**
|
|
3952
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5412
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3953
5413
|
*/
|
|
3954
5414
|
nodeId?: string;
|
|
3955
5415
|
/**
|
|
@@ -3957,14 +5417,25 @@ type PChainTransaction = {
|
|
|
3957
5417
|
*/
|
|
3958
5418
|
subnetId?: string;
|
|
3959
5419
|
/**
|
|
3960
|
-
* Present for
|
|
5420
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5421
|
+
*/
|
|
5422
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5423
|
+
/**
|
|
5424
|
+
* 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
|
|
5425
|
+
*/
|
|
5426
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5427
|
+
/**
|
|
5428
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3961
5429
|
*/
|
|
3962
5430
|
estimatedReward?: string;
|
|
5431
|
+
/**
|
|
5432
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5433
|
+
*/
|
|
3963
5434
|
rewardTxHash?: string;
|
|
3964
5435
|
rewardAddresses?: Array<string>;
|
|
3965
5436
|
memo?: string;
|
|
3966
5437
|
/**
|
|
3967
|
-
*
|
|
5438
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3968
5439
|
*/
|
|
3969
5440
|
stakingTxHash?: string;
|
|
3970
5441
|
/**
|
|
@@ -3972,9 +5443,13 @@ type PChainTransaction = {
|
|
|
3972
5443
|
*/
|
|
3973
5444
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3974
5445
|
/**
|
|
3975
|
-
* Present for AddPermissionlessValidatorTx
|
|
5446
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3976
5447
|
*/
|
|
3977
5448
|
blsCredentials?: BlsCredentials;
|
|
5449
|
+
/**
|
|
5450
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5451
|
+
*/
|
|
5452
|
+
blockchainInfo?: BlockchainInfo;
|
|
3978
5453
|
};
|
|
3979
5454
|
|
|
3980
5455
|
type ListPChainTransactionsResponse = {
|
|
@@ -4157,6 +5632,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4157
5632
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4158
5633
|
BASE_TX = "BaseTx",
|
|
4159
5634
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5635
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5636
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5637
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5638
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5639
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4160
5640
|
UNKNOWN = "UNKNOWN",
|
|
4161
5641
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4162
5642
|
OPERATION_TX = "OperationTx"
|
|
@@ -4177,7 +5657,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
5657
|
*/
|
|
4178
5658
|
blockchainId: BlockchainId;
|
|
4179
5659
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
5660
|
+
* Either mainnet or testnet/fuji.
|
|
4181
5661
|
*/
|
|
4182
5662
|
network: Network;
|
|
4183
5663
|
/**
|
|
@@ -4191,23 +5671,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4191
5671
|
*
|
|
4192
5672
|
* 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.
|
|
4193
5673
|
*
|
|
5674
|
+
* 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.
|
|
5675
|
+
*
|
|
4194
5676
|
* 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.
|
|
4195
5677
|
* @returns any Successful response
|
|
4196
5678
|
* @throws ApiError
|
|
4197
5679
|
*/
|
|
4198
|
-
listLatestPrimaryNetworkTransactions({
|
|
4199
|
-
/**
|
|
4200
|
-
* 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.
|
|
4201
|
-
*/
|
|
4202
|
-
addresses: string;
|
|
5680
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4203
5681
|
/**
|
|
4204
5682
|
* A primary network blockchain id or alias.
|
|
4205
5683
|
*/
|
|
4206
5684
|
blockchainId: BlockchainId;
|
|
4207
5685
|
/**
|
|
4208
|
-
* Either mainnet or
|
|
5686
|
+
* Either mainnet or testnet/fuji.
|
|
4209
5687
|
*/
|
|
4210
5688
|
network: Network;
|
|
5689
|
+
/**
|
|
5690
|
+
* 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.
|
|
5691
|
+
*/
|
|
5692
|
+
addresses?: string;
|
|
5693
|
+
l1ValidationId?: string;
|
|
4211
5694
|
/**
|
|
4212
5695
|
* Query param for filtering items based on transaction types.
|
|
4213
5696
|
*/
|
|
@@ -4245,7 +5728,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4245
5728
|
*/
|
|
4246
5729
|
blockchainId: PChainId;
|
|
4247
5730
|
/**
|
|
4248
|
-
* Either mainnet or
|
|
5731
|
+
* Either mainnet or testnet/fuji.
|
|
4249
5732
|
*/
|
|
4250
5733
|
network: Network;
|
|
4251
5734
|
/**
|
|
@@ -4289,7 +5772,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4289
5772
|
*/
|
|
4290
5773
|
blockchainId: XChainId;
|
|
4291
5774
|
/**
|
|
4292
|
-
* Either mainnet or
|
|
5775
|
+
* Either mainnet or testnet/fuji.
|
|
4293
5776
|
*/
|
|
4294
5777
|
network: Network;
|
|
4295
5778
|
/**
|
|
@@ -4337,6 +5820,18 @@ type ListUtxosResponse = {
|
|
|
4337
5820
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4338
5821
|
};
|
|
4339
5822
|
|
|
5823
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5824
|
+
/**
|
|
5825
|
+
* Comma-separated list of primary network addresses
|
|
5826
|
+
*/
|
|
5827
|
+
addresses: string;
|
|
5828
|
+
};
|
|
5829
|
+
|
|
5830
|
+
declare enum UtxosSortByOption {
|
|
5831
|
+
TIMESTAMP = "timestamp",
|
|
5832
|
+
AMOUNT = "amount"
|
|
5833
|
+
}
|
|
5834
|
+
|
|
4340
5835
|
declare class PrimaryNetworkUtxOsService {
|
|
4341
5836
|
readonly httpRequest: BaseHttpRequest;
|
|
4342
5837
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4346,13 +5841,13 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4346
5841
|
* @returns any Successful response
|
|
4347
5842
|
* @throws ApiError
|
|
4348
5843
|
*/
|
|
4349
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5844
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4350
5845
|
/**
|
|
4351
5846
|
* A primary network blockchain id or alias.
|
|
4352
5847
|
*/
|
|
4353
5848
|
blockchainId: BlockchainId;
|
|
4354
5849
|
/**
|
|
4355
|
-
* Either mainnet or
|
|
5850
|
+
* Either mainnet or testnet/fuji.
|
|
4356
5851
|
*/
|
|
4357
5852
|
network: Network;
|
|
4358
5853
|
/**
|
|
@@ -4371,10 +5866,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4371
5866
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4372
5867
|
*/
|
|
4373
5868
|
assetId?: string;
|
|
5869
|
+
/**
|
|
5870
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5871
|
+
*/
|
|
5872
|
+
minUtxoAmount?: number;
|
|
5873
|
+
/**
|
|
5874
|
+
* Boolean filter to include spent UTXOs.
|
|
5875
|
+
*/
|
|
5876
|
+
includeSpent?: boolean;
|
|
5877
|
+
/**
|
|
5878
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5879
|
+
*/
|
|
5880
|
+
sortBy?: UtxosSortByOption;
|
|
5881
|
+
/**
|
|
5882
|
+
* 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.
|
|
5883
|
+
*/
|
|
5884
|
+
sortOrder?: SortOrder;
|
|
5885
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5886
|
+
/**
|
|
5887
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5888
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5889
|
+
* @returns any Successful response
|
|
5890
|
+
* @throws ApiError
|
|
5891
|
+
*/
|
|
5892
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5893
|
+
/**
|
|
5894
|
+
* A primary network blockchain id or alias.
|
|
5895
|
+
*/
|
|
5896
|
+
blockchainId: BlockchainId;
|
|
5897
|
+
/**
|
|
5898
|
+
* Either mainnet or testnet/fuji.
|
|
5899
|
+
*/
|
|
5900
|
+
network: Network;
|
|
5901
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5902
|
+
/**
|
|
5903
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5904
|
+
*/
|
|
5905
|
+
pageToken?: string;
|
|
5906
|
+
/**
|
|
5907
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5908
|
+
*/
|
|
5909
|
+
pageSize?: number;
|
|
5910
|
+
/**
|
|
5911
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5912
|
+
*/
|
|
5913
|
+
assetId?: string;
|
|
5914
|
+
/**
|
|
5915
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5916
|
+
*/
|
|
5917
|
+
minUtxoAmount?: number;
|
|
4374
5918
|
/**
|
|
4375
5919
|
* Boolean filter to include spent UTXOs.
|
|
4376
5920
|
*/
|
|
4377
5921
|
includeSpent?: boolean;
|
|
5922
|
+
/**
|
|
5923
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5924
|
+
*/
|
|
5925
|
+
sortBy?: UtxosSortByOption;
|
|
4378
5926
|
/**
|
|
4379
5927
|
* 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.
|
|
4380
5928
|
*/
|
|
@@ -4417,7 +5965,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4417
5965
|
*/
|
|
4418
5966
|
blockchainId: XChainId;
|
|
4419
5967
|
/**
|
|
4420
|
-
* Either mainnet or
|
|
5968
|
+
* Either mainnet or testnet/fuji.
|
|
4421
5969
|
*/
|
|
4422
5970
|
network: Network;
|
|
4423
5971
|
/**
|
|
@@ -4445,7 +5993,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4445
5993
|
*/
|
|
4446
5994
|
blockchainId: XChainId;
|
|
4447
5995
|
/**
|
|
4448
|
-
* Either mainnet or
|
|
5996
|
+
* Either mainnet or testnet/fuji.
|
|
4449
5997
|
*/
|
|
4450
5998
|
network: Network;
|
|
4451
5999
|
}): CancelablePromise<XChainVertex>;
|
|
@@ -4465,7 +6013,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4465
6013
|
*/
|
|
4466
6014
|
blockchainId: XChainId;
|
|
4467
6015
|
/**
|
|
4468
|
-
* Either mainnet or
|
|
6016
|
+
* Either mainnet or testnet/fuji.
|
|
4469
6017
|
*/
|
|
4470
6018
|
network: Network;
|
|
4471
6019
|
/**
|
|
@@ -4483,47 +6031,69 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4483
6031
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4484
6032
|
}
|
|
4485
6033
|
|
|
4486
|
-
type
|
|
4487
|
-
|
|
4488
|
-
message: string;
|
|
4489
|
-
data?: Record<string, any>;
|
|
4490
|
-
};
|
|
4491
|
-
|
|
4492
|
-
type RpcErrorResponseDto = {
|
|
4493
|
-
jsonrpc: string;
|
|
4494
|
-
id?: (string | number);
|
|
4495
|
-
error: RpcErrorDto;
|
|
6034
|
+
type SignatureAggregationResponse = {
|
|
6035
|
+
signedMessage: string;
|
|
4496
6036
|
};
|
|
4497
6037
|
|
|
4498
|
-
type
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
6038
|
+
type SignatureAggregatorRequest = {
|
|
6039
|
+
/**
|
|
6040
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
6041
|
+
*/
|
|
6042
|
+
message?: string;
|
|
6043
|
+
/**
|
|
6044
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
6045
|
+
*/
|
|
6046
|
+
justification?: string;
|
|
6047
|
+
/**
|
|
6048
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6049
|
+
*/
|
|
6050
|
+
signingSubnetId?: string;
|
|
6051
|
+
/**
|
|
6052
|
+
* 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.
|
|
6053
|
+
*/
|
|
6054
|
+
quorumPercentage?: number;
|
|
6055
|
+
/**
|
|
6056
|
+
* 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.
|
|
6057
|
+
*/
|
|
6058
|
+
quorumPercentageBuffer?: number;
|
|
6059
|
+
/**
|
|
6060
|
+
* 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.
|
|
6061
|
+
*/
|
|
6062
|
+
pChainHeight?: number;
|
|
4509
6063
|
};
|
|
4510
6064
|
|
|
4511
|
-
declare class
|
|
6065
|
+
declare class SignatureAggregatorService {
|
|
4512
6066
|
readonly httpRequest: BaseHttpRequest;
|
|
4513
6067
|
constructor(httpRequest: BaseHttpRequest);
|
|
4514
6068
|
/**
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
* @returns
|
|
6069
|
+
* Aggregate Signatures
|
|
6070
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
6071
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4518
6072
|
* @throws ApiError
|
|
4519
6073
|
*/
|
|
4520
|
-
|
|
6074
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4521
6075
|
/**
|
|
4522
|
-
*
|
|
6076
|
+
* Either mainnet or testnet/fuji.
|
|
4523
6077
|
*/
|
|
4524
|
-
|
|
4525
|
-
requestBody:
|
|
4526
|
-
}): CancelablePromise<
|
|
6078
|
+
network: Network;
|
|
6079
|
+
requestBody: SignatureAggregatorRequest;
|
|
6080
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6081
|
+
/**
|
|
6082
|
+
* Get Aggregated Signatures
|
|
6083
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6084
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6085
|
+
* @throws ApiError
|
|
6086
|
+
*/
|
|
6087
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6088
|
+
/**
|
|
6089
|
+
* Either mainnet or testnet/fuji.
|
|
6090
|
+
*/
|
|
6091
|
+
network: Network;
|
|
6092
|
+
/**
|
|
6093
|
+
* A primary network (P or X chain) transaction hash.
|
|
6094
|
+
*/
|
|
6095
|
+
txHash: string;
|
|
6096
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4527
6097
|
}
|
|
4528
6098
|
|
|
4529
6099
|
type TeleporterDestinationTransaction = {
|
|
@@ -4657,15 +6227,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4657
6227
|
* 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.
|
|
4658
6228
|
*/
|
|
4659
6229
|
nextPageToken?: string;
|
|
4660
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6230
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4661
6231
|
};
|
|
4662
6232
|
|
|
4663
6233
|
declare class TeleporterService {
|
|
4664
6234
|
readonly httpRequest: BaseHttpRequest;
|
|
4665
6235
|
constructor(httpRequest: BaseHttpRequest);
|
|
4666
6236
|
/**
|
|
4667
|
-
*
|
|
4668
|
-
* Gets a teleporter message by message ID.
|
|
6237
|
+
* @deprecated
|
|
6238
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6239
|
+
*
|
|
6240
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4669
6241
|
* @returns any Successful response
|
|
4670
6242
|
* @throws ApiError
|
|
4671
6243
|
*/
|
|
@@ -4676,8 +6248,10 @@ declare class TeleporterService {
|
|
|
4676
6248
|
messageId: string;
|
|
4677
6249
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4678
6250
|
/**
|
|
4679
|
-
*
|
|
4680
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6251
|
+
* @deprecated
|
|
6252
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6253
|
+
*
|
|
6254
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4681
6255
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4682
6256
|
* @throws ApiError
|
|
4683
6257
|
*/
|
|
@@ -4711,13 +6285,15 @@ declare class TeleporterService {
|
|
|
4711
6285
|
*/
|
|
4712
6286
|
from?: string;
|
|
4713
6287
|
/**
|
|
4714
|
-
* mainnet or testnet.
|
|
6288
|
+
* Either mainnet or testnet/fuji.
|
|
4715
6289
|
*/
|
|
4716
|
-
network?:
|
|
6290
|
+
network?: Network;
|
|
4717
6291
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4718
6292
|
/**
|
|
4719
|
-
*
|
|
4720
|
-
* Lists teleporter messages by address. Ordered by
|
|
6293
|
+
* @deprecated
|
|
6294
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6295
|
+
*
|
|
6296
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4721
6297
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4722
6298
|
* @throws ApiError
|
|
4723
6299
|
*/
|
|
@@ -4735,9 +6311,9 @@ declare class TeleporterService {
|
|
|
4735
6311
|
*/
|
|
4736
6312
|
pageSize?: number;
|
|
4737
6313
|
/**
|
|
4738
|
-
* mainnet or testnet.
|
|
6314
|
+
* Either mainnet or testnet/fuji.
|
|
4739
6315
|
*/
|
|
4740
|
-
network?:
|
|
6316
|
+
network?: Network;
|
|
4741
6317
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4742
6318
|
}
|
|
4743
6319
|
|
|
@@ -4750,68 +6326,212 @@ type AddressesChangeRequest = {
|
|
|
4750
6326
|
|
|
4751
6327
|
type AddressActivityMetadata = {
|
|
4752
6328
|
/**
|
|
4753
|
-
*
|
|
6329
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6330
|
+
*/
|
|
6331
|
+
eventSignatures?: Array<string>;
|
|
6332
|
+
/**
|
|
6333
|
+
* 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.
|
|
4754
6334
|
*/
|
|
4755
6335
|
addresses: Array<string>;
|
|
6336
|
+
};
|
|
6337
|
+
|
|
6338
|
+
type EVMAddressActivityRequest = {
|
|
6339
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6340
|
+
url: string;
|
|
6341
|
+
name?: string;
|
|
6342
|
+
description?: string;
|
|
6343
|
+
chainId: string;
|
|
6344
|
+
metadata: AddressActivityMetadata;
|
|
4756
6345
|
/**
|
|
4757
|
-
*
|
|
6346
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4758
6347
|
*/
|
|
4759
|
-
|
|
6348
|
+
includeInternalTxs?: boolean;
|
|
6349
|
+
/**
|
|
6350
|
+
* Whether to include logs in the webhook payload.
|
|
6351
|
+
*/
|
|
6352
|
+
includeLogs?: boolean;
|
|
4760
6353
|
};
|
|
6354
|
+
declare namespace EVMAddressActivityRequest {
|
|
6355
|
+
enum eventType {
|
|
6356
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6357
|
+
}
|
|
6358
|
+
}
|
|
4761
6359
|
|
|
4762
|
-
declare enum
|
|
6360
|
+
declare enum AddressActivityEventType {
|
|
4763
6361
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4764
6362
|
}
|
|
4765
6363
|
|
|
4766
|
-
|
|
6364
|
+
declare enum WebhookStatusType {
|
|
6365
|
+
ACTIVE = "active",
|
|
6366
|
+
INACTIVE = "inactive"
|
|
6367
|
+
}
|
|
6368
|
+
|
|
6369
|
+
type EVMAddressActivityResponse = {
|
|
6370
|
+
id: string;
|
|
4767
6371
|
url: string;
|
|
4768
6372
|
chainId: string;
|
|
4769
|
-
|
|
6373
|
+
status: WebhookStatusType;
|
|
6374
|
+
createdAt: number;
|
|
6375
|
+
name: string;
|
|
6376
|
+
description: string;
|
|
6377
|
+
eventType: AddressActivityEventType;
|
|
4770
6378
|
metadata: AddressActivityMetadata;
|
|
4771
|
-
name?: string;
|
|
4772
|
-
description?: string;
|
|
4773
6379
|
/**
|
|
4774
6380
|
* Whether to include traces in the webhook payload.
|
|
4775
6381
|
*/
|
|
4776
|
-
includeInternalTxs?: boolean;
|
|
6382
|
+
includeInternalTxs?: boolean;
|
|
6383
|
+
/**
|
|
6384
|
+
* Whether to include logs in the webhook payload.
|
|
6385
|
+
*/
|
|
6386
|
+
includeLogs?: boolean;
|
|
6387
|
+
};
|
|
6388
|
+
|
|
6389
|
+
type ListWebhookAddressesResponse = {
|
|
6390
|
+
/**
|
|
6391
|
+
* 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.
|
|
6392
|
+
*/
|
|
6393
|
+
nextPageToken?: string;
|
|
6394
|
+
addresses: Array<string>;
|
|
6395
|
+
totalAddresses: number;
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6399
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
/**
|
|
6403
|
+
* The type of key to monitor for the address activity event type.
|
|
6404
|
+
*/
|
|
6405
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6406
|
+
ADDRESSES = "addresses"
|
|
6407
|
+
}
|
|
6408
|
+
|
|
6409
|
+
/**
|
|
6410
|
+
* Array of address activity sub-event types
|
|
6411
|
+
*/
|
|
6412
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6413
|
+
BALANCE_CHANGE = "balance_change",
|
|
6414
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6415
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6419
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6420
|
+
};
|
|
6421
|
+
|
|
6422
|
+
/**
|
|
6423
|
+
* Type of balance to monitor
|
|
6424
|
+
*/
|
|
6425
|
+
declare enum CommonBalanceType {
|
|
6426
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6427
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6428
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6429
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6430
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6431
|
+
PENDING_STAKED = "pendingStaked",
|
|
6432
|
+
UNLOCKED = "unlocked",
|
|
6433
|
+
LOCKED = "locked",
|
|
6434
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6435
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6439
|
+
balanceType: CommonBalanceType;
|
|
6440
|
+
/**
|
|
6441
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6442
|
+
*/
|
|
6443
|
+
balanceThreshold: string;
|
|
6444
|
+
};
|
|
6445
|
+
|
|
6446
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6447
|
+
/**
|
|
6448
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6449
|
+
*/
|
|
6450
|
+
eventSignatures?: Array<string>;
|
|
6451
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6452
|
+
/**
|
|
6453
|
+
* 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.
|
|
6454
|
+
*/
|
|
6455
|
+
keys: Array<string>;
|
|
6456
|
+
/**
|
|
6457
|
+
* Sub-events to monitor
|
|
6458
|
+
*/
|
|
6459
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6460
|
+
/**
|
|
6461
|
+
* Balance threshold filter
|
|
6462
|
+
*/
|
|
6463
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6464
|
+
};
|
|
6465
|
+
|
|
6466
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6467
|
+
id: string;
|
|
6468
|
+
url: string;
|
|
6469
|
+
chainId: string;
|
|
6470
|
+
status: WebhookStatusType;
|
|
6471
|
+
createdAt: number;
|
|
6472
|
+
name: string;
|
|
6473
|
+
description: string;
|
|
6474
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6475
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6476
|
+
};
|
|
6477
|
+
|
|
6478
|
+
declare enum ValidatorActivityEventType {
|
|
6479
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
/**
|
|
6483
|
+
* The type of key to monitor for the validator activity event type.
|
|
6484
|
+
*/
|
|
6485
|
+
declare enum ValidatorActivityKeyType {
|
|
6486
|
+
NODE_ID = "nodeId",
|
|
6487
|
+
SUBNET_ID = "subnetId"
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
type ValidatorActivitySubEvents = {
|
|
6491
|
+
/**
|
|
6492
|
+
* Array of validator activity sub-event types
|
|
6493
|
+
*/
|
|
6494
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6495
|
+
};
|
|
6496
|
+
|
|
6497
|
+
type ValidatorActivityMetadata = {
|
|
6498
|
+
/**
|
|
6499
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6500
|
+
*/
|
|
6501
|
+
eventSignatures?: Array<string>;
|
|
6502
|
+
keyType: ValidatorActivityKeyType;
|
|
6503
|
+
/**
|
|
6504
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6505
|
+
*/
|
|
6506
|
+
keys: Array<string>;
|
|
4777
6507
|
/**
|
|
4778
|
-
*
|
|
6508
|
+
* Sub-events to monitor
|
|
4779
6509
|
*/
|
|
4780
|
-
|
|
4781
|
-
};
|
|
4782
|
-
|
|
4783
|
-
type ListWebhookAddressesResponse = {
|
|
6510
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4784
6511
|
/**
|
|
4785
|
-
*
|
|
6512
|
+
* Array of node IDs to filter the events
|
|
4786
6513
|
*/
|
|
4787
|
-
|
|
4788
|
-
addresses: Array<string>;
|
|
4789
|
-
totalAddresses: number;
|
|
4790
|
-
};
|
|
4791
|
-
|
|
4792
|
-
declare enum WebhookStatusType {
|
|
4793
|
-
ACTIVE = "active",
|
|
4794
|
-
INACTIVE = "inactive"
|
|
4795
|
-
}
|
|
4796
|
-
|
|
4797
|
-
type WebhookResponse = {
|
|
4798
|
-
id: string;
|
|
4799
|
-
eventType: EventType;
|
|
4800
|
-
metadata: AddressActivityMetadata;
|
|
6514
|
+
nodeIds?: Array<string>;
|
|
4801
6515
|
/**
|
|
4802
|
-
*
|
|
6516
|
+
* Array of subnet IDs to filter the events
|
|
4803
6517
|
*/
|
|
4804
|
-
|
|
6518
|
+
subnetIds?: Array<string>;
|
|
4805
6519
|
/**
|
|
4806
|
-
*
|
|
6520
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4807
6521
|
*/
|
|
4808
|
-
|
|
6522
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6523
|
+
};
|
|
6524
|
+
|
|
6525
|
+
type ValidatorActivityResponse = {
|
|
6526
|
+
id: string;
|
|
4809
6527
|
url: string;
|
|
4810
6528
|
chainId: string;
|
|
4811
6529
|
status: WebhookStatusType;
|
|
4812
6530
|
createdAt: number;
|
|
4813
6531
|
name: string;
|
|
4814
6532
|
description: string;
|
|
6533
|
+
eventType: ValidatorActivityEventType;
|
|
6534
|
+
metadata: ValidatorActivityMetadata;
|
|
4815
6535
|
};
|
|
4816
6536
|
|
|
4817
6537
|
type ListWebhooksResponse = {
|
|
@@ -4819,8 +6539,31 @@ type ListWebhooksResponse = {
|
|
|
4819
6539
|
* 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
6540
|
*/
|
|
4821
6541
|
nextPageToken?: string;
|
|
4822
|
-
webhooks: Array<
|
|
6542
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6543
|
+
};
|
|
6544
|
+
|
|
6545
|
+
declare enum PrimaryNetworkType {
|
|
6546
|
+
MAINNET = "mainnet",
|
|
6547
|
+
FUJI = "fuji"
|
|
6548
|
+
}
|
|
6549
|
+
|
|
6550
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6551
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6552
|
+
url: string;
|
|
6553
|
+
name?: string;
|
|
6554
|
+
description?: string;
|
|
6555
|
+
network: PrimaryNetworkType;
|
|
6556
|
+
chainId: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Metadata for platform address activity event
|
|
6559
|
+
*/
|
|
6560
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
4823
6561
|
};
|
|
6562
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6563
|
+
enum eventType {
|
|
6564
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
4824
6567
|
|
|
4825
6568
|
type SharedSecretsResponse = {
|
|
4826
6569
|
secret: string;
|
|
@@ -4831,10 +6574,30 @@ type UpdateWebhookRequest = {
|
|
|
4831
6574
|
description?: string;
|
|
4832
6575
|
url?: string;
|
|
4833
6576
|
status?: WebhookStatusType;
|
|
6577
|
+
/**
|
|
6578
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6579
|
+
*/
|
|
4834
6580
|
includeInternalTxs?: boolean;
|
|
4835
6581
|
includeLogs?: boolean;
|
|
4836
6582
|
};
|
|
4837
6583
|
|
|
6584
|
+
type ValidatorActivityRequest = {
|
|
6585
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6586
|
+
url: string;
|
|
6587
|
+
name?: string;
|
|
6588
|
+
description?: string;
|
|
6589
|
+
network: PrimaryNetworkType;
|
|
6590
|
+
/**
|
|
6591
|
+
* Metadata for platform validator activity event
|
|
6592
|
+
*/
|
|
6593
|
+
metadata: ValidatorActivityMetadata;
|
|
6594
|
+
};
|
|
6595
|
+
declare namespace ValidatorActivityRequest {
|
|
6596
|
+
enum eventType {
|
|
6597
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
|
|
4838
6601
|
declare enum WebhookStatus {
|
|
4839
6602
|
ACTIVE = "active",
|
|
4840
6603
|
INACTIVE = "inactive"
|
|
@@ -4846,12 +6609,12 @@ declare class WebhooksService {
|
|
|
4846
6609
|
/**
|
|
4847
6610
|
* Create a webhook
|
|
4848
6611
|
* Create a new webhook.
|
|
4849
|
-
* @returns
|
|
6612
|
+
* @returns any Successful response
|
|
4850
6613
|
* @throws ApiError
|
|
4851
6614
|
*/
|
|
4852
6615
|
createWebhook({ requestBody, }: {
|
|
4853
|
-
requestBody:
|
|
4854
|
-
}): CancelablePromise<
|
|
6616
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6617
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4855
6618
|
/**
|
|
4856
6619
|
* List webhooks
|
|
4857
6620
|
* Lists webhooks for the user.
|
|
@@ -4875,7 +6638,7 @@ declare class WebhooksService {
|
|
|
4875
6638
|
/**
|
|
4876
6639
|
* Get a webhook by ID
|
|
4877
6640
|
* Retrieves a webhook by ID.
|
|
4878
|
-
* @returns
|
|
6641
|
+
* @returns any Successful response
|
|
4879
6642
|
* @throws ApiError
|
|
4880
6643
|
*/
|
|
4881
6644
|
getWebhook({ id, }: {
|
|
@@ -4883,11 +6646,11 @@ declare class WebhooksService {
|
|
|
4883
6646
|
* The webhook identifier.
|
|
4884
6647
|
*/
|
|
4885
6648
|
id: string;
|
|
4886
|
-
}): CancelablePromise<
|
|
6649
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4887
6650
|
/**
|
|
4888
6651
|
* Deactivate a webhook
|
|
4889
6652
|
* Deactivates a webhook by ID.
|
|
4890
|
-
* @returns
|
|
6653
|
+
* @returns any Successful response
|
|
4891
6654
|
* @throws ApiError
|
|
4892
6655
|
*/
|
|
4893
6656
|
deactivateWebhook({ id, }: {
|
|
@@ -4895,11 +6658,11 @@ declare class WebhooksService {
|
|
|
4895
6658
|
* The webhook identifier.
|
|
4896
6659
|
*/
|
|
4897
6660
|
id: string;
|
|
4898
|
-
}): CancelablePromise<
|
|
6661
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4899
6662
|
/**
|
|
4900
6663
|
* Update a webhook
|
|
4901
6664
|
* Updates an existing webhook.
|
|
4902
|
-
* @returns
|
|
6665
|
+
* @returns any Successful response
|
|
4903
6666
|
* @throws ApiError
|
|
4904
6667
|
*/
|
|
4905
6668
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4908,14 +6671,14 @@ declare class WebhooksService {
|
|
|
4908
6671
|
*/
|
|
4909
6672
|
id: string;
|
|
4910
6673
|
requestBody: UpdateWebhookRequest;
|
|
4911
|
-
}): CancelablePromise<
|
|
6674
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4912
6675
|
/**
|
|
4913
|
-
* Generate a shared secret
|
|
4914
|
-
* Generates a new shared secret.
|
|
6676
|
+
* Generate or rotate a shared secret
|
|
6677
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4915
6678
|
* @returns SharedSecretsResponse Successful response
|
|
4916
6679
|
* @throws ApiError
|
|
4917
6680
|
*/
|
|
4918
|
-
|
|
6681
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4919
6682
|
/**
|
|
4920
6683
|
* Get a shared secret
|
|
4921
6684
|
* Get a previously generated shared secret.
|
|
@@ -4924,9 +6687,9 @@ declare class WebhooksService {
|
|
|
4924
6687
|
*/
|
|
4925
6688
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4926
6689
|
/**
|
|
4927
|
-
* Add addresses to webhook
|
|
4928
|
-
* Add addresses to webhook.
|
|
4929
|
-
* @returns
|
|
6690
|
+
* Add addresses to EVM activity webhook
|
|
6691
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6692
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4930
6693
|
* @throws ApiError
|
|
4931
6694
|
*/
|
|
4932
6695
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4935,11 +6698,11 @@ declare class WebhooksService {
|
|
|
4935
6698
|
*/
|
|
4936
6699
|
id: string;
|
|
4937
6700
|
requestBody: AddressesChangeRequest;
|
|
4938
|
-
}): CancelablePromise<
|
|
6701
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4939
6702
|
/**
|
|
4940
|
-
* Remove addresses from webhook
|
|
4941
|
-
* Remove addresses from webhook.
|
|
4942
|
-
* @returns
|
|
6703
|
+
* Remove addresses from EVM activity webhook
|
|
6704
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6705
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4943
6706
|
* @throws ApiError
|
|
4944
6707
|
*/
|
|
4945
6708
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4948,10 +6711,10 @@ declare class WebhooksService {
|
|
|
4948
6711
|
*/
|
|
4949
6712
|
id: string;
|
|
4950
6713
|
requestBody: AddressesChangeRequest;
|
|
4951
|
-
}): CancelablePromise<
|
|
6714
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4952
6715
|
/**
|
|
4953
|
-
* List adresses by
|
|
4954
|
-
* List adresses by webhook.
|
|
6716
|
+
* List adresses by EVM activity webhooks
|
|
6717
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
4955
6718
|
* @returns ListWebhookAddressesResponse Successful response
|
|
4956
6719
|
* @throws ApiError
|
|
4957
6720
|
*/
|
|
@@ -4973,6 +6736,7 @@ declare class WebhooksService {
|
|
|
4973
6736
|
|
|
4974
6737
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4975
6738
|
declare class Glacier {
|
|
6739
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
4976
6740
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4977
6741
|
readonly default: DefaultService;
|
|
4978
6742
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -4981,7 +6745,9 @@ declare class Glacier {
|
|
|
4981
6745
|
readonly evmContracts: EvmContractsService;
|
|
4982
6746
|
readonly evmTransactions: EvmTransactionsService;
|
|
4983
6747
|
readonly healthCheck: HealthCheckService;
|
|
6748
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4984
6749
|
readonly nfTs: NfTsService;
|
|
6750
|
+
readonly notifications: NotificationsService;
|
|
4985
6751
|
readonly operations: OperationsService;
|
|
4986
6752
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
4987
6753
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -4990,7 +6756,7 @@ declare class Glacier {
|
|
|
4990
6756
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4991
6757
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4992
6758
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4993
|
-
readonly
|
|
6759
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4994
6760
|
readonly teleporter: TeleporterService;
|
|
4995
6761
|
readonly webhooks: WebhooksService;
|
|
4996
6762
|
readonly request: BaseHttpRequest;
|
|
@@ -5014,6 +6780,17 @@ declare class ApiError extends Error {
|
|
|
5014
6780
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5015
6781
|
}
|
|
5016
6782
|
|
|
6783
|
+
type AccessListData = {
|
|
6784
|
+
/**
|
|
6785
|
+
* Access Address
|
|
6786
|
+
*/
|
|
6787
|
+
accessAddresses: string;
|
|
6788
|
+
/**
|
|
6789
|
+
* Storage keys
|
|
6790
|
+
*/
|
|
6791
|
+
storageKeys: Array<string>;
|
|
6792
|
+
};
|
|
6793
|
+
|
|
5017
6794
|
type BadGateway = {
|
|
5018
6795
|
/**
|
|
5019
6796
|
* The error message describing the reason for the exception
|
|
@@ -5048,6 +6825,76 @@ type DataListChainsResponse = {
|
|
|
5048
6825
|
chains: Array<ChainInfo>;
|
|
5049
6826
|
};
|
|
5050
6827
|
|
|
6828
|
+
type ERCToken = {
|
|
6829
|
+
/**
|
|
6830
|
+
* Token contract address
|
|
6831
|
+
*/
|
|
6832
|
+
address: string;
|
|
6833
|
+
/**
|
|
6834
|
+
* Token name
|
|
6835
|
+
*/
|
|
6836
|
+
name: string;
|
|
6837
|
+
/**
|
|
6838
|
+
* Token symbol
|
|
6839
|
+
*/
|
|
6840
|
+
symbol: string;
|
|
6841
|
+
/**
|
|
6842
|
+
* Token decimals
|
|
6843
|
+
*/
|
|
6844
|
+
decimals: number;
|
|
6845
|
+
/**
|
|
6846
|
+
* Value including decimals
|
|
6847
|
+
*/
|
|
6848
|
+
valueWithDecimals: string;
|
|
6849
|
+
};
|
|
6850
|
+
|
|
6851
|
+
type ERCTransfer = {
|
|
6852
|
+
/**
|
|
6853
|
+
* Transaction hash
|
|
6854
|
+
*/
|
|
6855
|
+
transactionHash: string;
|
|
6856
|
+
/**
|
|
6857
|
+
* Transfer type
|
|
6858
|
+
*/
|
|
6859
|
+
type: string;
|
|
6860
|
+
/**
|
|
6861
|
+
* Sender address
|
|
6862
|
+
*/
|
|
6863
|
+
from: string;
|
|
6864
|
+
/**
|
|
6865
|
+
* Recipient address
|
|
6866
|
+
*/
|
|
6867
|
+
to: string;
|
|
6868
|
+
/**
|
|
6869
|
+
* Amount transferred
|
|
6870
|
+
*/
|
|
6871
|
+
value: string;
|
|
6872
|
+
/**
|
|
6873
|
+
* Token Id
|
|
6874
|
+
*/
|
|
6875
|
+
tokenId?: string;
|
|
6876
|
+
/**
|
|
6877
|
+
* Block timestamp
|
|
6878
|
+
*/
|
|
6879
|
+
blockTimestamp: number;
|
|
6880
|
+
/**
|
|
6881
|
+
* Log index
|
|
6882
|
+
*/
|
|
6883
|
+
logIndex: number;
|
|
6884
|
+
/**
|
|
6885
|
+
* erc20 Token details
|
|
6886
|
+
*/
|
|
6887
|
+
erc20Token?: ERCToken;
|
|
6888
|
+
/**
|
|
6889
|
+
* erc721 Token details
|
|
6890
|
+
*/
|
|
6891
|
+
erc721Token?: ERCToken;
|
|
6892
|
+
/**
|
|
6893
|
+
* erc1155 Token details
|
|
6894
|
+
*/
|
|
6895
|
+
erc1155Token?: ERCToken;
|
|
6896
|
+
};
|
|
6897
|
+
|
|
5051
6898
|
type Forbidden = {
|
|
5052
6899
|
/**
|
|
5053
6900
|
* The error message describing the reason for the exception
|
|
@@ -5078,6 +6925,64 @@ type InternalServerError = {
|
|
|
5078
6925
|
error: string;
|
|
5079
6926
|
};
|
|
5080
6927
|
|
|
6928
|
+
type Log = {
|
|
6929
|
+
/**
|
|
6930
|
+
* Contract address
|
|
6931
|
+
*/
|
|
6932
|
+
address: string;
|
|
6933
|
+
/**
|
|
6934
|
+
* First topic
|
|
6935
|
+
*/
|
|
6936
|
+
topic0: string;
|
|
6937
|
+
/**
|
|
6938
|
+
* Second topic (optional)
|
|
6939
|
+
*/
|
|
6940
|
+
topic1?: string;
|
|
6941
|
+
/**
|
|
6942
|
+
* Third topic (optional)
|
|
6943
|
+
*/
|
|
6944
|
+
topic2?: string;
|
|
6945
|
+
/**
|
|
6946
|
+
* Fourth topic (optional)
|
|
6947
|
+
*/
|
|
6948
|
+
topic3?: string;
|
|
6949
|
+
/**
|
|
6950
|
+
* Event data
|
|
6951
|
+
*/
|
|
6952
|
+
data: string;
|
|
6953
|
+
/**
|
|
6954
|
+
* Transaction index
|
|
6955
|
+
*/
|
|
6956
|
+
transactionIndex: number;
|
|
6957
|
+
/**
|
|
6958
|
+
* Log index
|
|
6959
|
+
*/
|
|
6960
|
+
logIndex: number;
|
|
6961
|
+
/**
|
|
6962
|
+
* Indicates if the log was removed
|
|
6963
|
+
*/
|
|
6964
|
+
removed: boolean;
|
|
6965
|
+
};
|
|
6966
|
+
|
|
6967
|
+
type NetworkTokenInfo = {
|
|
6968
|
+
/**
|
|
6969
|
+
* Token name
|
|
6970
|
+
*/
|
|
6971
|
+
tokenName?: string;
|
|
6972
|
+
/**
|
|
6973
|
+
* Token symbol
|
|
6974
|
+
*/
|
|
6975
|
+
tokenSymbol?: string;
|
|
6976
|
+
/**
|
|
6977
|
+
* Token decimals
|
|
6978
|
+
*/
|
|
6979
|
+
tokenDecimals?: number;
|
|
6980
|
+
/**
|
|
6981
|
+
* Value including decimals
|
|
6982
|
+
*/
|
|
6983
|
+
valueWithDecimals?: string;
|
|
6984
|
+
};
|
|
6985
|
+
|
|
5081
6986
|
type NextPageToken = {
|
|
5082
6987
|
/**
|
|
5083
6988
|
* 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.
|
|
@@ -5130,6 +7035,163 @@ type TooManyRequests = {
|
|
|
5130
7035
|
error: string;
|
|
5131
7036
|
};
|
|
5132
7037
|
|
|
7038
|
+
type WebhookInternalTransaction = {
|
|
7039
|
+
/**
|
|
7040
|
+
* Sender address
|
|
7041
|
+
*/
|
|
7042
|
+
from: string;
|
|
7043
|
+
/**
|
|
7044
|
+
* Recipient address
|
|
7045
|
+
*/
|
|
7046
|
+
to: string;
|
|
7047
|
+
/**
|
|
7048
|
+
* Internal transaction type
|
|
7049
|
+
*/
|
|
7050
|
+
internalTxType: string;
|
|
7051
|
+
/**
|
|
7052
|
+
* Value transferred
|
|
7053
|
+
*/
|
|
7054
|
+
value: string;
|
|
7055
|
+
/**
|
|
7056
|
+
* Gas used
|
|
7057
|
+
*/
|
|
7058
|
+
gasUsed: string;
|
|
7059
|
+
/**
|
|
7060
|
+
* Gas limit
|
|
7061
|
+
*/
|
|
7062
|
+
gasLimit: string;
|
|
7063
|
+
/**
|
|
7064
|
+
* Transaction hash
|
|
7065
|
+
*/
|
|
7066
|
+
transactionHash: string;
|
|
7067
|
+
};
|
|
7068
|
+
|
|
7069
|
+
type Transaction = {
|
|
7070
|
+
/**
|
|
7071
|
+
* Block hash of the transaction
|
|
7072
|
+
*/
|
|
7073
|
+
blockHash: string;
|
|
7074
|
+
/**
|
|
7075
|
+
* Block number of the transaction
|
|
7076
|
+
*/
|
|
7077
|
+
blockNumber: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Sender address
|
|
7080
|
+
*/
|
|
7081
|
+
from: string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Gas limit for the transaction
|
|
7084
|
+
*/
|
|
7085
|
+
gas: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Gas price used
|
|
7088
|
+
*/
|
|
7089
|
+
gasPrice: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Maximum fee per gas
|
|
7092
|
+
*/
|
|
7093
|
+
maxFeePerGas: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Maximum priority fee per gas
|
|
7096
|
+
*/
|
|
7097
|
+
maxPriorityFeePerGas: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Transaction hash
|
|
7100
|
+
*/
|
|
7101
|
+
txHash: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Transaction status
|
|
7104
|
+
*/
|
|
7105
|
+
txStatus: string;
|
|
7106
|
+
/**
|
|
7107
|
+
* Input data
|
|
7108
|
+
*/
|
|
7109
|
+
input: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* Nonce value
|
|
7112
|
+
*/
|
|
7113
|
+
nonce: string;
|
|
7114
|
+
/**
|
|
7115
|
+
* Recipient address
|
|
7116
|
+
*/
|
|
7117
|
+
to: string;
|
|
7118
|
+
/**
|
|
7119
|
+
* Transaction index
|
|
7120
|
+
*/
|
|
7121
|
+
transactionIndex: number;
|
|
7122
|
+
/**
|
|
7123
|
+
* Value transferred in the transaction
|
|
7124
|
+
*/
|
|
7125
|
+
value: string;
|
|
7126
|
+
/**
|
|
7127
|
+
* Transaction type
|
|
7128
|
+
*/
|
|
7129
|
+
type: number;
|
|
7130
|
+
/**
|
|
7131
|
+
* Chain ID of the network
|
|
7132
|
+
*/
|
|
7133
|
+
chainId: string;
|
|
7134
|
+
/**
|
|
7135
|
+
* Cumulative gas used
|
|
7136
|
+
*/
|
|
7137
|
+
receiptCumulativeGasUsed: string;
|
|
7138
|
+
/**
|
|
7139
|
+
* Gas used
|
|
7140
|
+
*/
|
|
7141
|
+
receiptGasUsed: string;
|
|
7142
|
+
/**
|
|
7143
|
+
* Effective gas price
|
|
7144
|
+
*/
|
|
7145
|
+
receiptEffectiveGasPrice: string;
|
|
7146
|
+
/**
|
|
7147
|
+
* Receipt root
|
|
7148
|
+
*/
|
|
7149
|
+
receiptRoot: string;
|
|
7150
|
+
/**
|
|
7151
|
+
* Block timestamp
|
|
7152
|
+
*/
|
|
7153
|
+
blockTimestamp: number;
|
|
7154
|
+
/**
|
|
7155
|
+
* Contract address (optional)
|
|
7156
|
+
*/
|
|
7157
|
+
contractAddress?: string;
|
|
7158
|
+
/**
|
|
7159
|
+
* ERC20 transfers
|
|
7160
|
+
*/
|
|
7161
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7162
|
+
/**
|
|
7163
|
+
* ERC721 transfers
|
|
7164
|
+
*/
|
|
7165
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7166
|
+
/**
|
|
7167
|
+
* ERC1155 transfers
|
|
7168
|
+
*/
|
|
7169
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7170
|
+
/**
|
|
7171
|
+
* Internal transactions (optional)
|
|
7172
|
+
*/
|
|
7173
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7174
|
+
/**
|
|
7175
|
+
* Access list (optional)
|
|
7176
|
+
*/
|
|
7177
|
+
accessList?: Array<AccessListData>;
|
|
7178
|
+
/**
|
|
7179
|
+
* Network token info (optional)
|
|
7180
|
+
*/
|
|
7181
|
+
networkToken?: NetworkTokenInfo;
|
|
7182
|
+
};
|
|
7183
|
+
|
|
7184
|
+
type TransactionEvent = {
|
|
7185
|
+
/**
|
|
7186
|
+
* Transaction details
|
|
7187
|
+
*/
|
|
7188
|
+
transaction: Transaction;
|
|
7189
|
+
/**
|
|
7190
|
+
* Array of log events
|
|
7191
|
+
*/
|
|
7192
|
+
logs?: Array<Log>;
|
|
7193
|
+
};
|
|
7194
|
+
|
|
5133
7195
|
type Unauthorized = {
|
|
5134
7196
|
/**
|
|
5135
7197
|
* The error message describing the reason for the exception
|
|
@@ -5145,4 +7207,43 @@ type Unauthorized = {
|
|
|
5145
7207
|
error: string;
|
|
5146
7208
|
};
|
|
5147
7209
|
|
|
5148
|
-
|
|
7210
|
+
type WebhookAddressActivityResponse = {
|
|
7211
|
+
/**
|
|
7212
|
+
* Webhook ID
|
|
7213
|
+
*/
|
|
7214
|
+
webhookId: string;
|
|
7215
|
+
/**
|
|
7216
|
+
* Event type
|
|
7217
|
+
*/
|
|
7218
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7219
|
+
/**
|
|
7220
|
+
* Message ID
|
|
7221
|
+
*/
|
|
7222
|
+
messageId: string;
|
|
7223
|
+
/**
|
|
7224
|
+
* Event details
|
|
7225
|
+
*/
|
|
7226
|
+
event: TransactionEvent;
|
|
7227
|
+
};
|
|
7228
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7229
|
+
/**
|
|
7230
|
+
* Event type
|
|
7231
|
+
*/
|
|
7232
|
+
enum eventType {
|
|
7233
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7236
|
+
|
|
7237
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7238
|
+
constructor(config: OpenAPIConfig);
|
|
7239
|
+
/**
|
|
7240
|
+
* Request method
|
|
7241
|
+
* @param options The request options from the service
|
|
7242
|
+
* @returns CancelablePromise<T>
|
|
7243
|
+
* @throws ApiError
|
|
7244
|
+
*/
|
|
7245
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7246
|
+
}
|
|
7247
|
+
|
|
7248
|
+
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 };
|
|
7249
|
+
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 };
|