@avalabs/glacier-sdk 3.1.0-canary.60ee0a4.0 → 3.1.0-canary.65dcb91.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 +1191 -156
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
- 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 +5 -1
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- 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/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +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 +16 -17
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +6 -2
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +1 -1
- package/esm/generated/models/ListAddressChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +1 -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 +1 -1
- 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 +4 -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 +21 -9
- package/esm/generated/models/PChainUtxo.d.ts +28 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- 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 +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +3 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +1 -1
- 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 +1 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- 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/EvmChainsService.d.ts +2 -2
- 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 +20 -3
- package/esm/generated/services/PrimaryNetworkService.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 +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +40 -3
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -151,11 +151,11 @@ type LogsResponseDTO = {
|
|
|
151
151
|
declare enum Network {
|
|
152
152
|
MAINNET = "mainnet",
|
|
153
153
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
154
|
+
TESTNET = "testnet"
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
159
|
REQUEST_PATH = "requestPath",
|
|
160
160
|
RESPONSE_CODE = "responseCode",
|
|
161
161
|
COUNTRY = "country",
|
|
@@ -163,13 +163,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
163
|
USER_AGENT = "userAgent"
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
167
|
HOURLY = "hourly",
|
|
174
168
|
DAILY = "daily",
|
|
175
169
|
WEEKLY = "weekly",
|
|
@@ -222,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
216
|
RPC_METHOD = "rpcMethod",
|
|
223
217
|
RESPONSE_CODE = "responseCode",
|
|
224
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
225
223
|
NONE = "None"
|
|
226
224
|
}
|
|
227
225
|
}
|
|
@@ -237,6 +235,43 @@ type RpcMetrics = {
|
|
|
237
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
236
|
};
|
|
239
237
|
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
239
|
+
/**
|
|
240
|
+
* Duration in which the metrics value is aggregated
|
|
241
|
+
*/
|
|
242
|
+
aggregateDuration: string;
|
|
243
|
+
/**
|
|
244
|
+
* Metrics values
|
|
245
|
+
*/
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
240
275
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
276
|
/**
|
|
242
277
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +486,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
486
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
487
|
* @throws ApiError
|
|
453
488
|
*/
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
490
|
+
/**
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
493
|
+
*/
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
*/
|
|
498
|
+
startTimestamp?: number;
|
|
499
|
+
/**
|
|
500
|
+
* 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.
|
|
501
|
+
*/
|
|
502
|
+
endTimestamp?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Query param for the criterion used for grouping metrics
|
|
505
|
+
*/
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
507
|
+
/**
|
|
508
|
+
* Filter data by chain ID.
|
|
509
|
+
*/
|
|
510
|
+
chainId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Filter data by response status code.
|
|
513
|
+
*/
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
454
532
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
533
|
/**
|
|
456
534
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +567,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
567
|
/**
|
|
490
568
|
* Get usage metrics for the Primary Network RPC
|
|
491
569
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
571
|
* @throws ApiError
|
|
494
572
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
574
|
/**
|
|
497
575
|
* Either mainnet or testnet/fuji.
|
|
498
576
|
*/
|
|
@@ -501,7 +579,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
579
|
* Time interval granularity for data aggregation for subnet
|
|
502
580
|
* rpc metrics
|
|
503
581
|
*/
|
|
504
|
-
timeInterval?:
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
583
|
/**
|
|
506
584
|
* 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
585
|
*/
|
|
@@ -523,18 +601,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
601
|
*/
|
|
524
602
|
requestPath?: string;
|
|
525
603
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
604
|
+
* 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
605
|
*/
|
|
528
606
|
country?: string;
|
|
529
607
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
609
|
*/
|
|
532
610
|
continent?: string;
|
|
533
611
|
/**
|
|
534
612
|
* Filter data by User Agent.
|
|
535
613
|
*/
|
|
536
614
|
userAgent?: string;
|
|
537
|
-
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
620
|
}
|
|
539
621
|
|
|
540
622
|
declare class DefaultService {
|
|
@@ -782,16 +864,16 @@ type Erc20TokenBalance = {
|
|
|
782
864
|
*/
|
|
783
865
|
balanceValue?: Money;
|
|
784
866
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
867
|
+
* 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
868
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
870
|
};
|
|
789
871
|
declare namespace Erc20TokenBalance {
|
|
790
872
|
enum ercType {
|
|
791
873
|
ERC_20 = "ERC-20"
|
|
792
874
|
}
|
|
793
875
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
876
|
+
* 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
877
|
*/
|
|
796
878
|
enum tokenReputation {
|
|
797
879
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
886
968
|
*/
|
|
887
969
|
pageToken?: string;
|
|
888
970
|
/**
|
|
889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
971
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
890
972
|
*/
|
|
891
973
|
pageSize?: number;
|
|
892
974
|
/**
|
|
@@ -924,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
924
1006
|
*/
|
|
925
1007
|
pageToken?: string;
|
|
926
1008
|
/**
|
|
927
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1009
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
928
1010
|
*/
|
|
929
1011
|
pageSize?: number;
|
|
930
1012
|
/**
|
|
@@ -960,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
960
1042
|
*/
|
|
961
1043
|
pageToken?: string;
|
|
962
1044
|
/**
|
|
963
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1045
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
964
1046
|
*/
|
|
965
1047
|
pageSize?: number;
|
|
966
1048
|
/**
|
|
@@ -990,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
990
1072
|
*/
|
|
991
1073
|
pageToken?: string;
|
|
992
1074
|
/**
|
|
993
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
994
1076
|
*/
|
|
995
1077
|
pageSize?: number;
|
|
996
1078
|
/**
|
|
@@ -1387,7 +1469,7 @@ declare class EvmChainsService {
|
|
|
1387
1469
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1388
1470
|
/**
|
|
1389
1471
|
* List chains
|
|
1390
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1391
1473
|
* @returns ListChainsResponse Successful response
|
|
1392
1474
|
* @throws ApiError
|
|
1393
1475
|
*/
|
|
@@ -1403,7 +1485,7 @@ declare class EvmChainsService {
|
|
|
1403
1485
|
}): CancelablePromise<ListChainsResponse>;
|
|
1404
1486
|
/**
|
|
1405
1487
|
* Get chain information
|
|
1406
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1407
1489
|
* @returns GetChainResponse Successful response
|
|
1408
1490
|
* @throws ApiError
|
|
1409
1491
|
*/
|
|
@@ -1646,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1646
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1647
1729
|
*/
|
|
1648
1730
|
address: string;
|
|
1649
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1650
1732
|
ercType: Erc1155Contract.ercType;
|
|
1651
1733
|
/**
|
|
1652
1734
|
* The contract symbol.
|
|
@@ -1677,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1677
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1678
1760
|
*/
|
|
1679
1761
|
address: string;
|
|
1680
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1681
1763
|
ercType: Erc20Contract.ercType;
|
|
1682
1764
|
/**
|
|
1683
1765
|
* The contract symbol.
|
|
@@ -1712,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1712
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1713
1795
|
*/
|
|
1714
1796
|
address: string;
|
|
1715
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1716
1798
|
ercType: Erc721Contract.ercType;
|
|
1717
1799
|
/**
|
|
1718
1800
|
* The contract symbol.
|
|
@@ -1742,7 +1824,7 @@ type UnknownContract = {
|
|
|
1742
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1743
1825
|
*/
|
|
1744
1826
|
address: string;
|
|
1745
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1746
1828
|
ercType: UnknownContract.ercType;
|
|
1747
1829
|
};
|
|
1748
1830
|
declare namespace UnknownContract {
|
|
@@ -1960,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1960
2042
|
CALL = "CALL",
|
|
1961
2043
|
CREATE = "CREATE",
|
|
1962
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1963
2046
|
CALLCODE = "CALLCODE",
|
|
1964
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1965
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -2022,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
2022
2105
|
*/
|
|
2023
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2024
2107
|
/**
|
|
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
|
|
2108
|
+
* 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
2109
|
*/
|
|
2027
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2028
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2138,31 +2221,33 @@ type ListErc721TransactionsResponse = {
|
|
|
2138
2221
|
|
|
2139
2222
|
type InternalTransaction = {
|
|
2140
2223
|
/**
|
|
2141
|
-
*
|
|
2224
|
+
* Sender address
|
|
2142
2225
|
*/
|
|
2143
|
-
|
|
2226
|
+
from: string;
|
|
2144
2227
|
/**
|
|
2145
|
-
*
|
|
2228
|
+
* Recipient address
|
|
2146
2229
|
*/
|
|
2147
|
-
|
|
2230
|
+
to: string;
|
|
2148
2231
|
/**
|
|
2149
|
-
*
|
|
2232
|
+
* Internal transaction type
|
|
2150
2233
|
*/
|
|
2151
|
-
|
|
2234
|
+
internalTxType: string;
|
|
2152
2235
|
/**
|
|
2153
|
-
*
|
|
2236
|
+
* Value transferred
|
|
2154
2237
|
*/
|
|
2155
|
-
txHash: string;
|
|
2156
|
-
from: RichAddress;
|
|
2157
|
-
to: RichAddress;
|
|
2158
|
-
internalTxType: InternalTransactionOpCall;
|
|
2159
2238
|
value: string;
|
|
2160
2239
|
/**
|
|
2161
|
-
*
|
|
2240
|
+
* Gas used
|
|
2162
2241
|
*/
|
|
2163
|
-
isReverted: boolean;
|
|
2164
2242
|
gasUsed: string;
|
|
2243
|
+
/**
|
|
2244
|
+
* Gas limit
|
|
2245
|
+
*/
|
|
2165
2246
|
gasLimit: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Transaction hash
|
|
2249
|
+
*/
|
|
2250
|
+
transactionHash: string;
|
|
2166
2251
|
};
|
|
2167
2252
|
|
|
2168
2253
|
type ListInternalTransactionsResponse = {
|
|
@@ -2191,7 +2276,7 @@ type TransactionDetails = {
|
|
|
2191
2276
|
*/
|
|
2192
2277
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2193
2278
|
/**
|
|
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
|
|
2279
|
+
* 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
2280
|
*/
|
|
2196
2281
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2197
2282
|
};
|
|
@@ -2490,7 +2575,7 @@ declare class EvmTransactionsService {
|
|
|
2490
2575
|
* List internal transactions
|
|
2491
2576
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2492
2577
|
*
|
|
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.
|
|
2578
|
+
* 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
2579
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2495
2580
|
* @throws ApiError
|
|
2496
2581
|
*/
|
|
@@ -2586,68 +2671,204 @@ declare class EvmTransactionsService {
|
|
|
2586
2671
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2672
|
}
|
|
2588
2673
|
|
|
2674
|
+
type HealthIndicatorResultDto = {
|
|
2675
|
+
/**
|
|
2676
|
+
* Status of the health indicator.
|
|
2677
|
+
*/
|
|
2678
|
+
status?: HealthIndicatorResultDto.status;
|
|
2679
|
+
};
|
|
2680
|
+
declare namespace HealthIndicatorResultDto {
|
|
2681
|
+
/**
|
|
2682
|
+
* Status of the health indicator.
|
|
2683
|
+
*/
|
|
2684
|
+
enum status {
|
|
2685
|
+
UP = "up",
|
|
2686
|
+
DOWN = "down"
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
type HealthCheckResultDto = {
|
|
2691
|
+
status?: HealthCheckResultDto.status;
|
|
2692
|
+
info?: any | null;
|
|
2693
|
+
error?: any | null;
|
|
2694
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2695
|
+
};
|
|
2696
|
+
declare namespace HealthCheckResultDto {
|
|
2697
|
+
enum status {
|
|
2698
|
+
ERROR = "error",
|
|
2699
|
+
OK = "ok",
|
|
2700
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2589
2704
|
declare class HealthCheckService {
|
|
2590
2705
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2706
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2707
|
/**
|
|
2593
2708
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2709
|
+
* Check the health of the service.
|
|
2710
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2595
2711
|
* @throws ApiError
|
|
2596
2712
|
*/
|
|
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
|
-
}>;
|
|
2713
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2603
2714
|
}
|
|
2604
2715
|
|
|
2605
|
-
type
|
|
2716
|
+
type IcmDestinationTransaction = {
|
|
2717
|
+
txHash: string;
|
|
2718
|
+
timestamp: number;
|
|
2719
|
+
gasSpent: string;
|
|
2720
|
+
rewardRedeemer: string;
|
|
2721
|
+
delivererAddress: string;
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
type IcmReceipt = {
|
|
2725
|
+
receivedMessageNonce: string;
|
|
2726
|
+
relayerRewardAddress: string;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
type IcmRewardDetails = {
|
|
2730
|
+
/**
|
|
2731
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2732
|
+
*/
|
|
2733
|
+
address: string;
|
|
2734
|
+
/**
|
|
2735
|
+
* The contract name.
|
|
2736
|
+
*/
|
|
2737
|
+
name: string;
|
|
2738
|
+
/**
|
|
2739
|
+
* The contract symbol.
|
|
2740
|
+
*/
|
|
2741
|
+
symbol: string;
|
|
2742
|
+
/**
|
|
2743
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2744
|
+
*/
|
|
2745
|
+
decimals: number;
|
|
2746
|
+
/**
|
|
2747
|
+
* The logo uri for the address.
|
|
2748
|
+
*/
|
|
2749
|
+
logoUri?: string;
|
|
2750
|
+
ercType: IcmRewardDetails.ercType;
|
|
2751
|
+
/**
|
|
2752
|
+
* The token price, if available.
|
|
2753
|
+
*/
|
|
2754
|
+
price?: Money;
|
|
2755
|
+
value: string;
|
|
2756
|
+
};
|
|
2757
|
+
declare namespace IcmRewardDetails {
|
|
2758
|
+
enum ercType {
|
|
2759
|
+
ERC_20 = "ERC-20"
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
type IcmSourceTransaction = {
|
|
2764
|
+
txHash: string;
|
|
2765
|
+
timestamp: number;
|
|
2766
|
+
gasSpent: string;
|
|
2767
|
+
};
|
|
2768
|
+
|
|
2769
|
+
type DeliveredIcmMessage = {
|
|
2770
|
+
messageId: string;
|
|
2771
|
+
icmContractAddress: string;
|
|
2772
|
+
sourceBlockchainId: string;
|
|
2773
|
+
destinationBlockchainId: string;
|
|
2774
|
+
sourceEvmChainId: string;
|
|
2775
|
+
destinationEvmChainId: string;
|
|
2776
|
+
messageNonce: string;
|
|
2777
|
+
from: string;
|
|
2778
|
+
to: string;
|
|
2779
|
+
data?: string;
|
|
2780
|
+
messageExecuted: boolean;
|
|
2781
|
+
receipts: Array<IcmReceipt>;
|
|
2782
|
+
receiptDelivered: boolean;
|
|
2783
|
+
rewardDetails: IcmRewardDetails;
|
|
2784
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2785
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2786
|
+
status: DeliveredIcmMessage.status;
|
|
2787
|
+
};
|
|
2788
|
+
declare namespace DeliveredIcmMessage {
|
|
2789
|
+
enum status {
|
|
2790
|
+
DELIVERED = "delivered"
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2795
|
+
messageId: string;
|
|
2796
|
+
icmContractAddress: string;
|
|
2797
|
+
sourceBlockchainId: string;
|
|
2798
|
+
destinationBlockchainId: string;
|
|
2799
|
+
sourceEvmChainId: string;
|
|
2800
|
+
destinationEvmChainId: string;
|
|
2801
|
+
messageNonce: string;
|
|
2802
|
+
from: string;
|
|
2803
|
+
to: string;
|
|
2804
|
+
data?: string;
|
|
2805
|
+
messageExecuted: boolean;
|
|
2806
|
+
receipts: Array<IcmReceipt>;
|
|
2807
|
+
receiptDelivered: boolean;
|
|
2808
|
+
rewardDetails: IcmRewardDetails;
|
|
2809
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2810
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2811
|
+
};
|
|
2812
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2813
|
+
enum status {
|
|
2814
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
type PendingIcmMessage = {
|
|
2819
|
+
messageId: string;
|
|
2820
|
+
icmContractAddress: string;
|
|
2821
|
+
sourceBlockchainId: string;
|
|
2822
|
+
destinationBlockchainId: string;
|
|
2823
|
+
sourceEvmChainId: string;
|
|
2824
|
+
destinationEvmChainId: string;
|
|
2825
|
+
messageNonce: string;
|
|
2826
|
+
from: string;
|
|
2827
|
+
to: string;
|
|
2828
|
+
data?: string;
|
|
2829
|
+
messageExecuted: boolean;
|
|
2830
|
+
receipts: Array<IcmReceipt>;
|
|
2831
|
+
receiptDelivered: boolean;
|
|
2832
|
+
rewardDetails: IcmRewardDetails;
|
|
2833
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2834
|
+
status: PendingIcmMessage.status;
|
|
2835
|
+
};
|
|
2836
|
+
declare namespace PendingIcmMessage {
|
|
2837
|
+
enum status {
|
|
2838
|
+
PENDING = "pending"
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
type ListIcmMessagesResponse = {
|
|
2606
2843
|
/**
|
|
2607
2844
|
* 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
2845
|
*/
|
|
2609
2846
|
nextPageToken?: string;
|
|
2610
|
-
|
|
2847
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2611
2848
|
};
|
|
2612
2849
|
|
|
2613
|
-
declare class
|
|
2850
|
+
declare class InterchainMessagingService {
|
|
2614
2851
|
readonly httpRequest: BaseHttpRequest;
|
|
2615
2852
|
constructor(httpRequest: BaseHttpRequest);
|
|
2616
2853
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2854
|
+
* Get an ICM message
|
|
2855
|
+
* Gets an ICM message by teleporter message ID.
|
|
2619
2856
|
* @returns any Successful response
|
|
2620
2857
|
* @throws ApiError
|
|
2621
2858
|
*/
|
|
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;
|
|
2859
|
+
getIcmMessage({ messageId, }: {
|
|
2631
2860
|
/**
|
|
2632
|
-
*
|
|
2861
|
+
* The teleporter message ID of the ICM message.
|
|
2633
2862
|
*/
|
|
2634
|
-
|
|
2635
|
-
}): CancelablePromise<
|
|
2863
|
+
messageId: string;
|
|
2864
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2636
2865
|
/**
|
|
2637
|
-
* List
|
|
2638
|
-
* Lists
|
|
2639
|
-
* @returns
|
|
2866
|
+
* List ICM messages
|
|
2867
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2868
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2640
2869
|
* @throws ApiError
|
|
2641
2870
|
*/
|
|
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;
|
|
2871
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2651
2872
|
/**
|
|
2652
2873
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
2874
|
*/
|
|
@@ -2656,11 +2877,116 @@ declare class NfTsService {
|
|
|
2656
2877
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
2878
|
*/
|
|
2658
2879
|
pageSize?: number;
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2880
|
+
/**
|
|
2881
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2882
|
+
*/
|
|
2883
|
+
sourceBlockchainId?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2886
|
+
*/
|
|
2887
|
+
destinationBlockchainId?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2890
|
+
*/
|
|
2891
|
+
blockchainId?: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* The address of the recipient of the ICM message.
|
|
2894
|
+
*/
|
|
2895
|
+
to?: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* The address of the sender of the ICM message.
|
|
2898
|
+
*/
|
|
2899
|
+
from?: string;
|
|
2900
|
+
/**
|
|
2901
|
+
* Either mainnet or testnet/fuji.
|
|
2902
|
+
*/
|
|
2903
|
+
network?: Network;
|
|
2904
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2905
|
+
/**
|
|
2906
|
+
* List ICM messages by address
|
|
2907
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2908
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2909
|
+
* @throws ApiError
|
|
2910
|
+
*/
|
|
2911
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2912
|
+
/**
|
|
2913
|
+
* An EVM address.
|
|
2914
|
+
*/
|
|
2915
|
+
address: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2918
|
+
*/
|
|
2919
|
+
pageToken?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2922
|
+
*/
|
|
2923
|
+
pageSize?: number;
|
|
2924
|
+
/**
|
|
2925
|
+
* Either mainnet or testnet/fuji.
|
|
2926
|
+
*/
|
|
2927
|
+
network?: Network;
|
|
2928
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
type ListNftTokens = {
|
|
2932
|
+
/**
|
|
2933
|
+
* 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.
|
|
2934
|
+
*/
|
|
2935
|
+
nextPageToken?: string;
|
|
2936
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
declare class NfTsService {
|
|
2940
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2941
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2942
|
+
/**
|
|
2943
|
+
* Reindex NFT metadata
|
|
2944
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2945
|
+
* @returns any Successful response
|
|
2946
|
+
* @throws ApiError
|
|
2947
|
+
*/
|
|
2948
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2949
|
+
/**
|
|
2950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2951
|
+
*/
|
|
2952
|
+
chainId: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Contract address on the relevant chain.
|
|
2955
|
+
*/
|
|
2956
|
+
address: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* TokenId on the contract
|
|
2959
|
+
*/
|
|
2960
|
+
tokenId: string;
|
|
2961
|
+
}): CancelablePromise<any>;
|
|
2962
|
+
/**
|
|
2963
|
+
* List tokens
|
|
2964
|
+
* Lists tokens for an NFT contract.
|
|
2965
|
+
* @returns ListNftTokens Successful response
|
|
2966
|
+
* @throws ApiError
|
|
2967
|
+
*/
|
|
2968
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2969
|
+
/**
|
|
2970
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2971
|
+
*/
|
|
2972
|
+
chainId: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Contract address on the relevant chain.
|
|
2975
|
+
*/
|
|
2976
|
+
address: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2979
|
+
*/
|
|
2980
|
+
pageToken?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2983
|
+
*/
|
|
2984
|
+
pageSize?: number;
|
|
2985
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2986
|
+
/**
|
|
2987
|
+
* Get token details
|
|
2988
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2989
|
+
* @returns any Successful response
|
|
2664
2990
|
* @throws ApiError
|
|
2665
2991
|
*/
|
|
2666
2992
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
@@ -2679,6 +3005,108 @@ declare class NfTsService {
|
|
|
2679
3005
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2680
3006
|
}
|
|
2681
3007
|
|
|
3008
|
+
type AccessRequest = {
|
|
3009
|
+
/**
|
|
3010
|
+
* The email address to send the access token to
|
|
3011
|
+
*/
|
|
3012
|
+
email: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* The captcha to verify the user
|
|
3015
|
+
*/
|
|
3016
|
+
captcha: string;
|
|
3017
|
+
};
|
|
3018
|
+
|
|
3019
|
+
type NotificationsResponse = {
|
|
3020
|
+
message: string;
|
|
3021
|
+
};
|
|
3022
|
+
|
|
3023
|
+
type SubscribeRequest = {
|
|
3024
|
+
/**
|
|
3025
|
+
* The access token to use for authentication
|
|
3026
|
+
*/
|
|
3027
|
+
accessToken: string;
|
|
3028
|
+
/**
|
|
3029
|
+
* The node ID to subscribe to
|
|
3030
|
+
*/
|
|
3031
|
+
nodeId: string;
|
|
3032
|
+
/**
|
|
3033
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3034
|
+
*/
|
|
3035
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3038
|
+
type SubscriptionsRequest = {
|
|
3039
|
+
/**
|
|
3040
|
+
* The access token to use for authentication
|
|
3041
|
+
*/
|
|
3042
|
+
accessToken: string;
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
type SubscriptionsResponse = {
|
|
3046
|
+
/**
|
|
3047
|
+
* The email address of the user
|
|
3048
|
+
*/
|
|
3049
|
+
email: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* The subscriptions of the user
|
|
3052
|
+
*/
|
|
3053
|
+
subscriptions: Record<string, {
|
|
3054
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3055
|
+
}>;
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
type UnsubscribeRequest = {
|
|
3059
|
+
/**
|
|
3060
|
+
* The access token to use for authentication
|
|
3061
|
+
*/
|
|
3062
|
+
accessToken: string;
|
|
3063
|
+
/**
|
|
3064
|
+
* The node ID to subscribe to
|
|
3065
|
+
*/
|
|
3066
|
+
nodeId: string;
|
|
3067
|
+
};
|
|
3068
|
+
|
|
3069
|
+
declare class NotificationsService {
|
|
3070
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3071
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3072
|
+
/**
|
|
3073
|
+
* Access Notifications
|
|
3074
|
+
* Access notifications.
|
|
3075
|
+
* @returns NotificationsResponse Successful response
|
|
3076
|
+
* @throws ApiError
|
|
3077
|
+
*/
|
|
3078
|
+
access({ requestBody, }: {
|
|
3079
|
+
requestBody: AccessRequest;
|
|
3080
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3081
|
+
/**
|
|
3082
|
+
* Subscribe to Notifications
|
|
3083
|
+
* Subscribe to receive notifications.
|
|
3084
|
+
* @returns NotificationsResponse Successful response
|
|
3085
|
+
* @throws ApiError
|
|
3086
|
+
*/
|
|
3087
|
+
subscribe({ requestBody, }: {
|
|
3088
|
+
requestBody: SubscribeRequest;
|
|
3089
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3090
|
+
/**
|
|
3091
|
+
* Unsubscribe from Notifications
|
|
3092
|
+
* Unsubscribe from receiving notifications.
|
|
3093
|
+
* @returns NotificationsResponse Successful response
|
|
3094
|
+
* @throws ApiError
|
|
3095
|
+
*/
|
|
3096
|
+
unsubscribe({ requestBody, }: {
|
|
3097
|
+
requestBody: UnsubscribeRequest;
|
|
3098
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3099
|
+
/**
|
|
3100
|
+
* Get Subscriptions
|
|
3101
|
+
* Get subscriptions.
|
|
3102
|
+
* @returns SubscriptionsResponse Successful response
|
|
3103
|
+
* @throws ApiError
|
|
3104
|
+
*/
|
|
3105
|
+
subscriptions({ requestBody, }: {
|
|
3106
|
+
requestBody: SubscriptionsRequest;
|
|
3107
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
2682
3110
|
type EvmNetworkOptions = {
|
|
2683
3111
|
addresses: Array<string>;
|
|
2684
3112
|
includeChains: Array<string>;
|
|
@@ -2767,7 +3195,7 @@ type OperationStatusResponse = {
|
|
|
2767
3195
|
operationType: OperationType;
|
|
2768
3196
|
operationStatus: OperationStatus;
|
|
2769
3197
|
message?: string;
|
|
2770
|
-
metadata
|
|
3198
|
+
metadata?: TransactionExportMetadata;
|
|
2771
3199
|
createdAtTimestamp: number;
|
|
2772
3200
|
updatedAtTimestamp: number;
|
|
2773
3201
|
};
|
|
@@ -2800,6 +3228,19 @@ declare class OperationsService {
|
|
|
2800
3228
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2801
3229
|
}
|
|
2802
3230
|
|
|
3231
|
+
type Blockchain = {
|
|
3232
|
+
createBlockTimestamp: number;
|
|
3233
|
+
createBlockNumber: string;
|
|
3234
|
+
blockchainId: string;
|
|
3235
|
+
vmId: string;
|
|
3236
|
+
subnetId: string;
|
|
3237
|
+
blockchainName: string;
|
|
3238
|
+
/**
|
|
3239
|
+
* 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.
|
|
3240
|
+
*/
|
|
3241
|
+
evmChainId: number;
|
|
3242
|
+
};
|
|
3243
|
+
|
|
2803
3244
|
declare enum BlockchainIds {
|
|
2804
3245
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2805
3246
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -2831,16 +3272,31 @@ type DelegatorsDetails = {
|
|
|
2831
3272
|
};
|
|
2832
3273
|
|
|
2833
3274
|
type StakingDistribution = {
|
|
3275
|
+
/**
|
|
3276
|
+
* AvalancheGo version for the validator node.
|
|
3277
|
+
*/
|
|
2834
3278
|
version: string;
|
|
3279
|
+
/**
|
|
3280
|
+
* The total amount staked by validators using this version.
|
|
3281
|
+
*/
|
|
2835
3282
|
amountStaked: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* The number of validators using this version.
|
|
3285
|
+
*/
|
|
2836
3286
|
validatorCount: number;
|
|
2837
3287
|
};
|
|
2838
3288
|
|
|
2839
3289
|
type ValidatorsDetails = {
|
|
2840
3290
|
validatorCount: number;
|
|
2841
3291
|
totalAmountStaked: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3294
|
+
*/
|
|
2842
3295
|
estimatedAnnualStakingReward: string;
|
|
2843
3296
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3297
|
+
/**
|
|
3298
|
+
* Ratio of total active stake amount to the current supply.
|
|
3299
|
+
*/
|
|
2844
3300
|
stakingRatio: string;
|
|
2845
3301
|
};
|
|
2846
3302
|
|
|
@@ -2849,15 +3305,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2849
3305
|
delegatorDetails: DelegatorsDetails;
|
|
2850
3306
|
};
|
|
2851
3307
|
|
|
2852
|
-
type Blockchain = {
|
|
2853
|
-
createBlockTimestamp: number;
|
|
2854
|
-
createBlockNumber: string;
|
|
2855
|
-
blockchainId: string;
|
|
2856
|
-
vmId: string;
|
|
2857
|
-
subnetId: string;
|
|
2858
|
-
blockchainName: string;
|
|
2859
|
-
};
|
|
2860
|
-
|
|
2861
3308
|
type ListBlockchainsResponse = {
|
|
2862
3309
|
/**
|
|
2863
3310
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2892,7 +3339,13 @@ type CompletedDelegatorDetails = {
|
|
|
2892
3339
|
delegationFee: string;
|
|
2893
3340
|
startTimestamp: number;
|
|
2894
3341
|
endTimestamp: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Total rewards distributed for the successful delegation.
|
|
3344
|
+
*/
|
|
2895
3345
|
grossReward: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3348
|
+
*/
|
|
2896
3349
|
netReward: string;
|
|
2897
3350
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2898
3351
|
};
|
|
@@ -2910,7 +3363,13 @@ type PendingDelegatorDetails = {
|
|
|
2910
3363
|
delegationFee: string;
|
|
2911
3364
|
startTimestamp: number;
|
|
2912
3365
|
endTimestamp: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3368
|
+
*/
|
|
2913
3369
|
estimatedGrossReward: string;
|
|
3370
|
+
/**
|
|
3371
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3372
|
+
*/
|
|
2914
3373
|
estimatedNetReward: string;
|
|
2915
3374
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2916
3375
|
};
|
|
@@ -2941,6 +3400,10 @@ type L1ValidatorDetailsFull = {
|
|
|
2941
3400
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2942
3401
|
*/
|
|
2943
3402
|
validationId: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3405
|
+
*/
|
|
3406
|
+
validationIdHex: string;
|
|
2944
3407
|
nodeId: string;
|
|
2945
3408
|
subnetId: string;
|
|
2946
3409
|
/**
|
|
@@ -2977,10 +3440,6 @@ type ListL1ValidatorsResponse = {
|
|
|
2977
3440
|
validators: Array<L1ValidatorDetailsFull>;
|
|
2978
3441
|
};
|
|
2979
3442
|
|
|
2980
|
-
type BlockchainInfo = {
|
|
2981
|
-
blockchainId: string;
|
|
2982
|
-
};
|
|
2983
|
-
|
|
2984
3443
|
type L1ValidatorManagerDetails = {
|
|
2985
3444
|
blockchainId: string;
|
|
2986
3445
|
contractAddress: string;
|
|
@@ -3036,7 +3495,7 @@ type Subnet = {
|
|
|
3036
3495
|
* L1 validator manager details.
|
|
3037
3496
|
*/
|
|
3038
3497
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3039
|
-
blockchains: Array<
|
|
3498
|
+
blockchains: Array<Blockchain>;
|
|
3040
3499
|
};
|
|
3041
3500
|
|
|
3042
3501
|
type ListSubnetsResponse = {
|
|
@@ -3052,6 +3511,29 @@ type BlsCredentials = {
|
|
|
3052
3511
|
proofOfPossession: string;
|
|
3053
3512
|
};
|
|
3054
3513
|
|
|
3514
|
+
type Geolocation = {
|
|
3515
|
+
/**
|
|
3516
|
+
* The name of the validator node.
|
|
3517
|
+
*/
|
|
3518
|
+
city: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* The city of the validator node.
|
|
3521
|
+
*/
|
|
3522
|
+
country: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* The country code of the validator node.
|
|
3525
|
+
*/
|
|
3526
|
+
countryCode: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* The latitude of the validator node.
|
|
3529
|
+
*/
|
|
3530
|
+
latitude: number;
|
|
3531
|
+
/**
|
|
3532
|
+
* The longitude of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
longitude: number;
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3055
3537
|
type Rewards = {
|
|
3056
3538
|
validationRewardAmount: string;
|
|
3057
3539
|
delegationRewardAmount: string;
|
|
@@ -3083,6 +3565,9 @@ type ActiveValidatorDetails = {
|
|
|
3083
3565
|
nodeId: string;
|
|
3084
3566
|
subnetId: string;
|
|
3085
3567
|
amountStaked: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3570
|
+
*/
|
|
3086
3571
|
delegationFee?: string;
|
|
3087
3572
|
startTimestamp: number;
|
|
3088
3573
|
endTimestamp: number;
|
|
@@ -3090,15 +3575,37 @@ type ActiveValidatorDetails = {
|
|
|
3090
3575
|
* Present for AddPermissionlessValidatorTx
|
|
3091
3576
|
*/
|
|
3092
3577
|
blsCredentials?: BlsCredentials;
|
|
3578
|
+
/**
|
|
3579
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3580
|
+
*/
|
|
3093
3581
|
stakePercentage: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* The number of delegators linked to the validator.
|
|
3584
|
+
*/
|
|
3094
3585
|
delegatorCount: number;
|
|
3586
|
+
/**
|
|
3587
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3588
|
+
*/
|
|
3095
3589
|
amountDelegated?: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3592
|
+
*/
|
|
3096
3593
|
uptimePerformance: number;
|
|
3097
3594
|
avalancheGoVersion?: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3597
|
+
*/
|
|
3098
3598
|
delegationCapacity?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3601
|
+
*/
|
|
3099
3602
|
potentialRewards: Rewards;
|
|
3100
3603
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3101
3604
|
validatorHealth: ValidatorHealthDetails;
|
|
3605
|
+
/**
|
|
3606
|
+
* The geographical location of the validator node, if available.
|
|
3607
|
+
*/
|
|
3608
|
+
geolocation: Geolocation | null;
|
|
3102
3609
|
};
|
|
3103
3610
|
declare namespace ActiveValidatorDetails {
|
|
3104
3611
|
enum validationStatus {
|
|
@@ -3111,6 +3618,9 @@ type CompletedValidatorDetails = {
|
|
|
3111
3618
|
nodeId: string;
|
|
3112
3619
|
subnetId: string;
|
|
3113
3620
|
amountStaked: string;
|
|
3621
|
+
/**
|
|
3622
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3623
|
+
*/
|
|
3114
3624
|
delegationFee?: string;
|
|
3115
3625
|
startTimestamp: number;
|
|
3116
3626
|
endTimestamp: number;
|
|
@@ -3134,6 +3644,9 @@ type PendingValidatorDetails = {
|
|
|
3134
3644
|
nodeId: string;
|
|
3135
3645
|
subnetId: string;
|
|
3136
3646
|
amountStaked: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3649
|
+
*/
|
|
3137
3650
|
delegationFee?: string;
|
|
3138
3651
|
startTimestamp: number;
|
|
3139
3652
|
endTimestamp: number;
|
|
@@ -3154,6 +3667,9 @@ type RemovedValidatorDetails = {
|
|
|
3154
3667
|
nodeId: string;
|
|
3155
3668
|
subnetId: string;
|
|
3156
3669
|
amountStaked: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3672
|
+
*/
|
|
3157
3673
|
delegationFee?: string;
|
|
3158
3674
|
startTimestamp: number;
|
|
3159
3675
|
endTimestamp: number;
|
|
@@ -3161,7 +3677,13 @@ type RemovedValidatorDetails = {
|
|
|
3161
3677
|
* Present for AddPermissionlessValidatorTx
|
|
3162
3678
|
*/
|
|
3163
3679
|
blsCredentials?: BlsCredentials;
|
|
3680
|
+
/**
|
|
3681
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3682
|
+
*/
|
|
3164
3683
|
removeTxHash: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3686
|
+
*/
|
|
3165
3687
|
removeTimestamp: number;
|
|
3166
3688
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
3167
3689
|
};
|
|
@@ -3320,6 +3842,22 @@ declare class PrimaryNetworkService {
|
|
|
3320
3842
|
*/
|
|
3321
3843
|
sortOrder?: SortOrder;
|
|
3322
3844
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3845
|
+
/**
|
|
3846
|
+
* Get blockchain details by ID
|
|
3847
|
+
* Get details of the blockchain registered on the network.
|
|
3848
|
+
* @returns Blockchain Successful response
|
|
3849
|
+
* @throws ApiError
|
|
3850
|
+
*/
|
|
3851
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3852
|
+
/**
|
|
3853
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3854
|
+
*/
|
|
3855
|
+
blockchainId: string;
|
|
3856
|
+
/**
|
|
3857
|
+
* Either mainnet or testnet/fuji.
|
|
3858
|
+
*/
|
|
3859
|
+
network: Network;
|
|
3860
|
+
}): CancelablePromise<Blockchain>;
|
|
3323
3861
|
/**
|
|
3324
3862
|
* List subnets
|
|
3325
3863
|
* Lists all subnets registered on the network.
|
|
@@ -3362,7 +3900,7 @@ declare class PrimaryNetworkService {
|
|
|
3362
3900
|
}): CancelablePromise<Subnet>;
|
|
3363
3901
|
/**
|
|
3364
3902
|
* List validators
|
|
3365
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3903
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3366
3904
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3367
3905
|
* @throws ApiError
|
|
3368
3906
|
*/
|
|
@@ -3380,7 +3918,7 @@ declare class PrimaryNetworkService {
|
|
|
3380
3918
|
*/
|
|
3381
3919
|
pageSize?: number;
|
|
3382
3920
|
/**
|
|
3383
|
-
* A comma separated list of node ids to filter by.
|
|
3921
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3384
3922
|
*/
|
|
3385
3923
|
nodeIds?: string;
|
|
3386
3924
|
/**
|
|
@@ -3524,7 +4062,7 @@ declare class PrimaryNetworkService {
|
|
|
3524
4062
|
/**
|
|
3525
4063
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3526
4064
|
*/
|
|
3527
|
-
l1ValidationId?:
|
|
4065
|
+
l1ValidationId?: string;
|
|
3528
4066
|
includeInactiveL1Validators?: boolean;
|
|
3529
4067
|
/**
|
|
3530
4068
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -4307,6 +4845,10 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4307
4845
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4308
4846
|
*/
|
|
4309
4847
|
validationId: string;
|
|
4848
|
+
/**
|
|
4849
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4850
|
+
*/
|
|
4851
|
+
validationIdHex: string;
|
|
4310
4852
|
nodeId: string;
|
|
4311
4853
|
subnetId: string;
|
|
4312
4854
|
/**
|
|
@@ -4318,7 +4860,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4318
4860
|
*/
|
|
4319
4861
|
remainingBalance: number;
|
|
4320
4862
|
/**
|
|
4321
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4863
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4322
4864
|
*/
|
|
4323
4865
|
balanceChange?: number;
|
|
4324
4866
|
blsCredentials?: Record<string, any>;
|
|
@@ -4348,6 +4890,9 @@ declare enum PChainTransactionType {
|
|
|
4348
4890
|
UNKNOWN = "UNKNOWN"
|
|
4349
4891
|
}
|
|
4350
4892
|
|
|
4893
|
+
/**
|
|
4894
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4895
|
+
*/
|
|
4351
4896
|
declare enum UtxoType {
|
|
4352
4897
|
STAKE = "STAKE",
|
|
4353
4898
|
TRANSFER = "TRANSFER"
|
|
@@ -4385,16 +4930,43 @@ type PChainUtxo = {
|
|
|
4385
4930
|
assetId: string;
|
|
4386
4931
|
blockNumber: string;
|
|
4387
4932
|
blockTimestamp: number;
|
|
4933
|
+
/**
|
|
4934
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4935
|
+
*/
|
|
4388
4936
|
consumingBlockNumber?: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4939
|
+
*/
|
|
4389
4940
|
consumingBlockTimestamp?: number;
|
|
4941
|
+
/**
|
|
4942
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4943
|
+
*/
|
|
4390
4944
|
platformLocktime?: number;
|
|
4945
|
+
/**
|
|
4946
|
+
* The index of the UTXO in the transaction
|
|
4947
|
+
*/
|
|
4391
4948
|
outputIndex: number;
|
|
4392
4949
|
rewardType?: RewardType;
|
|
4950
|
+
/**
|
|
4951
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4952
|
+
*/
|
|
4393
4953
|
stakeableLocktime?: number;
|
|
4394
4954
|
staked?: boolean;
|
|
4955
|
+
/**
|
|
4956
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4957
|
+
*/
|
|
4395
4958
|
threshold?: number;
|
|
4959
|
+
/**
|
|
4960
|
+
* The hash of the transaction that created this UTXO
|
|
4961
|
+
*/
|
|
4396
4962
|
txHash: string;
|
|
4963
|
+
/**
|
|
4964
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4965
|
+
*/
|
|
4397
4966
|
utxoEndTimestamp?: number;
|
|
4967
|
+
/**
|
|
4968
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4969
|
+
*/
|
|
4398
4970
|
utxoStartTimestamp?: number;
|
|
4399
4971
|
utxoType: UtxoType;
|
|
4400
4972
|
};
|
|
@@ -4409,9 +4981,18 @@ type PChainTransaction = {
|
|
|
4409
4981
|
* The block finality timestamp.
|
|
4410
4982
|
*/
|
|
4411
4983
|
blockTimestamp: number;
|
|
4984
|
+
/**
|
|
4985
|
+
* The height of the block in which the transaction was included
|
|
4986
|
+
*/
|
|
4412
4987
|
blockNumber: string;
|
|
4413
4988
|
blockHash: string;
|
|
4989
|
+
/**
|
|
4990
|
+
* The consumed UTXOs of the transaction
|
|
4991
|
+
*/
|
|
4414
4992
|
consumedUtxos: Array<PChainUtxo>;
|
|
4993
|
+
/**
|
|
4994
|
+
* The newly created UTXOs of the transaction
|
|
4995
|
+
*/
|
|
4415
4996
|
emittedUtxos: Array<PChainUtxo>;
|
|
4416
4997
|
/**
|
|
4417
4998
|
* Source chain for an atomic transaction.
|
|
@@ -4422,11 +5003,11 @@ type PChainTransaction = {
|
|
|
4422
5003
|
*/
|
|
4423
5004
|
destinationChain?: string;
|
|
4424
5005
|
/**
|
|
4425
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5006
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4426
5007
|
*/
|
|
4427
5008
|
value: Array<AssetAmount>;
|
|
4428
5009
|
/**
|
|
4429
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5010
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4430
5011
|
*/
|
|
4431
5012
|
amountBurned: Array<AssetAmount>;
|
|
4432
5013
|
/**
|
|
@@ -4434,7 +5015,7 @@ type PChainTransaction = {
|
|
|
4434
5015
|
*/
|
|
4435
5016
|
amountStaked: Array<AssetAmount>;
|
|
4436
5017
|
/**
|
|
4437
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5018
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4438
5019
|
*/
|
|
4439
5020
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4440
5021
|
/**
|
|
@@ -4446,11 +5027,11 @@ type PChainTransaction = {
|
|
|
4446
5027
|
*/
|
|
4447
5028
|
endTimestamp?: number;
|
|
4448
5029
|
/**
|
|
4449
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5030
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4450
5031
|
*/
|
|
4451
5032
|
delegationFeePercent?: string;
|
|
4452
5033
|
/**
|
|
4453
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5034
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4454
5035
|
*/
|
|
4455
5036
|
nodeId?: string;
|
|
4456
5037
|
/**
|
|
@@ -4466,14 +5047,17 @@ type PChainTransaction = {
|
|
|
4466
5047
|
*/
|
|
4467
5048
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4468
5049
|
/**
|
|
4469
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5050
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4470
5051
|
*/
|
|
4471
5052
|
estimatedReward?: string;
|
|
5053
|
+
/**
|
|
5054
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5055
|
+
*/
|
|
4472
5056
|
rewardTxHash?: string;
|
|
4473
5057
|
rewardAddresses?: Array<string>;
|
|
4474
5058
|
memo?: string;
|
|
4475
5059
|
/**
|
|
4476
|
-
*
|
|
5060
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4477
5061
|
*/
|
|
4478
5062
|
stakingTxHash?: string;
|
|
4479
5063
|
/**
|
|
@@ -4481,7 +5065,7 @@ type PChainTransaction = {
|
|
|
4481
5065
|
*/
|
|
4482
5066
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4483
5067
|
/**
|
|
4484
|
-
* Present for AddPermissionlessValidatorTx
|
|
5068
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4485
5069
|
*/
|
|
4486
5070
|
blsCredentials?: BlsCredentials;
|
|
4487
5071
|
};
|
|
@@ -5027,6 +5611,22 @@ declare class SignatureAggregatorService {
|
|
|
5027
5611
|
network: Network;
|
|
5028
5612
|
requestBody: SignatureAggregatorRequest;
|
|
5029
5613
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5614
|
+
/**
|
|
5615
|
+
* Get Aggregated Signatures
|
|
5616
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5617
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5618
|
+
* @throws ApiError
|
|
5619
|
+
*/
|
|
5620
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5621
|
+
/**
|
|
5622
|
+
* Either mainnet or testnet/fuji.
|
|
5623
|
+
*/
|
|
5624
|
+
network: Network;
|
|
5625
|
+
/**
|
|
5626
|
+
* A primary network (P or X chain) transaction hash.
|
|
5627
|
+
*/
|
|
5628
|
+
txHash: string;
|
|
5629
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5030
5630
|
}
|
|
5031
5631
|
|
|
5032
5632
|
type TeleporterDestinationTransaction = {
|
|
@@ -5167,8 +5767,10 @@ declare class TeleporterService {
|
|
|
5167
5767
|
readonly httpRequest: BaseHttpRequest;
|
|
5168
5768
|
constructor(httpRequest: BaseHttpRequest);
|
|
5169
5769
|
/**
|
|
5170
|
-
*
|
|
5171
|
-
* Gets a teleporter message by message ID.
|
|
5770
|
+
* @deprecated
|
|
5771
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5772
|
+
*
|
|
5773
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5172
5774
|
* @returns any Successful response
|
|
5173
5775
|
* @throws ApiError
|
|
5174
5776
|
*/
|
|
@@ -5179,8 +5781,10 @@ declare class TeleporterService {
|
|
|
5179
5781
|
messageId: string;
|
|
5180
5782
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5181
5783
|
/**
|
|
5182
|
-
*
|
|
5183
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5784
|
+
* @deprecated
|
|
5785
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5786
|
+
*
|
|
5787
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5184
5788
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5185
5789
|
* @throws ApiError
|
|
5186
5790
|
*/
|
|
@@ -5219,8 +5823,10 @@ declare class TeleporterService {
|
|
|
5219
5823
|
network?: Network;
|
|
5220
5824
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5221
5825
|
/**
|
|
5222
|
-
*
|
|
5223
|
-
* Lists teleporter messages by address. Ordered by
|
|
5826
|
+
* @deprecated
|
|
5827
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5828
|
+
*
|
|
5829
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5224
5830
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5225
5831
|
* @throws ApiError
|
|
5226
5832
|
*/
|
|
@@ -5262,15 +5868,16 @@ type AddressActivityMetadata = {
|
|
|
5262
5868
|
eventSignatures?: Array<string>;
|
|
5263
5869
|
};
|
|
5264
5870
|
|
|
5265
|
-
declare enum
|
|
5266
|
-
|
|
5871
|
+
declare enum PrimaryNetworkType {
|
|
5872
|
+
MAINNET = "mainnet",
|
|
5873
|
+
FUJI = "fuji"
|
|
5267
5874
|
}
|
|
5268
5875
|
|
|
5269
|
-
type
|
|
5876
|
+
type EVMAddressActivityRequest = {
|
|
5877
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5270
5878
|
url: string;
|
|
5271
5879
|
chainId: string;
|
|
5272
|
-
|
|
5273
|
-
metadata: AddressActivityMetadata;
|
|
5880
|
+
network?: PrimaryNetworkType;
|
|
5274
5881
|
name?: string;
|
|
5275
5882
|
description?: string;
|
|
5276
5883
|
/**
|
|
@@ -5281,25 +5888,34 @@ type CreateWebhookRequest = {
|
|
|
5281
5888
|
* Whether to include logs in the webhook payload.
|
|
5282
5889
|
*/
|
|
5283
5890
|
includeLogs?: boolean;
|
|
5891
|
+
metadata: AddressActivityMetadata;
|
|
5284
5892
|
};
|
|
5893
|
+
declare namespace EVMAddressActivityRequest {
|
|
5894
|
+
enum eventType {
|
|
5895
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5896
|
+
}
|
|
5897
|
+
}
|
|
5285
5898
|
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
addresses: Array<string>;
|
|
5292
|
-
totalAddresses: number;
|
|
5293
|
-
};
|
|
5899
|
+
declare enum EventType {
|
|
5900
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5901
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5902
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5903
|
+
}
|
|
5294
5904
|
|
|
5295
5905
|
declare enum WebhookStatusType {
|
|
5296
5906
|
ACTIVE = "active",
|
|
5297
5907
|
INACTIVE = "inactive"
|
|
5298
5908
|
}
|
|
5299
5909
|
|
|
5300
|
-
type
|
|
5910
|
+
type EVMAddressActivityResponse = {
|
|
5301
5911
|
id: string;
|
|
5302
5912
|
eventType: EventType;
|
|
5913
|
+
url: string;
|
|
5914
|
+
chainId: string;
|
|
5915
|
+
status: WebhookStatusType;
|
|
5916
|
+
createdAt: number;
|
|
5917
|
+
name: string;
|
|
5918
|
+
description: string;
|
|
5303
5919
|
metadata: AddressActivityMetadata;
|
|
5304
5920
|
/**
|
|
5305
5921
|
* Whether to include traces in the webhook payload.
|
|
@@ -5309,12 +5925,109 @@ type WebhookResponse = {
|
|
|
5309
5925
|
* Whether to include logs in the webhook payload.
|
|
5310
5926
|
*/
|
|
5311
5927
|
includeLogs?: boolean;
|
|
5928
|
+
};
|
|
5929
|
+
|
|
5930
|
+
type ListWebhookAddressesResponse = {
|
|
5931
|
+
/**
|
|
5932
|
+
* 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.
|
|
5933
|
+
*/
|
|
5934
|
+
nextPageToken?: string;
|
|
5935
|
+
addresses: Array<string>;
|
|
5936
|
+
totalAddresses: number;
|
|
5937
|
+
};
|
|
5938
|
+
|
|
5939
|
+
/**
|
|
5940
|
+
* The type of key for platform activity depending on the event type
|
|
5941
|
+
*/
|
|
5942
|
+
declare enum PlatformActivityKeyType {
|
|
5943
|
+
ADDRESSES = "addresses",
|
|
5944
|
+
NODE_ID = "nodeId",
|
|
5945
|
+
SUBNET_ID = "subnetId"
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5948
|
+
/**
|
|
5949
|
+
* Array of address activity sub-event types
|
|
5950
|
+
*/
|
|
5951
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5952
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5953
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5954
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
type PlatformActivitySubEvents = {
|
|
5958
|
+
/**
|
|
5959
|
+
* Array of validator activity sub-event types
|
|
5960
|
+
*/
|
|
5961
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5962
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5963
|
+
};
|
|
5964
|
+
|
|
5965
|
+
/**
|
|
5966
|
+
* Type of balance to monitor
|
|
5967
|
+
*/
|
|
5968
|
+
declare enum CommonBalanceType {
|
|
5969
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5970
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5971
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5972
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5973
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5974
|
+
PENDING_STAKED = "pendingStaked",
|
|
5975
|
+
UNLOCKED = "unlocked",
|
|
5976
|
+
LOCKED = "locked",
|
|
5977
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5978
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5981
|
+
type PlatformBalanceThresholdFilter = {
|
|
5982
|
+
balanceType: CommonBalanceType;
|
|
5983
|
+
/**
|
|
5984
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5985
|
+
*/
|
|
5986
|
+
balanceThreshold: string;
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
type PlatformActivityMetadata = {
|
|
5990
|
+
keyType: PlatformActivityKeyType;
|
|
5991
|
+
/**
|
|
5992
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
5993
|
+
*/
|
|
5994
|
+
keys: Array<string>;
|
|
5995
|
+
/**
|
|
5996
|
+
* Sub-events to monitor
|
|
5997
|
+
*/
|
|
5998
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5999
|
+
/**
|
|
6000
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6001
|
+
*/
|
|
6002
|
+
eventSignatures?: Array<string>;
|
|
6003
|
+
/**
|
|
6004
|
+
* Array of node IDs to filter the events
|
|
6005
|
+
*/
|
|
6006
|
+
nodeIds?: Array<string>;
|
|
6007
|
+
/**
|
|
6008
|
+
* Array of subnet IDs to filter the events
|
|
6009
|
+
*/
|
|
6010
|
+
subnetIds?: Array<string>;
|
|
6011
|
+
/**
|
|
6012
|
+
* Balance threshold filter
|
|
6013
|
+
*/
|
|
6014
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6015
|
+
/**
|
|
6016
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6017
|
+
*/
|
|
6018
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6019
|
+
};
|
|
6020
|
+
|
|
6021
|
+
type PlatformActivityResponse = {
|
|
6022
|
+
id: string;
|
|
6023
|
+
eventType: EventType;
|
|
5312
6024
|
url: string;
|
|
5313
6025
|
chainId: string;
|
|
5314
6026
|
status: WebhookStatusType;
|
|
5315
6027
|
createdAt: number;
|
|
5316
6028
|
name: string;
|
|
5317
6029
|
description: string;
|
|
6030
|
+
metadata: PlatformActivityMetadata;
|
|
5318
6031
|
};
|
|
5319
6032
|
|
|
5320
6033
|
type ListWebhooksResponse = {
|
|
@@ -5322,9 +6035,36 @@ type ListWebhooksResponse = {
|
|
|
5322
6035
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5323
6036
|
*/
|
|
5324
6037
|
nextPageToken?: string;
|
|
5325
|
-
webhooks: Array<
|
|
6038
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5326
6039
|
};
|
|
5327
6040
|
|
|
6041
|
+
type PlatformActivityRequest = {
|
|
6042
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6043
|
+
url: string;
|
|
6044
|
+
chainId: string;
|
|
6045
|
+
network?: PrimaryNetworkType;
|
|
6046
|
+
name?: string;
|
|
6047
|
+
description?: string;
|
|
6048
|
+
/**
|
|
6049
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6050
|
+
*/
|
|
6051
|
+
includeInternalTxs?: boolean;
|
|
6052
|
+
/**
|
|
6053
|
+
* Whether to include logs in the webhook payload.
|
|
6054
|
+
*/
|
|
6055
|
+
includeLogs?: boolean;
|
|
6056
|
+
/**
|
|
6057
|
+
* Metadata for platform activity
|
|
6058
|
+
*/
|
|
6059
|
+
metadata: PlatformActivityMetadata;
|
|
6060
|
+
};
|
|
6061
|
+
declare namespace PlatformActivityRequest {
|
|
6062
|
+
enum eventType {
|
|
6063
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6064
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
|
|
5328
6068
|
type SharedSecretsResponse = {
|
|
5329
6069
|
secret: string;
|
|
5330
6070
|
};
|
|
@@ -5352,12 +6092,12 @@ declare class WebhooksService {
|
|
|
5352
6092
|
/**
|
|
5353
6093
|
* Create a webhook
|
|
5354
6094
|
* Create a new webhook.
|
|
5355
|
-
* @returns
|
|
6095
|
+
* @returns any Successful response
|
|
5356
6096
|
* @throws ApiError
|
|
5357
6097
|
*/
|
|
5358
6098
|
createWebhook({ requestBody, }: {
|
|
5359
|
-
requestBody:
|
|
5360
|
-
}): CancelablePromise<
|
|
6099
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5361
6101
|
/**
|
|
5362
6102
|
* List webhooks
|
|
5363
6103
|
* Lists webhooks for the user.
|
|
@@ -5381,7 +6121,7 @@ declare class WebhooksService {
|
|
|
5381
6121
|
/**
|
|
5382
6122
|
* Get a webhook by ID
|
|
5383
6123
|
* Retrieves a webhook by ID.
|
|
5384
|
-
* @returns
|
|
6124
|
+
* @returns any Successful response
|
|
5385
6125
|
* @throws ApiError
|
|
5386
6126
|
*/
|
|
5387
6127
|
getWebhook({ id, }: {
|
|
@@ -5389,11 +6129,11 @@ declare class WebhooksService {
|
|
|
5389
6129
|
* The webhook identifier.
|
|
5390
6130
|
*/
|
|
5391
6131
|
id: string;
|
|
5392
|
-
}): CancelablePromise<
|
|
6132
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5393
6133
|
/**
|
|
5394
6134
|
* Deactivate a webhook
|
|
5395
6135
|
* Deactivates a webhook by ID.
|
|
5396
|
-
* @returns
|
|
6136
|
+
* @returns any Successful response
|
|
5397
6137
|
* @throws ApiError
|
|
5398
6138
|
*/
|
|
5399
6139
|
deactivateWebhook({ id, }: {
|
|
@@ -5401,11 +6141,11 @@ declare class WebhooksService {
|
|
|
5401
6141
|
* The webhook identifier.
|
|
5402
6142
|
*/
|
|
5403
6143
|
id: string;
|
|
5404
|
-
}): CancelablePromise<
|
|
6144
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5405
6145
|
/**
|
|
5406
6146
|
* Update a webhook
|
|
5407
6147
|
* Updates an existing webhook.
|
|
5408
|
-
* @returns
|
|
6148
|
+
* @returns any Successful response
|
|
5409
6149
|
* @throws ApiError
|
|
5410
6150
|
*/
|
|
5411
6151
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5414,14 +6154,14 @@ declare class WebhooksService {
|
|
|
5414
6154
|
*/
|
|
5415
6155
|
id: string;
|
|
5416
6156
|
requestBody: UpdateWebhookRequest;
|
|
5417
|
-
}): CancelablePromise<
|
|
6157
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5418
6158
|
/**
|
|
5419
|
-
* Generate a shared secret
|
|
5420
|
-
* Generates a new shared secret.
|
|
6159
|
+
* Generate or rotate a shared secret
|
|
6160
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5421
6161
|
* @returns SharedSecretsResponse Successful response
|
|
5422
6162
|
* @throws ApiError
|
|
5423
6163
|
*/
|
|
5424
|
-
|
|
6164
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5425
6165
|
/**
|
|
5426
6166
|
* Get a shared secret
|
|
5427
6167
|
* Get a previously generated shared secret.
|
|
@@ -5430,9 +6170,9 @@ declare class WebhooksService {
|
|
|
5430
6170
|
*/
|
|
5431
6171
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5432
6172
|
/**
|
|
5433
|
-
* Add addresses to webhook
|
|
5434
|
-
* Add addresses to webhook.
|
|
5435
|
-
* @returns
|
|
6173
|
+
* Add addresses to EVM activity webhook
|
|
6174
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6175
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5436
6176
|
* @throws ApiError
|
|
5437
6177
|
*/
|
|
5438
6178
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5441,11 +6181,11 @@ declare class WebhooksService {
|
|
|
5441
6181
|
*/
|
|
5442
6182
|
id: string;
|
|
5443
6183
|
requestBody: AddressesChangeRequest;
|
|
5444
|
-
}): CancelablePromise<
|
|
6184
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5445
6185
|
/**
|
|
5446
|
-
* Remove addresses from webhook
|
|
5447
|
-
* Remove addresses from webhook.
|
|
5448
|
-
* @returns
|
|
6186
|
+
* Remove addresses from EVM activity webhook
|
|
6187
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6188
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5449
6189
|
* @throws ApiError
|
|
5450
6190
|
*/
|
|
5451
6191
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5454,10 +6194,10 @@ declare class WebhooksService {
|
|
|
5454
6194
|
*/
|
|
5455
6195
|
id: string;
|
|
5456
6196
|
requestBody: AddressesChangeRequest;
|
|
5457
|
-
}): CancelablePromise<
|
|
6197
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5458
6198
|
/**
|
|
5459
|
-
* List adresses by
|
|
5460
|
-
* List adresses by webhook.
|
|
6199
|
+
* List adresses by EVM activity webhooks
|
|
6200
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5461
6201
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5462
6202
|
* @throws ApiError
|
|
5463
6203
|
*/
|
|
@@ -5487,7 +6227,9 @@ declare class Glacier {
|
|
|
5487
6227
|
readonly evmContracts: EvmContractsService;
|
|
5488
6228
|
readonly evmTransactions: EvmTransactionsService;
|
|
5489
6229
|
readonly healthCheck: HealthCheckService;
|
|
6230
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5490
6231
|
readonly nfTs: NfTsService;
|
|
6232
|
+
readonly notifications: NotificationsService;
|
|
5491
6233
|
readonly operations: OperationsService;
|
|
5492
6234
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5493
6235
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5520,6 +6262,17 @@ declare class ApiError extends Error {
|
|
|
5520
6262
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5521
6263
|
}
|
|
5522
6264
|
|
|
6265
|
+
type AccessListData = {
|
|
6266
|
+
/**
|
|
6267
|
+
* Access Address
|
|
6268
|
+
*/
|
|
6269
|
+
accessAddresses: string;
|
|
6270
|
+
/**
|
|
6271
|
+
* Storage keys
|
|
6272
|
+
*/
|
|
6273
|
+
storageKeys: Array<string>;
|
|
6274
|
+
};
|
|
6275
|
+
|
|
5523
6276
|
type BadGateway = {
|
|
5524
6277
|
/**
|
|
5525
6278
|
* The error message describing the reason for the exception
|
|
@@ -5554,6 +6307,76 @@ type DataListChainsResponse = {
|
|
|
5554
6307
|
chains: Array<ChainInfo>;
|
|
5555
6308
|
};
|
|
5556
6309
|
|
|
6310
|
+
type ERCToken = {
|
|
6311
|
+
/**
|
|
6312
|
+
* Token contract address
|
|
6313
|
+
*/
|
|
6314
|
+
address: string;
|
|
6315
|
+
/**
|
|
6316
|
+
* Token name
|
|
6317
|
+
*/
|
|
6318
|
+
name: string;
|
|
6319
|
+
/**
|
|
6320
|
+
* Token symbol
|
|
6321
|
+
*/
|
|
6322
|
+
symbol: string;
|
|
6323
|
+
/**
|
|
6324
|
+
* Token decimals
|
|
6325
|
+
*/
|
|
6326
|
+
decimals: number;
|
|
6327
|
+
/**
|
|
6328
|
+
* Value including decimals
|
|
6329
|
+
*/
|
|
6330
|
+
valueWithDecimals: string;
|
|
6331
|
+
};
|
|
6332
|
+
|
|
6333
|
+
type ERCTransfer = {
|
|
6334
|
+
/**
|
|
6335
|
+
* Transaction hash
|
|
6336
|
+
*/
|
|
6337
|
+
transactionHash: string;
|
|
6338
|
+
/**
|
|
6339
|
+
* Transfer type
|
|
6340
|
+
*/
|
|
6341
|
+
type: string;
|
|
6342
|
+
/**
|
|
6343
|
+
* Sender address
|
|
6344
|
+
*/
|
|
6345
|
+
from: string;
|
|
6346
|
+
/**
|
|
6347
|
+
* Recipient address
|
|
6348
|
+
*/
|
|
6349
|
+
to: string;
|
|
6350
|
+
/**
|
|
6351
|
+
* Amount transferred
|
|
6352
|
+
*/
|
|
6353
|
+
value: string;
|
|
6354
|
+
/**
|
|
6355
|
+
* Token Id
|
|
6356
|
+
*/
|
|
6357
|
+
tokenId?: string;
|
|
6358
|
+
/**
|
|
6359
|
+
* Block timestamp
|
|
6360
|
+
*/
|
|
6361
|
+
blockTimestamp: number;
|
|
6362
|
+
/**
|
|
6363
|
+
* Log index
|
|
6364
|
+
*/
|
|
6365
|
+
logIndex: number;
|
|
6366
|
+
/**
|
|
6367
|
+
* erc20 Token details
|
|
6368
|
+
*/
|
|
6369
|
+
erc20Token?: ERCToken;
|
|
6370
|
+
/**
|
|
6371
|
+
* erc721 Token details
|
|
6372
|
+
*/
|
|
6373
|
+
erc721Token?: ERCToken;
|
|
6374
|
+
/**
|
|
6375
|
+
* erc1155 Token details
|
|
6376
|
+
*/
|
|
6377
|
+
erc1155Token?: ERCToken;
|
|
6378
|
+
};
|
|
6379
|
+
|
|
5557
6380
|
type Forbidden = {
|
|
5558
6381
|
/**
|
|
5559
6382
|
* The error message describing the reason for the exception
|
|
@@ -5584,6 +6407,64 @@ type InternalServerError = {
|
|
|
5584
6407
|
error: string;
|
|
5585
6408
|
};
|
|
5586
6409
|
|
|
6410
|
+
type Log = {
|
|
6411
|
+
/**
|
|
6412
|
+
* Contract address
|
|
6413
|
+
*/
|
|
6414
|
+
address: string;
|
|
6415
|
+
/**
|
|
6416
|
+
* First topic
|
|
6417
|
+
*/
|
|
6418
|
+
topic0: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Second topic (optional)
|
|
6421
|
+
*/
|
|
6422
|
+
topic1?: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Third topic (optional)
|
|
6425
|
+
*/
|
|
6426
|
+
topic2?: string;
|
|
6427
|
+
/**
|
|
6428
|
+
* Fourth topic (optional)
|
|
6429
|
+
*/
|
|
6430
|
+
topic3?: string;
|
|
6431
|
+
/**
|
|
6432
|
+
* Event data
|
|
6433
|
+
*/
|
|
6434
|
+
data: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Transaction index
|
|
6437
|
+
*/
|
|
6438
|
+
transactionIndex: number;
|
|
6439
|
+
/**
|
|
6440
|
+
* Log index
|
|
6441
|
+
*/
|
|
6442
|
+
logIndex: number;
|
|
6443
|
+
/**
|
|
6444
|
+
* Indicates if the log was removed
|
|
6445
|
+
*/
|
|
6446
|
+
removed: boolean;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
type NetworkTokenInfo = {
|
|
6450
|
+
/**
|
|
6451
|
+
* Token name
|
|
6452
|
+
*/
|
|
6453
|
+
tokenName?: string;
|
|
6454
|
+
/**
|
|
6455
|
+
* Token symbol
|
|
6456
|
+
*/
|
|
6457
|
+
tokenSymbol?: string;
|
|
6458
|
+
/**
|
|
6459
|
+
* Token decimals
|
|
6460
|
+
*/
|
|
6461
|
+
tokenDecimals?: number;
|
|
6462
|
+
/**
|
|
6463
|
+
* Value including decimals
|
|
6464
|
+
*/
|
|
6465
|
+
valueWithDecimals?: string;
|
|
6466
|
+
};
|
|
6467
|
+
|
|
5587
6468
|
type NextPageToken = {
|
|
5588
6469
|
/**
|
|
5589
6470
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5636,6 +6517,132 @@ type TooManyRequests = {
|
|
|
5636
6517
|
error: string;
|
|
5637
6518
|
};
|
|
5638
6519
|
|
|
6520
|
+
type Transaction = {
|
|
6521
|
+
/**
|
|
6522
|
+
* Block hash of the transaction
|
|
6523
|
+
*/
|
|
6524
|
+
blockHash: string;
|
|
6525
|
+
/**
|
|
6526
|
+
* Block number of the transaction
|
|
6527
|
+
*/
|
|
6528
|
+
blockNumber: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Sender address
|
|
6531
|
+
*/
|
|
6532
|
+
from: string;
|
|
6533
|
+
/**
|
|
6534
|
+
* Gas limit for the transaction
|
|
6535
|
+
*/
|
|
6536
|
+
gas: string;
|
|
6537
|
+
/**
|
|
6538
|
+
* Gas price used
|
|
6539
|
+
*/
|
|
6540
|
+
gasPrice: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Maximum fee per gas
|
|
6543
|
+
*/
|
|
6544
|
+
maxFeePerGas: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Maximum priority fee per gas
|
|
6547
|
+
*/
|
|
6548
|
+
maxPriorityFeePerGas: string;
|
|
6549
|
+
/**
|
|
6550
|
+
* Transaction hash
|
|
6551
|
+
*/
|
|
6552
|
+
txHash: string;
|
|
6553
|
+
/**
|
|
6554
|
+
* Transaction status
|
|
6555
|
+
*/
|
|
6556
|
+
txStatus: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Input data
|
|
6559
|
+
*/
|
|
6560
|
+
input: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Nonce value
|
|
6563
|
+
*/
|
|
6564
|
+
nonce: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Recipient address
|
|
6567
|
+
*/
|
|
6568
|
+
to: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Transaction index
|
|
6571
|
+
*/
|
|
6572
|
+
transactionIndex: number;
|
|
6573
|
+
/**
|
|
6574
|
+
* Value transferred in the transaction
|
|
6575
|
+
*/
|
|
6576
|
+
value: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* Transaction type
|
|
6579
|
+
*/
|
|
6580
|
+
type: number;
|
|
6581
|
+
/**
|
|
6582
|
+
* Chain ID of the network
|
|
6583
|
+
*/
|
|
6584
|
+
chainId: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* Cumulative gas used
|
|
6587
|
+
*/
|
|
6588
|
+
receiptCumulativeGasUsed: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Gas used
|
|
6591
|
+
*/
|
|
6592
|
+
receiptGasUsed: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Effective gas price
|
|
6595
|
+
*/
|
|
6596
|
+
receiptEffectiveGasPrice: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Receipt root
|
|
6599
|
+
*/
|
|
6600
|
+
receiptRoot: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Block timestamp
|
|
6603
|
+
*/
|
|
6604
|
+
blockTimestamp: number;
|
|
6605
|
+
/**
|
|
6606
|
+
* Contract address (optional)
|
|
6607
|
+
*/
|
|
6608
|
+
contractAddress?: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* ERC20 transfers
|
|
6611
|
+
*/
|
|
6612
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6613
|
+
/**
|
|
6614
|
+
* ERC721 transfers
|
|
6615
|
+
*/
|
|
6616
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6617
|
+
/**
|
|
6618
|
+
* ERC1155 transfers
|
|
6619
|
+
*/
|
|
6620
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6621
|
+
/**
|
|
6622
|
+
* Internal transactions (optional)
|
|
6623
|
+
*/
|
|
6624
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6625
|
+
/**
|
|
6626
|
+
* Access list (optional)
|
|
6627
|
+
*/
|
|
6628
|
+
accessList?: Array<AccessListData>;
|
|
6629
|
+
/**
|
|
6630
|
+
* Network token info (optional)
|
|
6631
|
+
*/
|
|
6632
|
+
networkToken?: NetworkTokenInfo;
|
|
6633
|
+
};
|
|
6634
|
+
|
|
6635
|
+
type TransactionEvent = {
|
|
6636
|
+
/**
|
|
6637
|
+
* Transaction details
|
|
6638
|
+
*/
|
|
6639
|
+
transaction: Transaction;
|
|
6640
|
+
/**
|
|
6641
|
+
* Array of log events
|
|
6642
|
+
*/
|
|
6643
|
+
logs?: Array<Log>;
|
|
6644
|
+
};
|
|
6645
|
+
|
|
5639
6646
|
type Unauthorized = {
|
|
5640
6647
|
/**
|
|
5641
6648
|
* The error message describing the reason for the exception
|
|
@@ -5651,4 +6658,32 @@ type Unauthorized = {
|
|
|
5651
6658
|
error: string;
|
|
5652
6659
|
};
|
|
5653
6660
|
|
|
5654
|
-
|
|
6661
|
+
type WebhookAddressActivityResponse = {
|
|
6662
|
+
/**
|
|
6663
|
+
* Webhook ID
|
|
6664
|
+
*/
|
|
6665
|
+
webhookId: string;
|
|
6666
|
+
/**
|
|
6667
|
+
* Event type
|
|
6668
|
+
*/
|
|
6669
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6670
|
+
/**
|
|
6671
|
+
* Message ID
|
|
6672
|
+
*/
|
|
6673
|
+
messageId: string;
|
|
6674
|
+
/**
|
|
6675
|
+
* Event details
|
|
6676
|
+
*/
|
|
6677
|
+
event: TransactionEvent;
|
|
6678
|
+
};
|
|
6679
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6680
|
+
/**
|
|
6681
|
+
* Event type
|
|
6682
|
+
*/
|
|
6683
|
+
enum eventType {
|
|
6684
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6685
|
+
}
|
|
6686
|
+
}
|
|
6687
|
+
|
|
6688
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, 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, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, 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, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6689
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, 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, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, 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, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|