@avalabs/glacier-sdk 3.1.0-canary.a7cd635.0 → 3.1.0-canary.a954f1f.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 +1840 -245
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +1 -1
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +9 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/Erc20Transfer.d.ts +6 -2
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +6 -2
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +10 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +10 -2
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +10 -2
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +6 -2
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +6 -2
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +1 -1
- package/esm/generated/models/ListAddressChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +5 -1
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/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 +10 -2
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +27 -10
- package/esm/generated/models/PChainUtxo.d.ts +32 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +22 -2
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +3 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +1 -1
- 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 +1 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +3 -3
- package/esm/generated/services/EvmTransactionsService.d.ts +2 -2
- 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/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.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 +16 -0
- 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 +61 -3
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/EventType.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,65 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type AvaxSupplyResponse = {
|
|
58
|
+
/**
|
|
59
|
+
* The circulating supply of AVAX.
|
|
60
|
+
*/
|
|
61
|
+
circulatingSupply: string;
|
|
62
|
+
/**
|
|
63
|
+
* The total supply of AVAX.
|
|
64
|
+
*/
|
|
65
|
+
totalSupply: string;
|
|
66
|
+
/**
|
|
67
|
+
* Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
|
|
72
|
+
*/
|
|
73
|
+
totalCBurned: string;
|
|
74
|
+
/**
|
|
75
|
+
* The total X-chain burned fees of AVAX.
|
|
76
|
+
*/
|
|
77
|
+
totalXBurned: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total staked AVAX.
|
|
80
|
+
*/
|
|
81
|
+
totalStaked: string;
|
|
82
|
+
/**
|
|
83
|
+
* The total locked AVAX.
|
|
84
|
+
*/
|
|
85
|
+
totalLocked: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total rewards AVAX.
|
|
88
|
+
*/
|
|
89
|
+
totalRewards: string;
|
|
90
|
+
/**
|
|
91
|
+
* The last updated time of the AVAX supply.
|
|
92
|
+
*/
|
|
93
|
+
lastUpdated: string;
|
|
94
|
+
/**
|
|
95
|
+
* The genesis unlock amount of the AVAX supply.
|
|
96
|
+
*/
|
|
97
|
+
genesisUnlock: string;
|
|
98
|
+
/**
|
|
99
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare class AvaxSupplyService {
|
|
105
|
+
readonly httpRequest: BaseHttpRequest;
|
|
106
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
107
|
+
/**
|
|
108
|
+
* Get AVAX supply information
|
|
109
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
57
116
|
type LogsFormatMetadata = {
|
|
58
117
|
/**
|
|
59
118
|
* The IP address of the client that made the request.
|
|
@@ -151,11 +210,11 @@ type LogsResponseDTO = {
|
|
|
151
210
|
declare enum Network {
|
|
152
211
|
MAINNET = "mainnet",
|
|
153
212
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
213
|
+
TESTNET = "testnet"
|
|
156
214
|
}
|
|
157
215
|
|
|
158
216
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
159
218
|
REQUEST_PATH = "requestPath",
|
|
160
219
|
RESPONSE_CODE = "responseCode",
|
|
161
220
|
COUNTRY = "country",
|
|
@@ -163,13 +222,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
222
|
USER_AGENT = "userAgent"
|
|
164
223
|
}
|
|
165
224
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
225
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
226
|
HOURLY = "hourly",
|
|
174
227
|
DAILY = "daily",
|
|
175
228
|
WEEKLY = "weekly",
|
|
@@ -222,6 +275,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
275
|
RPC_METHOD = "rpcMethod",
|
|
223
276
|
RESPONSE_CODE = "responseCode",
|
|
224
277
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
278
|
+
REQUEST_PATH = "requestPath",
|
|
279
|
+
COUNTRY = "country",
|
|
280
|
+
CONTINENT = "continent",
|
|
281
|
+
USER_AGENT = "userAgent",
|
|
225
282
|
NONE = "None"
|
|
226
283
|
}
|
|
227
284
|
}
|
|
@@ -237,6 +294,43 @@ type RpcMetrics = {
|
|
|
237
294
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
295
|
};
|
|
239
296
|
|
|
297
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
298
|
+
/**
|
|
299
|
+
* Duration in which the metrics value is aggregated
|
|
300
|
+
*/
|
|
301
|
+
aggregateDuration: string;
|
|
302
|
+
/**
|
|
303
|
+
* Metrics values
|
|
304
|
+
*/
|
|
305
|
+
metrics: Array<RpcMetrics>;
|
|
306
|
+
/**
|
|
307
|
+
* Network type for which the metrics are aggregated
|
|
308
|
+
*/
|
|
309
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
310
|
+
};
|
|
311
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
312
|
+
/**
|
|
313
|
+
* Network type for which the metrics are aggregated
|
|
314
|
+
*/
|
|
315
|
+
enum network {
|
|
316
|
+
MAINNET = "mainnet",
|
|
317
|
+
TESTNET = "testnet"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
322
|
+
RPC_METHOD = "rpcMethod",
|
|
323
|
+
RESPONSE_CODE = "responseCode",
|
|
324
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
328
|
+
HOURLY = "hourly",
|
|
329
|
+
DAILY = "daily",
|
|
330
|
+
WEEKLY = "weekly",
|
|
331
|
+
MONTHLY = "monthly"
|
|
332
|
+
}
|
|
333
|
+
|
|
240
334
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
335
|
/**
|
|
242
336
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +545,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
545
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
546
|
* @throws ApiError
|
|
453
547
|
*/
|
|
548
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
549
|
+
/**
|
|
550
|
+
* Time interval granularity for data aggregation for subnet
|
|
551
|
+
* rpc metrics
|
|
552
|
+
*/
|
|
553
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
554
|
+
/**
|
|
555
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
556
|
+
*/
|
|
557
|
+
startTimestamp?: number;
|
|
558
|
+
/**
|
|
559
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
560
|
+
*/
|
|
561
|
+
endTimestamp?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Query param for the criterion used for grouping metrics
|
|
564
|
+
*/
|
|
565
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
566
|
+
/**
|
|
567
|
+
* Filter data by chain ID.
|
|
568
|
+
*/
|
|
569
|
+
chainId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Filter data by response status code.
|
|
572
|
+
*/
|
|
573
|
+
responseCode?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Filter data by RPC method.
|
|
576
|
+
*/
|
|
577
|
+
rpcMethod?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Filter data by Rl Bypass API Token.
|
|
580
|
+
*/
|
|
581
|
+
rlBypassApiToken?: string;
|
|
582
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
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
|
+
*/
|
|
454
591
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
592
|
/**
|
|
456
593
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +626,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
626
|
/**
|
|
490
627
|
* Get usage metrics for the Primary Network RPC
|
|
491
628
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
629
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
630
|
* @throws ApiError
|
|
494
631
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
632
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
633
|
/**
|
|
497
634
|
* Either mainnet or testnet/fuji.
|
|
498
635
|
*/
|
|
@@ -501,7 +638,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
638
|
* Time interval granularity for data aggregation for subnet
|
|
502
639
|
* rpc metrics
|
|
503
640
|
*/
|
|
504
|
-
timeInterval?:
|
|
641
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
642
|
/**
|
|
506
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.
|
|
507
644
|
*/
|
|
@@ -523,18 +660,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
660
|
*/
|
|
524
661
|
requestPath?: string;
|
|
525
662
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
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.
|
|
527
664
|
*/
|
|
528
665
|
country?: string;
|
|
529
666
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
667
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
668
|
*/
|
|
532
669
|
continent?: string;
|
|
533
670
|
/**
|
|
534
671
|
* Filter data by User Agent.
|
|
535
672
|
*/
|
|
536
673
|
userAgent?: string;
|
|
537
|
-
|
|
674
|
+
/**
|
|
675
|
+
* Filter data by RPC method.
|
|
676
|
+
*/
|
|
677
|
+
rpcMethod?: string;
|
|
678
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
679
|
}
|
|
539
680
|
|
|
540
681
|
declare class DefaultService {
|
|
@@ -782,16 +923,16 @@ type Erc20TokenBalance = {
|
|
|
782
923
|
*/
|
|
783
924
|
balanceValue?: Money;
|
|
784
925
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
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.
|
|
786
927
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
928
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
929
|
};
|
|
789
930
|
declare namespace Erc20TokenBalance {
|
|
790
931
|
enum ercType {
|
|
791
932
|
ERC_20 = "ERC-20"
|
|
792
933
|
}
|
|
793
934
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
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.
|
|
795
936
|
*/
|
|
796
937
|
enum tokenReputation {
|
|
797
938
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
886
1027
|
*/
|
|
887
1028
|
pageToken?: string;
|
|
888
1029
|
/**
|
|
889
|
-
* 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.
|
|
890
1031
|
*/
|
|
891
1032
|
pageSize?: number;
|
|
892
1033
|
/**
|
|
@@ -924,7 +1065,7 @@ declare class EvmBalancesService {
|
|
|
924
1065
|
*/
|
|
925
1066
|
pageToken?: string;
|
|
926
1067
|
/**
|
|
927
|
-
* 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.
|
|
928
1069
|
*/
|
|
929
1070
|
pageSize?: number;
|
|
930
1071
|
/**
|
|
@@ -960,7 +1101,7 @@ declare class EvmBalancesService {
|
|
|
960
1101
|
*/
|
|
961
1102
|
pageToken?: string;
|
|
962
1103
|
/**
|
|
963
|
-
* 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.
|
|
964
1105
|
*/
|
|
965
1106
|
pageSize?: number;
|
|
966
1107
|
/**
|
|
@@ -990,7 +1131,7 @@ declare class EvmBalancesService {
|
|
|
990
1131
|
*/
|
|
991
1132
|
pageToken?: string;
|
|
992
1133
|
/**
|
|
993
|
-
* 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.
|
|
994
1135
|
*/
|
|
995
1136
|
pageSize?: number;
|
|
996
1137
|
/**
|
|
@@ -1010,9 +1151,17 @@ type GetEvmBlockResponse = {
|
|
|
1010
1151
|
*/
|
|
1011
1152
|
blockNumber: string;
|
|
1012
1153
|
/**
|
|
1013
|
-
* The block
|
|
1154
|
+
* The block creation (proposal) timestamp in seconds
|
|
1014
1155
|
*/
|
|
1015
1156
|
blockTimestamp: number;
|
|
1157
|
+
/**
|
|
1158
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1159
|
+
*/
|
|
1160
|
+
blockTimestampMilliseconds?: number;
|
|
1161
|
+
/**
|
|
1162
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1163
|
+
*/
|
|
1164
|
+
blockMinDelayExcess?: number;
|
|
1016
1165
|
/**
|
|
1017
1166
|
* The block hash identifier.
|
|
1018
1167
|
*/
|
|
@@ -1058,9 +1207,17 @@ type EvmBlock = {
|
|
|
1058
1207
|
*/
|
|
1059
1208
|
blockNumber: string;
|
|
1060
1209
|
/**
|
|
1061
|
-
* The block
|
|
1210
|
+
* The block creation (proposal) timestamp in seconds
|
|
1062
1211
|
*/
|
|
1063
1212
|
blockTimestamp: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1215
|
+
*/
|
|
1216
|
+
blockTimestampMilliseconds?: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1219
|
+
*/
|
|
1220
|
+
blockMinDelayExcess?: number;
|
|
1064
1221
|
/**
|
|
1065
1222
|
* The block hash identifier.
|
|
1066
1223
|
*/
|
|
@@ -1109,7 +1266,7 @@ declare class EvmBlocksService {
|
|
|
1109
1266
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
1267
|
/**
|
|
1111
1268
|
* List latest blocks across all supported EVM chains
|
|
1112
|
-
* Lists the most recent blocks from all supported
|
|
1269
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
1270
|
* @returns ListEvmBlocksResponse Successful response
|
|
1114
1271
|
* @throws ApiError
|
|
1115
1272
|
*/
|
|
@@ -1308,9 +1465,17 @@ type NativeTransaction = {
|
|
|
1308
1465
|
*/
|
|
1309
1466
|
blockNumber: string;
|
|
1310
1467
|
/**
|
|
1311
|
-
* The block
|
|
1468
|
+
* The block creation (proposal) timestamp in seconds
|
|
1312
1469
|
*/
|
|
1313
1470
|
blockTimestamp: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
1473
|
+
*/
|
|
1474
|
+
blockTimestampMilliseconds?: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
1477
|
+
*/
|
|
1478
|
+
blockMinDelayExcess?: number;
|
|
1314
1479
|
/**
|
|
1315
1480
|
* The block hash identifier.
|
|
1316
1481
|
*/
|
|
@@ -1375,7 +1540,7 @@ declare class EvmChainsService {
|
|
|
1375
1540
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
1541
|
/**
|
|
1377
1542
|
* List all chains associated with a given address
|
|
1378
|
-
* Lists the chains where the specified address has
|
|
1543
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1379
1544
|
* @returns ListAddressChainsResponse Successful response
|
|
1380
1545
|
* @throws ApiError
|
|
1381
1546
|
*/
|
|
@@ -1387,7 +1552,7 @@ declare class EvmChainsService {
|
|
|
1387
1552
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1388
1553
|
/**
|
|
1389
1554
|
* List chains
|
|
1390
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1555
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1391
1556
|
* @returns ListChainsResponse Successful response
|
|
1392
1557
|
* @throws ApiError
|
|
1393
1558
|
*/
|
|
@@ -1403,7 +1568,7 @@ declare class EvmChainsService {
|
|
|
1403
1568
|
}): CancelablePromise<ListChainsResponse>;
|
|
1404
1569
|
/**
|
|
1405
1570
|
* Get chain information
|
|
1406
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1571
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1407
1572
|
* @returns GetChainResponse Successful response
|
|
1408
1573
|
* @throws ApiError
|
|
1409
1574
|
*/
|
|
@@ -1646,7 +1811,7 @@ type Erc1155Contract = {
|
|
|
1646
1811
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1647
1812
|
*/
|
|
1648
1813
|
address: string;
|
|
1649
|
-
deploymentDetails
|
|
1814
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1650
1815
|
ercType: Erc1155Contract.ercType;
|
|
1651
1816
|
/**
|
|
1652
1817
|
* The contract symbol.
|
|
@@ -1677,7 +1842,7 @@ type Erc20Contract = {
|
|
|
1677
1842
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1678
1843
|
*/
|
|
1679
1844
|
address: string;
|
|
1680
|
-
deploymentDetails
|
|
1845
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1681
1846
|
ercType: Erc20Contract.ercType;
|
|
1682
1847
|
/**
|
|
1683
1848
|
* The contract symbol.
|
|
@@ -1712,7 +1877,7 @@ type Erc721Contract = {
|
|
|
1712
1877
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1713
1878
|
*/
|
|
1714
1879
|
address: string;
|
|
1715
|
-
deploymentDetails
|
|
1880
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1716
1881
|
ercType: Erc721Contract.ercType;
|
|
1717
1882
|
/**
|
|
1718
1883
|
* The contract symbol.
|
|
@@ -1742,7 +1907,7 @@ type UnknownContract = {
|
|
|
1742
1907
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1743
1908
|
*/
|
|
1744
1909
|
address: string;
|
|
1745
|
-
deploymentDetails
|
|
1910
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1746
1911
|
ercType: UnknownContract.ercType;
|
|
1747
1912
|
};
|
|
1748
1913
|
declare namespace UnknownContract {
|
|
@@ -1899,9 +2064,17 @@ type FullNativeTransactionDetails = {
|
|
|
1899
2064
|
*/
|
|
1900
2065
|
blockNumber: string;
|
|
1901
2066
|
/**
|
|
1902
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
1903
2068
|
*/
|
|
1904
2069
|
blockTimestamp: number;
|
|
2070
|
+
/**
|
|
2071
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2072
|
+
*/
|
|
2073
|
+
blockTimestampMilliseconds?: number;
|
|
2074
|
+
/**
|
|
2075
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
2076
|
+
*/
|
|
2077
|
+
blockMinDelayExcess?: number;
|
|
1905
2078
|
/**
|
|
1906
2079
|
* The block hash identifier.
|
|
1907
2080
|
*/
|
|
@@ -1960,6 +2133,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1960
2133
|
CALL = "CALL",
|
|
1961
2134
|
CREATE = "CREATE",
|
|
1962
2135
|
CREATE2 = "CREATE2",
|
|
2136
|
+
CREATE3 = "CREATE3",
|
|
1963
2137
|
CALLCODE = "CALLCODE",
|
|
1964
2138
|
DELEGATECALL = "DELEGATECALL",
|
|
1965
2139
|
STATICCALL = "STATICCALL"
|
|
@@ -2001,11 +2175,11 @@ type TeleporterMessageInfo = {
|
|
|
2001
2175
|
/**
|
|
2002
2176
|
* chain id of the source chain. valid only for destination transactions
|
|
2003
2177
|
*/
|
|
2004
|
-
sourceChainId?:
|
|
2178
|
+
sourceChainId?: string;
|
|
2005
2179
|
/**
|
|
2006
2180
|
* chain id of the destination chain. valid only for source transactions
|
|
2007
2181
|
*/
|
|
2008
|
-
destinationChainId?:
|
|
2182
|
+
destinationChainId?: string;
|
|
2009
2183
|
};
|
|
2010
2184
|
|
|
2011
2185
|
type GetTransactionResponse = {
|
|
@@ -2022,7 +2196,7 @@ type GetTransactionResponse = {
|
|
|
2022
2196
|
*/
|
|
2023
2197
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2024
2198
|
/**
|
|
2025
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2199
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2026
2200
|
*/
|
|
2027
2201
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2028
2202
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2047,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
2047
2221
|
*/
|
|
2048
2222
|
blockNumber: string;
|
|
2049
2223
|
/**
|
|
2050
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
2051
2225
|
*/
|
|
2052
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
2053
2231
|
/**
|
|
2054
2232
|
* The block hash identifier.
|
|
2055
2233
|
*/
|
|
@@ -2079,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
2079
2257
|
*/
|
|
2080
2258
|
blockNumber: string;
|
|
2081
2259
|
/**
|
|
2082
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
2083
2261
|
*/
|
|
2084
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
2085
2267
|
/**
|
|
2086
2268
|
* The block hash identifier.
|
|
2087
2269
|
*/
|
|
@@ -2111,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
2111
2293
|
*/
|
|
2112
2294
|
blockNumber: string;
|
|
2113
2295
|
/**
|
|
2114
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
2115
2297
|
*/
|
|
2116
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
2117
2303
|
/**
|
|
2118
2304
|
* The block hash identifier.
|
|
2119
2305
|
*/
|
|
@@ -2142,9 +2328,13 @@ type InternalTransaction = {
|
|
|
2142
2328
|
*/
|
|
2143
2329
|
blockNumber: string;
|
|
2144
2330
|
/**
|
|
2145
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
2146
2332
|
*/
|
|
2147
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
2148
2338
|
/**
|
|
2149
2339
|
* The block hash identifier.
|
|
2150
2340
|
*/
|
|
@@ -2191,7 +2381,7 @@ type TransactionDetails = {
|
|
|
2191
2381
|
*/
|
|
2192
2382
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2193
2383
|
/**
|
|
2194
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2384
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2195
2385
|
*/
|
|
2196
2386
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2197
2387
|
};
|
|
@@ -2222,7 +2412,7 @@ declare class EvmTransactionsService {
|
|
|
2222
2412
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
2413
|
/**
|
|
2224
2414
|
* List the latest transactions across all supported EVM chains
|
|
2225
|
-
* Lists the most recent transactions from all supported EVM-compatible
|
|
2415
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
2416
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
2417
|
* @throws ApiError
|
|
2228
2418
|
*/
|
|
@@ -2490,7 +2680,7 @@ declare class EvmTransactionsService {
|
|
|
2490
2680
|
* List internal transactions
|
|
2491
2681
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2492
2682
|
*
|
|
2493
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2683
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2494
2684
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2495
2685
|
* @throws ApiError
|
|
2496
2686
|
*/
|
|
@@ -2586,133 +2776,483 @@ declare class EvmTransactionsService {
|
|
|
2586
2776
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2777
|
}
|
|
2588
2778
|
|
|
2589
|
-
|
|
2590
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2591
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2779
|
+
type HealthIndicatorResultDto = {
|
|
2592
2780
|
/**
|
|
2593
|
-
*
|
|
2594
|
-
* @returns any The Health Check is successful
|
|
2595
|
-
* @throws ApiError
|
|
2781
|
+
* Status of the health indicator.
|
|
2596
2782
|
*/
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2601
|
-
details?: Record<string, Record<string, string>>;
|
|
2602
|
-
}>;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
type ListNftTokens = {
|
|
2783
|
+
status?: HealthIndicatorResultDto.status;
|
|
2784
|
+
};
|
|
2785
|
+
declare namespace HealthIndicatorResultDto {
|
|
2606
2786
|
/**
|
|
2607
|
-
*
|
|
2787
|
+
* Status of the health indicator.
|
|
2608
2788
|
*/
|
|
2609
|
-
|
|
2610
|
-
|
|
2789
|
+
enum status {
|
|
2790
|
+
UP = "up",
|
|
2791
|
+
DOWN = "down"
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
type HealthCheckResultDto = {
|
|
2796
|
+
status?: HealthCheckResultDto.status;
|
|
2797
|
+
info?: any | null;
|
|
2798
|
+
error?: any | null;
|
|
2799
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2611
2800
|
};
|
|
2801
|
+
declare namespace HealthCheckResultDto {
|
|
2802
|
+
enum status {
|
|
2803
|
+
ERROR = "error",
|
|
2804
|
+
OK = "ok",
|
|
2805
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2612
2808
|
|
|
2613
|
-
declare class
|
|
2809
|
+
declare class HealthCheckService {
|
|
2614
2810
|
readonly httpRequest: BaseHttpRequest;
|
|
2615
2811
|
constructor(httpRequest: BaseHttpRequest);
|
|
2616
2812
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2619
|
-
* @returns
|
|
2620
|
-
* @throws ApiError
|
|
2621
|
-
*/
|
|
2622
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
2623
|
-
/**
|
|
2624
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2625
|
-
*/
|
|
2626
|
-
chainId: string;
|
|
2627
|
-
/**
|
|
2628
|
-
* Contract address on the relevant chain.
|
|
2629
|
-
*/
|
|
2630
|
-
address: string;
|
|
2631
|
-
/**
|
|
2632
|
-
* TokenId on the contract
|
|
2633
|
-
*/
|
|
2634
|
-
tokenId: string;
|
|
2635
|
-
}): CancelablePromise<any>;
|
|
2636
|
-
/**
|
|
2637
|
-
* List tokens
|
|
2638
|
-
* Lists tokens for an NFT contract.
|
|
2639
|
-
* @returns ListNftTokens Successful response
|
|
2813
|
+
* Get the health of the service
|
|
2814
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2815
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2640
2816
|
* @throws ApiError
|
|
2641
2817
|
*/
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
-
*/
|
|
2646
|
-
chainId: string;
|
|
2647
|
-
/**
|
|
2648
|
-
* Contract address on the relevant chain.
|
|
2649
|
-
*/
|
|
2650
|
-
address: string;
|
|
2651
|
-
/**
|
|
2652
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
|
-
*/
|
|
2654
|
-
pageToken?: string;
|
|
2655
|
-
/**
|
|
2656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
-
*/
|
|
2658
|
-
pageSize?: number;
|
|
2659
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2818
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2660
2819
|
/**
|
|
2661
|
-
* Get
|
|
2662
|
-
*
|
|
2663
|
-
* @returns
|
|
2820
|
+
* Get the liveliness of the service (reads only)
|
|
2821
|
+
* Check the liveliness of the service (reads only).
|
|
2822
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2664
2823
|
* @throws ApiError
|
|
2665
2824
|
*/
|
|
2666
|
-
|
|
2667
|
-
/**
|
|
2668
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2669
|
-
*/
|
|
2670
|
-
chainId: string;
|
|
2671
|
-
/**
|
|
2672
|
-
* Contract address on the relevant chain.
|
|
2673
|
-
*/
|
|
2674
|
-
address: string;
|
|
2675
|
-
/**
|
|
2676
|
-
* TokenId on the contract
|
|
2677
|
-
*/
|
|
2678
|
-
tokenId: string;
|
|
2679
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2825
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2680
2826
|
}
|
|
2681
2827
|
|
|
2682
|
-
type
|
|
2683
|
-
|
|
2684
|
-
|
|
2828
|
+
type IcmDestinationTransaction = {
|
|
2829
|
+
txHash: string;
|
|
2830
|
+
timestamp: number;
|
|
2831
|
+
gasSpent: string;
|
|
2832
|
+
rewardRedeemer: string;
|
|
2833
|
+
delivererAddress: string;
|
|
2685
2834
|
};
|
|
2686
2835
|
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2836
|
+
type IcmReceipt = {
|
|
2837
|
+
receivedMessageNonce: string;
|
|
2838
|
+
relayerRewardAddress: string;
|
|
2839
|
+
};
|
|
2690
2840
|
|
|
2691
|
-
type
|
|
2692
|
-
type: EVMOperationType;
|
|
2693
|
-
firstDate?: string;
|
|
2694
|
-
lastDate?: string;
|
|
2841
|
+
type IcmRewardDetails = {
|
|
2695
2842
|
/**
|
|
2696
|
-
*
|
|
2843
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2697
2844
|
*/
|
|
2698
|
-
|
|
2845
|
+
address: string;
|
|
2699
2846
|
/**
|
|
2700
|
-
*
|
|
2847
|
+
* The contract name.
|
|
2701
2848
|
*/
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2849
|
+
name: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* The contract symbol.
|
|
2852
|
+
*/
|
|
2853
|
+
symbol: string;
|
|
2854
|
+
/**
|
|
2855
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2856
|
+
*/
|
|
2857
|
+
decimals: number;
|
|
2858
|
+
/**
|
|
2859
|
+
* The logo uri for the address.
|
|
2860
|
+
*/
|
|
2861
|
+
logoUri?: string;
|
|
2862
|
+
ercType: IcmRewardDetails.ercType;
|
|
2863
|
+
/**
|
|
2864
|
+
* The token price, if available.
|
|
2865
|
+
*/
|
|
2866
|
+
price?: Money;
|
|
2867
|
+
value: string;
|
|
2868
|
+
};
|
|
2869
|
+
declare namespace IcmRewardDetails {
|
|
2870
|
+
enum ercType {
|
|
2871
|
+
ERC_20 = "ERC-20"
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
type IcmSourceTransaction = {
|
|
2876
|
+
txHash: string;
|
|
2877
|
+
timestamp: number;
|
|
2878
|
+
gasSpent: string;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
type DeliveredIcmMessage = {
|
|
2882
|
+
messageId: string;
|
|
2883
|
+
icmContractAddress: string;
|
|
2884
|
+
sourceBlockchainId: string;
|
|
2885
|
+
destinationBlockchainId: string;
|
|
2886
|
+
sourceEvmChainId: string;
|
|
2887
|
+
destinationEvmChainId: string;
|
|
2888
|
+
messageNonce: string;
|
|
2889
|
+
from: string;
|
|
2890
|
+
to: string;
|
|
2891
|
+
data?: string;
|
|
2892
|
+
messageExecuted: boolean;
|
|
2893
|
+
receipts: Array<IcmReceipt>;
|
|
2894
|
+
receiptDelivered: boolean;
|
|
2895
|
+
rewardDetails: IcmRewardDetails;
|
|
2896
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2897
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2898
|
+
status: DeliveredIcmMessage.status;
|
|
2899
|
+
};
|
|
2900
|
+
declare namespace DeliveredIcmMessage {
|
|
2901
|
+
enum status {
|
|
2902
|
+
DELIVERED = "delivered"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2907
|
+
messageId: string;
|
|
2908
|
+
icmContractAddress: string;
|
|
2909
|
+
sourceBlockchainId: string;
|
|
2910
|
+
destinationBlockchainId: string;
|
|
2911
|
+
sourceEvmChainId: string;
|
|
2912
|
+
destinationEvmChainId: string;
|
|
2913
|
+
messageNonce: string;
|
|
2914
|
+
from: string;
|
|
2915
|
+
to: string;
|
|
2916
|
+
data?: string;
|
|
2917
|
+
messageExecuted: boolean;
|
|
2918
|
+
receipts: Array<IcmReceipt>;
|
|
2919
|
+
receiptDelivered: boolean;
|
|
2920
|
+
rewardDetails: IcmRewardDetails;
|
|
2921
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2922
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2923
|
+
};
|
|
2924
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2925
|
+
enum status {
|
|
2926
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
type PendingIcmMessage = {
|
|
2931
|
+
messageId: string;
|
|
2932
|
+
icmContractAddress: string;
|
|
2933
|
+
sourceBlockchainId: string;
|
|
2934
|
+
destinationBlockchainId: string;
|
|
2935
|
+
sourceEvmChainId: string;
|
|
2936
|
+
destinationEvmChainId: string;
|
|
2937
|
+
messageNonce: string;
|
|
2938
|
+
from: string;
|
|
2939
|
+
to: string;
|
|
2940
|
+
data?: string;
|
|
2941
|
+
messageExecuted: boolean;
|
|
2942
|
+
receipts: Array<IcmReceipt>;
|
|
2943
|
+
receiptDelivered: boolean;
|
|
2944
|
+
rewardDetails: IcmRewardDetails;
|
|
2945
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2946
|
+
status: PendingIcmMessage.status;
|
|
2947
|
+
};
|
|
2948
|
+
declare namespace PendingIcmMessage {
|
|
2949
|
+
enum status {
|
|
2950
|
+
PENDING = "pending"
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
type ListIcmMessagesResponse = {
|
|
2955
|
+
/**
|
|
2956
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2957
|
+
*/
|
|
2958
|
+
nextPageToken?: string;
|
|
2959
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
declare class InterchainMessagingService {
|
|
2963
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2964
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2965
|
+
/**
|
|
2966
|
+
* Get an ICM message
|
|
2967
|
+
* Gets an ICM message by teleporter message ID.
|
|
2968
|
+
* @returns any Successful response
|
|
2969
|
+
* @throws ApiError
|
|
2970
|
+
*/
|
|
2971
|
+
getIcmMessage({ messageId, }: {
|
|
2972
|
+
/**
|
|
2973
|
+
* The teleporter message ID of the ICM message.
|
|
2974
|
+
*/
|
|
2975
|
+
messageId: string;
|
|
2976
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2977
|
+
/**
|
|
2978
|
+
* List ICM messages
|
|
2979
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2980
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2981
|
+
* @throws ApiError
|
|
2982
|
+
*/
|
|
2983
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2984
|
+
/**
|
|
2985
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2986
|
+
*/
|
|
2987
|
+
pageToken?: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2990
|
+
*/
|
|
2991
|
+
pageSize?: number;
|
|
2992
|
+
/**
|
|
2993
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2994
|
+
*/
|
|
2995
|
+
sourceBlockchainId?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2998
|
+
*/
|
|
2999
|
+
destinationBlockchainId?: string;
|
|
3000
|
+
/**
|
|
3001
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
3002
|
+
*/
|
|
3003
|
+
blockchainId?: string;
|
|
3004
|
+
/**
|
|
3005
|
+
* The address of the recipient of the ICM message.
|
|
3006
|
+
*/
|
|
3007
|
+
to?: string;
|
|
3008
|
+
/**
|
|
3009
|
+
* The address of the sender of the ICM message.
|
|
3010
|
+
*/
|
|
3011
|
+
from?: string;
|
|
3012
|
+
/**
|
|
3013
|
+
* Either mainnet or testnet/fuji.
|
|
3014
|
+
*/
|
|
3015
|
+
network?: Network;
|
|
3016
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3017
|
+
/**
|
|
3018
|
+
* List ICM messages by address
|
|
3019
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
3020
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
3021
|
+
* @throws ApiError
|
|
3022
|
+
*/
|
|
3023
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
3024
|
+
/**
|
|
3025
|
+
* An EVM address.
|
|
3026
|
+
*/
|
|
3027
|
+
address: string;
|
|
3028
|
+
/**
|
|
3029
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3030
|
+
*/
|
|
3031
|
+
pageToken?: string;
|
|
3032
|
+
/**
|
|
3033
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3034
|
+
*/
|
|
3035
|
+
pageSize?: number;
|
|
3036
|
+
/**
|
|
3037
|
+
* Either mainnet or testnet/fuji.
|
|
3038
|
+
*/
|
|
3039
|
+
network?: Network;
|
|
3040
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
type ListNftTokens = {
|
|
3044
|
+
/**
|
|
3045
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
3046
|
+
*/
|
|
3047
|
+
nextPageToken?: string;
|
|
3048
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
declare class NfTsService {
|
|
3052
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3053
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3054
|
+
/**
|
|
3055
|
+
* Reindex NFT metadata
|
|
3056
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3057
|
+
* @returns any Successful response
|
|
3058
|
+
* @throws ApiError
|
|
3059
|
+
*/
|
|
3060
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3061
|
+
/**
|
|
3062
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3063
|
+
*/
|
|
3064
|
+
chainId: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Contract address on the relevant chain.
|
|
3067
|
+
*/
|
|
3068
|
+
address: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* TokenId on the contract
|
|
3071
|
+
*/
|
|
3072
|
+
tokenId: string;
|
|
3073
|
+
}): CancelablePromise<any>;
|
|
3074
|
+
/**
|
|
3075
|
+
* List tokens
|
|
3076
|
+
* Lists tokens for an NFT contract.
|
|
3077
|
+
* @returns ListNftTokens Successful response
|
|
3078
|
+
* @throws ApiError
|
|
3079
|
+
*/
|
|
3080
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3081
|
+
/**
|
|
3082
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3083
|
+
*/
|
|
3084
|
+
chainId: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* Contract address on the relevant chain.
|
|
3087
|
+
*/
|
|
3088
|
+
address: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3091
|
+
*/
|
|
3092
|
+
pageToken?: string;
|
|
3093
|
+
/**
|
|
3094
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3095
|
+
*/
|
|
3096
|
+
pageSize?: number;
|
|
3097
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3098
|
+
/**
|
|
3099
|
+
* Get token details
|
|
3100
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3101
|
+
* @returns any Successful response
|
|
3102
|
+
* @throws ApiError
|
|
3103
|
+
*/
|
|
3104
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3105
|
+
/**
|
|
3106
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3107
|
+
*/
|
|
3108
|
+
chainId: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* Contract address on the relevant chain.
|
|
3111
|
+
*/
|
|
3112
|
+
address: string;
|
|
3113
|
+
/**
|
|
3114
|
+
* TokenId on the contract
|
|
3115
|
+
*/
|
|
3116
|
+
tokenId: string;
|
|
3117
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
type AccessRequest = {
|
|
3121
|
+
/**
|
|
3122
|
+
* The email address to send the access token to
|
|
3123
|
+
*/
|
|
3124
|
+
email: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* The captcha to verify the user
|
|
3127
|
+
*/
|
|
3128
|
+
captcha: string;
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
type NotificationsResponse = {
|
|
3132
|
+
message: string;
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
type SubscribeRequest = {
|
|
3136
|
+
/**
|
|
3137
|
+
* The access token to use for authentication
|
|
3138
|
+
*/
|
|
3139
|
+
accessToken: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* The node ID to subscribe to
|
|
3142
|
+
*/
|
|
3143
|
+
nodeId: string;
|
|
3144
|
+
/**
|
|
3145
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3146
|
+
*/
|
|
3147
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
type SubscriptionsRequest = {
|
|
3151
|
+
/**
|
|
3152
|
+
* The access token to use for authentication
|
|
3153
|
+
*/
|
|
3154
|
+
accessToken: string;
|
|
3155
|
+
};
|
|
3156
|
+
|
|
3157
|
+
type SubscriptionsResponse = {
|
|
3158
|
+
/**
|
|
3159
|
+
* The email address of the user
|
|
3160
|
+
*/
|
|
3161
|
+
email: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* The subscriptions of the user
|
|
3164
|
+
*/
|
|
3165
|
+
subscriptions: Record<string, {
|
|
3166
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3167
|
+
}>;
|
|
3168
|
+
};
|
|
3169
|
+
|
|
3170
|
+
type UnsubscribeRequest = {
|
|
3171
|
+
/**
|
|
3172
|
+
* The access token to use for authentication
|
|
3173
|
+
*/
|
|
3174
|
+
accessToken: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* The node ID to subscribe to
|
|
3177
|
+
*/
|
|
3178
|
+
nodeId: string;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
declare class NotificationsService {
|
|
3182
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3183
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3184
|
+
/**
|
|
3185
|
+
* Access Notifications
|
|
3186
|
+
* Access notifications.
|
|
3187
|
+
* @returns NotificationsResponse Successful response
|
|
3188
|
+
* @throws ApiError
|
|
3189
|
+
*/
|
|
3190
|
+
access({ requestBody, }: {
|
|
3191
|
+
requestBody: AccessRequest;
|
|
3192
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3193
|
+
/**
|
|
3194
|
+
* Subscribe to Notifications
|
|
3195
|
+
* Subscribe to receive notifications.
|
|
3196
|
+
* @returns NotificationsResponse Successful response
|
|
3197
|
+
* @throws ApiError
|
|
3198
|
+
*/
|
|
3199
|
+
subscribe({ requestBody, }: {
|
|
3200
|
+
requestBody: SubscribeRequest;
|
|
3201
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3202
|
+
/**
|
|
3203
|
+
* Unsubscribe from Notifications
|
|
3204
|
+
* Unsubscribe from receiving notifications.
|
|
3205
|
+
* @returns NotificationsResponse Successful response
|
|
3206
|
+
* @throws ApiError
|
|
3207
|
+
*/
|
|
3208
|
+
unsubscribe({ requestBody, }: {
|
|
3209
|
+
requestBody: UnsubscribeRequest;
|
|
3210
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3211
|
+
/**
|
|
3212
|
+
* Get Subscriptions
|
|
3213
|
+
* Get subscriptions.
|
|
3214
|
+
* @returns SubscriptionsResponse Successful response
|
|
3215
|
+
* @throws ApiError
|
|
3216
|
+
*/
|
|
3217
|
+
subscriptions({ requestBody, }: {
|
|
3218
|
+
requestBody: SubscriptionsRequest;
|
|
3219
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
type EvmNetworkOptions = {
|
|
3223
|
+
addresses: Array<string>;
|
|
3224
|
+
includeChains: Array<string>;
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
declare enum EVMOperationType {
|
|
3228
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
type CreateEvmTransactionExportRequest = {
|
|
3232
|
+
type: EVMOperationType;
|
|
3233
|
+
firstDate?: string;
|
|
3234
|
+
lastDate?: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* @deprecated
|
|
3237
|
+
*/
|
|
3238
|
+
startDate?: string;
|
|
3239
|
+
/**
|
|
3240
|
+
* @deprecated
|
|
3241
|
+
*/
|
|
3242
|
+
endDate?: string;
|
|
3243
|
+
options: EvmNetworkOptions;
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
declare enum PrimaryNetworkOperationType {
|
|
3247
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3248
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2709
3249
|
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2710
3250
|
}
|
|
2711
3251
|
|
|
2712
3252
|
type PrimaryNetworkOptions = {
|
|
2713
3253
|
addresses?: Array<string>;
|
|
2714
3254
|
cChainEvmAddresses?: Array<string>;
|
|
2715
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3255
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2716
3256
|
};
|
|
2717
3257
|
|
|
2718
3258
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2767,7 +3307,7 @@ type OperationStatusResponse = {
|
|
|
2767
3307
|
operationType: OperationType;
|
|
2768
3308
|
operationStatus: OperationStatus;
|
|
2769
3309
|
message?: string;
|
|
2770
|
-
metadata
|
|
3310
|
+
metadata?: TransactionExportMetadata;
|
|
2771
3311
|
createdAtTimestamp: number;
|
|
2772
3312
|
updatedAtTimestamp: number;
|
|
2773
3313
|
};
|
|
@@ -2800,14 +3340,275 @@ declare class OperationsService {
|
|
|
2800
3340
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2801
3341
|
}
|
|
2802
3342
|
|
|
3343
|
+
type EvmGenesisAllocDto = {
|
|
3344
|
+
/**
|
|
3345
|
+
* Account balance in hex format
|
|
3346
|
+
*/
|
|
3347
|
+
balance?: string;
|
|
3348
|
+
/**
|
|
3349
|
+
* Contract bytecode in hex format
|
|
3350
|
+
*/
|
|
3351
|
+
code?: string;
|
|
3352
|
+
/**
|
|
3353
|
+
* Contract storage slots
|
|
3354
|
+
*/
|
|
3355
|
+
storage?: Record<string, string>;
|
|
3356
|
+
};
|
|
3357
|
+
|
|
3358
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3359
|
+
/**
|
|
3360
|
+
* Block timestamp
|
|
3361
|
+
*/
|
|
3362
|
+
blockTimestamp?: number;
|
|
3363
|
+
/**
|
|
3364
|
+
* Admin addresses
|
|
3365
|
+
*/
|
|
3366
|
+
adminAddresses?: Array<string>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Manager addresses
|
|
3369
|
+
*/
|
|
3370
|
+
managerAddresses?: Array<string>;
|
|
3371
|
+
/**
|
|
3372
|
+
* Enabled addresses
|
|
3373
|
+
*/
|
|
3374
|
+
enabledAddresses?: Array<string>;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
type EvmGenesisFeeConfigDto = {
|
|
3378
|
+
/**
|
|
3379
|
+
* Base fee change denominator
|
|
3380
|
+
*/
|
|
3381
|
+
baseFeeChangeDenominator?: number;
|
|
3382
|
+
/**
|
|
3383
|
+
* Block gas cost step
|
|
3384
|
+
*/
|
|
3385
|
+
blockGasCostStep?: number;
|
|
3386
|
+
/**
|
|
3387
|
+
* Gas limit
|
|
3388
|
+
*/
|
|
3389
|
+
gasLimit?: number;
|
|
3390
|
+
/**
|
|
3391
|
+
* Maximum block gas cost
|
|
3392
|
+
*/
|
|
3393
|
+
maxBlockGasCost?: number;
|
|
3394
|
+
/**
|
|
3395
|
+
* Minimum base fee
|
|
3396
|
+
*/
|
|
3397
|
+
minBaseFee?: number;
|
|
3398
|
+
/**
|
|
3399
|
+
* Minimum block gas cost
|
|
3400
|
+
*/
|
|
3401
|
+
minBlockGasCost?: number;
|
|
3402
|
+
/**
|
|
3403
|
+
* Target block rate
|
|
3404
|
+
*/
|
|
3405
|
+
targetBlockRate?: number;
|
|
3406
|
+
/**
|
|
3407
|
+
* Target gas
|
|
3408
|
+
*/
|
|
3409
|
+
targetGas?: number;
|
|
3410
|
+
};
|
|
3411
|
+
|
|
3412
|
+
type EvmGenesisWarpConfigDto = {
|
|
3413
|
+
/**
|
|
3414
|
+
* Block timestamp
|
|
3415
|
+
*/
|
|
3416
|
+
blockTimestamp?: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* Quorum numerator
|
|
3419
|
+
*/
|
|
3420
|
+
quorumNumerator?: number;
|
|
3421
|
+
/**
|
|
3422
|
+
* Require primary network signers
|
|
3423
|
+
*/
|
|
3424
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3425
|
+
};
|
|
3426
|
+
|
|
3427
|
+
type EvmGenesisConfigDto = {
|
|
3428
|
+
/**
|
|
3429
|
+
* Berlin block number
|
|
3430
|
+
*/
|
|
3431
|
+
berlinBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Byzantium block number
|
|
3434
|
+
*/
|
|
3435
|
+
byzantiumBlock?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Chain ID
|
|
3438
|
+
*/
|
|
3439
|
+
chainId?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Constantinople block number
|
|
3442
|
+
*/
|
|
3443
|
+
constantinopleBlock?: number;
|
|
3444
|
+
/**
|
|
3445
|
+
* EIP-150 block number
|
|
3446
|
+
*/
|
|
3447
|
+
eip150Block?: number;
|
|
3448
|
+
/**
|
|
3449
|
+
* EIP-150 hash
|
|
3450
|
+
*/
|
|
3451
|
+
eip150Hash?: string;
|
|
3452
|
+
/**
|
|
3453
|
+
* EIP-155 block number
|
|
3454
|
+
*/
|
|
3455
|
+
eip155Block?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* EIP-158 block number
|
|
3458
|
+
*/
|
|
3459
|
+
eip158Block?: number;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fee configuration
|
|
3462
|
+
*/
|
|
3463
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3464
|
+
/**
|
|
3465
|
+
* Homestead block number
|
|
3466
|
+
*/
|
|
3467
|
+
homesteadBlock?: number;
|
|
3468
|
+
/**
|
|
3469
|
+
* Istanbul block number
|
|
3470
|
+
*/
|
|
3471
|
+
istanbulBlock?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* London block number
|
|
3474
|
+
*/
|
|
3475
|
+
londonBlock?: number;
|
|
3476
|
+
/**
|
|
3477
|
+
* Muir Glacier block number
|
|
3478
|
+
*/
|
|
3479
|
+
muirGlacierBlock?: number;
|
|
3480
|
+
/**
|
|
3481
|
+
* Petersburg block number
|
|
3482
|
+
*/
|
|
3483
|
+
petersburgBlock?: number;
|
|
3484
|
+
/**
|
|
3485
|
+
* Subnet EVM timestamp
|
|
3486
|
+
*/
|
|
3487
|
+
subnetEVMTimestamp?: number;
|
|
3488
|
+
/**
|
|
3489
|
+
* Allow fee recipients
|
|
3490
|
+
*/
|
|
3491
|
+
allowFeeRecipients?: boolean;
|
|
3492
|
+
/**
|
|
3493
|
+
* Warp configuration
|
|
3494
|
+
*/
|
|
3495
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3496
|
+
/**
|
|
3497
|
+
* Transaction allow list configuration
|
|
3498
|
+
*/
|
|
3499
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3500
|
+
/**
|
|
3501
|
+
* Contract deployer allow list configuration
|
|
3502
|
+
*/
|
|
3503
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3504
|
+
/**
|
|
3505
|
+
* Contract native minter configuration
|
|
3506
|
+
*/
|
|
3507
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3508
|
+
/**
|
|
3509
|
+
* Fee manager configuration
|
|
3510
|
+
*/
|
|
3511
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3512
|
+
/**
|
|
3513
|
+
* Reward manager configuration
|
|
3514
|
+
*/
|
|
3515
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3516
|
+
};
|
|
3517
|
+
|
|
3518
|
+
type EvmGenesisDto = {
|
|
3519
|
+
/**
|
|
3520
|
+
* Airdrop amount
|
|
3521
|
+
*/
|
|
3522
|
+
airdropAmount?: number | null;
|
|
3523
|
+
/**
|
|
3524
|
+
* Airdrop hash
|
|
3525
|
+
*/
|
|
3526
|
+
airdropHash?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Allocation of accounts and balances
|
|
3529
|
+
*/
|
|
3530
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3531
|
+
/**
|
|
3532
|
+
* Base fee per gas
|
|
3533
|
+
*/
|
|
3534
|
+
baseFeePerGas?: number | null;
|
|
3535
|
+
/**
|
|
3536
|
+
* Blob gas used
|
|
3537
|
+
*/
|
|
3538
|
+
blobGasUsed?: string | null;
|
|
3539
|
+
/**
|
|
3540
|
+
* Coinbase address
|
|
3541
|
+
*/
|
|
3542
|
+
coinbase?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Genesis configuration
|
|
3545
|
+
*/
|
|
3546
|
+
config?: EvmGenesisConfigDto;
|
|
3547
|
+
/**
|
|
3548
|
+
* Difficulty
|
|
3549
|
+
*/
|
|
3550
|
+
difficulty?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* Excess blob gas
|
|
3553
|
+
*/
|
|
3554
|
+
excessBlobGas?: string | null;
|
|
3555
|
+
/**
|
|
3556
|
+
* Extra data
|
|
3557
|
+
*/
|
|
3558
|
+
extraData?: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* Gas limit
|
|
3561
|
+
*/
|
|
3562
|
+
gasLimit?: string;
|
|
3563
|
+
/**
|
|
3564
|
+
* Gas used
|
|
3565
|
+
*/
|
|
3566
|
+
gasUsed?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Mix hash
|
|
3569
|
+
*/
|
|
3570
|
+
mixHash?: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* Nonce
|
|
3573
|
+
*/
|
|
3574
|
+
nonce?: string;
|
|
3575
|
+
/**
|
|
3576
|
+
* Block number
|
|
3577
|
+
*/
|
|
3578
|
+
number?: string;
|
|
3579
|
+
/**
|
|
3580
|
+
* Parent hash
|
|
3581
|
+
*/
|
|
3582
|
+
parentHash?: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* Block timestamp
|
|
3585
|
+
*/
|
|
3586
|
+
timestamp?: string;
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
type Blockchain = {
|
|
3590
|
+
createBlockTimestamp: number;
|
|
3591
|
+
createBlockNumber: string;
|
|
3592
|
+
blockchainId: string;
|
|
3593
|
+
vmId: string;
|
|
3594
|
+
subnetId: string;
|
|
3595
|
+
blockchainName: string;
|
|
3596
|
+
/**
|
|
3597
|
+
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
3598
|
+
*/
|
|
3599
|
+
evmChainId?: number;
|
|
3600
|
+
/**
|
|
3601
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3602
|
+
*/
|
|
3603
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3604
|
+
};
|
|
3605
|
+
|
|
2803
3606
|
declare enum BlockchainIds {
|
|
2804
3607
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2805
3608
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2806
3609
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2807
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2808
3610
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2809
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2810
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3611
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2811
3612
|
}
|
|
2812
3613
|
|
|
2813
3614
|
type ChainAddressChainIdMap = {
|
|
@@ -2831,16 +3632,31 @@ type DelegatorsDetails = {
|
|
|
2831
3632
|
};
|
|
2832
3633
|
|
|
2833
3634
|
type StakingDistribution = {
|
|
3635
|
+
/**
|
|
3636
|
+
* AvalancheGo version for the validator node.
|
|
3637
|
+
*/
|
|
2834
3638
|
version: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* The total amount staked by validators using this version.
|
|
3641
|
+
*/
|
|
2835
3642
|
amountStaked: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* The number of validators using this version.
|
|
3645
|
+
*/
|
|
2836
3646
|
validatorCount: number;
|
|
2837
3647
|
};
|
|
2838
3648
|
|
|
2839
3649
|
type ValidatorsDetails = {
|
|
2840
3650
|
validatorCount: number;
|
|
2841
3651
|
totalAmountStaked: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3654
|
+
*/
|
|
2842
3655
|
estimatedAnnualStakingReward: string;
|
|
2843
3656
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Ratio of total active stake amount to the current supply.
|
|
3659
|
+
*/
|
|
2844
3660
|
stakingRatio: string;
|
|
2845
3661
|
};
|
|
2846
3662
|
|
|
@@ -2849,15 +3665,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2849
3665
|
delegatorDetails: DelegatorsDetails;
|
|
2850
3666
|
};
|
|
2851
3667
|
|
|
2852
|
-
type Blockchain = {
|
|
2853
|
-
createBlockTimestamp: number;
|
|
2854
|
-
createBlockNumber: string;
|
|
2855
|
-
blockchainId: string;
|
|
2856
|
-
vmId: string;
|
|
2857
|
-
subnetId: string;
|
|
2858
|
-
blockchainName: string;
|
|
2859
|
-
};
|
|
2860
|
-
|
|
2861
3668
|
type ListBlockchainsResponse = {
|
|
2862
3669
|
/**
|
|
2863
3670
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2892,7 +3699,13 @@ type CompletedDelegatorDetails = {
|
|
|
2892
3699
|
delegationFee: string;
|
|
2893
3700
|
startTimestamp: number;
|
|
2894
3701
|
endTimestamp: number;
|
|
3702
|
+
/**
|
|
3703
|
+
* Total rewards distributed for the successful delegation.
|
|
3704
|
+
*/
|
|
2895
3705
|
grossReward: string;
|
|
3706
|
+
/**
|
|
3707
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3708
|
+
*/
|
|
2896
3709
|
netReward: string;
|
|
2897
3710
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2898
3711
|
};
|
|
@@ -2910,7 +3723,13 @@ type PendingDelegatorDetails = {
|
|
|
2910
3723
|
delegationFee: string;
|
|
2911
3724
|
startTimestamp: number;
|
|
2912
3725
|
endTimestamp: number;
|
|
3726
|
+
/**
|
|
3727
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3728
|
+
*/
|
|
2913
3729
|
estimatedGrossReward: string;
|
|
3730
|
+
/**
|
|
3731
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3732
|
+
*/
|
|
2914
3733
|
estimatedNetReward: string;
|
|
2915
3734
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2916
3735
|
};
|
|
@@ -2941,6 +3760,10 @@ type L1ValidatorDetailsFull = {
|
|
|
2941
3760
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2942
3761
|
*/
|
|
2943
3762
|
validationId: string;
|
|
3763
|
+
/**
|
|
3764
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3765
|
+
*/
|
|
3766
|
+
validationIdHex: string;
|
|
2944
3767
|
nodeId: string;
|
|
2945
3768
|
subnetId: string;
|
|
2946
3769
|
/**
|
|
@@ -2975,10 +3798,10 @@ type ListL1ValidatorsResponse = {
|
|
|
2975
3798
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2976
3799
|
*/
|
|
2977
3800
|
validators: Array<L1ValidatorDetailsFull>;
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3801
|
+
/**
|
|
3802
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3803
|
+
*/
|
|
3804
|
+
blockHeight: string;
|
|
2982
3805
|
};
|
|
2983
3806
|
|
|
2984
3807
|
type L1ValidatorManagerDetails = {
|
|
@@ -3036,7 +3859,7 @@ type Subnet = {
|
|
|
3036
3859
|
* L1 validator manager details.
|
|
3037
3860
|
*/
|
|
3038
3861
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3039
|
-
blockchains: Array<
|
|
3862
|
+
blockchains: Array<Blockchain>;
|
|
3040
3863
|
};
|
|
3041
3864
|
|
|
3042
3865
|
type ListSubnetsResponse = {
|
|
@@ -3052,6 +3875,29 @@ type BlsCredentials = {
|
|
|
3052
3875
|
proofOfPossession: string;
|
|
3053
3876
|
};
|
|
3054
3877
|
|
|
3878
|
+
type Geolocation = {
|
|
3879
|
+
/**
|
|
3880
|
+
* The name of the validator node.
|
|
3881
|
+
*/
|
|
3882
|
+
city: string;
|
|
3883
|
+
/**
|
|
3884
|
+
* The city of the validator node.
|
|
3885
|
+
*/
|
|
3886
|
+
country: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* The country code of the validator node.
|
|
3889
|
+
*/
|
|
3890
|
+
countryCode: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The latitude of the validator node.
|
|
3893
|
+
*/
|
|
3894
|
+
latitude: number;
|
|
3895
|
+
/**
|
|
3896
|
+
* The longitude of the validator node.
|
|
3897
|
+
*/
|
|
3898
|
+
longitude: number;
|
|
3899
|
+
};
|
|
3900
|
+
|
|
3055
3901
|
type Rewards = {
|
|
3056
3902
|
validationRewardAmount: string;
|
|
3057
3903
|
delegationRewardAmount: string;
|
|
@@ -3083,6 +3929,9 @@ type ActiveValidatorDetails = {
|
|
|
3083
3929
|
nodeId: string;
|
|
3084
3930
|
subnetId: string;
|
|
3085
3931
|
amountStaked: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3934
|
+
*/
|
|
3086
3935
|
delegationFee?: string;
|
|
3087
3936
|
startTimestamp: number;
|
|
3088
3937
|
endTimestamp: number;
|
|
@@ -3090,15 +3939,37 @@ type ActiveValidatorDetails = {
|
|
|
3090
3939
|
* Present for AddPermissionlessValidatorTx
|
|
3091
3940
|
*/
|
|
3092
3941
|
blsCredentials?: BlsCredentials;
|
|
3942
|
+
/**
|
|
3943
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3944
|
+
*/
|
|
3093
3945
|
stakePercentage: number;
|
|
3946
|
+
/**
|
|
3947
|
+
* The number of delegators linked to the validator.
|
|
3948
|
+
*/
|
|
3094
3949
|
delegatorCount: number;
|
|
3950
|
+
/**
|
|
3951
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3952
|
+
*/
|
|
3095
3953
|
amountDelegated?: string;
|
|
3954
|
+
/**
|
|
3955
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3956
|
+
*/
|
|
3096
3957
|
uptimePerformance: number;
|
|
3097
3958
|
avalancheGoVersion?: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3961
|
+
*/
|
|
3098
3962
|
delegationCapacity?: string;
|
|
3963
|
+
/**
|
|
3964
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3965
|
+
*/
|
|
3099
3966
|
potentialRewards: Rewards;
|
|
3100
3967
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3101
3968
|
validatorHealth: ValidatorHealthDetails;
|
|
3969
|
+
/**
|
|
3970
|
+
* The geographical location of the validator node, if available.
|
|
3971
|
+
*/
|
|
3972
|
+
geolocation: Geolocation | null;
|
|
3102
3973
|
};
|
|
3103
3974
|
declare namespace ActiveValidatorDetails {
|
|
3104
3975
|
enum validationStatus {
|
|
@@ -3111,6 +3982,9 @@ type CompletedValidatorDetails = {
|
|
|
3111
3982
|
nodeId: string;
|
|
3112
3983
|
subnetId: string;
|
|
3113
3984
|
amountStaked: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3987
|
+
*/
|
|
3114
3988
|
delegationFee?: string;
|
|
3115
3989
|
startTimestamp: number;
|
|
3116
3990
|
endTimestamp: number;
|
|
@@ -3134,6 +4008,9 @@ type PendingValidatorDetails = {
|
|
|
3134
4008
|
nodeId: string;
|
|
3135
4009
|
subnetId: string;
|
|
3136
4010
|
amountStaked: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4013
|
+
*/
|
|
3137
4014
|
delegationFee?: string;
|
|
3138
4015
|
startTimestamp: number;
|
|
3139
4016
|
endTimestamp: number;
|
|
@@ -3154,6 +4031,9 @@ type RemovedValidatorDetails = {
|
|
|
3154
4031
|
nodeId: string;
|
|
3155
4032
|
subnetId: string;
|
|
3156
4033
|
amountStaked: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
4036
|
+
*/
|
|
3157
4037
|
delegationFee?: string;
|
|
3158
4038
|
startTimestamp: number;
|
|
3159
4039
|
endTimestamp: number;
|
|
@@ -3161,7 +4041,13 @@ type RemovedValidatorDetails = {
|
|
|
3161
4041
|
* Present for AddPermissionlessValidatorTx
|
|
3162
4042
|
*/
|
|
3163
4043
|
blsCredentials?: BlsCredentials;
|
|
4044
|
+
/**
|
|
4045
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
4046
|
+
*/
|
|
3164
4047
|
removeTxHash: string;
|
|
4048
|
+
/**
|
|
4049
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
4050
|
+
*/
|
|
3165
4051
|
removeTimestamp: number;
|
|
3166
4052
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
3167
4053
|
};
|
|
@@ -3241,7 +4127,6 @@ type XChainAssetDetails = {
|
|
|
3241
4127
|
declare enum XChainId {
|
|
3242
4128
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3243
4129
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3244
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3245
4130
|
X_CHAIN = "x-chain"
|
|
3246
4131
|
}
|
|
3247
4132
|
|
|
@@ -3312,7 +4197,7 @@ declare class PrimaryNetworkService {
|
|
|
3312
4197
|
*/
|
|
3313
4198
|
pageToken?: string;
|
|
3314
4199
|
/**
|
|
3315
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4200
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3316
4201
|
*/
|
|
3317
4202
|
pageSize?: number;
|
|
3318
4203
|
/**
|
|
@@ -3320,6 +4205,22 @@ declare class PrimaryNetworkService {
|
|
|
3320
4205
|
*/
|
|
3321
4206
|
sortOrder?: SortOrder;
|
|
3322
4207
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4208
|
+
/**
|
|
4209
|
+
* Get blockchain details by ID
|
|
4210
|
+
* Get details of the blockchain registered on the network.
|
|
4211
|
+
* @returns Blockchain Successful response
|
|
4212
|
+
* @throws ApiError
|
|
4213
|
+
*/
|
|
4214
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4215
|
+
/**
|
|
4216
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4217
|
+
*/
|
|
4218
|
+
blockchainId: string;
|
|
4219
|
+
/**
|
|
4220
|
+
* Either mainnet or testnet/fuji.
|
|
4221
|
+
*/
|
|
4222
|
+
network: Network;
|
|
4223
|
+
}): CancelablePromise<Blockchain>;
|
|
3323
4224
|
/**
|
|
3324
4225
|
* List subnets
|
|
3325
4226
|
* Lists all subnets registered on the network.
|
|
@@ -3336,7 +4237,7 @@ declare class PrimaryNetworkService {
|
|
|
3336
4237
|
*/
|
|
3337
4238
|
pageToken?: string;
|
|
3338
4239
|
/**
|
|
3339
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4240
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3340
4241
|
*/
|
|
3341
4242
|
pageSize?: number;
|
|
3342
4243
|
/**
|
|
@@ -3362,7 +4263,7 @@ declare class PrimaryNetworkService {
|
|
|
3362
4263
|
}): CancelablePromise<Subnet>;
|
|
3363
4264
|
/**
|
|
3364
4265
|
* List validators
|
|
3365
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4266
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3366
4267
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3367
4268
|
* @throws ApiError
|
|
3368
4269
|
*/
|
|
@@ -3380,7 +4281,7 @@ declare class PrimaryNetworkService {
|
|
|
3380
4281
|
*/
|
|
3381
4282
|
pageSize?: number;
|
|
3382
4283
|
/**
|
|
3383
|
-
* A comma separated list of node ids to filter by.
|
|
4284
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3384
4285
|
*/
|
|
3385
4286
|
nodeIds?: string;
|
|
3386
4287
|
/**
|
|
@@ -3524,7 +4425,7 @@ declare class PrimaryNetworkService {
|
|
|
3524
4425
|
/**
|
|
3525
4426
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3526
4427
|
*/
|
|
3527
|
-
l1ValidationId?:
|
|
4428
|
+
l1ValidationId?: string;
|
|
3528
4429
|
includeInactiveL1Validators?: boolean;
|
|
3529
4430
|
/**
|
|
3530
4431
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -3541,10 +4442,8 @@ declare enum BlockchainId {
|
|
|
3541
4442
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3542
4443
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3543
4444
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3544
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3545
4445
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3546
4446
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3547
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3548
4447
|
P_CHAIN = "p-chain",
|
|
3549
4448
|
X_CHAIN = "x-chain",
|
|
3550
4449
|
C_CHAIN = "c-chain"
|
|
@@ -4134,6 +5033,10 @@ type Utxo = {
|
|
|
4134
5033
|
* UTXO ID for this output.
|
|
4135
5034
|
*/
|
|
4136
5035
|
utxoId: string;
|
|
5036
|
+
/**
|
|
5037
|
+
* The bytes of the UTXO
|
|
5038
|
+
*/
|
|
5039
|
+
utxoBytes?: string;
|
|
4137
5040
|
/**
|
|
4138
5041
|
* Unix timestamp in seconds at which this output was consumed.
|
|
4139
5042
|
*/
|
|
@@ -4302,11 +5205,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4302
5205
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4303
5206
|
};
|
|
4304
5207
|
|
|
5208
|
+
type BlockchainInfo = {
|
|
5209
|
+
chainName: string;
|
|
5210
|
+
vmId: string;
|
|
5211
|
+
/**
|
|
5212
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
5213
|
+
*/
|
|
5214
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5215
|
+
};
|
|
5216
|
+
|
|
4305
5217
|
type L1ValidatorDetailsTransaction = {
|
|
4306
5218
|
/**
|
|
4307
5219
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4308
5220
|
*/
|
|
4309
5221
|
validationId: string;
|
|
5222
|
+
/**
|
|
5223
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5224
|
+
*/
|
|
5225
|
+
validationIdHex: string;
|
|
4310
5226
|
nodeId: string;
|
|
4311
5227
|
subnetId: string;
|
|
4312
5228
|
/**
|
|
@@ -4318,7 +5234,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4318
5234
|
*/
|
|
4319
5235
|
remainingBalance: number;
|
|
4320
5236
|
/**
|
|
4321
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
5237
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4322
5238
|
*/
|
|
4323
5239
|
balanceChange?: number;
|
|
4324
5240
|
blsCredentials?: Record<string, any>;
|
|
@@ -4348,6 +5264,9 @@ declare enum PChainTransactionType {
|
|
|
4348
5264
|
UNKNOWN = "UNKNOWN"
|
|
4349
5265
|
}
|
|
4350
5266
|
|
|
5267
|
+
/**
|
|
5268
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5269
|
+
*/
|
|
4351
5270
|
declare enum UtxoType {
|
|
4352
5271
|
STAKE = "STAKE",
|
|
4353
5272
|
TRANSFER = "TRANSFER"
|
|
@@ -4375,6 +5294,10 @@ type PChainUtxo = {
|
|
|
4375
5294
|
* UTXO ID for this output.
|
|
4376
5295
|
*/
|
|
4377
5296
|
utxoId: string;
|
|
5297
|
+
/**
|
|
5298
|
+
* The bytes of the UTXO
|
|
5299
|
+
*/
|
|
5300
|
+
utxoBytes?: string;
|
|
4378
5301
|
/**
|
|
4379
5302
|
* @deprecated
|
|
4380
5303
|
*/
|
|
@@ -4385,16 +5308,43 @@ type PChainUtxo = {
|
|
|
4385
5308
|
assetId: string;
|
|
4386
5309
|
blockNumber: string;
|
|
4387
5310
|
blockTimestamp: number;
|
|
5311
|
+
/**
|
|
5312
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5313
|
+
*/
|
|
4388
5314
|
consumingBlockNumber?: string;
|
|
5315
|
+
/**
|
|
5316
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5317
|
+
*/
|
|
4389
5318
|
consumingBlockTimestamp?: number;
|
|
5319
|
+
/**
|
|
5320
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5321
|
+
*/
|
|
4390
5322
|
platformLocktime?: number;
|
|
5323
|
+
/**
|
|
5324
|
+
* The index of the UTXO in the transaction
|
|
5325
|
+
*/
|
|
4391
5326
|
outputIndex: number;
|
|
4392
5327
|
rewardType?: RewardType;
|
|
5328
|
+
/**
|
|
5329
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5330
|
+
*/
|
|
4393
5331
|
stakeableLocktime?: number;
|
|
4394
5332
|
staked?: boolean;
|
|
5333
|
+
/**
|
|
5334
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5335
|
+
*/
|
|
4395
5336
|
threshold?: number;
|
|
5337
|
+
/**
|
|
5338
|
+
* The hash of the transaction that created this UTXO
|
|
5339
|
+
*/
|
|
4396
5340
|
txHash: string;
|
|
5341
|
+
/**
|
|
5342
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5343
|
+
*/
|
|
4397
5344
|
utxoEndTimestamp?: number;
|
|
5345
|
+
/**
|
|
5346
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5347
|
+
*/
|
|
4398
5348
|
utxoStartTimestamp?: number;
|
|
4399
5349
|
utxoType: UtxoType;
|
|
4400
5350
|
};
|
|
@@ -4406,12 +5356,21 @@ type PChainTransaction = {
|
|
|
4406
5356
|
txHash: string;
|
|
4407
5357
|
txType: PChainTransactionType;
|
|
4408
5358
|
/**
|
|
4409
|
-
* The block
|
|
5359
|
+
* The block creation (proposal) timestamp in seconds
|
|
4410
5360
|
*/
|
|
4411
5361
|
blockTimestamp: number;
|
|
5362
|
+
/**
|
|
5363
|
+
* The height of the block in which the transaction was included
|
|
5364
|
+
*/
|
|
4412
5365
|
blockNumber: string;
|
|
4413
5366
|
blockHash: string;
|
|
5367
|
+
/**
|
|
5368
|
+
* The consumed UTXOs of the transaction
|
|
5369
|
+
*/
|
|
4414
5370
|
consumedUtxos: Array<PChainUtxo>;
|
|
5371
|
+
/**
|
|
5372
|
+
* The newly created UTXOs of the transaction
|
|
5373
|
+
*/
|
|
4415
5374
|
emittedUtxos: Array<PChainUtxo>;
|
|
4416
5375
|
/**
|
|
4417
5376
|
* Source chain for an atomic transaction.
|
|
@@ -4422,11 +5381,11 @@ type PChainTransaction = {
|
|
|
4422
5381
|
*/
|
|
4423
5382
|
destinationChain?: string;
|
|
4424
5383
|
/**
|
|
4425
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5384
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4426
5385
|
*/
|
|
4427
5386
|
value: Array<AssetAmount>;
|
|
4428
5387
|
/**
|
|
4429
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5388
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4430
5389
|
*/
|
|
4431
5390
|
amountBurned: Array<AssetAmount>;
|
|
4432
5391
|
/**
|
|
@@ -4434,7 +5393,7 @@ type PChainTransaction = {
|
|
|
4434
5393
|
*/
|
|
4435
5394
|
amountStaked: Array<AssetAmount>;
|
|
4436
5395
|
/**
|
|
4437
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5396
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4438
5397
|
*/
|
|
4439
5398
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4440
5399
|
/**
|
|
@@ -4446,11 +5405,11 @@ type PChainTransaction = {
|
|
|
4446
5405
|
*/
|
|
4447
5406
|
endTimestamp?: number;
|
|
4448
5407
|
/**
|
|
4449
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5408
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4450
5409
|
*/
|
|
4451
5410
|
delegationFeePercent?: string;
|
|
4452
5411
|
/**
|
|
4453
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5412
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4454
5413
|
*/
|
|
4455
5414
|
nodeId?: string;
|
|
4456
5415
|
/**
|
|
@@ -4466,14 +5425,17 @@ type PChainTransaction = {
|
|
|
4466
5425
|
*/
|
|
4467
5426
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4468
5427
|
/**
|
|
4469
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5428
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4470
5429
|
*/
|
|
4471
5430
|
estimatedReward?: string;
|
|
5431
|
+
/**
|
|
5432
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5433
|
+
*/
|
|
4472
5434
|
rewardTxHash?: string;
|
|
4473
5435
|
rewardAddresses?: Array<string>;
|
|
4474
5436
|
memo?: string;
|
|
4475
5437
|
/**
|
|
4476
|
-
*
|
|
5438
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4477
5439
|
*/
|
|
4478
5440
|
stakingTxHash?: string;
|
|
4479
5441
|
/**
|
|
@@ -4481,9 +5443,13 @@ type PChainTransaction = {
|
|
|
4481
5443
|
*/
|
|
4482
5444
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4483
5445
|
/**
|
|
4484
|
-
* Present for AddPermissionlessValidatorTx
|
|
5446
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4485
5447
|
*/
|
|
4486
5448
|
blsCredentials?: BlsCredentials;
|
|
5449
|
+
/**
|
|
5450
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5451
|
+
*/
|
|
5452
|
+
blockchainInfo?: BlockchainInfo;
|
|
4487
5453
|
};
|
|
4488
5454
|
|
|
4489
5455
|
type ListPChainTransactionsResponse = {
|
|
@@ -4854,6 +5820,18 @@ type ListUtxosResponse = {
|
|
|
4854
5820
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4855
5821
|
};
|
|
4856
5822
|
|
|
5823
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5824
|
+
/**
|
|
5825
|
+
* Comma-separated list of primary network addresses
|
|
5826
|
+
*/
|
|
5827
|
+
addresses: string;
|
|
5828
|
+
};
|
|
5829
|
+
|
|
5830
|
+
declare enum UtxosSortByOption {
|
|
5831
|
+
TIMESTAMP = "timestamp",
|
|
5832
|
+
AMOUNT = "amount"
|
|
5833
|
+
}
|
|
5834
|
+
|
|
4857
5835
|
declare class PrimaryNetworkUtxOsService {
|
|
4858
5836
|
readonly httpRequest: BaseHttpRequest;
|
|
4859
5837
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4863,7 +5841,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4863
5841
|
* @returns any Successful response
|
|
4864
5842
|
* @throws ApiError
|
|
4865
5843
|
*/
|
|
4866
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5844
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4867
5845
|
/**
|
|
4868
5846
|
* A primary network blockchain id or alias.
|
|
4869
5847
|
*/
|
|
@@ -4888,10 +5866,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4888
5866
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4889
5867
|
*/
|
|
4890
5868
|
assetId?: string;
|
|
5869
|
+
/**
|
|
5870
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5871
|
+
*/
|
|
5872
|
+
minUtxoAmount?: number;
|
|
5873
|
+
/**
|
|
5874
|
+
* Boolean filter to include spent UTXOs.
|
|
5875
|
+
*/
|
|
5876
|
+
includeSpent?: boolean;
|
|
5877
|
+
/**
|
|
5878
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5879
|
+
*/
|
|
5880
|
+
sortBy?: UtxosSortByOption;
|
|
5881
|
+
/**
|
|
5882
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
5883
|
+
*/
|
|
5884
|
+
sortOrder?: SortOrder;
|
|
5885
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5886
|
+
/**
|
|
5887
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5888
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5889
|
+
* @returns any Successful response
|
|
5890
|
+
* @throws ApiError
|
|
5891
|
+
*/
|
|
5892
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5893
|
+
/**
|
|
5894
|
+
* A primary network blockchain id or alias.
|
|
5895
|
+
*/
|
|
5896
|
+
blockchainId: BlockchainId;
|
|
5897
|
+
/**
|
|
5898
|
+
* Either mainnet or testnet/fuji.
|
|
5899
|
+
*/
|
|
5900
|
+
network: Network;
|
|
5901
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5902
|
+
/**
|
|
5903
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5904
|
+
*/
|
|
5905
|
+
pageToken?: string;
|
|
5906
|
+
/**
|
|
5907
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5908
|
+
*/
|
|
5909
|
+
pageSize?: number;
|
|
5910
|
+
/**
|
|
5911
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5912
|
+
*/
|
|
5913
|
+
assetId?: string;
|
|
5914
|
+
/**
|
|
5915
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5916
|
+
*/
|
|
5917
|
+
minUtxoAmount?: number;
|
|
4891
5918
|
/**
|
|
4892
5919
|
* Boolean filter to include spent UTXOs.
|
|
4893
5920
|
*/
|
|
4894
5921
|
includeSpent?: boolean;
|
|
5922
|
+
/**
|
|
5923
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5924
|
+
*/
|
|
5925
|
+
sortBy?: UtxosSortByOption;
|
|
4895
5926
|
/**
|
|
4896
5927
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4897
5928
|
*/
|
|
@@ -5005,10 +6036,30 @@ type SignatureAggregationResponse = {
|
|
|
5005
6036
|
};
|
|
5006
6037
|
|
|
5007
6038
|
type SignatureAggregatorRequest = {
|
|
5008
|
-
|
|
6039
|
+
/**
|
|
6040
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
6041
|
+
*/
|
|
6042
|
+
message?: string;
|
|
6043
|
+
/**
|
|
6044
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
6045
|
+
*/
|
|
5009
6046
|
justification?: string;
|
|
6047
|
+
/**
|
|
6048
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6049
|
+
*/
|
|
5010
6050
|
signingSubnetId?: string;
|
|
6051
|
+
/**
|
|
6052
|
+
* Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
|
|
6053
|
+
*/
|
|
5011
6054
|
quorumPercentage?: number;
|
|
6055
|
+
/**
|
|
6056
|
+
* Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
|
|
6057
|
+
*/
|
|
6058
|
+
quorumPercentageBuffer?: number;
|
|
6059
|
+
/**
|
|
6060
|
+
* Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
|
|
6061
|
+
*/
|
|
6062
|
+
pChainHeight?: number;
|
|
5012
6063
|
};
|
|
5013
6064
|
|
|
5014
6065
|
declare class SignatureAggregatorService {
|
|
@@ -5027,6 +6078,22 @@ declare class SignatureAggregatorService {
|
|
|
5027
6078
|
network: Network;
|
|
5028
6079
|
requestBody: SignatureAggregatorRequest;
|
|
5029
6080
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6081
|
+
/**
|
|
6082
|
+
* Get Aggregated Signatures
|
|
6083
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6084
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6085
|
+
* @throws ApiError
|
|
6086
|
+
*/
|
|
6087
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6088
|
+
/**
|
|
6089
|
+
* Either mainnet or testnet/fuji.
|
|
6090
|
+
*/
|
|
6091
|
+
network: Network;
|
|
6092
|
+
/**
|
|
6093
|
+
* A primary network (P or X chain) transaction hash.
|
|
6094
|
+
*/
|
|
6095
|
+
txHash: string;
|
|
6096
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5030
6097
|
}
|
|
5031
6098
|
|
|
5032
6099
|
type TeleporterDestinationTransaction = {
|
|
@@ -5160,15 +6227,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
5160
6227
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5161
6228
|
*/
|
|
5162
6229
|
nextPageToken?: string;
|
|
5163
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6230
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5164
6231
|
};
|
|
5165
6232
|
|
|
5166
6233
|
declare class TeleporterService {
|
|
5167
6234
|
readonly httpRequest: BaseHttpRequest;
|
|
5168
6235
|
constructor(httpRequest: BaseHttpRequest);
|
|
5169
6236
|
/**
|
|
5170
|
-
*
|
|
5171
|
-
* Gets a teleporter message by message ID.
|
|
6237
|
+
* @deprecated
|
|
6238
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6239
|
+
*
|
|
6240
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5172
6241
|
* @returns any Successful response
|
|
5173
6242
|
* @throws ApiError
|
|
5174
6243
|
*/
|
|
@@ -5179,8 +6248,10 @@ declare class TeleporterService {
|
|
|
5179
6248
|
messageId: string;
|
|
5180
6249
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5181
6250
|
/**
|
|
5182
|
-
*
|
|
5183
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6251
|
+
* @deprecated
|
|
6252
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6253
|
+
*
|
|
6254
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5184
6255
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5185
6256
|
* @throws ApiError
|
|
5186
6257
|
*/
|
|
@@ -5219,8 +6290,10 @@ declare class TeleporterService {
|
|
|
5219
6290
|
network?: Network;
|
|
5220
6291
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5221
6292
|
/**
|
|
5222
|
-
*
|
|
5223
|
-
* Lists teleporter messages by address. Ordered by
|
|
6293
|
+
* @deprecated
|
|
6294
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6295
|
+
*
|
|
6296
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5224
6297
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5225
6298
|
* @throws ApiError
|
|
5226
6299
|
*/
|
|
@@ -5253,68 +6326,212 @@ type AddressesChangeRequest = {
|
|
|
5253
6326
|
|
|
5254
6327
|
type AddressActivityMetadata = {
|
|
5255
6328
|
/**
|
|
5256
|
-
*
|
|
6329
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6330
|
+
*/
|
|
6331
|
+
eventSignatures?: Array<string>;
|
|
6332
|
+
/**
|
|
6333
|
+
* Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
5257
6334
|
*/
|
|
5258
6335
|
addresses: Array<string>;
|
|
6336
|
+
};
|
|
6337
|
+
|
|
6338
|
+
type EVMAddressActivityRequest = {
|
|
6339
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6340
|
+
url: string;
|
|
6341
|
+
name?: string;
|
|
6342
|
+
description?: string;
|
|
6343
|
+
chainId: string;
|
|
6344
|
+
metadata: AddressActivityMetadata;
|
|
5259
6345
|
/**
|
|
5260
|
-
*
|
|
6346
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5261
6347
|
*/
|
|
5262
|
-
|
|
6348
|
+
includeInternalTxs?: boolean;
|
|
6349
|
+
/**
|
|
6350
|
+
* Whether to include logs in the webhook payload.
|
|
6351
|
+
*/
|
|
6352
|
+
includeLogs?: boolean;
|
|
5263
6353
|
};
|
|
6354
|
+
declare namespace EVMAddressActivityRequest {
|
|
6355
|
+
enum eventType {
|
|
6356
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6357
|
+
}
|
|
6358
|
+
}
|
|
5264
6359
|
|
|
5265
|
-
declare enum
|
|
6360
|
+
declare enum AddressActivityEventType {
|
|
5266
6361
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5267
6362
|
}
|
|
5268
6363
|
|
|
5269
|
-
|
|
6364
|
+
declare enum WebhookStatusType {
|
|
6365
|
+
ACTIVE = "active",
|
|
6366
|
+
INACTIVE = "inactive"
|
|
6367
|
+
}
|
|
6368
|
+
|
|
6369
|
+
type EVMAddressActivityResponse = {
|
|
6370
|
+
id: string;
|
|
5270
6371
|
url: string;
|
|
5271
6372
|
chainId: string;
|
|
5272
|
-
|
|
6373
|
+
status: WebhookStatusType;
|
|
6374
|
+
createdAt: number;
|
|
6375
|
+
name: string;
|
|
6376
|
+
description: string;
|
|
6377
|
+
eventType: AddressActivityEventType;
|
|
5273
6378
|
metadata: AddressActivityMetadata;
|
|
5274
|
-
name?: string;
|
|
5275
|
-
description?: string;
|
|
5276
6379
|
/**
|
|
5277
|
-
* Whether to include traces in the webhook payload.
|
|
6380
|
+
* Whether to include traces in the webhook payload.
|
|
6381
|
+
*/
|
|
6382
|
+
includeInternalTxs?: boolean;
|
|
6383
|
+
/**
|
|
6384
|
+
* Whether to include logs in the webhook payload.
|
|
6385
|
+
*/
|
|
6386
|
+
includeLogs?: boolean;
|
|
6387
|
+
};
|
|
6388
|
+
|
|
6389
|
+
type ListWebhookAddressesResponse = {
|
|
6390
|
+
/**
|
|
6391
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6392
|
+
*/
|
|
6393
|
+
nextPageToken?: string;
|
|
6394
|
+
addresses: Array<string>;
|
|
6395
|
+
totalAddresses: number;
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6399
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
/**
|
|
6403
|
+
* The type of key to monitor for the address activity event type.
|
|
6404
|
+
*/
|
|
6405
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6406
|
+
ADDRESSES = "addresses"
|
|
6407
|
+
}
|
|
6408
|
+
|
|
6409
|
+
/**
|
|
6410
|
+
* Array of address activity sub-event types
|
|
6411
|
+
*/
|
|
6412
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6413
|
+
BALANCE_CHANGE = "balance_change",
|
|
6414
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6415
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6419
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6420
|
+
};
|
|
6421
|
+
|
|
6422
|
+
/**
|
|
6423
|
+
* Type of balance to monitor
|
|
6424
|
+
*/
|
|
6425
|
+
declare enum CommonBalanceType {
|
|
6426
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6427
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6428
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6429
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6430
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6431
|
+
PENDING_STAKED = "pendingStaked",
|
|
6432
|
+
UNLOCKED = "unlocked",
|
|
6433
|
+
LOCKED = "locked",
|
|
6434
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6435
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6439
|
+
balanceType: CommonBalanceType;
|
|
6440
|
+
/**
|
|
6441
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6442
|
+
*/
|
|
6443
|
+
balanceThreshold: string;
|
|
6444
|
+
};
|
|
6445
|
+
|
|
6446
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6447
|
+
/**
|
|
6448
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6449
|
+
*/
|
|
6450
|
+
eventSignatures?: Array<string>;
|
|
6451
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6452
|
+
/**
|
|
6453
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
6454
|
+
*/
|
|
6455
|
+
keys: Array<string>;
|
|
6456
|
+
/**
|
|
6457
|
+
* Sub-events to monitor
|
|
6458
|
+
*/
|
|
6459
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6460
|
+
/**
|
|
6461
|
+
* Balance threshold filter
|
|
6462
|
+
*/
|
|
6463
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6464
|
+
};
|
|
6465
|
+
|
|
6466
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6467
|
+
id: string;
|
|
6468
|
+
url: string;
|
|
6469
|
+
chainId: string;
|
|
6470
|
+
status: WebhookStatusType;
|
|
6471
|
+
createdAt: number;
|
|
6472
|
+
name: string;
|
|
6473
|
+
description: string;
|
|
6474
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6475
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6476
|
+
};
|
|
6477
|
+
|
|
6478
|
+
declare enum ValidatorActivityEventType {
|
|
6479
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6480
|
+
}
|
|
6481
|
+
|
|
6482
|
+
/**
|
|
6483
|
+
* The type of key to monitor for the validator activity event type.
|
|
6484
|
+
*/
|
|
6485
|
+
declare enum ValidatorActivityKeyType {
|
|
6486
|
+
NODE_ID = "nodeId",
|
|
6487
|
+
SUBNET_ID = "subnetId"
|
|
6488
|
+
}
|
|
6489
|
+
|
|
6490
|
+
type ValidatorActivitySubEvents = {
|
|
6491
|
+
/**
|
|
6492
|
+
* Array of validator activity sub-event types
|
|
6493
|
+
*/
|
|
6494
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6495
|
+
};
|
|
6496
|
+
|
|
6497
|
+
type ValidatorActivityMetadata = {
|
|
6498
|
+
/**
|
|
6499
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6500
|
+
*/
|
|
6501
|
+
eventSignatures?: Array<string>;
|
|
6502
|
+
keyType: ValidatorActivityKeyType;
|
|
6503
|
+
/**
|
|
6504
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
5278
6505
|
*/
|
|
5279
|
-
|
|
6506
|
+
keys: Array<string>;
|
|
5280
6507
|
/**
|
|
5281
|
-
*
|
|
6508
|
+
* Sub-events to monitor
|
|
5282
6509
|
*/
|
|
5283
|
-
|
|
5284
|
-
};
|
|
5285
|
-
|
|
5286
|
-
type ListWebhookAddressesResponse = {
|
|
6510
|
+
subEvents: ValidatorActivitySubEvents;
|
|
5287
6511
|
/**
|
|
5288
|
-
*
|
|
6512
|
+
* Array of node IDs to filter the events
|
|
5289
6513
|
*/
|
|
5290
|
-
|
|
5291
|
-
addresses: Array<string>;
|
|
5292
|
-
totalAddresses: number;
|
|
5293
|
-
};
|
|
5294
|
-
|
|
5295
|
-
declare enum WebhookStatusType {
|
|
5296
|
-
ACTIVE = "active",
|
|
5297
|
-
INACTIVE = "inactive"
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
type WebhookResponse = {
|
|
5301
|
-
id: string;
|
|
5302
|
-
eventType: EventType;
|
|
5303
|
-
metadata: AddressActivityMetadata;
|
|
6514
|
+
nodeIds?: Array<string>;
|
|
5304
6515
|
/**
|
|
5305
|
-
*
|
|
6516
|
+
* Array of subnet IDs to filter the events
|
|
5306
6517
|
*/
|
|
5307
|
-
|
|
6518
|
+
subnetIds?: Array<string>;
|
|
5308
6519
|
/**
|
|
5309
|
-
*
|
|
6520
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5310
6521
|
*/
|
|
5311
|
-
|
|
6522
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6523
|
+
};
|
|
6524
|
+
|
|
6525
|
+
type ValidatorActivityResponse = {
|
|
6526
|
+
id: string;
|
|
5312
6527
|
url: string;
|
|
5313
6528
|
chainId: string;
|
|
5314
6529
|
status: WebhookStatusType;
|
|
5315
6530
|
createdAt: number;
|
|
5316
6531
|
name: string;
|
|
5317
6532
|
description: string;
|
|
6533
|
+
eventType: ValidatorActivityEventType;
|
|
6534
|
+
metadata: ValidatorActivityMetadata;
|
|
5318
6535
|
};
|
|
5319
6536
|
|
|
5320
6537
|
type ListWebhooksResponse = {
|
|
@@ -5322,8 +6539,31 @@ type ListWebhooksResponse = {
|
|
|
5322
6539
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5323
6540
|
*/
|
|
5324
6541
|
nextPageToken?: string;
|
|
5325
|
-
webhooks: Array<
|
|
6542
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6543
|
+
};
|
|
6544
|
+
|
|
6545
|
+
declare enum PrimaryNetworkType {
|
|
6546
|
+
MAINNET = "mainnet",
|
|
6547
|
+
FUJI = "fuji"
|
|
6548
|
+
}
|
|
6549
|
+
|
|
6550
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6551
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6552
|
+
url: string;
|
|
6553
|
+
name?: string;
|
|
6554
|
+
description?: string;
|
|
6555
|
+
network: PrimaryNetworkType;
|
|
6556
|
+
chainId: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Metadata for platform address activity event
|
|
6559
|
+
*/
|
|
6560
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5326
6561
|
};
|
|
6562
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6563
|
+
enum eventType {
|
|
6564
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
5327
6567
|
|
|
5328
6568
|
type SharedSecretsResponse = {
|
|
5329
6569
|
secret: string;
|
|
@@ -5341,6 +6581,23 @@ type UpdateWebhookRequest = {
|
|
|
5341
6581
|
includeLogs?: boolean;
|
|
5342
6582
|
};
|
|
5343
6583
|
|
|
6584
|
+
type ValidatorActivityRequest = {
|
|
6585
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6586
|
+
url: string;
|
|
6587
|
+
name?: string;
|
|
6588
|
+
description?: string;
|
|
6589
|
+
network: PrimaryNetworkType;
|
|
6590
|
+
/**
|
|
6591
|
+
* Metadata for platform validator activity event
|
|
6592
|
+
*/
|
|
6593
|
+
metadata: ValidatorActivityMetadata;
|
|
6594
|
+
};
|
|
6595
|
+
declare namespace ValidatorActivityRequest {
|
|
6596
|
+
enum eventType {
|
|
6597
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6598
|
+
}
|
|
6599
|
+
}
|
|
6600
|
+
|
|
5344
6601
|
declare enum WebhookStatus {
|
|
5345
6602
|
ACTIVE = "active",
|
|
5346
6603
|
INACTIVE = "inactive"
|
|
@@ -5352,12 +6609,12 @@ declare class WebhooksService {
|
|
|
5352
6609
|
/**
|
|
5353
6610
|
* Create a webhook
|
|
5354
6611
|
* Create a new webhook.
|
|
5355
|
-
* @returns
|
|
6612
|
+
* @returns any Successful response
|
|
5356
6613
|
* @throws ApiError
|
|
5357
6614
|
*/
|
|
5358
6615
|
createWebhook({ requestBody, }: {
|
|
5359
|
-
requestBody:
|
|
5360
|
-
}): CancelablePromise<
|
|
6616
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6617
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5361
6618
|
/**
|
|
5362
6619
|
* List webhooks
|
|
5363
6620
|
* Lists webhooks for the user.
|
|
@@ -5381,7 +6638,7 @@ declare class WebhooksService {
|
|
|
5381
6638
|
/**
|
|
5382
6639
|
* Get a webhook by ID
|
|
5383
6640
|
* Retrieves a webhook by ID.
|
|
5384
|
-
* @returns
|
|
6641
|
+
* @returns any Successful response
|
|
5385
6642
|
* @throws ApiError
|
|
5386
6643
|
*/
|
|
5387
6644
|
getWebhook({ id, }: {
|
|
@@ -5389,11 +6646,11 @@ declare class WebhooksService {
|
|
|
5389
6646
|
* The webhook identifier.
|
|
5390
6647
|
*/
|
|
5391
6648
|
id: string;
|
|
5392
|
-
}): CancelablePromise<
|
|
6649
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5393
6650
|
/**
|
|
5394
6651
|
* Deactivate a webhook
|
|
5395
6652
|
* Deactivates a webhook by ID.
|
|
5396
|
-
* @returns
|
|
6653
|
+
* @returns any Successful response
|
|
5397
6654
|
* @throws ApiError
|
|
5398
6655
|
*/
|
|
5399
6656
|
deactivateWebhook({ id, }: {
|
|
@@ -5401,11 +6658,11 @@ declare class WebhooksService {
|
|
|
5401
6658
|
* The webhook identifier.
|
|
5402
6659
|
*/
|
|
5403
6660
|
id: string;
|
|
5404
|
-
}): CancelablePromise<
|
|
6661
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5405
6662
|
/**
|
|
5406
6663
|
* Update a webhook
|
|
5407
6664
|
* Updates an existing webhook.
|
|
5408
|
-
* @returns
|
|
6665
|
+
* @returns any Successful response
|
|
5409
6666
|
* @throws ApiError
|
|
5410
6667
|
*/
|
|
5411
6668
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5414,14 +6671,14 @@ declare class WebhooksService {
|
|
|
5414
6671
|
*/
|
|
5415
6672
|
id: string;
|
|
5416
6673
|
requestBody: UpdateWebhookRequest;
|
|
5417
|
-
}): CancelablePromise<
|
|
6674
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5418
6675
|
/**
|
|
5419
|
-
* Generate a shared secret
|
|
5420
|
-
* Generates a new shared secret.
|
|
6676
|
+
* Generate or rotate a shared secret
|
|
6677
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5421
6678
|
* @returns SharedSecretsResponse Successful response
|
|
5422
6679
|
* @throws ApiError
|
|
5423
6680
|
*/
|
|
5424
|
-
|
|
6681
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5425
6682
|
/**
|
|
5426
6683
|
* Get a shared secret
|
|
5427
6684
|
* Get a previously generated shared secret.
|
|
@@ -5430,9 +6687,9 @@ declare class WebhooksService {
|
|
|
5430
6687
|
*/
|
|
5431
6688
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5432
6689
|
/**
|
|
5433
|
-
* Add addresses to webhook
|
|
5434
|
-
* Add addresses to webhook.
|
|
5435
|
-
* @returns
|
|
6690
|
+
* Add addresses to EVM activity webhook
|
|
6691
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6692
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5436
6693
|
* @throws ApiError
|
|
5437
6694
|
*/
|
|
5438
6695
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5441,11 +6698,11 @@ declare class WebhooksService {
|
|
|
5441
6698
|
*/
|
|
5442
6699
|
id: string;
|
|
5443
6700
|
requestBody: AddressesChangeRequest;
|
|
5444
|
-
}): CancelablePromise<
|
|
6701
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5445
6702
|
/**
|
|
5446
|
-
* Remove addresses from webhook
|
|
5447
|
-
* Remove addresses from webhook.
|
|
5448
|
-
* @returns
|
|
6703
|
+
* Remove addresses from EVM activity webhook
|
|
6704
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6705
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5449
6706
|
* @throws ApiError
|
|
5450
6707
|
*/
|
|
5451
6708
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5454,10 +6711,10 @@ declare class WebhooksService {
|
|
|
5454
6711
|
*/
|
|
5455
6712
|
id: string;
|
|
5456
6713
|
requestBody: AddressesChangeRequest;
|
|
5457
|
-
}): CancelablePromise<
|
|
6714
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5458
6715
|
/**
|
|
5459
|
-
* List adresses by
|
|
5460
|
-
* List adresses by webhook.
|
|
6716
|
+
* List adresses by EVM activity webhooks
|
|
6717
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5461
6718
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5462
6719
|
* @throws ApiError
|
|
5463
6720
|
*/
|
|
@@ -5479,6 +6736,7 @@ declare class WebhooksService {
|
|
|
5479
6736
|
|
|
5480
6737
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5481
6738
|
declare class Glacier {
|
|
6739
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5482
6740
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5483
6741
|
readonly default: DefaultService;
|
|
5484
6742
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5487,7 +6745,9 @@ declare class Glacier {
|
|
|
5487
6745
|
readonly evmContracts: EvmContractsService;
|
|
5488
6746
|
readonly evmTransactions: EvmTransactionsService;
|
|
5489
6747
|
readonly healthCheck: HealthCheckService;
|
|
6748
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5490
6749
|
readonly nfTs: NfTsService;
|
|
6750
|
+
readonly notifications: NotificationsService;
|
|
5491
6751
|
readonly operations: OperationsService;
|
|
5492
6752
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5493
6753
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5520,6 +6780,17 @@ declare class ApiError extends Error {
|
|
|
5520
6780
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5521
6781
|
}
|
|
5522
6782
|
|
|
6783
|
+
type AccessListData = {
|
|
6784
|
+
/**
|
|
6785
|
+
* Access Address
|
|
6786
|
+
*/
|
|
6787
|
+
accessAddresses: string;
|
|
6788
|
+
/**
|
|
6789
|
+
* Storage keys
|
|
6790
|
+
*/
|
|
6791
|
+
storageKeys: Array<string>;
|
|
6792
|
+
};
|
|
6793
|
+
|
|
5523
6794
|
type BadGateway = {
|
|
5524
6795
|
/**
|
|
5525
6796
|
* The error message describing the reason for the exception
|
|
@@ -5554,6 +6825,76 @@ type DataListChainsResponse = {
|
|
|
5554
6825
|
chains: Array<ChainInfo>;
|
|
5555
6826
|
};
|
|
5556
6827
|
|
|
6828
|
+
type ERCToken = {
|
|
6829
|
+
/**
|
|
6830
|
+
* Token contract address
|
|
6831
|
+
*/
|
|
6832
|
+
address: string;
|
|
6833
|
+
/**
|
|
6834
|
+
* Token name
|
|
6835
|
+
*/
|
|
6836
|
+
name: string;
|
|
6837
|
+
/**
|
|
6838
|
+
* Token symbol
|
|
6839
|
+
*/
|
|
6840
|
+
symbol: string;
|
|
6841
|
+
/**
|
|
6842
|
+
* Token decimals
|
|
6843
|
+
*/
|
|
6844
|
+
decimals: number;
|
|
6845
|
+
/**
|
|
6846
|
+
* Value including decimals
|
|
6847
|
+
*/
|
|
6848
|
+
valueWithDecimals: string;
|
|
6849
|
+
};
|
|
6850
|
+
|
|
6851
|
+
type ERCTransfer = {
|
|
6852
|
+
/**
|
|
6853
|
+
* Transaction hash
|
|
6854
|
+
*/
|
|
6855
|
+
transactionHash: string;
|
|
6856
|
+
/**
|
|
6857
|
+
* Transfer type
|
|
6858
|
+
*/
|
|
6859
|
+
type: string;
|
|
6860
|
+
/**
|
|
6861
|
+
* Sender address
|
|
6862
|
+
*/
|
|
6863
|
+
from: string;
|
|
6864
|
+
/**
|
|
6865
|
+
* Recipient address
|
|
6866
|
+
*/
|
|
6867
|
+
to: string;
|
|
6868
|
+
/**
|
|
6869
|
+
* Amount transferred
|
|
6870
|
+
*/
|
|
6871
|
+
value: string;
|
|
6872
|
+
/**
|
|
6873
|
+
* Token Id
|
|
6874
|
+
*/
|
|
6875
|
+
tokenId?: string;
|
|
6876
|
+
/**
|
|
6877
|
+
* Block timestamp
|
|
6878
|
+
*/
|
|
6879
|
+
blockTimestamp: number;
|
|
6880
|
+
/**
|
|
6881
|
+
* Log index
|
|
6882
|
+
*/
|
|
6883
|
+
logIndex: number;
|
|
6884
|
+
/**
|
|
6885
|
+
* erc20 Token details
|
|
6886
|
+
*/
|
|
6887
|
+
erc20Token?: ERCToken;
|
|
6888
|
+
/**
|
|
6889
|
+
* erc721 Token details
|
|
6890
|
+
*/
|
|
6891
|
+
erc721Token?: ERCToken;
|
|
6892
|
+
/**
|
|
6893
|
+
* erc1155 Token details
|
|
6894
|
+
*/
|
|
6895
|
+
erc1155Token?: ERCToken;
|
|
6896
|
+
};
|
|
6897
|
+
|
|
5557
6898
|
type Forbidden = {
|
|
5558
6899
|
/**
|
|
5559
6900
|
* The error message describing the reason for the exception
|
|
@@ -5584,6 +6925,64 @@ type InternalServerError = {
|
|
|
5584
6925
|
error: string;
|
|
5585
6926
|
};
|
|
5586
6927
|
|
|
6928
|
+
type Log = {
|
|
6929
|
+
/**
|
|
6930
|
+
* Contract address
|
|
6931
|
+
*/
|
|
6932
|
+
address: string;
|
|
6933
|
+
/**
|
|
6934
|
+
* First topic
|
|
6935
|
+
*/
|
|
6936
|
+
topic0: string;
|
|
6937
|
+
/**
|
|
6938
|
+
* Second topic (optional)
|
|
6939
|
+
*/
|
|
6940
|
+
topic1?: string;
|
|
6941
|
+
/**
|
|
6942
|
+
* Third topic (optional)
|
|
6943
|
+
*/
|
|
6944
|
+
topic2?: string;
|
|
6945
|
+
/**
|
|
6946
|
+
* Fourth topic (optional)
|
|
6947
|
+
*/
|
|
6948
|
+
topic3?: string;
|
|
6949
|
+
/**
|
|
6950
|
+
* Event data
|
|
6951
|
+
*/
|
|
6952
|
+
data: string;
|
|
6953
|
+
/**
|
|
6954
|
+
* Transaction index
|
|
6955
|
+
*/
|
|
6956
|
+
transactionIndex: number;
|
|
6957
|
+
/**
|
|
6958
|
+
* Log index
|
|
6959
|
+
*/
|
|
6960
|
+
logIndex: number;
|
|
6961
|
+
/**
|
|
6962
|
+
* Indicates if the log was removed
|
|
6963
|
+
*/
|
|
6964
|
+
removed: boolean;
|
|
6965
|
+
};
|
|
6966
|
+
|
|
6967
|
+
type NetworkTokenInfo = {
|
|
6968
|
+
/**
|
|
6969
|
+
* Token name
|
|
6970
|
+
*/
|
|
6971
|
+
tokenName?: string;
|
|
6972
|
+
/**
|
|
6973
|
+
* Token symbol
|
|
6974
|
+
*/
|
|
6975
|
+
tokenSymbol?: string;
|
|
6976
|
+
/**
|
|
6977
|
+
* Token decimals
|
|
6978
|
+
*/
|
|
6979
|
+
tokenDecimals?: number;
|
|
6980
|
+
/**
|
|
6981
|
+
* Value including decimals
|
|
6982
|
+
*/
|
|
6983
|
+
valueWithDecimals?: string;
|
|
6984
|
+
};
|
|
6985
|
+
|
|
5587
6986
|
type NextPageToken = {
|
|
5588
6987
|
/**
|
|
5589
6988
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5636,6 +7035,163 @@ type TooManyRequests = {
|
|
|
5636
7035
|
error: string;
|
|
5637
7036
|
};
|
|
5638
7037
|
|
|
7038
|
+
type WebhookInternalTransaction = {
|
|
7039
|
+
/**
|
|
7040
|
+
* Sender address
|
|
7041
|
+
*/
|
|
7042
|
+
from: string;
|
|
7043
|
+
/**
|
|
7044
|
+
* Recipient address
|
|
7045
|
+
*/
|
|
7046
|
+
to: string;
|
|
7047
|
+
/**
|
|
7048
|
+
* Internal transaction type
|
|
7049
|
+
*/
|
|
7050
|
+
internalTxType: string;
|
|
7051
|
+
/**
|
|
7052
|
+
* Value transferred
|
|
7053
|
+
*/
|
|
7054
|
+
value: string;
|
|
7055
|
+
/**
|
|
7056
|
+
* Gas used
|
|
7057
|
+
*/
|
|
7058
|
+
gasUsed: string;
|
|
7059
|
+
/**
|
|
7060
|
+
* Gas limit
|
|
7061
|
+
*/
|
|
7062
|
+
gasLimit: string;
|
|
7063
|
+
/**
|
|
7064
|
+
* Transaction hash
|
|
7065
|
+
*/
|
|
7066
|
+
transactionHash: string;
|
|
7067
|
+
};
|
|
7068
|
+
|
|
7069
|
+
type Transaction = {
|
|
7070
|
+
/**
|
|
7071
|
+
* Block hash of the transaction
|
|
7072
|
+
*/
|
|
7073
|
+
blockHash: string;
|
|
7074
|
+
/**
|
|
7075
|
+
* Block number of the transaction
|
|
7076
|
+
*/
|
|
7077
|
+
blockNumber: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Sender address
|
|
7080
|
+
*/
|
|
7081
|
+
from: string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Gas limit for the transaction
|
|
7084
|
+
*/
|
|
7085
|
+
gas: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Gas price used
|
|
7088
|
+
*/
|
|
7089
|
+
gasPrice: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Maximum fee per gas
|
|
7092
|
+
*/
|
|
7093
|
+
maxFeePerGas: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Maximum priority fee per gas
|
|
7096
|
+
*/
|
|
7097
|
+
maxPriorityFeePerGas: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Transaction hash
|
|
7100
|
+
*/
|
|
7101
|
+
txHash: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Transaction status
|
|
7104
|
+
*/
|
|
7105
|
+
txStatus: string;
|
|
7106
|
+
/**
|
|
7107
|
+
* Input data
|
|
7108
|
+
*/
|
|
7109
|
+
input: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* Nonce value
|
|
7112
|
+
*/
|
|
7113
|
+
nonce: string;
|
|
7114
|
+
/**
|
|
7115
|
+
* Recipient address
|
|
7116
|
+
*/
|
|
7117
|
+
to: string;
|
|
7118
|
+
/**
|
|
7119
|
+
* Transaction index
|
|
7120
|
+
*/
|
|
7121
|
+
transactionIndex: number;
|
|
7122
|
+
/**
|
|
7123
|
+
* Value transferred in the transaction
|
|
7124
|
+
*/
|
|
7125
|
+
value: string;
|
|
7126
|
+
/**
|
|
7127
|
+
* Transaction type
|
|
7128
|
+
*/
|
|
7129
|
+
type: number;
|
|
7130
|
+
/**
|
|
7131
|
+
* Chain ID of the network
|
|
7132
|
+
*/
|
|
7133
|
+
chainId: string;
|
|
7134
|
+
/**
|
|
7135
|
+
* Cumulative gas used
|
|
7136
|
+
*/
|
|
7137
|
+
receiptCumulativeGasUsed: string;
|
|
7138
|
+
/**
|
|
7139
|
+
* Gas used
|
|
7140
|
+
*/
|
|
7141
|
+
receiptGasUsed: string;
|
|
7142
|
+
/**
|
|
7143
|
+
* Effective gas price
|
|
7144
|
+
*/
|
|
7145
|
+
receiptEffectiveGasPrice: string;
|
|
7146
|
+
/**
|
|
7147
|
+
* Receipt root
|
|
7148
|
+
*/
|
|
7149
|
+
receiptRoot: string;
|
|
7150
|
+
/**
|
|
7151
|
+
* Block timestamp
|
|
7152
|
+
*/
|
|
7153
|
+
blockTimestamp: number;
|
|
7154
|
+
/**
|
|
7155
|
+
* Contract address (optional)
|
|
7156
|
+
*/
|
|
7157
|
+
contractAddress?: string;
|
|
7158
|
+
/**
|
|
7159
|
+
* ERC20 transfers
|
|
7160
|
+
*/
|
|
7161
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7162
|
+
/**
|
|
7163
|
+
* ERC721 transfers
|
|
7164
|
+
*/
|
|
7165
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7166
|
+
/**
|
|
7167
|
+
* ERC1155 transfers
|
|
7168
|
+
*/
|
|
7169
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7170
|
+
/**
|
|
7171
|
+
* Internal transactions (optional)
|
|
7172
|
+
*/
|
|
7173
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7174
|
+
/**
|
|
7175
|
+
* Access list (optional)
|
|
7176
|
+
*/
|
|
7177
|
+
accessList?: Array<AccessListData>;
|
|
7178
|
+
/**
|
|
7179
|
+
* Network token info (optional)
|
|
7180
|
+
*/
|
|
7181
|
+
networkToken?: NetworkTokenInfo;
|
|
7182
|
+
};
|
|
7183
|
+
|
|
7184
|
+
type TransactionEvent = {
|
|
7185
|
+
/**
|
|
7186
|
+
* Transaction details
|
|
7187
|
+
*/
|
|
7188
|
+
transaction: Transaction;
|
|
7189
|
+
/**
|
|
7190
|
+
* Array of log events
|
|
7191
|
+
*/
|
|
7192
|
+
logs?: Array<Log>;
|
|
7193
|
+
};
|
|
7194
|
+
|
|
5639
7195
|
type Unauthorized = {
|
|
5640
7196
|
/**
|
|
5641
7197
|
* The error message describing the reason for the exception
|
|
@@ -5651,4 +7207,43 @@ type Unauthorized = {
|
|
|
5651
7207
|
error: string;
|
|
5652
7208
|
};
|
|
5653
7209
|
|
|
5654
|
-
|
|
7210
|
+
type WebhookAddressActivityResponse = {
|
|
7211
|
+
/**
|
|
7212
|
+
* Webhook ID
|
|
7213
|
+
*/
|
|
7214
|
+
webhookId: string;
|
|
7215
|
+
/**
|
|
7216
|
+
* Event type
|
|
7217
|
+
*/
|
|
7218
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7219
|
+
/**
|
|
7220
|
+
* Message ID
|
|
7221
|
+
*/
|
|
7222
|
+
messageId: string;
|
|
7223
|
+
/**
|
|
7224
|
+
* Event details
|
|
7225
|
+
*/
|
|
7226
|
+
event: TransactionEvent;
|
|
7227
|
+
};
|
|
7228
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7229
|
+
/**
|
|
7230
|
+
* Event type
|
|
7231
|
+
*/
|
|
7232
|
+
enum eventType {
|
|
7233
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7236
|
+
|
|
7237
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7238
|
+
constructor(config: OpenAPIConfig);
|
|
7239
|
+
/**
|
|
7240
|
+
* Request method
|
|
7241
|
+
* @param options The request options from the service
|
|
7242
|
+
* @returns CancelablePromise<T>
|
|
7243
|
+
* @throws ApiError
|
|
7244
|
+
*/
|
|
7245
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7246
|
+
}
|
|
7247
|
+
|
|
7248
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7249
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|