@avalabs/glacier-sdk 3.1.0-canary.924680f.0 → 3.1.0-canary.92a00bd.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2444 -417
- package/esm/generated/Glacier.d.ts +6 -0
- 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 +1 -1
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +9 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
- package/esm/generated/models/Erc20TokenV2.js +1 -0
- package/esm/generated/models/Erc20Transfer.d.ts +6 -2
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +6 -2
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +14 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -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 +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +6 -2
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +1 -1
- package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +1 -1
- 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 +5 -1
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +14 -2
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +27 -10
- 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 +1 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +22 -2
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +7 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +75 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +11 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +94 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +70 -4
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/EventType.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type AvaxSupplyResponse = {
|
|
58
|
+
/**
|
|
59
|
+
* The circulating supply of AVAX.
|
|
60
|
+
*/
|
|
61
|
+
circulatingSupply: string;
|
|
62
|
+
/**
|
|
63
|
+
* The total supply of AVAX.
|
|
64
|
+
*/
|
|
65
|
+
totalSupply: string;
|
|
66
|
+
/**
|
|
67
|
+
* Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
|
|
72
|
+
*/
|
|
73
|
+
totalCBurned: string;
|
|
74
|
+
/**
|
|
75
|
+
* The total X-chain burned fees of AVAX.
|
|
76
|
+
*/
|
|
77
|
+
totalXBurned: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total staked AVAX.
|
|
80
|
+
*/
|
|
81
|
+
totalStaked: string;
|
|
82
|
+
/**
|
|
83
|
+
* The total locked AVAX.
|
|
84
|
+
*/
|
|
85
|
+
totalLocked: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total rewards AVAX.
|
|
88
|
+
*/
|
|
89
|
+
totalRewards: string;
|
|
90
|
+
/**
|
|
91
|
+
* The last updated time of the AVAX supply.
|
|
92
|
+
*/
|
|
93
|
+
lastUpdated: string;
|
|
94
|
+
/**
|
|
95
|
+
* The genesis unlock amount of the AVAX supply.
|
|
96
|
+
*/
|
|
97
|
+
genesisUnlock: string;
|
|
98
|
+
/**
|
|
99
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare class AvaxSupplyService {
|
|
105
|
+
readonly httpRequest: BaseHttpRequest;
|
|
106
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
107
|
+
/**
|
|
108
|
+
* Get AVAX supply information
|
|
109
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
57
116
|
type LogsFormatMetadata = {
|
|
58
117
|
/**
|
|
59
118
|
* The IP address of the client that made the request.
|
|
@@ -148,6 +207,28 @@ type LogsResponseDTO = {
|
|
|
148
207
|
logs: Array<LogsFormat>;
|
|
149
208
|
};
|
|
150
209
|
|
|
210
|
+
declare enum Network {
|
|
211
|
+
MAINNET = "mainnet",
|
|
212
|
+
FUJI = "fuji",
|
|
213
|
+
TESTNET = "testnet"
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
218
|
+
REQUEST_PATH = "requestPath",
|
|
219
|
+
RESPONSE_CODE = "responseCode",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent"
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
226
|
+
HOURLY = "hourly",
|
|
227
|
+
DAILY = "daily",
|
|
228
|
+
WEEKLY = "weekly",
|
|
229
|
+
MONTHLY = "monthly"
|
|
230
|
+
}
|
|
231
|
+
|
|
151
232
|
type RpcUsageMetricsValueAggregated = {
|
|
152
233
|
/**
|
|
153
234
|
* The total number of requests
|
|
@@ -173,6 +254,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
254
|
* The number of invalid requests
|
|
174
255
|
*/
|
|
175
256
|
invalidRequests: number;
|
|
257
|
+
/**
|
|
258
|
+
* The number of API credits wasted on invalid requests
|
|
259
|
+
*/
|
|
260
|
+
apiCreditsWasted: number;
|
|
176
261
|
/**
|
|
177
262
|
* Column name used for data aggregation
|
|
178
263
|
*/
|
|
@@ -190,6 +275,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
275
|
RPC_METHOD = "rpcMethod",
|
|
191
276
|
RESPONSE_CODE = "responseCode",
|
|
192
277
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
278
|
+
REQUEST_PATH = "requestPath",
|
|
279
|
+
COUNTRY = "country",
|
|
280
|
+
CONTINENT = "continent",
|
|
281
|
+
USER_AGENT = "userAgent",
|
|
193
282
|
NONE = "None"
|
|
194
283
|
}
|
|
195
284
|
}
|
|
@@ -205,19 +294,56 @@ type RpcMetrics = {
|
|
|
205
294
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
295
|
};
|
|
207
296
|
|
|
208
|
-
type
|
|
297
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
298
|
/**
|
|
210
299
|
* Duration in which the metrics value is aggregated
|
|
211
300
|
*/
|
|
212
301
|
aggregateDuration: string;
|
|
213
302
|
/**
|
|
214
|
-
*
|
|
303
|
+
* Metrics values
|
|
215
304
|
*/
|
|
216
|
-
|
|
305
|
+
metrics: Array<RpcMetrics>;
|
|
306
|
+
/**
|
|
307
|
+
* Network type for which the metrics are aggregated
|
|
308
|
+
*/
|
|
309
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
310
|
+
};
|
|
311
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
312
|
+
/**
|
|
313
|
+
* Network type for which the metrics are aggregated
|
|
314
|
+
*/
|
|
315
|
+
enum network {
|
|
316
|
+
MAINNET = "mainnet",
|
|
317
|
+
TESTNET = "testnet"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
322
|
+
RPC_METHOD = "rpcMethod",
|
|
323
|
+
RESPONSE_CODE = "responseCode",
|
|
324
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
328
|
+
HOURLY = "hourly",
|
|
329
|
+
DAILY = "daily",
|
|
330
|
+
WEEKLY = "weekly",
|
|
331
|
+
MONTHLY = "monthly"
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
335
|
+
/**
|
|
336
|
+
* Duration in which the metrics value is aggregated
|
|
337
|
+
*/
|
|
338
|
+
aggregateDuration: string;
|
|
217
339
|
/**
|
|
218
340
|
* Metrics values
|
|
219
341
|
*/
|
|
220
342
|
metrics: Array<RpcMetrics>;
|
|
343
|
+
/**
|
|
344
|
+
* ChainId for which the metrics are aggregated
|
|
345
|
+
*/
|
|
346
|
+
chainId: string;
|
|
221
347
|
};
|
|
222
348
|
|
|
223
349
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +449,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
449
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
450
|
* @throws ApiError
|
|
325
451
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
452
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
453
|
/**
|
|
328
454
|
* Organization ID to fetch usage metrics for
|
|
329
455
|
*/
|
|
@@ -348,10 +474,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
474
|
* Filter data by chain ID.
|
|
349
475
|
*/
|
|
350
476
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
477
|
/**
|
|
356
478
|
* Filter data by response status code.
|
|
357
479
|
*/
|
|
@@ -364,6 +486,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
486
|
* Filter data by API key ID.
|
|
365
487
|
*/
|
|
366
488
|
apiKeyId?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Filter data by request path.
|
|
491
|
+
*/
|
|
492
|
+
requestPath?: string;
|
|
367
493
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
494
|
/**
|
|
369
495
|
* Get logs for requests made by client
|
|
@@ -371,7 +497,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
497
|
* @returns LogsResponseDTO Successful response
|
|
372
498
|
* @throws ApiError
|
|
373
499
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
500
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
501
|
/**
|
|
376
502
|
* Organization ID to fetch usage metrics for
|
|
377
503
|
*/
|
|
@@ -388,10 +514,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
514
|
* Filter data by chain ID.
|
|
389
515
|
*/
|
|
390
516
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
517
|
/**
|
|
396
518
|
* Filter data by response status code.
|
|
397
519
|
*/
|
|
@@ -404,6 +526,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
526
|
* Filter data by API key ID.
|
|
405
527
|
*/
|
|
406
528
|
apiKeyId?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by request path.
|
|
531
|
+
*/
|
|
532
|
+
requestPath?: string;
|
|
407
533
|
/**
|
|
408
534
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
535
|
*/
|
|
@@ -415,15 +541,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
541
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
542
|
/**
|
|
417
543
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
544
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
545
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
546
|
* @throws ApiError
|
|
421
547
|
*/
|
|
422
|
-
|
|
548
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
549
|
/**
|
|
424
|
-
*
|
|
550
|
+
* Time interval granularity for data aggregation for subnet
|
|
551
|
+
* rpc metrics
|
|
425
552
|
*/
|
|
426
|
-
timeInterval?:
|
|
553
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
554
|
/**
|
|
428
555
|
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
556
|
*/
|
|
@@ -435,15 +562,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
562
|
/**
|
|
436
563
|
* Query param for the criterion used for grouping metrics
|
|
437
564
|
*/
|
|
438
|
-
groupBy?:
|
|
565
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
566
|
/**
|
|
440
567
|
* Filter data by chain ID.
|
|
441
568
|
*/
|
|
442
569
|
chainId?: string;
|
|
443
570
|
/**
|
|
444
|
-
* Filter data by
|
|
571
|
+
* Filter data by response status code.
|
|
445
572
|
*/
|
|
446
|
-
|
|
573
|
+
responseCode?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Filter data by RPC method.
|
|
576
|
+
*/
|
|
577
|
+
rpcMethod?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Filter data by Rl Bypass API Token.
|
|
580
|
+
*/
|
|
581
|
+
rlBypassApiToken?: string;
|
|
582
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
583
|
+
/**
|
|
584
|
+
* @deprecated
|
|
585
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
586
|
+
*
|
|
587
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
588
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
589
|
+
* @throws ApiError
|
|
590
|
+
*/
|
|
591
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
592
|
+
/**
|
|
593
|
+
* Time interval granularity for data aggregation for subnet
|
|
594
|
+
* rpc metrics
|
|
595
|
+
*/
|
|
596
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
597
|
+
/**
|
|
598
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
599
|
+
*/
|
|
600
|
+
startTimestamp?: number;
|
|
601
|
+
/**
|
|
602
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
603
|
+
*/
|
|
604
|
+
endTimestamp?: number;
|
|
605
|
+
/**
|
|
606
|
+
* Query param for the criterion used for grouping metrics
|
|
607
|
+
*/
|
|
608
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
609
|
+
/**
|
|
610
|
+
* Filter data by chain ID.
|
|
611
|
+
*/
|
|
612
|
+
chainId?: string;
|
|
447
613
|
/**
|
|
448
614
|
* Filter data by response status code.
|
|
449
615
|
*/
|
|
@@ -456,7 +622,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
622
|
* Filter data by Rl Bypass API Token.
|
|
457
623
|
*/
|
|
458
624
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
625
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
626
|
+
/**
|
|
627
|
+
* Get usage metrics for the Primary Network RPC
|
|
628
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
629
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
630
|
+
* @throws ApiError
|
|
631
|
+
*/
|
|
632
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
633
|
+
/**
|
|
634
|
+
* Either mainnet or testnet/fuji.
|
|
635
|
+
*/
|
|
636
|
+
network: Network;
|
|
637
|
+
/**
|
|
638
|
+
* Time interval granularity for data aggregation for subnet
|
|
639
|
+
* rpc metrics
|
|
640
|
+
*/
|
|
641
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
642
|
+
/**
|
|
643
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
644
|
+
*/
|
|
645
|
+
startTimestamp?: number;
|
|
646
|
+
/**
|
|
647
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
648
|
+
*/
|
|
649
|
+
endTimestamp?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Query param for the criterion used for grouping metrics
|
|
652
|
+
*/
|
|
653
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
654
|
+
/**
|
|
655
|
+
* Filter data by response status code.
|
|
656
|
+
*/
|
|
657
|
+
responseCode?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Filter data by request path.
|
|
660
|
+
*/
|
|
661
|
+
requestPath?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
664
|
+
*/
|
|
665
|
+
country?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
668
|
+
*/
|
|
669
|
+
continent?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Filter data by User Agent.
|
|
672
|
+
*/
|
|
673
|
+
userAgent?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Filter data by RPC method.
|
|
676
|
+
*/
|
|
677
|
+
rpcMethod?: string;
|
|
678
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
460
679
|
}
|
|
461
680
|
|
|
462
681
|
declare class DefaultService {
|
|
@@ -655,6 +874,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
874
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
656
875
|
*/
|
|
657
876
|
nextPageToken?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The native token balance for the address.
|
|
879
|
+
*/
|
|
880
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
881
|
/**
|
|
659
882
|
* The list of ERC-1155 token balances for the address.
|
|
660
883
|
*/
|
|
@@ -699,11 +922,22 @@ type Erc20TokenBalance = {
|
|
|
699
922
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
923
|
*/
|
|
701
924
|
balanceValue?: Money;
|
|
925
|
+
/**
|
|
926
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
927
|
+
*/
|
|
928
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
929
|
};
|
|
703
930
|
declare namespace Erc20TokenBalance {
|
|
704
931
|
enum ercType {
|
|
705
932
|
ERC_20 = "ERC-20"
|
|
706
933
|
}
|
|
934
|
+
/**
|
|
935
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
936
|
+
*/
|
|
937
|
+
enum tokenReputation {
|
|
938
|
+
MALICIOUS = "Malicious",
|
|
939
|
+
BENIGN = "Benign"
|
|
940
|
+
}
|
|
707
941
|
}
|
|
708
942
|
|
|
709
943
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +945,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
945
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
712
946
|
*/
|
|
713
947
|
nextPageToken?: string;
|
|
948
|
+
/**
|
|
949
|
+
* The native token balance for the address.
|
|
950
|
+
*/
|
|
951
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
952
|
/**
|
|
715
953
|
* The list of ERC-20 token balances for the address.
|
|
716
954
|
*/
|
|
@@ -722,6 +960,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
960
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
723
961
|
*/
|
|
724
962
|
nextPageToken?: string;
|
|
963
|
+
/**
|
|
964
|
+
* The native token balance for the address.
|
|
965
|
+
*/
|
|
966
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
967
|
/**
|
|
726
968
|
* The list of ERC-721 token balances for the address.
|
|
727
969
|
*/
|
|
@@ -785,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
785
1027
|
*/
|
|
786
1028
|
pageToken?: string;
|
|
787
1029
|
/**
|
|
788
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
789
1031
|
*/
|
|
790
1032
|
pageSize?: number;
|
|
791
1033
|
/**
|
|
@@ -823,7 +1065,7 @@ declare class EvmBalancesService {
|
|
|
823
1065
|
*/
|
|
824
1066
|
pageToken?: string;
|
|
825
1067
|
/**
|
|
826
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1068
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
827
1069
|
*/
|
|
828
1070
|
pageSize?: number;
|
|
829
1071
|
/**
|
|
@@ -859,7 +1101,7 @@ declare class EvmBalancesService {
|
|
|
859
1101
|
*/
|
|
860
1102
|
pageToken?: string;
|
|
861
1103
|
/**
|
|
862
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1104
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
863
1105
|
*/
|
|
864
1106
|
pageSize?: number;
|
|
865
1107
|
/**
|
|
@@ -889,7 +1131,7 @@ declare class EvmBalancesService {
|
|
|
889
1131
|
*/
|
|
890
1132
|
pageToken?: string;
|
|
891
1133
|
/**
|
|
892
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1134
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
893
1135
|
*/
|
|
894
1136
|
pageSize?: number;
|
|
895
1137
|
/**
|
|
@@ -900,14 +1142,26 @@ declare class EvmBalancesService {
|
|
|
900
1142
|
}
|
|
901
1143
|
|
|
902
1144
|
type GetEvmBlockResponse = {
|
|
1145
|
+
/**
|
|
1146
|
+
* The EVM chain ID on which the block was created.
|
|
1147
|
+
*/
|
|
1148
|
+
chainId: string;
|
|
903
1149
|
/**
|
|
904
1150
|
* The block number on the chain.
|
|
905
1151
|
*/
|
|
906
1152
|
blockNumber: string;
|
|
907
1153
|
/**
|
|
908
|
-
* The block
|
|
1154
|
+
* The block creation (proposal) timestamp in seconds
|
|
909
1155
|
*/
|
|
910
1156
|
blockTimestamp: number;
|
|
1157
|
+
/**
|
|
1158
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1159
|
+
*/
|
|
1160
|
+
blockTimestampMilliseconds?: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1163
|
+
*/
|
|
1164
|
+
blockMinDelayExcess?: number;
|
|
911
1165
|
/**
|
|
912
1166
|
* The block hash identifier.
|
|
913
1167
|
*/
|
|
@@ -944,14 +1198,26 @@ type GetEvmBlockResponse = {
|
|
|
944
1198
|
};
|
|
945
1199
|
|
|
946
1200
|
type EvmBlock = {
|
|
1201
|
+
/**
|
|
1202
|
+
* The EVM chain ID on which the block was created.
|
|
1203
|
+
*/
|
|
1204
|
+
chainId: string;
|
|
947
1205
|
/**
|
|
948
1206
|
* The block number on the chain.
|
|
949
1207
|
*/
|
|
950
1208
|
blockNumber: string;
|
|
951
1209
|
/**
|
|
952
|
-
* The block
|
|
1210
|
+
* The block creation (proposal) timestamp in seconds
|
|
953
1211
|
*/
|
|
954
1212
|
blockTimestamp: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1215
|
+
*/
|
|
1216
|
+
blockTimestampMilliseconds?: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1219
|
+
*/
|
|
1220
|
+
blockMinDelayExcess?: number;
|
|
955
1221
|
/**
|
|
956
1222
|
* The block hash identifier.
|
|
957
1223
|
*/
|
|
@@ -998,6 +1264,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1264
|
declare class EvmBlocksService {
|
|
999
1265
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1266
|
constructor(httpRequest: BaseHttpRequest);
|
|
1267
|
+
/**
|
|
1268
|
+
* List latest blocks across all supported EVM chains
|
|
1269
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1270
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1271
|
+
* @throws ApiError
|
|
1272
|
+
*/
|
|
1273
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1274
|
+
/**
|
|
1275
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1276
|
+
*/
|
|
1277
|
+
pageToken?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1280
|
+
*/
|
|
1281
|
+
pageSize?: number;
|
|
1282
|
+
/**
|
|
1283
|
+
* Either mainnet or testnet/fuji.
|
|
1284
|
+
*/
|
|
1285
|
+
network?: Network;
|
|
1286
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1287
|
/**
|
|
1002
1288
|
* List latest blocks
|
|
1003
1289
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1129,47 +1415,174 @@ type ListChainsResponse = {
|
|
|
1129
1415
|
chains: Array<ChainInfo>;
|
|
1130
1416
|
};
|
|
1131
1417
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
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"
|
|
1137
1425
|
}
|
|
1138
1426
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1427
|
+
type Method = {
|
|
1428
|
+
callType: TransactionMethodType;
|
|
1142
1429
|
/**
|
|
1143
|
-
*
|
|
1144
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1145
|
-
* @returns ListChainsResponse Successful response
|
|
1146
|
-
* @throws ApiError
|
|
1430
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1147
1431
|
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Either mainnet or testnet/fuji.
|
|
1151
|
-
*/
|
|
1152
|
-
network?: Network;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter by feature.
|
|
1155
|
-
*/
|
|
1156
|
-
feature?: ApiFeature;
|
|
1157
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1432
|
+
methodHash: string;
|
|
1158
1433
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1161
|
-
* @returns GetChainResponse Successful response
|
|
1162
|
-
* @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'.
|
|
1163
1435
|
*/
|
|
1164
|
-
|
|
1436
|
+
methodName?: string;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
type RichAddress = {
|
|
1440
|
+
/**
|
|
1441
|
+
* The contract name.
|
|
1442
|
+
*/
|
|
1443
|
+
name?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* The contract symbol.
|
|
1446
|
+
*/
|
|
1447
|
+
symbol?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1450
|
+
*/
|
|
1451
|
+
decimals?: number;
|
|
1452
|
+
/**
|
|
1453
|
+
* The logo uri for the address.
|
|
1454
|
+
*/
|
|
1455
|
+
logoUri?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1458
|
+
*/
|
|
1459
|
+
address: string;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
type NativeTransaction = {
|
|
1463
|
+
/**
|
|
1464
|
+
* The block number on the chain.
|
|
1465
|
+
*/
|
|
1466
|
+
blockNumber: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* The block creation (proposal) timestamp in seconds
|
|
1469
|
+
*/
|
|
1470
|
+
blockTimestamp: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1473
|
+
*/
|
|
1474
|
+
blockTimestampMilliseconds?: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1477
|
+
*/
|
|
1478
|
+
blockMinDelayExcess?: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* The block hash identifier.
|
|
1481
|
+
*/
|
|
1482
|
+
blockHash: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The EVM chain ID on which the transaction occured.
|
|
1485
|
+
*/
|
|
1486
|
+
chainId: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1489
|
+
*/
|
|
1490
|
+
blockIndex: number;
|
|
1491
|
+
/**
|
|
1492
|
+
* The transaction hash identifier.
|
|
1493
|
+
*/
|
|
1494
|
+
txHash: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1497
|
+
*/
|
|
1498
|
+
txStatus: string;
|
|
1499
|
+
/**
|
|
1500
|
+
* The transaction type.
|
|
1501
|
+
*/
|
|
1502
|
+
txType: number;
|
|
1503
|
+
/**
|
|
1504
|
+
* The gas limit set for the transaction.
|
|
1505
|
+
*/
|
|
1506
|
+
gasLimit: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* The amount of gas used.
|
|
1509
|
+
*/
|
|
1510
|
+
gasUsed: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1513
|
+
*/
|
|
1514
|
+
gasPrice: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* The nonce used by the sender of the transaction.
|
|
1517
|
+
*/
|
|
1518
|
+
nonce: string;
|
|
1519
|
+
from: RichAddress;
|
|
1520
|
+
to: RichAddress;
|
|
1521
|
+
method?: Method;
|
|
1522
|
+
value: string;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
type ListNativeTransactionsResponse = {
|
|
1526
|
+
/**
|
|
1527
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1528
|
+
*/
|
|
1529
|
+
nextPageToken?: string;
|
|
1530
|
+
transactions: Array<NativeTransaction>;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
declare enum TransactionStatus {
|
|
1534
|
+
FAILED = "failed",
|
|
1535
|
+
SUCCESS = "success"
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
declare class EvmChainsService {
|
|
1539
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1540
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1541
|
+
/**
|
|
1542
|
+
* List all chains associated with a given address
|
|
1543
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1544
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1545
|
+
* @throws ApiError
|
|
1546
|
+
*/
|
|
1547
|
+
listAddressChains({ address, }: {
|
|
1548
|
+
/**
|
|
1549
|
+
* A wallet address.
|
|
1550
|
+
*/
|
|
1551
|
+
address: string;
|
|
1552
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1553
|
+
/**
|
|
1554
|
+
* List chains
|
|
1555
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1556
|
+
* @returns ListChainsResponse Successful response
|
|
1557
|
+
* @throws ApiError
|
|
1558
|
+
*/
|
|
1559
|
+
supportedChains({ network, feature, }: {
|
|
1560
|
+
/**
|
|
1561
|
+
* Either mainnet or testnet/fuji.
|
|
1562
|
+
*/
|
|
1563
|
+
network?: Network;
|
|
1564
|
+
/**
|
|
1565
|
+
* Filter by feature.
|
|
1566
|
+
*/
|
|
1567
|
+
feature?: ApiFeature;
|
|
1568
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Get chain information
|
|
1571
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1572
|
+
* @returns GetChainResponse Successful response
|
|
1573
|
+
* @throws ApiError
|
|
1574
|
+
*/
|
|
1575
|
+
getChainInfo({ chainId, }: {
|
|
1165
1576
|
/**
|
|
1166
1577
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1578
|
*/
|
|
1168
1579
|
chainId: string;
|
|
1169
1580
|
}): CancelablePromise<GetChainResponse>;
|
|
1170
1581
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* Gets
|
|
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** .
|
|
1173
1586
|
* @returns ListAddressChainsResponse Successful response
|
|
1174
1587
|
* @throws ApiError
|
|
1175
1588
|
*/
|
|
@@ -1179,6 +1592,54 @@ declare class EvmChainsService {
|
|
|
1179
1592
|
*/
|
|
1180
1593
|
address: string;
|
|
1181
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>;
|
|
1182
1643
|
}
|
|
1183
1644
|
|
|
1184
1645
|
type ImageAsset = {
|
|
@@ -1350,7 +1811,7 @@ type Erc1155Contract = {
|
|
|
1350
1811
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1351
1812
|
*/
|
|
1352
1813
|
address: string;
|
|
1353
|
-
deploymentDetails
|
|
1814
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1354
1815
|
ercType: Erc1155Contract.ercType;
|
|
1355
1816
|
/**
|
|
1356
1817
|
* The contract symbol.
|
|
@@ -1381,7 +1842,7 @@ type Erc20Contract = {
|
|
|
1381
1842
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1382
1843
|
*/
|
|
1383
1844
|
address: string;
|
|
1384
|
-
deploymentDetails
|
|
1845
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1385
1846
|
ercType: Erc20Contract.ercType;
|
|
1386
1847
|
/**
|
|
1387
1848
|
* The contract symbol.
|
|
@@ -1416,7 +1877,7 @@ type Erc721Contract = {
|
|
|
1416
1877
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1417
1878
|
*/
|
|
1418
1879
|
address: string;
|
|
1419
|
-
deploymentDetails
|
|
1880
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1420
1881
|
ercType: Erc721Contract.ercType;
|
|
1421
1882
|
/**
|
|
1422
1883
|
* The contract symbol.
|
|
@@ -1446,7 +1907,7 @@ type UnknownContract = {
|
|
|
1446
1907
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1447
1908
|
*/
|
|
1448
1909
|
address: string;
|
|
1449
|
-
deploymentDetails
|
|
1910
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1450
1911
|
ercType: UnknownContract.ercType;
|
|
1451
1912
|
};
|
|
1452
1913
|
declare namespace UnknownContract {
|
|
@@ -1513,29 +1974,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1974
|
}
|
|
1514
1975
|
}
|
|
1515
1976
|
|
|
1516
|
-
type RichAddress = {
|
|
1517
|
-
/**
|
|
1518
|
-
* The contract name.
|
|
1519
|
-
*/
|
|
1520
|
-
name?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* The contract symbol.
|
|
1523
|
-
*/
|
|
1524
|
-
symbol?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1527
|
-
*/
|
|
1528
|
-
decimals?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* The logo uri for the address.
|
|
1531
|
-
*/
|
|
1532
|
-
logoUri?: string;
|
|
1533
|
-
/**
|
|
1534
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1535
|
-
*/
|
|
1536
|
-
address: string;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
1977
|
type Erc1155TransferDetails = {
|
|
1540
1978
|
from: RichAddress;
|
|
1541
1979
|
to: RichAddress;
|
|
@@ -1620,40 +2058,31 @@ type Erc721TransferDetails = {
|
|
|
1620
2058
|
erc721Token: Erc721Token;
|
|
1621
2059
|
};
|
|
1622
2060
|
|
|
1623
|
-
/**
|
|
1624
|
-
* 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.
|
|
1625
|
-
*/
|
|
1626
|
-
declare enum TransactionMethodType {
|
|
1627
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1628
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1629
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
type Method = {
|
|
1633
|
-
callType: TransactionMethodType;
|
|
1634
|
-
/**
|
|
1635
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1636
|
-
*/
|
|
1637
|
-
methodHash: string;
|
|
1638
|
-
/**
|
|
1639
|
-
* 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'.
|
|
1640
|
-
*/
|
|
1641
|
-
methodName?: string;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
2061
|
type FullNativeTransactionDetails = {
|
|
1645
2062
|
/**
|
|
1646
2063
|
* The block number on the chain.
|
|
1647
2064
|
*/
|
|
1648
2065
|
blockNumber: string;
|
|
1649
2066
|
/**
|
|
1650
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
1651
2068
|
*/
|
|
1652
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;
|
|
1653
2078
|
/**
|
|
1654
2079
|
* The block hash identifier.
|
|
1655
2080
|
*/
|
|
1656
2081
|
blockHash: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The EVM chain ID on which the transaction occured.
|
|
2084
|
+
*/
|
|
2085
|
+
chainId: string;
|
|
1657
2086
|
/**
|
|
1658
2087
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
2088
|
*/
|
|
@@ -1704,6 +2133,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1704
2133
|
CALL = "CALL",
|
|
1705
2134
|
CREATE = "CREATE",
|
|
1706
2135
|
CREATE2 = "CREATE2",
|
|
2136
|
+
CREATE3 = "CREATE3",
|
|
1707
2137
|
CALLCODE = "CALLCODE",
|
|
1708
2138
|
DELEGATECALL = "DELEGATECALL",
|
|
1709
2139
|
STATICCALL = "STATICCALL"
|
|
@@ -1745,11 +2175,11 @@ type TeleporterMessageInfo = {
|
|
|
1745
2175
|
/**
|
|
1746
2176
|
* chain id of the source chain. valid only for destination transactions
|
|
1747
2177
|
*/
|
|
1748
|
-
sourceChainId?:
|
|
2178
|
+
sourceChainId?: string;
|
|
1749
2179
|
/**
|
|
1750
2180
|
* chain id of the destination chain. valid only for source transactions
|
|
1751
2181
|
*/
|
|
1752
|
-
destinationChainId?:
|
|
2182
|
+
destinationChainId?: string;
|
|
1753
2183
|
};
|
|
1754
2184
|
|
|
1755
2185
|
type GetTransactionResponse = {
|
|
@@ -1766,7 +2196,7 @@ type GetTransactionResponse = {
|
|
|
1766
2196
|
*/
|
|
1767
2197
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1768
2198
|
/**
|
|
1769
|
-
* 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.
|
|
1770
2200
|
*/
|
|
1771
2201
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1772
2202
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1791,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
1791
2221
|
*/
|
|
1792
2222
|
blockNumber: string;
|
|
1793
2223
|
/**
|
|
1794
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
1795
2225
|
*/
|
|
1796
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
1797
2231
|
/**
|
|
1798
2232
|
* The block hash identifier.
|
|
1799
2233
|
*/
|
|
@@ -1823,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
1823
2257
|
*/
|
|
1824
2258
|
blockNumber: string;
|
|
1825
2259
|
/**
|
|
1826
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
1827
2261
|
*/
|
|
1828
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
1829
2267
|
/**
|
|
1830
2268
|
* The block hash identifier.
|
|
1831
2269
|
*/
|
|
@@ -1855,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
1855
2293
|
*/
|
|
1856
2294
|
blockNumber: string;
|
|
1857
2295
|
/**
|
|
1858
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
1859
2297
|
*/
|
|
1860
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
1861
2303
|
/**
|
|
1862
2304
|
* The block hash identifier.
|
|
1863
2305
|
*/
|
|
@@ -1886,9 +2328,13 @@ type InternalTransaction = {
|
|
|
1886
2328
|
*/
|
|
1887
2329
|
blockNumber: string;
|
|
1888
2330
|
/**
|
|
1889
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
1890
2332
|
*/
|
|
1891
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
1892
2338
|
/**
|
|
1893
2339
|
* The block hash identifier.
|
|
1894
2340
|
*/
|
|
@@ -1917,66 +2363,90 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2363
|
transactions: Array<InternalTransaction>;
|
|
1918
2364
|
};
|
|
1919
2365
|
|
|
1920
|
-
type
|
|
2366
|
+
type TransactionDetails = {
|
|
1921
2367
|
/**
|
|
1922
|
-
* The
|
|
2368
|
+
* The native (top-level) transaction details.
|
|
1923
2369
|
*/
|
|
1924
|
-
|
|
2370
|
+
nativeTransaction: NativeTransaction;
|
|
1925
2371
|
/**
|
|
1926
|
-
* The
|
|
2372
|
+
* The list of ERC-20 transfers.
|
|
1927
2373
|
*/
|
|
1928
|
-
|
|
2374
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1929
2375
|
/**
|
|
1930
|
-
* The
|
|
2376
|
+
* The list of ERC-721 transfers.
|
|
1931
2377
|
*/
|
|
1932
|
-
|
|
2378
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1933
2379
|
/**
|
|
1934
|
-
* The
|
|
2380
|
+
* The list of ERC-1155 transfers.
|
|
1935
2381
|
*/
|
|
1936
|
-
|
|
2382
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1937
2383
|
/**
|
|
1938
|
-
* The
|
|
2384
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1939
2385
|
*/
|
|
1940
|
-
|
|
2386
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
type ListTransactionDetailsResponse = {
|
|
1941
2390
|
/**
|
|
1942
|
-
*
|
|
2391
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1943
2392
|
*/
|
|
1944
|
-
|
|
2393
|
+
nextPageToken?: string;
|
|
2394
|
+
transactions: Array<TransactionDetails>;
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
type Erc20TokenV2 = {
|
|
1945
2398
|
/**
|
|
1946
|
-
*
|
|
2399
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1947
2400
|
*/
|
|
1948
|
-
|
|
2401
|
+
address: string;
|
|
1949
2402
|
/**
|
|
1950
|
-
* The
|
|
2403
|
+
* The contract name.
|
|
1951
2404
|
*/
|
|
1952
|
-
|
|
2405
|
+
name: string;
|
|
1953
2406
|
/**
|
|
1954
|
-
* The
|
|
2407
|
+
* The contract symbol.
|
|
1955
2408
|
*/
|
|
1956
|
-
|
|
2409
|
+
symbol: string;
|
|
1957
2410
|
/**
|
|
1958
|
-
* The
|
|
2411
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1959
2412
|
*/
|
|
1960
|
-
|
|
2413
|
+
decimals: number;
|
|
1961
2414
|
/**
|
|
1962
|
-
* The
|
|
2415
|
+
* The logo uri for the address.
|
|
1963
2416
|
*/
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
2417
|
+
logoUri?: string;
|
|
2418
|
+
ercType: Erc20TokenV2.ercType;
|
|
2419
|
+
/**
|
|
2420
|
+
* The token price, if available.
|
|
2421
|
+
*/
|
|
2422
|
+
price?: Money;
|
|
2423
|
+
/**
|
|
2424
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
2425
|
+
*/
|
|
2426
|
+
tokenReputation: Erc20TokenV2.tokenReputation;
|
|
1969
2427
|
};
|
|
1970
|
-
|
|
1971
|
-
|
|
2428
|
+
declare namespace Erc20TokenV2 {
|
|
2429
|
+
enum ercType {
|
|
2430
|
+
ERC_20 = "ERC-20"
|
|
2431
|
+
}
|
|
1972
2432
|
/**
|
|
1973
|
-
*
|
|
2433
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
1974
2434
|
*/
|
|
1975
|
-
|
|
1976
|
-
|
|
2435
|
+
enum tokenReputation {
|
|
2436
|
+
MALICIOUS = "Malicious",
|
|
2437
|
+
BENIGN = "Benign"
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
type Erc20TransferDetailsV2 = {
|
|
2442
|
+
from: RichAddress;
|
|
2443
|
+
to: RichAddress;
|
|
2444
|
+
logIndex: number;
|
|
2445
|
+
value: string;
|
|
2446
|
+
erc20Token: Erc20TokenV2;
|
|
1977
2447
|
};
|
|
1978
2448
|
|
|
1979
|
-
type
|
|
2449
|
+
type TransactionDetailsV2 = {
|
|
1980
2450
|
/**
|
|
1981
2451
|
* The native (top-level) transaction details.
|
|
1982
2452
|
*/
|
|
@@ -1984,7 +2454,7 @@ type TransactionDetails = {
|
|
|
1984
2454
|
/**
|
|
1985
2455
|
* The list of ERC-20 transfers.
|
|
1986
2456
|
*/
|
|
1987
|
-
erc20Transfers?: Array<
|
|
2457
|
+
erc20Transfers?: Array<Erc20TransferDetailsV2>;
|
|
1988
2458
|
/**
|
|
1989
2459
|
* The list of ERC-721 transfers.
|
|
1990
2460
|
*/
|
|
@@ -1994,17 +2464,17 @@ type TransactionDetails = {
|
|
|
1994
2464
|
*/
|
|
1995
2465
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1996
2466
|
/**
|
|
1997
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2467
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1998
2468
|
*/
|
|
1999
2469
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2000
2470
|
};
|
|
2001
2471
|
|
|
2002
|
-
type
|
|
2472
|
+
type ListTransactionDetailsResponseV2 = {
|
|
2003
2473
|
/**
|
|
2004
2474
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2005
2475
|
*/
|
|
2006
2476
|
nextPageToken?: string;
|
|
2007
|
-
transactions: Array<
|
|
2477
|
+
transactions: Array<TransactionDetailsV2>;
|
|
2008
2478
|
};
|
|
2009
2479
|
|
|
2010
2480
|
type ListTransfersResponse = {
|
|
@@ -2020,14 +2490,33 @@ declare enum SortOrder {
|
|
|
2020
2490
|
DESC = "desc"
|
|
2021
2491
|
}
|
|
2022
2492
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2493
|
declare class EvmTransactionsService {
|
|
2029
2494
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
2495
|
constructor(httpRequest: BaseHttpRequest);
|
|
2496
|
+
/**
|
|
2497
|
+
* List the latest transactions across all supported EVM chains
|
|
2498
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2499
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2500
|
+
* @throws ApiError
|
|
2501
|
+
*/
|
|
2502
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2503
|
+
/**
|
|
2504
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2505
|
+
*/
|
|
2506
|
+
pageToken?: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2509
|
+
*/
|
|
2510
|
+
pageSize?: number;
|
|
2511
|
+
/**
|
|
2512
|
+
* Either mainnet or testnet/fuji.
|
|
2513
|
+
*/
|
|
2514
|
+
network?: Network;
|
|
2515
|
+
/**
|
|
2516
|
+
* A status filter for listed transactions.
|
|
2517
|
+
*/
|
|
2518
|
+
status?: TransactionStatus;
|
|
2519
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2031
2520
|
/**
|
|
2032
2521
|
* Get deployment transaction
|
|
2033
2522
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2142,6 +2631,45 @@ declare class EvmTransactionsService {
|
|
|
2142
2631
|
*/
|
|
2143
2632
|
sortOrder?: SortOrder;
|
|
2144
2633
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
2634
|
+
/**
|
|
2635
|
+
* List transactions v2
|
|
2636
|
+
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers (with token reputation), ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
2637
|
+
*
|
|
2638
|
+
* Filterable by block ranges.
|
|
2639
|
+
* @returns ListTransactionDetailsResponseV2 Successful response
|
|
2640
|
+
* @throws ApiError
|
|
2641
|
+
*/
|
|
2642
|
+
listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
|
|
2643
|
+
/**
|
|
2644
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
+
*/
|
|
2646
|
+
chainId: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* A wallet address.
|
|
2649
|
+
*/
|
|
2650
|
+
address: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
|
+
*/
|
|
2654
|
+
pageToken?: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
+
*/
|
|
2658
|
+
pageSize?: number;
|
|
2659
|
+
/**
|
|
2660
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2661
|
+
*/
|
|
2662
|
+
startBlock?: number;
|
|
2663
|
+
/**
|
|
2664
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2665
|
+
*/
|
|
2666
|
+
endBlock?: number;
|
|
2667
|
+
filterSpamTokens?: boolean;
|
|
2668
|
+
/**
|
|
2669
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2670
|
+
*/
|
|
2671
|
+
sortOrder?: SortOrder;
|
|
2672
|
+
}): CancelablePromise<ListTransactionDetailsResponseV2>;
|
|
2145
2673
|
/**
|
|
2146
2674
|
* List native transactions
|
|
2147
2675
|
* Lists native transactions for an address. Filterable by block range.
|
|
@@ -2274,7 +2802,7 @@ declare class EvmTransactionsService {
|
|
|
2274
2802
|
* List internal transactions
|
|
2275
2803
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2276
2804
|
*
|
|
2277
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2805
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2278
2806
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2279
2807
|
* @throws ApiError
|
|
2280
2808
|
*/
|
|
@@ -2326,7 +2854,7 @@ declare class EvmTransactionsService {
|
|
|
2326
2854
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
2855
|
* @throws ApiError
|
|
2328
2856
|
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2857
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2330
2858
|
/**
|
|
2331
2859
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
2860
|
*/
|
|
@@ -2335,6 +2863,14 @@ declare class EvmTransactionsService {
|
|
|
2335
2863
|
* A block identifier which is either a block number or the block hash.
|
|
2336
2864
|
*/
|
|
2337
2865
|
blockId: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2868
|
+
*/
|
|
2869
|
+
pageToken?: string;
|
|
2870
|
+
/**
|
|
2871
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2872
|
+
*/
|
|
2873
|
+
pageSize?: number;
|
|
2338
2874
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
2875
|
/**
|
|
2340
2876
|
* List latest transactions
|
|
@@ -2362,149 +2898,499 @@ declare class EvmTransactionsService {
|
|
|
2362
2898
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2363
2899
|
}
|
|
2364
2900
|
|
|
2365
|
-
|
|
2366
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2367
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2901
|
+
type HealthIndicatorResultDto = {
|
|
2368
2902
|
/**
|
|
2369
|
-
*
|
|
2370
|
-
* @returns any The Health Check is successful
|
|
2371
|
-
* @throws ApiError
|
|
2903
|
+
* Status of the health indicator.
|
|
2372
2904
|
*/
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2377
|
-
details?: Record<string, Record<string, string>>;
|
|
2378
|
-
}>;
|
|
2379
|
-
}
|
|
2380
|
-
|
|
2381
|
-
type ListNftTokens = {
|
|
2905
|
+
status?: HealthIndicatorResultDto.status;
|
|
2906
|
+
};
|
|
2907
|
+
declare namespace HealthIndicatorResultDto {
|
|
2382
2908
|
/**
|
|
2383
|
-
*
|
|
2909
|
+
* Status of the health indicator.
|
|
2384
2910
|
*/
|
|
2385
|
-
|
|
2386
|
-
|
|
2911
|
+
enum status {
|
|
2912
|
+
UP = "up",
|
|
2913
|
+
DOWN = "down"
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
type HealthCheckResultDto = {
|
|
2918
|
+
status?: HealthCheckResultDto.status;
|
|
2919
|
+
info?: any | null;
|
|
2920
|
+
error?: any | null;
|
|
2921
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2387
2922
|
};
|
|
2923
|
+
declare namespace HealthCheckResultDto {
|
|
2924
|
+
enum status {
|
|
2925
|
+
ERROR = "error",
|
|
2926
|
+
OK = "ok",
|
|
2927
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2388
2930
|
|
|
2389
|
-
declare class
|
|
2931
|
+
declare class HealthCheckService {
|
|
2390
2932
|
readonly httpRequest: BaseHttpRequest;
|
|
2391
2933
|
constructor(httpRequest: BaseHttpRequest);
|
|
2392
2934
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2395
|
-
* @returns
|
|
2396
|
-
* @throws ApiError
|
|
2397
|
-
*/
|
|
2398
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
2399
|
-
/**
|
|
2400
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2401
|
-
*/
|
|
2402
|
-
chainId: string;
|
|
2403
|
-
/**
|
|
2404
|
-
* Contract address on the relevant chain.
|
|
2405
|
-
*/
|
|
2406
|
-
address: string;
|
|
2407
|
-
/**
|
|
2408
|
-
* TokenId on the contract
|
|
2409
|
-
*/
|
|
2410
|
-
tokenId: string;
|
|
2411
|
-
}): CancelablePromise<any>;
|
|
2412
|
-
/**
|
|
2413
|
-
* List tokens
|
|
2414
|
-
* Lists tokens for an NFT contract.
|
|
2415
|
-
* @returns ListNftTokens Successful response
|
|
2935
|
+
* Get the health of the service
|
|
2936
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2937
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2416
2938
|
* @throws ApiError
|
|
2417
2939
|
*/
|
|
2418
|
-
|
|
2419
|
-
/**
|
|
2420
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2421
|
-
*/
|
|
2422
|
-
chainId: string;
|
|
2423
|
-
/**
|
|
2424
|
-
* Contract address on the relevant chain.
|
|
2425
|
-
*/
|
|
2426
|
-
address: string;
|
|
2427
|
-
/**
|
|
2428
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2429
|
-
*/
|
|
2430
|
-
pageToken?: string;
|
|
2431
|
-
/**
|
|
2432
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2433
|
-
*/
|
|
2434
|
-
pageSize?: number;
|
|
2435
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2940
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2436
2941
|
/**
|
|
2437
|
-
* Get
|
|
2438
|
-
*
|
|
2439
|
-
* @returns
|
|
2942
|
+
* Get the liveliness of the service (reads only)
|
|
2943
|
+
* Check the liveliness of the service (reads only).
|
|
2944
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2440
2945
|
* @throws ApiError
|
|
2441
2946
|
*/
|
|
2442
|
-
|
|
2443
|
-
/**
|
|
2444
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2445
|
-
*/
|
|
2446
|
-
chainId: string;
|
|
2447
|
-
/**
|
|
2448
|
-
* Contract address on the relevant chain.
|
|
2449
|
-
*/
|
|
2450
|
-
address: string;
|
|
2451
|
-
/**
|
|
2452
|
-
* TokenId on the contract
|
|
2453
|
-
*/
|
|
2454
|
-
tokenId: string;
|
|
2455
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2947
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2456
2948
|
}
|
|
2457
2949
|
|
|
2458
|
-
type
|
|
2459
|
-
|
|
2460
|
-
|
|
2950
|
+
type IcmDestinationTransaction = {
|
|
2951
|
+
txHash: string;
|
|
2952
|
+
timestamp: number;
|
|
2953
|
+
gasSpent: string;
|
|
2954
|
+
rewardRedeemer: string;
|
|
2955
|
+
delivererAddress: string;
|
|
2461
2956
|
};
|
|
2462
2957
|
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2958
|
+
type IcmReceipt = {
|
|
2959
|
+
receivedMessageNonce: string;
|
|
2960
|
+
relayerRewardAddress: string;
|
|
2961
|
+
};
|
|
2466
2962
|
|
|
2467
|
-
type
|
|
2468
|
-
type: EVMOperationType;
|
|
2469
|
-
firstDate?: string;
|
|
2470
|
-
lastDate?: string;
|
|
2963
|
+
type IcmRewardDetails = {
|
|
2471
2964
|
/**
|
|
2472
|
-
*
|
|
2965
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2473
2966
|
*/
|
|
2474
|
-
|
|
2967
|
+
address: string;
|
|
2475
2968
|
/**
|
|
2476
|
-
*
|
|
2969
|
+
* The contract name.
|
|
2477
2970
|
*/
|
|
2478
|
-
|
|
2479
|
-
options: EvmNetworkOptions;
|
|
2480
|
-
};
|
|
2481
|
-
|
|
2482
|
-
declare enum PrimaryNetworkOperationType {
|
|
2483
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2484
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2485
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
type PrimaryNetworkOptions = {
|
|
2489
|
-
addresses?: Array<string>;
|
|
2490
|
-
cChainEvmAddresses?: Array<string>;
|
|
2491
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2492
|
-
};
|
|
2493
|
-
|
|
2494
|
-
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2495
|
-
type: PrimaryNetworkOperationType;
|
|
2496
|
-
firstDate?: string;
|
|
2497
|
-
lastDate?: string;
|
|
2971
|
+
name: string;
|
|
2498
2972
|
/**
|
|
2499
|
-
*
|
|
2973
|
+
* The contract symbol.
|
|
2500
2974
|
*/
|
|
2501
|
-
|
|
2975
|
+
symbol: string;
|
|
2502
2976
|
/**
|
|
2503
|
-
*
|
|
2977
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2504
2978
|
*/
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2979
|
+
decimals: number;
|
|
2980
|
+
/**
|
|
2981
|
+
* The logo uri for the address.
|
|
2982
|
+
*/
|
|
2983
|
+
logoUri?: string;
|
|
2984
|
+
ercType: IcmRewardDetails.ercType;
|
|
2985
|
+
/**
|
|
2986
|
+
* The token price, if available.
|
|
2987
|
+
*/
|
|
2988
|
+
price?: Money;
|
|
2989
|
+
value: string;
|
|
2990
|
+
};
|
|
2991
|
+
declare namespace IcmRewardDetails {
|
|
2992
|
+
enum ercType {
|
|
2993
|
+
ERC_20 = "ERC-20"
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
type IcmSourceTransaction = {
|
|
2998
|
+
txHash: string;
|
|
2999
|
+
timestamp: number;
|
|
3000
|
+
gasSpent: string;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
type DeliveredIcmMessage = {
|
|
3004
|
+
messageId: string;
|
|
3005
|
+
icmContractAddress: string;
|
|
3006
|
+
sourceBlockchainId: string;
|
|
3007
|
+
destinationBlockchainId: string;
|
|
3008
|
+
sourceEvmChainId: string;
|
|
3009
|
+
destinationEvmChainId: string;
|
|
3010
|
+
messageNonce: string;
|
|
3011
|
+
from: string;
|
|
3012
|
+
to: string;
|
|
3013
|
+
data?: string;
|
|
3014
|
+
messageExecuted: boolean;
|
|
3015
|
+
receipts: Array<IcmReceipt>;
|
|
3016
|
+
receiptDelivered: boolean;
|
|
3017
|
+
rewardDetails: IcmRewardDetails;
|
|
3018
|
+
sourceTransaction: IcmSourceTransaction;
|
|
3019
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
3020
|
+
status: DeliveredIcmMessage.status;
|
|
3021
|
+
};
|
|
3022
|
+
declare namespace DeliveredIcmMessage {
|
|
3023
|
+
enum status {
|
|
3024
|
+
DELIVERED = "delivered"
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
3029
|
+
messageId: string;
|
|
3030
|
+
icmContractAddress: string;
|
|
3031
|
+
sourceBlockchainId: string;
|
|
3032
|
+
destinationBlockchainId: string;
|
|
3033
|
+
sourceEvmChainId: string;
|
|
3034
|
+
destinationEvmChainId: string;
|
|
3035
|
+
messageNonce: string;
|
|
3036
|
+
from: string;
|
|
3037
|
+
to: string;
|
|
3038
|
+
data?: string;
|
|
3039
|
+
messageExecuted: boolean;
|
|
3040
|
+
receipts: Array<IcmReceipt>;
|
|
3041
|
+
receiptDelivered: boolean;
|
|
3042
|
+
rewardDetails: IcmRewardDetails;
|
|
3043
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
3044
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
3045
|
+
};
|
|
3046
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
3047
|
+
enum status {
|
|
3048
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
type PendingIcmMessage = {
|
|
3053
|
+
messageId: string;
|
|
3054
|
+
icmContractAddress: string;
|
|
3055
|
+
sourceBlockchainId: string;
|
|
3056
|
+
destinationBlockchainId: string;
|
|
3057
|
+
sourceEvmChainId: string;
|
|
3058
|
+
destinationEvmChainId: string;
|
|
3059
|
+
messageNonce: string;
|
|
3060
|
+
from: string;
|
|
3061
|
+
to: string;
|
|
3062
|
+
data?: string;
|
|
3063
|
+
messageExecuted: boolean;
|
|
3064
|
+
receipts: Array<IcmReceipt>;
|
|
3065
|
+
receiptDelivered: boolean;
|
|
3066
|
+
rewardDetails: IcmRewardDetails;
|
|
3067
|
+
sourceTransaction: IcmSourceTransaction;
|
|
3068
|
+
status: PendingIcmMessage.status;
|
|
3069
|
+
};
|
|
3070
|
+
declare namespace PendingIcmMessage {
|
|
3071
|
+
enum status {
|
|
3072
|
+
PENDING = "pending"
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
type ListIcmMessagesResponse = {
|
|
3077
|
+
/**
|
|
3078
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
3079
|
+
*/
|
|
3080
|
+
nextPageToken?: string;
|
|
3081
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
declare class InterchainMessagingService {
|
|
3085
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3086
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3087
|
+
/**
|
|
3088
|
+
* Get an ICM message
|
|
3089
|
+
* Gets an ICM message by teleporter message ID.
|
|
3090
|
+
* @returns any Successful response
|
|
3091
|
+
* @throws ApiError
|
|
3092
|
+
*/
|
|
3093
|
+
getIcmMessage({ messageId, }: {
|
|
3094
|
+
/**
|
|
3095
|
+
* The teleporter message ID of the ICM message.
|
|
3096
|
+
*/
|
|
3097
|
+
messageId: string;
|
|
3098
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
3099
|
+
/**
|
|
3100
|
+
* List ICM messages
|
|
3101
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
3102
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3103
|
+
* @throws ApiError
|
|
3104
|
+
*/
|
|
3105
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
3106
|
+
/**
|
|
3107
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3108
|
+
*/
|
|
3109
|
+
pageToken?: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3112
|
+
*/
|
|
3113
|
+
pageSize?: number;
|
|
3114
|
+
/**
|
|
3115
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
3116
|
+
*/
|
|
3117
|
+
sourceBlockchainId?: string;
|
|
3118
|
+
/**
|
|
3119
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
3120
|
+
*/
|
|
3121
|
+
destinationBlockchainId?: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
3124
|
+
*/
|
|
3125
|
+
blockchainId?: string;
|
|
3126
|
+
/**
|
|
3127
|
+
* The address of the recipient of the ICM message.
|
|
3128
|
+
*/
|
|
3129
|
+
to?: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* The address of the sender of the ICM message.
|
|
3132
|
+
*/
|
|
3133
|
+
from?: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* Either mainnet or testnet/fuji.
|
|
3136
|
+
*/
|
|
3137
|
+
network?: Network;
|
|
3138
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3139
|
+
/**
|
|
3140
|
+
* List ICM messages by address
|
|
3141
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3142
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3143
|
+
* @throws ApiError
|
|
3144
|
+
*/
|
|
3145
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
3146
|
+
/**
|
|
3147
|
+
* An EVM address.
|
|
3148
|
+
*/
|
|
3149
|
+
address: string;
|
|
3150
|
+
/**
|
|
3151
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3152
|
+
*/
|
|
3153
|
+
pageToken?: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3156
|
+
*/
|
|
3157
|
+
pageSize?: number;
|
|
3158
|
+
/**
|
|
3159
|
+
* Either mainnet or testnet/fuji.
|
|
3160
|
+
*/
|
|
3161
|
+
network?: Network;
|
|
3162
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
type ListNftTokens = {
|
|
3166
|
+
/**
|
|
3167
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
3168
|
+
*/
|
|
3169
|
+
nextPageToken?: string;
|
|
3170
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3171
|
+
};
|
|
3172
|
+
|
|
3173
|
+
declare class NfTsService {
|
|
3174
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3175
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3176
|
+
/**
|
|
3177
|
+
* Reindex NFT metadata
|
|
3178
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3179
|
+
* @returns any Successful response
|
|
3180
|
+
* @throws ApiError
|
|
3181
|
+
*/
|
|
3182
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3183
|
+
/**
|
|
3184
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3185
|
+
*/
|
|
3186
|
+
chainId: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* Contract address on the relevant chain.
|
|
3189
|
+
*/
|
|
3190
|
+
address: string;
|
|
3191
|
+
/**
|
|
3192
|
+
* TokenId on the contract
|
|
3193
|
+
*/
|
|
3194
|
+
tokenId: string;
|
|
3195
|
+
}): CancelablePromise<any>;
|
|
3196
|
+
/**
|
|
3197
|
+
* List tokens
|
|
3198
|
+
* Lists tokens for an NFT contract.
|
|
3199
|
+
* @returns ListNftTokens Successful response
|
|
3200
|
+
* @throws ApiError
|
|
3201
|
+
*/
|
|
3202
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3203
|
+
/**
|
|
3204
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3205
|
+
*/
|
|
3206
|
+
chainId: string;
|
|
3207
|
+
/**
|
|
3208
|
+
* Contract address on the relevant chain.
|
|
3209
|
+
*/
|
|
3210
|
+
address: string;
|
|
3211
|
+
/**
|
|
3212
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3213
|
+
*/
|
|
3214
|
+
pageToken?: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3217
|
+
*/
|
|
3218
|
+
pageSize?: number;
|
|
3219
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3220
|
+
/**
|
|
3221
|
+
* Get token details
|
|
3222
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3223
|
+
* @returns any Successful response
|
|
3224
|
+
* @throws ApiError
|
|
3225
|
+
*/
|
|
3226
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3227
|
+
/**
|
|
3228
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3229
|
+
*/
|
|
3230
|
+
chainId: string;
|
|
3231
|
+
/**
|
|
3232
|
+
* Contract address on the relevant chain.
|
|
3233
|
+
*/
|
|
3234
|
+
address: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* TokenId on the contract
|
|
3237
|
+
*/
|
|
3238
|
+
tokenId: string;
|
|
3239
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
type AccessRequest = {
|
|
3243
|
+
/**
|
|
3244
|
+
* The email address to send the access token to
|
|
3245
|
+
*/
|
|
3246
|
+
email: string;
|
|
3247
|
+
/**
|
|
3248
|
+
* The captcha to verify the user
|
|
3249
|
+
*/
|
|
3250
|
+
captcha: string;
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
type NotificationsResponse = {
|
|
3254
|
+
message: string;
|
|
3255
|
+
};
|
|
3256
|
+
|
|
3257
|
+
type SubscribeRequest = {
|
|
3258
|
+
/**
|
|
3259
|
+
* The access token to use for authentication
|
|
3260
|
+
*/
|
|
3261
|
+
accessToken: string;
|
|
3262
|
+
/**
|
|
3263
|
+
* The node ID to subscribe to
|
|
3264
|
+
*/
|
|
3265
|
+
nodeId: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3268
|
+
*/
|
|
3269
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3270
|
+
};
|
|
3271
|
+
|
|
3272
|
+
type SubscriptionsRequest = {
|
|
3273
|
+
/**
|
|
3274
|
+
* The access token to use for authentication
|
|
3275
|
+
*/
|
|
3276
|
+
accessToken: string;
|
|
3277
|
+
};
|
|
3278
|
+
|
|
3279
|
+
type SubscriptionsResponse = {
|
|
3280
|
+
/**
|
|
3281
|
+
* The email address of the user
|
|
3282
|
+
*/
|
|
3283
|
+
email: string;
|
|
3284
|
+
/**
|
|
3285
|
+
* The subscriptions of the user
|
|
3286
|
+
*/
|
|
3287
|
+
subscriptions: Record<string, {
|
|
3288
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3289
|
+
}>;
|
|
3290
|
+
};
|
|
3291
|
+
|
|
3292
|
+
type UnsubscribeRequest = {
|
|
3293
|
+
/**
|
|
3294
|
+
* The access token to use for authentication
|
|
3295
|
+
*/
|
|
3296
|
+
accessToken: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* The node ID to subscribe to
|
|
3299
|
+
*/
|
|
3300
|
+
nodeId: string;
|
|
3301
|
+
};
|
|
3302
|
+
|
|
3303
|
+
declare class NotificationsService {
|
|
3304
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3305
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3306
|
+
/**
|
|
3307
|
+
* Access Notifications
|
|
3308
|
+
* Access notifications.
|
|
3309
|
+
* @returns NotificationsResponse Successful response
|
|
3310
|
+
* @throws ApiError
|
|
3311
|
+
*/
|
|
3312
|
+
access({ requestBody, }: {
|
|
3313
|
+
requestBody: AccessRequest;
|
|
3314
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3315
|
+
/**
|
|
3316
|
+
* Subscribe to Notifications
|
|
3317
|
+
* Subscribe to receive notifications.
|
|
3318
|
+
* @returns NotificationsResponse Successful response
|
|
3319
|
+
* @throws ApiError
|
|
3320
|
+
*/
|
|
3321
|
+
subscribe({ requestBody, }: {
|
|
3322
|
+
requestBody: SubscribeRequest;
|
|
3323
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3324
|
+
/**
|
|
3325
|
+
* Unsubscribe from Notifications
|
|
3326
|
+
* Unsubscribe from receiving notifications.
|
|
3327
|
+
* @returns NotificationsResponse Successful response
|
|
3328
|
+
* @throws ApiError
|
|
3329
|
+
*/
|
|
3330
|
+
unsubscribe({ requestBody, }: {
|
|
3331
|
+
requestBody: UnsubscribeRequest;
|
|
3332
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3333
|
+
/**
|
|
3334
|
+
* Get Subscriptions
|
|
3335
|
+
* Get subscriptions.
|
|
3336
|
+
* @returns SubscriptionsResponse Successful response
|
|
3337
|
+
* @throws ApiError
|
|
3338
|
+
*/
|
|
3339
|
+
subscriptions({ requestBody, }: {
|
|
3340
|
+
requestBody: SubscriptionsRequest;
|
|
3341
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
type EvmNetworkOptions = {
|
|
3345
|
+
addresses: Array<string>;
|
|
3346
|
+
includeChains: Array<string>;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
declare enum EVMOperationType {
|
|
3350
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
type CreateEvmTransactionExportRequest = {
|
|
3354
|
+
type: EVMOperationType;
|
|
3355
|
+
firstDate?: string;
|
|
3356
|
+
lastDate?: string;
|
|
3357
|
+
/**
|
|
3358
|
+
* @deprecated
|
|
3359
|
+
*/
|
|
3360
|
+
startDate?: string;
|
|
3361
|
+
/**
|
|
3362
|
+
* @deprecated
|
|
3363
|
+
*/
|
|
3364
|
+
endDate?: string;
|
|
3365
|
+
options: EvmNetworkOptions;
|
|
3366
|
+
};
|
|
3367
|
+
|
|
3368
|
+
declare enum PrimaryNetworkOperationType {
|
|
3369
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3370
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
3371
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3374
|
+
type PrimaryNetworkOptions = {
|
|
3375
|
+
addresses?: Array<string>;
|
|
3376
|
+
cChainEvmAddresses?: Array<string>;
|
|
3377
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
3381
|
+
type: PrimaryNetworkOperationType;
|
|
3382
|
+
firstDate?: string;
|
|
3383
|
+
lastDate?: string;
|
|
3384
|
+
/**
|
|
3385
|
+
* @deprecated
|
|
3386
|
+
*/
|
|
3387
|
+
startDate?: string;
|
|
3388
|
+
/**
|
|
3389
|
+
* @deprecated
|
|
3390
|
+
*/
|
|
3391
|
+
endDate?: string;
|
|
3392
|
+
options: PrimaryNetworkOptions;
|
|
3393
|
+
};
|
|
2508
3394
|
|
|
2509
3395
|
declare enum OperationStatus {
|
|
2510
3396
|
RUNNING = "RUNNING",
|
|
@@ -2520,70 +3406,331 @@ declare enum OperationType {
|
|
|
2520
3406
|
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2521
3407
|
}
|
|
2522
3408
|
|
|
2523
|
-
declare enum OperationStatusCode {
|
|
2524
|
-
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
2525
|
-
ERR_INTERNAL = "ErrInternal",
|
|
2526
|
-
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
2527
|
-
}
|
|
3409
|
+
declare enum OperationStatusCode {
|
|
3410
|
+
ERR_INVALID_REQUEST = "ErrInvalidRequest",
|
|
3411
|
+
ERR_INTERNAL = "ErrInternal",
|
|
3412
|
+
WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
type TransactionExportMetadata = {
|
|
3416
|
+
code?: OperationStatusCode;
|
|
3417
|
+
/**
|
|
3418
|
+
* File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
|
|
3419
|
+
*/
|
|
3420
|
+
downloadUrl?: string;
|
|
3421
|
+
/**
|
|
3422
|
+
* 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'.
|
|
3423
|
+
*/
|
|
3424
|
+
nextDate?: string;
|
|
3425
|
+
};
|
|
3426
|
+
|
|
3427
|
+
type OperationStatusResponse = {
|
|
3428
|
+
operationId: string;
|
|
3429
|
+
operationType: OperationType;
|
|
3430
|
+
operationStatus: OperationStatus;
|
|
3431
|
+
message?: string;
|
|
3432
|
+
metadata?: TransactionExportMetadata;
|
|
3433
|
+
createdAtTimestamp: number;
|
|
3434
|
+
updatedAtTimestamp: number;
|
|
3435
|
+
};
|
|
3436
|
+
|
|
3437
|
+
declare class OperationsService {
|
|
3438
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3439
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3440
|
+
/**
|
|
3441
|
+
* Get operation
|
|
3442
|
+
* Gets operation details for the given operation id.
|
|
3443
|
+
* @returns OperationStatusResponse Successful response
|
|
3444
|
+
* @throws ApiError
|
|
3445
|
+
*/
|
|
3446
|
+
getOperationResult({ operationId, }: {
|
|
3447
|
+
/**
|
|
3448
|
+
* UUID of given operation
|
|
3449
|
+
*/
|
|
3450
|
+
operationId: string;
|
|
3451
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3452
|
+
/**
|
|
3453
|
+
* Create transaction export operation
|
|
3454
|
+
* Trigger a transaction export operation with given parameters.
|
|
3455
|
+
*
|
|
3456
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
3457
|
+
* @returns OperationStatusResponse Successful response
|
|
3458
|
+
* @throws ApiError
|
|
3459
|
+
*/
|
|
3460
|
+
postTransactionExportJob({ requestBody, }: {
|
|
3461
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
3462
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
type EvmGenesisAllocDto = {
|
|
3466
|
+
/**
|
|
3467
|
+
* Account balance in hex format
|
|
3468
|
+
*/
|
|
3469
|
+
balance?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
* Contract bytecode in hex format
|
|
3472
|
+
*/
|
|
3473
|
+
code?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* Contract storage slots
|
|
3476
|
+
*/
|
|
3477
|
+
storage?: Record<string, string>;
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3480
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3481
|
+
/**
|
|
3482
|
+
* Block timestamp
|
|
3483
|
+
*/
|
|
3484
|
+
blockTimestamp?: number;
|
|
3485
|
+
/**
|
|
3486
|
+
* Admin addresses
|
|
3487
|
+
*/
|
|
3488
|
+
adminAddresses?: Array<string>;
|
|
3489
|
+
/**
|
|
3490
|
+
* Manager addresses
|
|
3491
|
+
*/
|
|
3492
|
+
managerAddresses?: Array<string>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Enabled addresses
|
|
3495
|
+
*/
|
|
3496
|
+
enabledAddresses?: Array<string>;
|
|
3497
|
+
};
|
|
3498
|
+
|
|
3499
|
+
type EvmGenesisFeeConfigDto = {
|
|
3500
|
+
/**
|
|
3501
|
+
* Base fee change denominator
|
|
3502
|
+
*/
|
|
3503
|
+
baseFeeChangeDenominator?: number;
|
|
3504
|
+
/**
|
|
3505
|
+
* Block gas cost step
|
|
3506
|
+
*/
|
|
3507
|
+
blockGasCostStep?: number;
|
|
3508
|
+
/**
|
|
3509
|
+
* Gas limit
|
|
3510
|
+
*/
|
|
3511
|
+
gasLimit?: number;
|
|
3512
|
+
/**
|
|
3513
|
+
* Maximum block gas cost
|
|
3514
|
+
*/
|
|
3515
|
+
maxBlockGasCost?: number;
|
|
3516
|
+
/**
|
|
3517
|
+
* Minimum base fee
|
|
3518
|
+
*/
|
|
3519
|
+
minBaseFee?: number;
|
|
3520
|
+
/**
|
|
3521
|
+
* Minimum block gas cost
|
|
3522
|
+
*/
|
|
3523
|
+
minBlockGasCost?: number;
|
|
3524
|
+
/**
|
|
3525
|
+
* Target block rate
|
|
3526
|
+
*/
|
|
3527
|
+
targetBlockRate?: number;
|
|
3528
|
+
/**
|
|
3529
|
+
* Target gas
|
|
3530
|
+
*/
|
|
3531
|
+
targetGas?: number;
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
type EvmGenesisWarpConfigDto = {
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
blockTimestamp?: number;
|
|
3539
|
+
/**
|
|
3540
|
+
* Quorum numerator
|
|
3541
|
+
*/
|
|
3542
|
+
quorumNumerator?: number;
|
|
3543
|
+
/**
|
|
3544
|
+
* Require primary network signers
|
|
3545
|
+
*/
|
|
3546
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3547
|
+
};
|
|
2528
3548
|
|
|
2529
|
-
type
|
|
2530
|
-
code?: OperationStatusCode;
|
|
3549
|
+
type EvmGenesisConfigDto = {
|
|
2531
3550
|
/**
|
|
2532
|
-
*
|
|
3551
|
+
* Berlin block number
|
|
2533
3552
|
*/
|
|
2534
|
-
|
|
3553
|
+
berlinBlock?: number;
|
|
2535
3554
|
/**
|
|
2536
|
-
*
|
|
3555
|
+
* Byzantium block number
|
|
2537
3556
|
*/
|
|
2538
|
-
|
|
3557
|
+
byzantiumBlock?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Chain ID
|
|
3560
|
+
*/
|
|
3561
|
+
chainId?: number;
|
|
3562
|
+
/**
|
|
3563
|
+
* Constantinople block number
|
|
3564
|
+
*/
|
|
3565
|
+
constantinopleBlock?: number;
|
|
3566
|
+
/**
|
|
3567
|
+
* EIP-150 block number
|
|
3568
|
+
*/
|
|
3569
|
+
eip150Block?: number;
|
|
3570
|
+
/**
|
|
3571
|
+
* EIP-150 hash
|
|
3572
|
+
*/
|
|
3573
|
+
eip150Hash?: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* EIP-155 block number
|
|
3576
|
+
*/
|
|
3577
|
+
eip155Block?: number;
|
|
3578
|
+
/**
|
|
3579
|
+
* EIP-158 block number
|
|
3580
|
+
*/
|
|
3581
|
+
eip158Block?: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Fee configuration
|
|
3584
|
+
*/
|
|
3585
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3586
|
+
/**
|
|
3587
|
+
* Homestead block number
|
|
3588
|
+
*/
|
|
3589
|
+
homesteadBlock?: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* Istanbul block number
|
|
3592
|
+
*/
|
|
3593
|
+
istanbulBlock?: number;
|
|
3594
|
+
/**
|
|
3595
|
+
* London block number
|
|
3596
|
+
*/
|
|
3597
|
+
londonBlock?: number;
|
|
3598
|
+
/**
|
|
3599
|
+
* Muir Glacier block number
|
|
3600
|
+
*/
|
|
3601
|
+
muirGlacierBlock?: number;
|
|
3602
|
+
/**
|
|
3603
|
+
* Petersburg block number
|
|
3604
|
+
*/
|
|
3605
|
+
petersburgBlock?: number;
|
|
3606
|
+
/**
|
|
3607
|
+
* Subnet EVM timestamp
|
|
3608
|
+
*/
|
|
3609
|
+
subnetEVMTimestamp?: number;
|
|
3610
|
+
/**
|
|
3611
|
+
* Allow fee recipients
|
|
3612
|
+
*/
|
|
3613
|
+
allowFeeRecipients?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* Warp configuration
|
|
3616
|
+
*/
|
|
3617
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3618
|
+
/**
|
|
3619
|
+
* Transaction allow list configuration
|
|
3620
|
+
*/
|
|
3621
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3622
|
+
/**
|
|
3623
|
+
* Contract deployer allow list configuration
|
|
3624
|
+
*/
|
|
3625
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3626
|
+
/**
|
|
3627
|
+
* Contract native minter configuration
|
|
3628
|
+
*/
|
|
3629
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3630
|
+
/**
|
|
3631
|
+
* Fee manager configuration
|
|
3632
|
+
*/
|
|
3633
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3634
|
+
/**
|
|
3635
|
+
* Reward manager configuration
|
|
3636
|
+
*/
|
|
3637
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
2539
3638
|
};
|
|
2540
3639
|
|
|
2541
|
-
type
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
3640
|
+
type EvmGenesisDto = {
|
|
3641
|
+
/**
|
|
3642
|
+
* Airdrop amount
|
|
3643
|
+
*/
|
|
3644
|
+
airdropAmount?: number | null;
|
|
3645
|
+
/**
|
|
3646
|
+
* Airdrop hash
|
|
3647
|
+
*/
|
|
3648
|
+
airdropHash?: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* Allocation of accounts and balances
|
|
3651
|
+
*/
|
|
3652
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3653
|
+
/**
|
|
3654
|
+
* Base fee per gas
|
|
3655
|
+
*/
|
|
3656
|
+
baseFeePerGas?: number | null;
|
|
3657
|
+
/**
|
|
3658
|
+
* Blob gas used
|
|
3659
|
+
*/
|
|
3660
|
+
blobGasUsed?: string | null;
|
|
3661
|
+
/**
|
|
3662
|
+
* Coinbase address
|
|
3663
|
+
*/
|
|
3664
|
+
coinbase?: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* Genesis configuration
|
|
3667
|
+
*/
|
|
3668
|
+
config?: EvmGenesisConfigDto;
|
|
3669
|
+
/**
|
|
3670
|
+
* Difficulty
|
|
3671
|
+
*/
|
|
3672
|
+
difficulty?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Excess blob gas
|
|
3675
|
+
*/
|
|
3676
|
+
excessBlobGas?: string | null;
|
|
3677
|
+
/**
|
|
3678
|
+
* Extra data
|
|
3679
|
+
*/
|
|
3680
|
+
extraData?: string;
|
|
3681
|
+
/**
|
|
3682
|
+
* Gas limit
|
|
3683
|
+
*/
|
|
3684
|
+
gasLimit?: string;
|
|
3685
|
+
/**
|
|
3686
|
+
* Gas used
|
|
3687
|
+
*/
|
|
3688
|
+
gasUsed?: string;
|
|
3689
|
+
/**
|
|
3690
|
+
* Mix hash
|
|
3691
|
+
*/
|
|
3692
|
+
mixHash?: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* Nonce
|
|
3695
|
+
*/
|
|
3696
|
+
nonce?: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* Block number
|
|
3699
|
+
*/
|
|
3700
|
+
number?: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* Parent hash
|
|
3703
|
+
*/
|
|
3704
|
+
parentHash?: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Block timestamp
|
|
3707
|
+
*/
|
|
3708
|
+
timestamp?: string;
|
|
2549
3709
|
};
|
|
2550
3710
|
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
3711
|
+
type Blockchain = {
|
|
3712
|
+
createBlockTimestamp: number;
|
|
3713
|
+
createBlockNumber: string;
|
|
3714
|
+
blockchainId: string;
|
|
3715
|
+
vmId: string;
|
|
3716
|
+
subnetId: string;
|
|
3717
|
+
blockchainName: string;
|
|
2554
3718
|
/**
|
|
2555
|
-
*
|
|
2556
|
-
* Gets operation details for the given operation id.
|
|
2557
|
-
* @returns OperationStatusResponse Successful response
|
|
2558
|
-
* @throws ApiError
|
|
3719
|
+
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
2559
3720
|
*/
|
|
2560
|
-
|
|
2561
|
-
/**
|
|
2562
|
-
* UUID of given operation
|
|
2563
|
-
*/
|
|
2564
|
-
operationId: string;
|
|
2565
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
3721
|
+
evmChainId?: number;
|
|
2566
3722
|
/**
|
|
2567
|
-
*
|
|
2568
|
-
* Trigger a transaction export operation with given parameters.
|
|
2569
|
-
*
|
|
2570
|
-
* 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.
|
|
2571
|
-
* @returns OperationStatusResponse Successful response
|
|
2572
|
-
* @throws ApiError
|
|
3723
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
2573
3724
|
*/
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2577
|
-
}
|
|
3725
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3726
|
+
};
|
|
2578
3727
|
|
|
2579
3728
|
declare enum BlockchainIds {
|
|
2580
3729
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2581
3730
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2582
3731
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2584
3732
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2585
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2586
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3733
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2587
3734
|
}
|
|
2588
3735
|
|
|
2589
3736
|
type ChainAddressChainIdMap = {
|
|
@@ -2607,16 +3754,31 @@ type DelegatorsDetails = {
|
|
|
2607
3754
|
};
|
|
2608
3755
|
|
|
2609
3756
|
type StakingDistribution = {
|
|
3757
|
+
/**
|
|
3758
|
+
* AvalancheGo version for the validator node.
|
|
3759
|
+
*/
|
|
2610
3760
|
version: string;
|
|
3761
|
+
/**
|
|
3762
|
+
* The total amount staked by validators using this version.
|
|
3763
|
+
*/
|
|
2611
3764
|
amountStaked: string;
|
|
3765
|
+
/**
|
|
3766
|
+
* The number of validators using this version.
|
|
3767
|
+
*/
|
|
2612
3768
|
validatorCount: number;
|
|
2613
3769
|
};
|
|
2614
3770
|
|
|
2615
3771
|
type ValidatorsDetails = {
|
|
2616
3772
|
validatorCount: number;
|
|
2617
3773
|
totalAmountStaked: string;
|
|
3774
|
+
/**
|
|
3775
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3776
|
+
*/
|
|
2618
3777
|
estimatedAnnualStakingReward: string;
|
|
2619
3778
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3779
|
+
/**
|
|
3780
|
+
* Ratio of total active stake amount to the current supply.
|
|
3781
|
+
*/
|
|
2620
3782
|
stakingRatio: string;
|
|
2621
3783
|
};
|
|
2622
3784
|
|
|
@@ -2625,15 +3787,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2625
3787
|
delegatorDetails: DelegatorsDetails;
|
|
2626
3788
|
};
|
|
2627
3789
|
|
|
2628
|
-
type Blockchain = {
|
|
2629
|
-
createBlockTimestamp: number;
|
|
2630
|
-
createBlockNumber: string;
|
|
2631
|
-
blockchainId: string;
|
|
2632
|
-
vmId: string;
|
|
2633
|
-
subnetId: string;
|
|
2634
|
-
blockchainName: string;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
3790
|
type ListBlockchainsResponse = {
|
|
2638
3791
|
/**
|
|
2639
3792
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2668,7 +3821,13 @@ type CompletedDelegatorDetails = {
|
|
|
2668
3821
|
delegationFee: string;
|
|
2669
3822
|
startTimestamp: number;
|
|
2670
3823
|
endTimestamp: number;
|
|
3824
|
+
/**
|
|
3825
|
+
* Total rewards distributed for the successful delegation.
|
|
3826
|
+
*/
|
|
2671
3827
|
grossReward: string;
|
|
3828
|
+
/**
|
|
3829
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3830
|
+
*/
|
|
2672
3831
|
netReward: string;
|
|
2673
3832
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2674
3833
|
};
|
|
@@ -2686,7 +3845,13 @@ type PendingDelegatorDetails = {
|
|
|
2686
3845
|
delegationFee: string;
|
|
2687
3846
|
startTimestamp: number;
|
|
2688
3847
|
endTimestamp: number;
|
|
3848
|
+
/**
|
|
3849
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3850
|
+
*/
|
|
2689
3851
|
estimatedGrossReward: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3854
|
+
*/
|
|
2690
3855
|
estimatedNetReward: string;
|
|
2691
3856
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2692
3857
|
};
|
|
@@ -2717,6 +3882,10 @@ type L1ValidatorDetailsFull = {
|
|
|
2717
3882
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2718
3883
|
*/
|
|
2719
3884
|
validationId: string;
|
|
3885
|
+
/**
|
|
3886
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3887
|
+
*/
|
|
3888
|
+
validationIdHex: string;
|
|
2720
3889
|
nodeId: string;
|
|
2721
3890
|
subnetId: string;
|
|
2722
3891
|
/**
|
|
@@ -2751,10 +3920,10 @@ type ListL1ValidatorsResponse = {
|
|
|
2751
3920
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
3921
|
*/
|
|
2753
3922
|
validators: Array<L1ValidatorDetailsFull>;
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
3923
|
+
/**
|
|
3924
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3925
|
+
*/
|
|
3926
|
+
blockHeight: string;
|
|
2758
3927
|
};
|
|
2759
3928
|
|
|
2760
3929
|
type L1ValidatorManagerDetails = {
|
|
@@ -2804,11 +3973,15 @@ type Subnet = {
|
|
|
2804
3973
|
* Whether the subnet is an L1 or not.
|
|
2805
3974
|
*/
|
|
2806
3975
|
isL1: boolean;
|
|
3976
|
+
/**
|
|
3977
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3978
|
+
*/
|
|
3979
|
+
l1ConversionTransactionHash?: string;
|
|
2807
3980
|
/**
|
|
2808
3981
|
* L1 validator manager details.
|
|
2809
3982
|
*/
|
|
2810
3983
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2811
|
-
blockchains: Array<
|
|
3984
|
+
blockchains: Array<Blockchain>;
|
|
2812
3985
|
};
|
|
2813
3986
|
|
|
2814
3987
|
type ListSubnetsResponse = {
|
|
@@ -2824,6 +3997,29 @@ type BlsCredentials = {
|
|
|
2824
3997
|
proofOfPossession: string;
|
|
2825
3998
|
};
|
|
2826
3999
|
|
|
4000
|
+
type Geolocation = {
|
|
4001
|
+
/**
|
|
4002
|
+
* The name of the validator node.
|
|
4003
|
+
*/
|
|
4004
|
+
city: string;
|
|
4005
|
+
/**
|
|
4006
|
+
* The city of the validator node.
|
|
4007
|
+
*/
|
|
4008
|
+
country: string;
|
|
4009
|
+
/**
|
|
4010
|
+
* The country code of the validator node.
|
|
4011
|
+
*/
|
|
4012
|
+
countryCode: string;
|
|
4013
|
+
/**
|
|
4014
|
+
* The latitude of the validator node.
|
|
4015
|
+
*/
|
|
4016
|
+
latitude: number;
|
|
4017
|
+
/**
|
|
4018
|
+
* The longitude of the validator node.
|
|
4019
|
+
*/
|
|
4020
|
+
longitude: number;
|
|
4021
|
+
};
|
|
4022
|
+
|
|
2827
4023
|
type Rewards = {
|
|
2828
4024
|
validationRewardAmount: string;
|
|
2829
4025
|
delegationRewardAmount: string;
|
|
@@ -2855,6 +4051,9 @@ type ActiveValidatorDetails = {
|
|
|
2855
4051
|
nodeId: string;
|
|
2856
4052
|
subnetId: string;
|
|
2857
4053
|
amountStaked: string;
|
|
4054
|
+
/**
|
|
4055
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4056
|
+
*/
|
|
2858
4057
|
delegationFee?: string;
|
|
2859
4058
|
startTimestamp: number;
|
|
2860
4059
|
endTimestamp: number;
|
|
@@ -2862,15 +4061,37 @@ type ActiveValidatorDetails = {
|
|
|
2862
4061
|
* Present for AddPermissionlessValidatorTx
|
|
2863
4062
|
*/
|
|
2864
4063
|
blsCredentials?: BlsCredentials;
|
|
4064
|
+
/**
|
|
4065
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
4066
|
+
*/
|
|
2865
4067
|
stakePercentage: number;
|
|
4068
|
+
/**
|
|
4069
|
+
* The number of delegators linked to the validator.
|
|
4070
|
+
*/
|
|
2866
4071
|
delegatorCount: number;
|
|
4072
|
+
/**
|
|
4073
|
+
* The total amount in nAVAX delegated to the validator.
|
|
4074
|
+
*/
|
|
2867
4075
|
amountDelegated?: string;
|
|
4076
|
+
/**
|
|
4077
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
4078
|
+
*/
|
|
2868
4079
|
uptimePerformance: number;
|
|
2869
4080
|
avalancheGoVersion?: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
4083
|
+
*/
|
|
2870
4084
|
delegationCapacity?: string;
|
|
4085
|
+
/**
|
|
4086
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
4087
|
+
*/
|
|
2871
4088
|
potentialRewards: Rewards;
|
|
2872
4089
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2873
4090
|
validatorHealth: ValidatorHealthDetails;
|
|
4091
|
+
/**
|
|
4092
|
+
* The geographical location of the validator node, if available.
|
|
4093
|
+
*/
|
|
4094
|
+
geolocation: Geolocation | null;
|
|
2874
4095
|
};
|
|
2875
4096
|
declare namespace ActiveValidatorDetails {
|
|
2876
4097
|
enum validationStatus {
|
|
@@ -2883,6 +4104,9 @@ type CompletedValidatorDetails = {
|
|
|
2883
4104
|
nodeId: string;
|
|
2884
4105
|
subnetId: string;
|
|
2885
4106
|
amountStaked: string;
|
|
4107
|
+
/**
|
|
4108
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4109
|
+
*/
|
|
2886
4110
|
delegationFee?: string;
|
|
2887
4111
|
startTimestamp: number;
|
|
2888
4112
|
endTimestamp: number;
|
|
@@ -2906,6 +4130,9 @@ type PendingValidatorDetails = {
|
|
|
2906
4130
|
nodeId: string;
|
|
2907
4131
|
subnetId: string;
|
|
2908
4132
|
amountStaked: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4135
|
+
*/
|
|
2909
4136
|
delegationFee?: string;
|
|
2910
4137
|
startTimestamp: number;
|
|
2911
4138
|
endTimestamp: number;
|
|
@@ -2926,6 +4153,9 @@ type RemovedValidatorDetails = {
|
|
|
2926
4153
|
nodeId: string;
|
|
2927
4154
|
subnetId: string;
|
|
2928
4155
|
amountStaked: string;
|
|
4156
|
+
/**
|
|
4157
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4158
|
+
*/
|
|
2929
4159
|
delegationFee?: string;
|
|
2930
4160
|
startTimestamp: number;
|
|
2931
4161
|
endTimestamp: number;
|
|
@@ -2933,7 +4163,13 @@ type RemovedValidatorDetails = {
|
|
|
2933
4163
|
* Present for AddPermissionlessValidatorTx
|
|
2934
4164
|
*/
|
|
2935
4165
|
blsCredentials?: BlsCredentials;
|
|
4166
|
+
/**
|
|
4167
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4168
|
+
*/
|
|
2936
4169
|
removeTxHash: string;
|
|
4170
|
+
/**
|
|
4171
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4172
|
+
*/
|
|
2937
4173
|
removeTimestamp: number;
|
|
2938
4174
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2939
4175
|
};
|
|
@@ -3013,7 +4249,6 @@ type XChainAssetDetails = {
|
|
|
3013
4249
|
declare enum XChainId {
|
|
3014
4250
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3015
4251
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3016
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3017
4252
|
X_CHAIN = "x-chain"
|
|
3018
4253
|
}
|
|
3019
4254
|
|
|
@@ -3084,7 +4319,7 @@ declare class PrimaryNetworkService {
|
|
|
3084
4319
|
*/
|
|
3085
4320
|
pageToken?: string;
|
|
3086
4321
|
/**
|
|
3087
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4322
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3088
4323
|
*/
|
|
3089
4324
|
pageSize?: number;
|
|
3090
4325
|
/**
|
|
@@ -3092,6 +4327,22 @@ declare class PrimaryNetworkService {
|
|
|
3092
4327
|
*/
|
|
3093
4328
|
sortOrder?: SortOrder;
|
|
3094
4329
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4330
|
+
/**
|
|
4331
|
+
* Get blockchain details by ID
|
|
4332
|
+
* Get details of the blockchain registered on the network.
|
|
4333
|
+
* @returns Blockchain Successful response
|
|
4334
|
+
* @throws ApiError
|
|
4335
|
+
*/
|
|
4336
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4337
|
+
/**
|
|
4338
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4339
|
+
*/
|
|
4340
|
+
blockchainId: string;
|
|
4341
|
+
/**
|
|
4342
|
+
* Either mainnet or testnet/fuji.
|
|
4343
|
+
*/
|
|
4344
|
+
network: Network;
|
|
4345
|
+
}): CancelablePromise<Blockchain>;
|
|
3095
4346
|
/**
|
|
3096
4347
|
* List subnets
|
|
3097
4348
|
* Lists all subnets registered on the network.
|
|
@@ -3108,7 +4359,7 @@ declare class PrimaryNetworkService {
|
|
|
3108
4359
|
*/
|
|
3109
4360
|
pageToken?: string;
|
|
3110
4361
|
/**
|
|
3111
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4362
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3112
4363
|
*/
|
|
3113
4364
|
pageSize?: number;
|
|
3114
4365
|
/**
|
|
@@ -3134,7 +4385,7 @@ declare class PrimaryNetworkService {
|
|
|
3134
4385
|
}): CancelablePromise<Subnet>;
|
|
3135
4386
|
/**
|
|
3136
4387
|
* List validators
|
|
3137
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4388
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3138
4389
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3139
4390
|
* @throws ApiError
|
|
3140
4391
|
*/
|
|
@@ -3152,7 +4403,7 @@ declare class PrimaryNetworkService {
|
|
|
3152
4403
|
*/
|
|
3153
4404
|
pageSize?: number;
|
|
3154
4405
|
/**
|
|
3155
|
-
* A comma separated list of node ids to filter by.
|
|
4406
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3156
4407
|
*/
|
|
3157
4408
|
nodeIds?: string;
|
|
3158
4409
|
/**
|
|
@@ -3296,7 +4547,7 @@ declare class PrimaryNetworkService {
|
|
|
3296
4547
|
/**
|
|
3297
4548
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3298
4549
|
*/
|
|
3299
|
-
l1ValidationId?:
|
|
4550
|
+
l1ValidationId?: string;
|
|
3300
4551
|
includeInactiveL1Validators?: boolean;
|
|
3301
4552
|
/**
|
|
3302
4553
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -3313,10 +4564,8 @@ declare enum BlockchainId {
|
|
|
3313
4564
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3314
4565
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3315
4566
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3316
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3317
4567
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3318
4568
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3319
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3320
4569
|
P_CHAIN = "p-chain",
|
|
3321
4570
|
X_CHAIN = "x-chain",
|
|
3322
4571
|
C_CHAIN = "c-chain"
|
|
@@ -3612,7 +4861,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3612
4861
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3613
4862
|
* @throws ApiError
|
|
3614
4863
|
*/
|
|
3615
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4864
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3616
4865
|
/**
|
|
3617
4866
|
* A primary network blockchain id or alias.
|
|
3618
4867
|
*/
|
|
@@ -3625,6 +4874,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3625
4874
|
* A primary network (P or X chain) nodeId.
|
|
3626
4875
|
*/
|
|
3627
4876
|
nodeId: string;
|
|
4877
|
+
/**
|
|
4878
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4879
|
+
*/
|
|
4880
|
+
startTimestamp?: number;
|
|
4881
|
+
/**
|
|
4882
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4883
|
+
*/
|
|
4884
|
+
endTimestamp?: number;
|
|
3628
4885
|
/**
|
|
3629
4886
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3630
4887
|
*/
|
|
@@ -3640,7 +4897,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3640
4897
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3641
4898
|
* @throws ApiError
|
|
3642
4899
|
*/
|
|
3643
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4900
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3644
4901
|
/**
|
|
3645
4902
|
* A primary network blockchain id or alias.
|
|
3646
4903
|
*/
|
|
@@ -3649,6 +4906,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3649
4906
|
* Either mainnet or testnet/fuji.
|
|
3650
4907
|
*/
|
|
3651
4908
|
network: Network;
|
|
4909
|
+
/**
|
|
4910
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4911
|
+
*/
|
|
4912
|
+
startTimestamp?: number;
|
|
4913
|
+
/**
|
|
4914
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4915
|
+
*/
|
|
4916
|
+
endTimestamp?: number;
|
|
3652
4917
|
/**
|
|
3653
4918
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3654
4919
|
*/
|
|
@@ -3890,6 +5155,10 @@ type Utxo = {
|
|
|
3890
5155
|
* UTXO ID for this output.
|
|
3891
5156
|
*/
|
|
3892
5157
|
utxoId: string;
|
|
5158
|
+
/**
|
|
5159
|
+
* The bytes of the UTXO
|
|
5160
|
+
*/
|
|
5161
|
+
utxoBytes?: string;
|
|
3893
5162
|
/**
|
|
3894
5163
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3895
5164
|
*/
|
|
@@ -4058,11 +5327,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4058
5327
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4059
5328
|
};
|
|
4060
5329
|
|
|
5330
|
+
type BlockchainInfo = {
|
|
5331
|
+
chainName: string;
|
|
5332
|
+
vmId: string;
|
|
5333
|
+
/**
|
|
5334
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
5335
|
+
*/
|
|
5336
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5337
|
+
};
|
|
5338
|
+
|
|
4061
5339
|
type L1ValidatorDetailsTransaction = {
|
|
4062
5340
|
/**
|
|
4063
5341
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4064
5342
|
*/
|
|
4065
5343
|
validationId: string;
|
|
5344
|
+
/**
|
|
5345
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5346
|
+
*/
|
|
5347
|
+
validationIdHex: string;
|
|
4066
5348
|
nodeId: string;
|
|
4067
5349
|
subnetId: string;
|
|
4068
5350
|
/**
|
|
@@ -4074,7 +5356,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4074
5356
|
*/
|
|
4075
5357
|
remainingBalance: number;
|
|
4076
5358
|
/**
|
|
4077
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
5359
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4078
5360
|
*/
|
|
4079
5361
|
balanceChange?: number;
|
|
4080
5362
|
blsCredentials?: Record<string, any>;
|
|
@@ -4104,6 +5386,9 @@ declare enum PChainTransactionType {
|
|
|
4104
5386
|
UNKNOWN = "UNKNOWN"
|
|
4105
5387
|
}
|
|
4106
5388
|
|
|
5389
|
+
/**
|
|
5390
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5391
|
+
*/
|
|
4107
5392
|
declare enum UtxoType {
|
|
4108
5393
|
STAKE = "STAKE",
|
|
4109
5394
|
TRANSFER = "TRANSFER"
|
|
@@ -4131,6 +5416,10 @@ type PChainUtxo = {
|
|
|
4131
5416
|
* UTXO ID for this output.
|
|
4132
5417
|
*/
|
|
4133
5418
|
utxoId: string;
|
|
5419
|
+
/**
|
|
5420
|
+
* The bytes of the UTXO
|
|
5421
|
+
*/
|
|
5422
|
+
utxoBytes?: string;
|
|
4134
5423
|
/**
|
|
4135
5424
|
* @deprecated
|
|
4136
5425
|
*/
|
|
@@ -4141,16 +5430,43 @@ type PChainUtxo = {
|
|
|
4141
5430
|
assetId: string;
|
|
4142
5431
|
blockNumber: string;
|
|
4143
5432
|
blockTimestamp: number;
|
|
5433
|
+
/**
|
|
5434
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5435
|
+
*/
|
|
4144
5436
|
consumingBlockNumber?: string;
|
|
5437
|
+
/**
|
|
5438
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5439
|
+
*/
|
|
4145
5440
|
consumingBlockTimestamp?: number;
|
|
5441
|
+
/**
|
|
5442
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5443
|
+
*/
|
|
4146
5444
|
platformLocktime?: number;
|
|
5445
|
+
/**
|
|
5446
|
+
* The index of the UTXO in the transaction
|
|
5447
|
+
*/
|
|
4147
5448
|
outputIndex: number;
|
|
4148
5449
|
rewardType?: RewardType;
|
|
5450
|
+
/**
|
|
5451
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5452
|
+
*/
|
|
4149
5453
|
stakeableLocktime?: number;
|
|
4150
5454
|
staked?: boolean;
|
|
5455
|
+
/**
|
|
5456
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5457
|
+
*/
|
|
4151
5458
|
threshold?: number;
|
|
5459
|
+
/**
|
|
5460
|
+
* The hash of the transaction that created this UTXO
|
|
5461
|
+
*/
|
|
4152
5462
|
txHash: string;
|
|
5463
|
+
/**
|
|
5464
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5465
|
+
*/
|
|
4153
5466
|
utxoEndTimestamp?: number;
|
|
5467
|
+
/**
|
|
5468
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5469
|
+
*/
|
|
4154
5470
|
utxoStartTimestamp?: number;
|
|
4155
5471
|
utxoType: UtxoType;
|
|
4156
5472
|
};
|
|
@@ -4162,12 +5478,21 @@ type PChainTransaction = {
|
|
|
4162
5478
|
txHash: string;
|
|
4163
5479
|
txType: PChainTransactionType;
|
|
4164
5480
|
/**
|
|
4165
|
-
* The block
|
|
5481
|
+
* The block creation (proposal) timestamp in seconds
|
|
4166
5482
|
*/
|
|
4167
5483
|
blockTimestamp: number;
|
|
5484
|
+
/**
|
|
5485
|
+
* The height of the block in which the transaction was included
|
|
5486
|
+
*/
|
|
4168
5487
|
blockNumber: string;
|
|
4169
5488
|
blockHash: string;
|
|
5489
|
+
/**
|
|
5490
|
+
* The consumed UTXOs of the transaction
|
|
5491
|
+
*/
|
|
4170
5492
|
consumedUtxos: Array<PChainUtxo>;
|
|
5493
|
+
/**
|
|
5494
|
+
* The newly created UTXOs of the transaction
|
|
5495
|
+
*/
|
|
4171
5496
|
emittedUtxos: Array<PChainUtxo>;
|
|
4172
5497
|
/**
|
|
4173
5498
|
* Source chain for an atomic transaction.
|
|
@@ -4178,11 +5503,11 @@ type PChainTransaction = {
|
|
|
4178
5503
|
*/
|
|
4179
5504
|
destinationChain?: string;
|
|
4180
5505
|
/**
|
|
4181
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5506
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4182
5507
|
*/
|
|
4183
5508
|
value: Array<AssetAmount>;
|
|
4184
5509
|
/**
|
|
4185
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5510
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4186
5511
|
*/
|
|
4187
5512
|
amountBurned: Array<AssetAmount>;
|
|
4188
5513
|
/**
|
|
@@ -4190,7 +5515,7 @@ type PChainTransaction = {
|
|
|
4190
5515
|
*/
|
|
4191
5516
|
amountStaked: Array<AssetAmount>;
|
|
4192
5517
|
/**
|
|
4193
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5518
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4194
5519
|
*/
|
|
4195
5520
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4196
5521
|
/**
|
|
@@ -4202,11 +5527,11 @@ type PChainTransaction = {
|
|
|
4202
5527
|
*/
|
|
4203
5528
|
endTimestamp?: number;
|
|
4204
5529
|
/**
|
|
4205
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5530
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4206
5531
|
*/
|
|
4207
5532
|
delegationFeePercent?: string;
|
|
4208
5533
|
/**
|
|
4209
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5534
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4210
5535
|
*/
|
|
4211
5536
|
nodeId?: string;
|
|
4212
5537
|
/**
|
|
@@ -4222,14 +5547,17 @@ type PChainTransaction = {
|
|
|
4222
5547
|
*/
|
|
4223
5548
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4224
5549
|
/**
|
|
4225
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5550
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4226
5551
|
*/
|
|
4227
5552
|
estimatedReward?: string;
|
|
5553
|
+
/**
|
|
5554
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5555
|
+
*/
|
|
4228
5556
|
rewardTxHash?: string;
|
|
4229
5557
|
rewardAddresses?: Array<string>;
|
|
4230
5558
|
memo?: string;
|
|
4231
5559
|
/**
|
|
4232
|
-
*
|
|
5560
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4233
5561
|
*/
|
|
4234
5562
|
stakingTxHash?: string;
|
|
4235
5563
|
/**
|
|
@@ -4237,9 +5565,13 @@ type PChainTransaction = {
|
|
|
4237
5565
|
*/
|
|
4238
5566
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4239
5567
|
/**
|
|
4240
|
-
* Present for AddPermissionlessValidatorTx
|
|
5568
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4241
5569
|
*/
|
|
4242
5570
|
blsCredentials?: BlsCredentials;
|
|
5571
|
+
/**
|
|
5572
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5573
|
+
*/
|
|
5574
|
+
blockchainInfo?: BlockchainInfo;
|
|
4243
5575
|
};
|
|
4244
5576
|
|
|
4245
5577
|
type ListPChainTransactionsResponse = {
|
|
@@ -4592,6 +5924,36 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4592
5924
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
4593
5925
|
}
|
|
4594
5926
|
|
|
5927
|
+
declare enum PrimaryNetworkType {
|
|
5928
|
+
MAINNET = "mainnet",
|
|
5929
|
+
FUJI = "fuji"
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
type LastActivityTimestamp = {
|
|
5933
|
+
/**
|
|
5934
|
+
* Unix timestamp in seconds at which the last activity occurred.
|
|
5935
|
+
*/
|
|
5936
|
+
timestamp: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Block height at which the last activity occurred.
|
|
5939
|
+
*/
|
|
5940
|
+
blockNumber: string;
|
|
5941
|
+
/**
|
|
5942
|
+
* Transaction hash of the transaction that created or consumed the address' UTXOs.
|
|
5943
|
+
*/
|
|
5944
|
+
txHash: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* UTXO ID of the UTXO that was created or consumed.
|
|
5947
|
+
*/
|
|
5948
|
+
utxoId: string;
|
|
5949
|
+
/**
|
|
5950
|
+
* Whether the last activity was a consumption of an existing UTXO.
|
|
5951
|
+
*/
|
|
5952
|
+
isConsumed: boolean;
|
|
5953
|
+
chainName: PrimaryNetworkChainName;
|
|
5954
|
+
network: PrimaryNetworkType;
|
|
5955
|
+
};
|
|
5956
|
+
|
|
4595
5957
|
type ListPChainUtxosResponse = {
|
|
4596
5958
|
/**
|
|
4597
5959
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -4610,6 +5972,18 @@ type ListUtxosResponse = {
|
|
|
4610
5972
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4611
5973
|
};
|
|
4612
5974
|
|
|
5975
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5976
|
+
/**
|
|
5977
|
+
* Comma-separated list of primary network addresses
|
|
5978
|
+
*/
|
|
5979
|
+
addresses: string;
|
|
5980
|
+
};
|
|
5981
|
+
|
|
5982
|
+
declare enum UtxosSortByOption {
|
|
5983
|
+
TIMESTAMP = "timestamp",
|
|
5984
|
+
AMOUNT = "amount"
|
|
5985
|
+
}
|
|
5986
|
+
|
|
4613
5987
|
declare class PrimaryNetworkUtxOsService {
|
|
4614
5988
|
readonly httpRequest: BaseHttpRequest;
|
|
4615
5989
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4619,7 +5993,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4619
5993
|
* @returns any Successful response
|
|
4620
5994
|
* @throws ApiError
|
|
4621
5995
|
*/
|
|
4622
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5996
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4623
5997
|
/**
|
|
4624
5998
|
* A primary network blockchain id or alias.
|
|
4625
5999
|
*/
|
|
@@ -4644,15 +6018,105 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4644
6018
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4645
6019
|
*/
|
|
4646
6020
|
assetId?: string;
|
|
6021
|
+
/**
|
|
6022
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6023
|
+
*/
|
|
6024
|
+
minUtxoAmount?: number;
|
|
6025
|
+
/**
|
|
6026
|
+
* Boolean filter to include spent UTXOs.
|
|
6027
|
+
*/
|
|
6028
|
+
includeSpent?: boolean;
|
|
6029
|
+
/**
|
|
6030
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6031
|
+
*/
|
|
6032
|
+
sortBy?: UtxosSortByOption;
|
|
6033
|
+
/**
|
|
6034
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
6035
|
+
*/
|
|
6036
|
+
sortOrder?: SortOrder;
|
|
6037
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6038
|
+
/**
|
|
6039
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
6040
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
6041
|
+
* @returns any Successful response
|
|
6042
|
+
* @throws ApiError
|
|
6043
|
+
*/
|
|
6044
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
6045
|
+
/**
|
|
6046
|
+
* A primary network blockchain id or alias.
|
|
6047
|
+
*/
|
|
6048
|
+
blockchainId: BlockchainId;
|
|
6049
|
+
/**
|
|
6050
|
+
* Either mainnet or testnet/fuji.
|
|
6051
|
+
*/
|
|
6052
|
+
network: Network;
|
|
6053
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6054
|
+
/**
|
|
6055
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
6056
|
+
*/
|
|
6057
|
+
pageToken?: string;
|
|
6058
|
+
/**
|
|
6059
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
6060
|
+
*/
|
|
6061
|
+
pageSize?: number;
|
|
6062
|
+
/**
|
|
6063
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
6064
|
+
*/
|
|
6065
|
+
assetId?: string;
|
|
6066
|
+
/**
|
|
6067
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6068
|
+
*/
|
|
6069
|
+
minUtxoAmount?: number;
|
|
4647
6070
|
/**
|
|
4648
6071
|
* Boolean filter to include spent UTXOs.
|
|
4649
6072
|
*/
|
|
4650
6073
|
includeSpent?: boolean;
|
|
6074
|
+
/**
|
|
6075
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6076
|
+
*/
|
|
6077
|
+
sortBy?: UtxosSortByOption;
|
|
4651
6078
|
/**
|
|
4652
6079
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4653
6080
|
*/
|
|
4654
6081
|
sortOrder?: SortOrder;
|
|
4655
6082
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6083
|
+
/**
|
|
6084
|
+
* Get last activity timestamp by addresses
|
|
6085
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
|
|
6086
|
+
* @returns any Successful response
|
|
6087
|
+
* @throws ApiError
|
|
6088
|
+
*/
|
|
6089
|
+
getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
|
|
6090
|
+
/**
|
|
6091
|
+
* A primary network blockchain id or alias.
|
|
6092
|
+
*/
|
|
6093
|
+
blockchainId: BlockchainId;
|
|
6094
|
+
/**
|
|
6095
|
+
* Either mainnet or testnet/fuji.
|
|
6096
|
+
*/
|
|
6097
|
+
network: Network;
|
|
6098
|
+
/**
|
|
6099
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
6100
|
+
*/
|
|
6101
|
+
addresses?: string;
|
|
6102
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
6103
|
+
/**
|
|
6104
|
+
* Get last activity timestamp by addresses v2
|
|
6105
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
|
|
6106
|
+
* @returns any Successful response
|
|
6107
|
+
* @throws ApiError
|
|
6108
|
+
*/
|
|
6109
|
+
getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
|
|
6110
|
+
/**
|
|
6111
|
+
* A primary network blockchain id or alias.
|
|
6112
|
+
*/
|
|
6113
|
+
blockchainId: BlockchainId;
|
|
6114
|
+
/**
|
|
6115
|
+
* Either mainnet or testnet/fuji.
|
|
6116
|
+
*/
|
|
6117
|
+
network: Network;
|
|
6118
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6119
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
4656
6120
|
}
|
|
4657
6121
|
|
|
4658
6122
|
type XChainVertex = {
|
|
@@ -4761,10 +6225,30 @@ type SignatureAggregationResponse = {
|
|
|
4761
6225
|
};
|
|
4762
6226
|
|
|
4763
6227
|
type SignatureAggregatorRequest = {
|
|
4764
|
-
|
|
6228
|
+
/**
|
|
6229
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
6230
|
+
*/
|
|
6231
|
+
message?: string;
|
|
6232
|
+
/**
|
|
6233
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
6234
|
+
*/
|
|
4765
6235
|
justification?: string;
|
|
6236
|
+
/**
|
|
6237
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6238
|
+
*/
|
|
4766
6239
|
signingSubnetId?: string;
|
|
6240
|
+
/**
|
|
6241
|
+
* Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
|
|
6242
|
+
*/
|
|
4767
6243
|
quorumPercentage?: number;
|
|
6244
|
+
/**
|
|
6245
|
+
* Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
|
|
6246
|
+
*/
|
|
6247
|
+
quorumPercentageBuffer?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
|
|
6250
|
+
*/
|
|
6251
|
+
pChainHeight?: number;
|
|
4768
6252
|
};
|
|
4769
6253
|
|
|
4770
6254
|
declare class SignatureAggregatorService {
|
|
@@ -4776,9 +6260,29 @@ declare class SignatureAggregatorService {
|
|
|
4776
6260
|
* @returns SignatureAggregationResponse Successful response
|
|
4777
6261
|
* @throws ApiError
|
|
4778
6262
|
*/
|
|
4779
|
-
aggregateSignatures({ requestBody, }: {
|
|
6263
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6264
|
+
/**
|
|
6265
|
+
* Either mainnet or testnet/fuji.
|
|
6266
|
+
*/
|
|
6267
|
+
network: Network;
|
|
4780
6268
|
requestBody: SignatureAggregatorRequest;
|
|
4781
6269
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6270
|
+
/**
|
|
6271
|
+
* Get Aggregated Signatures
|
|
6272
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6273
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6274
|
+
* @throws ApiError
|
|
6275
|
+
*/
|
|
6276
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6277
|
+
/**
|
|
6278
|
+
* Either mainnet or testnet/fuji.
|
|
6279
|
+
*/
|
|
6280
|
+
network: Network;
|
|
6281
|
+
/**
|
|
6282
|
+
* A primary network (P or X chain) transaction hash.
|
|
6283
|
+
*/
|
|
6284
|
+
txHash: string;
|
|
6285
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4782
6286
|
}
|
|
4783
6287
|
|
|
4784
6288
|
type TeleporterDestinationTransaction = {
|
|
@@ -4912,15 +6416,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4912
6416
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4913
6417
|
*/
|
|
4914
6418
|
nextPageToken?: string;
|
|
4915
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6419
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4916
6420
|
};
|
|
4917
6421
|
|
|
4918
6422
|
declare class TeleporterService {
|
|
4919
6423
|
readonly httpRequest: BaseHttpRequest;
|
|
4920
6424
|
constructor(httpRequest: BaseHttpRequest);
|
|
4921
6425
|
/**
|
|
4922
|
-
*
|
|
4923
|
-
* Gets a teleporter message by message ID.
|
|
6426
|
+
* @deprecated
|
|
6427
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6428
|
+
*
|
|
6429
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4924
6430
|
* @returns any Successful response
|
|
4925
6431
|
* @throws ApiError
|
|
4926
6432
|
*/
|
|
@@ -4931,8 +6437,10 @@ declare class TeleporterService {
|
|
|
4931
6437
|
messageId: string;
|
|
4932
6438
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4933
6439
|
/**
|
|
4934
|
-
*
|
|
4935
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6440
|
+
* @deprecated
|
|
6441
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6442
|
+
*
|
|
6443
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4936
6444
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4937
6445
|
* @throws ApiError
|
|
4938
6446
|
*/
|
|
@@ -4971,8 +6479,10 @@ declare class TeleporterService {
|
|
|
4971
6479
|
network?: Network;
|
|
4972
6480
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4973
6481
|
/**
|
|
4974
|
-
*
|
|
4975
|
-
* Lists teleporter messages by address. Ordered by
|
|
6482
|
+
* @deprecated
|
|
6483
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6484
|
+
*
|
|
6485
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4976
6486
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4977
6487
|
* @throws ApiError
|
|
4978
6488
|
*/
|
|
@@ -5005,68 +6515,212 @@ type AddressesChangeRequest = {
|
|
|
5005
6515
|
|
|
5006
6516
|
type AddressActivityMetadata = {
|
|
5007
6517
|
/**
|
|
5008
|
-
*
|
|
6518
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6519
|
+
*/
|
|
6520
|
+
eventSignatures?: Array<string>;
|
|
6521
|
+
/**
|
|
6522
|
+
* Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
5009
6523
|
*/
|
|
5010
6524
|
addresses: Array<string>;
|
|
6525
|
+
};
|
|
6526
|
+
|
|
6527
|
+
type EVMAddressActivityRequest = {
|
|
6528
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6529
|
+
url: string;
|
|
6530
|
+
name?: string;
|
|
6531
|
+
description?: string;
|
|
6532
|
+
chainId: string;
|
|
6533
|
+
metadata: AddressActivityMetadata;
|
|
5011
6534
|
/**
|
|
5012
|
-
*
|
|
6535
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5013
6536
|
*/
|
|
5014
|
-
|
|
6537
|
+
includeInternalTxs?: boolean;
|
|
6538
|
+
/**
|
|
6539
|
+
* Whether to include logs in the webhook payload.
|
|
6540
|
+
*/
|
|
6541
|
+
includeLogs?: boolean;
|
|
5015
6542
|
};
|
|
6543
|
+
declare namespace EVMAddressActivityRequest {
|
|
6544
|
+
enum eventType {
|
|
6545
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
5016
6548
|
|
|
5017
|
-
declare enum
|
|
6549
|
+
declare enum AddressActivityEventType {
|
|
5018
6550
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5019
6551
|
}
|
|
5020
6552
|
|
|
5021
|
-
|
|
6553
|
+
declare enum WebhookStatusType {
|
|
6554
|
+
ACTIVE = "active",
|
|
6555
|
+
INACTIVE = "inactive"
|
|
6556
|
+
}
|
|
6557
|
+
|
|
6558
|
+
type EVMAddressActivityResponse = {
|
|
6559
|
+
id: string;
|
|
5022
6560
|
url: string;
|
|
5023
6561
|
chainId: string;
|
|
5024
|
-
|
|
6562
|
+
status: WebhookStatusType;
|
|
6563
|
+
createdAt: number;
|
|
6564
|
+
name: string;
|
|
6565
|
+
description: string;
|
|
6566
|
+
eventType: AddressActivityEventType;
|
|
5025
6567
|
metadata: AddressActivityMetadata;
|
|
5026
|
-
name?: string;
|
|
5027
|
-
description?: string;
|
|
5028
6568
|
/**
|
|
5029
|
-
* Whether to include traces in the webhook payload.
|
|
6569
|
+
* Whether to include traces in the webhook payload.
|
|
5030
6570
|
*/
|
|
5031
6571
|
includeInternalTxs?: boolean;
|
|
5032
6572
|
/**
|
|
5033
|
-
* Whether to include logs in the webhook payload.
|
|
6573
|
+
* Whether to include logs in the webhook payload.
|
|
6574
|
+
*/
|
|
6575
|
+
includeLogs?: boolean;
|
|
6576
|
+
};
|
|
6577
|
+
|
|
6578
|
+
type ListWebhookAddressesResponse = {
|
|
6579
|
+
/**
|
|
6580
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6581
|
+
*/
|
|
6582
|
+
nextPageToken?: string;
|
|
6583
|
+
addresses: Array<string>;
|
|
6584
|
+
totalAddresses: number;
|
|
6585
|
+
};
|
|
6586
|
+
|
|
6587
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6588
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6589
|
+
}
|
|
6590
|
+
|
|
6591
|
+
/**
|
|
6592
|
+
* The type of key to monitor for the address activity event type.
|
|
6593
|
+
*/
|
|
6594
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6595
|
+
ADDRESSES = "addresses"
|
|
6596
|
+
}
|
|
6597
|
+
|
|
6598
|
+
/**
|
|
6599
|
+
* Array of address activity sub-event types
|
|
6600
|
+
*/
|
|
6601
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6602
|
+
BALANCE_CHANGE = "balance_change",
|
|
6603
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6604
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6607
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6608
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6609
|
+
};
|
|
6610
|
+
|
|
6611
|
+
/**
|
|
6612
|
+
* Type of balance to monitor
|
|
6613
|
+
*/
|
|
6614
|
+
declare enum CommonBalanceType {
|
|
6615
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6616
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6617
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6618
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6619
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6620
|
+
PENDING_STAKED = "pendingStaked",
|
|
6621
|
+
UNLOCKED = "unlocked",
|
|
6622
|
+
LOCKED = "locked",
|
|
6623
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6624
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6625
|
+
}
|
|
6626
|
+
|
|
6627
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6628
|
+
balanceType: CommonBalanceType;
|
|
6629
|
+
/**
|
|
6630
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6631
|
+
*/
|
|
6632
|
+
balanceThreshold: string;
|
|
6633
|
+
};
|
|
6634
|
+
|
|
6635
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6636
|
+
/**
|
|
6637
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6638
|
+
*/
|
|
6639
|
+
eventSignatures?: Array<string>;
|
|
6640
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6641
|
+
/**
|
|
6642
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
6643
|
+
*/
|
|
6644
|
+
keys: Array<string>;
|
|
6645
|
+
/**
|
|
6646
|
+
* Sub-events to monitor
|
|
6647
|
+
*/
|
|
6648
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6649
|
+
/**
|
|
6650
|
+
* Balance threshold filter
|
|
6651
|
+
*/
|
|
6652
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6653
|
+
};
|
|
6654
|
+
|
|
6655
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6656
|
+
id: string;
|
|
6657
|
+
url: string;
|
|
6658
|
+
chainId: string;
|
|
6659
|
+
status: WebhookStatusType;
|
|
6660
|
+
createdAt: number;
|
|
6661
|
+
name: string;
|
|
6662
|
+
description: string;
|
|
6663
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6664
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6665
|
+
};
|
|
6666
|
+
|
|
6667
|
+
declare enum ValidatorActivityEventType {
|
|
6668
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6669
|
+
}
|
|
6670
|
+
|
|
6671
|
+
/**
|
|
6672
|
+
* The type of key to monitor for the validator activity event type.
|
|
6673
|
+
*/
|
|
6674
|
+
declare enum ValidatorActivityKeyType {
|
|
6675
|
+
NODE_ID = "nodeId",
|
|
6676
|
+
SUBNET_ID = "subnetId"
|
|
6677
|
+
}
|
|
6678
|
+
|
|
6679
|
+
type ValidatorActivitySubEvents = {
|
|
6680
|
+
/**
|
|
6681
|
+
* Array of validator activity sub-event types
|
|
5034
6682
|
*/
|
|
5035
|
-
|
|
6683
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5036
6684
|
};
|
|
5037
6685
|
|
|
5038
|
-
type
|
|
6686
|
+
type ValidatorActivityMetadata = {
|
|
5039
6687
|
/**
|
|
5040
|
-
*
|
|
6688
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5041
6689
|
*/
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
totalAddresses: number;
|
|
5045
|
-
};
|
|
5046
|
-
|
|
5047
|
-
declare enum WebhookStatusType {
|
|
5048
|
-
ACTIVE = "active",
|
|
5049
|
-
INACTIVE = "inactive"
|
|
5050
|
-
}
|
|
5051
|
-
|
|
5052
|
-
type WebhookResponse = {
|
|
5053
|
-
id: string;
|
|
5054
|
-
eventType: EventType;
|
|
5055
|
-
metadata: AddressActivityMetadata;
|
|
6690
|
+
eventSignatures?: Array<string>;
|
|
6691
|
+
keyType: ValidatorActivityKeyType;
|
|
5056
6692
|
/**
|
|
5057
|
-
*
|
|
6693
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
5058
6694
|
*/
|
|
5059
|
-
|
|
6695
|
+
keys: Array<string>;
|
|
5060
6696
|
/**
|
|
5061
|
-
*
|
|
6697
|
+
* Sub-events to monitor
|
|
5062
6698
|
*/
|
|
5063
|
-
|
|
6699
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6700
|
+
/**
|
|
6701
|
+
* Array of node IDs to filter the events
|
|
6702
|
+
*/
|
|
6703
|
+
nodeIds?: Array<string>;
|
|
6704
|
+
/**
|
|
6705
|
+
* Array of subnet IDs to filter the events
|
|
6706
|
+
*/
|
|
6707
|
+
subnetIds?: Array<string>;
|
|
6708
|
+
/**
|
|
6709
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6710
|
+
*/
|
|
6711
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6712
|
+
};
|
|
6713
|
+
|
|
6714
|
+
type ValidatorActivityResponse = {
|
|
6715
|
+
id: string;
|
|
5064
6716
|
url: string;
|
|
5065
6717
|
chainId: string;
|
|
5066
6718
|
status: WebhookStatusType;
|
|
5067
6719
|
createdAt: number;
|
|
5068
6720
|
name: string;
|
|
5069
6721
|
description: string;
|
|
6722
|
+
eventType: ValidatorActivityEventType;
|
|
6723
|
+
metadata: ValidatorActivityMetadata;
|
|
5070
6724
|
};
|
|
5071
6725
|
|
|
5072
6726
|
type ListWebhooksResponse = {
|
|
@@ -5074,9 +6728,27 @@ type ListWebhooksResponse = {
|
|
|
5074
6728
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5075
6729
|
*/
|
|
5076
6730
|
nextPageToken?: string;
|
|
5077
|
-
webhooks: Array<
|
|
6731
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5078
6732
|
};
|
|
5079
6733
|
|
|
6734
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6735
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6736
|
+
url: string;
|
|
6737
|
+
name?: string;
|
|
6738
|
+
description?: string;
|
|
6739
|
+
network: PrimaryNetworkType;
|
|
6740
|
+
chainId: string;
|
|
6741
|
+
/**
|
|
6742
|
+
* Metadata for platform address activity event
|
|
6743
|
+
*/
|
|
6744
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6745
|
+
};
|
|
6746
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6747
|
+
enum eventType {
|
|
6748
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6749
|
+
}
|
|
6750
|
+
}
|
|
6751
|
+
|
|
5080
6752
|
type SharedSecretsResponse = {
|
|
5081
6753
|
secret: string;
|
|
5082
6754
|
};
|
|
@@ -5093,6 +6765,23 @@ type UpdateWebhookRequest = {
|
|
|
5093
6765
|
includeLogs?: boolean;
|
|
5094
6766
|
};
|
|
5095
6767
|
|
|
6768
|
+
type ValidatorActivityRequest = {
|
|
6769
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6770
|
+
url: string;
|
|
6771
|
+
name?: string;
|
|
6772
|
+
description?: string;
|
|
6773
|
+
network: PrimaryNetworkType;
|
|
6774
|
+
/**
|
|
6775
|
+
* Metadata for platform validator activity event
|
|
6776
|
+
*/
|
|
6777
|
+
metadata: ValidatorActivityMetadata;
|
|
6778
|
+
};
|
|
6779
|
+
declare namespace ValidatorActivityRequest {
|
|
6780
|
+
enum eventType {
|
|
6781
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6782
|
+
}
|
|
6783
|
+
}
|
|
6784
|
+
|
|
5096
6785
|
declare enum WebhookStatus {
|
|
5097
6786
|
ACTIVE = "active",
|
|
5098
6787
|
INACTIVE = "inactive"
|
|
@@ -5104,12 +6793,12 @@ declare class WebhooksService {
|
|
|
5104
6793
|
/**
|
|
5105
6794
|
* Create a webhook
|
|
5106
6795
|
* Create a new webhook.
|
|
5107
|
-
* @returns
|
|
6796
|
+
* @returns any Successful response
|
|
5108
6797
|
* @throws ApiError
|
|
5109
6798
|
*/
|
|
5110
6799
|
createWebhook({ requestBody, }: {
|
|
5111
|
-
requestBody:
|
|
5112
|
-
}): CancelablePromise<
|
|
6800
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6801
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5113
6802
|
/**
|
|
5114
6803
|
* List webhooks
|
|
5115
6804
|
* Lists webhooks for the user.
|
|
@@ -5133,7 +6822,7 @@ declare class WebhooksService {
|
|
|
5133
6822
|
/**
|
|
5134
6823
|
* Get a webhook by ID
|
|
5135
6824
|
* Retrieves a webhook by ID.
|
|
5136
|
-
* @returns
|
|
6825
|
+
* @returns any Successful response
|
|
5137
6826
|
* @throws ApiError
|
|
5138
6827
|
*/
|
|
5139
6828
|
getWebhook({ id, }: {
|
|
@@ -5141,11 +6830,11 @@ declare class WebhooksService {
|
|
|
5141
6830
|
* The webhook identifier.
|
|
5142
6831
|
*/
|
|
5143
6832
|
id: string;
|
|
5144
|
-
}): CancelablePromise<
|
|
6833
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5145
6834
|
/**
|
|
5146
6835
|
* Deactivate a webhook
|
|
5147
6836
|
* Deactivates a webhook by ID.
|
|
5148
|
-
* @returns
|
|
6837
|
+
* @returns any Successful response
|
|
5149
6838
|
* @throws ApiError
|
|
5150
6839
|
*/
|
|
5151
6840
|
deactivateWebhook({ id, }: {
|
|
@@ -5153,11 +6842,11 @@ declare class WebhooksService {
|
|
|
5153
6842
|
* The webhook identifier.
|
|
5154
6843
|
*/
|
|
5155
6844
|
id: string;
|
|
5156
|
-
}): CancelablePromise<
|
|
6845
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5157
6846
|
/**
|
|
5158
6847
|
* Update a webhook
|
|
5159
6848
|
* Updates an existing webhook.
|
|
5160
|
-
* @returns
|
|
6849
|
+
* @returns any Successful response
|
|
5161
6850
|
* @throws ApiError
|
|
5162
6851
|
*/
|
|
5163
6852
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5166,14 +6855,14 @@ declare class WebhooksService {
|
|
|
5166
6855
|
*/
|
|
5167
6856
|
id: string;
|
|
5168
6857
|
requestBody: UpdateWebhookRequest;
|
|
5169
|
-
}): CancelablePromise<
|
|
6858
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5170
6859
|
/**
|
|
5171
|
-
* Generate a shared secret
|
|
5172
|
-
* Generates a new shared secret.
|
|
6860
|
+
* Generate or rotate a shared secret
|
|
6861
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5173
6862
|
* @returns SharedSecretsResponse Successful response
|
|
5174
6863
|
* @throws ApiError
|
|
5175
6864
|
*/
|
|
5176
|
-
|
|
6865
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5177
6866
|
/**
|
|
5178
6867
|
* Get a shared secret
|
|
5179
6868
|
* Get a previously generated shared secret.
|
|
@@ -5182,9 +6871,9 @@ declare class WebhooksService {
|
|
|
5182
6871
|
*/
|
|
5183
6872
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5184
6873
|
/**
|
|
5185
|
-
* Add addresses to webhook
|
|
5186
|
-
* Add addresses to webhook.
|
|
5187
|
-
* @returns
|
|
6874
|
+
* Add addresses to EVM activity webhook
|
|
6875
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6876
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5188
6877
|
* @throws ApiError
|
|
5189
6878
|
*/
|
|
5190
6879
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5193,11 +6882,11 @@ declare class WebhooksService {
|
|
|
5193
6882
|
*/
|
|
5194
6883
|
id: string;
|
|
5195
6884
|
requestBody: AddressesChangeRequest;
|
|
5196
|
-
}): CancelablePromise<
|
|
6885
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5197
6886
|
/**
|
|
5198
|
-
* Remove addresses from webhook
|
|
5199
|
-
* Remove addresses from webhook.
|
|
5200
|
-
* @returns
|
|
6887
|
+
* Remove addresses from EVM activity webhook
|
|
6888
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6889
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5201
6890
|
* @throws ApiError
|
|
5202
6891
|
*/
|
|
5203
6892
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5206,10 +6895,10 @@ declare class WebhooksService {
|
|
|
5206
6895
|
*/
|
|
5207
6896
|
id: string;
|
|
5208
6897
|
requestBody: AddressesChangeRequest;
|
|
5209
|
-
}): CancelablePromise<
|
|
6898
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5210
6899
|
/**
|
|
5211
|
-
* List adresses by
|
|
5212
|
-
* List adresses by webhook.
|
|
6900
|
+
* List adresses by EVM activity webhooks
|
|
6901
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5213
6902
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5214
6903
|
* @throws ApiError
|
|
5215
6904
|
*/
|
|
@@ -5231,6 +6920,7 @@ declare class WebhooksService {
|
|
|
5231
6920
|
|
|
5232
6921
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5233
6922
|
declare class Glacier {
|
|
6923
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5234
6924
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5235
6925
|
readonly default: DefaultService;
|
|
5236
6926
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5239,7 +6929,9 @@ declare class Glacier {
|
|
|
5239
6929
|
readonly evmContracts: EvmContractsService;
|
|
5240
6930
|
readonly evmTransactions: EvmTransactionsService;
|
|
5241
6931
|
readonly healthCheck: HealthCheckService;
|
|
6932
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5242
6933
|
readonly nfTs: NfTsService;
|
|
6934
|
+
readonly notifications: NotificationsService;
|
|
5243
6935
|
readonly operations: OperationsService;
|
|
5244
6936
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5245
6937
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5272,6 +6964,17 @@ declare class ApiError extends Error {
|
|
|
5272
6964
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5273
6965
|
}
|
|
5274
6966
|
|
|
6967
|
+
type AccessListData = {
|
|
6968
|
+
/**
|
|
6969
|
+
* Access Address
|
|
6970
|
+
*/
|
|
6971
|
+
accessAddresses: string;
|
|
6972
|
+
/**
|
|
6973
|
+
* Storage keys
|
|
6974
|
+
*/
|
|
6975
|
+
storageKeys: Array<string>;
|
|
6976
|
+
};
|
|
6977
|
+
|
|
5275
6978
|
type BadGateway = {
|
|
5276
6979
|
/**
|
|
5277
6980
|
* The error message describing the reason for the exception
|
|
@@ -5306,6 +7009,76 @@ type DataListChainsResponse = {
|
|
|
5306
7009
|
chains: Array<ChainInfo>;
|
|
5307
7010
|
};
|
|
5308
7011
|
|
|
7012
|
+
type ERCToken = {
|
|
7013
|
+
/**
|
|
7014
|
+
* Token contract address
|
|
7015
|
+
*/
|
|
7016
|
+
address: string;
|
|
7017
|
+
/**
|
|
7018
|
+
* Token name
|
|
7019
|
+
*/
|
|
7020
|
+
name: string;
|
|
7021
|
+
/**
|
|
7022
|
+
* Token symbol
|
|
7023
|
+
*/
|
|
7024
|
+
symbol: string;
|
|
7025
|
+
/**
|
|
7026
|
+
* Token decimals
|
|
7027
|
+
*/
|
|
7028
|
+
decimals: number;
|
|
7029
|
+
/**
|
|
7030
|
+
* Value including decimals
|
|
7031
|
+
*/
|
|
7032
|
+
valueWithDecimals: string;
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
type ERCTransfer = {
|
|
7036
|
+
/**
|
|
7037
|
+
* Transaction hash
|
|
7038
|
+
*/
|
|
7039
|
+
transactionHash: string;
|
|
7040
|
+
/**
|
|
7041
|
+
* Transfer type
|
|
7042
|
+
*/
|
|
7043
|
+
type: string;
|
|
7044
|
+
/**
|
|
7045
|
+
* Sender address
|
|
7046
|
+
*/
|
|
7047
|
+
from: string;
|
|
7048
|
+
/**
|
|
7049
|
+
* Recipient address
|
|
7050
|
+
*/
|
|
7051
|
+
to: string;
|
|
7052
|
+
/**
|
|
7053
|
+
* Amount transferred
|
|
7054
|
+
*/
|
|
7055
|
+
value: string;
|
|
7056
|
+
/**
|
|
7057
|
+
* Token Id
|
|
7058
|
+
*/
|
|
7059
|
+
tokenId?: string;
|
|
7060
|
+
/**
|
|
7061
|
+
* Block timestamp
|
|
7062
|
+
*/
|
|
7063
|
+
blockTimestamp: number;
|
|
7064
|
+
/**
|
|
7065
|
+
* Log index
|
|
7066
|
+
*/
|
|
7067
|
+
logIndex: number;
|
|
7068
|
+
/**
|
|
7069
|
+
* erc20 Token details
|
|
7070
|
+
*/
|
|
7071
|
+
erc20Token?: ERCToken;
|
|
7072
|
+
/**
|
|
7073
|
+
* erc721 Token details
|
|
7074
|
+
*/
|
|
7075
|
+
erc721Token?: ERCToken;
|
|
7076
|
+
/**
|
|
7077
|
+
* erc1155 Token details
|
|
7078
|
+
*/
|
|
7079
|
+
erc1155Token?: ERCToken;
|
|
7080
|
+
};
|
|
7081
|
+
|
|
5309
7082
|
type Forbidden = {
|
|
5310
7083
|
/**
|
|
5311
7084
|
* The error message describing the reason for the exception
|
|
@@ -5336,6 +7109,64 @@ type InternalServerError = {
|
|
|
5336
7109
|
error: string;
|
|
5337
7110
|
};
|
|
5338
7111
|
|
|
7112
|
+
type Log = {
|
|
7113
|
+
/**
|
|
7114
|
+
* Contract address
|
|
7115
|
+
*/
|
|
7116
|
+
address: string;
|
|
7117
|
+
/**
|
|
7118
|
+
* First topic
|
|
7119
|
+
*/
|
|
7120
|
+
topic0: string;
|
|
7121
|
+
/**
|
|
7122
|
+
* Second topic (optional)
|
|
7123
|
+
*/
|
|
7124
|
+
topic1?: string;
|
|
7125
|
+
/**
|
|
7126
|
+
* Third topic (optional)
|
|
7127
|
+
*/
|
|
7128
|
+
topic2?: string;
|
|
7129
|
+
/**
|
|
7130
|
+
* Fourth topic (optional)
|
|
7131
|
+
*/
|
|
7132
|
+
topic3?: string;
|
|
7133
|
+
/**
|
|
7134
|
+
* Event data
|
|
7135
|
+
*/
|
|
7136
|
+
data: string;
|
|
7137
|
+
/**
|
|
7138
|
+
* Transaction index
|
|
7139
|
+
*/
|
|
7140
|
+
transactionIndex: number;
|
|
7141
|
+
/**
|
|
7142
|
+
* Log index
|
|
7143
|
+
*/
|
|
7144
|
+
logIndex: number;
|
|
7145
|
+
/**
|
|
7146
|
+
* Indicates if the log was removed
|
|
7147
|
+
*/
|
|
7148
|
+
removed: boolean;
|
|
7149
|
+
};
|
|
7150
|
+
|
|
7151
|
+
type NetworkTokenInfo = {
|
|
7152
|
+
/**
|
|
7153
|
+
* Token name
|
|
7154
|
+
*/
|
|
7155
|
+
tokenName?: string;
|
|
7156
|
+
/**
|
|
7157
|
+
* Token symbol
|
|
7158
|
+
*/
|
|
7159
|
+
tokenSymbol?: string;
|
|
7160
|
+
/**
|
|
7161
|
+
* Token decimals
|
|
7162
|
+
*/
|
|
7163
|
+
tokenDecimals?: number;
|
|
7164
|
+
/**
|
|
7165
|
+
* Value including decimals
|
|
7166
|
+
*/
|
|
7167
|
+
valueWithDecimals?: string;
|
|
7168
|
+
};
|
|
7169
|
+
|
|
5339
7170
|
type NextPageToken = {
|
|
5340
7171
|
/**
|
|
5341
7172
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5388,6 +7219,163 @@ type TooManyRequests = {
|
|
|
5388
7219
|
error: string;
|
|
5389
7220
|
};
|
|
5390
7221
|
|
|
7222
|
+
type WebhookInternalTransaction = {
|
|
7223
|
+
/**
|
|
7224
|
+
* Sender address
|
|
7225
|
+
*/
|
|
7226
|
+
from: string;
|
|
7227
|
+
/**
|
|
7228
|
+
* Recipient address
|
|
7229
|
+
*/
|
|
7230
|
+
to: string;
|
|
7231
|
+
/**
|
|
7232
|
+
* Internal transaction type
|
|
7233
|
+
*/
|
|
7234
|
+
internalTxType: string;
|
|
7235
|
+
/**
|
|
7236
|
+
* Value transferred
|
|
7237
|
+
*/
|
|
7238
|
+
value: string;
|
|
7239
|
+
/**
|
|
7240
|
+
* Gas used
|
|
7241
|
+
*/
|
|
7242
|
+
gasUsed: string;
|
|
7243
|
+
/**
|
|
7244
|
+
* Gas limit
|
|
7245
|
+
*/
|
|
7246
|
+
gasLimit: string;
|
|
7247
|
+
/**
|
|
7248
|
+
* Transaction hash
|
|
7249
|
+
*/
|
|
7250
|
+
transactionHash: string;
|
|
7251
|
+
};
|
|
7252
|
+
|
|
7253
|
+
type Transaction = {
|
|
7254
|
+
/**
|
|
7255
|
+
* Block hash of the transaction
|
|
7256
|
+
*/
|
|
7257
|
+
blockHash: string;
|
|
7258
|
+
/**
|
|
7259
|
+
* Block number of the transaction
|
|
7260
|
+
*/
|
|
7261
|
+
blockNumber: string;
|
|
7262
|
+
/**
|
|
7263
|
+
* Sender address
|
|
7264
|
+
*/
|
|
7265
|
+
from: string;
|
|
7266
|
+
/**
|
|
7267
|
+
* Gas limit for the transaction
|
|
7268
|
+
*/
|
|
7269
|
+
gas: string;
|
|
7270
|
+
/**
|
|
7271
|
+
* Gas price used
|
|
7272
|
+
*/
|
|
7273
|
+
gasPrice: string;
|
|
7274
|
+
/**
|
|
7275
|
+
* Maximum fee per gas
|
|
7276
|
+
*/
|
|
7277
|
+
maxFeePerGas: string;
|
|
7278
|
+
/**
|
|
7279
|
+
* Maximum priority fee per gas
|
|
7280
|
+
*/
|
|
7281
|
+
maxPriorityFeePerGas: string;
|
|
7282
|
+
/**
|
|
7283
|
+
* Transaction hash
|
|
7284
|
+
*/
|
|
7285
|
+
txHash: string;
|
|
7286
|
+
/**
|
|
7287
|
+
* Transaction status
|
|
7288
|
+
*/
|
|
7289
|
+
txStatus: string;
|
|
7290
|
+
/**
|
|
7291
|
+
* Input data
|
|
7292
|
+
*/
|
|
7293
|
+
input: string;
|
|
7294
|
+
/**
|
|
7295
|
+
* Nonce value
|
|
7296
|
+
*/
|
|
7297
|
+
nonce: string;
|
|
7298
|
+
/**
|
|
7299
|
+
* Recipient address
|
|
7300
|
+
*/
|
|
7301
|
+
to: string;
|
|
7302
|
+
/**
|
|
7303
|
+
* Transaction index
|
|
7304
|
+
*/
|
|
7305
|
+
transactionIndex: number;
|
|
7306
|
+
/**
|
|
7307
|
+
* Value transferred in the transaction
|
|
7308
|
+
*/
|
|
7309
|
+
value: string;
|
|
7310
|
+
/**
|
|
7311
|
+
* Transaction type
|
|
7312
|
+
*/
|
|
7313
|
+
type: number;
|
|
7314
|
+
/**
|
|
7315
|
+
* Chain ID of the network
|
|
7316
|
+
*/
|
|
7317
|
+
chainId: string;
|
|
7318
|
+
/**
|
|
7319
|
+
* Cumulative gas used
|
|
7320
|
+
*/
|
|
7321
|
+
receiptCumulativeGasUsed: string;
|
|
7322
|
+
/**
|
|
7323
|
+
* Gas used
|
|
7324
|
+
*/
|
|
7325
|
+
receiptGasUsed: string;
|
|
7326
|
+
/**
|
|
7327
|
+
* Effective gas price
|
|
7328
|
+
*/
|
|
7329
|
+
receiptEffectiveGasPrice: string;
|
|
7330
|
+
/**
|
|
7331
|
+
* Receipt root
|
|
7332
|
+
*/
|
|
7333
|
+
receiptRoot: string;
|
|
7334
|
+
/**
|
|
7335
|
+
* Block timestamp
|
|
7336
|
+
*/
|
|
7337
|
+
blockTimestamp: number;
|
|
7338
|
+
/**
|
|
7339
|
+
* Contract address (optional)
|
|
7340
|
+
*/
|
|
7341
|
+
contractAddress?: string;
|
|
7342
|
+
/**
|
|
7343
|
+
* ERC20 transfers
|
|
7344
|
+
*/
|
|
7345
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7346
|
+
/**
|
|
7347
|
+
* ERC721 transfers
|
|
7348
|
+
*/
|
|
7349
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7350
|
+
/**
|
|
7351
|
+
* ERC1155 transfers
|
|
7352
|
+
*/
|
|
7353
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7354
|
+
/**
|
|
7355
|
+
* Internal transactions (optional)
|
|
7356
|
+
*/
|
|
7357
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7358
|
+
/**
|
|
7359
|
+
* Access list (optional)
|
|
7360
|
+
*/
|
|
7361
|
+
accessList?: Array<AccessListData>;
|
|
7362
|
+
/**
|
|
7363
|
+
* Network token info (optional)
|
|
7364
|
+
*/
|
|
7365
|
+
networkToken?: NetworkTokenInfo;
|
|
7366
|
+
};
|
|
7367
|
+
|
|
7368
|
+
type TransactionEvent = {
|
|
7369
|
+
/**
|
|
7370
|
+
* Transaction details
|
|
7371
|
+
*/
|
|
7372
|
+
transaction: Transaction;
|
|
7373
|
+
/**
|
|
7374
|
+
* Array of log events
|
|
7375
|
+
*/
|
|
7376
|
+
logs?: Array<Log>;
|
|
7377
|
+
};
|
|
7378
|
+
|
|
5391
7379
|
type Unauthorized = {
|
|
5392
7380
|
/**
|
|
5393
7381
|
* The error message describing the reason for the exception
|
|
@@ -5403,4 +7391,43 @@ type Unauthorized = {
|
|
|
5403
7391
|
error: string;
|
|
5404
7392
|
};
|
|
5405
7393
|
|
|
5406
|
-
|
|
7394
|
+
type WebhookAddressActivityResponse = {
|
|
7395
|
+
/**
|
|
7396
|
+
* Webhook ID
|
|
7397
|
+
*/
|
|
7398
|
+
webhookId: string;
|
|
7399
|
+
/**
|
|
7400
|
+
* Event type
|
|
7401
|
+
*/
|
|
7402
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7403
|
+
/**
|
|
7404
|
+
* Message ID
|
|
7405
|
+
*/
|
|
7406
|
+
messageId: string;
|
|
7407
|
+
/**
|
|
7408
|
+
* Event details
|
|
7409
|
+
*/
|
|
7410
|
+
event: TransactionEvent;
|
|
7411
|
+
};
|
|
7412
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7413
|
+
/**
|
|
7414
|
+
* Event type
|
|
7415
|
+
*/
|
|
7416
|
+
enum eventType {
|
|
7417
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7418
|
+
}
|
|
7419
|
+
}
|
|
7420
|
+
|
|
7421
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7422
|
+
constructor(config: OpenAPIConfig);
|
|
7423
|
+
/**
|
|
7424
|
+
* Request method
|
|
7425
|
+
* @param options The request options from the service
|
|
7426
|
+
* @returns CancelablePromise<T>
|
|
7427
|
+
* @throws ApiError
|
|
7428
|
+
*/
|
|
7429
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7430
|
+
}
|
|
7431
|
+
|
|
7432
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20TokenV2, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7433
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc20TransferDetailsV2, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, LastActivityTimestamp, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransactionDetailsResponseV2, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionDetailsV2, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|