@avalabs/glacier-sdk 3.1.0-canary.49a66d7.0 → 3.1.0-canary.4b3bc0b.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 +2285 -372
- 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 +6 -0
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +9 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +5 -1
- 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 +5 -1
- 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 +5 -1
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +5 -1
- 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 +33 -15
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +32 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +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/PrimaryNetworkTxType.d.ts +5 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +17 -3
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +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 +72 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +11 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +71 -5
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
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,6 +1142,10 @@ 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
|
*/
|
|
@@ -944,6 +1190,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1190
|
};
|
|
945
1191
|
|
|
946
1192
|
type EvmBlock = {
|
|
1193
|
+
/**
|
|
1194
|
+
* The EVM chain ID on which the block was created.
|
|
1195
|
+
*/
|
|
1196
|
+
chainId: string;
|
|
947
1197
|
/**
|
|
948
1198
|
* The block number on the chain.
|
|
949
1199
|
*/
|
|
@@ -998,6 +1248,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1248
|
declare class EvmBlocksService {
|
|
999
1249
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1250
|
constructor(httpRequest: BaseHttpRequest);
|
|
1251
|
+
/**
|
|
1252
|
+
* List latest blocks across all supported EVM chains
|
|
1253
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1254
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1255
|
+
* @throws ApiError
|
|
1256
|
+
*/
|
|
1257
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1258
|
+
/**
|
|
1259
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1260
|
+
*/
|
|
1261
|
+
pageToken?: string;
|
|
1262
|
+
/**
|
|
1263
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1264
|
+
*/
|
|
1265
|
+
pageSize?: number;
|
|
1266
|
+
/**
|
|
1267
|
+
* Either mainnet or testnet/fuji.
|
|
1268
|
+
*/
|
|
1269
|
+
network?: Network;
|
|
1270
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1271
|
/**
|
|
1002
1272
|
* List latest blocks
|
|
1003
1273
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1120,60 +1390,232 @@ type ChainInfo = {
|
|
|
1120
1390
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1391
|
};
|
|
1122
1392
|
|
|
1393
|
+
type ListAddressChainsResponse = {
|
|
1394
|
+
indexedChains?: Array<ChainInfo>;
|
|
1395
|
+
unindexedChains?: Array<string>;
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1123
1398
|
type ListChainsResponse = {
|
|
1124
1399
|
chains: Array<ChainInfo>;
|
|
1125
1400
|
};
|
|
1126
1401
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1402
|
+
/**
|
|
1403
|
+
* 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.
|
|
1404
|
+
*/
|
|
1405
|
+
declare enum TransactionMethodType {
|
|
1406
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1407
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1408
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1132
1409
|
}
|
|
1133
1410
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1411
|
+
type Method = {
|
|
1412
|
+
callType: TransactionMethodType;
|
|
1137
1413
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1140
|
-
* @returns ListChainsResponse Successful response
|
|
1141
|
-
* @throws ApiError
|
|
1414
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1142
1415
|
*/
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Either mainnet or testnet/fuji.
|
|
1146
|
-
*/
|
|
1147
|
-
network?: Network;
|
|
1148
|
-
/**
|
|
1149
|
-
* Filter by feature.
|
|
1150
|
-
*/
|
|
1151
|
-
feature?: ApiFeature;
|
|
1152
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1416
|
+
methodHash: string;
|
|
1153
1417
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1156
|
-
* @returns GetChainResponse Successful response
|
|
1157
|
-
* @throws ApiError
|
|
1418
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1158
1419
|
*/
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1420
|
+
methodName?: string;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
type RichAddress = {
|
|
1424
|
+
/**
|
|
1425
|
+
* The contract name.
|
|
1426
|
+
*/
|
|
1427
|
+
name?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The contract symbol.
|
|
1430
|
+
*/
|
|
1431
|
+
symbol?: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1434
|
+
*/
|
|
1435
|
+
decimals?: number;
|
|
1436
|
+
/**
|
|
1437
|
+
* The logo uri for the address.
|
|
1438
|
+
*/
|
|
1439
|
+
logoUri?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1442
|
+
*/
|
|
1443
|
+
address: string;
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
type NativeTransaction = {
|
|
1447
|
+
/**
|
|
1448
|
+
* The block number on the chain.
|
|
1449
|
+
*/
|
|
1450
|
+
blockNumber: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* The block finality timestamp.
|
|
1453
|
+
*/
|
|
1454
|
+
blockTimestamp: number;
|
|
1455
|
+
/**
|
|
1456
|
+
* The block hash identifier.
|
|
1457
|
+
*/
|
|
1458
|
+
blockHash: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* The EVM chain ID on which the transaction occured.
|
|
1461
|
+
*/
|
|
1462
|
+
chainId: string;
|
|
1463
|
+
/**
|
|
1464
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1465
|
+
*/
|
|
1466
|
+
blockIndex: number;
|
|
1467
|
+
/**
|
|
1468
|
+
* The transaction hash identifier.
|
|
1469
|
+
*/
|
|
1470
|
+
txHash: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1473
|
+
*/
|
|
1474
|
+
txStatus: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* The transaction type.
|
|
1477
|
+
*/
|
|
1478
|
+
txType: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* The gas limit set for the transaction.
|
|
1481
|
+
*/
|
|
1482
|
+
gasLimit: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The amount of gas used.
|
|
1485
|
+
*/
|
|
1486
|
+
gasUsed: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1489
|
+
*/
|
|
1490
|
+
gasPrice: string;
|
|
1491
|
+
/**
|
|
1492
|
+
* The nonce used by the sender of the transaction.
|
|
1493
|
+
*/
|
|
1494
|
+
nonce: string;
|
|
1495
|
+
from: RichAddress;
|
|
1496
|
+
to: RichAddress;
|
|
1497
|
+
method?: Method;
|
|
1498
|
+
value: string;
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
type ListNativeTransactionsResponse = {
|
|
1502
|
+
/**
|
|
1503
|
+
* 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.
|
|
1504
|
+
*/
|
|
1505
|
+
nextPageToken?: string;
|
|
1506
|
+
transactions: Array<NativeTransaction>;
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
declare enum TransactionStatus {
|
|
1510
|
+
FAILED = "failed",
|
|
1511
|
+
SUCCESS = "success"
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
declare class EvmChainsService {
|
|
1515
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1516
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1517
|
+
/**
|
|
1518
|
+
* List all chains associated with a given address
|
|
1519
|
+
* 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.
|
|
1520
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1521
|
+
* @throws ApiError
|
|
1522
|
+
*/
|
|
1523
|
+
listAddressChains({ address, }: {
|
|
1524
|
+
/**
|
|
1525
|
+
* A wallet address.
|
|
1526
|
+
*/
|
|
1527
|
+
address: string;
|
|
1528
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1529
|
+
/**
|
|
1530
|
+
* List chains
|
|
1531
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1168
1532
|
* @returns ListChainsResponse Successful response
|
|
1169
1533
|
* @throws ApiError
|
|
1170
1534
|
*/
|
|
1535
|
+
supportedChains({ network, feature, }: {
|
|
1536
|
+
/**
|
|
1537
|
+
* Either mainnet or testnet/fuji.
|
|
1538
|
+
*/
|
|
1539
|
+
network?: Network;
|
|
1540
|
+
/**
|
|
1541
|
+
* Filter by feature.
|
|
1542
|
+
*/
|
|
1543
|
+
feature?: ApiFeature;
|
|
1544
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Get chain information
|
|
1547
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1548
|
+
* @returns GetChainResponse Successful response
|
|
1549
|
+
* @throws ApiError
|
|
1550
|
+
*/
|
|
1551
|
+
getChainInfo({ chainId, }: {
|
|
1552
|
+
/**
|
|
1553
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1554
|
+
*/
|
|
1555
|
+
chainId: string;
|
|
1556
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1557
|
+
/**
|
|
1558
|
+
* @deprecated
|
|
1559
|
+
* **[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.
|
|
1560
|
+
*
|
|
1561
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1562
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1563
|
+
* @throws ApiError
|
|
1564
|
+
*/
|
|
1171
1565
|
getAddressChains({ address, }: {
|
|
1172
1566
|
/**
|
|
1173
1567
|
* A wallet address.
|
|
1174
1568
|
*/
|
|
1175
1569
|
address: string;
|
|
1176
|
-
}): CancelablePromise<
|
|
1570
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1571
|
+
/**
|
|
1572
|
+
* @deprecated
|
|
1573
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1574
|
+
*
|
|
1575
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1576
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1577
|
+
* @throws ApiError
|
|
1578
|
+
*/
|
|
1579
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1580
|
+
/**
|
|
1581
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1582
|
+
*/
|
|
1583
|
+
pageToken?: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1586
|
+
*/
|
|
1587
|
+
pageSize?: number;
|
|
1588
|
+
/**
|
|
1589
|
+
* Either mainnet or testnet/fuji.
|
|
1590
|
+
*/
|
|
1591
|
+
network?: Network;
|
|
1592
|
+
/**
|
|
1593
|
+
* A status filter for listed transactions.
|
|
1594
|
+
*/
|
|
1595
|
+
status?: TransactionStatus;
|
|
1596
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1597
|
+
/**
|
|
1598
|
+
* @deprecated
|
|
1599
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1600
|
+
*
|
|
1601
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1602
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1603
|
+
* @throws ApiError
|
|
1604
|
+
*/
|
|
1605
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1606
|
+
/**
|
|
1607
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1608
|
+
*/
|
|
1609
|
+
pageToken?: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1612
|
+
*/
|
|
1613
|
+
pageSize?: number;
|
|
1614
|
+
/**
|
|
1615
|
+
* Either mainnet or testnet/fuji.
|
|
1616
|
+
*/
|
|
1617
|
+
network?: Network;
|
|
1618
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1177
1619
|
}
|
|
1178
1620
|
|
|
1179
1621
|
type ImageAsset = {
|
|
@@ -1345,7 +1787,7 @@ type Erc1155Contract = {
|
|
|
1345
1787
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1346
1788
|
*/
|
|
1347
1789
|
address: string;
|
|
1348
|
-
deploymentDetails
|
|
1790
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1349
1791
|
ercType: Erc1155Contract.ercType;
|
|
1350
1792
|
/**
|
|
1351
1793
|
* The contract symbol.
|
|
@@ -1376,7 +1818,7 @@ type Erc20Contract = {
|
|
|
1376
1818
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1377
1819
|
*/
|
|
1378
1820
|
address: string;
|
|
1379
|
-
deploymentDetails
|
|
1821
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1380
1822
|
ercType: Erc20Contract.ercType;
|
|
1381
1823
|
/**
|
|
1382
1824
|
* The contract symbol.
|
|
@@ -1411,7 +1853,7 @@ type Erc721Contract = {
|
|
|
1411
1853
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1412
1854
|
*/
|
|
1413
1855
|
address: string;
|
|
1414
|
-
deploymentDetails
|
|
1856
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1415
1857
|
ercType: Erc721Contract.ercType;
|
|
1416
1858
|
/**
|
|
1417
1859
|
* The contract symbol.
|
|
@@ -1441,7 +1883,7 @@ type UnknownContract = {
|
|
|
1441
1883
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1442
1884
|
*/
|
|
1443
1885
|
address: string;
|
|
1444
|
-
deploymentDetails
|
|
1886
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1445
1887
|
ercType: UnknownContract.ercType;
|
|
1446
1888
|
};
|
|
1447
1889
|
declare namespace UnknownContract {
|
|
@@ -1508,29 +1950,6 @@ declare namespace Erc1155Token {
|
|
|
1508
1950
|
}
|
|
1509
1951
|
}
|
|
1510
1952
|
|
|
1511
|
-
type RichAddress = {
|
|
1512
|
-
/**
|
|
1513
|
-
* The contract name.
|
|
1514
|
-
*/
|
|
1515
|
-
name?: string;
|
|
1516
|
-
/**
|
|
1517
|
-
* The contract symbol.
|
|
1518
|
-
*/
|
|
1519
|
-
symbol?: string;
|
|
1520
|
-
/**
|
|
1521
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1522
|
-
*/
|
|
1523
|
-
decimals?: number;
|
|
1524
|
-
/**
|
|
1525
|
-
* The logo uri for the address.
|
|
1526
|
-
*/
|
|
1527
|
-
logoUri?: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1530
|
-
*/
|
|
1531
|
-
address: string;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
1953
|
type Erc1155TransferDetails = {
|
|
1535
1954
|
from: RichAddress;
|
|
1536
1955
|
to: RichAddress;
|
|
@@ -1615,27 +2034,6 @@ type Erc721TransferDetails = {
|
|
|
1615
2034
|
erc721Token: Erc721Token;
|
|
1616
2035
|
};
|
|
1617
2036
|
|
|
1618
|
-
/**
|
|
1619
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1620
|
-
*/
|
|
1621
|
-
declare enum TransactionMethodType {
|
|
1622
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1623
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1624
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
type Method = {
|
|
1628
|
-
callType: TransactionMethodType;
|
|
1629
|
-
/**
|
|
1630
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1631
|
-
*/
|
|
1632
|
-
methodHash: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1635
|
-
*/
|
|
1636
|
-
methodName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
2037
|
type FullNativeTransactionDetails = {
|
|
1640
2038
|
/**
|
|
1641
2039
|
* The block number on the chain.
|
|
@@ -1649,6 +2047,10 @@ type FullNativeTransactionDetails = {
|
|
|
1649
2047
|
* The block hash identifier.
|
|
1650
2048
|
*/
|
|
1651
2049
|
blockHash: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* The EVM chain ID on which the transaction occured.
|
|
2052
|
+
*/
|
|
2053
|
+
chainId: string;
|
|
1652
2054
|
/**
|
|
1653
2055
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1654
2056
|
*/
|
|
@@ -1699,6 +2101,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1699
2101
|
CALL = "CALL",
|
|
1700
2102
|
CREATE = "CREATE",
|
|
1701
2103
|
CREATE2 = "CREATE2",
|
|
2104
|
+
CREATE3 = "CREATE3",
|
|
1702
2105
|
CALLCODE = "CALLCODE",
|
|
1703
2106
|
DELEGATECALL = "DELEGATECALL",
|
|
1704
2107
|
STATICCALL = "STATICCALL"
|
|
@@ -1740,11 +2143,11 @@ type TeleporterMessageInfo = {
|
|
|
1740
2143
|
/**
|
|
1741
2144
|
* chain id of the source chain. valid only for destination transactions
|
|
1742
2145
|
*/
|
|
1743
|
-
sourceChainId?:
|
|
2146
|
+
sourceChainId?: string;
|
|
1744
2147
|
/**
|
|
1745
2148
|
* chain id of the destination chain. valid only for source transactions
|
|
1746
2149
|
*/
|
|
1747
|
-
destinationChainId?:
|
|
2150
|
+
destinationChainId?: string;
|
|
1748
2151
|
};
|
|
1749
2152
|
|
|
1750
2153
|
type GetTransactionResponse = {
|
|
@@ -1761,7 +2164,7 @@ type GetTransactionResponse = {
|
|
|
1761
2164
|
*/
|
|
1762
2165
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1763
2166
|
/**
|
|
1764
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2167
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1765
2168
|
*/
|
|
1766
2169
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1767
2170
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1912,99 +2315,40 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2315
|
transactions: Array<InternalTransaction>;
|
|
1913
2316
|
};
|
|
1914
2317
|
|
|
1915
|
-
type
|
|
2318
|
+
type TransactionDetails = {
|
|
1916
2319
|
/**
|
|
1917
|
-
* The
|
|
2320
|
+
* The native (top-level) transaction details.
|
|
1918
2321
|
*/
|
|
1919
|
-
|
|
2322
|
+
nativeTransaction: NativeTransaction;
|
|
1920
2323
|
/**
|
|
1921
|
-
* The
|
|
2324
|
+
* The list of ERC-20 transfers.
|
|
1922
2325
|
*/
|
|
1923
|
-
|
|
2326
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1924
2327
|
/**
|
|
1925
|
-
* The
|
|
2328
|
+
* The list of ERC-721 transfers.
|
|
1926
2329
|
*/
|
|
1927
|
-
|
|
2330
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1928
2331
|
/**
|
|
1929
|
-
* The
|
|
2332
|
+
* The list of ERC-1155 transfers.
|
|
1930
2333
|
*/
|
|
1931
|
-
|
|
2334
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1932
2335
|
/**
|
|
1933
|
-
* The
|
|
2336
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1934
2337
|
*/
|
|
1935
|
-
|
|
2338
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
type ListTransactionDetailsResponse = {
|
|
1936
2342
|
/**
|
|
1937
|
-
*
|
|
2343
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1938
2344
|
*/
|
|
1939
|
-
|
|
2345
|
+
nextPageToken?: string;
|
|
2346
|
+
transactions: Array<TransactionDetails>;
|
|
2347
|
+
};
|
|
2348
|
+
|
|
2349
|
+
type ListTransfersResponse = {
|
|
1940
2350
|
/**
|
|
1941
|
-
*
|
|
1942
|
-
*/
|
|
1943
|
-
txType: number;
|
|
1944
|
-
/**
|
|
1945
|
-
* The gas limit set for the transaction.
|
|
1946
|
-
*/
|
|
1947
|
-
gasLimit: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* The amount of gas used.
|
|
1950
|
-
*/
|
|
1951
|
-
gasUsed: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1954
|
-
*/
|
|
1955
|
-
gasPrice: string;
|
|
1956
|
-
/**
|
|
1957
|
-
* The nonce used by the sender of the transaction.
|
|
1958
|
-
*/
|
|
1959
|
-
nonce: string;
|
|
1960
|
-
from: RichAddress;
|
|
1961
|
-
to: RichAddress;
|
|
1962
|
-
method?: Method;
|
|
1963
|
-
value: string;
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
type ListNativeTransactionsResponse = {
|
|
1967
|
-
/**
|
|
1968
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1969
|
-
*/
|
|
1970
|
-
nextPageToken?: string;
|
|
1971
|
-
transactions: Array<NativeTransaction>;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
type TransactionDetails = {
|
|
1975
|
-
/**
|
|
1976
|
-
* The native (top-level) transaction details.
|
|
1977
|
-
*/
|
|
1978
|
-
nativeTransaction: NativeTransaction;
|
|
1979
|
-
/**
|
|
1980
|
-
* The list of ERC-20 transfers.
|
|
1981
|
-
*/
|
|
1982
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1983
|
-
/**
|
|
1984
|
-
* The list of ERC-721 transfers.
|
|
1985
|
-
*/
|
|
1986
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1987
|
-
/**
|
|
1988
|
-
* The list of ERC-1155 transfers.
|
|
1989
|
-
*/
|
|
1990
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1991
|
-
/**
|
|
1992
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1993
|
-
*/
|
|
1994
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
type ListTransactionDetailsResponse = {
|
|
1998
|
-
/**
|
|
1999
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2000
|
-
*/
|
|
2001
|
-
nextPageToken?: string;
|
|
2002
|
-
transactions: Array<TransactionDetails>;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
type ListTransfersResponse = {
|
|
2006
|
-
/**
|
|
2007
|
-
* 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.
|
|
2351
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2008
2352
|
*/
|
|
2009
2353
|
nextPageToken?: string;
|
|
2010
2354
|
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
@@ -2015,14 +2359,33 @@ declare enum SortOrder {
|
|
|
2015
2359
|
DESC = "desc"
|
|
2016
2360
|
}
|
|
2017
2361
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2362
|
declare class EvmTransactionsService {
|
|
2024
2363
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
2364
|
constructor(httpRequest: BaseHttpRequest);
|
|
2365
|
+
/**
|
|
2366
|
+
* List the latest transactions across all supported EVM chains
|
|
2367
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2368
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2369
|
+
* @throws ApiError
|
|
2370
|
+
*/
|
|
2371
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2372
|
+
/**
|
|
2373
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2374
|
+
*/
|
|
2375
|
+
pageToken?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2378
|
+
*/
|
|
2379
|
+
pageSize?: number;
|
|
2380
|
+
/**
|
|
2381
|
+
* Either mainnet or testnet/fuji.
|
|
2382
|
+
*/
|
|
2383
|
+
network?: Network;
|
|
2384
|
+
/**
|
|
2385
|
+
* A status filter for listed transactions.
|
|
2386
|
+
*/
|
|
2387
|
+
status?: TransactionStatus;
|
|
2388
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2026
2389
|
/**
|
|
2027
2390
|
* Get deployment transaction
|
|
2028
2391
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2269,7 +2632,7 @@ declare class EvmTransactionsService {
|
|
|
2269
2632
|
* List internal transactions
|
|
2270
2633
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
2634
|
*
|
|
2272
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2635
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2273
2636
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
2637
|
* @throws ApiError
|
|
2275
2638
|
*/
|
|
@@ -2321,7 +2684,7 @@ declare class EvmTransactionsService {
|
|
|
2321
2684
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2685
|
* @throws ApiError
|
|
2323
2686
|
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2687
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2325
2688
|
/**
|
|
2326
2689
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2327
2690
|
*/
|
|
@@ -2330,6 +2693,14 @@ declare class EvmTransactionsService {
|
|
|
2330
2693
|
* A block identifier which is either a block number or the block hash.
|
|
2331
2694
|
*/
|
|
2332
2695
|
blockId: string;
|
|
2696
|
+
/**
|
|
2697
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2698
|
+
*/
|
|
2699
|
+
pageToken?: string;
|
|
2700
|
+
/**
|
|
2701
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2702
|
+
*/
|
|
2703
|
+
pageSize?: number;
|
|
2333
2704
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2334
2705
|
/**
|
|
2335
2706
|
* List latest transactions
|
|
@@ -2357,68 +2728,211 @@ declare class EvmTransactionsService {
|
|
|
2357
2728
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2358
2729
|
}
|
|
2359
2730
|
|
|
2731
|
+
type HealthIndicatorResultDto = {
|
|
2732
|
+
/**
|
|
2733
|
+
* Status of the health indicator.
|
|
2734
|
+
*/
|
|
2735
|
+
status?: HealthIndicatorResultDto.status;
|
|
2736
|
+
};
|
|
2737
|
+
declare namespace HealthIndicatorResultDto {
|
|
2738
|
+
/**
|
|
2739
|
+
* Status of the health indicator.
|
|
2740
|
+
*/
|
|
2741
|
+
enum status {
|
|
2742
|
+
UP = "up",
|
|
2743
|
+
DOWN = "down"
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
type HealthCheckResultDto = {
|
|
2748
|
+
status?: HealthCheckResultDto.status;
|
|
2749
|
+
info?: any | null;
|
|
2750
|
+
error?: any | null;
|
|
2751
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2752
|
+
};
|
|
2753
|
+
declare namespace HealthCheckResultDto {
|
|
2754
|
+
enum status {
|
|
2755
|
+
ERROR = "error",
|
|
2756
|
+
OK = "ok",
|
|
2757
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2360
2761
|
declare class HealthCheckService {
|
|
2361
2762
|
readonly httpRequest: BaseHttpRequest;
|
|
2362
2763
|
constructor(httpRequest: BaseHttpRequest);
|
|
2363
2764
|
/**
|
|
2364
2765
|
* Get the health of the service
|
|
2365
|
-
*
|
|
2766
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2767
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2366
2768
|
* @throws ApiError
|
|
2367
2769
|
*/
|
|
2368
|
-
dataHealthCheck(): CancelablePromise<
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2770
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2771
|
+
/**
|
|
2772
|
+
* Get the liveliness of the service (reads only)
|
|
2773
|
+
* Check the liveliness of the service (reads only).
|
|
2774
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2775
|
+
* @throws ApiError
|
|
2776
|
+
*/
|
|
2777
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2374
2778
|
}
|
|
2375
2779
|
|
|
2376
|
-
type
|
|
2780
|
+
type IcmDestinationTransaction = {
|
|
2781
|
+
txHash: string;
|
|
2782
|
+
timestamp: number;
|
|
2783
|
+
gasSpent: string;
|
|
2784
|
+
rewardRedeemer: string;
|
|
2785
|
+
delivererAddress: string;
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2788
|
+
type IcmReceipt = {
|
|
2789
|
+
receivedMessageNonce: string;
|
|
2790
|
+
relayerRewardAddress: string;
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
type IcmRewardDetails = {
|
|
2794
|
+
/**
|
|
2795
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2796
|
+
*/
|
|
2797
|
+
address: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* The contract name.
|
|
2800
|
+
*/
|
|
2801
|
+
name: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* The contract symbol.
|
|
2804
|
+
*/
|
|
2805
|
+
symbol: string;
|
|
2806
|
+
/**
|
|
2807
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2808
|
+
*/
|
|
2809
|
+
decimals: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* The logo uri for the address.
|
|
2812
|
+
*/
|
|
2813
|
+
logoUri?: string;
|
|
2814
|
+
ercType: IcmRewardDetails.ercType;
|
|
2815
|
+
/**
|
|
2816
|
+
* The token price, if available.
|
|
2817
|
+
*/
|
|
2818
|
+
price?: Money;
|
|
2819
|
+
value: string;
|
|
2820
|
+
};
|
|
2821
|
+
declare namespace IcmRewardDetails {
|
|
2822
|
+
enum ercType {
|
|
2823
|
+
ERC_20 = "ERC-20"
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
type IcmSourceTransaction = {
|
|
2828
|
+
txHash: string;
|
|
2829
|
+
timestamp: number;
|
|
2830
|
+
gasSpent: string;
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
type DeliveredIcmMessage = {
|
|
2834
|
+
messageId: string;
|
|
2835
|
+
icmContractAddress: string;
|
|
2836
|
+
sourceBlockchainId: string;
|
|
2837
|
+
destinationBlockchainId: string;
|
|
2838
|
+
sourceEvmChainId: string;
|
|
2839
|
+
destinationEvmChainId: string;
|
|
2840
|
+
messageNonce: string;
|
|
2841
|
+
from: string;
|
|
2842
|
+
to: string;
|
|
2843
|
+
data?: string;
|
|
2844
|
+
messageExecuted: boolean;
|
|
2845
|
+
receipts: Array<IcmReceipt>;
|
|
2846
|
+
receiptDelivered: boolean;
|
|
2847
|
+
rewardDetails: IcmRewardDetails;
|
|
2848
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2849
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2850
|
+
status: DeliveredIcmMessage.status;
|
|
2851
|
+
};
|
|
2852
|
+
declare namespace DeliveredIcmMessage {
|
|
2853
|
+
enum status {
|
|
2854
|
+
DELIVERED = "delivered"
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2859
|
+
messageId: string;
|
|
2860
|
+
icmContractAddress: string;
|
|
2861
|
+
sourceBlockchainId: string;
|
|
2862
|
+
destinationBlockchainId: string;
|
|
2863
|
+
sourceEvmChainId: string;
|
|
2864
|
+
destinationEvmChainId: string;
|
|
2865
|
+
messageNonce: string;
|
|
2866
|
+
from: string;
|
|
2867
|
+
to: string;
|
|
2868
|
+
data?: string;
|
|
2869
|
+
messageExecuted: boolean;
|
|
2870
|
+
receipts: Array<IcmReceipt>;
|
|
2871
|
+
receiptDelivered: boolean;
|
|
2872
|
+
rewardDetails: IcmRewardDetails;
|
|
2873
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2874
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2875
|
+
};
|
|
2876
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2877
|
+
enum status {
|
|
2878
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
type PendingIcmMessage = {
|
|
2883
|
+
messageId: string;
|
|
2884
|
+
icmContractAddress: string;
|
|
2885
|
+
sourceBlockchainId: string;
|
|
2886
|
+
destinationBlockchainId: string;
|
|
2887
|
+
sourceEvmChainId: string;
|
|
2888
|
+
destinationEvmChainId: string;
|
|
2889
|
+
messageNonce: string;
|
|
2890
|
+
from: string;
|
|
2891
|
+
to: string;
|
|
2892
|
+
data?: string;
|
|
2893
|
+
messageExecuted: boolean;
|
|
2894
|
+
receipts: Array<IcmReceipt>;
|
|
2895
|
+
receiptDelivered: boolean;
|
|
2896
|
+
rewardDetails: IcmRewardDetails;
|
|
2897
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2898
|
+
status: PendingIcmMessage.status;
|
|
2899
|
+
};
|
|
2900
|
+
declare namespace PendingIcmMessage {
|
|
2901
|
+
enum status {
|
|
2902
|
+
PENDING = "pending"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
type ListIcmMessagesResponse = {
|
|
2377
2907
|
/**
|
|
2378
2908
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2379
2909
|
*/
|
|
2380
2910
|
nextPageToken?: string;
|
|
2381
|
-
|
|
2911
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2382
2912
|
};
|
|
2383
2913
|
|
|
2384
|
-
declare class
|
|
2914
|
+
declare class InterchainMessagingService {
|
|
2385
2915
|
readonly httpRequest: BaseHttpRequest;
|
|
2386
2916
|
constructor(httpRequest: BaseHttpRequest);
|
|
2387
2917
|
/**
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2918
|
+
* Get an ICM message
|
|
2919
|
+
* Gets an ICM message by teleporter message ID.
|
|
2390
2920
|
* @returns any Successful response
|
|
2391
2921
|
* @throws ApiError
|
|
2392
2922
|
*/
|
|
2393
|
-
|
|
2394
|
-
/**
|
|
2395
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2396
|
-
*/
|
|
2397
|
-
chainId: string;
|
|
2398
|
-
/**
|
|
2399
|
-
* Contract address on the relevant chain.
|
|
2400
|
-
*/
|
|
2401
|
-
address: string;
|
|
2923
|
+
getIcmMessage({ messageId, }: {
|
|
2402
2924
|
/**
|
|
2403
|
-
*
|
|
2925
|
+
* The teleporter message ID of the ICM message.
|
|
2404
2926
|
*/
|
|
2405
|
-
|
|
2406
|
-
}): CancelablePromise<
|
|
2927
|
+
messageId: string;
|
|
2928
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2407
2929
|
/**
|
|
2408
|
-
* List
|
|
2409
|
-
* Lists
|
|
2410
|
-
* @returns
|
|
2930
|
+
* List ICM messages
|
|
2931
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2932
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2411
2933
|
* @throws ApiError
|
|
2412
2934
|
*/
|
|
2413
|
-
|
|
2414
|
-
/**
|
|
2415
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2416
|
-
*/
|
|
2417
|
-
chainId: string;
|
|
2418
|
-
/**
|
|
2419
|
-
* Contract address on the relevant chain.
|
|
2420
|
-
*/
|
|
2421
|
-
address: string;
|
|
2935
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2422
2936
|
/**
|
|
2423
2937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2424
2938
|
*/
|
|
@@ -2427,22 +2941,127 @@ declare class NfTsService {
|
|
|
2427
2941
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2428
2942
|
*/
|
|
2429
2943
|
pageSize?: number;
|
|
2430
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2431
|
-
/**
|
|
2432
|
-
* Get token details
|
|
2433
|
-
* Gets token details for a specific token of an NFT contract.
|
|
2434
|
-
* @returns any Successful response
|
|
2435
|
-
* @throws ApiError
|
|
2436
|
-
*/
|
|
2437
|
-
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2438
2944
|
/**
|
|
2439
|
-
*
|
|
2945
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2440
2946
|
*/
|
|
2441
|
-
|
|
2947
|
+
sourceBlockchainId?: string;
|
|
2442
2948
|
/**
|
|
2443
|
-
*
|
|
2949
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2444
2950
|
*/
|
|
2445
|
-
|
|
2951
|
+
destinationBlockchainId?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2954
|
+
*/
|
|
2955
|
+
blockchainId?: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* The address of the recipient of the ICM message.
|
|
2958
|
+
*/
|
|
2959
|
+
to?: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* The address of the sender of the ICM message.
|
|
2962
|
+
*/
|
|
2963
|
+
from?: string;
|
|
2964
|
+
/**
|
|
2965
|
+
* Either mainnet or testnet/fuji.
|
|
2966
|
+
*/
|
|
2967
|
+
network?: Network;
|
|
2968
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2969
|
+
/**
|
|
2970
|
+
* List ICM messages by address
|
|
2971
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2972
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2973
|
+
* @throws ApiError
|
|
2974
|
+
*/
|
|
2975
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2976
|
+
/**
|
|
2977
|
+
* An EVM address.
|
|
2978
|
+
*/
|
|
2979
|
+
address: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2982
|
+
*/
|
|
2983
|
+
pageToken?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2986
|
+
*/
|
|
2987
|
+
pageSize?: number;
|
|
2988
|
+
/**
|
|
2989
|
+
* Either mainnet or testnet/fuji.
|
|
2990
|
+
*/
|
|
2991
|
+
network?: Network;
|
|
2992
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
type ListNftTokens = {
|
|
2996
|
+
/**
|
|
2997
|
+
* 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.
|
|
2998
|
+
*/
|
|
2999
|
+
nextPageToken?: string;
|
|
3000
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
declare class NfTsService {
|
|
3004
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3005
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3006
|
+
/**
|
|
3007
|
+
* Reindex NFT metadata
|
|
3008
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3009
|
+
* @returns any Successful response
|
|
3010
|
+
* @throws ApiError
|
|
3011
|
+
*/
|
|
3012
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3013
|
+
/**
|
|
3014
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3015
|
+
*/
|
|
3016
|
+
chainId: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* Contract address on the relevant chain.
|
|
3019
|
+
*/
|
|
3020
|
+
address: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* TokenId on the contract
|
|
3023
|
+
*/
|
|
3024
|
+
tokenId: string;
|
|
3025
|
+
}): CancelablePromise<any>;
|
|
3026
|
+
/**
|
|
3027
|
+
* List tokens
|
|
3028
|
+
* Lists tokens for an NFT contract.
|
|
3029
|
+
* @returns ListNftTokens Successful response
|
|
3030
|
+
* @throws ApiError
|
|
3031
|
+
*/
|
|
3032
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3033
|
+
/**
|
|
3034
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3035
|
+
*/
|
|
3036
|
+
chainId: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Contract address on the relevant chain.
|
|
3039
|
+
*/
|
|
3040
|
+
address: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3043
|
+
*/
|
|
3044
|
+
pageToken?: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3047
|
+
*/
|
|
3048
|
+
pageSize?: number;
|
|
3049
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Get token details
|
|
3052
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3053
|
+
* @returns any Successful response
|
|
3054
|
+
* @throws ApiError
|
|
3055
|
+
*/
|
|
3056
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3057
|
+
/**
|
|
3058
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3059
|
+
*/
|
|
3060
|
+
chainId: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Contract address on the relevant chain.
|
|
3063
|
+
*/
|
|
3064
|
+
address: string;
|
|
2446
3065
|
/**
|
|
2447
3066
|
* TokenId on the contract
|
|
2448
3067
|
*/
|
|
@@ -2450,6 +3069,108 @@ declare class NfTsService {
|
|
|
2450
3069
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2451
3070
|
}
|
|
2452
3071
|
|
|
3072
|
+
type AccessRequest = {
|
|
3073
|
+
/**
|
|
3074
|
+
* The email address to send the access token to
|
|
3075
|
+
*/
|
|
3076
|
+
email: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The captcha to verify the user
|
|
3079
|
+
*/
|
|
3080
|
+
captcha: string;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
type NotificationsResponse = {
|
|
3084
|
+
message: string;
|
|
3085
|
+
};
|
|
3086
|
+
|
|
3087
|
+
type SubscribeRequest = {
|
|
3088
|
+
/**
|
|
3089
|
+
* The access token to use for authentication
|
|
3090
|
+
*/
|
|
3091
|
+
accessToken: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* The node ID to subscribe to
|
|
3094
|
+
*/
|
|
3095
|
+
nodeId: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3098
|
+
*/
|
|
3099
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
type SubscriptionsRequest = {
|
|
3103
|
+
/**
|
|
3104
|
+
* The access token to use for authentication
|
|
3105
|
+
*/
|
|
3106
|
+
accessToken: string;
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
type SubscriptionsResponse = {
|
|
3110
|
+
/**
|
|
3111
|
+
* The email address of the user
|
|
3112
|
+
*/
|
|
3113
|
+
email: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* The subscriptions of the user
|
|
3116
|
+
*/
|
|
3117
|
+
subscriptions: Record<string, {
|
|
3118
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3119
|
+
}>;
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
type UnsubscribeRequest = {
|
|
3123
|
+
/**
|
|
3124
|
+
* The access token to use for authentication
|
|
3125
|
+
*/
|
|
3126
|
+
accessToken: string;
|
|
3127
|
+
/**
|
|
3128
|
+
* The node ID to subscribe to
|
|
3129
|
+
*/
|
|
3130
|
+
nodeId: string;
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
declare class NotificationsService {
|
|
3134
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3135
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3136
|
+
/**
|
|
3137
|
+
* Access Notifications
|
|
3138
|
+
* Access notifications.
|
|
3139
|
+
* @returns NotificationsResponse Successful response
|
|
3140
|
+
* @throws ApiError
|
|
3141
|
+
*/
|
|
3142
|
+
access({ requestBody, }: {
|
|
3143
|
+
requestBody: AccessRequest;
|
|
3144
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Subscribe to Notifications
|
|
3147
|
+
* Subscribe to receive notifications.
|
|
3148
|
+
* @returns NotificationsResponse Successful response
|
|
3149
|
+
* @throws ApiError
|
|
3150
|
+
*/
|
|
3151
|
+
subscribe({ requestBody, }: {
|
|
3152
|
+
requestBody: SubscribeRequest;
|
|
3153
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Unsubscribe from Notifications
|
|
3156
|
+
* Unsubscribe from receiving notifications.
|
|
3157
|
+
* @returns NotificationsResponse Successful response
|
|
3158
|
+
* @throws ApiError
|
|
3159
|
+
*/
|
|
3160
|
+
unsubscribe({ requestBody, }: {
|
|
3161
|
+
requestBody: UnsubscribeRequest;
|
|
3162
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3163
|
+
/**
|
|
3164
|
+
* Get Subscriptions
|
|
3165
|
+
* Get subscriptions.
|
|
3166
|
+
* @returns SubscriptionsResponse Successful response
|
|
3167
|
+
* @throws ApiError
|
|
3168
|
+
*/
|
|
3169
|
+
subscriptions({ requestBody, }: {
|
|
3170
|
+
requestBody: SubscriptionsRequest;
|
|
3171
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
2453
3174
|
type EvmNetworkOptions = {
|
|
2454
3175
|
addresses: Array<string>;
|
|
2455
3176
|
includeChains: Array<string>;
|
|
@@ -2483,7 +3204,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2483
3204
|
type PrimaryNetworkOptions = {
|
|
2484
3205
|
addresses?: Array<string>;
|
|
2485
3206
|
cChainEvmAddresses?: Array<string>;
|
|
2486
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3207
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2487
3208
|
};
|
|
2488
3209
|
|
|
2489
3210
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2538,7 +3259,7 @@ type OperationStatusResponse = {
|
|
|
2538
3259
|
operationType: OperationType;
|
|
2539
3260
|
operationStatus: OperationStatus;
|
|
2540
3261
|
message?: string;
|
|
2541
|
-
metadata
|
|
3262
|
+
metadata?: TransactionExportMetadata;
|
|
2542
3263
|
createdAtTimestamp: number;
|
|
2543
3264
|
updatedAtTimestamp: number;
|
|
2544
3265
|
};
|
|
@@ -2571,14 +3292,275 @@ declare class OperationsService {
|
|
|
2571
3292
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2572
3293
|
}
|
|
2573
3294
|
|
|
3295
|
+
type EvmGenesisAllocDto = {
|
|
3296
|
+
/**
|
|
3297
|
+
* Account balance in hex format
|
|
3298
|
+
*/
|
|
3299
|
+
balance?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Contract bytecode in hex format
|
|
3302
|
+
*/
|
|
3303
|
+
code?: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Contract storage slots
|
|
3306
|
+
*/
|
|
3307
|
+
storage?: Record<string, string>;
|
|
3308
|
+
};
|
|
3309
|
+
|
|
3310
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3311
|
+
/**
|
|
3312
|
+
* Block timestamp
|
|
3313
|
+
*/
|
|
3314
|
+
blockTimestamp?: number;
|
|
3315
|
+
/**
|
|
3316
|
+
* Admin addresses
|
|
3317
|
+
*/
|
|
3318
|
+
adminAddresses?: Array<string>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Manager addresses
|
|
3321
|
+
*/
|
|
3322
|
+
managerAddresses?: Array<string>;
|
|
3323
|
+
/**
|
|
3324
|
+
* Enabled addresses
|
|
3325
|
+
*/
|
|
3326
|
+
enabledAddresses?: Array<string>;
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
type EvmGenesisFeeConfigDto = {
|
|
3330
|
+
/**
|
|
3331
|
+
* Base fee change denominator
|
|
3332
|
+
*/
|
|
3333
|
+
baseFeeChangeDenominator?: number;
|
|
3334
|
+
/**
|
|
3335
|
+
* Block gas cost step
|
|
3336
|
+
*/
|
|
3337
|
+
blockGasCostStep?: number;
|
|
3338
|
+
/**
|
|
3339
|
+
* Gas limit
|
|
3340
|
+
*/
|
|
3341
|
+
gasLimit?: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Maximum block gas cost
|
|
3344
|
+
*/
|
|
3345
|
+
maxBlockGasCost?: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Minimum base fee
|
|
3348
|
+
*/
|
|
3349
|
+
minBaseFee?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Minimum block gas cost
|
|
3352
|
+
*/
|
|
3353
|
+
minBlockGasCost?: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Target block rate
|
|
3356
|
+
*/
|
|
3357
|
+
targetBlockRate?: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* Target gas
|
|
3360
|
+
*/
|
|
3361
|
+
targetGas?: number;
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
type EvmGenesisWarpConfigDto = {
|
|
3365
|
+
/**
|
|
3366
|
+
* Block timestamp
|
|
3367
|
+
*/
|
|
3368
|
+
blockTimestamp?: number;
|
|
3369
|
+
/**
|
|
3370
|
+
* Quorum numerator
|
|
3371
|
+
*/
|
|
3372
|
+
quorumNumerator?: number;
|
|
3373
|
+
/**
|
|
3374
|
+
* Require primary network signers
|
|
3375
|
+
*/
|
|
3376
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3377
|
+
};
|
|
3378
|
+
|
|
3379
|
+
type EvmGenesisConfigDto = {
|
|
3380
|
+
/**
|
|
3381
|
+
* Berlin block number
|
|
3382
|
+
*/
|
|
3383
|
+
berlinBlock?: number;
|
|
3384
|
+
/**
|
|
3385
|
+
* Byzantium block number
|
|
3386
|
+
*/
|
|
3387
|
+
byzantiumBlock?: number;
|
|
3388
|
+
/**
|
|
3389
|
+
* Chain ID
|
|
3390
|
+
*/
|
|
3391
|
+
chainId?: number;
|
|
3392
|
+
/**
|
|
3393
|
+
* Constantinople block number
|
|
3394
|
+
*/
|
|
3395
|
+
constantinopleBlock?: number;
|
|
3396
|
+
/**
|
|
3397
|
+
* EIP-150 block number
|
|
3398
|
+
*/
|
|
3399
|
+
eip150Block?: number;
|
|
3400
|
+
/**
|
|
3401
|
+
* EIP-150 hash
|
|
3402
|
+
*/
|
|
3403
|
+
eip150Hash?: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* EIP-155 block number
|
|
3406
|
+
*/
|
|
3407
|
+
eip155Block?: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* EIP-158 block number
|
|
3410
|
+
*/
|
|
3411
|
+
eip158Block?: number;
|
|
3412
|
+
/**
|
|
3413
|
+
* Fee configuration
|
|
3414
|
+
*/
|
|
3415
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3416
|
+
/**
|
|
3417
|
+
* Homestead block number
|
|
3418
|
+
*/
|
|
3419
|
+
homesteadBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* Istanbul block number
|
|
3422
|
+
*/
|
|
3423
|
+
istanbulBlock?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* London block number
|
|
3426
|
+
*/
|
|
3427
|
+
londonBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* Muir Glacier block number
|
|
3430
|
+
*/
|
|
3431
|
+
muirGlacierBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Petersburg block number
|
|
3434
|
+
*/
|
|
3435
|
+
petersburgBlock?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Subnet EVM timestamp
|
|
3438
|
+
*/
|
|
3439
|
+
subnetEVMTimestamp?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Allow fee recipients
|
|
3442
|
+
*/
|
|
3443
|
+
allowFeeRecipients?: boolean;
|
|
3444
|
+
/**
|
|
3445
|
+
* Warp configuration
|
|
3446
|
+
*/
|
|
3447
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Transaction allow list configuration
|
|
3450
|
+
*/
|
|
3451
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3452
|
+
/**
|
|
3453
|
+
* Contract deployer allow list configuration
|
|
3454
|
+
*/
|
|
3455
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3456
|
+
/**
|
|
3457
|
+
* Contract native minter configuration
|
|
3458
|
+
*/
|
|
3459
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fee manager configuration
|
|
3462
|
+
*/
|
|
3463
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3464
|
+
/**
|
|
3465
|
+
* Reward manager configuration
|
|
3466
|
+
*/
|
|
3467
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3468
|
+
};
|
|
3469
|
+
|
|
3470
|
+
type EvmGenesisDto = {
|
|
3471
|
+
/**
|
|
3472
|
+
* Airdrop amount
|
|
3473
|
+
*/
|
|
3474
|
+
airdropAmount?: number | null;
|
|
3475
|
+
/**
|
|
3476
|
+
* Airdrop hash
|
|
3477
|
+
*/
|
|
3478
|
+
airdropHash?: string;
|
|
3479
|
+
/**
|
|
3480
|
+
* Allocation of accounts and balances
|
|
3481
|
+
*/
|
|
3482
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3483
|
+
/**
|
|
3484
|
+
* Base fee per gas
|
|
3485
|
+
*/
|
|
3486
|
+
baseFeePerGas?: number | null;
|
|
3487
|
+
/**
|
|
3488
|
+
* Blob gas used
|
|
3489
|
+
*/
|
|
3490
|
+
blobGasUsed?: string | null;
|
|
3491
|
+
/**
|
|
3492
|
+
* Coinbase address
|
|
3493
|
+
*/
|
|
3494
|
+
coinbase?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Genesis configuration
|
|
3497
|
+
*/
|
|
3498
|
+
config?: EvmGenesisConfigDto;
|
|
3499
|
+
/**
|
|
3500
|
+
* Difficulty
|
|
3501
|
+
*/
|
|
3502
|
+
difficulty?: string;
|
|
3503
|
+
/**
|
|
3504
|
+
* Excess blob gas
|
|
3505
|
+
*/
|
|
3506
|
+
excessBlobGas?: string | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Extra data
|
|
3509
|
+
*/
|
|
3510
|
+
extraData?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Gas limit
|
|
3513
|
+
*/
|
|
3514
|
+
gasLimit?: string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Gas used
|
|
3517
|
+
*/
|
|
3518
|
+
gasUsed?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Mix hash
|
|
3521
|
+
*/
|
|
3522
|
+
mixHash?: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Nonce
|
|
3525
|
+
*/
|
|
3526
|
+
nonce?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Block number
|
|
3529
|
+
*/
|
|
3530
|
+
number?: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Parent hash
|
|
3533
|
+
*/
|
|
3534
|
+
parentHash?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
timestamp?: string;
|
|
3539
|
+
};
|
|
3540
|
+
|
|
3541
|
+
type Blockchain = {
|
|
3542
|
+
createBlockTimestamp: number;
|
|
3543
|
+
createBlockNumber: string;
|
|
3544
|
+
blockchainId: string;
|
|
3545
|
+
vmId: string;
|
|
3546
|
+
subnetId: string;
|
|
3547
|
+
blockchainName: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* 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.
|
|
3550
|
+
*/
|
|
3551
|
+
evmChainId?: number;
|
|
3552
|
+
/**
|
|
3553
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3554
|
+
*/
|
|
3555
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3556
|
+
};
|
|
3557
|
+
|
|
2574
3558
|
declare enum BlockchainIds {
|
|
2575
3559
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2576
3560
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2577
3561
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2578
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2579
3562
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2580
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2581
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3563
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2582
3564
|
}
|
|
2583
3565
|
|
|
2584
3566
|
type ChainAddressChainIdMap = {
|
|
@@ -2602,16 +3584,31 @@ type DelegatorsDetails = {
|
|
|
2602
3584
|
};
|
|
2603
3585
|
|
|
2604
3586
|
type StakingDistribution = {
|
|
3587
|
+
/**
|
|
3588
|
+
* AvalancheGo version for the validator node.
|
|
3589
|
+
*/
|
|
2605
3590
|
version: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* The total amount staked by validators using this version.
|
|
3593
|
+
*/
|
|
2606
3594
|
amountStaked: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* The number of validators using this version.
|
|
3597
|
+
*/
|
|
2607
3598
|
validatorCount: number;
|
|
2608
3599
|
};
|
|
2609
3600
|
|
|
2610
3601
|
type ValidatorsDetails = {
|
|
2611
3602
|
validatorCount: number;
|
|
2612
3603
|
totalAmountStaked: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3606
|
+
*/
|
|
2613
3607
|
estimatedAnnualStakingReward: string;
|
|
2614
3608
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3609
|
+
/**
|
|
3610
|
+
* Ratio of total active stake amount to the current supply.
|
|
3611
|
+
*/
|
|
2615
3612
|
stakingRatio: string;
|
|
2616
3613
|
};
|
|
2617
3614
|
|
|
@@ -2620,15 +3617,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2620
3617
|
delegatorDetails: DelegatorsDetails;
|
|
2621
3618
|
};
|
|
2622
3619
|
|
|
2623
|
-
type Blockchain = {
|
|
2624
|
-
createBlockTimestamp: number;
|
|
2625
|
-
createBlockNumber: string;
|
|
2626
|
-
blockchainId: string;
|
|
2627
|
-
vmId: string;
|
|
2628
|
-
subnetId: string;
|
|
2629
|
-
blockchainName: string;
|
|
2630
|
-
};
|
|
2631
|
-
|
|
2632
3620
|
type ListBlockchainsResponse = {
|
|
2633
3621
|
/**
|
|
2634
3622
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2663,7 +3651,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3651
|
delegationFee: string;
|
|
2664
3652
|
startTimestamp: number;
|
|
2665
3653
|
endTimestamp: number;
|
|
3654
|
+
/**
|
|
3655
|
+
* Total rewards distributed for the successful delegation.
|
|
3656
|
+
*/
|
|
2666
3657
|
grossReward: string;
|
|
3658
|
+
/**
|
|
3659
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3660
|
+
*/
|
|
2667
3661
|
netReward: string;
|
|
2668
3662
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3663
|
};
|
|
@@ -2681,7 +3675,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3675
|
delegationFee: string;
|
|
2682
3676
|
startTimestamp: number;
|
|
2683
3677
|
endTimestamp: number;
|
|
3678
|
+
/**
|
|
3679
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3680
|
+
*/
|
|
2684
3681
|
estimatedGrossReward: string;
|
|
3682
|
+
/**
|
|
3683
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3684
|
+
*/
|
|
2685
3685
|
estimatedNetReward: string;
|
|
2686
3686
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3687
|
};
|
|
@@ -2702,8 +3702,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3702
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3703
|
};
|
|
2704
3704
|
|
|
2705
|
-
type
|
|
3705
|
+
type BalanceOwner = {
|
|
3706
|
+
addresses: Array<string>;
|
|
3707
|
+
threshold: number;
|
|
3708
|
+
};
|
|
3709
|
+
|
|
3710
|
+
type L1ValidatorDetailsFull = {
|
|
3711
|
+
/**
|
|
3712
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3713
|
+
*/
|
|
3714
|
+
validationId: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3717
|
+
*/
|
|
3718
|
+
validationIdHex: string;
|
|
3719
|
+
nodeId: string;
|
|
3720
|
+
subnetId: string;
|
|
3721
|
+
/**
|
|
3722
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
3723
|
+
*/
|
|
3724
|
+
weight: number;
|
|
3725
|
+
/**
|
|
3726
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3727
|
+
*/
|
|
3728
|
+
remainingBalance: number;
|
|
3729
|
+
/**
|
|
3730
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3731
|
+
*/
|
|
3732
|
+
creationTimestamp: number;
|
|
3733
|
+
blsCredentials: Record<string, any>;
|
|
3734
|
+
/**
|
|
3735
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3736
|
+
*/
|
|
3737
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3738
|
+
/**
|
|
3739
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3740
|
+
*/
|
|
3741
|
+
deactivationOwner: BalanceOwner;
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
type ListL1ValidatorsResponse = {
|
|
3745
|
+
/**
|
|
3746
|
+
* 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.
|
|
3747
|
+
*/
|
|
3748
|
+
nextPageToken?: string;
|
|
3749
|
+
/**
|
|
3750
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3751
|
+
*/
|
|
3752
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3753
|
+
/**
|
|
3754
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3755
|
+
*/
|
|
3756
|
+
blockHeight: string;
|
|
3757
|
+
};
|
|
3758
|
+
|
|
3759
|
+
type L1ValidatorManagerDetails = {
|
|
2706
3760
|
blockchainId: string;
|
|
3761
|
+
contractAddress: string;
|
|
2707
3762
|
};
|
|
2708
3763
|
|
|
2709
3764
|
type SubnetOwnershipInfo = {
|
|
@@ -2744,7 +3799,19 @@ type Subnet = {
|
|
|
2744
3799
|
* Latest subnet owner details for this Subnet.
|
|
2745
3800
|
*/
|
|
2746
3801
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2747
|
-
|
|
3802
|
+
/**
|
|
3803
|
+
* Whether the subnet is an L1 or not.
|
|
3804
|
+
*/
|
|
3805
|
+
isL1: boolean;
|
|
3806
|
+
/**
|
|
3807
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3808
|
+
*/
|
|
3809
|
+
l1ConversionTransactionHash?: string;
|
|
3810
|
+
/**
|
|
3811
|
+
* L1 validator manager details.
|
|
3812
|
+
*/
|
|
3813
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3814
|
+
blockchains: Array<Blockchain>;
|
|
2748
3815
|
};
|
|
2749
3816
|
|
|
2750
3817
|
type ListSubnetsResponse = {
|
|
@@ -2760,6 +3827,29 @@ type BlsCredentials = {
|
|
|
2760
3827
|
proofOfPossession: string;
|
|
2761
3828
|
};
|
|
2762
3829
|
|
|
3830
|
+
type Geolocation = {
|
|
3831
|
+
/**
|
|
3832
|
+
* The name of the validator node.
|
|
3833
|
+
*/
|
|
3834
|
+
city: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* The city of the validator node.
|
|
3837
|
+
*/
|
|
3838
|
+
country: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* The country code of the validator node.
|
|
3841
|
+
*/
|
|
3842
|
+
countryCode: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* The latitude of the validator node.
|
|
3845
|
+
*/
|
|
3846
|
+
latitude: number;
|
|
3847
|
+
/**
|
|
3848
|
+
* The longitude of the validator node.
|
|
3849
|
+
*/
|
|
3850
|
+
longitude: number;
|
|
3851
|
+
};
|
|
3852
|
+
|
|
2763
3853
|
type Rewards = {
|
|
2764
3854
|
validationRewardAmount: string;
|
|
2765
3855
|
delegationRewardAmount: string;
|
|
@@ -2791,6 +3881,9 @@ type ActiveValidatorDetails = {
|
|
|
2791
3881
|
nodeId: string;
|
|
2792
3882
|
subnetId: string;
|
|
2793
3883
|
amountStaked: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3886
|
+
*/
|
|
2794
3887
|
delegationFee?: string;
|
|
2795
3888
|
startTimestamp: number;
|
|
2796
3889
|
endTimestamp: number;
|
|
@@ -2798,15 +3891,37 @@ type ActiveValidatorDetails = {
|
|
|
2798
3891
|
* Present for AddPermissionlessValidatorTx
|
|
2799
3892
|
*/
|
|
2800
3893
|
blsCredentials?: BlsCredentials;
|
|
3894
|
+
/**
|
|
3895
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3896
|
+
*/
|
|
2801
3897
|
stakePercentage: number;
|
|
3898
|
+
/**
|
|
3899
|
+
* The number of delegators linked to the validator.
|
|
3900
|
+
*/
|
|
2802
3901
|
delegatorCount: number;
|
|
3902
|
+
/**
|
|
3903
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3904
|
+
*/
|
|
2803
3905
|
amountDelegated?: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3908
|
+
*/
|
|
2804
3909
|
uptimePerformance: number;
|
|
2805
3910
|
avalancheGoVersion?: string;
|
|
3911
|
+
/**
|
|
3912
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3913
|
+
*/
|
|
2806
3914
|
delegationCapacity?: string;
|
|
3915
|
+
/**
|
|
3916
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3917
|
+
*/
|
|
2807
3918
|
potentialRewards: Rewards;
|
|
2808
3919
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
3920
|
validatorHealth: ValidatorHealthDetails;
|
|
3921
|
+
/**
|
|
3922
|
+
* The geographical location of the validator node, if available.
|
|
3923
|
+
*/
|
|
3924
|
+
geolocation: Geolocation | null;
|
|
2810
3925
|
};
|
|
2811
3926
|
declare namespace ActiveValidatorDetails {
|
|
2812
3927
|
enum validationStatus {
|
|
@@ -2819,6 +3934,9 @@ type CompletedValidatorDetails = {
|
|
|
2819
3934
|
nodeId: string;
|
|
2820
3935
|
subnetId: string;
|
|
2821
3936
|
amountStaked: string;
|
|
3937
|
+
/**
|
|
3938
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3939
|
+
*/
|
|
2822
3940
|
delegationFee?: string;
|
|
2823
3941
|
startTimestamp: number;
|
|
2824
3942
|
endTimestamp: number;
|
|
@@ -2842,6 +3960,9 @@ type PendingValidatorDetails = {
|
|
|
2842
3960
|
nodeId: string;
|
|
2843
3961
|
subnetId: string;
|
|
2844
3962
|
amountStaked: string;
|
|
3963
|
+
/**
|
|
3964
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3965
|
+
*/
|
|
2845
3966
|
delegationFee?: string;
|
|
2846
3967
|
startTimestamp: number;
|
|
2847
3968
|
endTimestamp: number;
|
|
@@ -2862,6 +3983,9 @@ type RemovedValidatorDetails = {
|
|
|
2862
3983
|
nodeId: string;
|
|
2863
3984
|
subnetId: string;
|
|
2864
3985
|
amountStaked: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3988
|
+
*/
|
|
2865
3989
|
delegationFee?: string;
|
|
2866
3990
|
startTimestamp: number;
|
|
2867
3991
|
endTimestamp: number;
|
|
@@ -2869,7 +3993,13 @@ type RemovedValidatorDetails = {
|
|
|
2869
3993
|
* Present for AddPermissionlessValidatorTx
|
|
2870
3994
|
*/
|
|
2871
3995
|
blsCredentials?: BlsCredentials;
|
|
3996
|
+
/**
|
|
3997
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3998
|
+
*/
|
|
2872
3999
|
removeTxHash: string;
|
|
4000
|
+
/**
|
|
4001
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4002
|
+
*/
|
|
2873
4003
|
removeTimestamp: number;
|
|
2874
4004
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
4005
|
};
|
|
@@ -2949,7 +4079,6 @@ type XChainAssetDetails = {
|
|
|
2949
4079
|
declare enum XChainId {
|
|
2950
4080
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2951
4081
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2952
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2953
4082
|
X_CHAIN = "x-chain"
|
|
2954
4083
|
}
|
|
2955
4084
|
|
|
@@ -3020,7 +4149,7 @@ declare class PrimaryNetworkService {
|
|
|
3020
4149
|
*/
|
|
3021
4150
|
pageToken?: string;
|
|
3022
4151
|
/**
|
|
3023
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4152
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3024
4153
|
*/
|
|
3025
4154
|
pageSize?: number;
|
|
3026
4155
|
/**
|
|
@@ -3028,6 +4157,22 @@ declare class PrimaryNetworkService {
|
|
|
3028
4157
|
*/
|
|
3029
4158
|
sortOrder?: SortOrder;
|
|
3030
4159
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4160
|
+
/**
|
|
4161
|
+
* Get blockchain details by ID
|
|
4162
|
+
* Get details of the blockchain registered on the network.
|
|
4163
|
+
* @returns Blockchain Successful response
|
|
4164
|
+
* @throws ApiError
|
|
4165
|
+
*/
|
|
4166
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4167
|
+
/**
|
|
4168
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4169
|
+
*/
|
|
4170
|
+
blockchainId: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Either mainnet or testnet/fuji.
|
|
4173
|
+
*/
|
|
4174
|
+
network: Network;
|
|
4175
|
+
}): CancelablePromise<Blockchain>;
|
|
3031
4176
|
/**
|
|
3032
4177
|
* List subnets
|
|
3033
4178
|
* Lists all subnets registered on the network.
|
|
@@ -3044,7 +4189,7 @@ declare class PrimaryNetworkService {
|
|
|
3044
4189
|
*/
|
|
3045
4190
|
pageToken?: string;
|
|
3046
4191
|
/**
|
|
3047
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3048
4193
|
*/
|
|
3049
4194
|
pageSize?: number;
|
|
3050
4195
|
/**
|
|
@@ -3070,7 +4215,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
4215
|
}): CancelablePromise<Subnet>;
|
|
3071
4216
|
/**
|
|
3072
4217
|
* List validators
|
|
3073
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4218
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3074
4219
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3075
4220
|
* @throws ApiError
|
|
3076
4221
|
*/
|
|
@@ -3088,7 +4233,7 @@ declare class PrimaryNetworkService {
|
|
|
3088
4233
|
*/
|
|
3089
4234
|
pageSize?: number;
|
|
3090
4235
|
/**
|
|
3091
|
-
* A comma separated list of node ids to filter by.
|
|
4236
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3092
4237
|
*/
|
|
3093
4238
|
nodeIds?: string;
|
|
3094
4239
|
/**
|
|
@@ -3210,16 +4355,47 @@ declare class PrimaryNetworkService {
|
|
|
3210
4355
|
*/
|
|
3211
4356
|
nodeIds?: string;
|
|
3212
4357
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4358
|
+
/**
|
|
4359
|
+
* List L1 validators
|
|
4360
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4361
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4362
|
+
* @throws ApiError
|
|
4363
|
+
*/
|
|
4364
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4365
|
+
/**
|
|
4366
|
+
* Either mainnet or testnet/fuji.
|
|
4367
|
+
*/
|
|
4368
|
+
network: Network;
|
|
4369
|
+
/**
|
|
4370
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4371
|
+
*/
|
|
4372
|
+
pageToken?: string;
|
|
4373
|
+
/**
|
|
4374
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4375
|
+
*/
|
|
4376
|
+
pageSize?: number;
|
|
4377
|
+
/**
|
|
4378
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4379
|
+
*/
|
|
4380
|
+
l1ValidationId?: string;
|
|
4381
|
+
includeInactiveL1Validators?: boolean;
|
|
4382
|
+
/**
|
|
4383
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4384
|
+
*/
|
|
4385
|
+
nodeId?: string;
|
|
4386
|
+
/**
|
|
4387
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4388
|
+
*/
|
|
4389
|
+
subnetId?: any;
|
|
4390
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3213
4391
|
}
|
|
3214
4392
|
|
|
3215
4393
|
declare enum BlockchainId {
|
|
3216
4394
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3217
4395
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3218
4396
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3220
4397
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3221
4398
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3223
4399
|
P_CHAIN = "p-chain",
|
|
3224
4400
|
X_CHAIN = "x-chain",
|
|
3225
4401
|
C_CHAIN = "c-chain"
|
|
@@ -3456,6 +4632,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3456
4632
|
txCount: number;
|
|
3457
4633
|
transactions: Array<string>;
|
|
3458
4634
|
blockSizeBytes: number;
|
|
4635
|
+
l1ValidatorsAccruedFees?: number;
|
|
4636
|
+
activeL1Validators?: number;
|
|
3459
4637
|
currentSupply?: string;
|
|
3460
4638
|
proposerDetails?: ProposerDetails;
|
|
3461
4639
|
};
|
|
@@ -3469,6 +4647,8 @@ type PrimaryNetworkBlock = {
|
|
|
3469
4647
|
txCount: number;
|
|
3470
4648
|
transactions: Array<string>;
|
|
3471
4649
|
blockSizeBytes: number;
|
|
4650
|
+
l1ValidatorsAccruedFees?: number;
|
|
4651
|
+
activeL1Validators?: number;
|
|
3472
4652
|
currentSupply?: string;
|
|
3473
4653
|
proposerDetails?: ProposerDetails;
|
|
3474
4654
|
};
|
|
@@ -3511,7 +4691,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3511
4691
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3512
4692
|
* @throws ApiError
|
|
3513
4693
|
*/
|
|
3514
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4694
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3515
4695
|
/**
|
|
3516
4696
|
* A primary network blockchain id or alias.
|
|
3517
4697
|
*/
|
|
@@ -3523,7 +4703,15 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3523
4703
|
/**
|
|
3524
4704
|
* A primary network (P or X chain) nodeId.
|
|
3525
4705
|
*/
|
|
3526
|
-
nodeId: string;
|
|
4706
|
+
nodeId: string;
|
|
4707
|
+
/**
|
|
4708
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4709
|
+
*/
|
|
4710
|
+
startTimestamp?: number;
|
|
4711
|
+
/**
|
|
4712
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4713
|
+
*/
|
|
4714
|
+
endTimestamp?: number;
|
|
3527
4715
|
/**
|
|
3528
4716
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3529
4717
|
*/
|
|
@@ -3539,7 +4727,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3539
4727
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3540
4728
|
* @throws ApiError
|
|
3541
4729
|
*/
|
|
3542
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4730
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3543
4731
|
/**
|
|
3544
4732
|
* A primary network blockchain id or alias.
|
|
3545
4733
|
*/
|
|
@@ -3548,6 +4736,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3548
4736
|
* Either mainnet or testnet/fuji.
|
|
3549
4737
|
*/
|
|
3550
4738
|
network: Network;
|
|
4739
|
+
/**
|
|
4740
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4741
|
+
*/
|
|
4742
|
+
startTimestamp?: number;
|
|
4743
|
+
/**
|
|
4744
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4745
|
+
*/
|
|
4746
|
+
endTimestamp?: number;
|
|
3551
4747
|
/**
|
|
3552
4748
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3553
4749
|
*/
|
|
@@ -3789,6 +4985,10 @@ type Utxo = {
|
|
|
3789
4985
|
* UTXO ID for this output.
|
|
3790
4986
|
*/
|
|
3791
4987
|
utxoId: string;
|
|
4988
|
+
/**
|
|
4989
|
+
* The bytes of the UTXO
|
|
4990
|
+
*/
|
|
4991
|
+
utxoBytes?: string;
|
|
3792
4992
|
/**
|
|
3793
4993
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3794
4994
|
*/
|
|
@@ -3957,6 +5157,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3957
5157
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3958
5158
|
};
|
|
3959
5159
|
|
|
5160
|
+
type BlockchainInfo = {
|
|
5161
|
+
chainName: string;
|
|
5162
|
+
vmId: string;
|
|
5163
|
+
/**
|
|
5164
|
+
* 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
|
|
5165
|
+
*/
|
|
5166
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5167
|
+
};
|
|
5168
|
+
|
|
5169
|
+
type L1ValidatorDetailsTransaction = {
|
|
5170
|
+
/**
|
|
5171
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5172
|
+
*/
|
|
5173
|
+
validationId: string;
|
|
5174
|
+
/**
|
|
5175
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5176
|
+
*/
|
|
5177
|
+
validationIdHex: string;
|
|
5178
|
+
nodeId: string;
|
|
5179
|
+
subnetId: string;
|
|
5180
|
+
/**
|
|
5181
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
5182
|
+
*/
|
|
5183
|
+
weight: number;
|
|
5184
|
+
/**
|
|
5185
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5186
|
+
*/
|
|
5187
|
+
remainingBalance: number;
|
|
5188
|
+
/**
|
|
5189
|
+
* 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
|
|
5190
|
+
*/
|
|
5191
|
+
balanceChange?: number;
|
|
5192
|
+
blsCredentials?: Record<string, any>;
|
|
5193
|
+
};
|
|
5194
|
+
|
|
3960
5195
|
declare enum PChainTransactionType {
|
|
3961
5196
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3962
5197
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3973,14 +5208,17 @@ declare enum PChainTransactionType {
|
|
|
3973
5208
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3974
5209
|
BASE_TX = "BaseTx",
|
|
3975
5210
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
5211
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5212
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5213
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5214
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5215
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3981
5216
|
UNKNOWN = "UNKNOWN"
|
|
3982
5217
|
}
|
|
3983
5218
|
|
|
5219
|
+
/**
|
|
5220
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5221
|
+
*/
|
|
3984
5222
|
declare enum UtxoType {
|
|
3985
5223
|
STAKE = "STAKE",
|
|
3986
5224
|
TRANSFER = "TRANSFER"
|
|
@@ -4008,6 +5246,10 @@ type PChainUtxo = {
|
|
|
4008
5246
|
* UTXO ID for this output.
|
|
4009
5247
|
*/
|
|
4010
5248
|
utxoId: string;
|
|
5249
|
+
/**
|
|
5250
|
+
* The bytes of the UTXO
|
|
5251
|
+
*/
|
|
5252
|
+
utxoBytes?: string;
|
|
4011
5253
|
/**
|
|
4012
5254
|
* @deprecated
|
|
4013
5255
|
*/
|
|
@@ -4018,25 +5260,47 @@ type PChainUtxo = {
|
|
|
4018
5260
|
assetId: string;
|
|
4019
5261
|
blockNumber: string;
|
|
4020
5262
|
blockTimestamp: number;
|
|
5263
|
+
/**
|
|
5264
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5265
|
+
*/
|
|
4021
5266
|
consumingBlockNumber?: string;
|
|
5267
|
+
/**
|
|
5268
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5269
|
+
*/
|
|
4022
5270
|
consumingBlockTimestamp?: number;
|
|
5271
|
+
/**
|
|
5272
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5273
|
+
*/
|
|
4023
5274
|
platformLocktime?: number;
|
|
5275
|
+
/**
|
|
5276
|
+
* The index of the UTXO in the transaction
|
|
5277
|
+
*/
|
|
4024
5278
|
outputIndex: number;
|
|
4025
5279
|
rewardType?: RewardType;
|
|
5280
|
+
/**
|
|
5281
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5282
|
+
*/
|
|
4026
5283
|
stakeableLocktime?: number;
|
|
4027
5284
|
staked?: boolean;
|
|
5285
|
+
/**
|
|
5286
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5287
|
+
*/
|
|
4028
5288
|
threshold?: number;
|
|
5289
|
+
/**
|
|
5290
|
+
* The hash of the transaction that created this UTXO
|
|
5291
|
+
*/
|
|
4029
5292
|
txHash: string;
|
|
5293
|
+
/**
|
|
5294
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5295
|
+
*/
|
|
4030
5296
|
utxoEndTimestamp?: number;
|
|
5297
|
+
/**
|
|
5298
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5299
|
+
*/
|
|
4031
5300
|
utxoStartTimestamp?: number;
|
|
4032
5301
|
utxoType: UtxoType;
|
|
4033
5302
|
};
|
|
4034
5303
|
|
|
4035
|
-
type SubnetValidatorManagerDetails = {
|
|
4036
|
-
blockchainId: string;
|
|
4037
|
-
evmContractAddress: string;
|
|
4038
|
-
};
|
|
4039
|
-
|
|
4040
5304
|
type PChainTransaction = {
|
|
4041
5305
|
/**
|
|
4042
5306
|
* A P-Chain transaction hash.
|
|
@@ -4047,9 +5311,18 @@ type PChainTransaction = {
|
|
|
4047
5311
|
* The block finality timestamp.
|
|
4048
5312
|
*/
|
|
4049
5313
|
blockTimestamp: number;
|
|
5314
|
+
/**
|
|
5315
|
+
* The height of the block in which the transaction was included
|
|
5316
|
+
*/
|
|
4050
5317
|
blockNumber: string;
|
|
4051
5318
|
blockHash: string;
|
|
5319
|
+
/**
|
|
5320
|
+
* The consumed UTXOs of the transaction
|
|
5321
|
+
*/
|
|
4052
5322
|
consumedUtxos: Array<PChainUtxo>;
|
|
5323
|
+
/**
|
|
5324
|
+
* The newly created UTXOs of the transaction
|
|
5325
|
+
*/
|
|
4053
5326
|
emittedUtxos: Array<PChainUtxo>;
|
|
4054
5327
|
/**
|
|
4055
5328
|
* Source chain for an atomic transaction.
|
|
@@ -4060,11 +5333,11 @@ type PChainTransaction = {
|
|
|
4060
5333
|
*/
|
|
4061
5334
|
destinationChain?: string;
|
|
4062
5335
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5336
|
+
* 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
|
|
4064
5337
|
*/
|
|
4065
5338
|
value: Array<AssetAmount>;
|
|
4066
5339
|
/**
|
|
4067
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5340
|
+
* 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
|
|
4068
5341
|
*/
|
|
4069
5342
|
amountBurned: Array<AssetAmount>;
|
|
4070
5343
|
/**
|
|
@@ -4072,9 +5345,9 @@ type PChainTransaction = {
|
|
|
4072
5345
|
*/
|
|
4073
5346
|
amountStaked: Array<AssetAmount>;
|
|
4074
5347
|
/**
|
|
4075
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5348
|
+
* 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.
|
|
4076
5349
|
*/
|
|
4077
|
-
|
|
5350
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4078
5351
|
/**
|
|
4079
5352
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
5353
|
*/
|
|
@@ -4084,11 +5357,11 @@ type PChainTransaction = {
|
|
|
4084
5357
|
*/
|
|
4085
5358
|
endTimestamp?: number;
|
|
4086
5359
|
/**
|
|
4087
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5360
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4088
5361
|
*/
|
|
4089
5362
|
delegationFeePercent?: string;
|
|
4090
5363
|
/**
|
|
4091
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5364
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
5365
|
*/
|
|
4093
5366
|
nodeId?: string;
|
|
4094
5367
|
/**
|
|
@@ -4096,22 +5369,25 @@ type PChainTransaction = {
|
|
|
4096
5369
|
*/
|
|
4097
5370
|
subnetId?: string;
|
|
4098
5371
|
/**
|
|
4099
|
-
* Present for
|
|
5372
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4100
5373
|
*/
|
|
4101
|
-
|
|
5374
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4102
5375
|
/**
|
|
4103
|
-
*
|
|
5376
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4104
5377
|
*/
|
|
4105
|
-
|
|
5378
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4106
5379
|
/**
|
|
4107
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5380
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4108
5381
|
*/
|
|
4109
5382
|
estimatedReward?: string;
|
|
5383
|
+
/**
|
|
5384
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5385
|
+
*/
|
|
4110
5386
|
rewardTxHash?: string;
|
|
4111
5387
|
rewardAddresses?: Array<string>;
|
|
4112
5388
|
memo?: string;
|
|
4113
5389
|
/**
|
|
4114
|
-
*
|
|
5390
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4115
5391
|
*/
|
|
4116
5392
|
stakingTxHash?: string;
|
|
4117
5393
|
/**
|
|
@@ -4119,9 +5395,13 @@ type PChainTransaction = {
|
|
|
4119
5395
|
*/
|
|
4120
5396
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4121
5397
|
/**
|
|
4122
|
-
* Present for AddPermissionlessValidatorTx
|
|
5398
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4123
5399
|
*/
|
|
4124
5400
|
blsCredentials?: BlsCredentials;
|
|
5401
|
+
/**
|
|
5402
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5403
|
+
*/
|
|
5404
|
+
blockchainInfo?: BlockchainInfo;
|
|
4125
5405
|
};
|
|
4126
5406
|
|
|
4127
5407
|
type ListPChainTransactionsResponse = {
|
|
@@ -4304,11 +5584,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4304
5584
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4305
5585
|
BASE_TX = "BaseTx",
|
|
4306
5586
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
5587
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5588
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5589
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5590
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5591
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4312
5592
|
UNKNOWN = "UNKNOWN",
|
|
4313
5593
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4314
5594
|
OPERATION_TX = "OperationTx"
|
|
@@ -4343,11 +5623,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4343
5623
|
*
|
|
4344
5624
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4345
5625
|
*
|
|
5626
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
5627
|
+
*
|
|
4346
5628
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4347
5629
|
* @returns any Successful response
|
|
4348
5630
|
* @throws ApiError
|
|
4349
5631
|
*/
|
|
4350
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5632
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4351
5633
|
/**
|
|
4352
5634
|
* A primary network blockchain id or alias.
|
|
4353
5635
|
*/
|
|
@@ -4360,6 +5642,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4360
5642
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4361
5643
|
*/
|
|
4362
5644
|
addresses?: string;
|
|
5645
|
+
l1ValidationId?: string;
|
|
4363
5646
|
/**
|
|
4364
5647
|
* Query param for filtering items based on transaction types.
|
|
4365
5648
|
*/
|
|
@@ -4489,6 +5772,18 @@ type ListUtxosResponse = {
|
|
|
4489
5772
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4490
5773
|
};
|
|
4491
5774
|
|
|
5775
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5776
|
+
/**
|
|
5777
|
+
* Comma-separated list of primary network addresses
|
|
5778
|
+
*/
|
|
5779
|
+
addresses: string;
|
|
5780
|
+
};
|
|
5781
|
+
|
|
5782
|
+
declare enum UtxosSortByOption {
|
|
5783
|
+
TIMESTAMP = "timestamp",
|
|
5784
|
+
AMOUNT = "amount"
|
|
5785
|
+
}
|
|
5786
|
+
|
|
4492
5787
|
declare class PrimaryNetworkUtxOsService {
|
|
4493
5788
|
readonly httpRequest: BaseHttpRequest;
|
|
4494
5789
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4498,7 +5793,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4498
5793
|
* @returns any Successful response
|
|
4499
5794
|
* @throws ApiError
|
|
4500
5795
|
*/
|
|
4501
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5796
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4502
5797
|
/**
|
|
4503
5798
|
* A primary network blockchain id or alias.
|
|
4504
5799
|
*/
|
|
@@ -4523,10 +5818,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4523
5818
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4524
5819
|
*/
|
|
4525
5820
|
assetId?: string;
|
|
5821
|
+
/**
|
|
5822
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5823
|
+
*/
|
|
5824
|
+
minUtxoAmount?: number;
|
|
5825
|
+
/**
|
|
5826
|
+
* Boolean filter to include spent UTXOs.
|
|
5827
|
+
*/
|
|
5828
|
+
includeSpent?: boolean;
|
|
5829
|
+
/**
|
|
5830
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5831
|
+
*/
|
|
5832
|
+
sortBy?: UtxosSortByOption;
|
|
5833
|
+
/**
|
|
5834
|
+
* 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.
|
|
5835
|
+
*/
|
|
5836
|
+
sortOrder?: SortOrder;
|
|
5837
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5838
|
+
/**
|
|
5839
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5840
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5841
|
+
* @returns any Successful response
|
|
5842
|
+
* @throws ApiError
|
|
5843
|
+
*/
|
|
5844
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5845
|
+
/**
|
|
5846
|
+
* A primary network blockchain id or alias.
|
|
5847
|
+
*/
|
|
5848
|
+
blockchainId: BlockchainId;
|
|
5849
|
+
/**
|
|
5850
|
+
* Either mainnet or testnet/fuji.
|
|
5851
|
+
*/
|
|
5852
|
+
network: Network;
|
|
5853
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5854
|
+
/**
|
|
5855
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5856
|
+
*/
|
|
5857
|
+
pageToken?: string;
|
|
5858
|
+
/**
|
|
5859
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5860
|
+
*/
|
|
5861
|
+
pageSize?: number;
|
|
5862
|
+
/**
|
|
5863
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5864
|
+
*/
|
|
5865
|
+
assetId?: string;
|
|
5866
|
+
/**
|
|
5867
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5868
|
+
*/
|
|
5869
|
+
minUtxoAmount?: number;
|
|
4526
5870
|
/**
|
|
4527
5871
|
* Boolean filter to include spent UTXOs.
|
|
4528
5872
|
*/
|
|
4529
5873
|
includeSpent?: boolean;
|
|
5874
|
+
/**
|
|
5875
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5876
|
+
*/
|
|
5877
|
+
sortBy?: UtxosSortByOption;
|
|
4530
5878
|
/**
|
|
4531
5879
|
* 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.
|
|
4532
5880
|
*/
|
|
@@ -4641,15 +5989,29 @@ type SignatureAggregationResponse = {
|
|
|
4641
5989
|
|
|
4642
5990
|
type SignatureAggregatorRequest = {
|
|
4643
5991
|
/**
|
|
4644
|
-
*
|
|
5992
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4645
5993
|
*/
|
|
4646
5994
|
message?: string;
|
|
4647
5995
|
/**
|
|
4648
|
-
*
|
|
5996
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4649
5997
|
*/
|
|
4650
5998
|
justification?: string;
|
|
5999
|
+
/**
|
|
6000
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6001
|
+
*/
|
|
4651
6002
|
signingSubnetId?: string;
|
|
6003
|
+
/**
|
|
6004
|
+
* 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.
|
|
6005
|
+
*/
|
|
4652
6006
|
quorumPercentage?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
* 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.
|
|
6009
|
+
*/
|
|
6010
|
+
quorumPercentageBuffer?: number;
|
|
6011
|
+
/**
|
|
6012
|
+
* 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.
|
|
6013
|
+
*/
|
|
6014
|
+
pChainHeight?: number;
|
|
4653
6015
|
};
|
|
4654
6016
|
|
|
4655
6017
|
declare class SignatureAggregatorService {
|
|
@@ -4661,9 +6023,29 @@ declare class SignatureAggregatorService {
|
|
|
4661
6023
|
* @returns SignatureAggregationResponse Successful response
|
|
4662
6024
|
* @throws ApiError
|
|
4663
6025
|
*/
|
|
4664
|
-
aggregateSignatures({ requestBody, }: {
|
|
6026
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6027
|
+
/**
|
|
6028
|
+
* Either mainnet or testnet/fuji.
|
|
6029
|
+
*/
|
|
6030
|
+
network: Network;
|
|
4665
6031
|
requestBody: SignatureAggregatorRequest;
|
|
4666
6032
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6033
|
+
/**
|
|
6034
|
+
* Get Aggregated Signatures
|
|
6035
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6036
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6037
|
+
* @throws ApiError
|
|
6038
|
+
*/
|
|
6039
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6040
|
+
/**
|
|
6041
|
+
* Either mainnet or testnet/fuji.
|
|
6042
|
+
*/
|
|
6043
|
+
network: Network;
|
|
6044
|
+
/**
|
|
6045
|
+
* A primary network (P or X chain) transaction hash.
|
|
6046
|
+
*/
|
|
6047
|
+
txHash: string;
|
|
6048
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4667
6049
|
}
|
|
4668
6050
|
|
|
4669
6051
|
type TeleporterDestinationTransaction = {
|
|
@@ -4797,15 +6179,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4797
6179
|
* 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.
|
|
4798
6180
|
*/
|
|
4799
6181
|
nextPageToken?: string;
|
|
4800
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6182
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4801
6183
|
};
|
|
4802
6184
|
|
|
4803
6185
|
declare class TeleporterService {
|
|
4804
6186
|
readonly httpRequest: BaseHttpRequest;
|
|
4805
6187
|
constructor(httpRequest: BaseHttpRequest);
|
|
4806
6188
|
/**
|
|
4807
|
-
*
|
|
4808
|
-
* Gets a teleporter message by message ID.
|
|
6189
|
+
* @deprecated
|
|
6190
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6191
|
+
*
|
|
6192
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4809
6193
|
* @returns any Successful response
|
|
4810
6194
|
* @throws ApiError
|
|
4811
6195
|
*/
|
|
@@ -4816,8 +6200,10 @@ declare class TeleporterService {
|
|
|
4816
6200
|
messageId: string;
|
|
4817
6201
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4818
6202
|
/**
|
|
4819
|
-
*
|
|
4820
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6203
|
+
* @deprecated
|
|
6204
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6205
|
+
*
|
|
6206
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4821
6207
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4822
6208
|
* @throws ApiError
|
|
4823
6209
|
*/
|
|
@@ -4856,8 +6242,10 @@ declare class TeleporterService {
|
|
|
4856
6242
|
network?: Network;
|
|
4857
6243
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4858
6244
|
/**
|
|
4859
|
-
*
|
|
4860
|
-
* Lists teleporter messages by address. Ordered by
|
|
6245
|
+
* @deprecated
|
|
6246
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6247
|
+
*
|
|
6248
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4861
6249
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4862
6250
|
* @throws ApiError
|
|
4863
6251
|
*/
|
|
@@ -4890,68 +6278,212 @@ type AddressesChangeRequest = {
|
|
|
4890
6278
|
|
|
4891
6279
|
type AddressActivityMetadata = {
|
|
4892
6280
|
/**
|
|
4893
|
-
*
|
|
6281
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6282
|
+
*/
|
|
6283
|
+
eventSignatures?: Array<string>;
|
|
6284
|
+
/**
|
|
6285
|
+
* 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.
|
|
4894
6286
|
*/
|
|
4895
6287
|
addresses: Array<string>;
|
|
6288
|
+
};
|
|
6289
|
+
|
|
6290
|
+
type EVMAddressActivityRequest = {
|
|
6291
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6292
|
+
url: string;
|
|
6293
|
+
name?: string;
|
|
6294
|
+
description?: string;
|
|
6295
|
+
chainId: string;
|
|
6296
|
+
metadata: AddressActivityMetadata;
|
|
4896
6297
|
/**
|
|
4897
|
-
*
|
|
6298
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4898
6299
|
*/
|
|
4899
|
-
|
|
6300
|
+
includeInternalTxs?: boolean;
|
|
6301
|
+
/**
|
|
6302
|
+
* Whether to include logs in the webhook payload.
|
|
6303
|
+
*/
|
|
6304
|
+
includeLogs?: boolean;
|
|
4900
6305
|
};
|
|
6306
|
+
declare namespace EVMAddressActivityRequest {
|
|
6307
|
+
enum eventType {
|
|
6308
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6309
|
+
}
|
|
6310
|
+
}
|
|
4901
6311
|
|
|
4902
|
-
declare enum
|
|
6312
|
+
declare enum AddressActivityEventType {
|
|
4903
6313
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4904
6314
|
}
|
|
4905
6315
|
|
|
4906
|
-
|
|
6316
|
+
declare enum WebhookStatusType {
|
|
6317
|
+
ACTIVE = "active",
|
|
6318
|
+
INACTIVE = "inactive"
|
|
6319
|
+
}
|
|
6320
|
+
|
|
6321
|
+
type EVMAddressActivityResponse = {
|
|
6322
|
+
id: string;
|
|
4907
6323
|
url: string;
|
|
4908
6324
|
chainId: string;
|
|
4909
|
-
|
|
6325
|
+
status: WebhookStatusType;
|
|
6326
|
+
createdAt: number;
|
|
6327
|
+
name: string;
|
|
6328
|
+
description: string;
|
|
6329
|
+
eventType: AddressActivityEventType;
|
|
4910
6330
|
metadata: AddressActivityMetadata;
|
|
4911
|
-
name?: string;
|
|
4912
|
-
description?: string;
|
|
4913
6331
|
/**
|
|
4914
|
-
* Whether to include traces in the webhook payload.
|
|
6332
|
+
* Whether to include traces in the webhook payload.
|
|
6333
|
+
*/
|
|
6334
|
+
includeInternalTxs?: boolean;
|
|
6335
|
+
/**
|
|
6336
|
+
* Whether to include logs in the webhook payload.
|
|
6337
|
+
*/
|
|
6338
|
+
includeLogs?: boolean;
|
|
6339
|
+
};
|
|
6340
|
+
|
|
6341
|
+
type ListWebhookAddressesResponse = {
|
|
6342
|
+
/**
|
|
6343
|
+
* 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.
|
|
6344
|
+
*/
|
|
6345
|
+
nextPageToken?: string;
|
|
6346
|
+
addresses: Array<string>;
|
|
6347
|
+
totalAddresses: number;
|
|
6348
|
+
};
|
|
6349
|
+
|
|
6350
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6351
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6352
|
+
}
|
|
6353
|
+
|
|
6354
|
+
/**
|
|
6355
|
+
* The type of key to monitor for the address activity event type.
|
|
6356
|
+
*/
|
|
6357
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6358
|
+
ADDRESSES = "addresses"
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* Array of address activity sub-event types
|
|
6363
|
+
*/
|
|
6364
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6365
|
+
BALANCE_CHANGE = "balance_change",
|
|
6366
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6367
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6370
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6371
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6372
|
+
};
|
|
6373
|
+
|
|
6374
|
+
/**
|
|
6375
|
+
* Type of balance to monitor
|
|
6376
|
+
*/
|
|
6377
|
+
declare enum CommonBalanceType {
|
|
6378
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6379
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6380
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6381
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6382
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6383
|
+
PENDING_STAKED = "pendingStaked",
|
|
6384
|
+
UNLOCKED = "unlocked",
|
|
6385
|
+
LOCKED = "locked",
|
|
6386
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6387
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6388
|
+
}
|
|
6389
|
+
|
|
6390
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6391
|
+
balanceType: CommonBalanceType;
|
|
6392
|
+
/**
|
|
6393
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6394
|
+
*/
|
|
6395
|
+
balanceThreshold: string;
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6399
|
+
/**
|
|
6400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6401
|
+
*/
|
|
6402
|
+
eventSignatures?: Array<string>;
|
|
6403
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6404
|
+
/**
|
|
6405
|
+
* 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.
|
|
6406
|
+
*/
|
|
6407
|
+
keys: Array<string>;
|
|
6408
|
+
/**
|
|
6409
|
+
* Sub-events to monitor
|
|
6410
|
+
*/
|
|
6411
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6412
|
+
/**
|
|
6413
|
+
* Balance threshold filter
|
|
6414
|
+
*/
|
|
6415
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6416
|
+
};
|
|
6417
|
+
|
|
6418
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6419
|
+
id: string;
|
|
6420
|
+
url: string;
|
|
6421
|
+
chainId: string;
|
|
6422
|
+
status: WebhookStatusType;
|
|
6423
|
+
createdAt: number;
|
|
6424
|
+
name: string;
|
|
6425
|
+
description: string;
|
|
6426
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6427
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
declare enum ValidatorActivityEventType {
|
|
6431
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
/**
|
|
6435
|
+
* The type of key to monitor for the validator activity event type.
|
|
6436
|
+
*/
|
|
6437
|
+
declare enum ValidatorActivityKeyType {
|
|
6438
|
+
NODE_ID = "nodeId",
|
|
6439
|
+
SUBNET_ID = "subnetId"
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
type ValidatorActivitySubEvents = {
|
|
6443
|
+
/**
|
|
6444
|
+
* Array of validator activity sub-event types
|
|
6445
|
+
*/
|
|
6446
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
type ValidatorActivityMetadata = {
|
|
6450
|
+
/**
|
|
6451
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6452
|
+
*/
|
|
6453
|
+
eventSignatures?: Array<string>;
|
|
6454
|
+
keyType: ValidatorActivityKeyType;
|
|
6455
|
+
/**
|
|
6456
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
4915
6457
|
*/
|
|
4916
|
-
|
|
6458
|
+
keys: Array<string>;
|
|
4917
6459
|
/**
|
|
4918
|
-
*
|
|
6460
|
+
* Sub-events to monitor
|
|
4919
6461
|
*/
|
|
4920
|
-
|
|
4921
|
-
};
|
|
4922
|
-
|
|
4923
|
-
type ListWebhookAddressesResponse = {
|
|
6462
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4924
6463
|
/**
|
|
4925
|
-
*
|
|
6464
|
+
* Array of node IDs to filter the events
|
|
4926
6465
|
*/
|
|
4927
|
-
|
|
4928
|
-
addresses: Array<string>;
|
|
4929
|
-
totalAddresses: number;
|
|
4930
|
-
};
|
|
4931
|
-
|
|
4932
|
-
declare enum WebhookStatusType {
|
|
4933
|
-
ACTIVE = "active",
|
|
4934
|
-
INACTIVE = "inactive"
|
|
4935
|
-
}
|
|
4936
|
-
|
|
4937
|
-
type WebhookResponse = {
|
|
4938
|
-
id: string;
|
|
4939
|
-
eventType: EventType;
|
|
4940
|
-
metadata: AddressActivityMetadata;
|
|
6466
|
+
nodeIds?: Array<string>;
|
|
4941
6467
|
/**
|
|
4942
|
-
*
|
|
6468
|
+
* Array of subnet IDs to filter the events
|
|
4943
6469
|
*/
|
|
4944
|
-
|
|
6470
|
+
subnetIds?: Array<string>;
|
|
4945
6471
|
/**
|
|
4946
|
-
*
|
|
6472
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4947
6473
|
*/
|
|
4948
|
-
|
|
6474
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6475
|
+
};
|
|
6476
|
+
|
|
6477
|
+
type ValidatorActivityResponse = {
|
|
6478
|
+
id: string;
|
|
4949
6479
|
url: string;
|
|
4950
6480
|
chainId: string;
|
|
4951
6481
|
status: WebhookStatusType;
|
|
4952
6482
|
createdAt: number;
|
|
4953
6483
|
name: string;
|
|
4954
6484
|
description: string;
|
|
6485
|
+
eventType: ValidatorActivityEventType;
|
|
6486
|
+
metadata: ValidatorActivityMetadata;
|
|
4955
6487
|
};
|
|
4956
6488
|
|
|
4957
6489
|
type ListWebhooksResponse = {
|
|
@@ -4959,8 +6491,31 @@ type ListWebhooksResponse = {
|
|
|
4959
6491
|
* 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.
|
|
4960
6492
|
*/
|
|
4961
6493
|
nextPageToken?: string;
|
|
4962
|
-
webhooks: Array<
|
|
6494
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6495
|
+
};
|
|
6496
|
+
|
|
6497
|
+
declare enum PrimaryNetworkType {
|
|
6498
|
+
MAINNET = "mainnet",
|
|
6499
|
+
FUJI = "fuji"
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6503
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6504
|
+
url: string;
|
|
6505
|
+
name?: string;
|
|
6506
|
+
description?: string;
|
|
6507
|
+
network: PrimaryNetworkType;
|
|
6508
|
+
chainId: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Metadata for platform address activity event
|
|
6511
|
+
*/
|
|
6512
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
4963
6513
|
};
|
|
6514
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6515
|
+
enum eventType {
|
|
6516
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6517
|
+
}
|
|
6518
|
+
}
|
|
4964
6519
|
|
|
4965
6520
|
type SharedSecretsResponse = {
|
|
4966
6521
|
secret: string;
|
|
@@ -4971,10 +6526,30 @@ type UpdateWebhookRequest = {
|
|
|
4971
6526
|
description?: string;
|
|
4972
6527
|
url?: string;
|
|
4973
6528
|
status?: WebhookStatusType;
|
|
6529
|
+
/**
|
|
6530
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6531
|
+
*/
|
|
4974
6532
|
includeInternalTxs?: boolean;
|
|
4975
6533
|
includeLogs?: boolean;
|
|
4976
6534
|
};
|
|
4977
6535
|
|
|
6536
|
+
type ValidatorActivityRequest = {
|
|
6537
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6538
|
+
url: string;
|
|
6539
|
+
name?: string;
|
|
6540
|
+
description?: string;
|
|
6541
|
+
network: PrimaryNetworkType;
|
|
6542
|
+
/**
|
|
6543
|
+
* Metadata for platform validator activity event
|
|
6544
|
+
*/
|
|
6545
|
+
metadata: ValidatorActivityMetadata;
|
|
6546
|
+
};
|
|
6547
|
+
declare namespace ValidatorActivityRequest {
|
|
6548
|
+
enum eventType {
|
|
6549
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6552
|
+
|
|
4978
6553
|
declare enum WebhookStatus {
|
|
4979
6554
|
ACTIVE = "active",
|
|
4980
6555
|
INACTIVE = "inactive"
|
|
@@ -4986,12 +6561,12 @@ declare class WebhooksService {
|
|
|
4986
6561
|
/**
|
|
4987
6562
|
* Create a webhook
|
|
4988
6563
|
* Create a new webhook.
|
|
4989
|
-
* @returns
|
|
6564
|
+
* @returns any Successful response
|
|
4990
6565
|
* @throws ApiError
|
|
4991
6566
|
*/
|
|
4992
6567
|
createWebhook({ requestBody, }: {
|
|
4993
|
-
requestBody:
|
|
4994
|
-
}): CancelablePromise<
|
|
6568
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6569
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4995
6570
|
/**
|
|
4996
6571
|
* List webhooks
|
|
4997
6572
|
* Lists webhooks for the user.
|
|
@@ -5015,7 +6590,7 @@ declare class WebhooksService {
|
|
|
5015
6590
|
/**
|
|
5016
6591
|
* Get a webhook by ID
|
|
5017
6592
|
* Retrieves a webhook by ID.
|
|
5018
|
-
* @returns
|
|
6593
|
+
* @returns any Successful response
|
|
5019
6594
|
* @throws ApiError
|
|
5020
6595
|
*/
|
|
5021
6596
|
getWebhook({ id, }: {
|
|
@@ -5023,11 +6598,11 @@ declare class WebhooksService {
|
|
|
5023
6598
|
* The webhook identifier.
|
|
5024
6599
|
*/
|
|
5025
6600
|
id: string;
|
|
5026
|
-
}): CancelablePromise<
|
|
6601
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5027
6602
|
/**
|
|
5028
6603
|
* Deactivate a webhook
|
|
5029
6604
|
* Deactivates a webhook by ID.
|
|
5030
|
-
* @returns
|
|
6605
|
+
* @returns any Successful response
|
|
5031
6606
|
* @throws ApiError
|
|
5032
6607
|
*/
|
|
5033
6608
|
deactivateWebhook({ id, }: {
|
|
@@ -5035,11 +6610,11 @@ declare class WebhooksService {
|
|
|
5035
6610
|
* The webhook identifier.
|
|
5036
6611
|
*/
|
|
5037
6612
|
id: string;
|
|
5038
|
-
}): CancelablePromise<
|
|
6613
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5039
6614
|
/**
|
|
5040
6615
|
* Update a webhook
|
|
5041
6616
|
* Updates an existing webhook.
|
|
5042
|
-
* @returns
|
|
6617
|
+
* @returns any Successful response
|
|
5043
6618
|
* @throws ApiError
|
|
5044
6619
|
*/
|
|
5045
6620
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5048,14 +6623,14 @@ declare class WebhooksService {
|
|
|
5048
6623
|
*/
|
|
5049
6624
|
id: string;
|
|
5050
6625
|
requestBody: UpdateWebhookRequest;
|
|
5051
|
-
}): CancelablePromise<
|
|
6626
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5052
6627
|
/**
|
|
5053
|
-
* Generate a shared secret
|
|
5054
|
-
* Generates a new shared secret.
|
|
6628
|
+
* Generate or rotate a shared secret
|
|
6629
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5055
6630
|
* @returns SharedSecretsResponse Successful response
|
|
5056
6631
|
* @throws ApiError
|
|
5057
6632
|
*/
|
|
5058
|
-
|
|
6633
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5059
6634
|
/**
|
|
5060
6635
|
* Get a shared secret
|
|
5061
6636
|
* Get a previously generated shared secret.
|
|
@@ -5064,9 +6639,9 @@ declare class WebhooksService {
|
|
|
5064
6639
|
*/
|
|
5065
6640
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5066
6641
|
/**
|
|
5067
|
-
* Add addresses to webhook
|
|
5068
|
-
* Add addresses to webhook.
|
|
5069
|
-
* @returns
|
|
6642
|
+
* Add addresses to EVM activity webhook
|
|
6643
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6644
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5070
6645
|
* @throws ApiError
|
|
5071
6646
|
*/
|
|
5072
6647
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5075,11 +6650,11 @@ declare class WebhooksService {
|
|
|
5075
6650
|
*/
|
|
5076
6651
|
id: string;
|
|
5077
6652
|
requestBody: AddressesChangeRequest;
|
|
5078
|
-
}): CancelablePromise<
|
|
6653
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5079
6654
|
/**
|
|
5080
|
-
* Remove addresses from webhook
|
|
5081
|
-
* Remove addresses from webhook.
|
|
5082
|
-
* @returns
|
|
6655
|
+
* Remove addresses from EVM activity webhook
|
|
6656
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6657
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5083
6658
|
* @throws ApiError
|
|
5084
6659
|
*/
|
|
5085
6660
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5088,10 +6663,10 @@ declare class WebhooksService {
|
|
|
5088
6663
|
*/
|
|
5089
6664
|
id: string;
|
|
5090
6665
|
requestBody: AddressesChangeRequest;
|
|
5091
|
-
}): CancelablePromise<
|
|
6666
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5092
6667
|
/**
|
|
5093
|
-
* List adresses by
|
|
5094
|
-
* List adresses by webhook.
|
|
6668
|
+
* List adresses by EVM activity webhooks
|
|
6669
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5095
6670
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5096
6671
|
* @throws ApiError
|
|
5097
6672
|
*/
|
|
@@ -5113,6 +6688,7 @@ declare class WebhooksService {
|
|
|
5113
6688
|
|
|
5114
6689
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5115
6690
|
declare class Glacier {
|
|
6691
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5116
6692
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5117
6693
|
readonly default: DefaultService;
|
|
5118
6694
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5121,7 +6697,9 @@ declare class Glacier {
|
|
|
5121
6697
|
readonly evmContracts: EvmContractsService;
|
|
5122
6698
|
readonly evmTransactions: EvmTransactionsService;
|
|
5123
6699
|
readonly healthCheck: HealthCheckService;
|
|
6700
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5124
6701
|
readonly nfTs: NfTsService;
|
|
6702
|
+
readonly notifications: NotificationsService;
|
|
5125
6703
|
readonly operations: OperationsService;
|
|
5126
6704
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5127
6705
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5154,6 +6732,17 @@ declare class ApiError extends Error {
|
|
|
5154
6732
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5155
6733
|
}
|
|
5156
6734
|
|
|
6735
|
+
type AccessListData = {
|
|
6736
|
+
/**
|
|
6737
|
+
* Access Address
|
|
6738
|
+
*/
|
|
6739
|
+
accessAddresses: string;
|
|
6740
|
+
/**
|
|
6741
|
+
* Storage keys
|
|
6742
|
+
*/
|
|
6743
|
+
storageKeys: Array<string>;
|
|
6744
|
+
};
|
|
6745
|
+
|
|
5157
6746
|
type BadGateway = {
|
|
5158
6747
|
/**
|
|
5159
6748
|
* The error message describing the reason for the exception
|
|
@@ -5188,6 +6777,76 @@ type DataListChainsResponse = {
|
|
|
5188
6777
|
chains: Array<ChainInfo>;
|
|
5189
6778
|
};
|
|
5190
6779
|
|
|
6780
|
+
type ERCToken = {
|
|
6781
|
+
/**
|
|
6782
|
+
* Token contract address
|
|
6783
|
+
*/
|
|
6784
|
+
address: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* Token name
|
|
6787
|
+
*/
|
|
6788
|
+
name: string;
|
|
6789
|
+
/**
|
|
6790
|
+
* Token symbol
|
|
6791
|
+
*/
|
|
6792
|
+
symbol: string;
|
|
6793
|
+
/**
|
|
6794
|
+
* Token decimals
|
|
6795
|
+
*/
|
|
6796
|
+
decimals: number;
|
|
6797
|
+
/**
|
|
6798
|
+
* Value including decimals
|
|
6799
|
+
*/
|
|
6800
|
+
valueWithDecimals: string;
|
|
6801
|
+
};
|
|
6802
|
+
|
|
6803
|
+
type ERCTransfer = {
|
|
6804
|
+
/**
|
|
6805
|
+
* Transaction hash
|
|
6806
|
+
*/
|
|
6807
|
+
transactionHash: string;
|
|
6808
|
+
/**
|
|
6809
|
+
* Transfer type
|
|
6810
|
+
*/
|
|
6811
|
+
type: string;
|
|
6812
|
+
/**
|
|
6813
|
+
* Sender address
|
|
6814
|
+
*/
|
|
6815
|
+
from: string;
|
|
6816
|
+
/**
|
|
6817
|
+
* Recipient address
|
|
6818
|
+
*/
|
|
6819
|
+
to: string;
|
|
6820
|
+
/**
|
|
6821
|
+
* Amount transferred
|
|
6822
|
+
*/
|
|
6823
|
+
value: string;
|
|
6824
|
+
/**
|
|
6825
|
+
* Token Id
|
|
6826
|
+
*/
|
|
6827
|
+
tokenId?: string;
|
|
6828
|
+
/**
|
|
6829
|
+
* Block timestamp
|
|
6830
|
+
*/
|
|
6831
|
+
blockTimestamp: number;
|
|
6832
|
+
/**
|
|
6833
|
+
* Log index
|
|
6834
|
+
*/
|
|
6835
|
+
logIndex: number;
|
|
6836
|
+
/**
|
|
6837
|
+
* erc20 Token details
|
|
6838
|
+
*/
|
|
6839
|
+
erc20Token?: ERCToken;
|
|
6840
|
+
/**
|
|
6841
|
+
* erc721 Token details
|
|
6842
|
+
*/
|
|
6843
|
+
erc721Token?: ERCToken;
|
|
6844
|
+
/**
|
|
6845
|
+
* erc1155 Token details
|
|
6846
|
+
*/
|
|
6847
|
+
erc1155Token?: ERCToken;
|
|
6848
|
+
};
|
|
6849
|
+
|
|
5191
6850
|
type Forbidden = {
|
|
5192
6851
|
/**
|
|
5193
6852
|
* The error message describing the reason for the exception
|
|
@@ -5218,6 +6877,64 @@ type InternalServerError = {
|
|
|
5218
6877
|
error: string;
|
|
5219
6878
|
};
|
|
5220
6879
|
|
|
6880
|
+
type Log = {
|
|
6881
|
+
/**
|
|
6882
|
+
* Contract address
|
|
6883
|
+
*/
|
|
6884
|
+
address: string;
|
|
6885
|
+
/**
|
|
6886
|
+
* First topic
|
|
6887
|
+
*/
|
|
6888
|
+
topic0: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* Second topic (optional)
|
|
6891
|
+
*/
|
|
6892
|
+
topic1?: string;
|
|
6893
|
+
/**
|
|
6894
|
+
* Third topic (optional)
|
|
6895
|
+
*/
|
|
6896
|
+
topic2?: string;
|
|
6897
|
+
/**
|
|
6898
|
+
* Fourth topic (optional)
|
|
6899
|
+
*/
|
|
6900
|
+
topic3?: string;
|
|
6901
|
+
/**
|
|
6902
|
+
* Event data
|
|
6903
|
+
*/
|
|
6904
|
+
data: string;
|
|
6905
|
+
/**
|
|
6906
|
+
* Transaction index
|
|
6907
|
+
*/
|
|
6908
|
+
transactionIndex: number;
|
|
6909
|
+
/**
|
|
6910
|
+
* Log index
|
|
6911
|
+
*/
|
|
6912
|
+
logIndex: number;
|
|
6913
|
+
/**
|
|
6914
|
+
* Indicates if the log was removed
|
|
6915
|
+
*/
|
|
6916
|
+
removed: boolean;
|
|
6917
|
+
};
|
|
6918
|
+
|
|
6919
|
+
type NetworkTokenInfo = {
|
|
6920
|
+
/**
|
|
6921
|
+
* Token name
|
|
6922
|
+
*/
|
|
6923
|
+
tokenName?: string;
|
|
6924
|
+
/**
|
|
6925
|
+
* Token symbol
|
|
6926
|
+
*/
|
|
6927
|
+
tokenSymbol?: string;
|
|
6928
|
+
/**
|
|
6929
|
+
* Token decimals
|
|
6930
|
+
*/
|
|
6931
|
+
tokenDecimals?: number;
|
|
6932
|
+
/**
|
|
6933
|
+
* Value including decimals
|
|
6934
|
+
*/
|
|
6935
|
+
valueWithDecimals?: string;
|
|
6936
|
+
};
|
|
6937
|
+
|
|
5221
6938
|
type NextPageToken = {
|
|
5222
6939
|
/**
|
|
5223
6940
|
* 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.
|
|
@@ -5270,6 +6987,163 @@ type TooManyRequests = {
|
|
|
5270
6987
|
error: string;
|
|
5271
6988
|
};
|
|
5272
6989
|
|
|
6990
|
+
type WebhookInternalTransaction = {
|
|
6991
|
+
/**
|
|
6992
|
+
* Sender address
|
|
6993
|
+
*/
|
|
6994
|
+
from: string;
|
|
6995
|
+
/**
|
|
6996
|
+
* Recipient address
|
|
6997
|
+
*/
|
|
6998
|
+
to: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* Internal transaction type
|
|
7001
|
+
*/
|
|
7002
|
+
internalTxType: string;
|
|
7003
|
+
/**
|
|
7004
|
+
* Value transferred
|
|
7005
|
+
*/
|
|
7006
|
+
value: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* Gas used
|
|
7009
|
+
*/
|
|
7010
|
+
gasUsed: string;
|
|
7011
|
+
/**
|
|
7012
|
+
* Gas limit
|
|
7013
|
+
*/
|
|
7014
|
+
gasLimit: string;
|
|
7015
|
+
/**
|
|
7016
|
+
* Transaction hash
|
|
7017
|
+
*/
|
|
7018
|
+
transactionHash: string;
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
type Transaction = {
|
|
7022
|
+
/**
|
|
7023
|
+
* Block hash of the transaction
|
|
7024
|
+
*/
|
|
7025
|
+
blockHash: string;
|
|
7026
|
+
/**
|
|
7027
|
+
* Block number of the transaction
|
|
7028
|
+
*/
|
|
7029
|
+
blockNumber: string;
|
|
7030
|
+
/**
|
|
7031
|
+
* Sender address
|
|
7032
|
+
*/
|
|
7033
|
+
from: string;
|
|
7034
|
+
/**
|
|
7035
|
+
* Gas limit for the transaction
|
|
7036
|
+
*/
|
|
7037
|
+
gas: string;
|
|
7038
|
+
/**
|
|
7039
|
+
* Gas price used
|
|
7040
|
+
*/
|
|
7041
|
+
gasPrice: string;
|
|
7042
|
+
/**
|
|
7043
|
+
* Maximum fee per gas
|
|
7044
|
+
*/
|
|
7045
|
+
maxFeePerGas: string;
|
|
7046
|
+
/**
|
|
7047
|
+
* Maximum priority fee per gas
|
|
7048
|
+
*/
|
|
7049
|
+
maxPriorityFeePerGas: string;
|
|
7050
|
+
/**
|
|
7051
|
+
* Transaction hash
|
|
7052
|
+
*/
|
|
7053
|
+
txHash: string;
|
|
7054
|
+
/**
|
|
7055
|
+
* Transaction status
|
|
7056
|
+
*/
|
|
7057
|
+
txStatus: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* Input data
|
|
7060
|
+
*/
|
|
7061
|
+
input: string;
|
|
7062
|
+
/**
|
|
7063
|
+
* Nonce value
|
|
7064
|
+
*/
|
|
7065
|
+
nonce: string;
|
|
7066
|
+
/**
|
|
7067
|
+
* Recipient address
|
|
7068
|
+
*/
|
|
7069
|
+
to: string;
|
|
7070
|
+
/**
|
|
7071
|
+
* Transaction index
|
|
7072
|
+
*/
|
|
7073
|
+
transactionIndex: number;
|
|
7074
|
+
/**
|
|
7075
|
+
* Value transferred in the transaction
|
|
7076
|
+
*/
|
|
7077
|
+
value: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Transaction type
|
|
7080
|
+
*/
|
|
7081
|
+
type: number;
|
|
7082
|
+
/**
|
|
7083
|
+
* Chain ID of the network
|
|
7084
|
+
*/
|
|
7085
|
+
chainId: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Cumulative gas used
|
|
7088
|
+
*/
|
|
7089
|
+
receiptCumulativeGasUsed: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Gas used
|
|
7092
|
+
*/
|
|
7093
|
+
receiptGasUsed: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Effective gas price
|
|
7096
|
+
*/
|
|
7097
|
+
receiptEffectiveGasPrice: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Receipt root
|
|
7100
|
+
*/
|
|
7101
|
+
receiptRoot: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Block timestamp
|
|
7104
|
+
*/
|
|
7105
|
+
blockTimestamp: number;
|
|
7106
|
+
/**
|
|
7107
|
+
* Contract address (optional)
|
|
7108
|
+
*/
|
|
7109
|
+
contractAddress?: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* ERC20 transfers
|
|
7112
|
+
*/
|
|
7113
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7114
|
+
/**
|
|
7115
|
+
* ERC721 transfers
|
|
7116
|
+
*/
|
|
7117
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7118
|
+
/**
|
|
7119
|
+
* ERC1155 transfers
|
|
7120
|
+
*/
|
|
7121
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7122
|
+
/**
|
|
7123
|
+
* Internal transactions (optional)
|
|
7124
|
+
*/
|
|
7125
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7126
|
+
/**
|
|
7127
|
+
* Access list (optional)
|
|
7128
|
+
*/
|
|
7129
|
+
accessList?: Array<AccessListData>;
|
|
7130
|
+
/**
|
|
7131
|
+
* Network token info (optional)
|
|
7132
|
+
*/
|
|
7133
|
+
networkToken?: NetworkTokenInfo;
|
|
7134
|
+
};
|
|
7135
|
+
|
|
7136
|
+
type TransactionEvent = {
|
|
7137
|
+
/**
|
|
7138
|
+
* Transaction details
|
|
7139
|
+
*/
|
|
7140
|
+
transaction: Transaction;
|
|
7141
|
+
/**
|
|
7142
|
+
* Array of log events
|
|
7143
|
+
*/
|
|
7144
|
+
logs?: Array<Log>;
|
|
7145
|
+
};
|
|
7146
|
+
|
|
5273
7147
|
type Unauthorized = {
|
|
5274
7148
|
/**
|
|
5275
7149
|
* The error message describing the reason for the exception
|
|
@@ -5285,4 +7159,43 @@ type Unauthorized = {
|
|
|
5285
7159
|
error: string;
|
|
5286
7160
|
};
|
|
5287
7161
|
|
|
5288
|
-
|
|
7162
|
+
type WebhookAddressActivityResponse = {
|
|
7163
|
+
/**
|
|
7164
|
+
* Webhook ID
|
|
7165
|
+
*/
|
|
7166
|
+
webhookId: string;
|
|
7167
|
+
/**
|
|
7168
|
+
* Event type
|
|
7169
|
+
*/
|
|
7170
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7171
|
+
/**
|
|
7172
|
+
* Message ID
|
|
7173
|
+
*/
|
|
7174
|
+
messageId: string;
|
|
7175
|
+
/**
|
|
7176
|
+
* Event details
|
|
7177
|
+
*/
|
|
7178
|
+
event: TransactionEvent;
|
|
7179
|
+
};
|
|
7180
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7181
|
+
/**
|
|
7182
|
+
* Event type
|
|
7183
|
+
*/
|
|
7184
|
+
enum eventType {
|
|
7185
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7190
|
+
constructor(config: OpenAPIConfig);
|
|
7191
|
+
/**
|
|
7192
|
+
* Request method
|
|
7193
|
+
* @param options The request options from the service
|
|
7194
|
+
* @returns CancelablePromise<T>
|
|
7195
|
+
* @throws ApiError
|
|
7196
|
+
*/
|
|
7197
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7198
|
+
}
|
|
7199
|
+
|
|
7200
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7201
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|