@avalabs/glacier-sdk 3.1.0-alpha.7 → 3.1.0-alpha.70
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 +2617 -538
- package/esm/generated/Glacier.d.ts +6 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/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 +3 -3
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +3 -3
- 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/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 +17 -3
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/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 +81 -3
- 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/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +8 -5
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +27 -3
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +74 -9
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -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,67 +539,204 @@ 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:
|
|
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;
|
|
405
740
|
/**
|
|
406
741
|
* The token price, if available.
|
|
407
742
|
*/
|
|
@@ -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,75 +1406,268 @@ 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
|
-
|
|
1014
|
-
|
|
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"
|
|
1015
1425
|
}
|
|
1016
1426
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1427
|
+
type Method = {
|
|
1428
|
+
callType: TransactionMethodType;
|
|
1020
1429
|
/**
|
|
1021
|
-
*
|
|
1022
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1023
|
-
* @returns ListChainsResponse Successful response
|
|
1024
|
-
* @throws ApiError
|
|
1430
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1025
1431
|
*/
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* Either mainnet or testnet/fuji.
|
|
1029
|
-
*/
|
|
1030
|
-
network?: Network;
|
|
1031
|
-
/**
|
|
1032
|
-
* Filter by feature.
|
|
1033
|
-
*/
|
|
1034
|
-
feature?: ApiFeature;
|
|
1035
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1432
|
+
methodHash: string;
|
|
1036
1433
|
/**
|
|
1037
|
-
*
|
|
1038
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1039
|
-
* @returns GetChainResponse Successful response
|
|
1040
|
-
* @throws ApiError
|
|
1434
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1041
1435
|
*/
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1045
|
-
*/
|
|
1046
|
-
chainId: string;
|
|
1047
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1048
|
-
}
|
|
1436
|
+
methodName?: string;
|
|
1437
|
+
};
|
|
1049
1438
|
|
|
1050
|
-
type
|
|
1051
|
-
assetId?: string;
|
|
1439
|
+
type RichAddress = {
|
|
1052
1440
|
/**
|
|
1053
|
-
*
|
|
1441
|
+
* The contract name.
|
|
1054
1442
|
*/
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
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;
|
|
1060
1460
|
};
|
|
1061
1461
|
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
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",
|
|
1076
1671
|
TIK_TOK = "TikTok",
|
|
1077
1672
|
TWITTER = "Twitter",
|
|
1078
1673
|
WEBSITE = "Website",
|
|
@@ -1216,7 +1811,7 @@ type Erc1155Contract = {
|
|
|
1216
1811
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1217
1812
|
*/
|
|
1218
1813
|
address: string;
|
|
1219
|
-
deploymentDetails
|
|
1814
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1220
1815
|
ercType: Erc1155Contract.ercType;
|
|
1221
1816
|
/**
|
|
1222
1817
|
* The contract symbol.
|
|
@@ -1247,7 +1842,7 @@ type Erc20Contract = {
|
|
|
1247
1842
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1248
1843
|
*/
|
|
1249
1844
|
address: string;
|
|
1250
|
-
deploymentDetails
|
|
1845
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1251
1846
|
ercType: Erc20Contract.ercType;
|
|
1252
1847
|
/**
|
|
1253
1848
|
* The contract symbol.
|
|
@@ -1282,7 +1877,7 @@ type Erc721Contract = {
|
|
|
1282
1877
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1283
1878
|
*/
|
|
1284
1879
|
address: string;
|
|
1285
|
-
deploymentDetails
|
|
1880
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1286
1881
|
ercType: Erc721Contract.ercType;
|
|
1287
1882
|
/**
|
|
1288
1883
|
* The contract symbol.
|
|
@@ -1312,7 +1907,7 @@ type UnknownContract = {
|
|
|
1312
1907
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1313
1908
|
*/
|
|
1314
1909
|
address: string;
|
|
1315
|
-
deploymentDetails
|
|
1910
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1316
1911
|
ercType: UnknownContract.ercType;
|
|
1317
1912
|
};
|
|
1318
1913
|
declare namespace UnknownContract {
|
|
@@ -1336,7 +1931,7 @@ declare class EvmContractsService {
|
|
|
1336
1931
|
*/
|
|
1337
1932
|
getContractMetadata({ chainId, address, }: {
|
|
1338
1933
|
/**
|
|
1339
|
-
* 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.
|
|
1340
1935
|
*/
|
|
1341
1936
|
chainId: string;
|
|
1342
1937
|
/**
|
|
@@ -1352,7 +1947,7 @@ declare class EvmContractsService {
|
|
|
1352
1947
|
*/
|
|
1353
1948
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1354
1949
|
/**
|
|
1355
|
-
* 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.
|
|
1356
1951
|
*/
|
|
1357
1952
|
chainId: string;
|
|
1358
1953
|
/**
|
|
@@ -1379,29 +1974,6 @@ declare namespace Erc1155Token {
|
|
|
1379
1974
|
}
|
|
1380
1975
|
}
|
|
1381
1976
|
|
|
1382
|
-
type RichAddress = {
|
|
1383
|
-
/**
|
|
1384
|
-
* The contract name.
|
|
1385
|
-
*/
|
|
1386
|
-
name?: string;
|
|
1387
|
-
/**
|
|
1388
|
-
* The contract symbol.
|
|
1389
|
-
*/
|
|
1390
|
-
symbol?: string;
|
|
1391
|
-
/**
|
|
1392
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1393
|
-
*/
|
|
1394
|
-
decimals?: number;
|
|
1395
|
-
/**
|
|
1396
|
-
* The logo uri for the address.
|
|
1397
|
-
*/
|
|
1398
|
-
logoUri?: string;
|
|
1399
|
-
/**
|
|
1400
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1401
|
-
*/
|
|
1402
|
-
address: string;
|
|
1403
|
-
};
|
|
1404
|
-
|
|
1405
1977
|
type Erc1155TransferDetails = {
|
|
1406
1978
|
from: RichAddress;
|
|
1407
1979
|
to: RichAddress;
|
|
@@ -1486,40 +2058,31 @@ type Erc721TransferDetails = {
|
|
|
1486
2058
|
erc721Token: Erc721Token;
|
|
1487
2059
|
};
|
|
1488
2060
|
|
|
1489
|
-
/**
|
|
1490
|
-
* 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.
|
|
1491
|
-
*/
|
|
1492
|
-
declare enum TransactionMethodType {
|
|
1493
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1494
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1495
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
type Method = {
|
|
1499
|
-
callType: TransactionMethodType;
|
|
1500
|
-
/**
|
|
1501
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1502
|
-
*/
|
|
1503
|
-
methodHash: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* 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'.
|
|
1506
|
-
*/
|
|
1507
|
-
methodName?: string;
|
|
1508
|
-
};
|
|
1509
|
-
|
|
1510
2061
|
type FullNativeTransactionDetails = {
|
|
1511
2062
|
/**
|
|
1512
2063
|
* The block number on the chain.
|
|
1513
2064
|
*/
|
|
1514
2065
|
blockNumber: string;
|
|
1515
2066
|
/**
|
|
1516
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
1517
2068
|
*/
|
|
1518
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;
|
|
1519
2078
|
/**
|
|
1520
2079
|
* The block hash identifier.
|
|
1521
2080
|
*/
|
|
1522
2081
|
blockHash: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The EVM chain ID on which the transaction occured.
|
|
2084
|
+
*/
|
|
2085
|
+
chainId: string;
|
|
1523
2086
|
/**
|
|
1524
2087
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1525
2088
|
*/
|
|
@@ -1570,6 +2133,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1570
2133
|
CALL = "CALL",
|
|
1571
2134
|
CREATE = "CREATE",
|
|
1572
2135
|
CREATE2 = "CREATE2",
|
|
2136
|
+
CREATE3 = "CREATE3",
|
|
1573
2137
|
CALLCODE = "CALLCODE",
|
|
1574
2138
|
DELEGATECALL = "DELEGATECALL",
|
|
1575
2139
|
STATICCALL = "STATICCALL"
|
|
@@ -1611,11 +2175,11 @@ type TeleporterMessageInfo = {
|
|
|
1611
2175
|
/**
|
|
1612
2176
|
* chain id of the source chain. valid only for destination transactions
|
|
1613
2177
|
*/
|
|
1614
|
-
sourceChainId?:
|
|
2178
|
+
sourceChainId?: string;
|
|
1615
2179
|
/**
|
|
1616
2180
|
* chain id of the destination chain. valid only for source transactions
|
|
1617
2181
|
*/
|
|
1618
|
-
destinationChainId?:
|
|
2182
|
+
destinationChainId?: string;
|
|
1619
2183
|
};
|
|
1620
2184
|
|
|
1621
2185
|
type GetTransactionResponse = {
|
|
@@ -1632,7 +2196,7 @@ type GetTransactionResponse = {
|
|
|
1632
2196
|
*/
|
|
1633
2197
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1634
2198
|
/**
|
|
1635
|
-
* 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.
|
|
1636
2200
|
*/
|
|
1637
2201
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1638
2202
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1657,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
1657
2221
|
*/
|
|
1658
2222
|
blockNumber: string;
|
|
1659
2223
|
/**
|
|
1660
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
1661
2225
|
*/
|
|
1662
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
1663
2231
|
/**
|
|
1664
2232
|
* The block hash identifier.
|
|
1665
2233
|
*/
|
|
@@ -1689,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
1689
2257
|
*/
|
|
1690
2258
|
blockNumber: string;
|
|
1691
2259
|
/**
|
|
1692
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
1693
2261
|
*/
|
|
1694
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
1695
2267
|
/**
|
|
1696
2268
|
* The block hash identifier.
|
|
1697
2269
|
*/
|
|
@@ -1721,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
1721
2293
|
*/
|
|
1722
2294
|
blockNumber: string;
|
|
1723
2295
|
/**
|
|
1724
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
1725
2297
|
*/
|
|
1726
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
1727
2303
|
/**
|
|
1728
2304
|
* The block hash identifier.
|
|
1729
2305
|
*/
|
|
@@ -1752,9 +2328,13 @@ type InternalTransaction = {
|
|
|
1752
2328
|
*/
|
|
1753
2329
|
blockNumber: string;
|
|
1754
2330
|
/**
|
|
1755
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
1756
2332
|
*/
|
|
1757
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
1758
2338
|
/**
|
|
1759
2339
|
* The block hash identifier.
|
|
1760
2340
|
*/
|
|
@@ -1783,84 +2363,25 @@ type ListInternalTransactionsResponse = {
|
|
|
1783
2363
|
transactions: Array<InternalTransaction>;
|
|
1784
2364
|
};
|
|
1785
2365
|
|
|
1786
|
-
type
|
|
2366
|
+
type TransactionDetails = {
|
|
1787
2367
|
/**
|
|
1788
|
-
* The
|
|
2368
|
+
* The native (top-level) transaction details.
|
|
1789
2369
|
*/
|
|
1790
|
-
|
|
2370
|
+
nativeTransaction: NativeTransaction;
|
|
1791
2371
|
/**
|
|
1792
|
-
* The
|
|
2372
|
+
* The list of ERC-20 transfers.
|
|
1793
2373
|
*/
|
|
1794
|
-
|
|
2374
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1795
2375
|
/**
|
|
1796
|
-
* The
|
|
2376
|
+
* The list of ERC-721 transfers.
|
|
1797
2377
|
*/
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1801
|
-
*/
|
|
1802
|
-
blockIndex: number;
|
|
1803
|
-
/**
|
|
1804
|
-
* The transaction hash identifier.
|
|
1805
|
-
*/
|
|
1806
|
-
txHash: string;
|
|
1807
|
-
/**
|
|
1808
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1809
|
-
*/
|
|
1810
|
-
txStatus: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* The transaction type.
|
|
1813
|
-
*/
|
|
1814
|
-
txType: number;
|
|
1815
|
-
/**
|
|
1816
|
-
* The gas limit set for the transaction.
|
|
1817
|
-
*/
|
|
1818
|
-
gasLimit: string;
|
|
1819
|
-
/**
|
|
1820
|
-
* The amount of gas used.
|
|
1821
|
-
*/
|
|
1822
|
-
gasUsed: string;
|
|
1823
|
-
/**
|
|
1824
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1825
|
-
*/
|
|
1826
|
-
gasPrice: string;
|
|
1827
|
-
/**
|
|
1828
|
-
* The nonce used by the sender of the transaction.
|
|
1829
|
-
*/
|
|
1830
|
-
nonce: string;
|
|
1831
|
-
from: RichAddress;
|
|
1832
|
-
to: RichAddress;
|
|
1833
|
-
method?: Method;
|
|
1834
|
-
value: string;
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
|
-
type ListNativeTransactionsResponse = {
|
|
1838
|
-
/**
|
|
1839
|
-
* 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.
|
|
1840
|
-
*/
|
|
1841
|
-
nextPageToken?: string;
|
|
1842
|
-
transactions: Array<NativeTransaction>;
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
type TransactionDetails = {
|
|
1846
|
-
/**
|
|
1847
|
-
* The native (top-level) transaction details.
|
|
1848
|
-
*/
|
|
1849
|
-
nativeTransaction: NativeTransaction;
|
|
1850
|
-
/**
|
|
1851
|
-
* The list of ERC-20 transfers.
|
|
1852
|
-
*/
|
|
1853
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1854
|
-
/**
|
|
1855
|
-
* The list of ERC-721 transfers.
|
|
1856
|
-
*/
|
|
1857
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
2378
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1858
2379
|
/**
|
|
1859
2380
|
* The list of ERC-1155 transfers.
|
|
1860
2381
|
*/
|
|
1861
2382
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1862
2383
|
/**
|
|
1863
|
-
* 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.
|
|
1864
2385
|
*/
|
|
1865
2386
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1866
2387
|
};
|
|
@@ -1886,14 +2407,33 @@ declare enum SortOrder {
|
|
|
1886
2407
|
DESC = "desc"
|
|
1887
2408
|
}
|
|
1888
2409
|
|
|
1889
|
-
declare enum TransactionStatus {
|
|
1890
|
-
FAILED = "failed",
|
|
1891
|
-
SUCCESS = "success"
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
2410
|
declare class EvmTransactionsService {
|
|
1895
2411
|
readonly httpRequest: BaseHttpRequest;
|
|
1896
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>;
|
|
1897
2437
|
/**
|
|
1898
2438
|
* Get deployment transaction
|
|
1899
2439
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -1902,7 +2442,7 @@ declare class EvmTransactionsService {
|
|
|
1902
2442
|
*/
|
|
1903
2443
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1904
2444
|
/**
|
|
1905
|
-
* 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.
|
|
1906
2446
|
*/
|
|
1907
2447
|
chainId: string;
|
|
1908
2448
|
/**
|
|
@@ -1922,7 +2462,7 @@ declare class EvmTransactionsService {
|
|
|
1922
2462
|
*/
|
|
1923
2463
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1924
2464
|
/**
|
|
1925
|
-
* 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.
|
|
1926
2466
|
*/
|
|
1927
2467
|
chainId: string;
|
|
1928
2468
|
/**
|
|
@@ -1946,7 +2486,7 @@ declare class EvmTransactionsService {
|
|
|
1946
2486
|
*/
|
|
1947
2487
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1948
2488
|
/**
|
|
1949
|
-
* 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.
|
|
1950
2490
|
*/
|
|
1951
2491
|
chainId: string;
|
|
1952
2492
|
/**
|
|
@@ -1980,7 +2520,7 @@ declare class EvmTransactionsService {
|
|
|
1980
2520
|
*/
|
|
1981
2521
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1982
2522
|
/**
|
|
1983
|
-
* 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.
|
|
1984
2524
|
*/
|
|
1985
2525
|
chainId: string;
|
|
1986
2526
|
/**
|
|
@@ -2016,7 +2556,7 @@ declare class EvmTransactionsService {
|
|
|
2016
2556
|
*/
|
|
2017
2557
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2018
2558
|
/**
|
|
2019
|
-
* 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.
|
|
2020
2560
|
*/
|
|
2021
2561
|
chainId: string;
|
|
2022
2562
|
/**
|
|
@@ -2048,7 +2588,7 @@ declare class EvmTransactionsService {
|
|
|
2048
2588
|
*/
|
|
2049
2589
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2050
2590
|
/**
|
|
2051
|
-
* 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.
|
|
2052
2592
|
*/
|
|
2053
2593
|
chainId: string;
|
|
2054
2594
|
/**
|
|
@@ -2080,7 +2620,7 @@ declare class EvmTransactionsService {
|
|
|
2080
2620
|
*/
|
|
2081
2621
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2082
2622
|
/**
|
|
2083
|
-
* 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.
|
|
2084
2624
|
*/
|
|
2085
2625
|
chainId: string;
|
|
2086
2626
|
/**
|
|
@@ -2112,7 +2652,7 @@ declare class EvmTransactionsService {
|
|
|
2112
2652
|
*/
|
|
2113
2653
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2114
2654
|
/**
|
|
2115
|
-
* 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.
|
|
2116
2656
|
*/
|
|
2117
2657
|
chainId: string;
|
|
2118
2658
|
/**
|
|
@@ -2140,13 +2680,13 @@ declare class EvmTransactionsService {
|
|
|
2140
2680
|
* List internal transactions
|
|
2141
2681
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2142
2682
|
*
|
|
2143
|
-
* 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.
|
|
2144
2684
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2145
2685
|
* @throws ApiError
|
|
2146
2686
|
*/
|
|
2147
2687
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2148
2688
|
/**
|
|
2149
|
-
* 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.
|
|
2150
2690
|
*/
|
|
2151
2691
|
chainId: string;
|
|
2152
2692
|
/**
|
|
@@ -2178,7 +2718,7 @@ declare class EvmTransactionsService {
|
|
|
2178
2718
|
*/
|
|
2179
2719
|
getTransaction({ chainId, txHash, }: {
|
|
2180
2720
|
/**
|
|
2181
|
-
* 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.
|
|
2182
2722
|
*/
|
|
2183
2723
|
chainId: string;
|
|
2184
2724
|
/**
|
|
@@ -2192,15 +2732,23 @@ declare class EvmTransactionsService {
|
|
|
2192
2732
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2193
2733
|
* @throws ApiError
|
|
2194
2734
|
*/
|
|
2195
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2735
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2196
2736
|
/**
|
|
2197
|
-
* 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.
|
|
2198
2738
|
*/
|
|
2199
2739
|
chainId: string;
|
|
2200
2740
|
/**
|
|
2201
2741
|
* A block identifier which is either a block number or the block hash.
|
|
2202
2742
|
*/
|
|
2203
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;
|
|
2204
2752
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2205
2753
|
/**
|
|
2206
2754
|
* List latest transactions
|
|
@@ -2210,7 +2758,7 @@ declare class EvmTransactionsService {
|
|
|
2210
2758
|
*/
|
|
2211
2759
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2212
2760
|
/**
|
|
2213
|
-
* 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.
|
|
2214
2762
|
*/
|
|
2215
2763
|
chainId: string;
|
|
2216
2764
|
/**
|
|
@@ -2228,66 +2776,314 @@ declare class EvmTransactionsService {
|
|
|
2228
2776
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2229
2777
|
}
|
|
2230
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
|
+
|
|
2231
2809
|
declare class HealthCheckService {
|
|
2232
2810
|
readonly httpRequest: BaseHttpRequest;
|
|
2233
2811
|
constructor(httpRequest: BaseHttpRequest);
|
|
2234
2812
|
/**
|
|
2235
2813
|
* Get the health of the service
|
|
2236
|
-
*
|
|
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.
|
|
2237
2816
|
* @throws ApiError
|
|
2238
2817
|
*/
|
|
2239
|
-
dataHealthCheck(): CancelablePromise<
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
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>;
|
|
2245
2826
|
}
|
|
2246
2827
|
|
|
2247
|
-
type
|
|
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 = {
|
|
2248
2955
|
/**
|
|
2249
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.
|
|
2250
2957
|
*/
|
|
2251
2958
|
nextPageToken?: string;
|
|
2252
|
-
|
|
2959
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2253
2960
|
};
|
|
2254
2961
|
|
|
2255
|
-
declare class
|
|
2962
|
+
declare class InterchainMessagingService {
|
|
2256
2963
|
readonly httpRequest: BaseHttpRequest;
|
|
2257
2964
|
constructor(httpRequest: BaseHttpRequest);
|
|
2258
2965
|
/**
|
|
2259
|
-
*
|
|
2260
|
-
*
|
|
2966
|
+
* Get an ICM message
|
|
2967
|
+
* Gets an ICM message by teleporter message ID.
|
|
2261
2968
|
* @returns any Successful response
|
|
2262
2969
|
* @throws ApiError
|
|
2263
2970
|
*/
|
|
2264
|
-
|
|
2971
|
+
getIcmMessage({ messageId, }: {
|
|
2265
2972
|
/**
|
|
2266
|
-
*
|
|
2973
|
+
* The teleporter message ID of the ICM message.
|
|
2267
2974
|
*/
|
|
2268
|
-
|
|
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, }: {
|
|
2269
2984
|
/**
|
|
2270
|
-
*
|
|
2985
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2271
2986
|
*/
|
|
2272
|
-
|
|
2987
|
+
pageToken?: string;
|
|
2273
2988
|
/**
|
|
2274
|
-
*
|
|
2989
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2275
2990
|
*/
|
|
2276
|
-
|
|
2277
|
-
|
|
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>;
|
|
2278
3017
|
/**
|
|
2279
|
-
* List
|
|
2280
|
-
* Lists
|
|
2281
|
-
* @returns
|
|
3018
|
+
* List ICM messages by address
|
|
3019
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3020
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2282
3021
|
* @throws ApiError
|
|
2283
3022
|
*/
|
|
2284
|
-
|
|
2285
|
-
/**
|
|
2286
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2287
|
-
*/
|
|
2288
|
-
chainId: string;
|
|
3023
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2289
3024
|
/**
|
|
2290
|
-
*
|
|
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>;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
type ListNftTokens = {
|
|
3044
|
+
/**
|
|
3045
|
+
* 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.
|
|
3046
|
+
*/
|
|
3047
|
+
nextPageToken?: string;
|
|
3048
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
declare class NfTsService {
|
|
3052
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3053
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3054
|
+
/**
|
|
3055
|
+
* Reindex NFT metadata
|
|
3056
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3057
|
+
* @returns any Successful response
|
|
3058
|
+
* @throws ApiError
|
|
3059
|
+
*/
|
|
3060
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3061
|
+
/**
|
|
3062
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3063
|
+
*/
|
|
3064
|
+
chainId: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Contract address on the relevant chain.
|
|
3067
|
+
*/
|
|
3068
|
+
address: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* TokenId on the contract
|
|
3071
|
+
*/
|
|
3072
|
+
tokenId: string;
|
|
3073
|
+
}): CancelablePromise<any>;
|
|
3074
|
+
/**
|
|
3075
|
+
* List tokens
|
|
3076
|
+
* Lists tokens for an NFT contract.
|
|
3077
|
+
* @returns ListNftTokens Successful response
|
|
3078
|
+
* @throws ApiError
|
|
3079
|
+
*/
|
|
3080
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3081
|
+
/**
|
|
3082
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3083
|
+
*/
|
|
3084
|
+
chainId: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* Contract address on the relevant chain.
|
|
2291
3087
|
*/
|
|
2292
3088
|
address: string;
|
|
2293
3089
|
/**
|
|
@@ -2307,7 +3103,7 @@ declare class NfTsService {
|
|
|
2307
3103
|
*/
|
|
2308
3104
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2309
3105
|
/**
|
|
2310
|
-
* 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.
|
|
2311
3107
|
*/
|
|
2312
3108
|
chainId: string;
|
|
2313
3109
|
/**
|
|
@@ -2321,6 +3117,108 @@ declare class NfTsService {
|
|
|
2321
3117
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2322
3118
|
}
|
|
2323
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
|
+
|
|
2324
3222
|
type EvmNetworkOptions = {
|
|
2325
3223
|
addresses: Array<string>;
|
|
2326
3224
|
includeChains: Array<string>;
|
|
@@ -2337,11 +3235,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2337
3235
|
/**
|
|
2338
3236
|
* @deprecated
|
|
2339
3237
|
*/
|
|
2340
|
-
startDate
|
|
3238
|
+
startDate?: string;
|
|
2341
3239
|
/**
|
|
2342
3240
|
* @deprecated
|
|
2343
3241
|
*/
|
|
2344
|
-
endDate
|
|
3242
|
+
endDate?: string;
|
|
2345
3243
|
options: EvmNetworkOptions;
|
|
2346
3244
|
};
|
|
2347
3245
|
|
|
@@ -2364,83 +3262,346 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2364
3262
|
/**
|
|
2365
3263
|
* @deprecated
|
|
2366
3264
|
*/
|
|
2367
|
-
startDate
|
|
3265
|
+
startDate?: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* @deprecated
|
|
3268
|
+
*/
|
|
3269
|
+
endDate?: string;
|
|
3270
|
+
options: PrimaryNetworkOptions;
|
|
3271
|
+
};
|
|
3272
|
+
|
|
3273
|
+
declare enum OperationStatus {
|
|
3274
|
+
RUNNING = "RUNNING",
|
|
3275
|
+
COMPLETED = "COMPLETED",
|
|
3276
|
+
COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
|
|
3277
|
+
FAILED = "FAILED"
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
declare enum OperationType {
|
|
3281
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3282
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
3283
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
3284
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
declare enum OperationStatusCode {
|
|
3288
|
+
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
3289
|
+
ERR_INTERNAL = "ErrInternal",
|
|
3290
|
+
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
type TransactionExportMetadata = {
|
|
3294
|
+
code?: OperationStatusCode;
|
|
3295
|
+
/**
|
|
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
|
|
3561
|
+
*/
|
|
3562
|
+
gasLimit?: string;
|
|
3563
|
+
/**
|
|
3564
|
+
* Gas used
|
|
3565
|
+
*/
|
|
3566
|
+
gasUsed?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Mix hash
|
|
3569
|
+
*/
|
|
3570
|
+
mixHash?: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* Nonce
|
|
3573
|
+
*/
|
|
3574
|
+
nonce?: string;
|
|
2368
3575
|
/**
|
|
2369
|
-
*
|
|
3576
|
+
* Block number
|
|
2370
3577
|
*/
|
|
2371
|
-
|
|
2372
|
-
options: PrimaryNetworkOptions;
|
|
2373
|
-
};
|
|
2374
|
-
|
|
2375
|
-
declare enum OperationStatus {
|
|
2376
|
-
RUNNING = "RUNNING",
|
|
2377
|
-
COMPLETED = "COMPLETED",
|
|
2378
|
-
COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
|
|
2379
|
-
FAILED = "FAILED"
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
declare enum OperationType {
|
|
2383
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2384
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2385
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2386
|
-
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
declare enum OperationStatusCode {
|
|
2390
|
-
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
2391
|
-
ERR_INTERNAL = "ErrInternal",
|
|
2392
|
-
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
type TransactionExportMetadata = {
|
|
2396
|
-
code?: OperationStatusCode;
|
|
3578
|
+
number?: string;
|
|
2397
3579
|
/**
|
|
2398
|
-
*
|
|
3580
|
+
* Parent hash
|
|
2399
3581
|
*/
|
|
2400
|
-
|
|
3582
|
+
parentHash?: string;
|
|
2401
3583
|
/**
|
|
2402
|
-
*
|
|
3584
|
+
* Block timestamp
|
|
2403
3585
|
*/
|
|
2404
|
-
|
|
2405
|
-
};
|
|
2406
|
-
|
|
2407
|
-
type OperationStatusResponse = {
|
|
2408
|
-
operationId: string;
|
|
2409
|
-
operationType: OperationType;
|
|
2410
|
-
operationStatus: OperationStatus;
|
|
2411
|
-
message?: string;
|
|
2412
|
-
metadata: TransactionExportMetadata;
|
|
2413
|
-
createdAtTimestamp: number;
|
|
2414
|
-
updatedAtTimestamp: number;
|
|
3586
|
+
timestamp?: string;
|
|
2415
3587
|
};
|
|
2416
3588
|
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
3589
|
+
type Blockchain = {
|
|
3590
|
+
createBlockTimestamp: number;
|
|
3591
|
+
createBlockNumber: string;
|
|
3592
|
+
blockchainId: string;
|
|
3593
|
+
vmId: string;
|
|
3594
|
+
subnetId: string;
|
|
3595
|
+
blockchainName: string;
|
|
2420
3596
|
/**
|
|
2421
|
-
*
|
|
2422
|
-
* Gets operation details for the given operation id.
|
|
2423
|
-
* @returns OperationStatusResponse Successful response
|
|
2424
|
-
* @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.
|
|
2425
3598
|
*/
|
|
2426
|
-
|
|
2427
|
-
/**
|
|
2428
|
-
* UUID of given operation
|
|
2429
|
-
*/
|
|
2430
|
-
operationId: string;
|
|
2431
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
3599
|
+
evmChainId?: number;
|
|
2432
3600
|
/**
|
|
2433
|
-
*
|
|
2434
|
-
* Trigger a transaction export operation with given parameters.
|
|
2435
|
-
*
|
|
2436
|
-
* 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.
|
|
2437
|
-
* @returns OperationStatusResponse Successful response
|
|
2438
|
-
* @throws ApiError
|
|
3601
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
2439
3602
|
*/
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2443
|
-
}
|
|
3603
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3604
|
+
};
|
|
2444
3605
|
|
|
2445
3606
|
declare enum BlockchainIds {
|
|
2446
3607
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
@@ -2471,16 +3632,31 @@ type DelegatorsDetails = {
|
|
|
2471
3632
|
};
|
|
2472
3633
|
|
|
2473
3634
|
type StakingDistribution = {
|
|
3635
|
+
/**
|
|
3636
|
+
* AvalancheGo version for the validator node.
|
|
3637
|
+
*/
|
|
2474
3638
|
version: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* The total amount staked by validators using this version.
|
|
3641
|
+
*/
|
|
2475
3642
|
amountStaked: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* The number of validators using this version.
|
|
3645
|
+
*/
|
|
2476
3646
|
validatorCount: number;
|
|
2477
3647
|
};
|
|
2478
3648
|
|
|
2479
3649
|
type ValidatorsDetails = {
|
|
2480
3650
|
validatorCount: number;
|
|
2481
3651
|
totalAmountStaked: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3654
|
+
*/
|
|
2482
3655
|
estimatedAnnualStakingReward: string;
|
|
2483
3656
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Ratio of total active stake amount to the current supply.
|
|
3659
|
+
*/
|
|
2484
3660
|
stakingRatio: string;
|
|
2485
3661
|
};
|
|
2486
3662
|
|
|
@@ -2489,15 +3665,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2489
3665
|
delegatorDetails: DelegatorsDetails;
|
|
2490
3666
|
};
|
|
2491
3667
|
|
|
2492
|
-
type Blockchain = {
|
|
2493
|
-
createBlockTimestamp: number;
|
|
2494
|
-
createBlockNumber: string;
|
|
2495
|
-
blockchainId: string;
|
|
2496
|
-
vmId: string;
|
|
2497
|
-
subnetId: string;
|
|
2498
|
-
blockchainName: string;
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
3668
|
type ListBlockchainsResponse = {
|
|
2502
3669
|
/**
|
|
2503
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.
|
|
@@ -2532,7 +3699,13 @@ type CompletedDelegatorDetails = {
|
|
|
2532
3699
|
delegationFee: string;
|
|
2533
3700
|
startTimestamp: number;
|
|
2534
3701
|
endTimestamp: number;
|
|
3702
|
+
/**
|
|
3703
|
+
* Total rewards distributed for the successful delegation.
|
|
3704
|
+
*/
|
|
2535
3705
|
grossReward: string;
|
|
3706
|
+
/**
|
|
3707
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3708
|
+
*/
|
|
2536
3709
|
netReward: string;
|
|
2537
3710
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2538
3711
|
};
|
|
@@ -2550,7 +3723,13 @@ type PendingDelegatorDetails = {
|
|
|
2550
3723
|
delegationFee: string;
|
|
2551
3724
|
startTimestamp: number;
|
|
2552
3725
|
endTimestamp: number;
|
|
3726
|
+
/**
|
|
3727
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3728
|
+
*/
|
|
2553
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
|
+
*/
|
|
2554
3733
|
estimatedNetReward: string;
|
|
2555
3734
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2556
3735
|
};
|
|
@@ -2571,8 +3750,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2571
3750
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2572
3751
|
};
|
|
2573
3752
|
|
|
2574
|
-
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 = {
|
|
2575
3808
|
blockchainId: string;
|
|
3809
|
+
contractAddress: string;
|
|
2576
3810
|
};
|
|
2577
3811
|
|
|
2578
3812
|
type SubnetOwnershipInfo = {
|
|
@@ -2613,7 +3847,19 @@ type Subnet = {
|
|
|
2613
3847
|
* Latest subnet owner details for this Subnet.
|
|
2614
3848
|
*/
|
|
2615
3849
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2616
|
-
|
|
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>;
|
|
2617
3863
|
};
|
|
2618
3864
|
|
|
2619
3865
|
type ListSubnetsResponse = {
|
|
@@ -2629,6 +3875,29 @@ type BlsCredentials = {
|
|
|
2629
3875
|
proofOfPossession: string;
|
|
2630
3876
|
};
|
|
2631
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
|
+
|
|
2632
3901
|
type Rewards = {
|
|
2633
3902
|
validationRewardAmount: string;
|
|
2634
3903
|
delegationRewardAmount: string;
|
|
@@ -2660,6 +3929,9 @@ type ActiveValidatorDetails = {
|
|
|
2660
3929
|
nodeId: string;
|
|
2661
3930
|
subnetId: string;
|
|
2662
3931
|
amountStaked: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3934
|
+
*/
|
|
2663
3935
|
delegationFee?: string;
|
|
2664
3936
|
startTimestamp: number;
|
|
2665
3937
|
endTimestamp: number;
|
|
@@ -2667,15 +3939,37 @@ type ActiveValidatorDetails = {
|
|
|
2667
3939
|
* Present for AddPermissionlessValidatorTx
|
|
2668
3940
|
*/
|
|
2669
3941
|
blsCredentials?: BlsCredentials;
|
|
3942
|
+
/**
|
|
3943
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3944
|
+
*/
|
|
2670
3945
|
stakePercentage: number;
|
|
3946
|
+
/**
|
|
3947
|
+
* The number of delegators linked to the validator.
|
|
3948
|
+
*/
|
|
2671
3949
|
delegatorCount: number;
|
|
3950
|
+
/**
|
|
3951
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3952
|
+
*/
|
|
2672
3953
|
amountDelegated?: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3956
|
+
*/
|
|
2673
3957
|
uptimePerformance: number;
|
|
2674
3958
|
avalancheGoVersion?: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3961
|
+
*/
|
|
2675
3962
|
delegationCapacity?: string;
|
|
3963
|
+
/**
|
|
3964
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3965
|
+
*/
|
|
2676
3966
|
potentialRewards: Rewards;
|
|
2677
3967
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2678
3968
|
validatorHealth: ValidatorHealthDetails;
|
|
3969
|
+
/**
|
|
3970
|
+
* The geographical location of the validator node, if available.
|
|
3971
|
+
*/
|
|
3972
|
+
geolocation: Geolocation | null;
|
|
2679
3973
|
};
|
|
2680
3974
|
declare namespace ActiveValidatorDetails {
|
|
2681
3975
|
enum validationStatus {
|
|
@@ -2688,6 +3982,9 @@ type CompletedValidatorDetails = {
|
|
|
2688
3982
|
nodeId: string;
|
|
2689
3983
|
subnetId: string;
|
|
2690
3984
|
amountStaked: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3987
|
+
*/
|
|
2691
3988
|
delegationFee?: string;
|
|
2692
3989
|
startTimestamp: number;
|
|
2693
3990
|
endTimestamp: number;
|
|
@@ -2711,6 +4008,9 @@ type PendingValidatorDetails = {
|
|
|
2711
4008
|
nodeId: string;
|
|
2712
4009
|
subnetId: string;
|
|
2713
4010
|
amountStaked: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4013
|
+
*/
|
|
2714
4014
|
delegationFee?: string;
|
|
2715
4015
|
startTimestamp: number;
|
|
2716
4016
|
endTimestamp: number;
|
|
@@ -2731,6 +4031,9 @@ type RemovedValidatorDetails = {
|
|
|
2731
4031
|
nodeId: string;
|
|
2732
4032
|
subnetId: string;
|
|
2733
4033
|
amountStaked: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4036
|
+
*/
|
|
2734
4037
|
delegationFee?: string;
|
|
2735
4038
|
startTimestamp: number;
|
|
2736
4039
|
endTimestamp: number;
|
|
@@ -2738,7 +4041,13 @@ type RemovedValidatorDetails = {
|
|
|
2738
4041
|
* Present for AddPermissionlessValidatorTx
|
|
2739
4042
|
*/
|
|
2740
4043
|
blsCredentials?: BlsCredentials;
|
|
4044
|
+
/**
|
|
4045
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4046
|
+
*/
|
|
2741
4047
|
removeTxHash: string;
|
|
4048
|
+
/**
|
|
4049
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4050
|
+
*/
|
|
2742
4051
|
removeTimestamp: number;
|
|
2743
4052
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2744
4053
|
};
|
|
@@ -2888,7 +4197,7 @@ declare class PrimaryNetworkService {
|
|
|
2888
4197
|
*/
|
|
2889
4198
|
pageToken?: string;
|
|
2890
4199
|
/**
|
|
2891
|
-
* 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.
|
|
2892
4201
|
*/
|
|
2893
4202
|
pageSize?: number;
|
|
2894
4203
|
/**
|
|
@@ -2896,6 +4205,22 @@ declare class PrimaryNetworkService {
|
|
|
2896
4205
|
*/
|
|
2897
4206
|
sortOrder?: SortOrder;
|
|
2898
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>;
|
|
2899
4224
|
/**
|
|
2900
4225
|
* List subnets
|
|
2901
4226
|
* Lists all subnets registered on the network.
|
|
@@ -2912,7 +4237,7 @@ declare class PrimaryNetworkService {
|
|
|
2912
4237
|
*/
|
|
2913
4238
|
pageToken?: string;
|
|
2914
4239
|
/**
|
|
2915
|
-
* 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.
|
|
2916
4241
|
*/
|
|
2917
4242
|
pageSize?: number;
|
|
2918
4243
|
/**
|
|
@@ -2938,7 +4263,7 @@ declare class PrimaryNetworkService {
|
|
|
2938
4263
|
}): CancelablePromise<Subnet>;
|
|
2939
4264
|
/**
|
|
2940
4265
|
* List validators
|
|
2941
|
-
* 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.
|
|
2942
4267
|
* @returns ListValidatorDetailsResponse Successful response
|
|
2943
4268
|
* @throws ApiError
|
|
2944
4269
|
*/
|
|
@@ -2956,7 +4281,7 @@ declare class PrimaryNetworkService {
|
|
|
2956
4281
|
*/
|
|
2957
4282
|
pageSize?: number;
|
|
2958
4283
|
/**
|
|
2959
|
-
* A comma separated list of node ids to filter by.
|
|
4284
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
2960
4285
|
*/
|
|
2961
4286
|
nodeIds?: string;
|
|
2962
4287
|
/**
|
|
@@ -3078,6 +4403,39 @@ declare class PrimaryNetworkService {
|
|
|
3078
4403
|
*/
|
|
3079
4404
|
nodeIds?: string;
|
|
3080
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>;
|
|
3081
4439
|
}
|
|
3082
4440
|
|
|
3083
4441
|
declare enum BlockchainId {
|
|
@@ -3122,11 +4480,6 @@ type CChainAtomicBalances = {
|
|
|
3122
4480
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3123
4481
|
};
|
|
3124
4482
|
|
|
3125
|
-
declare enum PrimaryNetwork {
|
|
3126
|
-
MAINNET = "mainnet",
|
|
3127
|
-
FUJI = "fuji"
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
4483
|
declare enum PrimaryNetworkChainName {
|
|
3131
4484
|
P_CHAIN = "p-chain",
|
|
3132
4485
|
X_CHAIN = "x-chain",
|
|
@@ -3135,7 +4488,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3135
4488
|
|
|
3136
4489
|
type PrimaryNetworkChainInfo = {
|
|
3137
4490
|
chainName: PrimaryNetworkChainName;
|
|
3138
|
-
network:
|
|
4491
|
+
network: Network;
|
|
3139
4492
|
};
|
|
3140
4493
|
|
|
3141
4494
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3327,6 +4680,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3327
4680
|
txCount: number;
|
|
3328
4681
|
transactions: Array<string>;
|
|
3329
4682
|
blockSizeBytes: number;
|
|
4683
|
+
l1ValidatorsAccruedFees?: number;
|
|
4684
|
+
activeL1Validators?: number;
|
|
3330
4685
|
currentSupply?: string;
|
|
3331
4686
|
proposerDetails?: ProposerDetails;
|
|
3332
4687
|
};
|
|
@@ -3340,6 +4695,8 @@ type PrimaryNetworkBlock = {
|
|
|
3340
4695
|
txCount: number;
|
|
3341
4696
|
transactions: Array<string>;
|
|
3342
4697
|
blockSizeBytes: number;
|
|
4698
|
+
l1ValidatorsAccruedFees?: number;
|
|
4699
|
+
activeL1Validators?: number;
|
|
3343
4700
|
currentSupply?: string;
|
|
3344
4701
|
proposerDetails?: ProposerDetails;
|
|
3345
4702
|
};
|
|
@@ -3382,7 +4739,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3382
4739
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3383
4740
|
* @throws ApiError
|
|
3384
4741
|
*/
|
|
3385
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4742
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3386
4743
|
/**
|
|
3387
4744
|
* A primary network blockchain id or alias.
|
|
3388
4745
|
*/
|
|
@@ -3395,6 +4752,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3395
4752
|
* A primary network (P or X chain) nodeId.
|
|
3396
4753
|
*/
|
|
3397
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;
|
|
3398
4763
|
/**
|
|
3399
4764
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3400
4765
|
*/
|
|
@@ -3410,7 +4775,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3410
4775
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3411
4776
|
* @throws ApiError
|
|
3412
4777
|
*/
|
|
3413
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4778
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3414
4779
|
/**
|
|
3415
4780
|
* A primary network blockchain id or alias.
|
|
3416
4781
|
*/
|
|
@@ -3419,6 +4784,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3419
4784
|
* Either mainnet or testnet/fuji.
|
|
3420
4785
|
*/
|
|
3421
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;
|
|
3422
4795
|
/**
|
|
3423
4796
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3424
4797
|
*/
|
|
@@ -3660,6 +5033,10 @@ type Utxo = {
|
|
|
3660
5033
|
* UTXO ID for this output.
|
|
3661
5034
|
*/
|
|
3662
5035
|
utxoId: string;
|
|
5036
|
+
/**
|
|
5037
|
+
* The bytes of the UTXO
|
|
5038
|
+
*/
|
|
5039
|
+
utxoBytes?: string;
|
|
3663
5040
|
/**
|
|
3664
5041
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3665
5042
|
*/
|
|
@@ -3821,11 +5198,46 @@ declare namespace CChainImportTransaction {
|
|
|
3821
5198
|
|
|
3822
5199
|
type ListCChainAtomicTransactionsResponse = {
|
|
3823
5200
|
/**
|
|
3824
|
-
* 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.
|
|
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
|
|
5230
|
+
*/
|
|
5231
|
+
weight: number;
|
|
5232
|
+
/**
|
|
5233
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5234
|
+
*/
|
|
5235
|
+
remainingBalance: number;
|
|
5236
|
+
/**
|
|
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
|
|
3825
5238
|
*/
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
chainInfo: PrimaryNetworkChainInfo;
|
|
5239
|
+
balanceChange?: number;
|
|
5240
|
+
blsCredentials?: Record<string, any>;
|
|
3829
5241
|
};
|
|
3830
5242
|
|
|
3831
5243
|
declare enum PChainTransactionType {
|
|
@@ -3844,9 +5256,17 @@ declare enum PChainTransactionType {
|
|
|
3844
5256
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3845
5257
|
BASE_TX = "BaseTx",
|
|
3846
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",
|
|
3847
5264
|
UNKNOWN = "UNKNOWN"
|
|
3848
5265
|
}
|
|
3849
5266
|
|
|
5267
|
+
/**
|
|
5268
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5269
|
+
*/
|
|
3850
5270
|
declare enum UtxoType {
|
|
3851
5271
|
STAKE = "STAKE",
|
|
3852
5272
|
TRANSFER = "TRANSFER"
|
|
@@ -3874,6 +5294,10 @@ type PChainUtxo = {
|
|
|
3874
5294
|
* UTXO ID for this output.
|
|
3875
5295
|
*/
|
|
3876
5296
|
utxoId: string;
|
|
5297
|
+
/**
|
|
5298
|
+
* The bytes of the UTXO
|
|
5299
|
+
*/
|
|
5300
|
+
utxoBytes?: string;
|
|
3877
5301
|
/**
|
|
3878
5302
|
* @deprecated
|
|
3879
5303
|
*/
|
|
@@ -3884,16 +5308,43 @@ type PChainUtxo = {
|
|
|
3884
5308
|
assetId: string;
|
|
3885
5309
|
blockNumber: string;
|
|
3886
5310
|
blockTimestamp: number;
|
|
5311
|
+
/**
|
|
5312
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5313
|
+
*/
|
|
3887
5314
|
consumingBlockNumber?: string;
|
|
5315
|
+
/**
|
|
5316
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5317
|
+
*/
|
|
3888
5318
|
consumingBlockTimestamp?: number;
|
|
5319
|
+
/**
|
|
5320
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5321
|
+
*/
|
|
3889
5322
|
platformLocktime?: number;
|
|
5323
|
+
/**
|
|
5324
|
+
* The index of the UTXO in the transaction
|
|
5325
|
+
*/
|
|
3890
5326
|
outputIndex: number;
|
|
3891
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
|
+
*/
|
|
3892
5331
|
stakeableLocktime?: number;
|
|
3893
5332
|
staked?: boolean;
|
|
5333
|
+
/**
|
|
5334
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5335
|
+
*/
|
|
3894
5336
|
threshold?: number;
|
|
5337
|
+
/**
|
|
5338
|
+
* The hash of the transaction that created this UTXO
|
|
5339
|
+
*/
|
|
3895
5340
|
txHash: string;
|
|
5341
|
+
/**
|
|
5342
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5343
|
+
*/
|
|
3896
5344
|
utxoEndTimestamp?: number;
|
|
5345
|
+
/**
|
|
5346
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5347
|
+
*/
|
|
3897
5348
|
utxoStartTimestamp?: number;
|
|
3898
5349
|
utxoType: UtxoType;
|
|
3899
5350
|
};
|
|
@@ -3905,12 +5356,21 @@ type PChainTransaction = {
|
|
|
3905
5356
|
txHash: string;
|
|
3906
5357
|
txType: PChainTransactionType;
|
|
3907
5358
|
/**
|
|
3908
|
-
* The block
|
|
5359
|
+
* The block creation (proposal) timestamp in seconds
|
|
3909
5360
|
*/
|
|
3910
5361
|
blockTimestamp: number;
|
|
5362
|
+
/**
|
|
5363
|
+
* The height of the block in which the transaction was included
|
|
5364
|
+
*/
|
|
3911
5365
|
blockNumber: string;
|
|
3912
5366
|
blockHash: string;
|
|
5367
|
+
/**
|
|
5368
|
+
* The consumed UTXOs of the transaction
|
|
5369
|
+
*/
|
|
3913
5370
|
consumedUtxos: Array<PChainUtxo>;
|
|
5371
|
+
/**
|
|
5372
|
+
* The newly created UTXOs of the transaction
|
|
5373
|
+
*/
|
|
3914
5374
|
emittedUtxos: Array<PChainUtxo>;
|
|
3915
5375
|
/**
|
|
3916
5376
|
* Source chain for an atomic transaction.
|
|
@@ -3921,17 +5381,21 @@ type PChainTransaction = {
|
|
|
3921
5381
|
*/
|
|
3922
5382
|
destinationChain?: string;
|
|
3923
5383
|
/**
|
|
3924
|
-
* 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
|
|
3925
5385
|
*/
|
|
3926
5386
|
value: Array<AssetAmount>;
|
|
3927
5387
|
/**
|
|
3928
|
-
* 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
|
|
3929
5389
|
*/
|
|
3930
5390
|
amountBurned: Array<AssetAmount>;
|
|
3931
5391
|
/**
|
|
3932
5392
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3933
5393
|
*/
|
|
3934
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>;
|
|
3935
5399
|
/**
|
|
3936
5400
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3937
5401
|
*/
|
|
@@ -3941,11 +5405,11 @@ type PChainTransaction = {
|
|
|
3941
5405
|
*/
|
|
3942
5406
|
endTimestamp?: number;
|
|
3943
5407
|
/**
|
|
3944
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5408
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3945
5409
|
*/
|
|
3946
5410
|
delegationFeePercent?: string;
|
|
3947
5411
|
/**
|
|
3948
|
-
* 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
|
|
3949
5413
|
*/
|
|
3950
5414
|
nodeId?: string;
|
|
3951
5415
|
/**
|
|
@@ -3953,14 +5417,25 @@ type PChainTransaction = {
|
|
|
3953
5417
|
*/
|
|
3954
5418
|
subnetId?: string;
|
|
3955
5419
|
/**
|
|
3956
|
-
* 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
|
|
3957
5429
|
*/
|
|
3958
5430
|
estimatedReward?: string;
|
|
5431
|
+
/**
|
|
5432
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5433
|
+
*/
|
|
3959
5434
|
rewardTxHash?: string;
|
|
3960
5435
|
rewardAddresses?: Array<string>;
|
|
3961
5436
|
memo?: string;
|
|
3962
5437
|
/**
|
|
3963
|
-
*
|
|
5438
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3964
5439
|
*/
|
|
3965
5440
|
stakingTxHash?: string;
|
|
3966
5441
|
/**
|
|
@@ -3968,9 +5443,13 @@ type PChainTransaction = {
|
|
|
3968
5443
|
*/
|
|
3969
5444
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3970
5445
|
/**
|
|
3971
|
-
* Present for AddPermissionlessValidatorTx
|
|
5446
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3972
5447
|
*/
|
|
3973
5448
|
blsCredentials?: BlsCredentials;
|
|
5449
|
+
/**
|
|
5450
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5451
|
+
*/
|
|
5452
|
+
blockchainInfo?: BlockchainInfo;
|
|
3974
5453
|
};
|
|
3975
5454
|
|
|
3976
5455
|
type ListPChainTransactionsResponse = {
|
|
@@ -4153,6 +5632,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4153
5632
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4154
5633
|
BASE_TX = "BaseTx",
|
|
4155
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",
|
|
4156
5640
|
UNKNOWN = "UNKNOWN",
|
|
4157
5641
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4158
5642
|
OPERATION_TX = "OperationTx"
|
|
@@ -4187,15 +5671,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4187
5671
|
*
|
|
4188
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.
|
|
4189
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
|
+
*
|
|
4190
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.
|
|
4191
5677
|
* @returns any Successful response
|
|
4192
5678
|
* @throws ApiError
|
|
4193
5679
|
*/
|
|
4194
|
-
listLatestPrimaryNetworkTransactions({
|
|
4195
|
-
/**
|
|
4196
|
-
* 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.
|
|
4197
|
-
*/
|
|
4198
|
-
addresses: string;
|
|
5680
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4199
5681
|
/**
|
|
4200
5682
|
* A primary network blockchain id or alias.
|
|
4201
5683
|
*/
|
|
@@ -4204,6 +5686,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4204
5686
|
* Either mainnet or testnet/fuji.
|
|
4205
5687
|
*/
|
|
4206
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;
|
|
4207
5694
|
/**
|
|
4208
5695
|
* Query param for filtering items based on transaction types.
|
|
4209
5696
|
*/
|
|
@@ -4333,6 +5820,18 @@ type ListUtxosResponse = {
|
|
|
4333
5820
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4334
5821
|
};
|
|
4335
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
|
+
|
|
4336
5835
|
declare class PrimaryNetworkUtxOsService {
|
|
4337
5836
|
readonly httpRequest: BaseHttpRequest;
|
|
4338
5837
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4342,7 +5841,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4342
5841
|
* @returns any Successful response
|
|
4343
5842
|
* @throws ApiError
|
|
4344
5843
|
*/
|
|
4345
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5844
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4346
5845
|
/**
|
|
4347
5846
|
* A primary network blockchain id or alias.
|
|
4348
5847
|
*/
|
|
@@ -4367,10 +5866,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4367
5866
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4368
5867
|
*/
|
|
4369
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;
|
|
4370
5918
|
/**
|
|
4371
5919
|
* Boolean filter to include spent UTXOs.
|
|
4372
5920
|
*/
|
|
4373
5921
|
includeSpent?: boolean;
|
|
5922
|
+
/**
|
|
5923
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5924
|
+
*/
|
|
5925
|
+
sortBy?: UtxosSortByOption;
|
|
4374
5926
|
/**
|
|
4375
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.
|
|
4376
5928
|
*/
|
|
@@ -4479,72 +6031,69 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4479
6031
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4480
6032
|
}
|
|
4481
6033
|
|
|
4482
|
-
type
|
|
4483
|
-
|
|
4484
|
-
message: string;
|
|
4485
|
-
data?: Record<string, any>;
|
|
4486
|
-
};
|
|
4487
|
-
|
|
4488
|
-
type RpcErrorResponseDto = {
|
|
4489
|
-
jsonrpc: string;
|
|
4490
|
-
id?: (string | number);
|
|
4491
|
-
error: RpcErrorDto;
|
|
6034
|
+
type SignatureAggregationResponse = {
|
|
6035
|
+
signedMessage: string;
|
|
4492
6036
|
};
|
|
4493
6037
|
|
|
4494
|
-
type RpcRequestBodyDto = {
|
|
4495
|
-
method: string;
|
|
4496
|
-
params?: Record<string, any>;
|
|
4497
|
-
id?: (string | number);
|
|
4498
|
-
jsonrpc?: string;
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
type RpcSuccessResponseDto = {
|
|
4502
|
-
jsonrpc: string;
|
|
4503
|
-
id?: (string | number);
|
|
4504
|
-
result: Record<string, any>;
|
|
4505
|
-
};
|
|
4506
|
-
|
|
4507
|
-
declare class RpcService {
|
|
4508
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4509
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4510
|
-
/**
|
|
4511
|
-
* Calls JSON-RPC method
|
|
4512
|
-
* Calls JSON-RPC method.
|
|
4513
|
-
* @returns any Successful response
|
|
4514
|
-
* @throws ApiError
|
|
4515
|
-
*/
|
|
4516
|
-
rpc({ chainId, requestBody, }: {
|
|
4517
|
-
/**
|
|
4518
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4519
|
-
*/
|
|
4520
|
-
chainId: string;
|
|
4521
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4522
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4523
|
-
}
|
|
4524
|
-
|
|
4525
6038
|
type SignatureAggregatorRequest = {
|
|
4526
6039
|
/**
|
|
4527
|
-
*
|
|
6040
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4528
6041
|
*/
|
|
4529
6042
|
message?: string;
|
|
4530
6043
|
/**
|
|
4531
|
-
*
|
|
6044
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4532
6045
|
*/
|
|
4533
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
|
+
*/
|
|
4534
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
|
+
*/
|
|
4535
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;
|
|
4536
6063
|
};
|
|
4537
6064
|
|
|
4538
6065
|
declare class SignatureAggregatorService {
|
|
4539
6066
|
readonly httpRequest: BaseHttpRequest;
|
|
4540
6067
|
constructor(httpRequest: BaseHttpRequest);
|
|
4541
6068
|
/**
|
|
4542
|
-
*
|
|
6069
|
+
* Aggregate Signatures
|
|
6070
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
6071
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4543
6072
|
* @throws ApiError
|
|
4544
6073
|
*/
|
|
4545
|
-
|
|
6074
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6075
|
+
/**
|
|
6076
|
+
* Either mainnet or testnet/fuji.
|
|
6077
|
+
*/
|
|
6078
|
+
network: Network;
|
|
4546
6079
|
requestBody: SignatureAggregatorRequest;
|
|
4547
|
-
}): CancelablePromise<
|
|
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>;
|
|
4548
6097
|
}
|
|
4549
6098
|
|
|
4550
6099
|
type TeleporterDestinationTransaction = {
|
|
@@ -4678,15 +6227,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4678
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.
|
|
4679
6228
|
*/
|
|
4680
6229
|
nextPageToken?: string;
|
|
4681
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6230
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4682
6231
|
};
|
|
4683
6232
|
|
|
4684
6233
|
declare class TeleporterService {
|
|
4685
6234
|
readonly httpRequest: BaseHttpRequest;
|
|
4686
6235
|
constructor(httpRequest: BaseHttpRequest);
|
|
4687
6236
|
/**
|
|
4688
|
-
*
|
|
4689
|
-
* 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** .
|
|
4690
6241
|
* @returns any Successful response
|
|
4691
6242
|
* @throws ApiError
|
|
4692
6243
|
*/
|
|
@@ -4697,8 +6248,10 @@ declare class TeleporterService {
|
|
|
4697
6248
|
messageId: string;
|
|
4698
6249
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4699
6250
|
/**
|
|
4700
|
-
*
|
|
4701
|
-
* 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** .
|
|
4702
6255
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4703
6256
|
* @throws ApiError
|
|
4704
6257
|
*/
|
|
@@ -4737,8 +6290,10 @@ declare class TeleporterService {
|
|
|
4737
6290
|
network?: Network;
|
|
4738
6291
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4739
6292
|
/**
|
|
4740
|
-
*
|
|
4741
|
-
* 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** .
|
|
4742
6297
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4743
6298
|
* @throws ApiError
|
|
4744
6299
|
*/
|
|
@@ -4771,68 +6326,212 @@ type AddressesChangeRequest = {
|
|
|
4771
6326
|
|
|
4772
6327
|
type AddressActivityMetadata = {
|
|
4773
6328
|
/**
|
|
4774
|
-
*
|
|
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.
|
|
4775
6334
|
*/
|
|
4776
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;
|
|
4777
6345
|
/**
|
|
4778
|
-
*
|
|
6346
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4779
6347
|
*/
|
|
4780
|
-
|
|
6348
|
+
includeInternalTxs?: boolean;
|
|
6349
|
+
/**
|
|
6350
|
+
* Whether to include logs in the webhook payload.
|
|
6351
|
+
*/
|
|
6352
|
+
includeLogs?: boolean;
|
|
4781
6353
|
};
|
|
6354
|
+
declare namespace EVMAddressActivityRequest {
|
|
6355
|
+
enum eventType {
|
|
6356
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6357
|
+
}
|
|
6358
|
+
}
|
|
4782
6359
|
|
|
4783
|
-
declare enum
|
|
6360
|
+
declare enum AddressActivityEventType {
|
|
4784
6361
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4785
6362
|
}
|
|
4786
6363
|
|
|
4787
|
-
|
|
6364
|
+
declare enum WebhookStatusType {
|
|
6365
|
+
ACTIVE = "active",
|
|
6366
|
+
INACTIVE = "inactive"
|
|
6367
|
+
}
|
|
6368
|
+
|
|
6369
|
+
type EVMAddressActivityResponse = {
|
|
6370
|
+
id: string;
|
|
4788
6371
|
url: string;
|
|
4789
6372
|
chainId: string;
|
|
4790
|
-
|
|
6373
|
+
status: WebhookStatusType;
|
|
6374
|
+
createdAt: number;
|
|
6375
|
+
name: string;
|
|
6376
|
+
description: string;
|
|
6377
|
+
eventType: AddressActivityEventType;
|
|
4791
6378
|
metadata: AddressActivityMetadata;
|
|
4792
|
-
name?: string;
|
|
4793
|
-
description?: string;
|
|
4794
6379
|
/**
|
|
4795
6380
|
* Whether to include traces in the webhook payload.
|
|
4796
6381
|
*/
|
|
4797
|
-
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>;
|
|
4798
6507
|
/**
|
|
4799
|
-
*
|
|
6508
|
+
* Sub-events to monitor
|
|
4800
6509
|
*/
|
|
4801
|
-
|
|
4802
|
-
};
|
|
4803
|
-
|
|
4804
|
-
type ListWebhookAddressesResponse = {
|
|
6510
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4805
6511
|
/**
|
|
4806
|
-
*
|
|
6512
|
+
* Array of node IDs to filter the events
|
|
4807
6513
|
*/
|
|
4808
|
-
|
|
4809
|
-
addresses: Array<string>;
|
|
4810
|
-
totalAddresses: number;
|
|
4811
|
-
};
|
|
4812
|
-
|
|
4813
|
-
declare enum WebhookStatusType {
|
|
4814
|
-
ACTIVE = "active",
|
|
4815
|
-
INACTIVE = "inactive"
|
|
4816
|
-
}
|
|
4817
|
-
|
|
4818
|
-
type WebhookResponse = {
|
|
4819
|
-
id: string;
|
|
4820
|
-
eventType: EventType;
|
|
4821
|
-
metadata: AddressActivityMetadata;
|
|
6514
|
+
nodeIds?: Array<string>;
|
|
4822
6515
|
/**
|
|
4823
|
-
*
|
|
6516
|
+
* Array of subnet IDs to filter the events
|
|
4824
6517
|
*/
|
|
4825
|
-
|
|
6518
|
+
subnetIds?: Array<string>;
|
|
4826
6519
|
/**
|
|
4827
|
-
*
|
|
6520
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4828
6521
|
*/
|
|
4829
|
-
|
|
6522
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6523
|
+
};
|
|
6524
|
+
|
|
6525
|
+
type ValidatorActivityResponse = {
|
|
6526
|
+
id: string;
|
|
4830
6527
|
url: string;
|
|
4831
6528
|
chainId: string;
|
|
4832
6529
|
status: WebhookStatusType;
|
|
4833
6530
|
createdAt: number;
|
|
4834
6531
|
name: string;
|
|
4835
6532
|
description: string;
|
|
6533
|
+
eventType: ValidatorActivityEventType;
|
|
6534
|
+
metadata: ValidatorActivityMetadata;
|
|
4836
6535
|
};
|
|
4837
6536
|
|
|
4838
6537
|
type ListWebhooksResponse = {
|
|
@@ -4840,8 +6539,31 @@ type ListWebhooksResponse = {
|
|
|
4840
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.
|
|
4841
6540
|
*/
|
|
4842
6541
|
nextPageToken?: string;
|
|
4843
|
-
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;
|
|
4844
6561
|
};
|
|
6562
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6563
|
+
enum eventType {
|
|
6564
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
4845
6567
|
|
|
4846
6568
|
type SharedSecretsResponse = {
|
|
4847
6569
|
secret: string;
|
|
@@ -4852,10 +6574,30 @@ type UpdateWebhookRequest = {
|
|
|
4852
6574
|
description?: string;
|
|
4853
6575
|
url?: string;
|
|
4854
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
|
+
*/
|
|
4855
6580
|
includeInternalTxs?: boolean;
|
|
4856
6581
|
includeLogs?: boolean;
|
|
4857
6582
|
};
|
|
4858
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
|
+
|
|
4859
6601
|
declare enum WebhookStatus {
|
|
4860
6602
|
ACTIVE = "active",
|
|
4861
6603
|
INACTIVE = "inactive"
|
|
@@ -4867,12 +6609,12 @@ declare class WebhooksService {
|
|
|
4867
6609
|
/**
|
|
4868
6610
|
* Create a webhook
|
|
4869
6611
|
* Create a new webhook.
|
|
4870
|
-
* @returns
|
|
6612
|
+
* @returns any Successful response
|
|
4871
6613
|
* @throws ApiError
|
|
4872
6614
|
*/
|
|
4873
6615
|
createWebhook({ requestBody, }: {
|
|
4874
|
-
requestBody:
|
|
4875
|
-
}): CancelablePromise<
|
|
6616
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6617
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4876
6618
|
/**
|
|
4877
6619
|
* List webhooks
|
|
4878
6620
|
* Lists webhooks for the user.
|
|
@@ -4896,7 +6638,7 @@ declare class WebhooksService {
|
|
|
4896
6638
|
/**
|
|
4897
6639
|
* Get a webhook by ID
|
|
4898
6640
|
* Retrieves a webhook by ID.
|
|
4899
|
-
* @returns
|
|
6641
|
+
* @returns any Successful response
|
|
4900
6642
|
* @throws ApiError
|
|
4901
6643
|
*/
|
|
4902
6644
|
getWebhook({ id, }: {
|
|
@@ -4904,11 +6646,11 @@ declare class WebhooksService {
|
|
|
4904
6646
|
* The webhook identifier.
|
|
4905
6647
|
*/
|
|
4906
6648
|
id: string;
|
|
4907
|
-
}): CancelablePromise<
|
|
6649
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4908
6650
|
/**
|
|
4909
6651
|
* Deactivate a webhook
|
|
4910
6652
|
* Deactivates a webhook by ID.
|
|
4911
|
-
* @returns
|
|
6653
|
+
* @returns any Successful response
|
|
4912
6654
|
* @throws ApiError
|
|
4913
6655
|
*/
|
|
4914
6656
|
deactivateWebhook({ id, }: {
|
|
@@ -4916,11 +6658,11 @@ declare class WebhooksService {
|
|
|
4916
6658
|
* The webhook identifier.
|
|
4917
6659
|
*/
|
|
4918
6660
|
id: string;
|
|
4919
|
-
}): CancelablePromise<
|
|
6661
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4920
6662
|
/**
|
|
4921
6663
|
* Update a webhook
|
|
4922
6664
|
* Updates an existing webhook.
|
|
4923
|
-
* @returns
|
|
6665
|
+
* @returns any Successful response
|
|
4924
6666
|
* @throws ApiError
|
|
4925
6667
|
*/
|
|
4926
6668
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4929,14 +6671,14 @@ declare class WebhooksService {
|
|
|
4929
6671
|
*/
|
|
4930
6672
|
id: string;
|
|
4931
6673
|
requestBody: UpdateWebhookRequest;
|
|
4932
|
-
}): CancelablePromise<
|
|
6674
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4933
6675
|
/**
|
|
4934
|
-
* Generate a shared secret
|
|
4935
|
-
* Generates a new shared secret.
|
|
6676
|
+
* Generate or rotate a shared secret
|
|
6677
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4936
6678
|
* @returns SharedSecretsResponse Successful response
|
|
4937
6679
|
* @throws ApiError
|
|
4938
6680
|
*/
|
|
4939
|
-
|
|
6681
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4940
6682
|
/**
|
|
4941
6683
|
* Get a shared secret
|
|
4942
6684
|
* Get a previously generated shared secret.
|
|
@@ -4945,9 +6687,9 @@ declare class WebhooksService {
|
|
|
4945
6687
|
*/
|
|
4946
6688
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4947
6689
|
/**
|
|
4948
|
-
* Add addresses to webhook
|
|
4949
|
-
* Add addresses to webhook.
|
|
4950
|
-
* @returns
|
|
6690
|
+
* Add addresses to EVM activity webhook
|
|
6691
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6692
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4951
6693
|
* @throws ApiError
|
|
4952
6694
|
*/
|
|
4953
6695
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4956,11 +6698,11 @@ declare class WebhooksService {
|
|
|
4956
6698
|
*/
|
|
4957
6699
|
id: string;
|
|
4958
6700
|
requestBody: AddressesChangeRequest;
|
|
4959
|
-
}): CancelablePromise<
|
|
6701
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4960
6702
|
/**
|
|
4961
|
-
* Remove addresses from webhook
|
|
4962
|
-
* Remove addresses from webhook.
|
|
4963
|
-
* @returns
|
|
6703
|
+
* Remove addresses from EVM activity webhook
|
|
6704
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6705
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4964
6706
|
* @throws ApiError
|
|
4965
6707
|
*/
|
|
4966
6708
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4969,10 +6711,10 @@ declare class WebhooksService {
|
|
|
4969
6711
|
*/
|
|
4970
6712
|
id: string;
|
|
4971
6713
|
requestBody: AddressesChangeRequest;
|
|
4972
|
-
}): CancelablePromise<
|
|
6714
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4973
6715
|
/**
|
|
4974
|
-
* List adresses by
|
|
4975
|
-
* List adresses by webhook.
|
|
6716
|
+
* List adresses by EVM activity webhooks
|
|
6717
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
4976
6718
|
* @returns ListWebhookAddressesResponse Successful response
|
|
4977
6719
|
* @throws ApiError
|
|
4978
6720
|
*/
|
|
@@ -4994,6 +6736,7 @@ declare class WebhooksService {
|
|
|
4994
6736
|
|
|
4995
6737
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4996
6738
|
declare class Glacier {
|
|
6739
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
4997
6740
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
4998
6741
|
readonly default: DefaultService;
|
|
4999
6742
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5002,7 +6745,9 @@ declare class Glacier {
|
|
|
5002
6745
|
readonly evmContracts: EvmContractsService;
|
|
5003
6746
|
readonly evmTransactions: EvmTransactionsService;
|
|
5004
6747
|
readonly healthCheck: HealthCheckService;
|
|
6748
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5005
6749
|
readonly nfTs: NfTsService;
|
|
6750
|
+
readonly notifications: NotificationsService;
|
|
5006
6751
|
readonly operations: OperationsService;
|
|
5007
6752
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5008
6753
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5011,7 +6756,6 @@ declare class Glacier {
|
|
|
5011
6756
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5012
6757
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5013
6758
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5014
|
-
readonly rpc: RpcService;
|
|
5015
6759
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5016
6760
|
readonly teleporter: TeleporterService;
|
|
5017
6761
|
readonly webhooks: WebhooksService;
|
|
@@ -5036,6 +6780,17 @@ declare class ApiError extends Error {
|
|
|
5036
6780
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5037
6781
|
}
|
|
5038
6782
|
|
|
6783
|
+
type AccessListData = {
|
|
6784
|
+
/**
|
|
6785
|
+
* Access Address
|
|
6786
|
+
*/
|
|
6787
|
+
accessAddresses: string;
|
|
6788
|
+
/**
|
|
6789
|
+
* Storage keys
|
|
6790
|
+
*/
|
|
6791
|
+
storageKeys: Array<string>;
|
|
6792
|
+
};
|
|
6793
|
+
|
|
5039
6794
|
type BadGateway = {
|
|
5040
6795
|
/**
|
|
5041
6796
|
* The error message describing the reason for the exception
|
|
@@ -5070,6 +6825,76 @@ type DataListChainsResponse = {
|
|
|
5070
6825
|
chains: Array<ChainInfo>;
|
|
5071
6826
|
};
|
|
5072
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
|
+
|
|
5073
6898
|
type Forbidden = {
|
|
5074
6899
|
/**
|
|
5075
6900
|
* The error message describing the reason for the exception
|
|
@@ -5100,6 +6925,64 @@ type InternalServerError = {
|
|
|
5100
6925
|
error: string;
|
|
5101
6926
|
};
|
|
5102
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
|
+
|
|
5103
6986
|
type NextPageToken = {
|
|
5104
6987
|
/**
|
|
5105
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.
|
|
@@ -5152,6 +7035,163 @@ type TooManyRequests = {
|
|
|
5152
7035
|
error: string;
|
|
5153
7036
|
};
|
|
5154
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
|
+
|
|
5155
7195
|
type Unauthorized = {
|
|
5156
7196
|
/**
|
|
5157
7197
|
* The error message describing the reason for the exception
|
|
@@ -5167,4 +7207,43 @@ type Unauthorized = {
|
|
|
5167
7207
|
error: string;
|
|
5168
7208
|
};
|
|
5169
7209
|
|
|
5170
|
-
|
|
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 };
|