@avalabs/glacier-sdk 3.1.0-canary.4a6f312.0 → 3.1.0-canary.4b3bc0b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1366 -146
- package/esm/generated/Glacier.d.ts +4 -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 +5 -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/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/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 +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +1 -1
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +1 -1
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +1 -1
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +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 +1 -1
- package/esm/generated/models/IcmReceipt.d.ts +1 -1
- package/esm/generated/models/IcmSourceTransaction.d.ts +1 -1
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +5 -1
- 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 +3 -2
- 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 +1 -1
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +6 -1
- package/esm/generated/models/PChainUtxo.d.ts +5 -1
- package/esm/generated/models/PendingReward.d.ts +1 -1
- 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/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 +1 -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/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 +1 -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/EvmTransactionsService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +11 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +2 -2
- 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/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +52 -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
|
/**
|
|
@@ -1646,7 +1787,7 @@ type Erc1155Contract = {
|
|
|
1646
1787
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1647
1788
|
*/
|
|
1648
1789
|
address: string;
|
|
1649
|
-
deploymentDetails
|
|
1790
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1650
1791
|
ercType: Erc1155Contract.ercType;
|
|
1651
1792
|
/**
|
|
1652
1793
|
* The contract symbol.
|
|
@@ -1677,7 +1818,7 @@ type Erc20Contract = {
|
|
|
1677
1818
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1678
1819
|
*/
|
|
1679
1820
|
address: string;
|
|
1680
|
-
deploymentDetails
|
|
1821
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1681
1822
|
ercType: Erc20Contract.ercType;
|
|
1682
1823
|
/**
|
|
1683
1824
|
* The contract symbol.
|
|
@@ -1712,7 +1853,7 @@ type Erc721Contract = {
|
|
|
1712
1853
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1713
1854
|
*/
|
|
1714
1855
|
address: string;
|
|
1715
|
-
deploymentDetails
|
|
1856
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1716
1857
|
ercType: Erc721Contract.ercType;
|
|
1717
1858
|
/**
|
|
1718
1859
|
* The contract symbol.
|
|
@@ -1742,7 +1883,7 @@ type UnknownContract = {
|
|
|
1742
1883
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1743
1884
|
*/
|
|
1744
1885
|
address: string;
|
|
1745
|
-
deploymentDetails
|
|
1886
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1746
1887
|
ercType: UnknownContract.ercType;
|
|
1747
1888
|
};
|
|
1748
1889
|
declare namespace UnknownContract {
|
|
@@ -1960,6 +2101,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1960
2101
|
CALL = "CALL",
|
|
1961
2102
|
CREATE = "CREATE",
|
|
1962
2103
|
CREATE2 = "CREATE2",
|
|
2104
|
+
CREATE3 = "CREATE3",
|
|
1963
2105
|
CALLCODE = "CALLCODE",
|
|
1964
2106
|
DELEGATECALL = "DELEGATECALL",
|
|
1965
2107
|
STATICCALL = "STATICCALL"
|
|
@@ -2001,11 +2143,11 @@ type TeleporterMessageInfo = {
|
|
|
2001
2143
|
/**
|
|
2002
2144
|
* chain id of the source chain. valid only for destination transactions
|
|
2003
2145
|
*/
|
|
2004
|
-
sourceChainId?:
|
|
2146
|
+
sourceChainId?: string;
|
|
2005
2147
|
/**
|
|
2006
2148
|
* chain id of the destination chain. valid only for source transactions
|
|
2007
2149
|
*/
|
|
2008
|
-
destinationChainId?:
|
|
2150
|
+
destinationChainId?: string;
|
|
2009
2151
|
};
|
|
2010
2152
|
|
|
2011
2153
|
type GetTransactionResponse = {
|
|
@@ -2022,7 +2164,7 @@ type GetTransactionResponse = {
|
|
|
2022
2164
|
*/
|
|
2023
2165
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2024
2166
|
/**
|
|
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
|
|
2167
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2026
2168
|
*/
|
|
2027
2169
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2028
2170
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2191,7 +2333,7 @@ type TransactionDetails = {
|
|
|
2191
2333
|
*/
|
|
2192
2334
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2193
2335
|
/**
|
|
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
|
|
2336
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2195
2337
|
*/
|
|
2196
2338
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2197
2339
|
};
|
|
@@ -2490,7 +2632,7 @@ declare class EvmTransactionsService {
|
|
|
2490
2632
|
* List internal transactions
|
|
2491
2633
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2492
2634
|
*
|
|
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.
|
|
2635
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2494
2636
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2495
2637
|
* @throws ApiError
|
|
2496
2638
|
*/
|
|
@@ -2586,20 +2728,53 @@ declare class EvmTransactionsService {
|
|
|
2586
2728
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2729
|
}
|
|
2588
2730
|
|
|
2731
|
+
type HealthIndicatorResultDto = {
|
|
2732
|
+
/**
|
|
2733
|
+
* Status of the health indicator.
|
|
2734
|
+
*/
|
|
2735
|
+
status?: HealthIndicatorResultDto.status;
|
|
2736
|
+
};
|
|
2737
|
+
declare namespace HealthIndicatorResultDto {
|
|
2738
|
+
/**
|
|
2739
|
+
* Status of the health indicator.
|
|
2740
|
+
*/
|
|
2741
|
+
enum status {
|
|
2742
|
+
UP = "up",
|
|
2743
|
+
DOWN = "down"
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
type HealthCheckResultDto = {
|
|
2748
|
+
status?: HealthCheckResultDto.status;
|
|
2749
|
+
info?: any | null;
|
|
2750
|
+
error?: any | null;
|
|
2751
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2752
|
+
};
|
|
2753
|
+
declare namespace HealthCheckResultDto {
|
|
2754
|
+
enum status {
|
|
2755
|
+
ERROR = "error",
|
|
2756
|
+
OK = "ok",
|
|
2757
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2589
2761
|
declare class HealthCheckService {
|
|
2590
2762
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2763
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2764
|
/**
|
|
2593
2765
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2766
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2767
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2595
2768
|
* @throws ApiError
|
|
2596
2769
|
*/
|
|
2597
|
-
dataHealthCheck(): CancelablePromise<
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2770
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2771
|
+
/**
|
|
2772
|
+
* Get the liveliness of the service (reads only)
|
|
2773
|
+
* Check the liveliness of the service (reads only).
|
|
2774
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2775
|
+
* @throws ApiError
|
|
2776
|
+
*/
|
|
2777
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2603
2778
|
}
|
|
2604
2779
|
|
|
2605
2780
|
type IcmDestinationTransaction = {
|
|
@@ -2733,7 +2908,7 @@ type ListIcmMessagesResponse = {
|
|
|
2733
2908
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2734
2909
|
*/
|
|
2735
2910
|
nextPageToken?: string;
|
|
2736
|
-
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2911
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2737
2912
|
};
|
|
2738
2913
|
|
|
2739
2914
|
declare class InterchainMessagingService {
|
|
@@ -2741,13 +2916,13 @@ declare class InterchainMessagingService {
|
|
|
2741
2916
|
constructor(httpRequest: BaseHttpRequest);
|
|
2742
2917
|
/**
|
|
2743
2918
|
* Get an ICM message
|
|
2744
|
-
* Gets an ICM message by message ID.
|
|
2919
|
+
* Gets an ICM message by teleporter message ID.
|
|
2745
2920
|
* @returns any Successful response
|
|
2746
2921
|
* @throws ApiError
|
|
2747
2922
|
*/
|
|
2748
2923
|
getIcmMessage({ messageId, }: {
|
|
2749
2924
|
/**
|
|
2750
|
-
* The message ID of the ICM message.
|
|
2925
|
+
* The teleporter message ID of the ICM message.
|
|
2751
2926
|
*/
|
|
2752
2927
|
messageId: string;
|
|
2753
2928
|
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
@@ -2894,6 +3069,108 @@ declare class NfTsService {
|
|
|
2894
3069
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2895
3070
|
}
|
|
2896
3071
|
|
|
3072
|
+
type AccessRequest = {
|
|
3073
|
+
/**
|
|
3074
|
+
* The email address to send the access token to
|
|
3075
|
+
*/
|
|
3076
|
+
email: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The captcha to verify the user
|
|
3079
|
+
*/
|
|
3080
|
+
captcha: string;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
type NotificationsResponse = {
|
|
3084
|
+
message: string;
|
|
3085
|
+
};
|
|
3086
|
+
|
|
3087
|
+
type SubscribeRequest = {
|
|
3088
|
+
/**
|
|
3089
|
+
* The access token to use for authentication
|
|
3090
|
+
*/
|
|
3091
|
+
accessToken: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* The node ID to subscribe to
|
|
3094
|
+
*/
|
|
3095
|
+
nodeId: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3098
|
+
*/
|
|
3099
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
type SubscriptionsRequest = {
|
|
3103
|
+
/**
|
|
3104
|
+
* The access token to use for authentication
|
|
3105
|
+
*/
|
|
3106
|
+
accessToken: string;
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
type SubscriptionsResponse = {
|
|
3110
|
+
/**
|
|
3111
|
+
* The email address of the user
|
|
3112
|
+
*/
|
|
3113
|
+
email: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* The subscriptions of the user
|
|
3116
|
+
*/
|
|
3117
|
+
subscriptions: Record<string, {
|
|
3118
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3119
|
+
}>;
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
type UnsubscribeRequest = {
|
|
3123
|
+
/**
|
|
3124
|
+
* The access token to use for authentication
|
|
3125
|
+
*/
|
|
3126
|
+
accessToken: string;
|
|
3127
|
+
/**
|
|
3128
|
+
* The node ID to subscribe to
|
|
3129
|
+
*/
|
|
3130
|
+
nodeId: string;
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
declare class NotificationsService {
|
|
3134
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3135
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3136
|
+
/**
|
|
3137
|
+
* Access Notifications
|
|
3138
|
+
* Access notifications.
|
|
3139
|
+
* @returns NotificationsResponse Successful response
|
|
3140
|
+
* @throws ApiError
|
|
3141
|
+
*/
|
|
3142
|
+
access({ requestBody, }: {
|
|
3143
|
+
requestBody: AccessRequest;
|
|
3144
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3145
|
+
/**
|
|
3146
|
+
* Subscribe to Notifications
|
|
3147
|
+
* Subscribe to receive notifications.
|
|
3148
|
+
* @returns NotificationsResponse Successful response
|
|
3149
|
+
* @throws ApiError
|
|
3150
|
+
*/
|
|
3151
|
+
subscribe({ requestBody, }: {
|
|
3152
|
+
requestBody: SubscribeRequest;
|
|
3153
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Unsubscribe from Notifications
|
|
3156
|
+
* Unsubscribe from receiving notifications.
|
|
3157
|
+
* @returns NotificationsResponse Successful response
|
|
3158
|
+
* @throws ApiError
|
|
3159
|
+
*/
|
|
3160
|
+
unsubscribe({ requestBody, }: {
|
|
3161
|
+
requestBody: UnsubscribeRequest;
|
|
3162
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3163
|
+
/**
|
|
3164
|
+
* Get Subscriptions
|
|
3165
|
+
* Get subscriptions.
|
|
3166
|
+
* @returns SubscriptionsResponse Successful response
|
|
3167
|
+
* @throws ApiError
|
|
3168
|
+
*/
|
|
3169
|
+
subscriptions({ requestBody, }: {
|
|
3170
|
+
requestBody: SubscriptionsRequest;
|
|
3171
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
2897
3174
|
type EvmNetworkOptions = {
|
|
2898
3175
|
addresses: Array<string>;
|
|
2899
3176
|
includeChains: Array<string>;
|
|
@@ -2927,7 +3204,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2927
3204
|
type PrimaryNetworkOptions = {
|
|
2928
3205
|
addresses?: Array<string>;
|
|
2929
3206
|
cChainEvmAddresses?: Array<string>;
|
|
2930
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3207
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2931
3208
|
};
|
|
2932
3209
|
|
|
2933
3210
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2982,7 +3259,7 @@ type OperationStatusResponse = {
|
|
|
2982
3259
|
operationType: OperationType;
|
|
2983
3260
|
operationStatus: OperationStatus;
|
|
2984
3261
|
message?: string;
|
|
2985
|
-
metadata
|
|
3262
|
+
metadata?: TransactionExportMetadata;
|
|
2986
3263
|
createdAtTimestamp: number;
|
|
2987
3264
|
updatedAtTimestamp: number;
|
|
2988
3265
|
};
|
|
@@ -3015,68 +3292,250 @@ declare class OperationsService {
|
|
|
3015
3292
|
}): CancelablePromise<OperationStatusResponse>;
|
|
3016
3293
|
}
|
|
3017
3294
|
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
};
|
|
3032
|
-
|
|
3033
|
-
type ChainAddressChainIdMapListResponse = {
|
|
3034
|
-
addresses: Array<ChainAddressChainIdMap>;
|
|
3295
|
+
type EvmGenesisAllocDto = {
|
|
3296
|
+
/**
|
|
3297
|
+
* Account balance in hex format
|
|
3298
|
+
*/
|
|
3299
|
+
balance?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Contract bytecode in hex format
|
|
3302
|
+
*/
|
|
3303
|
+
code?: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Contract storage slots
|
|
3306
|
+
*/
|
|
3307
|
+
storage?: Record<string, string>;
|
|
3035
3308
|
};
|
|
3036
3309
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3310
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3311
|
+
/**
|
|
3312
|
+
* Block timestamp
|
|
3313
|
+
*/
|
|
3314
|
+
blockTimestamp?: number;
|
|
3315
|
+
/**
|
|
3316
|
+
* Admin addresses
|
|
3317
|
+
*/
|
|
3318
|
+
adminAddresses?: Array<string>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Manager addresses
|
|
3321
|
+
*/
|
|
3322
|
+
managerAddresses?: Array<string>;
|
|
3323
|
+
/**
|
|
3324
|
+
* Enabled addresses
|
|
3325
|
+
*/
|
|
3326
|
+
enabledAddresses?: Array<string>;
|
|
3046
3327
|
};
|
|
3047
3328
|
|
|
3048
|
-
type
|
|
3329
|
+
type EvmGenesisFeeConfigDto = {
|
|
3049
3330
|
/**
|
|
3050
|
-
*
|
|
3331
|
+
* Base fee change denominator
|
|
3051
3332
|
*/
|
|
3052
|
-
|
|
3333
|
+
baseFeeChangeDenominator?: number;
|
|
3053
3334
|
/**
|
|
3054
|
-
*
|
|
3335
|
+
* Block gas cost step
|
|
3055
3336
|
*/
|
|
3056
|
-
|
|
3337
|
+
blockGasCostStep?: number;
|
|
3057
3338
|
/**
|
|
3058
|
-
*
|
|
3339
|
+
* Gas limit
|
|
3059
3340
|
*/
|
|
3060
|
-
|
|
3341
|
+
gasLimit?: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Maximum block gas cost
|
|
3344
|
+
*/
|
|
3345
|
+
maxBlockGasCost?: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Minimum base fee
|
|
3348
|
+
*/
|
|
3349
|
+
minBaseFee?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Minimum block gas cost
|
|
3352
|
+
*/
|
|
3353
|
+
minBlockGasCost?: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Target block rate
|
|
3356
|
+
*/
|
|
3357
|
+
targetBlockRate?: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* Target gas
|
|
3360
|
+
*/
|
|
3361
|
+
targetGas?: number;
|
|
3061
3362
|
};
|
|
3062
3363
|
|
|
3063
|
-
type
|
|
3064
|
-
validatorCount: number;
|
|
3065
|
-
totalAmountStaked: string;
|
|
3364
|
+
type EvmGenesisWarpConfigDto = {
|
|
3066
3365
|
/**
|
|
3067
|
-
*
|
|
3366
|
+
* Block timestamp
|
|
3068
3367
|
*/
|
|
3069
|
-
|
|
3070
|
-
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3368
|
+
blockTimestamp?: number;
|
|
3071
3369
|
/**
|
|
3072
|
-
*
|
|
3370
|
+
* Quorum numerator
|
|
3073
3371
|
*/
|
|
3074
|
-
|
|
3372
|
+
quorumNumerator?: number;
|
|
3373
|
+
/**
|
|
3374
|
+
* Require primary network signers
|
|
3375
|
+
*/
|
|
3376
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3075
3377
|
};
|
|
3076
3378
|
|
|
3077
|
-
type
|
|
3078
|
-
|
|
3079
|
-
|
|
3379
|
+
type EvmGenesisConfigDto = {
|
|
3380
|
+
/**
|
|
3381
|
+
* Berlin block number
|
|
3382
|
+
*/
|
|
3383
|
+
berlinBlock?: number;
|
|
3384
|
+
/**
|
|
3385
|
+
* Byzantium block number
|
|
3386
|
+
*/
|
|
3387
|
+
byzantiumBlock?: number;
|
|
3388
|
+
/**
|
|
3389
|
+
* Chain ID
|
|
3390
|
+
*/
|
|
3391
|
+
chainId?: number;
|
|
3392
|
+
/**
|
|
3393
|
+
* Constantinople block number
|
|
3394
|
+
*/
|
|
3395
|
+
constantinopleBlock?: number;
|
|
3396
|
+
/**
|
|
3397
|
+
* EIP-150 block number
|
|
3398
|
+
*/
|
|
3399
|
+
eip150Block?: number;
|
|
3400
|
+
/**
|
|
3401
|
+
* EIP-150 hash
|
|
3402
|
+
*/
|
|
3403
|
+
eip150Hash?: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* EIP-155 block number
|
|
3406
|
+
*/
|
|
3407
|
+
eip155Block?: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* EIP-158 block number
|
|
3410
|
+
*/
|
|
3411
|
+
eip158Block?: number;
|
|
3412
|
+
/**
|
|
3413
|
+
* Fee configuration
|
|
3414
|
+
*/
|
|
3415
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3416
|
+
/**
|
|
3417
|
+
* Homestead block number
|
|
3418
|
+
*/
|
|
3419
|
+
homesteadBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* Istanbul block number
|
|
3422
|
+
*/
|
|
3423
|
+
istanbulBlock?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* London block number
|
|
3426
|
+
*/
|
|
3427
|
+
londonBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* Muir Glacier block number
|
|
3430
|
+
*/
|
|
3431
|
+
muirGlacierBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Petersburg block number
|
|
3434
|
+
*/
|
|
3435
|
+
petersburgBlock?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Subnet EVM timestamp
|
|
3438
|
+
*/
|
|
3439
|
+
subnetEVMTimestamp?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Allow fee recipients
|
|
3442
|
+
*/
|
|
3443
|
+
allowFeeRecipients?: boolean;
|
|
3444
|
+
/**
|
|
3445
|
+
* Warp configuration
|
|
3446
|
+
*/
|
|
3447
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Transaction allow list configuration
|
|
3450
|
+
*/
|
|
3451
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3452
|
+
/**
|
|
3453
|
+
* Contract deployer allow list configuration
|
|
3454
|
+
*/
|
|
3455
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3456
|
+
/**
|
|
3457
|
+
* Contract native minter configuration
|
|
3458
|
+
*/
|
|
3459
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fee manager configuration
|
|
3462
|
+
*/
|
|
3463
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3464
|
+
/**
|
|
3465
|
+
* Reward manager configuration
|
|
3466
|
+
*/
|
|
3467
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3468
|
+
};
|
|
3469
|
+
|
|
3470
|
+
type EvmGenesisDto = {
|
|
3471
|
+
/**
|
|
3472
|
+
* Airdrop amount
|
|
3473
|
+
*/
|
|
3474
|
+
airdropAmount?: number | null;
|
|
3475
|
+
/**
|
|
3476
|
+
* Airdrop hash
|
|
3477
|
+
*/
|
|
3478
|
+
airdropHash?: string;
|
|
3479
|
+
/**
|
|
3480
|
+
* Allocation of accounts and balances
|
|
3481
|
+
*/
|
|
3482
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3483
|
+
/**
|
|
3484
|
+
* Base fee per gas
|
|
3485
|
+
*/
|
|
3486
|
+
baseFeePerGas?: number | null;
|
|
3487
|
+
/**
|
|
3488
|
+
* Blob gas used
|
|
3489
|
+
*/
|
|
3490
|
+
blobGasUsed?: string | null;
|
|
3491
|
+
/**
|
|
3492
|
+
* Coinbase address
|
|
3493
|
+
*/
|
|
3494
|
+
coinbase?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Genesis configuration
|
|
3497
|
+
*/
|
|
3498
|
+
config?: EvmGenesisConfigDto;
|
|
3499
|
+
/**
|
|
3500
|
+
* Difficulty
|
|
3501
|
+
*/
|
|
3502
|
+
difficulty?: string;
|
|
3503
|
+
/**
|
|
3504
|
+
* Excess blob gas
|
|
3505
|
+
*/
|
|
3506
|
+
excessBlobGas?: string | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Extra data
|
|
3509
|
+
*/
|
|
3510
|
+
extraData?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Gas limit
|
|
3513
|
+
*/
|
|
3514
|
+
gasLimit?: string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Gas used
|
|
3517
|
+
*/
|
|
3518
|
+
gasUsed?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Mix hash
|
|
3521
|
+
*/
|
|
3522
|
+
mixHash?: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Nonce
|
|
3525
|
+
*/
|
|
3526
|
+
nonce?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Block number
|
|
3529
|
+
*/
|
|
3530
|
+
number?: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Parent hash
|
|
3533
|
+
*/
|
|
3534
|
+
parentHash?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
timestamp?: string;
|
|
3080
3539
|
};
|
|
3081
3540
|
|
|
3082
3541
|
type Blockchain = {
|
|
@@ -3086,6 +3545,76 @@ type Blockchain = {
|
|
|
3086
3545
|
vmId: string;
|
|
3087
3546
|
subnetId: string;
|
|
3088
3547
|
blockchainName: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
3550
|
+
*/
|
|
3551
|
+
evmChainId?: number;
|
|
3552
|
+
/**
|
|
3553
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3554
|
+
*/
|
|
3555
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3558
|
+
declare enum BlockchainIds {
|
|
3559
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3560
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3561
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3562
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3563
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
type ChainAddressChainIdMap = {
|
|
3567
|
+
address: string;
|
|
3568
|
+
blockchainIds: Array<BlockchainIds>;
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
type ChainAddressChainIdMapListResponse = {
|
|
3572
|
+
addresses: Array<ChainAddressChainIdMap>;
|
|
3573
|
+
};
|
|
3574
|
+
|
|
3575
|
+
declare enum DelegationStatusType {
|
|
3576
|
+
COMPLETED = "completed",
|
|
3577
|
+
ACTIVE = "active",
|
|
3578
|
+
PENDING = "pending"
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
type DelegatorsDetails = {
|
|
3582
|
+
delegatorCount: number;
|
|
3583
|
+
totalAmountStaked: string;
|
|
3584
|
+
};
|
|
3585
|
+
|
|
3586
|
+
type StakingDistribution = {
|
|
3587
|
+
/**
|
|
3588
|
+
* AvalancheGo version for the validator node.
|
|
3589
|
+
*/
|
|
3590
|
+
version: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* The total amount staked by validators using this version.
|
|
3593
|
+
*/
|
|
3594
|
+
amountStaked: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* The number of validators using this version.
|
|
3597
|
+
*/
|
|
3598
|
+
validatorCount: number;
|
|
3599
|
+
};
|
|
3600
|
+
|
|
3601
|
+
type ValidatorsDetails = {
|
|
3602
|
+
validatorCount: number;
|
|
3603
|
+
totalAmountStaked: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3606
|
+
*/
|
|
3607
|
+
estimatedAnnualStakingReward: string;
|
|
3608
|
+
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3609
|
+
/**
|
|
3610
|
+
* Ratio of total active stake amount to the current supply.
|
|
3611
|
+
*/
|
|
3612
|
+
stakingRatio: string;
|
|
3613
|
+
};
|
|
3614
|
+
|
|
3615
|
+
type GetNetworkDetailsResponse = {
|
|
3616
|
+
validatorDetails: ValidatorsDetails;
|
|
3617
|
+
delegatorDetails: DelegatorsDetails;
|
|
3089
3618
|
};
|
|
3090
3619
|
|
|
3091
3620
|
type ListBlockchainsResponse = {
|
|
@@ -3183,6 +3712,10 @@ type L1ValidatorDetailsFull = {
|
|
|
3183
3712
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3184
3713
|
*/
|
|
3185
3714
|
validationId: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3717
|
+
*/
|
|
3718
|
+
validationIdHex: string;
|
|
3186
3719
|
nodeId: string;
|
|
3187
3720
|
subnetId: string;
|
|
3188
3721
|
/**
|
|
@@ -3217,10 +3750,10 @@ type ListL1ValidatorsResponse = {
|
|
|
3217
3750
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3218
3751
|
*/
|
|
3219
3752
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3753
|
+
/**
|
|
3754
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3755
|
+
*/
|
|
3756
|
+
blockHeight: string;
|
|
3224
3757
|
};
|
|
3225
3758
|
|
|
3226
3759
|
type L1ValidatorManagerDetails = {
|
|
@@ -3278,7 +3811,7 @@ type Subnet = {
|
|
|
3278
3811
|
* L1 validator manager details.
|
|
3279
3812
|
*/
|
|
3280
3813
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3281
|
-
blockchains: Array<
|
|
3814
|
+
blockchains: Array<Blockchain>;
|
|
3282
3815
|
};
|
|
3283
3816
|
|
|
3284
3817
|
type ListSubnetsResponse = {
|
|
@@ -3294,6 +3827,29 @@ type BlsCredentials = {
|
|
|
3294
3827
|
proofOfPossession: string;
|
|
3295
3828
|
};
|
|
3296
3829
|
|
|
3830
|
+
type Geolocation = {
|
|
3831
|
+
/**
|
|
3832
|
+
* The name of the validator node.
|
|
3833
|
+
*/
|
|
3834
|
+
city: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* The city of the validator node.
|
|
3837
|
+
*/
|
|
3838
|
+
country: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* The country code of the validator node.
|
|
3841
|
+
*/
|
|
3842
|
+
countryCode: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* The latitude of the validator node.
|
|
3845
|
+
*/
|
|
3846
|
+
latitude: number;
|
|
3847
|
+
/**
|
|
3848
|
+
* The longitude of the validator node.
|
|
3849
|
+
*/
|
|
3850
|
+
longitude: number;
|
|
3851
|
+
};
|
|
3852
|
+
|
|
3297
3853
|
type Rewards = {
|
|
3298
3854
|
validationRewardAmount: string;
|
|
3299
3855
|
delegationRewardAmount: string;
|
|
@@ -3362,6 +3918,10 @@ type ActiveValidatorDetails = {
|
|
|
3362
3918
|
potentialRewards: Rewards;
|
|
3363
3919
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3364
3920
|
validatorHealth: ValidatorHealthDetails;
|
|
3921
|
+
/**
|
|
3922
|
+
* The geographical location of the validator node, if available.
|
|
3923
|
+
*/
|
|
3924
|
+
geolocation: Geolocation | null;
|
|
3365
3925
|
};
|
|
3366
3926
|
declare namespace ActiveValidatorDetails {
|
|
3367
3927
|
enum validationStatus {
|
|
@@ -3519,7 +4079,6 @@ type XChainAssetDetails = {
|
|
|
3519
4079
|
declare enum XChainId {
|
|
3520
4080
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3521
4081
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3522
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3523
4082
|
X_CHAIN = "x-chain"
|
|
3524
4083
|
}
|
|
3525
4084
|
|
|
@@ -3590,7 +4149,7 @@ declare class PrimaryNetworkService {
|
|
|
3590
4149
|
*/
|
|
3591
4150
|
pageToken?: string;
|
|
3592
4151
|
/**
|
|
3593
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4152
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3594
4153
|
*/
|
|
3595
4154
|
pageSize?: number;
|
|
3596
4155
|
/**
|
|
@@ -3598,6 +4157,22 @@ declare class PrimaryNetworkService {
|
|
|
3598
4157
|
*/
|
|
3599
4158
|
sortOrder?: SortOrder;
|
|
3600
4159
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4160
|
+
/**
|
|
4161
|
+
* Get blockchain details by ID
|
|
4162
|
+
* Get details of the blockchain registered on the network.
|
|
4163
|
+
* @returns Blockchain Successful response
|
|
4164
|
+
* @throws ApiError
|
|
4165
|
+
*/
|
|
4166
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4167
|
+
/**
|
|
4168
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4169
|
+
*/
|
|
4170
|
+
blockchainId: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Either mainnet or testnet/fuji.
|
|
4173
|
+
*/
|
|
4174
|
+
network: Network;
|
|
4175
|
+
}): CancelablePromise<Blockchain>;
|
|
3601
4176
|
/**
|
|
3602
4177
|
* List subnets
|
|
3603
4178
|
* Lists all subnets registered on the network.
|
|
@@ -3614,7 +4189,7 @@ declare class PrimaryNetworkService {
|
|
|
3614
4189
|
*/
|
|
3615
4190
|
pageToken?: string;
|
|
3616
4191
|
/**
|
|
3617
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3618
4193
|
*/
|
|
3619
4194
|
pageSize?: number;
|
|
3620
4195
|
/**
|
|
@@ -3640,7 +4215,7 @@ declare class PrimaryNetworkService {
|
|
|
3640
4215
|
}): CancelablePromise<Subnet>;
|
|
3641
4216
|
/**
|
|
3642
4217
|
* List validators
|
|
3643
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4218
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3644
4219
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3645
4220
|
* @throws ApiError
|
|
3646
4221
|
*/
|
|
@@ -3658,7 +4233,7 @@ declare class PrimaryNetworkService {
|
|
|
3658
4233
|
*/
|
|
3659
4234
|
pageSize?: number;
|
|
3660
4235
|
/**
|
|
3661
|
-
* A comma separated list of node ids to filter by.
|
|
4236
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3662
4237
|
*/
|
|
3663
4238
|
nodeIds?: string;
|
|
3664
4239
|
/**
|
|
@@ -3802,7 +4377,7 @@ declare class PrimaryNetworkService {
|
|
|
3802
4377
|
/**
|
|
3803
4378
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3804
4379
|
*/
|
|
3805
|
-
l1ValidationId?:
|
|
4380
|
+
l1ValidationId?: string;
|
|
3806
4381
|
includeInactiveL1Validators?: boolean;
|
|
3807
4382
|
/**
|
|
3808
4383
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -3819,10 +4394,8 @@ declare enum BlockchainId {
|
|
|
3819
4394
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3820
4395
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3821
4396
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3822
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3823
4397
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3824
4398
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3825
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3826
4399
|
P_CHAIN = "p-chain",
|
|
3827
4400
|
X_CHAIN = "x-chain",
|
|
3828
4401
|
C_CHAIN = "c-chain"
|
|
@@ -4412,6 +4985,10 @@ type Utxo = {
|
|
|
4412
4985
|
* UTXO ID for this output.
|
|
4413
4986
|
*/
|
|
4414
4987
|
utxoId: string;
|
|
4988
|
+
/**
|
|
4989
|
+
* The bytes of the UTXO
|
|
4990
|
+
*/
|
|
4991
|
+
utxoBytes?: string;
|
|
4415
4992
|
/**
|
|
4416
4993
|
* Unix timestamp in seconds at which this output was consumed.
|
|
4417
4994
|
*/
|
|
@@ -4580,11 +5157,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4580
5157
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4581
5158
|
};
|
|
4582
5159
|
|
|
5160
|
+
type BlockchainInfo = {
|
|
5161
|
+
chainName: string;
|
|
5162
|
+
vmId: string;
|
|
5163
|
+
/**
|
|
5164
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
5165
|
+
*/
|
|
5166
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5167
|
+
};
|
|
5168
|
+
|
|
4583
5169
|
type L1ValidatorDetailsTransaction = {
|
|
4584
5170
|
/**
|
|
4585
5171
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4586
5172
|
*/
|
|
4587
5173
|
validationId: string;
|
|
5174
|
+
/**
|
|
5175
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5176
|
+
*/
|
|
5177
|
+
validationIdHex: string;
|
|
4588
5178
|
nodeId: string;
|
|
4589
5179
|
subnetId: string;
|
|
4590
5180
|
/**
|
|
@@ -4656,6 +5246,10 @@ type PChainUtxo = {
|
|
|
4656
5246
|
* UTXO ID for this output.
|
|
4657
5247
|
*/
|
|
4658
5248
|
utxoId: string;
|
|
5249
|
+
/**
|
|
5250
|
+
* The bytes of the UTXO
|
|
5251
|
+
*/
|
|
5252
|
+
utxoBytes?: string;
|
|
4659
5253
|
/**
|
|
4660
5254
|
* @deprecated
|
|
4661
5255
|
*/
|
|
@@ -4804,6 +5398,10 @@ type PChainTransaction = {
|
|
|
4804
5398
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4805
5399
|
*/
|
|
4806
5400
|
blsCredentials?: BlsCredentials;
|
|
5401
|
+
/**
|
|
5402
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5403
|
+
*/
|
|
5404
|
+
blockchainInfo?: BlockchainInfo;
|
|
4807
5405
|
};
|
|
4808
5406
|
|
|
4809
5407
|
type ListPChainTransactionsResponse = {
|
|
@@ -5174,6 +5772,18 @@ type ListUtxosResponse = {
|
|
|
5174
5772
|
chainInfo: PrimaryNetworkChainInfo;
|
|
5175
5773
|
};
|
|
5176
5774
|
|
|
5775
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5776
|
+
/**
|
|
5777
|
+
* Comma-separated list of primary network addresses
|
|
5778
|
+
*/
|
|
5779
|
+
addresses: string;
|
|
5780
|
+
};
|
|
5781
|
+
|
|
5782
|
+
declare enum UtxosSortByOption {
|
|
5783
|
+
TIMESTAMP = "timestamp",
|
|
5784
|
+
AMOUNT = "amount"
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5177
5787
|
declare class PrimaryNetworkUtxOsService {
|
|
5178
5788
|
readonly httpRequest: BaseHttpRequest;
|
|
5179
5789
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -5183,7 +5793,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5183
5793
|
* @returns any Successful response
|
|
5184
5794
|
* @throws ApiError
|
|
5185
5795
|
*/
|
|
5186
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5796
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5187
5797
|
/**
|
|
5188
5798
|
* A primary network blockchain id or alias.
|
|
5189
5799
|
*/
|
|
@@ -5208,10 +5818,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5208
5818
|
* Asset ID for any asset (only applicable X-Chain)
|
|
5209
5819
|
*/
|
|
5210
5820
|
assetId?: string;
|
|
5821
|
+
/**
|
|
5822
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5823
|
+
*/
|
|
5824
|
+
minUtxoAmount?: number;
|
|
5825
|
+
/**
|
|
5826
|
+
* Boolean filter to include spent UTXOs.
|
|
5827
|
+
*/
|
|
5828
|
+
includeSpent?: boolean;
|
|
5829
|
+
/**
|
|
5830
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5831
|
+
*/
|
|
5832
|
+
sortBy?: UtxosSortByOption;
|
|
5833
|
+
/**
|
|
5834
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
5835
|
+
*/
|
|
5836
|
+
sortOrder?: SortOrder;
|
|
5837
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5838
|
+
/**
|
|
5839
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5840
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5841
|
+
* @returns any Successful response
|
|
5842
|
+
* @throws ApiError
|
|
5843
|
+
*/
|
|
5844
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5845
|
+
/**
|
|
5846
|
+
* A primary network blockchain id or alias.
|
|
5847
|
+
*/
|
|
5848
|
+
blockchainId: BlockchainId;
|
|
5849
|
+
/**
|
|
5850
|
+
* Either mainnet or testnet/fuji.
|
|
5851
|
+
*/
|
|
5852
|
+
network: Network;
|
|
5853
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5854
|
+
/**
|
|
5855
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5856
|
+
*/
|
|
5857
|
+
pageToken?: string;
|
|
5858
|
+
/**
|
|
5859
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5860
|
+
*/
|
|
5861
|
+
pageSize?: number;
|
|
5862
|
+
/**
|
|
5863
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5864
|
+
*/
|
|
5865
|
+
assetId?: string;
|
|
5866
|
+
/**
|
|
5867
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5868
|
+
*/
|
|
5869
|
+
minUtxoAmount?: number;
|
|
5211
5870
|
/**
|
|
5212
5871
|
* Boolean filter to include spent UTXOs.
|
|
5213
5872
|
*/
|
|
5214
5873
|
includeSpent?: boolean;
|
|
5874
|
+
/**
|
|
5875
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5876
|
+
*/
|
|
5877
|
+
sortBy?: UtxosSortByOption;
|
|
5215
5878
|
/**
|
|
5216
5879
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
5217
5880
|
*/
|
|
@@ -5325,10 +5988,30 @@ type SignatureAggregationResponse = {
|
|
|
5325
5988
|
};
|
|
5326
5989
|
|
|
5327
5990
|
type SignatureAggregatorRequest = {
|
|
5328
|
-
|
|
5991
|
+
/**
|
|
5992
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
5993
|
+
*/
|
|
5994
|
+
message?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
5997
|
+
*/
|
|
5329
5998
|
justification?: string;
|
|
5999
|
+
/**
|
|
6000
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6001
|
+
*/
|
|
5330
6002
|
signingSubnetId?: string;
|
|
6003
|
+
/**
|
|
6004
|
+
* Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
|
|
6005
|
+
*/
|
|
5331
6006
|
quorumPercentage?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
* Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
|
|
6009
|
+
*/
|
|
6010
|
+
quorumPercentageBuffer?: number;
|
|
6011
|
+
/**
|
|
6012
|
+
* Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
|
|
6013
|
+
*/
|
|
6014
|
+
pChainHeight?: number;
|
|
5332
6015
|
};
|
|
5333
6016
|
|
|
5334
6017
|
declare class SignatureAggregatorService {
|
|
@@ -5347,6 +6030,22 @@ declare class SignatureAggregatorService {
|
|
|
5347
6030
|
network: Network;
|
|
5348
6031
|
requestBody: SignatureAggregatorRequest;
|
|
5349
6032
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6033
|
+
/**
|
|
6034
|
+
* Get Aggregated Signatures
|
|
6035
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6036
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6037
|
+
* @throws ApiError
|
|
6038
|
+
*/
|
|
6039
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6040
|
+
/**
|
|
6041
|
+
* Either mainnet or testnet/fuji.
|
|
6042
|
+
*/
|
|
6043
|
+
network: Network;
|
|
6044
|
+
/**
|
|
6045
|
+
* A primary network (P or X chain) transaction hash.
|
|
6046
|
+
*/
|
|
6047
|
+
txHash: string;
|
|
6048
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5350
6049
|
}
|
|
5351
6050
|
|
|
5352
6051
|
type TeleporterDestinationTransaction = {
|
|
@@ -5480,7 +6179,7 @@ type ListTeleporterMessagesResponse = {
|
|
|
5480
6179
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5481
6180
|
*/
|
|
5482
6181
|
nextPageToken?: string;
|
|
5483
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6182
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5484
6183
|
};
|
|
5485
6184
|
|
|
5486
6185
|
declare class TeleporterService {
|
|
@@ -5579,28 +6278,58 @@ type AddressesChangeRequest = {
|
|
|
5579
6278
|
|
|
5580
6279
|
type AddressActivityMetadata = {
|
|
5581
6280
|
/**
|
|
5582
|
-
*
|
|
6281
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6282
|
+
*/
|
|
6283
|
+
eventSignatures?: Array<string>;
|
|
6284
|
+
/**
|
|
6285
|
+
* Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
5583
6286
|
*/
|
|
5584
6287
|
addresses: Array<string>;
|
|
6288
|
+
};
|
|
6289
|
+
|
|
6290
|
+
type EVMAddressActivityRequest = {
|
|
6291
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6292
|
+
url: string;
|
|
6293
|
+
name?: string;
|
|
6294
|
+
description?: string;
|
|
6295
|
+
chainId: string;
|
|
6296
|
+
metadata: AddressActivityMetadata;
|
|
5585
6297
|
/**
|
|
5586
|
-
*
|
|
6298
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5587
6299
|
*/
|
|
5588
|
-
|
|
6300
|
+
includeInternalTxs?: boolean;
|
|
6301
|
+
/**
|
|
6302
|
+
* Whether to include logs in the webhook payload.
|
|
6303
|
+
*/
|
|
6304
|
+
includeLogs?: boolean;
|
|
5589
6305
|
};
|
|
6306
|
+
declare namespace EVMAddressActivityRequest {
|
|
6307
|
+
enum eventType {
|
|
6308
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6309
|
+
}
|
|
6310
|
+
}
|
|
5590
6311
|
|
|
5591
|
-
declare enum
|
|
6312
|
+
declare enum AddressActivityEventType {
|
|
5592
6313
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5593
6314
|
}
|
|
5594
6315
|
|
|
5595
|
-
|
|
6316
|
+
declare enum WebhookStatusType {
|
|
6317
|
+
ACTIVE = "active",
|
|
6318
|
+
INACTIVE = "inactive"
|
|
6319
|
+
}
|
|
6320
|
+
|
|
6321
|
+
type EVMAddressActivityResponse = {
|
|
6322
|
+
id: string;
|
|
5596
6323
|
url: string;
|
|
5597
6324
|
chainId: string;
|
|
5598
|
-
|
|
6325
|
+
status: WebhookStatusType;
|
|
6326
|
+
createdAt: number;
|
|
6327
|
+
name: string;
|
|
6328
|
+
description: string;
|
|
6329
|
+
eventType: AddressActivityEventType;
|
|
5599
6330
|
metadata: AddressActivityMetadata;
|
|
5600
|
-
name?: string;
|
|
5601
|
-
description?: string;
|
|
5602
6331
|
/**
|
|
5603
|
-
* Whether to include traces in the webhook payload.
|
|
6332
|
+
* Whether to include traces in the webhook payload.
|
|
5604
6333
|
*/
|
|
5605
6334
|
includeInternalTxs?: boolean;
|
|
5606
6335
|
/**
|
|
@@ -5618,29 +6347,143 @@ type ListWebhookAddressesResponse = {
|
|
|
5618
6347
|
totalAddresses: number;
|
|
5619
6348
|
};
|
|
5620
6349
|
|
|
5621
|
-
declare enum
|
|
5622
|
-
|
|
5623
|
-
|
|
6350
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6351
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6352
|
+
}
|
|
6353
|
+
|
|
6354
|
+
/**
|
|
6355
|
+
* The type of key to monitor for the address activity event type.
|
|
6356
|
+
*/
|
|
6357
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6358
|
+
ADDRESSES = "addresses"
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* Array of address activity sub-event types
|
|
6363
|
+
*/
|
|
6364
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6365
|
+
BALANCE_CHANGE = "balance_change",
|
|
6366
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6367
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6370
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6371
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6372
|
+
};
|
|
6373
|
+
|
|
6374
|
+
/**
|
|
6375
|
+
* Type of balance to monitor
|
|
6376
|
+
*/
|
|
6377
|
+
declare enum CommonBalanceType {
|
|
6378
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6379
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6380
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6381
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6382
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6383
|
+
PENDING_STAKED = "pendingStaked",
|
|
6384
|
+
UNLOCKED = "unlocked",
|
|
6385
|
+
LOCKED = "locked",
|
|
6386
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6387
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5624
6388
|
}
|
|
5625
6389
|
|
|
5626
|
-
type
|
|
6390
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6391
|
+
balanceType: CommonBalanceType;
|
|
6392
|
+
/**
|
|
6393
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6394
|
+
*/
|
|
6395
|
+
balanceThreshold: string;
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6399
|
+
/**
|
|
6400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6401
|
+
*/
|
|
6402
|
+
eventSignatures?: Array<string>;
|
|
6403
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6404
|
+
/**
|
|
6405
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
6406
|
+
*/
|
|
6407
|
+
keys: Array<string>;
|
|
6408
|
+
/**
|
|
6409
|
+
* Sub-events to monitor
|
|
6410
|
+
*/
|
|
6411
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6412
|
+
/**
|
|
6413
|
+
* Balance threshold filter
|
|
6414
|
+
*/
|
|
6415
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6416
|
+
};
|
|
6417
|
+
|
|
6418
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
5627
6419
|
id: string;
|
|
5628
|
-
|
|
5629
|
-
|
|
6420
|
+
url: string;
|
|
6421
|
+
chainId: string;
|
|
6422
|
+
status: WebhookStatusType;
|
|
6423
|
+
createdAt: number;
|
|
6424
|
+
name: string;
|
|
6425
|
+
description: string;
|
|
6426
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6427
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
declare enum ValidatorActivityEventType {
|
|
6431
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
/**
|
|
6435
|
+
* The type of key to monitor for the validator activity event type.
|
|
6436
|
+
*/
|
|
6437
|
+
declare enum ValidatorActivityKeyType {
|
|
6438
|
+
NODE_ID = "nodeId",
|
|
6439
|
+
SUBNET_ID = "subnetId"
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
type ValidatorActivitySubEvents = {
|
|
5630
6443
|
/**
|
|
5631
|
-
*
|
|
6444
|
+
* Array of validator activity sub-event types
|
|
5632
6445
|
*/
|
|
5633
|
-
|
|
6446
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
type ValidatorActivityMetadata = {
|
|
5634
6450
|
/**
|
|
5635
|
-
*
|
|
6451
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5636
6452
|
*/
|
|
5637
|
-
|
|
6453
|
+
eventSignatures?: Array<string>;
|
|
6454
|
+
keyType: ValidatorActivityKeyType;
|
|
6455
|
+
/**
|
|
6456
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6457
|
+
*/
|
|
6458
|
+
keys: Array<string>;
|
|
6459
|
+
/**
|
|
6460
|
+
* Sub-events to monitor
|
|
6461
|
+
*/
|
|
6462
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6463
|
+
/**
|
|
6464
|
+
* Array of node IDs to filter the events
|
|
6465
|
+
*/
|
|
6466
|
+
nodeIds?: Array<string>;
|
|
6467
|
+
/**
|
|
6468
|
+
* Array of subnet IDs to filter the events
|
|
6469
|
+
*/
|
|
6470
|
+
subnetIds?: Array<string>;
|
|
6471
|
+
/**
|
|
6472
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6473
|
+
*/
|
|
6474
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6475
|
+
};
|
|
6476
|
+
|
|
6477
|
+
type ValidatorActivityResponse = {
|
|
6478
|
+
id: string;
|
|
5638
6479
|
url: string;
|
|
5639
6480
|
chainId: string;
|
|
5640
6481
|
status: WebhookStatusType;
|
|
5641
6482
|
createdAt: number;
|
|
5642
6483
|
name: string;
|
|
5643
6484
|
description: string;
|
|
6485
|
+
eventType: ValidatorActivityEventType;
|
|
6486
|
+
metadata: ValidatorActivityMetadata;
|
|
5644
6487
|
};
|
|
5645
6488
|
|
|
5646
6489
|
type ListWebhooksResponse = {
|
|
@@ -5648,9 +6491,32 @@ type ListWebhooksResponse = {
|
|
|
5648
6491
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5649
6492
|
*/
|
|
5650
6493
|
nextPageToken?: string;
|
|
5651
|
-
webhooks: Array<
|
|
6494
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5652
6495
|
};
|
|
5653
6496
|
|
|
6497
|
+
declare enum PrimaryNetworkType {
|
|
6498
|
+
MAINNET = "mainnet",
|
|
6499
|
+
FUJI = "fuji"
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6503
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6504
|
+
url: string;
|
|
6505
|
+
name?: string;
|
|
6506
|
+
description?: string;
|
|
6507
|
+
network: PrimaryNetworkType;
|
|
6508
|
+
chainId: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Metadata for platform address activity event
|
|
6511
|
+
*/
|
|
6512
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6513
|
+
};
|
|
6514
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6515
|
+
enum eventType {
|
|
6516
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6517
|
+
}
|
|
6518
|
+
}
|
|
6519
|
+
|
|
5654
6520
|
type SharedSecretsResponse = {
|
|
5655
6521
|
secret: string;
|
|
5656
6522
|
};
|
|
@@ -5667,6 +6533,23 @@ type UpdateWebhookRequest = {
|
|
|
5667
6533
|
includeLogs?: boolean;
|
|
5668
6534
|
};
|
|
5669
6535
|
|
|
6536
|
+
type ValidatorActivityRequest = {
|
|
6537
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6538
|
+
url: string;
|
|
6539
|
+
name?: string;
|
|
6540
|
+
description?: string;
|
|
6541
|
+
network: PrimaryNetworkType;
|
|
6542
|
+
/**
|
|
6543
|
+
* Metadata for platform validator activity event
|
|
6544
|
+
*/
|
|
6545
|
+
metadata: ValidatorActivityMetadata;
|
|
6546
|
+
};
|
|
6547
|
+
declare namespace ValidatorActivityRequest {
|
|
6548
|
+
enum eventType {
|
|
6549
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6552
|
+
|
|
5670
6553
|
declare enum WebhookStatus {
|
|
5671
6554
|
ACTIVE = "active",
|
|
5672
6555
|
INACTIVE = "inactive"
|
|
@@ -5678,12 +6561,12 @@ declare class WebhooksService {
|
|
|
5678
6561
|
/**
|
|
5679
6562
|
* Create a webhook
|
|
5680
6563
|
* Create a new webhook.
|
|
5681
|
-
* @returns
|
|
6564
|
+
* @returns any Successful response
|
|
5682
6565
|
* @throws ApiError
|
|
5683
6566
|
*/
|
|
5684
6567
|
createWebhook({ requestBody, }: {
|
|
5685
|
-
requestBody:
|
|
5686
|
-
}): CancelablePromise<
|
|
6568
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6569
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5687
6570
|
/**
|
|
5688
6571
|
* List webhooks
|
|
5689
6572
|
* Lists webhooks for the user.
|
|
@@ -5707,7 +6590,7 @@ declare class WebhooksService {
|
|
|
5707
6590
|
/**
|
|
5708
6591
|
* Get a webhook by ID
|
|
5709
6592
|
* Retrieves a webhook by ID.
|
|
5710
|
-
* @returns
|
|
6593
|
+
* @returns any Successful response
|
|
5711
6594
|
* @throws ApiError
|
|
5712
6595
|
*/
|
|
5713
6596
|
getWebhook({ id, }: {
|
|
@@ -5715,11 +6598,11 @@ declare class WebhooksService {
|
|
|
5715
6598
|
* The webhook identifier.
|
|
5716
6599
|
*/
|
|
5717
6600
|
id: string;
|
|
5718
|
-
}): CancelablePromise<
|
|
6601
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5719
6602
|
/**
|
|
5720
6603
|
* Deactivate a webhook
|
|
5721
6604
|
* Deactivates a webhook by ID.
|
|
5722
|
-
* @returns
|
|
6605
|
+
* @returns any Successful response
|
|
5723
6606
|
* @throws ApiError
|
|
5724
6607
|
*/
|
|
5725
6608
|
deactivateWebhook({ id, }: {
|
|
@@ -5727,11 +6610,11 @@ declare class WebhooksService {
|
|
|
5727
6610
|
* The webhook identifier.
|
|
5728
6611
|
*/
|
|
5729
6612
|
id: string;
|
|
5730
|
-
}): CancelablePromise<
|
|
6613
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5731
6614
|
/**
|
|
5732
6615
|
* Update a webhook
|
|
5733
6616
|
* Updates an existing webhook.
|
|
5734
|
-
* @returns
|
|
6617
|
+
* @returns any Successful response
|
|
5735
6618
|
* @throws ApiError
|
|
5736
6619
|
*/
|
|
5737
6620
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5740,14 +6623,14 @@ declare class WebhooksService {
|
|
|
5740
6623
|
*/
|
|
5741
6624
|
id: string;
|
|
5742
6625
|
requestBody: UpdateWebhookRequest;
|
|
5743
|
-
}): CancelablePromise<
|
|
6626
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5744
6627
|
/**
|
|
5745
|
-
* Generate a shared secret
|
|
5746
|
-
* Generates a new shared secret.
|
|
6628
|
+
* Generate or rotate a shared secret
|
|
6629
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5747
6630
|
* @returns SharedSecretsResponse Successful response
|
|
5748
6631
|
* @throws ApiError
|
|
5749
6632
|
*/
|
|
5750
|
-
|
|
6633
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5751
6634
|
/**
|
|
5752
6635
|
* Get a shared secret
|
|
5753
6636
|
* Get a previously generated shared secret.
|
|
@@ -5756,9 +6639,9 @@ declare class WebhooksService {
|
|
|
5756
6639
|
*/
|
|
5757
6640
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5758
6641
|
/**
|
|
5759
|
-
* Add addresses to webhook
|
|
5760
|
-
* Add addresses to webhook.
|
|
5761
|
-
* @returns
|
|
6642
|
+
* Add addresses to EVM activity webhook
|
|
6643
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6644
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5762
6645
|
* @throws ApiError
|
|
5763
6646
|
*/
|
|
5764
6647
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5767,11 +6650,11 @@ declare class WebhooksService {
|
|
|
5767
6650
|
*/
|
|
5768
6651
|
id: string;
|
|
5769
6652
|
requestBody: AddressesChangeRequest;
|
|
5770
|
-
}): CancelablePromise<
|
|
6653
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5771
6654
|
/**
|
|
5772
|
-
* Remove addresses from webhook
|
|
5773
|
-
* Remove addresses from webhook.
|
|
5774
|
-
* @returns
|
|
6655
|
+
* Remove addresses from EVM activity webhook
|
|
6656
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6657
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5775
6658
|
* @throws ApiError
|
|
5776
6659
|
*/
|
|
5777
6660
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5780,10 +6663,10 @@ declare class WebhooksService {
|
|
|
5780
6663
|
*/
|
|
5781
6664
|
id: string;
|
|
5782
6665
|
requestBody: AddressesChangeRequest;
|
|
5783
|
-
}): CancelablePromise<
|
|
6666
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5784
6667
|
/**
|
|
5785
|
-
* List adresses by
|
|
5786
|
-
* List adresses by webhook.
|
|
6668
|
+
* List adresses by EVM activity webhooks
|
|
6669
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5787
6670
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5788
6671
|
* @throws ApiError
|
|
5789
6672
|
*/
|
|
@@ -5805,6 +6688,7 @@ declare class WebhooksService {
|
|
|
5805
6688
|
|
|
5806
6689
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5807
6690
|
declare class Glacier {
|
|
6691
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5808
6692
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5809
6693
|
readonly default: DefaultService;
|
|
5810
6694
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5815,6 +6699,7 @@ declare class Glacier {
|
|
|
5815
6699
|
readonly healthCheck: HealthCheckService;
|
|
5816
6700
|
readonly interchainMessaging: InterchainMessagingService;
|
|
5817
6701
|
readonly nfTs: NfTsService;
|
|
6702
|
+
readonly notifications: NotificationsService;
|
|
5818
6703
|
readonly operations: OperationsService;
|
|
5819
6704
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5820
6705
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5847,6 +6732,17 @@ declare class ApiError extends Error {
|
|
|
5847
6732
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5848
6733
|
}
|
|
5849
6734
|
|
|
6735
|
+
type AccessListData = {
|
|
6736
|
+
/**
|
|
6737
|
+
* Access Address
|
|
6738
|
+
*/
|
|
6739
|
+
accessAddresses: string;
|
|
6740
|
+
/**
|
|
6741
|
+
* Storage keys
|
|
6742
|
+
*/
|
|
6743
|
+
storageKeys: Array<string>;
|
|
6744
|
+
};
|
|
6745
|
+
|
|
5850
6746
|
type BadGateway = {
|
|
5851
6747
|
/**
|
|
5852
6748
|
* The error message describing the reason for the exception
|
|
@@ -5881,6 +6777,76 @@ type DataListChainsResponse = {
|
|
|
5881
6777
|
chains: Array<ChainInfo>;
|
|
5882
6778
|
};
|
|
5883
6779
|
|
|
6780
|
+
type ERCToken = {
|
|
6781
|
+
/**
|
|
6782
|
+
* Token contract address
|
|
6783
|
+
*/
|
|
6784
|
+
address: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* Token name
|
|
6787
|
+
*/
|
|
6788
|
+
name: string;
|
|
6789
|
+
/**
|
|
6790
|
+
* Token symbol
|
|
6791
|
+
*/
|
|
6792
|
+
symbol: string;
|
|
6793
|
+
/**
|
|
6794
|
+
* Token decimals
|
|
6795
|
+
*/
|
|
6796
|
+
decimals: number;
|
|
6797
|
+
/**
|
|
6798
|
+
* Value including decimals
|
|
6799
|
+
*/
|
|
6800
|
+
valueWithDecimals: string;
|
|
6801
|
+
};
|
|
6802
|
+
|
|
6803
|
+
type ERCTransfer = {
|
|
6804
|
+
/**
|
|
6805
|
+
* Transaction hash
|
|
6806
|
+
*/
|
|
6807
|
+
transactionHash: string;
|
|
6808
|
+
/**
|
|
6809
|
+
* Transfer type
|
|
6810
|
+
*/
|
|
6811
|
+
type: string;
|
|
6812
|
+
/**
|
|
6813
|
+
* Sender address
|
|
6814
|
+
*/
|
|
6815
|
+
from: string;
|
|
6816
|
+
/**
|
|
6817
|
+
* Recipient address
|
|
6818
|
+
*/
|
|
6819
|
+
to: string;
|
|
6820
|
+
/**
|
|
6821
|
+
* Amount transferred
|
|
6822
|
+
*/
|
|
6823
|
+
value: string;
|
|
6824
|
+
/**
|
|
6825
|
+
* Token Id
|
|
6826
|
+
*/
|
|
6827
|
+
tokenId?: string;
|
|
6828
|
+
/**
|
|
6829
|
+
* Block timestamp
|
|
6830
|
+
*/
|
|
6831
|
+
blockTimestamp: number;
|
|
6832
|
+
/**
|
|
6833
|
+
* Log index
|
|
6834
|
+
*/
|
|
6835
|
+
logIndex: number;
|
|
6836
|
+
/**
|
|
6837
|
+
* erc20 Token details
|
|
6838
|
+
*/
|
|
6839
|
+
erc20Token?: ERCToken;
|
|
6840
|
+
/**
|
|
6841
|
+
* erc721 Token details
|
|
6842
|
+
*/
|
|
6843
|
+
erc721Token?: ERCToken;
|
|
6844
|
+
/**
|
|
6845
|
+
* erc1155 Token details
|
|
6846
|
+
*/
|
|
6847
|
+
erc1155Token?: ERCToken;
|
|
6848
|
+
};
|
|
6849
|
+
|
|
5884
6850
|
type Forbidden = {
|
|
5885
6851
|
/**
|
|
5886
6852
|
* The error message describing the reason for the exception
|
|
@@ -5911,6 +6877,64 @@ type InternalServerError = {
|
|
|
5911
6877
|
error: string;
|
|
5912
6878
|
};
|
|
5913
6879
|
|
|
6880
|
+
type Log = {
|
|
6881
|
+
/**
|
|
6882
|
+
* Contract address
|
|
6883
|
+
*/
|
|
6884
|
+
address: string;
|
|
6885
|
+
/**
|
|
6886
|
+
* First topic
|
|
6887
|
+
*/
|
|
6888
|
+
topic0: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* Second topic (optional)
|
|
6891
|
+
*/
|
|
6892
|
+
topic1?: string;
|
|
6893
|
+
/**
|
|
6894
|
+
* Third topic (optional)
|
|
6895
|
+
*/
|
|
6896
|
+
topic2?: string;
|
|
6897
|
+
/**
|
|
6898
|
+
* Fourth topic (optional)
|
|
6899
|
+
*/
|
|
6900
|
+
topic3?: string;
|
|
6901
|
+
/**
|
|
6902
|
+
* Event data
|
|
6903
|
+
*/
|
|
6904
|
+
data: string;
|
|
6905
|
+
/**
|
|
6906
|
+
* Transaction index
|
|
6907
|
+
*/
|
|
6908
|
+
transactionIndex: number;
|
|
6909
|
+
/**
|
|
6910
|
+
* Log index
|
|
6911
|
+
*/
|
|
6912
|
+
logIndex: number;
|
|
6913
|
+
/**
|
|
6914
|
+
* Indicates if the log was removed
|
|
6915
|
+
*/
|
|
6916
|
+
removed: boolean;
|
|
6917
|
+
};
|
|
6918
|
+
|
|
6919
|
+
type NetworkTokenInfo = {
|
|
6920
|
+
/**
|
|
6921
|
+
* Token name
|
|
6922
|
+
*/
|
|
6923
|
+
tokenName?: string;
|
|
6924
|
+
/**
|
|
6925
|
+
* Token symbol
|
|
6926
|
+
*/
|
|
6927
|
+
tokenSymbol?: string;
|
|
6928
|
+
/**
|
|
6929
|
+
* Token decimals
|
|
6930
|
+
*/
|
|
6931
|
+
tokenDecimals?: number;
|
|
6932
|
+
/**
|
|
6933
|
+
* Value including decimals
|
|
6934
|
+
*/
|
|
6935
|
+
valueWithDecimals?: string;
|
|
6936
|
+
};
|
|
6937
|
+
|
|
5914
6938
|
type NextPageToken = {
|
|
5915
6939
|
/**
|
|
5916
6940
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5963,6 +6987,163 @@ type TooManyRequests = {
|
|
|
5963
6987
|
error: string;
|
|
5964
6988
|
};
|
|
5965
6989
|
|
|
6990
|
+
type WebhookInternalTransaction = {
|
|
6991
|
+
/**
|
|
6992
|
+
* Sender address
|
|
6993
|
+
*/
|
|
6994
|
+
from: string;
|
|
6995
|
+
/**
|
|
6996
|
+
* Recipient address
|
|
6997
|
+
*/
|
|
6998
|
+
to: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* Internal transaction type
|
|
7001
|
+
*/
|
|
7002
|
+
internalTxType: string;
|
|
7003
|
+
/**
|
|
7004
|
+
* Value transferred
|
|
7005
|
+
*/
|
|
7006
|
+
value: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* Gas used
|
|
7009
|
+
*/
|
|
7010
|
+
gasUsed: string;
|
|
7011
|
+
/**
|
|
7012
|
+
* Gas limit
|
|
7013
|
+
*/
|
|
7014
|
+
gasLimit: string;
|
|
7015
|
+
/**
|
|
7016
|
+
* Transaction hash
|
|
7017
|
+
*/
|
|
7018
|
+
transactionHash: string;
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
type Transaction = {
|
|
7022
|
+
/**
|
|
7023
|
+
* Block hash of the transaction
|
|
7024
|
+
*/
|
|
7025
|
+
blockHash: string;
|
|
7026
|
+
/**
|
|
7027
|
+
* Block number of the transaction
|
|
7028
|
+
*/
|
|
7029
|
+
blockNumber: string;
|
|
7030
|
+
/**
|
|
7031
|
+
* Sender address
|
|
7032
|
+
*/
|
|
7033
|
+
from: string;
|
|
7034
|
+
/**
|
|
7035
|
+
* Gas limit for the transaction
|
|
7036
|
+
*/
|
|
7037
|
+
gas: string;
|
|
7038
|
+
/**
|
|
7039
|
+
* Gas price used
|
|
7040
|
+
*/
|
|
7041
|
+
gasPrice: string;
|
|
7042
|
+
/**
|
|
7043
|
+
* Maximum fee per gas
|
|
7044
|
+
*/
|
|
7045
|
+
maxFeePerGas: string;
|
|
7046
|
+
/**
|
|
7047
|
+
* Maximum priority fee per gas
|
|
7048
|
+
*/
|
|
7049
|
+
maxPriorityFeePerGas: string;
|
|
7050
|
+
/**
|
|
7051
|
+
* Transaction hash
|
|
7052
|
+
*/
|
|
7053
|
+
txHash: string;
|
|
7054
|
+
/**
|
|
7055
|
+
* Transaction status
|
|
7056
|
+
*/
|
|
7057
|
+
txStatus: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* Input data
|
|
7060
|
+
*/
|
|
7061
|
+
input: string;
|
|
7062
|
+
/**
|
|
7063
|
+
* Nonce value
|
|
7064
|
+
*/
|
|
7065
|
+
nonce: string;
|
|
7066
|
+
/**
|
|
7067
|
+
* Recipient address
|
|
7068
|
+
*/
|
|
7069
|
+
to: string;
|
|
7070
|
+
/**
|
|
7071
|
+
* Transaction index
|
|
7072
|
+
*/
|
|
7073
|
+
transactionIndex: number;
|
|
7074
|
+
/**
|
|
7075
|
+
* Value transferred in the transaction
|
|
7076
|
+
*/
|
|
7077
|
+
value: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Transaction type
|
|
7080
|
+
*/
|
|
7081
|
+
type: number;
|
|
7082
|
+
/**
|
|
7083
|
+
* Chain ID of the network
|
|
7084
|
+
*/
|
|
7085
|
+
chainId: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Cumulative gas used
|
|
7088
|
+
*/
|
|
7089
|
+
receiptCumulativeGasUsed: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Gas used
|
|
7092
|
+
*/
|
|
7093
|
+
receiptGasUsed: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Effective gas price
|
|
7096
|
+
*/
|
|
7097
|
+
receiptEffectiveGasPrice: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Receipt root
|
|
7100
|
+
*/
|
|
7101
|
+
receiptRoot: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Block timestamp
|
|
7104
|
+
*/
|
|
7105
|
+
blockTimestamp: number;
|
|
7106
|
+
/**
|
|
7107
|
+
* Contract address (optional)
|
|
7108
|
+
*/
|
|
7109
|
+
contractAddress?: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* ERC20 transfers
|
|
7112
|
+
*/
|
|
7113
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7114
|
+
/**
|
|
7115
|
+
* ERC721 transfers
|
|
7116
|
+
*/
|
|
7117
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7118
|
+
/**
|
|
7119
|
+
* ERC1155 transfers
|
|
7120
|
+
*/
|
|
7121
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7122
|
+
/**
|
|
7123
|
+
* Internal transactions (optional)
|
|
7124
|
+
*/
|
|
7125
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7126
|
+
/**
|
|
7127
|
+
* Access list (optional)
|
|
7128
|
+
*/
|
|
7129
|
+
accessList?: Array<AccessListData>;
|
|
7130
|
+
/**
|
|
7131
|
+
* Network token info (optional)
|
|
7132
|
+
*/
|
|
7133
|
+
networkToken?: NetworkTokenInfo;
|
|
7134
|
+
};
|
|
7135
|
+
|
|
7136
|
+
type TransactionEvent = {
|
|
7137
|
+
/**
|
|
7138
|
+
* Transaction details
|
|
7139
|
+
*/
|
|
7140
|
+
transaction: Transaction;
|
|
7141
|
+
/**
|
|
7142
|
+
* Array of log events
|
|
7143
|
+
*/
|
|
7144
|
+
logs?: Array<Log>;
|
|
7145
|
+
};
|
|
7146
|
+
|
|
5966
7147
|
type Unauthorized = {
|
|
5967
7148
|
/**
|
|
5968
7149
|
* The error message describing the reason for the exception
|
|
@@ -5978,4 +7159,43 @@ type Unauthorized = {
|
|
|
5978
7159
|
error: string;
|
|
5979
7160
|
};
|
|
5980
7161
|
|
|
5981
|
-
|
|
7162
|
+
type WebhookAddressActivityResponse = {
|
|
7163
|
+
/**
|
|
7164
|
+
* Webhook ID
|
|
7165
|
+
*/
|
|
7166
|
+
webhookId: string;
|
|
7167
|
+
/**
|
|
7168
|
+
* Event type
|
|
7169
|
+
*/
|
|
7170
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7171
|
+
/**
|
|
7172
|
+
* Message ID
|
|
7173
|
+
*/
|
|
7174
|
+
messageId: string;
|
|
7175
|
+
/**
|
|
7176
|
+
* Event details
|
|
7177
|
+
*/
|
|
7178
|
+
event: TransactionEvent;
|
|
7179
|
+
};
|
|
7180
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7181
|
+
/**
|
|
7182
|
+
* Event type
|
|
7183
|
+
*/
|
|
7184
|
+
enum eventType {
|
|
7185
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7190
|
+
constructor(config: OpenAPIConfig);
|
|
7191
|
+
/**
|
|
7192
|
+
* Request method
|
|
7193
|
+
* @param options The request options from the service
|
|
7194
|
+
* @returns CancelablePromise<T>
|
|
7195
|
+
* @throws ApiError
|
|
7196
|
+
*/
|
|
7197
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7198
|
+
}
|
|
7199
|
+
|
|
7200
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7201
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|