@avalabs/glacier-sdk 3.1.0-canary.0cb77a4.0 → 3.1.0-canary.101f0bc.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 +1288 -174
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +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/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 +9 -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 +7 -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/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +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/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 +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +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 +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +5 -1
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +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/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/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 +1 -1
- 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 +16 -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 +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +48 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +54 -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,18 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
declare class AvaxSupplyService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* Get AVAX supply information
|
|
62
|
+
* 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.
|
|
63
|
+
* @returns void
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
getAvaxSupply(): CancelablePromise<void>;
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
type LogsFormatMetadata = {
|
|
58
70
|
/**
|
|
59
71
|
* The IP address of the client that made the request.
|
|
@@ -151,11 +163,11 @@ type LogsResponseDTO = {
|
|
|
151
163
|
declare enum Network {
|
|
152
164
|
MAINNET = "mainnet",
|
|
153
165
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
166
|
+
TESTNET = "testnet"
|
|
156
167
|
}
|
|
157
168
|
|
|
158
169
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
170
|
+
RPC_METHOD = "rpcMethod",
|
|
159
171
|
REQUEST_PATH = "requestPath",
|
|
160
172
|
RESPONSE_CODE = "responseCode",
|
|
161
173
|
COUNTRY = "country",
|
|
@@ -163,13 +175,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
175
|
USER_AGENT = "userAgent"
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
178
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
179
|
HOURLY = "hourly",
|
|
174
180
|
DAILY = "daily",
|
|
175
181
|
WEEKLY = "weekly",
|
|
@@ -222,6 +228,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
228
|
RPC_METHOD = "rpcMethod",
|
|
223
229
|
RESPONSE_CODE = "responseCode",
|
|
224
230
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
231
|
+
REQUEST_PATH = "requestPath",
|
|
232
|
+
COUNTRY = "country",
|
|
233
|
+
CONTINENT = "continent",
|
|
234
|
+
USER_AGENT = "userAgent",
|
|
225
235
|
NONE = "None"
|
|
226
236
|
}
|
|
227
237
|
}
|
|
@@ -237,6 +247,43 @@ type RpcMetrics = {
|
|
|
237
247
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
248
|
};
|
|
239
249
|
|
|
250
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
251
|
+
/**
|
|
252
|
+
* Duration in which the metrics value is aggregated
|
|
253
|
+
*/
|
|
254
|
+
aggregateDuration: string;
|
|
255
|
+
/**
|
|
256
|
+
* Metrics values
|
|
257
|
+
*/
|
|
258
|
+
metrics: Array<RpcMetrics>;
|
|
259
|
+
/**
|
|
260
|
+
* Network type for which the metrics are aggregated
|
|
261
|
+
*/
|
|
262
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
263
|
+
};
|
|
264
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
265
|
+
/**
|
|
266
|
+
* Network type for which the metrics are aggregated
|
|
267
|
+
*/
|
|
268
|
+
enum network {
|
|
269
|
+
MAINNET = "mainnet",
|
|
270
|
+
TESTNET = "testnet"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
275
|
+
RPC_METHOD = "rpcMethod",
|
|
276
|
+
RESPONSE_CODE = "responseCode",
|
|
277
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
281
|
+
HOURLY = "hourly",
|
|
282
|
+
DAILY = "daily",
|
|
283
|
+
WEEKLY = "weekly",
|
|
284
|
+
MONTHLY = "monthly"
|
|
285
|
+
}
|
|
286
|
+
|
|
240
287
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
288
|
/**
|
|
242
289
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +498,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
498
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
499
|
* @throws ApiError
|
|
453
500
|
*/
|
|
501
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
502
|
+
/**
|
|
503
|
+
* Time interval granularity for data aggregation for subnet
|
|
504
|
+
* rpc metrics
|
|
505
|
+
*/
|
|
506
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
507
|
+
/**
|
|
508
|
+
* 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.
|
|
509
|
+
*/
|
|
510
|
+
startTimestamp?: number;
|
|
511
|
+
/**
|
|
512
|
+
* 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.
|
|
513
|
+
*/
|
|
514
|
+
endTimestamp?: number;
|
|
515
|
+
/**
|
|
516
|
+
* Query param for the criterion used for grouping metrics
|
|
517
|
+
*/
|
|
518
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by chain ID.
|
|
521
|
+
*/
|
|
522
|
+
chainId?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Filter data by response status code.
|
|
525
|
+
*/
|
|
526
|
+
responseCode?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Filter data by RPC method.
|
|
529
|
+
*/
|
|
530
|
+
rpcMethod?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Filter data by Rl Bypass API Token.
|
|
533
|
+
*/
|
|
534
|
+
rlBypassApiToken?: string;
|
|
535
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
536
|
+
/**
|
|
537
|
+
* @deprecated
|
|
538
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
539
|
+
*
|
|
540
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
541
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
542
|
+
* @throws ApiError
|
|
543
|
+
*/
|
|
454
544
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
545
|
/**
|
|
456
546
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +579,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
579
|
/**
|
|
490
580
|
* Get usage metrics for the Primary Network RPC
|
|
491
581
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
582
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
583
|
* @throws ApiError
|
|
494
584
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
585
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
586
|
/**
|
|
497
587
|
* Either mainnet or testnet/fuji.
|
|
498
588
|
*/
|
|
@@ -501,7 +591,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
591
|
* Time interval granularity for data aggregation for subnet
|
|
502
592
|
* rpc metrics
|
|
503
593
|
*/
|
|
504
|
-
timeInterval?:
|
|
594
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
595
|
/**
|
|
506
596
|
* 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
597
|
*/
|
|
@@ -523,18 +613,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
613
|
*/
|
|
524
614
|
requestPath?: string;
|
|
525
615
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
616
|
+
* 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
617
|
*/
|
|
528
618
|
country?: string;
|
|
529
619
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
620
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
621
|
*/
|
|
532
622
|
continent?: string;
|
|
533
623
|
/**
|
|
534
624
|
* Filter data by User Agent.
|
|
535
625
|
*/
|
|
536
626
|
userAgent?: string;
|
|
537
|
-
|
|
627
|
+
/**
|
|
628
|
+
* Filter data by RPC method.
|
|
629
|
+
*/
|
|
630
|
+
rpcMethod?: string;
|
|
631
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
632
|
}
|
|
539
633
|
|
|
540
634
|
declare class DefaultService {
|
|
@@ -782,16 +876,16 @@ type Erc20TokenBalance = {
|
|
|
782
876
|
*/
|
|
783
877
|
balanceValue?: Money;
|
|
784
878
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
879
|
+
* 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
880
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
881
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
882
|
};
|
|
789
883
|
declare namespace Erc20TokenBalance {
|
|
790
884
|
enum ercType {
|
|
791
885
|
ERC_20 = "ERC-20"
|
|
792
886
|
}
|
|
793
887
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
888
|
+
* 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
889
|
*/
|
|
796
890
|
enum tokenReputation {
|
|
797
891
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +980,7 @@ declare class EvmBalancesService {
|
|
|
886
980
|
*/
|
|
887
981
|
pageToken?: string;
|
|
888
982
|
/**
|
|
889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
983
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
890
984
|
*/
|
|
891
985
|
pageSize?: number;
|
|
892
986
|
/**
|
|
@@ -924,7 +1018,7 @@ declare class EvmBalancesService {
|
|
|
924
1018
|
*/
|
|
925
1019
|
pageToken?: string;
|
|
926
1020
|
/**
|
|
927
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1021
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
928
1022
|
*/
|
|
929
1023
|
pageSize?: number;
|
|
930
1024
|
/**
|
|
@@ -960,7 +1054,7 @@ declare class EvmBalancesService {
|
|
|
960
1054
|
*/
|
|
961
1055
|
pageToken?: string;
|
|
962
1056
|
/**
|
|
963
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1057
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
964
1058
|
*/
|
|
965
1059
|
pageSize?: number;
|
|
966
1060
|
/**
|
|
@@ -990,7 +1084,7 @@ declare class EvmBalancesService {
|
|
|
990
1084
|
*/
|
|
991
1085
|
pageToken?: string;
|
|
992
1086
|
/**
|
|
993
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1087
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
994
1088
|
*/
|
|
995
1089
|
pageSize?: number;
|
|
996
1090
|
/**
|
|
@@ -1646,7 +1740,7 @@ type Erc1155Contract = {
|
|
|
1646
1740
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1647
1741
|
*/
|
|
1648
1742
|
address: string;
|
|
1649
|
-
deploymentDetails
|
|
1743
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1650
1744
|
ercType: Erc1155Contract.ercType;
|
|
1651
1745
|
/**
|
|
1652
1746
|
* The contract symbol.
|
|
@@ -1677,7 +1771,7 @@ type Erc20Contract = {
|
|
|
1677
1771
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1678
1772
|
*/
|
|
1679
1773
|
address: string;
|
|
1680
|
-
deploymentDetails
|
|
1774
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1681
1775
|
ercType: Erc20Contract.ercType;
|
|
1682
1776
|
/**
|
|
1683
1777
|
* The contract symbol.
|
|
@@ -1712,7 +1806,7 @@ type Erc721Contract = {
|
|
|
1712
1806
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1713
1807
|
*/
|
|
1714
1808
|
address: string;
|
|
1715
|
-
deploymentDetails
|
|
1809
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1716
1810
|
ercType: Erc721Contract.ercType;
|
|
1717
1811
|
/**
|
|
1718
1812
|
* The contract symbol.
|
|
@@ -1742,7 +1836,7 @@ type UnknownContract = {
|
|
|
1742
1836
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1743
1837
|
*/
|
|
1744
1838
|
address: string;
|
|
1745
|
-
deploymentDetails
|
|
1839
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1746
1840
|
ercType: UnknownContract.ercType;
|
|
1747
1841
|
};
|
|
1748
1842
|
declare namespace UnknownContract {
|
|
@@ -1960,6 +2054,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1960
2054
|
CALL = "CALL",
|
|
1961
2055
|
CREATE = "CREATE",
|
|
1962
2056
|
CREATE2 = "CREATE2",
|
|
2057
|
+
CREATE3 = "CREATE3",
|
|
1963
2058
|
CALLCODE = "CALLCODE",
|
|
1964
2059
|
DELEGATECALL = "DELEGATECALL",
|
|
1965
2060
|
STATICCALL = "STATICCALL"
|
|
@@ -2001,11 +2096,11 @@ type TeleporterMessageInfo = {
|
|
|
2001
2096
|
/**
|
|
2002
2097
|
* chain id of the source chain. valid only for destination transactions
|
|
2003
2098
|
*/
|
|
2004
|
-
sourceChainId?:
|
|
2099
|
+
sourceChainId?: string;
|
|
2005
2100
|
/**
|
|
2006
2101
|
* chain id of the destination chain. valid only for source transactions
|
|
2007
2102
|
*/
|
|
2008
|
-
destinationChainId?:
|
|
2103
|
+
destinationChainId?: string;
|
|
2009
2104
|
};
|
|
2010
2105
|
|
|
2011
2106
|
type GetTransactionResponse = {
|
|
@@ -2022,7 +2117,7 @@ type GetTransactionResponse = {
|
|
|
2022
2117
|
*/
|
|
2023
2118
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2024
2119
|
/**
|
|
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
|
|
2120
|
+
* 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
2121
|
*/
|
|
2027
2122
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2028
2123
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2191,7 +2286,7 @@ type TransactionDetails = {
|
|
|
2191
2286
|
*/
|
|
2192
2287
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2193
2288
|
/**
|
|
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
|
|
2289
|
+
* 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
2290
|
*/
|
|
2196
2291
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2197
2292
|
};
|
|
@@ -2490,7 +2585,7 @@ declare class EvmTransactionsService {
|
|
|
2490
2585
|
* List internal transactions
|
|
2491
2586
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2492
2587
|
*
|
|
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.
|
|
2588
|
+
* 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
2589
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2495
2590
|
* @throws ApiError
|
|
2496
2591
|
*/
|
|
@@ -2586,68 +2681,204 @@ declare class EvmTransactionsService {
|
|
|
2586
2681
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2682
|
}
|
|
2588
2683
|
|
|
2684
|
+
type HealthIndicatorResultDto = {
|
|
2685
|
+
/**
|
|
2686
|
+
* Status of the health indicator.
|
|
2687
|
+
*/
|
|
2688
|
+
status?: HealthIndicatorResultDto.status;
|
|
2689
|
+
};
|
|
2690
|
+
declare namespace HealthIndicatorResultDto {
|
|
2691
|
+
/**
|
|
2692
|
+
* Status of the health indicator.
|
|
2693
|
+
*/
|
|
2694
|
+
enum status {
|
|
2695
|
+
UP = "up",
|
|
2696
|
+
DOWN = "down"
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
type HealthCheckResultDto = {
|
|
2701
|
+
status?: HealthCheckResultDto.status;
|
|
2702
|
+
info?: any | null;
|
|
2703
|
+
error?: any | null;
|
|
2704
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2705
|
+
};
|
|
2706
|
+
declare namespace HealthCheckResultDto {
|
|
2707
|
+
enum status {
|
|
2708
|
+
ERROR = "error",
|
|
2709
|
+
OK = "ok",
|
|
2710
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2589
2714
|
declare class HealthCheckService {
|
|
2590
2715
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2716
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2717
|
/**
|
|
2593
2718
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2719
|
+
* Check the health of the service.
|
|
2720
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2595
2721
|
* @throws ApiError
|
|
2596
2722
|
*/
|
|
2597
|
-
dataHealthCheck(): CancelablePromise<
|
|
2598
|
-
status?: string;
|
|
2599
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2600
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2601
|
-
details?: Record<string, Record<string, string>>;
|
|
2602
|
-
}>;
|
|
2723
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2603
2724
|
}
|
|
2604
2725
|
|
|
2605
|
-
type
|
|
2726
|
+
type IcmDestinationTransaction = {
|
|
2727
|
+
txHash: string;
|
|
2728
|
+
timestamp: number;
|
|
2729
|
+
gasSpent: string;
|
|
2730
|
+
rewardRedeemer: string;
|
|
2731
|
+
delivererAddress: string;
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2734
|
+
type IcmReceipt = {
|
|
2735
|
+
receivedMessageNonce: string;
|
|
2736
|
+
relayerRewardAddress: string;
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
type IcmRewardDetails = {
|
|
2740
|
+
/**
|
|
2741
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2742
|
+
*/
|
|
2743
|
+
address: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* The contract name.
|
|
2746
|
+
*/
|
|
2747
|
+
name: string;
|
|
2748
|
+
/**
|
|
2749
|
+
* The contract symbol.
|
|
2750
|
+
*/
|
|
2751
|
+
symbol: string;
|
|
2752
|
+
/**
|
|
2753
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2754
|
+
*/
|
|
2755
|
+
decimals: number;
|
|
2756
|
+
/**
|
|
2757
|
+
* The logo uri for the address.
|
|
2758
|
+
*/
|
|
2759
|
+
logoUri?: string;
|
|
2760
|
+
ercType: IcmRewardDetails.ercType;
|
|
2761
|
+
/**
|
|
2762
|
+
* The token price, if available.
|
|
2763
|
+
*/
|
|
2764
|
+
price?: Money;
|
|
2765
|
+
value: string;
|
|
2766
|
+
};
|
|
2767
|
+
declare namespace IcmRewardDetails {
|
|
2768
|
+
enum ercType {
|
|
2769
|
+
ERC_20 = "ERC-20"
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
type IcmSourceTransaction = {
|
|
2774
|
+
txHash: string;
|
|
2775
|
+
timestamp: number;
|
|
2776
|
+
gasSpent: string;
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
type DeliveredIcmMessage = {
|
|
2780
|
+
messageId: string;
|
|
2781
|
+
icmContractAddress: string;
|
|
2782
|
+
sourceBlockchainId: string;
|
|
2783
|
+
destinationBlockchainId: string;
|
|
2784
|
+
sourceEvmChainId: string;
|
|
2785
|
+
destinationEvmChainId: string;
|
|
2786
|
+
messageNonce: string;
|
|
2787
|
+
from: string;
|
|
2788
|
+
to: string;
|
|
2789
|
+
data?: string;
|
|
2790
|
+
messageExecuted: boolean;
|
|
2791
|
+
receipts: Array<IcmReceipt>;
|
|
2792
|
+
receiptDelivered: boolean;
|
|
2793
|
+
rewardDetails: IcmRewardDetails;
|
|
2794
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2795
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2796
|
+
status: DeliveredIcmMessage.status;
|
|
2797
|
+
};
|
|
2798
|
+
declare namespace DeliveredIcmMessage {
|
|
2799
|
+
enum status {
|
|
2800
|
+
DELIVERED = "delivered"
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2805
|
+
messageId: string;
|
|
2806
|
+
icmContractAddress: string;
|
|
2807
|
+
sourceBlockchainId: string;
|
|
2808
|
+
destinationBlockchainId: string;
|
|
2809
|
+
sourceEvmChainId: string;
|
|
2810
|
+
destinationEvmChainId: string;
|
|
2811
|
+
messageNonce: string;
|
|
2812
|
+
from: string;
|
|
2813
|
+
to: string;
|
|
2814
|
+
data?: string;
|
|
2815
|
+
messageExecuted: boolean;
|
|
2816
|
+
receipts: Array<IcmReceipt>;
|
|
2817
|
+
receiptDelivered: boolean;
|
|
2818
|
+
rewardDetails: IcmRewardDetails;
|
|
2819
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2820
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2821
|
+
};
|
|
2822
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2823
|
+
enum status {
|
|
2824
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
type PendingIcmMessage = {
|
|
2829
|
+
messageId: string;
|
|
2830
|
+
icmContractAddress: string;
|
|
2831
|
+
sourceBlockchainId: string;
|
|
2832
|
+
destinationBlockchainId: string;
|
|
2833
|
+
sourceEvmChainId: string;
|
|
2834
|
+
destinationEvmChainId: string;
|
|
2835
|
+
messageNonce: string;
|
|
2836
|
+
from: string;
|
|
2837
|
+
to: string;
|
|
2838
|
+
data?: string;
|
|
2839
|
+
messageExecuted: boolean;
|
|
2840
|
+
receipts: Array<IcmReceipt>;
|
|
2841
|
+
receiptDelivered: boolean;
|
|
2842
|
+
rewardDetails: IcmRewardDetails;
|
|
2843
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2844
|
+
status: PendingIcmMessage.status;
|
|
2845
|
+
};
|
|
2846
|
+
declare namespace PendingIcmMessage {
|
|
2847
|
+
enum status {
|
|
2848
|
+
PENDING = "pending"
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
type ListIcmMessagesResponse = {
|
|
2606
2853
|
/**
|
|
2607
2854
|
* 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.
|
|
2608
2855
|
*/
|
|
2609
2856
|
nextPageToken?: string;
|
|
2610
|
-
|
|
2857
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2611
2858
|
};
|
|
2612
2859
|
|
|
2613
|
-
declare class
|
|
2860
|
+
declare class InterchainMessagingService {
|
|
2614
2861
|
readonly httpRequest: BaseHttpRequest;
|
|
2615
2862
|
constructor(httpRequest: BaseHttpRequest);
|
|
2616
2863
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2864
|
+
* Get an ICM message
|
|
2865
|
+
* Gets an ICM message by teleporter message ID.
|
|
2619
2866
|
* @returns any Successful response
|
|
2620
2867
|
* @throws ApiError
|
|
2621
2868
|
*/
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2625
|
-
*/
|
|
2626
|
-
chainId: string;
|
|
2627
|
-
/**
|
|
2628
|
-
* Contract address on the relevant chain.
|
|
2629
|
-
*/
|
|
2630
|
-
address: string;
|
|
2869
|
+
getIcmMessage({ messageId, }: {
|
|
2631
2870
|
/**
|
|
2632
|
-
*
|
|
2871
|
+
* The teleporter message ID of the ICM message.
|
|
2633
2872
|
*/
|
|
2634
|
-
|
|
2635
|
-
}): CancelablePromise<
|
|
2873
|
+
messageId: string;
|
|
2874
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2636
2875
|
/**
|
|
2637
|
-
* List
|
|
2638
|
-
* Lists
|
|
2639
|
-
* @returns
|
|
2876
|
+
* List ICM messages
|
|
2877
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2878
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2640
2879
|
* @throws ApiError
|
|
2641
2880
|
*/
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
-
*/
|
|
2646
|
-
chainId: string;
|
|
2647
|
-
/**
|
|
2648
|
-
* Contract address on the relevant chain.
|
|
2649
|
-
*/
|
|
2650
|
-
address: string;
|
|
2881
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2651
2882
|
/**
|
|
2652
2883
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
2884
|
*/
|
|
@@ -2656,27 +2887,234 @@ declare class NfTsService {
|
|
|
2656
2887
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
2888
|
*/
|
|
2658
2889
|
pageSize?: number;
|
|
2659
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2660
|
-
/**
|
|
2661
|
-
* Get token details
|
|
2662
|
-
* Gets token details for a specific token of an NFT contract.
|
|
2663
|
-
* @returns any Successful response
|
|
2664
|
-
* @throws ApiError
|
|
2665
|
-
*/
|
|
2666
|
-
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2667
2890
|
/**
|
|
2668
|
-
*
|
|
2891
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2669
2892
|
*/
|
|
2670
|
-
|
|
2893
|
+
sourceBlockchainId?: string;
|
|
2671
2894
|
/**
|
|
2672
|
-
*
|
|
2895
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2673
2896
|
*/
|
|
2674
|
-
|
|
2897
|
+
destinationBlockchainId?: string;
|
|
2675
2898
|
/**
|
|
2676
|
-
*
|
|
2899
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2677
2900
|
*/
|
|
2678
|
-
|
|
2679
|
-
|
|
2901
|
+
blockchainId?: string;
|
|
2902
|
+
/**
|
|
2903
|
+
* The address of the recipient of the ICM message.
|
|
2904
|
+
*/
|
|
2905
|
+
to?: string;
|
|
2906
|
+
/**
|
|
2907
|
+
* The address of the sender of the ICM message.
|
|
2908
|
+
*/
|
|
2909
|
+
from?: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* Either mainnet or testnet/fuji.
|
|
2912
|
+
*/
|
|
2913
|
+
network?: Network;
|
|
2914
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2915
|
+
/**
|
|
2916
|
+
* List ICM messages by address
|
|
2917
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2918
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2919
|
+
* @throws ApiError
|
|
2920
|
+
*/
|
|
2921
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2922
|
+
/**
|
|
2923
|
+
* An EVM address.
|
|
2924
|
+
*/
|
|
2925
|
+
address: string;
|
|
2926
|
+
/**
|
|
2927
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2928
|
+
*/
|
|
2929
|
+
pageToken?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2932
|
+
*/
|
|
2933
|
+
pageSize?: number;
|
|
2934
|
+
/**
|
|
2935
|
+
* Either mainnet or testnet/fuji.
|
|
2936
|
+
*/
|
|
2937
|
+
network?: Network;
|
|
2938
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
type ListNftTokens = {
|
|
2942
|
+
/**
|
|
2943
|
+
* 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.
|
|
2944
|
+
*/
|
|
2945
|
+
nextPageToken?: string;
|
|
2946
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
declare class NfTsService {
|
|
2950
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2951
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2952
|
+
/**
|
|
2953
|
+
* Reindex NFT metadata
|
|
2954
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2955
|
+
* @returns any Successful response
|
|
2956
|
+
* @throws ApiError
|
|
2957
|
+
*/
|
|
2958
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2959
|
+
/**
|
|
2960
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2961
|
+
*/
|
|
2962
|
+
chainId: string;
|
|
2963
|
+
/**
|
|
2964
|
+
* Contract address on the relevant chain.
|
|
2965
|
+
*/
|
|
2966
|
+
address: string;
|
|
2967
|
+
/**
|
|
2968
|
+
* TokenId on the contract
|
|
2969
|
+
*/
|
|
2970
|
+
tokenId: string;
|
|
2971
|
+
}): CancelablePromise<any>;
|
|
2972
|
+
/**
|
|
2973
|
+
* List tokens
|
|
2974
|
+
* Lists tokens for an NFT contract.
|
|
2975
|
+
* @returns ListNftTokens Successful response
|
|
2976
|
+
* @throws ApiError
|
|
2977
|
+
*/
|
|
2978
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2979
|
+
/**
|
|
2980
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2981
|
+
*/
|
|
2982
|
+
chainId: string;
|
|
2983
|
+
/**
|
|
2984
|
+
* Contract address on the relevant chain.
|
|
2985
|
+
*/
|
|
2986
|
+
address: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2989
|
+
*/
|
|
2990
|
+
pageToken?: string;
|
|
2991
|
+
/**
|
|
2992
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2993
|
+
*/
|
|
2994
|
+
pageSize?: number;
|
|
2995
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2996
|
+
/**
|
|
2997
|
+
* Get token details
|
|
2998
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2999
|
+
* @returns any Successful response
|
|
3000
|
+
* @throws ApiError
|
|
3001
|
+
*/
|
|
3002
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3003
|
+
/**
|
|
3004
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3005
|
+
*/
|
|
3006
|
+
chainId: string;
|
|
3007
|
+
/**
|
|
3008
|
+
* Contract address on the relevant chain.
|
|
3009
|
+
*/
|
|
3010
|
+
address: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* TokenId on the contract
|
|
3013
|
+
*/
|
|
3014
|
+
tokenId: string;
|
|
3015
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
type AccessRequest = {
|
|
3019
|
+
/**
|
|
3020
|
+
* The email address to send the access token to
|
|
3021
|
+
*/
|
|
3022
|
+
email: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* The captcha to verify the user
|
|
3025
|
+
*/
|
|
3026
|
+
captcha: string;
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
type NotificationsResponse = {
|
|
3030
|
+
message: string;
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
type SubscribeRequest = {
|
|
3034
|
+
/**
|
|
3035
|
+
* The access token to use for authentication
|
|
3036
|
+
*/
|
|
3037
|
+
accessToken: string;
|
|
3038
|
+
/**
|
|
3039
|
+
* The node ID to subscribe to
|
|
3040
|
+
*/
|
|
3041
|
+
nodeId: string;
|
|
3042
|
+
/**
|
|
3043
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3044
|
+
*/
|
|
3045
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
type SubscriptionsRequest = {
|
|
3049
|
+
/**
|
|
3050
|
+
* The access token to use for authentication
|
|
3051
|
+
*/
|
|
3052
|
+
accessToken: string;
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
type SubscriptionsResponse = {
|
|
3056
|
+
/**
|
|
3057
|
+
* The email address of the user
|
|
3058
|
+
*/
|
|
3059
|
+
email: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* The subscriptions of the user
|
|
3062
|
+
*/
|
|
3063
|
+
subscriptions: Record<string, {
|
|
3064
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3065
|
+
}>;
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
type UnsubscribeRequest = {
|
|
3069
|
+
/**
|
|
3070
|
+
* The access token to use for authentication
|
|
3071
|
+
*/
|
|
3072
|
+
accessToken: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* The node ID to subscribe to
|
|
3075
|
+
*/
|
|
3076
|
+
nodeId: string;
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
declare class NotificationsService {
|
|
3080
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3081
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3082
|
+
/**
|
|
3083
|
+
* Access Notifications
|
|
3084
|
+
* Access notifications.
|
|
3085
|
+
* @returns NotificationsResponse Successful response
|
|
3086
|
+
* @throws ApiError
|
|
3087
|
+
*/
|
|
3088
|
+
access({ requestBody, }: {
|
|
3089
|
+
requestBody: AccessRequest;
|
|
3090
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3091
|
+
/**
|
|
3092
|
+
* Subscribe to Notifications
|
|
3093
|
+
* Subscribe to receive notifications.
|
|
3094
|
+
* @returns NotificationsResponse Successful response
|
|
3095
|
+
* @throws ApiError
|
|
3096
|
+
*/
|
|
3097
|
+
subscribe({ requestBody, }: {
|
|
3098
|
+
requestBody: SubscribeRequest;
|
|
3099
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3100
|
+
/**
|
|
3101
|
+
* Unsubscribe from Notifications
|
|
3102
|
+
* Unsubscribe from receiving notifications.
|
|
3103
|
+
* @returns NotificationsResponse Successful response
|
|
3104
|
+
* @throws ApiError
|
|
3105
|
+
*/
|
|
3106
|
+
unsubscribe({ requestBody, }: {
|
|
3107
|
+
requestBody: UnsubscribeRequest;
|
|
3108
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3109
|
+
/**
|
|
3110
|
+
* Get Subscriptions
|
|
3111
|
+
* Get subscriptions.
|
|
3112
|
+
* @returns SubscriptionsResponse Successful response
|
|
3113
|
+
* @throws ApiError
|
|
3114
|
+
*/
|
|
3115
|
+
subscriptions({ requestBody, }: {
|
|
3116
|
+
requestBody: SubscriptionsRequest;
|
|
3117
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
2680
3118
|
}
|
|
2681
3119
|
|
|
2682
3120
|
type EvmNetworkOptions = {
|
|
@@ -2712,7 +3150,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2712
3150
|
type PrimaryNetworkOptions = {
|
|
2713
3151
|
addresses?: Array<string>;
|
|
2714
3152
|
cChainEvmAddresses?: Array<string>;
|
|
2715
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3153
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2716
3154
|
};
|
|
2717
3155
|
|
|
2718
3156
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2767,7 +3205,7 @@ type OperationStatusResponse = {
|
|
|
2767
3205
|
operationType: OperationType;
|
|
2768
3206
|
operationStatus: OperationStatus;
|
|
2769
3207
|
message?: string;
|
|
2770
|
-
metadata
|
|
3208
|
+
metadata?: TransactionExportMetadata;
|
|
2771
3209
|
createdAtTimestamp: number;
|
|
2772
3210
|
updatedAtTimestamp: number;
|
|
2773
3211
|
};
|
|
@@ -2800,14 +3238,29 @@ declare class OperationsService {
|
|
|
2800
3238
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2801
3239
|
}
|
|
2802
3240
|
|
|
3241
|
+
type Blockchain = {
|
|
3242
|
+
createBlockTimestamp: number;
|
|
3243
|
+
createBlockNumber: string;
|
|
3244
|
+
blockchainId: string;
|
|
3245
|
+
vmId: string;
|
|
3246
|
+
subnetId: string;
|
|
3247
|
+
blockchainName: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* 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.
|
|
3250
|
+
*/
|
|
3251
|
+
evmChainId: number;
|
|
3252
|
+
/**
|
|
3253
|
+
* The genesis data of the blockchain.
|
|
3254
|
+
*/
|
|
3255
|
+
genesisData?: Record<string, any>;
|
|
3256
|
+
};
|
|
3257
|
+
|
|
2803
3258
|
declare enum BlockchainIds {
|
|
2804
3259
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2805
3260
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2806
3261
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2807
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2808
3262
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2809
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2810
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3263
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2811
3264
|
}
|
|
2812
3265
|
|
|
2813
3266
|
type ChainAddressChainIdMap = {
|
|
@@ -2864,15 +3317,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2864
3317
|
delegatorDetails: DelegatorsDetails;
|
|
2865
3318
|
};
|
|
2866
3319
|
|
|
2867
|
-
type Blockchain = {
|
|
2868
|
-
createBlockTimestamp: number;
|
|
2869
|
-
createBlockNumber: string;
|
|
2870
|
-
blockchainId: string;
|
|
2871
|
-
vmId: string;
|
|
2872
|
-
subnetId: string;
|
|
2873
|
-
blockchainName: string;
|
|
2874
|
-
};
|
|
2875
|
-
|
|
2876
3320
|
type ListBlockchainsResponse = {
|
|
2877
3321
|
/**
|
|
2878
3322
|
* 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.
|
|
@@ -2968,6 +3412,10 @@ type L1ValidatorDetailsFull = {
|
|
|
2968
3412
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2969
3413
|
*/
|
|
2970
3414
|
validationId: string;
|
|
3415
|
+
/**
|
|
3416
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3417
|
+
*/
|
|
3418
|
+
validationIdHex: string;
|
|
2971
3419
|
nodeId: string;
|
|
2972
3420
|
subnetId: string;
|
|
2973
3421
|
/**
|
|
@@ -3002,10 +3450,10 @@ type ListL1ValidatorsResponse = {
|
|
|
3002
3450
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3003
3451
|
*/
|
|
3004
3452
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3453
|
+
/**
|
|
3454
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3455
|
+
*/
|
|
3456
|
+
blockHeight: string;
|
|
3009
3457
|
};
|
|
3010
3458
|
|
|
3011
3459
|
type L1ValidatorManagerDetails = {
|
|
@@ -3063,7 +3511,7 @@ type Subnet = {
|
|
|
3063
3511
|
* L1 validator manager details.
|
|
3064
3512
|
*/
|
|
3065
3513
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3066
|
-
blockchains: Array<
|
|
3514
|
+
blockchains: Array<Blockchain>;
|
|
3067
3515
|
};
|
|
3068
3516
|
|
|
3069
3517
|
type ListSubnetsResponse = {
|
|
@@ -3079,6 +3527,29 @@ type BlsCredentials = {
|
|
|
3079
3527
|
proofOfPossession: string;
|
|
3080
3528
|
};
|
|
3081
3529
|
|
|
3530
|
+
type Geolocation = {
|
|
3531
|
+
/**
|
|
3532
|
+
* The name of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
city: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* The city of the validator node.
|
|
3537
|
+
*/
|
|
3538
|
+
country: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The country code of the validator node.
|
|
3541
|
+
*/
|
|
3542
|
+
countryCode: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* The latitude of the validator node.
|
|
3545
|
+
*/
|
|
3546
|
+
latitude: number;
|
|
3547
|
+
/**
|
|
3548
|
+
* The longitude of the validator node.
|
|
3549
|
+
*/
|
|
3550
|
+
longitude: number;
|
|
3551
|
+
};
|
|
3552
|
+
|
|
3082
3553
|
type Rewards = {
|
|
3083
3554
|
validationRewardAmount: string;
|
|
3084
3555
|
delegationRewardAmount: string;
|
|
@@ -3147,6 +3618,10 @@ type ActiveValidatorDetails = {
|
|
|
3147
3618
|
potentialRewards: Rewards;
|
|
3148
3619
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3149
3620
|
validatorHealth: ValidatorHealthDetails;
|
|
3621
|
+
/**
|
|
3622
|
+
* The geographical location of the validator node, if available.
|
|
3623
|
+
*/
|
|
3624
|
+
geolocation: Geolocation | null;
|
|
3150
3625
|
};
|
|
3151
3626
|
declare namespace ActiveValidatorDetails {
|
|
3152
3627
|
enum validationStatus {
|
|
@@ -3304,7 +3779,6 @@ type XChainAssetDetails = {
|
|
|
3304
3779
|
declare enum XChainId {
|
|
3305
3780
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3306
3781
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3307
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3308
3782
|
X_CHAIN = "x-chain"
|
|
3309
3783
|
}
|
|
3310
3784
|
|
|
@@ -3375,7 +3849,7 @@ declare class PrimaryNetworkService {
|
|
|
3375
3849
|
*/
|
|
3376
3850
|
pageToken?: string;
|
|
3377
3851
|
/**
|
|
3378
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3379
3853
|
*/
|
|
3380
3854
|
pageSize?: number;
|
|
3381
3855
|
/**
|
|
@@ -3383,6 +3857,22 @@ declare class PrimaryNetworkService {
|
|
|
3383
3857
|
*/
|
|
3384
3858
|
sortOrder?: SortOrder;
|
|
3385
3859
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3860
|
+
/**
|
|
3861
|
+
* Get blockchain details by ID
|
|
3862
|
+
* Get details of the blockchain registered on the network.
|
|
3863
|
+
* @returns Blockchain Successful response
|
|
3864
|
+
* @throws ApiError
|
|
3865
|
+
*/
|
|
3866
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3867
|
+
/**
|
|
3868
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3869
|
+
*/
|
|
3870
|
+
blockchainId: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* Either mainnet or testnet/fuji.
|
|
3873
|
+
*/
|
|
3874
|
+
network: Network;
|
|
3875
|
+
}): CancelablePromise<Blockchain>;
|
|
3386
3876
|
/**
|
|
3387
3877
|
* List subnets
|
|
3388
3878
|
* Lists all subnets registered on the network.
|
|
@@ -3399,7 +3889,7 @@ declare class PrimaryNetworkService {
|
|
|
3399
3889
|
*/
|
|
3400
3890
|
pageToken?: string;
|
|
3401
3891
|
/**
|
|
3402
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3403
3893
|
*/
|
|
3404
3894
|
pageSize?: number;
|
|
3405
3895
|
/**
|
|
@@ -3425,7 +3915,7 @@ declare class PrimaryNetworkService {
|
|
|
3425
3915
|
}): CancelablePromise<Subnet>;
|
|
3426
3916
|
/**
|
|
3427
3917
|
* List validators
|
|
3428
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3918
|
+
* 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.
|
|
3429
3919
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3430
3920
|
* @throws ApiError
|
|
3431
3921
|
*/
|
|
@@ -3443,7 +3933,7 @@ declare class PrimaryNetworkService {
|
|
|
3443
3933
|
*/
|
|
3444
3934
|
pageSize?: number;
|
|
3445
3935
|
/**
|
|
3446
|
-
* A comma separated list of node ids to filter by.
|
|
3936
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3447
3937
|
*/
|
|
3448
3938
|
nodeIds?: string;
|
|
3449
3939
|
/**
|
|
@@ -3587,7 +4077,7 @@ declare class PrimaryNetworkService {
|
|
|
3587
4077
|
/**
|
|
3588
4078
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3589
4079
|
*/
|
|
3590
|
-
l1ValidationId?:
|
|
4080
|
+
l1ValidationId?: string;
|
|
3591
4081
|
includeInactiveL1Validators?: boolean;
|
|
3592
4082
|
/**
|
|
3593
4083
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -3604,10 +4094,8 @@ declare enum BlockchainId {
|
|
|
3604
4094
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3605
4095
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3606
4096
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3607
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3608
4097
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3609
4098
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3610
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3611
4099
|
P_CHAIN = "p-chain",
|
|
3612
4100
|
X_CHAIN = "x-chain",
|
|
3613
4101
|
C_CHAIN = "c-chain"
|
|
@@ -4197,6 +4685,10 @@ type Utxo = {
|
|
|
4197
4685
|
* UTXO ID for this output.
|
|
4198
4686
|
*/
|
|
4199
4687
|
utxoId: string;
|
|
4688
|
+
/**
|
|
4689
|
+
* The bytes of the UTXO
|
|
4690
|
+
*/
|
|
4691
|
+
utxoBytes?: string;
|
|
4200
4692
|
/**
|
|
4201
4693
|
* Unix timestamp in seconds at which this output was consumed.
|
|
4202
4694
|
*/
|
|
@@ -4365,11 +4857,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4365
4857
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4366
4858
|
};
|
|
4367
4859
|
|
|
4860
|
+
type BlockchainInfo = {
|
|
4861
|
+
chainName: string;
|
|
4862
|
+
vmId: string;
|
|
4863
|
+
/**
|
|
4864
|
+
* 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
|
|
4865
|
+
*/
|
|
4866
|
+
genesisData?: Record<string, any>;
|
|
4867
|
+
};
|
|
4868
|
+
|
|
4368
4869
|
type L1ValidatorDetailsTransaction = {
|
|
4369
4870
|
/**
|
|
4370
4871
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4371
4872
|
*/
|
|
4372
4873
|
validationId: string;
|
|
4874
|
+
/**
|
|
4875
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4876
|
+
*/
|
|
4877
|
+
validationIdHex: string;
|
|
4373
4878
|
nodeId: string;
|
|
4374
4879
|
subnetId: string;
|
|
4375
4880
|
/**
|
|
@@ -4441,6 +4946,10 @@ type PChainUtxo = {
|
|
|
4441
4946
|
* UTXO ID for this output.
|
|
4442
4947
|
*/
|
|
4443
4948
|
utxoId: string;
|
|
4949
|
+
/**
|
|
4950
|
+
* The bytes of the UTXO
|
|
4951
|
+
*/
|
|
4952
|
+
utxoBytes?: string;
|
|
4444
4953
|
/**
|
|
4445
4954
|
* @deprecated
|
|
4446
4955
|
*/
|
|
@@ -4589,6 +5098,10 @@ type PChainTransaction = {
|
|
|
4589
5098
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4590
5099
|
*/
|
|
4591
5100
|
blsCredentials?: BlsCredentials;
|
|
5101
|
+
/**
|
|
5102
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5103
|
+
*/
|
|
5104
|
+
blockchainInfo?: BlockchainInfo;
|
|
4592
5105
|
};
|
|
4593
5106
|
|
|
4594
5107
|
type ListPChainTransactionsResponse = {
|
|
@@ -4959,6 +5472,18 @@ type ListUtxosResponse = {
|
|
|
4959
5472
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4960
5473
|
};
|
|
4961
5474
|
|
|
5475
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5476
|
+
/**
|
|
5477
|
+
* Comma-separated list of primary network addresses
|
|
5478
|
+
*/
|
|
5479
|
+
addresses: string;
|
|
5480
|
+
};
|
|
5481
|
+
|
|
5482
|
+
declare enum UtxosSortByOption {
|
|
5483
|
+
TIMESTAMP = "timestamp",
|
|
5484
|
+
AMOUNT = "amount"
|
|
5485
|
+
}
|
|
5486
|
+
|
|
4962
5487
|
declare class PrimaryNetworkUtxOsService {
|
|
4963
5488
|
readonly httpRequest: BaseHttpRequest;
|
|
4964
5489
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4968,7 +5493,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4968
5493
|
* @returns any Successful response
|
|
4969
5494
|
* @throws ApiError
|
|
4970
5495
|
*/
|
|
4971
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5496
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
4972
5497
|
/**
|
|
4973
5498
|
* A primary network blockchain id or alias.
|
|
4974
5499
|
*/
|
|
@@ -4997,25 +5522,70 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4997
5522
|
* Boolean filter to include spent UTXOs.
|
|
4998
5523
|
*/
|
|
4999
5524
|
includeSpent?: boolean;
|
|
5525
|
+
/**
|
|
5526
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5527
|
+
*/
|
|
5528
|
+
sortBy?: UtxosSortByOption;
|
|
5000
5529
|
/**
|
|
5001
5530
|
* 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.
|
|
5002
5531
|
*/
|
|
5003
5532
|
sortOrder?: SortOrder;
|
|
5004
5533
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5534
|
+
/**
|
|
5535
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5536
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5537
|
+
* @returns any Successful response
|
|
5538
|
+
* @throws ApiError
|
|
5539
|
+
*/
|
|
5540
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
5541
|
+
/**
|
|
5542
|
+
* A primary network blockchain id or alias.
|
|
5543
|
+
*/
|
|
5544
|
+
blockchainId: BlockchainId;
|
|
5545
|
+
/**
|
|
5546
|
+
* Either mainnet or testnet/fuji.
|
|
5547
|
+
*/
|
|
5548
|
+
network: Network;
|
|
5549
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5550
|
+
/**
|
|
5551
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5552
|
+
*/
|
|
5553
|
+
pageToken?: string;
|
|
5554
|
+
/**
|
|
5555
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
5556
|
+
*/
|
|
5557
|
+
pageSize?: number;
|
|
5558
|
+
/**
|
|
5559
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5560
|
+
*/
|
|
5561
|
+
assetId?: string;
|
|
5562
|
+
/**
|
|
5563
|
+
* Boolean filter to include spent UTXOs.
|
|
5564
|
+
*/
|
|
5565
|
+
includeSpent?: boolean;
|
|
5566
|
+
/**
|
|
5567
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5568
|
+
*/
|
|
5569
|
+
sortBy?: UtxosSortByOption;
|
|
5570
|
+
/**
|
|
5571
|
+
* 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.
|
|
5572
|
+
*/
|
|
5573
|
+
sortOrder?: SortOrder;
|
|
5574
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
type XChainVertex = {
|
|
5578
|
+
vertexHash: string;
|
|
5579
|
+
parentHashes: Array<string>;
|
|
5580
|
+
vertexHeight: number;
|
|
5581
|
+
vertexIndex: number;
|
|
5582
|
+
vertexTimestamp: number;
|
|
5583
|
+
txCount: number;
|
|
5584
|
+
transactions: Array<string>;
|
|
5585
|
+
vertexSizeBytes: number;
|
|
5586
|
+
};
|
|
5587
|
+
|
|
5588
|
+
type ListXChainVerticesResponse = {
|
|
5019
5589
|
/**
|
|
5020
5590
|
* 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.
|
|
5021
5591
|
*/
|
|
@@ -5132,6 +5702,22 @@ declare class SignatureAggregatorService {
|
|
|
5132
5702
|
network: Network;
|
|
5133
5703
|
requestBody: SignatureAggregatorRequest;
|
|
5134
5704
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5705
|
+
/**
|
|
5706
|
+
* Get Aggregated Signatures
|
|
5707
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5708
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5709
|
+
* @throws ApiError
|
|
5710
|
+
*/
|
|
5711
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5712
|
+
/**
|
|
5713
|
+
* Either mainnet or testnet/fuji.
|
|
5714
|
+
*/
|
|
5715
|
+
network: Network;
|
|
5716
|
+
/**
|
|
5717
|
+
* A primary network (P or X chain) transaction hash.
|
|
5718
|
+
*/
|
|
5719
|
+
txHash: string;
|
|
5720
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5135
5721
|
}
|
|
5136
5722
|
|
|
5137
5723
|
type TeleporterDestinationTransaction = {
|
|
@@ -5265,15 +5851,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
5265
5851
|
* 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.
|
|
5266
5852
|
*/
|
|
5267
5853
|
nextPageToken?: string;
|
|
5268
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5854
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5269
5855
|
};
|
|
5270
5856
|
|
|
5271
5857
|
declare class TeleporterService {
|
|
5272
5858
|
readonly httpRequest: BaseHttpRequest;
|
|
5273
5859
|
constructor(httpRequest: BaseHttpRequest);
|
|
5274
5860
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
* Gets a teleporter message by message ID.
|
|
5861
|
+
* @deprecated
|
|
5862
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5863
|
+
*
|
|
5864
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5277
5865
|
* @returns any Successful response
|
|
5278
5866
|
* @throws ApiError
|
|
5279
5867
|
*/
|
|
@@ -5284,8 +5872,10 @@ declare class TeleporterService {
|
|
|
5284
5872
|
messageId: string;
|
|
5285
5873
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5286
5874
|
/**
|
|
5287
|
-
*
|
|
5288
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5875
|
+
* @deprecated
|
|
5876
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5877
|
+
*
|
|
5878
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5289
5879
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5290
5880
|
* @throws ApiError
|
|
5291
5881
|
*/
|
|
@@ -5324,8 +5914,10 @@ declare class TeleporterService {
|
|
|
5324
5914
|
network?: Network;
|
|
5325
5915
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5326
5916
|
/**
|
|
5327
|
-
*
|
|
5328
|
-
* Lists teleporter messages by address. Ordered by
|
|
5917
|
+
* @deprecated
|
|
5918
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5919
|
+
*
|
|
5920
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5329
5921
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5330
5922
|
* @throws ApiError
|
|
5331
5923
|
*/
|
|
@@ -5358,28 +5950,58 @@ type AddressesChangeRequest = {
|
|
|
5358
5950
|
|
|
5359
5951
|
type AddressActivityMetadata = {
|
|
5360
5952
|
/**
|
|
5361
|
-
*
|
|
5953
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5954
|
+
*/
|
|
5955
|
+
eventSignatures?: Array<string>;
|
|
5956
|
+
/**
|
|
5957
|
+
* 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.
|
|
5362
5958
|
*/
|
|
5363
5959
|
addresses: Array<string>;
|
|
5960
|
+
};
|
|
5961
|
+
|
|
5962
|
+
type EVMAddressActivityRequest = {
|
|
5963
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5964
|
+
url: string;
|
|
5965
|
+
name?: string;
|
|
5966
|
+
description?: string;
|
|
5967
|
+
chainId: string;
|
|
5968
|
+
metadata: AddressActivityMetadata;
|
|
5364
5969
|
/**
|
|
5365
|
-
*
|
|
5970
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5366
5971
|
*/
|
|
5367
|
-
|
|
5972
|
+
includeInternalTxs?: boolean;
|
|
5973
|
+
/**
|
|
5974
|
+
* Whether to include logs in the webhook payload.
|
|
5975
|
+
*/
|
|
5976
|
+
includeLogs?: boolean;
|
|
5368
5977
|
};
|
|
5978
|
+
declare namespace EVMAddressActivityRequest {
|
|
5979
|
+
enum eventType {
|
|
5980
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5981
|
+
}
|
|
5982
|
+
}
|
|
5369
5983
|
|
|
5370
|
-
declare enum
|
|
5984
|
+
declare enum AddressActivityEventType {
|
|
5371
5985
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5372
5986
|
}
|
|
5373
5987
|
|
|
5374
|
-
|
|
5988
|
+
declare enum WebhookStatusType {
|
|
5989
|
+
ACTIVE = "active",
|
|
5990
|
+
INACTIVE = "inactive"
|
|
5991
|
+
}
|
|
5992
|
+
|
|
5993
|
+
type EVMAddressActivityResponse = {
|
|
5994
|
+
id: string;
|
|
5375
5995
|
url: string;
|
|
5376
5996
|
chainId: string;
|
|
5377
|
-
|
|
5997
|
+
status: WebhookStatusType;
|
|
5998
|
+
createdAt: number;
|
|
5999
|
+
name: string;
|
|
6000
|
+
description: string;
|
|
6001
|
+
eventType: AddressActivityEventType;
|
|
5378
6002
|
metadata: AddressActivityMetadata;
|
|
5379
|
-
name?: string;
|
|
5380
|
-
description?: string;
|
|
5381
6003
|
/**
|
|
5382
|
-
* Whether to include traces in the webhook payload.
|
|
6004
|
+
* Whether to include traces in the webhook payload.
|
|
5383
6005
|
*/
|
|
5384
6006
|
includeInternalTxs?: boolean;
|
|
5385
6007
|
/**
|
|
@@ -5397,29 +6019,143 @@ type ListWebhookAddressesResponse = {
|
|
|
5397
6019
|
totalAddresses: number;
|
|
5398
6020
|
};
|
|
5399
6021
|
|
|
5400
|
-
declare enum
|
|
5401
|
-
|
|
5402
|
-
INACTIVE = "inactive"
|
|
6022
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6023
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
5403
6024
|
}
|
|
5404
6025
|
|
|
5405
|
-
|
|
6026
|
+
/**
|
|
6027
|
+
* The type of key to monitor for the address activity event type.
|
|
6028
|
+
*/
|
|
6029
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6030
|
+
ADDRESSES = "addresses"
|
|
6031
|
+
}
|
|
6032
|
+
|
|
6033
|
+
/**
|
|
6034
|
+
* Array of address activity sub-event types
|
|
6035
|
+
*/
|
|
6036
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6037
|
+
BALANCE_CHANGE = "balance_change",
|
|
6038
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6039
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6043
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6044
|
+
};
|
|
6045
|
+
|
|
6046
|
+
/**
|
|
6047
|
+
* Type of balance to monitor
|
|
6048
|
+
*/
|
|
6049
|
+
declare enum CommonBalanceType {
|
|
6050
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6051
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6052
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6053
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6054
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6055
|
+
PENDING_STAKED = "pendingStaked",
|
|
6056
|
+
UNLOCKED = "unlocked",
|
|
6057
|
+
LOCKED = "locked",
|
|
6058
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6059
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6060
|
+
}
|
|
6061
|
+
|
|
6062
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6063
|
+
balanceType: CommonBalanceType;
|
|
6064
|
+
/**
|
|
6065
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6066
|
+
*/
|
|
6067
|
+
balanceThreshold: string;
|
|
6068
|
+
};
|
|
6069
|
+
|
|
6070
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6071
|
+
/**
|
|
6072
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6073
|
+
*/
|
|
6074
|
+
eventSignatures?: Array<string>;
|
|
6075
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6076
|
+
/**
|
|
6077
|
+
* 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.
|
|
6078
|
+
*/
|
|
6079
|
+
keys: Array<string>;
|
|
6080
|
+
/**
|
|
6081
|
+
* Sub-events to monitor
|
|
6082
|
+
*/
|
|
6083
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6084
|
+
/**
|
|
6085
|
+
* Balance threshold filter
|
|
6086
|
+
*/
|
|
6087
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6088
|
+
};
|
|
6089
|
+
|
|
6090
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
5406
6091
|
id: string;
|
|
5407
|
-
|
|
5408
|
-
|
|
6092
|
+
url: string;
|
|
6093
|
+
chainId: string;
|
|
6094
|
+
status: WebhookStatusType;
|
|
6095
|
+
createdAt: number;
|
|
6096
|
+
name: string;
|
|
6097
|
+
description: string;
|
|
6098
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6099
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6100
|
+
};
|
|
6101
|
+
|
|
6102
|
+
declare enum ValidatorActivityEventType {
|
|
6103
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6104
|
+
}
|
|
6105
|
+
|
|
6106
|
+
/**
|
|
6107
|
+
* The type of key to monitor for the validator activity event type.
|
|
6108
|
+
*/
|
|
6109
|
+
declare enum ValidatorActivityKeyType {
|
|
6110
|
+
NODE_ID = "nodeId",
|
|
6111
|
+
SUBNET_ID = "subnetId"
|
|
6112
|
+
}
|
|
6113
|
+
|
|
6114
|
+
type ValidatorActivitySubEvents = {
|
|
5409
6115
|
/**
|
|
5410
|
-
*
|
|
6116
|
+
* Array of validator activity sub-event types
|
|
5411
6117
|
*/
|
|
5412
|
-
|
|
6118
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6119
|
+
};
|
|
6120
|
+
|
|
6121
|
+
type ValidatorActivityMetadata = {
|
|
5413
6122
|
/**
|
|
5414
|
-
*
|
|
6123
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5415
6124
|
*/
|
|
5416
|
-
|
|
6125
|
+
eventSignatures?: Array<string>;
|
|
6126
|
+
keyType: ValidatorActivityKeyType;
|
|
6127
|
+
/**
|
|
6128
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6129
|
+
*/
|
|
6130
|
+
keys: Array<string>;
|
|
6131
|
+
/**
|
|
6132
|
+
* Sub-events to monitor
|
|
6133
|
+
*/
|
|
6134
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6135
|
+
/**
|
|
6136
|
+
* Array of node IDs to filter the events
|
|
6137
|
+
*/
|
|
6138
|
+
nodeIds?: Array<string>;
|
|
6139
|
+
/**
|
|
6140
|
+
* Array of subnet IDs to filter the events
|
|
6141
|
+
*/
|
|
6142
|
+
subnetIds?: Array<string>;
|
|
6143
|
+
/**
|
|
6144
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6145
|
+
*/
|
|
6146
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6147
|
+
};
|
|
6148
|
+
|
|
6149
|
+
type ValidatorActivityResponse = {
|
|
6150
|
+
id: string;
|
|
5417
6151
|
url: string;
|
|
5418
6152
|
chainId: string;
|
|
5419
6153
|
status: WebhookStatusType;
|
|
5420
6154
|
createdAt: number;
|
|
5421
6155
|
name: string;
|
|
5422
6156
|
description: string;
|
|
6157
|
+
eventType: ValidatorActivityEventType;
|
|
6158
|
+
metadata: ValidatorActivityMetadata;
|
|
5423
6159
|
};
|
|
5424
6160
|
|
|
5425
6161
|
type ListWebhooksResponse = {
|
|
@@ -5427,8 +6163,31 @@ type ListWebhooksResponse = {
|
|
|
5427
6163
|
* 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.
|
|
5428
6164
|
*/
|
|
5429
6165
|
nextPageToken?: string;
|
|
5430
|
-
webhooks: Array<
|
|
6166
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6167
|
+
};
|
|
6168
|
+
|
|
6169
|
+
declare enum PrimaryNetworkType {
|
|
6170
|
+
MAINNET = "mainnet",
|
|
6171
|
+
FUJI = "fuji"
|
|
6172
|
+
}
|
|
6173
|
+
|
|
6174
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6175
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6176
|
+
url: string;
|
|
6177
|
+
name?: string;
|
|
6178
|
+
description?: string;
|
|
6179
|
+
network: PrimaryNetworkType;
|
|
6180
|
+
chainId: string;
|
|
6181
|
+
/**
|
|
6182
|
+
* Metadata for platform address activity event
|
|
6183
|
+
*/
|
|
6184
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5431
6185
|
};
|
|
6186
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6187
|
+
enum eventType {
|
|
6188
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
5432
6191
|
|
|
5433
6192
|
type SharedSecretsResponse = {
|
|
5434
6193
|
secret: string;
|
|
@@ -5446,6 +6205,23 @@ type UpdateWebhookRequest = {
|
|
|
5446
6205
|
includeLogs?: boolean;
|
|
5447
6206
|
};
|
|
5448
6207
|
|
|
6208
|
+
type ValidatorActivityRequest = {
|
|
6209
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6210
|
+
url: string;
|
|
6211
|
+
name?: string;
|
|
6212
|
+
description?: string;
|
|
6213
|
+
network: PrimaryNetworkType;
|
|
6214
|
+
/**
|
|
6215
|
+
* Metadata for platform validator activity event
|
|
6216
|
+
*/
|
|
6217
|
+
metadata: ValidatorActivityMetadata;
|
|
6218
|
+
};
|
|
6219
|
+
declare namespace ValidatorActivityRequest {
|
|
6220
|
+
enum eventType {
|
|
6221
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6222
|
+
}
|
|
6223
|
+
}
|
|
6224
|
+
|
|
5449
6225
|
declare enum WebhookStatus {
|
|
5450
6226
|
ACTIVE = "active",
|
|
5451
6227
|
INACTIVE = "inactive"
|
|
@@ -5457,12 +6233,12 @@ declare class WebhooksService {
|
|
|
5457
6233
|
/**
|
|
5458
6234
|
* Create a webhook
|
|
5459
6235
|
* Create a new webhook.
|
|
5460
|
-
* @returns
|
|
6236
|
+
* @returns any Successful response
|
|
5461
6237
|
* @throws ApiError
|
|
5462
6238
|
*/
|
|
5463
6239
|
createWebhook({ requestBody, }: {
|
|
5464
|
-
requestBody:
|
|
5465
|
-
}): CancelablePromise<
|
|
6240
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6241
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5466
6242
|
/**
|
|
5467
6243
|
* List webhooks
|
|
5468
6244
|
* Lists webhooks for the user.
|
|
@@ -5486,7 +6262,7 @@ declare class WebhooksService {
|
|
|
5486
6262
|
/**
|
|
5487
6263
|
* Get a webhook by ID
|
|
5488
6264
|
* Retrieves a webhook by ID.
|
|
5489
|
-
* @returns
|
|
6265
|
+
* @returns any Successful response
|
|
5490
6266
|
* @throws ApiError
|
|
5491
6267
|
*/
|
|
5492
6268
|
getWebhook({ id, }: {
|
|
@@ -5494,11 +6270,11 @@ declare class WebhooksService {
|
|
|
5494
6270
|
* The webhook identifier.
|
|
5495
6271
|
*/
|
|
5496
6272
|
id: string;
|
|
5497
|
-
}): CancelablePromise<
|
|
6273
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5498
6274
|
/**
|
|
5499
6275
|
* Deactivate a webhook
|
|
5500
6276
|
* Deactivates a webhook by ID.
|
|
5501
|
-
* @returns
|
|
6277
|
+
* @returns any Successful response
|
|
5502
6278
|
* @throws ApiError
|
|
5503
6279
|
*/
|
|
5504
6280
|
deactivateWebhook({ id, }: {
|
|
@@ -5506,11 +6282,11 @@ declare class WebhooksService {
|
|
|
5506
6282
|
* The webhook identifier.
|
|
5507
6283
|
*/
|
|
5508
6284
|
id: string;
|
|
5509
|
-
}): CancelablePromise<
|
|
6285
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5510
6286
|
/**
|
|
5511
6287
|
* Update a webhook
|
|
5512
6288
|
* Updates an existing webhook.
|
|
5513
|
-
* @returns
|
|
6289
|
+
* @returns any Successful response
|
|
5514
6290
|
* @throws ApiError
|
|
5515
6291
|
*/
|
|
5516
6292
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5519,14 +6295,14 @@ declare class WebhooksService {
|
|
|
5519
6295
|
*/
|
|
5520
6296
|
id: string;
|
|
5521
6297
|
requestBody: UpdateWebhookRequest;
|
|
5522
|
-
}): CancelablePromise<
|
|
6298
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5523
6299
|
/**
|
|
5524
|
-
* Generate a shared secret
|
|
5525
|
-
* Generates a new shared secret.
|
|
6300
|
+
* Generate or rotate a shared secret
|
|
6301
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5526
6302
|
* @returns SharedSecretsResponse Successful response
|
|
5527
6303
|
* @throws ApiError
|
|
5528
6304
|
*/
|
|
5529
|
-
|
|
6305
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5530
6306
|
/**
|
|
5531
6307
|
* Get a shared secret
|
|
5532
6308
|
* Get a previously generated shared secret.
|
|
@@ -5535,9 +6311,9 @@ declare class WebhooksService {
|
|
|
5535
6311
|
*/
|
|
5536
6312
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5537
6313
|
/**
|
|
5538
|
-
* Add addresses to webhook
|
|
5539
|
-
* Add addresses to webhook.
|
|
5540
|
-
* @returns
|
|
6314
|
+
* Add addresses to EVM activity webhook
|
|
6315
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6316
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5541
6317
|
* @throws ApiError
|
|
5542
6318
|
*/
|
|
5543
6319
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5546,11 +6322,11 @@ declare class WebhooksService {
|
|
|
5546
6322
|
*/
|
|
5547
6323
|
id: string;
|
|
5548
6324
|
requestBody: AddressesChangeRequest;
|
|
5549
|
-
}): CancelablePromise<
|
|
6325
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5550
6326
|
/**
|
|
5551
|
-
* Remove addresses from webhook
|
|
5552
|
-
* Remove addresses from webhook.
|
|
5553
|
-
* @returns
|
|
6327
|
+
* Remove addresses from EVM activity webhook
|
|
6328
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6329
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5554
6330
|
* @throws ApiError
|
|
5555
6331
|
*/
|
|
5556
6332
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5559,10 +6335,10 @@ declare class WebhooksService {
|
|
|
5559
6335
|
*/
|
|
5560
6336
|
id: string;
|
|
5561
6337
|
requestBody: AddressesChangeRequest;
|
|
5562
|
-
}): CancelablePromise<
|
|
6338
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5563
6339
|
/**
|
|
5564
|
-
* List adresses by
|
|
5565
|
-
* List adresses by webhook.
|
|
6340
|
+
* List adresses by EVM activity webhooks
|
|
6341
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5566
6342
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5567
6343
|
* @throws ApiError
|
|
5568
6344
|
*/
|
|
@@ -5584,6 +6360,7 @@ declare class WebhooksService {
|
|
|
5584
6360
|
|
|
5585
6361
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5586
6362
|
declare class Glacier {
|
|
6363
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5587
6364
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5588
6365
|
readonly default: DefaultService;
|
|
5589
6366
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5592,7 +6369,9 @@ declare class Glacier {
|
|
|
5592
6369
|
readonly evmContracts: EvmContractsService;
|
|
5593
6370
|
readonly evmTransactions: EvmTransactionsService;
|
|
5594
6371
|
readonly healthCheck: HealthCheckService;
|
|
6372
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5595
6373
|
readonly nfTs: NfTsService;
|
|
6374
|
+
readonly notifications: NotificationsService;
|
|
5596
6375
|
readonly operations: OperationsService;
|
|
5597
6376
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5598
6377
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5625,6 +6404,17 @@ declare class ApiError extends Error {
|
|
|
5625
6404
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5626
6405
|
}
|
|
5627
6406
|
|
|
6407
|
+
type AccessListData = {
|
|
6408
|
+
/**
|
|
6409
|
+
* Access Address
|
|
6410
|
+
*/
|
|
6411
|
+
accessAddresses: string;
|
|
6412
|
+
/**
|
|
6413
|
+
* Storage keys
|
|
6414
|
+
*/
|
|
6415
|
+
storageKeys: Array<string>;
|
|
6416
|
+
};
|
|
6417
|
+
|
|
5628
6418
|
type BadGateway = {
|
|
5629
6419
|
/**
|
|
5630
6420
|
* The error message describing the reason for the exception
|
|
@@ -5659,6 +6449,76 @@ type DataListChainsResponse = {
|
|
|
5659
6449
|
chains: Array<ChainInfo>;
|
|
5660
6450
|
};
|
|
5661
6451
|
|
|
6452
|
+
type ERCToken = {
|
|
6453
|
+
/**
|
|
6454
|
+
* Token contract address
|
|
6455
|
+
*/
|
|
6456
|
+
address: string;
|
|
6457
|
+
/**
|
|
6458
|
+
* Token name
|
|
6459
|
+
*/
|
|
6460
|
+
name: string;
|
|
6461
|
+
/**
|
|
6462
|
+
* Token symbol
|
|
6463
|
+
*/
|
|
6464
|
+
symbol: string;
|
|
6465
|
+
/**
|
|
6466
|
+
* Token decimals
|
|
6467
|
+
*/
|
|
6468
|
+
decimals: number;
|
|
6469
|
+
/**
|
|
6470
|
+
* Value including decimals
|
|
6471
|
+
*/
|
|
6472
|
+
valueWithDecimals: string;
|
|
6473
|
+
};
|
|
6474
|
+
|
|
6475
|
+
type ERCTransfer = {
|
|
6476
|
+
/**
|
|
6477
|
+
* Transaction hash
|
|
6478
|
+
*/
|
|
6479
|
+
transactionHash: string;
|
|
6480
|
+
/**
|
|
6481
|
+
* Transfer type
|
|
6482
|
+
*/
|
|
6483
|
+
type: string;
|
|
6484
|
+
/**
|
|
6485
|
+
* Sender address
|
|
6486
|
+
*/
|
|
6487
|
+
from: string;
|
|
6488
|
+
/**
|
|
6489
|
+
* Recipient address
|
|
6490
|
+
*/
|
|
6491
|
+
to: string;
|
|
6492
|
+
/**
|
|
6493
|
+
* Amount transferred
|
|
6494
|
+
*/
|
|
6495
|
+
value: string;
|
|
6496
|
+
/**
|
|
6497
|
+
* Token Id
|
|
6498
|
+
*/
|
|
6499
|
+
tokenId?: string;
|
|
6500
|
+
/**
|
|
6501
|
+
* Block timestamp
|
|
6502
|
+
*/
|
|
6503
|
+
blockTimestamp: number;
|
|
6504
|
+
/**
|
|
6505
|
+
* Log index
|
|
6506
|
+
*/
|
|
6507
|
+
logIndex: number;
|
|
6508
|
+
/**
|
|
6509
|
+
* erc20 Token details
|
|
6510
|
+
*/
|
|
6511
|
+
erc20Token?: ERCToken;
|
|
6512
|
+
/**
|
|
6513
|
+
* erc721 Token details
|
|
6514
|
+
*/
|
|
6515
|
+
erc721Token?: ERCToken;
|
|
6516
|
+
/**
|
|
6517
|
+
* erc1155 Token details
|
|
6518
|
+
*/
|
|
6519
|
+
erc1155Token?: ERCToken;
|
|
6520
|
+
};
|
|
6521
|
+
|
|
5662
6522
|
type Forbidden = {
|
|
5663
6523
|
/**
|
|
5664
6524
|
* The error message describing the reason for the exception
|
|
@@ -5689,6 +6549,64 @@ type InternalServerError = {
|
|
|
5689
6549
|
error: string;
|
|
5690
6550
|
};
|
|
5691
6551
|
|
|
6552
|
+
type Log = {
|
|
6553
|
+
/**
|
|
6554
|
+
* Contract address
|
|
6555
|
+
*/
|
|
6556
|
+
address: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* First topic
|
|
6559
|
+
*/
|
|
6560
|
+
topic0: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Second topic (optional)
|
|
6563
|
+
*/
|
|
6564
|
+
topic1?: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Third topic (optional)
|
|
6567
|
+
*/
|
|
6568
|
+
topic2?: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Fourth topic (optional)
|
|
6571
|
+
*/
|
|
6572
|
+
topic3?: string;
|
|
6573
|
+
/**
|
|
6574
|
+
* Event data
|
|
6575
|
+
*/
|
|
6576
|
+
data: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* Transaction index
|
|
6579
|
+
*/
|
|
6580
|
+
transactionIndex: number;
|
|
6581
|
+
/**
|
|
6582
|
+
* Log index
|
|
6583
|
+
*/
|
|
6584
|
+
logIndex: number;
|
|
6585
|
+
/**
|
|
6586
|
+
* Indicates if the log was removed
|
|
6587
|
+
*/
|
|
6588
|
+
removed: boolean;
|
|
6589
|
+
};
|
|
6590
|
+
|
|
6591
|
+
type NetworkTokenInfo = {
|
|
6592
|
+
/**
|
|
6593
|
+
* Token name
|
|
6594
|
+
*/
|
|
6595
|
+
tokenName?: string;
|
|
6596
|
+
/**
|
|
6597
|
+
* Token symbol
|
|
6598
|
+
*/
|
|
6599
|
+
tokenSymbol?: string;
|
|
6600
|
+
/**
|
|
6601
|
+
* Token decimals
|
|
6602
|
+
*/
|
|
6603
|
+
tokenDecimals?: number;
|
|
6604
|
+
/**
|
|
6605
|
+
* Value including decimals
|
|
6606
|
+
*/
|
|
6607
|
+
valueWithDecimals?: string;
|
|
6608
|
+
};
|
|
6609
|
+
|
|
5692
6610
|
type NextPageToken = {
|
|
5693
6611
|
/**
|
|
5694
6612
|
* 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.
|
|
@@ -5741,6 +6659,163 @@ type TooManyRequests = {
|
|
|
5741
6659
|
error: string;
|
|
5742
6660
|
};
|
|
5743
6661
|
|
|
6662
|
+
type WebhookInternalTransaction = {
|
|
6663
|
+
/**
|
|
6664
|
+
* Sender address
|
|
6665
|
+
*/
|
|
6666
|
+
from: string;
|
|
6667
|
+
/**
|
|
6668
|
+
* Recipient address
|
|
6669
|
+
*/
|
|
6670
|
+
to: string;
|
|
6671
|
+
/**
|
|
6672
|
+
* Internal transaction type
|
|
6673
|
+
*/
|
|
6674
|
+
internalTxType: string;
|
|
6675
|
+
/**
|
|
6676
|
+
* Value transferred
|
|
6677
|
+
*/
|
|
6678
|
+
value: string;
|
|
6679
|
+
/**
|
|
6680
|
+
* Gas used
|
|
6681
|
+
*/
|
|
6682
|
+
gasUsed: string;
|
|
6683
|
+
/**
|
|
6684
|
+
* Gas limit
|
|
6685
|
+
*/
|
|
6686
|
+
gasLimit: string;
|
|
6687
|
+
/**
|
|
6688
|
+
* Transaction hash
|
|
6689
|
+
*/
|
|
6690
|
+
transactionHash: string;
|
|
6691
|
+
};
|
|
6692
|
+
|
|
6693
|
+
type Transaction = {
|
|
6694
|
+
/**
|
|
6695
|
+
* Block hash of the transaction
|
|
6696
|
+
*/
|
|
6697
|
+
blockHash: string;
|
|
6698
|
+
/**
|
|
6699
|
+
* Block number of the transaction
|
|
6700
|
+
*/
|
|
6701
|
+
blockNumber: string;
|
|
6702
|
+
/**
|
|
6703
|
+
* Sender address
|
|
6704
|
+
*/
|
|
6705
|
+
from: string;
|
|
6706
|
+
/**
|
|
6707
|
+
* Gas limit for the transaction
|
|
6708
|
+
*/
|
|
6709
|
+
gas: string;
|
|
6710
|
+
/**
|
|
6711
|
+
* Gas price used
|
|
6712
|
+
*/
|
|
6713
|
+
gasPrice: string;
|
|
6714
|
+
/**
|
|
6715
|
+
* Maximum fee per gas
|
|
6716
|
+
*/
|
|
6717
|
+
maxFeePerGas: string;
|
|
6718
|
+
/**
|
|
6719
|
+
* Maximum priority fee per gas
|
|
6720
|
+
*/
|
|
6721
|
+
maxPriorityFeePerGas: string;
|
|
6722
|
+
/**
|
|
6723
|
+
* Transaction hash
|
|
6724
|
+
*/
|
|
6725
|
+
txHash: string;
|
|
6726
|
+
/**
|
|
6727
|
+
* Transaction status
|
|
6728
|
+
*/
|
|
6729
|
+
txStatus: string;
|
|
6730
|
+
/**
|
|
6731
|
+
* Input data
|
|
6732
|
+
*/
|
|
6733
|
+
input: string;
|
|
6734
|
+
/**
|
|
6735
|
+
* Nonce value
|
|
6736
|
+
*/
|
|
6737
|
+
nonce: string;
|
|
6738
|
+
/**
|
|
6739
|
+
* Recipient address
|
|
6740
|
+
*/
|
|
6741
|
+
to: string;
|
|
6742
|
+
/**
|
|
6743
|
+
* Transaction index
|
|
6744
|
+
*/
|
|
6745
|
+
transactionIndex: number;
|
|
6746
|
+
/**
|
|
6747
|
+
* Value transferred in the transaction
|
|
6748
|
+
*/
|
|
6749
|
+
value: string;
|
|
6750
|
+
/**
|
|
6751
|
+
* Transaction type
|
|
6752
|
+
*/
|
|
6753
|
+
type: number;
|
|
6754
|
+
/**
|
|
6755
|
+
* Chain ID of the network
|
|
6756
|
+
*/
|
|
6757
|
+
chainId: string;
|
|
6758
|
+
/**
|
|
6759
|
+
* Cumulative gas used
|
|
6760
|
+
*/
|
|
6761
|
+
receiptCumulativeGasUsed: string;
|
|
6762
|
+
/**
|
|
6763
|
+
* Gas used
|
|
6764
|
+
*/
|
|
6765
|
+
receiptGasUsed: string;
|
|
6766
|
+
/**
|
|
6767
|
+
* Effective gas price
|
|
6768
|
+
*/
|
|
6769
|
+
receiptEffectiveGasPrice: string;
|
|
6770
|
+
/**
|
|
6771
|
+
* Receipt root
|
|
6772
|
+
*/
|
|
6773
|
+
receiptRoot: string;
|
|
6774
|
+
/**
|
|
6775
|
+
* Block timestamp
|
|
6776
|
+
*/
|
|
6777
|
+
blockTimestamp: number;
|
|
6778
|
+
/**
|
|
6779
|
+
* Contract address (optional)
|
|
6780
|
+
*/
|
|
6781
|
+
contractAddress?: string;
|
|
6782
|
+
/**
|
|
6783
|
+
* ERC20 transfers
|
|
6784
|
+
*/
|
|
6785
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6786
|
+
/**
|
|
6787
|
+
* ERC721 transfers
|
|
6788
|
+
*/
|
|
6789
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6790
|
+
/**
|
|
6791
|
+
* ERC1155 transfers
|
|
6792
|
+
*/
|
|
6793
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6794
|
+
/**
|
|
6795
|
+
* Internal transactions (optional)
|
|
6796
|
+
*/
|
|
6797
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6798
|
+
/**
|
|
6799
|
+
* Access list (optional)
|
|
6800
|
+
*/
|
|
6801
|
+
accessList?: Array<AccessListData>;
|
|
6802
|
+
/**
|
|
6803
|
+
* Network token info (optional)
|
|
6804
|
+
*/
|
|
6805
|
+
networkToken?: NetworkTokenInfo;
|
|
6806
|
+
};
|
|
6807
|
+
|
|
6808
|
+
type TransactionEvent = {
|
|
6809
|
+
/**
|
|
6810
|
+
* Transaction details
|
|
6811
|
+
*/
|
|
6812
|
+
transaction: Transaction;
|
|
6813
|
+
/**
|
|
6814
|
+
* Array of log events
|
|
6815
|
+
*/
|
|
6816
|
+
logs?: Array<Log>;
|
|
6817
|
+
};
|
|
6818
|
+
|
|
5744
6819
|
type Unauthorized = {
|
|
5745
6820
|
/**
|
|
5746
6821
|
* The error message describing the reason for the exception
|
|
@@ -5756,4 +6831,43 @@ type Unauthorized = {
|
|
|
5756
6831
|
error: string;
|
|
5757
6832
|
};
|
|
5758
6833
|
|
|
5759
|
-
|
|
6834
|
+
type WebhookAddressActivityResponse = {
|
|
6835
|
+
/**
|
|
6836
|
+
* Webhook ID
|
|
6837
|
+
*/
|
|
6838
|
+
webhookId: string;
|
|
6839
|
+
/**
|
|
6840
|
+
* Event type
|
|
6841
|
+
*/
|
|
6842
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6843
|
+
/**
|
|
6844
|
+
* Message ID
|
|
6845
|
+
*/
|
|
6846
|
+
messageId: string;
|
|
6847
|
+
/**
|
|
6848
|
+
* Event details
|
|
6849
|
+
*/
|
|
6850
|
+
event: TransactionEvent;
|
|
6851
|
+
};
|
|
6852
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6853
|
+
/**
|
|
6854
|
+
* Event type
|
|
6855
|
+
*/
|
|
6856
|
+
enum eventType {
|
|
6857
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6858
|
+
}
|
|
6859
|
+
}
|
|
6860
|
+
|
|
6861
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6862
|
+
constructor(config: OpenAPIConfig);
|
|
6863
|
+
/**
|
|
6864
|
+
* Request method
|
|
6865
|
+
* @param options The request options from the service
|
|
6866
|
+
* @returns CancelablePromise<T>
|
|
6867
|
+
* @throws ApiError
|
|
6868
|
+
*/
|
|
6869
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6870
|
+
}
|
|
6871
|
+
|
|
6872
|
+
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 };
|
|
6873
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, 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, 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 };
|