@avalabs/glacier-sdk 3.1.0-canary.fcb2044.0 → 3.1.0-canary.fec0caf.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 +1458 -173
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +1 -1
- package/esm/generated/models/Blockchain.d.ts +9 -1
- package/esm/generated/models/BlockchainInfo.d.ts +7 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +1 -1
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +1 -1
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +1 -1
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +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 +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +5 -1
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +1 -1
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +26 -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/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/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 +7 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +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/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +103 -3
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +26 -8
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +26 -1
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +53 -4
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/EventType.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -148,10 +148,26 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
declare enum
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet"
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
152
158
|
RPC_METHOD = "rpcMethod",
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
153
160
|
RESPONSE_CODE = "responseCode",
|
|
154
|
-
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
167
|
+
HOURLY = "hourly",
|
|
168
|
+
DAILY = "daily",
|
|
169
|
+
WEEKLY = "weekly",
|
|
170
|
+
MONTHLY = "monthly"
|
|
155
171
|
}
|
|
156
172
|
|
|
157
173
|
type RpcUsageMetricsValueAggregated = {
|
|
@@ -200,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
200
216
|
RPC_METHOD = "rpcMethod",
|
|
201
217
|
RESPONSE_CODE = "responseCode",
|
|
202
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
203
223
|
NONE = "None"
|
|
204
224
|
}
|
|
205
225
|
}
|
|
@@ -215,20 +235,35 @@ type RpcMetrics = {
|
|
|
215
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
216
236
|
};
|
|
217
237
|
|
|
218
|
-
type
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
219
239
|
/**
|
|
220
240
|
* Duration in which the metrics value is aggregated
|
|
221
241
|
*/
|
|
222
242
|
aggregateDuration: string;
|
|
223
|
-
/**
|
|
224
|
-
* ChainId for which the metrics are aggregated
|
|
225
|
-
*/
|
|
226
|
-
chainId: string;
|
|
227
243
|
/**
|
|
228
244
|
* Metrics values
|
|
229
245
|
*/
|
|
230
246
|
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
231
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
|
+
}
|
|
232
267
|
|
|
233
268
|
declare enum SubnetRpcTimeIntervalGranularity {
|
|
234
269
|
HOURLY = "hourly",
|
|
@@ -237,6 +272,21 @@ declare enum SubnetRpcTimeIntervalGranularity {
|
|
|
237
272
|
MONTHLY = "monthly"
|
|
238
273
|
}
|
|
239
274
|
|
|
275
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
276
|
+
/**
|
|
277
|
+
* Duration in which the metrics value is aggregated
|
|
278
|
+
*/
|
|
279
|
+
aggregateDuration: string;
|
|
280
|
+
/**
|
|
281
|
+
* Metrics values
|
|
282
|
+
*/
|
|
283
|
+
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
240
290
|
declare enum TimeIntervalGranularityExtended {
|
|
241
291
|
MINUTE = "minute",
|
|
242
292
|
HOURLY = "hourly",
|
|
@@ -433,7 +483,50 @@ declare class DataApiUsageMetricsService {
|
|
|
433
483
|
/**
|
|
434
484
|
* Get usage metrics for the Subnet RPC
|
|
435
485
|
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
436
|
-
* @returns
|
|
486
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
487
|
+
* @throws ApiError
|
|
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
|
|
437
530
|
* @throws ApiError
|
|
438
531
|
*/
|
|
439
532
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
@@ -470,7 +563,60 @@ declare class DataApiUsageMetricsService {
|
|
|
470
563
|
* Filter data by Rl Bypass API Token.
|
|
471
564
|
*/
|
|
472
565
|
rlBypassApiToken?: string;
|
|
473
|
-
}): CancelablePromise<
|
|
566
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
567
|
+
/**
|
|
568
|
+
* Get usage metrics for the Primary Network RPC
|
|
569
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
571
|
+
* @throws ApiError
|
|
572
|
+
*/
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
574
|
+
/**
|
|
575
|
+
* Either mainnet or testnet/fuji.
|
|
576
|
+
*/
|
|
577
|
+
network: Network;
|
|
578
|
+
/**
|
|
579
|
+
* Time interval granularity for data aggregation for subnet
|
|
580
|
+
* rpc metrics
|
|
581
|
+
*/
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
583
|
+
/**
|
|
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.
|
|
585
|
+
*/
|
|
586
|
+
startTimestamp?: number;
|
|
587
|
+
/**
|
|
588
|
+
* 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.
|
|
589
|
+
*/
|
|
590
|
+
endTimestamp?: number;
|
|
591
|
+
/**
|
|
592
|
+
* Query param for the criterion used for grouping metrics
|
|
593
|
+
*/
|
|
594
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
595
|
+
/**
|
|
596
|
+
* Filter data by response status code.
|
|
597
|
+
*/
|
|
598
|
+
responseCode?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Filter data by request path.
|
|
601
|
+
*/
|
|
602
|
+
requestPath?: string;
|
|
603
|
+
/**
|
|
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.
|
|
605
|
+
*/
|
|
606
|
+
country?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
609
|
+
*/
|
|
610
|
+
continent?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Filter data by User Agent.
|
|
613
|
+
*/
|
|
614
|
+
userAgent?: string;
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
474
620
|
}
|
|
475
621
|
|
|
476
622
|
declare class DefaultService {
|
|
@@ -669,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
669
815
|
* 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.
|
|
670
816
|
*/
|
|
671
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
672
822
|
/**
|
|
673
823
|
* The list of ERC-1155 token balances for the address.
|
|
674
824
|
*/
|
|
@@ -714,16 +864,16 @@ type Erc20TokenBalance = {
|
|
|
714
864
|
*/
|
|
715
865
|
balanceValue?: Money;
|
|
716
866
|
/**
|
|
717
|
-
* 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.
|
|
718
868
|
*/
|
|
719
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
720
870
|
};
|
|
721
871
|
declare namespace Erc20TokenBalance {
|
|
722
872
|
enum ercType {
|
|
723
873
|
ERC_20 = "ERC-20"
|
|
724
874
|
}
|
|
725
875
|
/**
|
|
726
|
-
* 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.
|
|
727
877
|
*/
|
|
728
878
|
enum tokenReputation {
|
|
729
879
|
MALICIOUS = "Malicious",
|
|
@@ -736,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
736
886
|
* 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.
|
|
737
887
|
*/
|
|
738
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
739
893
|
/**
|
|
740
894
|
* The list of ERC-20 token balances for the address.
|
|
741
895
|
*/
|
|
@@ -747,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
747
901
|
* 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.
|
|
748
902
|
*/
|
|
749
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
750
908
|
/**
|
|
751
909
|
* The list of ERC-721 token balances for the address.
|
|
752
910
|
*/
|
|
@@ -810,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
810
968
|
*/
|
|
811
969
|
pageToken?: string;
|
|
812
970
|
/**
|
|
813
|
-
* 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.
|
|
814
972
|
*/
|
|
815
973
|
pageSize?: number;
|
|
816
974
|
/**
|
|
@@ -848,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
848
1006
|
*/
|
|
849
1007
|
pageToken?: string;
|
|
850
1008
|
/**
|
|
851
|
-
* 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.
|
|
852
1010
|
*/
|
|
853
1011
|
pageSize?: number;
|
|
854
1012
|
/**
|
|
@@ -884,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
884
1042
|
*/
|
|
885
1043
|
pageToken?: string;
|
|
886
1044
|
/**
|
|
887
|
-
* 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.
|
|
888
1046
|
*/
|
|
889
1047
|
pageSize?: number;
|
|
890
1048
|
/**
|
|
@@ -914,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
914
1072
|
*/
|
|
915
1073
|
pageToken?: string;
|
|
916
1074
|
/**
|
|
917
|
-
* 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.
|
|
918
1076
|
*/
|
|
919
1077
|
pageSize?: number;
|
|
920
1078
|
/**
|
|
@@ -1031,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
1031
1189
|
declare class EvmBlocksService {
|
|
1032
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
1033
1191
|
constructor(httpRequest: BaseHttpRequest);
|
|
1192
|
+
/**
|
|
1193
|
+
* List latest blocks across all supported EVM chains
|
|
1194
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1195
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1196
|
+
* @throws ApiError
|
|
1197
|
+
*/
|
|
1198
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1199
|
+
/**
|
|
1200
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1201
|
+
*/
|
|
1202
|
+
pageToken?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1205
|
+
*/
|
|
1206
|
+
pageSize?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* Either mainnet or testnet/fuji.
|
|
1209
|
+
*/
|
|
1210
|
+
network?: Network;
|
|
1211
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1034
1212
|
/**
|
|
1035
1213
|
* List latest blocks
|
|
1036
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1269,13 +1447,6 @@ type ListNativeTransactionsResponse = {
|
|
|
1269
1447
|
transactions: Array<NativeTransaction>;
|
|
1270
1448
|
};
|
|
1271
1449
|
|
|
1272
|
-
declare enum Network {
|
|
1273
|
-
MAINNET = "mainnet",
|
|
1274
|
-
FUJI = "fuji",
|
|
1275
|
-
TESTNET = "testnet",
|
|
1276
|
-
DEVNET = "devnet"
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1450
|
declare enum TransactionStatus {
|
|
1280
1451
|
FAILED = "failed",
|
|
1281
1452
|
SUCCESS = "success"
|
|
@@ -1284,9 +1455,21 @@ declare enum TransactionStatus {
|
|
|
1284
1455
|
declare class EvmChainsService {
|
|
1285
1456
|
readonly httpRequest: BaseHttpRequest;
|
|
1286
1457
|
constructor(httpRequest: BaseHttpRequest);
|
|
1458
|
+
/**
|
|
1459
|
+
* List all chains associated with a given address
|
|
1460
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1461
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAddressChains({ address, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A wallet address.
|
|
1467
|
+
*/
|
|
1468
|
+
address: string;
|
|
1469
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1287
1470
|
/**
|
|
1288
1471
|
* List chains
|
|
1289
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1290
1473
|
* @returns ListChainsResponse Successful response
|
|
1291
1474
|
* @throws ApiError
|
|
1292
1475
|
*/
|
|
@@ -1302,7 +1485,7 @@ declare class EvmChainsService {
|
|
|
1302
1485
|
}): CancelablePromise<ListChainsResponse>;
|
|
1303
1486
|
/**
|
|
1304
1487
|
* Get chain information
|
|
1305
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1306
1489
|
* @returns GetChainResponse Successful response
|
|
1307
1490
|
* @throws ApiError
|
|
1308
1491
|
*/
|
|
@@ -1313,8 +1496,10 @@ declare class EvmChainsService {
|
|
|
1313
1496
|
chainId: string;
|
|
1314
1497
|
}): CancelablePromise<GetChainResponse>;
|
|
1315
1498
|
/**
|
|
1316
|
-
*
|
|
1317
|
-
* Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1499
|
+
* @deprecated
|
|
1500
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1501
|
+
*
|
|
1502
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1318
1503
|
* @returns ListAddressChainsResponse Successful response
|
|
1319
1504
|
* @throws ApiError
|
|
1320
1505
|
*/
|
|
@@ -1325,8 +1510,10 @@ declare class EvmChainsService {
|
|
|
1325
1510
|
address: string;
|
|
1326
1511
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1327
1512
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
* Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1513
|
+
* @deprecated
|
|
1514
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1515
|
+
*
|
|
1516
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1330
1517
|
* @returns ListNativeTransactionsResponse Successful response
|
|
1331
1518
|
* @throws ApiError
|
|
1332
1519
|
*/
|
|
@@ -1349,8 +1536,10 @@ declare class EvmChainsService {
|
|
|
1349
1536
|
status?: TransactionStatus;
|
|
1350
1537
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1351
1538
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
* Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1539
|
+
* @deprecated
|
|
1540
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1541
|
+
*
|
|
1542
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1354
1543
|
* @returns ListEvmBlocksResponse Successful response
|
|
1355
1544
|
* @throws ApiError
|
|
1356
1545
|
*/
|
|
@@ -1539,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1539
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1540
1729
|
*/
|
|
1541
1730
|
address: string;
|
|
1542
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1543
1732
|
ercType: Erc1155Contract.ercType;
|
|
1544
1733
|
/**
|
|
1545
1734
|
* The contract symbol.
|
|
@@ -1570,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1570
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1571
1760
|
*/
|
|
1572
1761
|
address: string;
|
|
1573
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1574
1763
|
ercType: Erc20Contract.ercType;
|
|
1575
1764
|
/**
|
|
1576
1765
|
* The contract symbol.
|
|
@@ -1605,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1605
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1606
1795
|
*/
|
|
1607
1796
|
address: string;
|
|
1608
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1609
1798
|
ercType: Erc721Contract.ercType;
|
|
1610
1799
|
/**
|
|
1611
1800
|
* The contract symbol.
|
|
@@ -1635,7 +1824,7 @@ type UnknownContract = {
|
|
|
1635
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1636
1825
|
*/
|
|
1637
1826
|
address: string;
|
|
1638
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1639
1828
|
ercType: UnknownContract.ercType;
|
|
1640
1829
|
};
|
|
1641
1830
|
declare namespace UnknownContract {
|
|
@@ -1853,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1853
2042
|
CALL = "CALL",
|
|
1854
2043
|
CREATE = "CREATE",
|
|
1855
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1856
2046
|
CALLCODE = "CALLCODE",
|
|
1857
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1858
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -1894,11 +2084,11 @@ type TeleporterMessageInfo = {
|
|
|
1894
2084
|
/**
|
|
1895
2085
|
* chain id of the source chain. valid only for destination transactions
|
|
1896
2086
|
*/
|
|
1897
|
-
sourceChainId?:
|
|
2087
|
+
sourceChainId?: string;
|
|
1898
2088
|
/**
|
|
1899
2089
|
* chain id of the destination chain. valid only for source transactions
|
|
1900
2090
|
*/
|
|
1901
|
-
destinationChainId?:
|
|
2091
|
+
destinationChainId?: string;
|
|
1902
2092
|
};
|
|
1903
2093
|
|
|
1904
2094
|
type GetTransactionResponse = {
|
|
@@ -1915,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
1915
2105
|
*/
|
|
1916
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1917
2107
|
/**
|
|
1918
|
-
* 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.
|
|
1919
2109
|
*/
|
|
1920
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1921
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2084,7 +2274,7 @@ type TransactionDetails = {
|
|
|
2084
2274
|
*/
|
|
2085
2275
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2086
2276
|
/**
|
|
2087
|
-
* 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
|
|
2277
|
+
* 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.
|
|
2088
2278
|
*/
|
|
2089
2279
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2090
2280
|
};
|
|
@@ -2113,6 +2303,30 @@ declare enum SortOrder {
|
|
|
2113
2303
|
declare class EvmTransactionsService {
|
|
2114
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
2115
2305
|
constructor(httpRequest: BaseHttpRequest);
|
|
2306
|
+
/**
|
|
2307
|
+
* List the latest transactions across all supported EVM chains
|
|
2308
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2309
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2310
|
+
* @throws ApiError
|
|
2311
|
+
*/
|
|
2312
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2313
|
+
/**
|
|
2314
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2315
|
+
*/
|
|
2316
|
+
pageToken?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2319
|
+
*/
|
|
2320
|
+
pageSize?: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* Either mainnet or testnet/fuji.
|
|
2323
|
+
*/
|
|
2324
|
+
network?: Network;
|
|
2325
|
+
/**
|
|
2326
|
+
* A status filter for listed transactions.
|
|
2327
|
+
*/
|
|
2328
|
+
status?: TransactionStatus;
|
|
2329
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2116
2330
|
/**
|
|
2117
2331
|
* Get deployment transaction
|
|
2118
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2359,7 +2573,7 @@ declare class EvmTransactionsService {
|
|
|
2359
2573
|
* List internal transactions
|
|
2360
2574
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2361
2575
|
*
|
|
2362
|
-
* 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.
|
|
2576
|
+
* 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.
|
|
2363
2577
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2364
2578
|
* @throws ApiError
|
|
2365
2579
|
*/
|
|
@@ -2455,60 +2669,301 @@ declare class EvmTransactionsService {
|
|
|
2455
2669
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2456
2670
|
}
|
|
2457
2671
|
|
|
2672
|
+
type HealthIndicatorResultDto = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Status of the health indicator.
|
|
2675
|
+
*/
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
2679
|
+
/**
|
|
2680
|
+
* Status of the health indicator.
|
|
2681
|
+
*/
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2458
2702
|
declare class HealthCheckService {
|
|
2459
2703
|
readonly httpRequest: BaseHttpRequest;
|
|
2460
2704
|
constructor(httpRequest: BaseHttpRequest);
|
|
2461
2705
|
/**
|
|
2462
2706
|
* Get the health of the service
|
|
2463
|
-
*
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2464
2709
|
* @throws ApiError
|
|
2465
2710
|
*/
|
|
2466
|
-
dataHealthCheck(): CancelablePromise<
|
|
2467
|
-
status?: string;
|
|
2468
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2469
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2470
|
-
details?: Record<string, Record<string, string>>;
|
|
2471
|
-
}>;
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2472
2712
|
}
|
|
2473
2713
|
|
|
2474
|
-
type
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2480
2720
|
};
|
|
2481
2721
|
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
2485
2728
|
/**
|
|
2486
|
-
*
|
|
2487
|
-
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2488
|
-
* @returns any Successful response
|
|
2489
|
-
* @throws ApiError
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2490
2730
|
*/
|
|
2491
|
-
|
|
2492
|
-
/**
|
|
2493
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2494
|
-
*/
|
|
2495
|
-
chainId: string;
|
|
2496
|
-
/**
|
|
2497
|
-
* Contract address on the relevant chain.
|
|
2498
|
-
*/
|
|
2499
|
-
address: string;
|
|
2500
|
-
/**
|
|
2501
|
-
* TokenId on the contract
|
|
2502
|
-
*/
|
|
2503
|
-
tokenId: string;
|
|
2504
|
-
}): CancelablePromise<any>;
|
|
2731
|
+
address: string;
|
|
2505
2732
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* Lists tokens for an NFT contract.
|
|
2508
|
-
* @returns ListNftTokens Successful response
|
|
2509
|
-
* @throws ApiError
|
|
2733
|
+
* The contract name.
|
|
2510
2734
|
*/
|
|
2511
|
-
|
|
2735
|
+
name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* The contract symbol.
|
|
2738
|
+
*/
|
|
2739
|
+
symbol: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2742
|
+
*/
|
|
2743
|
+
decimals: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The logo uri for the address.
|
|
2746
|
+
*/
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2749
|
+
/**
|
|
2750
|
+
* The token price, if available.
|
|
2751
|
+
*/
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2841
|
+
/**
|
|
2842
|
+
* 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.
|
|
2843
|
+
*/
|
|
2844
|
+
nextPageToken?: string;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2849
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2850
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2851
|
+
/**
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by teleporter message ID.
|
|
2854
|
+
* @returns any Successful response
|
|
2855
|
+
* @throws ApiError
|
|
2856
|
+
*/
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2858
|
+
/**
|
|
2859
|
+
* The teleporter message ID of the ICM message.
|
|
2860
|
+
*/
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2870
|
+
/**
|
|
2871
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2872
|
+
*/
|
|
2873
|
+
pageToken?: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2876
|
+
*/
|
|
2877
|
+
pageSize?: number;
|
|
2878
|
+
/**
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2880
|
+
*/
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2884
|
+
*/
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2888
|
+
*/
|
|
2889
|
+
blockchainId?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2892
|
+
*/
|
|
2893
|
+
to?: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2896
|
+
*/
|
|
2897
|
+
from?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2900
|
+
*/
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2903
|
+
/**
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2907
|
+
* @throws ApiError
|
|
2908
|
+
*/
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2910
|
+
/**
|
|
2911
|
+
* An EVM address.
|
|
2912
|
+
*/
|
|
2913
|
+
address: string;
|
|
2914
|
+
/**
|
|
2915
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2916
|
+
*/
|
|
2917
|
+
pageToken?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2920
|
+
*/
|
|
2921
|
+
pageSize?: number;
|
|
2922
|
+
/**
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2924
|
+
*/
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
type ListNftTokens = {
|
|
2930
|
+
/**
|
|
2931
|
+
* 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.
|
|
2932
|
+
*/
|
|
2933
|
+
nextPageToken?: string;
|
|
2934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2937
|
+
declare class NfTsService {
|
|
2938
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2939
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2940
|
+
/**
|
|
2941
|
+
* Reindex NFT metadata
|
|
2942
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2943
|
+
* @returns any Successful response
|
|
2944
|
+
* @throws ApiError
|
|
2945
|
+
*/
|
|
2946
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2947
|
+
/**
|
|
2948
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2949
|
+
*/
|
|
2950
|
+
chainId: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Contract address on the relevant chain.
|
|
2953
|
+
*/
|
|
2954
|
+
address: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* TokenId on the contract
|
|
2957
|
+
*/
|
|
2958
|
+
tokenId: string;
|
|
2959
|
+
}): CancelablePromise<any>;
|
|
2960
|
+
/**
|
|
2961
|
+
* List tokens
|
|
2962
|
+
* Lists tokens for an NFT contract.
|
|
2963
|
+
* @returns ListNftTokens Successful response
|
|
2964
|
+
* @throws ApiError
|
|
2965
|
+
*/
|
|
2966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2512
2967
|
/**
|
|
2513
2968
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2514
2969
|
*/
|
|
@@ -2548,6 +3003,108 @@ declare class NfTsService {
|
|
|
2548
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2549
3004
|
}
|
|
2550
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2551
3108
|
type EvmNetworkOptions = {
|
|
2552
3109
|
addresses: Array<string>;
|
|
2553
3110
|
includeChains: Array<string>;
|
|
@@ -2636,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2636
3193
|
operationType: OperationType;
|
|
2637
3194
|
operationStatus: OperationStatus;
|
|
2638
3195
|
message?: string;
|
|
2639
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2640
3197
|
createdAtTimestamp: number;
|
|
2641
3198
|
updatedAtTimestamp: number;
|
|
2642
3199
|
};
|
|
@@ -2669,6 +3226,23 @@ declare class OperationsService {
|
|
|
2669
3226
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2670
3227
|
}
|
|
2671
3228
|
|
|
3229
|
+
type Blockchain = {
|
|
3230
|
+
createBlockTimestamp: number;
|
|
3231
|
+
createBlockNumber: string;
|
|
3232
|
+
blockchainId: string;
|
|
3233
|
+
vmId: string;
|
|
3234
|
+
subnetId: string;
|
|
3235
|
+
blockchainName: string;
|
|
3236
|
+
/**
|
|
3237
|
+
* 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.
|
|
3238
|
+
*/
|
|
3239
|
+
evmChainId: number;
|
|
3240
|
+
/**
|
|
3241
|
+
* The genesis data of the blockchain.
|
|
3242
|
+
*/
|
|
3243
|
+
genesisData?: Record<string, any>;
|
|
3244
|
+
};
|
|
3245
|
+
|
|
2672
3246
|
declare enum BlockchainIds {
|
|
2673
3247
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2674
3248
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -2700,16 +3274,31 @@ type DelegatorsDetails = {
|
|
|
2700
3274
|
};
|
|
2701
3275
|
|
|
2702
3276
|
type StakingDistribution = {
|
|
3277
|
+
/**
|
|
3278
|
+
* AvalancheGo version for the validator node.
|
|
3279
|
+
*/
|
|
2703
3280
|
version: string;
|
|
3281
|
+
/**
|
|
3282
|
+
* The total amount staked by validators using this version.
|
|
3283
|
+
*/
|
|
2704
3284
|
amountStaked: string;
|
|
3285
|
+
/**
|
|
3286
|
+
* The number of validators using this version.
|
|
3287
|
+
*/
|
|
2705
3288
|
validatorCount: number;
|
|
2706
3289
|
};
|
|
2707
3290
|
|
|
2708
3291
|
type ValidatorsDetails = {
|
|
2709
3292
|
validatorCount: number;
|
|
2710
3293
|
totalAmountStaked: string;
|
|
3294
|
+
/**
|
|
3295
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3296
|
+
*/
|
|
2711
3297
|
estimatedAnnualStakingReward: string;
|
|
2712
3298
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3299
|
+
/**
|
|
3300
|
+
* Ratio of total active stake amount to the current supply.
|
|
3301
|
+
*/
|
|
2713
3302
|
stakingRatio: string;
|
|
2714
3303
|
};
|
|
2715
3304
|
|
|
@@ -2718,15 +3307,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2718
3307
|
delegatorDetails: DelegatorsDetails;
|
|
2719
3308
|
};
|
|
2720
3309
|
|
|
2721
|
-
type Blockchain = {
|
|
2722
|
-
createBlockTimestamp: number;
|
|
2723
|
-
createBlockNumber: string;
|
|
2724
|
-
blockchainId: string;
|
|
2725
|
-
vmId: string;
|
|
2726
|
-
subnetId: string;
|
|
2727
|
-
blockchainName: string;
|
|
2728
|
-
};
|
|
2729
|
-
|
|
2730
3310
|
type ListBlockchainsResponse = {
|
|
2731
3311
|
/**
|
|
2732
3312
|
* 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.
|
|
@@ -2761,7 +3341,13 @@ type CompletedDelegatorDetails = {
|
|
|
2761
3341
|
delegationFee: string;
|
|
2762
3342
|
startTimestamp: number;
|
|
2763
3343
|
endTimestamp: number;
|
|
3344
|
+
/**
|
|
3345
|
+
* Total rewards distributed for the successful delegation.
|
|
3346
|
+
*/
|
|
2764
3347
|
grossReward: string;
|
|
3348
|
+
/**
|
|
3349
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3350
|
+
*/
|
|
2765
3351
|
netReward: string;
|
|
2766
3352
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2767
3353
|
};
|
|
@@ -2779,7 +3365,13 @@ type PendingDelegatorDetails = {
|
|
|
2779
3365
|
delegationFee: string;
|
|
2780
3366
|
startTimestamp: number;
|
|
2781
3367
|
endTimestamp: number;
|
|
3368
|
+
/**
|
|
3369
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3370
|
+
*/
|
|
2782
3371
|
estimatedGrossReward: string;
|
|
3372
|
+
/**
|
|
3373
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3374
|
+
*/
|
|
2783
3375
|
estimatedNetReward: string;
|
|
2784
3376
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2785
3377
|
};
|
|
@@ -2810,6 +3402,10 @@ type L1ValidatorDetailsFull = {
|
|
|
2810
3402
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2811
3403
|
*/
|
|
2812
3404
|
validationId: string;
|
|
3405
|
+
/**
|
|
3406
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3407
|
+
*/
|
|
3408
|
+
validationIdHex: string;
|
|
2813
3409
|
nodeId: string;
|
|
2814
3410
|
subnetId: string;
|
|
2815
3411
|
/**
|
|
@@ -2844,10 +3440,10 @@ type ListL1ValidatorsResponse = {
|
|
|
2844
3440
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2845
3441
|
*/
|
|
2846
3442
|
validators: Array<L1ValidatorDetailsFull>;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
3443
|
+
/**
|
|
3444
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3445
|
+
*/
|
|
3446
|
+
blockHeight: string;
|
|
2851
3447
|
};
|
|
2852
3448
|
|
|
2853
3449
|
type L1ValidatorManagerDetails = {
|
|
@@ -2897,11 +3493,15 @@ type Subnet = {
|
|
|
2897
3493
|
* Whether the subnet is an L1 or not.
|
|
2898
3494
|
*/
|
|
2899
3495
|
isL1: boolean;
|
|
3496
|
+
/**
|
|
3497
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3498
|
+
*/
|
|
3499
|
+
l1ConversionTransactionHash?: string;
|
|
2900
3500
|
/**
|
|
2901
3501
|
* L1 validator manager details.
|
|
2902
3502
|
*/
|
|
2903
3503
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2904
|
-
blockchains: Array<
|
|
3504
|
+
blockchains: Array<Blockchain>;
|
|
2905
3505
|
};
|
|
2906
3506
|
|
|
2907
3507
|
type ListSubnetsResponse = {
|
|
@@ -2917,6 +3517,29 @@ type BlsCredentials = {
|
|
|
2917
3517
|
proofOfPossession: string;
|
|
2918
3518
|
};
|
|
2919
3519
|
|
|
3520
|
+
type Geolocation = {
|
|
3521
|
+
/**
|
|
3522
|
+
* The name of the validator node.
|
|
3523
|
+
*/
|
|
3524
|
+
city: string;
|
|
3525
|
+
/**
|
|
3526
|
+
* The city of the validator node.
|
|
3527
|
+
*/
|
|
3528
|
+
country: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* The country code of the validator node.
|
|
3531
|
+
*/
|
|
3532
|
+
countryCode: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* The latitude of the validator node.
|
|
3535
|
+
*/
|
|
3536
|
+
latitude: number;
|
|
3537
|
+
/**
|
|
3538
|
+
* The longitude of the validator node.
|
|
3539
|
+
*/
|
|
3540
|
+
longitude: number;
|
|
3541
|
+
};
|
|
3542
|
+
|
|
2920
3543
|
type Rewards = {
|
|
2921
3544
|
validationRewardAmount: string;
|
|
2922
3545
|
delegationRewardAmount: string;
|
|
@@ -2948,6 +3571,9 @@ type ActiveValidatorDetails = {
|
|
|
2948
3571
|
nodeId: string;
|
|
2949
3572
|
subnetId: string;
|
|
2950
3573
|
amountStaked: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3576
|
+
*/
|
|
2951
3577
|
delegationFee?: string;
|
|
2952
3578
|
startTimestamp: number;
|
|
2953
3579
|
endTimestamp: number;
|
|
@@ -2955,15 +3581,37 @@ type ActiveValidatorDetails = {
|
|
|
2955
3581
|
* Present for AddPermissionlessValidatorTx
|
|
2956
3582
|
*/
|
|
2957
3583
|
blsCredentials?: BlsCredentials;
|
|
3584
|
+
/**
|
|
3585
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3586
|
+
*/
|
|
2958
3587
|
stakePercentage: number;
|
|
3588
|
+
/**
|
|
3589
|
+
* The number of delegators linked to the validator.
|
|
3590
|
+
*/
|
|
2959
3591
|
delegatorCount: number;
|
|
3592
|
+
/**
|
|
3593
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3594
|
+
*/
|
|
2960
3595
|
amountDelegated?: string;
|
|
3596
|
+
/**
|
|
3597
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3598
|
+
*/
|
|
2961
3599
|
uptimePerformance: number;
|
|
2962
3600
|
avalancheGoVersion?: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3603
|
+
*/
|
|
2963
3604
|
delegationCapacity?: string;
|
|
3605
|
+
/**
|
|
3606
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3607
|
+
*/
|
|
2964
3608
|
potentialRewards: Rewards;
|
|
2965
3609
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2966
3610
|
validatorHealth: ValidatorHealthDetails;
|
|
3611
|
+
/**
|
|
3612
|
+
* The geographical location of the validator node, if available.
|
|
3613
|
+
*/
|
|
3614
|
+
geolocation: Geolocation | null;
|
|
2967
3615
|
};
|
|
2968
3616
|
declare namespace ActiveValidatorDetails {
|
|
2969
3617
|
enum validationStatus {
|
|
@@ -2976,6 +3624,9 @@ type CompletedValidatorDetails = {
|
|
|
2976
3624
|
nodeId: string;
|
|
2977
3625
|
subnetId: string;
|
|
2978
3626
|
amountStaked: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3629
|
+
*/
|
|
2979
3630
|
delegationFee?: string;
|
|
2980
3631
|
startTimestamp: number;
|
|
2981
3632
|
endTimestamp: number;
|
|
@@ -2999,6 +3650,9 @@ type PendingValidatorDetails = {
|
|
|
2999
3650
|
nodeId: string;
|
|
3000
3651
|
subnetId: string;
|
|
3001
3652
|
amountStaked: string;
|
|
3653
|
+
/**
|
|
3654
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3655
|
+
*/
|
|
3002
3656
|
delegationFee?: string;
|
|
3003
3657
|
startTimestamp: number;
|
|
3004
3658
|
endTimestamp: number;
|
|
@@ -3019,6 +3673,9 @@ type RemovedValidatorDetails = {
|
|
|
3019
3673
|
nodeId: string;
|
|
3020
3674
|
subnetId: string;
|
|
3021
3675
|
amountStaked: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3678
|
+
*/
|
|
3022
3679
|
delegationFee?: string;
|
|
3023
3680
|
startTimestamp: number;
|
|
3024
3681
|
endTimestamp: number;
|
|
@@ -3026,7 +3683,13 @@ type RemovedValidatorDetails = {
|
|
|
3026
3683
|
* Present for AddPermissionlessValidatorTx
|
|
3027
3684
|
*/
|
|
3028
3685
|
blsCredentials?: BlsCredentials;
|
|
3686
|
+
/**
|
|
3687
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3688
|
+
*/
|
|
3029
3689
|
removeTxHash: string;
|
|
3690
|
+
/**
|
|
3691
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3692
|
+
*/
|
|
3030
3693
|
removeTimestamp: number;
|
|
3031
3694
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
3032
3695
|
};
|
|
@@ -3177,7 +3840,7 @@ declare class PrimaryNetworkService {
|
|
|
3177
3840
|
*/
|
|
3178
3841
|
pageToken?: string;
|
|
3179
3842
|
/**
|
|
3180
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3843
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3181
3844
|
*/
|
|
3182
3845
|
pageSize?: number;
|
|
3183
3846
|
/**
|
|
@@ -3185,6 +3848,22 @@ declare class PrimaryNetworkService {
|
|
|
3185
3848
|
*/
|
|
3186
3849
|
sortOrder?: SortOrder;
|
|
3187
3850
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3851
|
+
/**
|
|
3852
|
+
* Get blockchain details by ID
|
|
3853
|
+
* Get details of the blockchain registered on the network.
|
|
3854
|
+
* @returns Blockchain Successful response
|
|
3855
|
+
* @throws ApiError
|
|
3856
|
+
*/
|
|
3857
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3858
|
+
/**
|
|
3859
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3860
|
+
*/
|
|
3861
|
+
blockchainId: string;
|
|
3862
|
+
/**
|
|
3863
|
+
* Either mainnet or testnet/fuji.
|
|
3864
|
+
*/
|
|
3865
|
+
network: Network;
|
|
3866
|
+
}): CancelablePromise<Blockchain>;
|
|
3188
3867
|
/**
|
|
3189
3868
|
* List subnets
|
|
3190
3869
|
* Lists all subnets registered on the network.
|
|
@@ -3201,7 +3880,7 @@ declare class PrimaryNetworkService {
|
|
|
3201
3880
|
*/
|
|
3202
3881
|
pageToken?: string;
|
|
3203
3882
|
/**
|
|
3204
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3883
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3205
3884
|
*/
|
|
3206
3885
|
pageSize?: number;
|
|
3207
3886
|
/**
|
|
@@ -3227,7 +3906,7 @@ declare class PrimaryNetworkService {
|
|
|
3227
3906
|
}): CancelablePromise<Subnet>;
|
|
3228
3907
|
/**
|
|
3229
3908
|
* List validators
|
|
3230
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3909
|
+
* 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.
|
|
3231
3910
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3232
3911
|
* @throws ApiError
|
|
3233
3912
|
*/
|
|
@@ -3245,7 +3924,7 @@ declare class PrimaryNetworkService {
|
|
|
3245
3924
|
*/
|
|
3246
3925
|
pageSize?: number;
|
|
3247
3926
|
/**
|
|
3248
|
-
* A comma separated list of node ids to filter by.
|
|
3927
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3249
3928
|
*/
|
|
3250
3929
|
nodeIds?: string;
|
|
3251
3930
|
/**
|
|
@@ -3389,7 +4068,7 @@ declare class PrimaryNetworkService {
|
|
|
3389
4068
|
/**
|
|
3390
4069
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3391
4070
|
*/
|
|
3392
|
-
l1ValidationId?:
|
|
4071
|
+
l1ValidationId?: string;
|
|
3393
4072
|
includeInactiveL1Validators?: boolean;
|
|
3394
4073
|
/**
|
|
3395
4074
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -4167,11 +4846,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4167
4846
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4168
4847
|
};
|
|
4169
4848
|
|
|
4849
|
+
type BlockchainInfo = {
|
|
4850
|
+
chainName: string;
|
|
4851
|
+
vmId: string;
|
|
4852
|
+
/**
|
|
4853
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
4854
|
+
*/
|
|
4855
|
+
genesisData?: Record<string, any>;
|
|
4856
|
+
};
|
|
4857
|
+
|
|
4170
4858
|
type L1ValidatorDetailsTransaction = {
|
|
4171
4859
|
/**
|
|
4172
4860
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4173
4861
|
*/
|
|
4174
4862
|
validationId: string;
|
|
4863
|
+
/**
|
|
4864
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4865
|
+
*/
|
|
4866
|
+
validationIdHex: string;
|
|
4175
4867
|
nodeId: string;
|
|
4176
4868
|
subnetId: string;
|
|
4177
4869
|
/**
|
|
@@ -4183,7 +4875,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4183
4875
|
*/
|
|
4184
4876
|
remainingBalance: number;
|
|
4185
4877
|
/**
|
|
4186
|
-
* 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
|
|
4878
|
+
* 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
|
|
4187
4879
|
*/
|
|
4188
4880
|
balanceChange?: number;
|
|
4189
4881
|
blsCredentials?: Record<string, any>;
|
|
@@ -4213,6 +4905,9 @@ declare enum PChainTransactionType {
|
|
|
4213
4905
|
UNKNOWN = "UNKNOWN"
|
|
4214
4906
|
}
|
|
4215
4907
|
|
|
4908
|
+
/**
|
|
4909
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4910
|
+
*/
|
|
4216
4911
|
declare enum UtxoType {
|
|
4217
4912
|
STAKE = "STAKE",
|
|
4218
4913
|
TRANSFER = "TRANSFER"
|
|
@@ -4250,16 +4945,43 @@ type PChainUtxo = {
|
|
|
4250
4945
|
assetId: string;
|
|
4251
4946
|
blockNumber: string;
|
|
4252
4947
|
blockTimestamp: number;
|
|
4948
|
+
/**
|
|
4949
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4950
|
+
*/
|
|
4253
4951
|
consumingBlockNumber?: string;
|
|
4952
|
+
/**
|
|
4953
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4954
|
+
*/
|
|
4254
4955
|
consumingBlockTimestamp?: number;
|
|
4956
|
+
/**
|
|
4957
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4958
|
+
*/
|
|
4255
4959
|
platformLocktime?: number;
|
|
4960
|
+
/**
|
|
4961
|
+
* The index of the UTXO in the transaction
|
|
4962
|
+
*/
|
|
4256
4963
|
outputIndex: number;
|
|
4257
4964
|
rewardType?: RewardType;
|
|
4965
|
+
/**
|
|
4966
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4967
|
+
*/
|
|
4258
4968
|
stakeableLocktime?: number;
|
|
4259
4969
|
staked?: boolean;
|
|
4970
|
+
/**
|
|
4971
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4972
|
+
*/
|
|
4260
4973
|
threshold?: number;
|
|
4974
|
+
/**
|
|
4975
|
+
* The hash of the transaction that created this UTXO
|
|
4976
|
+
*/
|
|
4261
4977
|
txHash: string;
|
|
4978
|
+
/**
|
|
4979
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4980
|
+
*/
|
|
4262
4981
|
utxoEndTimestamp?: number;
|
|
4982
|
+
/**
|
|
4983
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4984
|
+
*/
|
|
4263
4985
|
utxoStartTimestamp?: number;
|
|
4264
4986
|
utxoType: UtxoType;
|
|
4265
4987
|
};
|
|
@@ -4274,9 +4996,18 @@ type PChainTransaction = {
|
|
|
4274
4996
|
* The block finality timestamp.
|
|
4275
4997
|
*/
|
|
4276
4998
|
blockTimestamp: number;
|
|
4999
|
+
/**
|
|
5000
|
+
* The height of the block in which the transaction was included
|
|
5001
|
+
*/
|
|
4277
5002
|
blockNumber: string;
|
|
4278
5003
|
blockHash: string;
|
|
5004
|
+
/**
|
|
5005
|
+
* The consumed UTXOs of the transaction
|
|
5006
|
+
*/
|
|
4279
5007
|
consumedUtxos: Array<PChainUtxo>;
|
|
5008
|
+
/**
|
|
5009
|
+
* The newly created UTXOs of the transaction
|
|
5010
|
+
*/
|
|
4280
5011
|
emittedUtxos: Array<PChainUtxo>;
|
|
4281
5012
|
/**
|
|
4282
5013
|
* Source chain for an atomic transaction.
|
|
@@ -4287,11 +5018,11 @@ type PChainTransaction = {
|
|
|
4287
5018
|
*/
|
|
4288
5019
|
destinationChain?: string;
|
|
4289
5020
|
/**
|
|
4290
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5021
|
+
* 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
|
|
4291
5022
|
*/
|
|
4292
5023
|
value: Array<AssetAmount>;
|
|
4293
5024
|
/**
|
|
4294
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5025
|
+
* 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
|
|
4295
5026
|
*/
|
|
4296
5027
|
amountBurned: Array<AssetAmount>;
|
|
4297
5028
|
/**
|
|
@@ -4299,7 +5030,7 @@ type PChainTransaction = {
|
|
|
4299
5030
|
*/
|
|
4300
5031
|
amountStaked: Array<AssetAmount>;
|
|
4301
5032
|
/**
|
|
4302
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5033
|
+
* 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.
|
|
4303
5034
|
*/
|
|
4304
5035
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4305
5036
|
/**
|
|
@@ -4311,11 +5042,11 @@ type PChainTransaction = {
|
|
|
4311
5042
|
*/
|
|
4312
5043
|
endTimestamp?: number;
|
|
4313
5044
|
/**
|
|
4314
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5045
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4315
5046
|
*/
|
|
4316
5047
|
delegationFeePercent?: string;
|
|
4317
5048
|
/**
|
|
4318
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5049
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4319
5050
|
*/
|
|
4320
5051
|
nodeId?: string;
|
|
4321
5052
|
/**
|
|
@@ -4331,14 +5062,17 @@ type PChainTransaction = {
|
|
|
4331
5062
|
*/
|
|
4332
5063
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4333
5064
|
/**
|
|
4334
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5065
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4335
5066
|
*/
|
|
4336
5067
|
estimatedReward?: string;
|
|
5068
|
+
/**
|
|
5069
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5070
|
+
*/
|
|
4337
5071
|
rewardTxHash?: string;
|
|
4338
5072
|
rewardAddresses?: Array<string>;
|
|
4339
5073
|
memo?: string;
|
|
4340
5074
|
/**
|
|
4341
|
-
*
|
|
5075
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4342
5076
|
*/
|
|
4343
5077
|
stakingTxHash?: string;
|
|
4344
5078
|
/**
|
|
@@ -4346,9 +5080,13 @@ type PChainTransaction = {
|
|
|
4346
5080
|
*/
|
|
4347
5081
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4348
5082
|
/**
|
|
4349
|
-
* Present for AddPermissionlessValidatorTx
|
|
5083
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4350
5084
|
*/
|
|
4351
5085
|
blsCredentials?: BlsCredentials;
|
|
5086
|
+
/**
|
|
5087
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5088
|
+
*/
|
|
5089
|
+
blockchainInfo?: BlockchainInfo;
|
|
4352
5090
|
};
|
|
4353
5091
|
|
|
4354
5092
|
type ListPChainTransactionsResponse = {
|
|
@@ -4885,9 +5623,29 @@ declare class SignatureAggregatorService {
|
|
|
4885
5623
|
* @returns SignatureAggregationResponse Successful response
|
|
4886
5624
|
* @throws ApiError
|
|
4887
5625
|
*/
|
|
4888
|
-
aggregateSignatures({ requestBody, }: {
|
|
5626
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5627
|
+
/**
|
|
5628
|
+
* Either mainnet or testnet/fuji.
|
|
5629
|
+
*/
|
|
5630
|
+
network: Network;
|
|
4889
5631
|
requestBody: SignatureAggregatorRequest;
|
|
4890
5632
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5633
|
+
/**
|
|
5634
|
+
* Get Aggregated Signatures
|
|
5635
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5636
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5637
|
+
* @throws ApiError
|
|
5638
|
+
*/
|
|
5639
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5640
|
+
/**
|
|
5641
|
+
* Either mainnet or testnet/fuji.
|
|
5642
|
+
*/
|
|
5643
|
+
network: Network;
|
|
5644
|
+
/**
|
|
5645
|
+
* A primary network (P or X chain) transaction hash.
|
|
5646
|
+
*/
|
|
5647
|
+
txHash: string;
|
|
5648
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4891
5649
|
}
|
|
4892
5650
|
|
|
4893
5651
|
type TeleporterDestinationTransaction = {
|
|
@@ -5021,15 +5779,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
5021
5779
|
* 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.
|
|
5022
5780
|
*/
|
|
5023
5781
|
nextPageToken?: string;
|
|
5024
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5782
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5025
5783
|
};
|
|
5026
5784
|
|
|
5027
5785
|
declare class TeleporterService {
|
|
5028
5786
|
readonly httpRequest: BaseHttpRequest;
|
|
5029
5787
|
constructor(httpRequest: BaseHttpRequest);
|
|
5030
5788
|
/**
|
|
5031
|
-
*
|
|
5032
|
-
* Gets a teleporter message by message ID.
|
|
5789
|
+
* @deprecated
|
|
5790
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5791
|
+
*
|
|
5792
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5033
5793
|
* @returns any Successful response
|
|
5034
5794
|
* @throws ApiError
|
|
5035
5795
|
*/
|
|
@@ -5040,8 +5800,10 @@ declare class TeleporterService {
|
|
|
5040
5800
|
messageId: string;
|
|
5041
5801
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5042
5802
|
/**
|
|
5043
|
-
*
|
|
5044
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5803
|
+
* @deprecated
|
|
5804
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5805
|
+
*
|
|
5806
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5045
5807
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5046
5808
|
* @throws ApiError
|
|
5047
5809
|
*/
|
|
@@ -5080,8 +5842,10 @@ declare class TeleporterService {
|
|
|
5080
5842
|
network?: Network;
|
|
5081
5843
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5082
5844
|
/**
|
|
5083
|
-
*
|
|
5084
|
-
* Lists teleporter messages by address. Ordered by
|
|
5845
|
+
* @deprecated
|
|
5846
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5847
|
+
*
|
|
5848
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5085
5849
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5086
5850
|
* @throws ApiError
|
|
5087
5851
|
*/
|
|
@@ -5113,69 +5877,213 @@ type AddressesChangeRequest = {
|
|
|
5113
5877
|
};
|
|
5114
5878
|
|
|
5115
5879
|
type AddressActivityMetadata = {
|
|
5880
|
+
/**
|
|
5881
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5882
|
+
*/
|
|
5883
|
+
eventSignatures?: Array<string>;
|
|
5116
5884
|
/**
|
|
5117
5885
|
* Ethereum address(es) for the address_activity event type
|
|
5118
5886
|
*/
|
|
5119
5887
|
addresses: Array<string>;
|
|
5888
|
+
};
|
|
5889
|
+
|
|
5890
|
+
type EVMAddressActivityRequest = {
|
|
5891
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5892
|
+
url: string;
|
|
5893
|
+
name?: string;
|
|
5894
|
+
description?: string;
|
|
5895
|
+
chainId: string;
|
|
5896
|
+
metadata: AddressActivityMetadata;
|
|
5120
5897
|
/**
|
|
5121
|
-
*
|
|
5898
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5122
5899
|
*/
|
|
5123
|
-
|
|
5900
|
+
includeInternalTxs?: boolean;
|
|
5901
|
+
/**
|
|
5902
|
+
* Whether to include logs in the webhook payload.
|
|
5903
|
+
*/
|
|
5904
|
+
includeLogs?: boolean;
|
|
5124
5905
|
};
|
|
5906
|
+
declare namespace EVMAddressActivityRequest {
|
|
5907
|
+
enum eventType {
|
|
5908
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5909
|
+
}
|
|
5910
|
+
}
|
|
5125
5911
|
|
|
5126
|
-
declare enum
|
|
5912
|
+
declare enum AddressActivityEventType {
|
|
5127
5913
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5128
5914
|
}
|
|
5129
5915
|
|
|
5130
|
-
|
|
5916
|
+
declare enum WebhookStatusType {
|
|
5917
|
+
ACTIVE = "active",
|
|
5918
|
+
INACTIVE = "inactive"
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
type EVMAddressActivityResponse = {
|
|
5922
|
+
id: string;
|
|
5131
5923
|
url: string;
|
|
5132
5924
|
chainId: string;
|
|
5133
|
-
|
|
5925
|
+
status: WebhookStatusType;
|
|
5926
|
+
createdAt: number;
|
|
5927
|
+
name: string;
|
|
5928
|
+
description: string;
|
|
5929
|
+
eventType: AddressActivityEventType;
|
|
5134
5930
|
metadata: AddressActivityMetadata;
|
|
5135
|
-
name?: string;
|
|
5136
|
-
description?: string;
|
|
5137
5931
|
/**
|
|
5138
|
-
* Whether to include traces in the webhook payload.
|
|
5932
|
+
* Whether to include traces in the webhook payload.
|
|
5933
|
+
*/
|
|
5934
|
+
includeInternalTxs?: boolean;
|
|
5935
|
+
/**
|
|
5936
|
+
* Whether to include logs in the webhook payload.
|
|
5937
|
+
*/
|
|
5938
|
+
includeLogs?: boolean;
|
|
5939
|
+
};
|
|
5940
|
+
|
|
5941
|
+
type ListWebhookAddressesResponse = {
|
|
5942
|
+
/**
|
|
5943
|
+
* 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.
|
|
5944
|
+
*/
|
|
5945
|
+
nextPageToken?: string;
|
|
5946
|
+
addresses: Array<string>;
|
|
5947
|
+
totalAddresses: number;
|
|
5948
|
+
};
|
|
5949
|
+
|
|
5950
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
5951
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
/**
|
|
5955
|
+
* The type of key to monitor for the address activity event type.
|
|
5956
|
+
*/
|
|
5957
|
+
declare enum PlatformAddressActivityKeyType {
|
|
5958
|
+
ADDRESSES = "addresses"
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5961
|
+
/**
|
|
5962
|
+
* Array of address activity sub-event types
|
|
5963
|
+
*/
|
|
5964
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5965
|
+
BALANCE_CHANGE = "balance_change",
|
|
5966
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
5967
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
5971
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5972
|
+
};
|
|
5973
|
+
|
|
5974
|
+
/**
|
|
5975
|
+
* Type of balance to monitor
|
|
5976
|
+
*/
|
|
5977
|
+
declare enum CommonBalanceType {
|
|
5978
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5979
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5980
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5981
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5982
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5983
|
+
PENDING_STAKED = "pendingStaked",
|
|
5984
|
+
UNLOCKED = "unlocked",
|
|
5985
|
+
LOCKED = "locked",
|
|
5986
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5987
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5988
|
+
}
|
|
5989
|
+
|
|
5990
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
5991
|
+
balanceType: CommonBalanceType;
|
|
5992
|
+
/**
|
|
5993
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5994
|
+
*/
|
|
5995
|
+
balanceThreshold: string;
|
|
5996
|
+
};
|
|
5997
|
+
|
|
5998
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
5999
|
+
/**
|
|
6000
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6001
|
+
*/
|
|
6002
|
+
eventSignatures?: Array<string>;
|
|
6003
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6004
|
+
/**
|
|
6005
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided.
|
|
6006
|
+
*/
|
|
6007
|
+
keys: Array<string>;
|
|
6008
|
+
/**
|
|
6009
|
+
* Sub-events to monitor
|
|
6010
|
+
*/
|
|
6011
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6012
|
+
/**
|
|
6013
|
+
* Balance threshold filter
|
|
6014
|
+
*/
|
|
6015
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6016
|
+
};
|
|
6017
|
+
|
|
6018
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6019
|
+
id: string;
|
|
6020
|
+
url: string;
|
|
6021
|
+
chainId: string;
|
|
6022
|
+
status: WebhookStatusType;
|
|
6023
|
+
createdAt: number;
|
|
6024
|
+
name: string;
|
|
6025
|
+
description: string;
|
|
6026
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6027
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6028
|
+
};
|
|
6029
|
+
|
|
6030
|
+
declare enum ValidatorActivityEventType {
|
|
6031
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6032
|
+
}
|
|
6033
|
+
|
|
6034
|
+
/**
|
|
6035
|
+
* The type of key to monitor for the validator activity event type.
|
|
6036
|
+
*/
|
|
6037
|
+
declare enum ValidatorActivityKeyType {
|
|
6038
|
+
NODE_ID = "nodeId",
|
|
6039
|
+
SUBNET_ID = "subnetId"
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
type ValidatorActivitySubEvents = {
|
|
6043
|
+
/**
|
|
6044
|
+
* Array of validator activity sub-event types
|
|
6045
|
+
*/
|
|
6046
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6047
|
+
};
|
|
6048
|
+
|
|
6049
|
+
type ValidatorActivityMetadata = {
|
|
6050
|
+
/**
|
|
6051
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6052
|
+
*/
|
|
6053
|
+
eventSignatures?: Array<string>;
|
|
6054
|
+
keyType: ValidatorActivityKeyType;
|
|
6055
|
+
/**
|
|
6056
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
5139
6057
|
*/
|
|
5140
|
-
|
|
6058
|
+
keys: Array<string>;
|
|
5141
6059
|
/**
|
|
5142
|
-
*
|
|
6060
|
+
* Sub-events to monitor
|
|
5143
6061
|
*/
|
|
5144
|
-
|
|
5145
|
-
};
|
|
5146
|
-
|
|
5147
|
-
type ListWebhookAddressesResponse = {
|
|
6062
|
+
subEvents: ValidatorActivitySubEvents;
|
|
5148
6063
|
/**
|
|
5149
|
-
*
|
|
6064
|
+
* Array of node IDs to filter the events
|
|
5150
6065
|
*/
|
|
5151
|
-
|
|
5152
|
-
addresses: Array<string>;
|
|
5153
|
-
totalAddresses: number;
|
|
5154
|
-
};
|
|
5155
|
-
|
|
5156
|
-
declare enum WebhookStatusType {
|
|
5157
|
-
ACTIVE = "active",
|
|
5158
|
-
INACTIVE = "inactive"
|
|
5159
|
-
}
|
|
5160
|
-
|
|
5161
|
-
type WebhookResponse = {
|
|
5162
|
-
id: string;
|
|
5163
|
-
eventType: EventType;
|
|
5164
|
-
metadata: AddressActivityMetadata;
|
|
6066
|
+
nodeIds?: Array<string>;
|
|
5165
6067
|
/**
|
|
5166
|
-
*
|
|
6068
|
+
* Array of subnet IDs to filter the events
|
|
5167
6069
|
*/
|
|
5168
|
-
|
|
6070
|
+
subnetIds?: Array<string>;
|
|
5169
6071
|
/**
|
|
5170
|
-
*
|
|
6072
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5171
6073
|
*/
|
|
5172
|
-
|
|
6074
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6075
|
+
};
|
|
6076
|
+
|
|
6077
|
+
type ValidatorActivityResponse = {
|
|
6078
|
+
id: string;
|
|
5173
6079
|
url: string;
|
|
5174
6080
|
chainId: string;
|
|
5175
6081
|
status: WebhookStatusType;
|
|
5176
6082
|
createdAt: number;
|
|
5177
6083
|
name: string;
|
|
5178
6084
|
description: string;
|
|
6085
|
+
eventType: ValidatorActivityEventType;
|
|
6086
|
+
metadata: ValidatorActivityMetadata;
|
|
5179
6087
|
};
|
|
5180
6088
|
|
|
5181
6089
|
type ListWebhooksResponse = {
|
|
@@ -5183,8 +6091,31 @@ type ListWebhooksResponse = {
|
|
|
5183
6091
|
* 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.
|
|
5184
6092
|
*/
|
|
5185
6093
|
nextPageToken?: string;
|
|
5186
|
-
webhooks: Array<
|
|
6094
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6095
|
+
};
|
|
6096
|
+
|
|
6097
|
+
declare enum PrimaryNetworkType {
|
|
6098
|
+
MAINNET = "mainnet",
|
|
6099
|
+
FUJI = "fuji"
|
|
6100
|
+
}
|
|
6101
|
+
|
|
6102
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6103
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6104
|
+
url: string;
|
|
6105
|
+
name?: string;
|
|
6106
|
+
description?: string;
|
|
6107
|
+
network: PrimaryNetworkType;
|
|
6108
|
+
chainId: string;
|
|
6109
|
+
/**
|
|
6110
|
+
* Metadata for platform address activity event
|
|
6111
|
+
*/
|
|
6112
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5187
6113
|
};
|
|
6114
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6115
|
+
enum eventType {
|
|
6116
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6117
|
+
}
|
|
6118
|
+
}
|
|
5188
6119
|
|
|
5189
6120
|
type SharedSecretsResponse = {
|
|
5190
6121
|
secret: string;
|
|
@@ -5202,6 +6133,23 @@ type UpdateWebhookRequest = {
|
|
|
5202
6133
|
includeLogs?: boolean;
|
|
5203
6134
|
};
|
|
5204
6135
|
|
|
6136
|
+
type ValidatorActivityRequest = {
|
|
6137
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6138
|
+
url: string;
|
|
6139
|
+
name?: string;
|
|
6140
|
+
description?: string;
|
|
6141
|
+
network: PrimaryNetworkType;
|
|
6142
|
+
/**
|
|
6143
|
+
* Metadata for platform validator activity event
|
|
6144
|
+
*/
|
|
6145
|
+
metadata: ValidatorActivityMetadata;
|
|
6146
|
+
};
|
|
6147
|
+
declare namespace ValidatorActivityRequest {
|
|
6148
|
+
enum eventType {
|
|
6149
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6150
|
+
}
|
|
6151
|
+
}
|
|
6152
|
+
|
|
5205
6153
|
declare enum WebhookStatus {
|
|
5206
6154
|
ACTIVE = "active",
|
|
5207
6155
|
INACTIVE = "inactive"
|
|
@@ -5213,12 +6161,12 @@ declare class WebhooksService {
|
|
|
5213
6161
|
/**
|
|
5214
6162
|
* Create a webhook
|
|
5215
6163
|
* Create a new webhook.
|
|
5216
|
-
* @returns
|
|
6164
|
+
* @returns any Successful response
|
|
5217
6165
|
* @throws ApiError
|
|
5218
6166
|
*/
|
|
5219
6167
|
createWebhook({ requestBody, }: {
|
|
5220
|
-
requestBody:
|
|
5221
|
-
}): CancelablePromise<
|
|
6168
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6169
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5222
6170
|
/**
|
|
5223
6171
|
* List webhooks
|
|
5224
6172
|
* Lists webhooks for the user.
|
|
@@ -5242,7 +6190,7 @@ declare class WebhooksService {
|
|
|
5242
6190
|
/**
|
|
5243
6191
|
* Get a webhook by ID
|
|
5244
6192
|
* Retrieves a webhook by ID.
|
|
5245
|
-
* @returns
|
|
6193
|
+
* @returns any Successful response
|
|
5246
6194
|
* @throws ApiError
|
|
5247
6195
|
*/
|
|
5248
6196
|
getWebhook({ id, }: {
|
|
@@ -5250,11 +6198,11 @@ declare class WebhooksService {
|
|
|
5250
6198
|
* The webhook identifier.
|
|
5251
6199
|
*/
|
|
5252
6200
|
id: string;
|
|
5253
|
-
}): CancelablePromise<
|
|
6201
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5254
6202
|
/**
|
|
5255
6203
|
* Deactivate a webhook
|
|
5256
6204
|
* Deactivates a webhook by ID.
|
|
5257
|
-
* @returns
|
|
6205
|
+
* @returns any Successful response
|
|
5258
6206
|
* @throws ApiError
|
|
5259
6207
|
*/
|
|
5260
6208
|
deactivateWebhook({ id, }: {
|
|
@@ -5262,11 +6210,11 @@ declare class WebhooksService {
|
|
|
5262
6210
|
* The webhook identifier.
|
|
5263
6211
|
*/
|
|
5264
6212
|
id: string;
|
|
5265
|
-
}): CancelablePromise<
|
|
6213
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5266
6214
|
/**
|
|
5267
6215
|
* Update a webhook
|
|
5268
6216
|
* Updates an existing webhook.
|
|
5269
|
-
* @returns
|
|
6217
|
+
* @returns any Successful response
|
|
5270
6218
|
* @throws ApiError
|
|
5271
6219
|
*/
|
|
5272
6220
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5275,14 +6223,14 @@ declare class WebhooksService {
|
|
|
5275
6223
|
*/
|
|
5276
6224
|
id: string;
|
|
5277
6225
|
requestBody: UpdateWebhookRequest;
|
|
5278
|
-
}): CancelablePromise<
|
|
6226
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5279
6227
|
/**
|
|
5280
|
-
* Generate a shared secret
|
|
5281
|
-
* Generates a new shared secret.
|
|
6228
|
+
* Generate or rotate a shared secret
|
|
6229
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5282
6230
|
* @returns SharedSecretsResponse Successful response
|
|
5283
6231
|
* @throws ApiError
|
|
5284
6232
|
*/
|
|
5285
|
-
|
|
6233
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5286
6234
|
/**
|
|
5287
6235
|
* Get a shared secret
|
|
5288
6236
|
* Get a previously generated shared secret.
|
|
@@ -5291,9 +6239,9 @@ declare class WebhooksService {
|
|
|
5291
6239
|
*/
|
|
5292
6240
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5293
6241
|
/**
|
|
5294
|
-
* Add addresses to webhook
|
|
5295
|
-
* Add addresses to webhook.
|
|
5296
|
-
* @returns
|
|
6242
|
+
* Add addresses to EVM activity webhook
|
|
6243
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6244
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5297
6245
|
* @throws ApiError
|
|
5298
6246
|
*/
|
|
5299
6247
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5302,11 +6250,11 @@ declare class WebhooksService {
|
|
|
5302
6250
|
*/
|
|
5303
6251
|
id: string;
|
|
5304
6252
|
requestBody: AddressesChangeRequest;
|
|
5305
|
-
}): CancelablePromise<
|
|
6253
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5306
6254
|
/**
|
|
5307
|
-
* Remove addresses from webhook
|
|
5308
|
-
* Remove addresses from webhook.
|
|
5309
|
-
* @returns
|
|
6255
|
+
* Remove addresses from EVM activity webhook
|
|
6256
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6257
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5310
6258
|
* @throws ApiError
|
|
5311
6259
|
*/
|
|
5312
6260
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5315,10 +6263,10 @@ declare class WebhooksService {
|
|
|
5315
6263
|
*/
|
|
5316
6264
|
id: string;
|
|
5317
6265
|
requestBody: AddressesChangeRequest;
|
|
5318
|
-
}): CancelablePromise<
|
|
6266
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5319
6267
|
/**
|
|
5320
|
-
* List adresses by
|
|
5321
|
-
* List adresses by webhook.
|
|
6268
|
+
* List adresses by EVM activity webhooks
|
|
6269
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5322
6270
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5323
6271
|
* @throws ApiError
|
|
5324
6272
|
*/
|
|
@@ -5348,7 +6296,9 @@ declare class Glacier {
|
|
|
5348
6296
|
readonly evmContracts: EvmContractsService;
|
|
5349
6297
|
readonly evmTransactions: EvmTransactionsService;
|
|
5350
6298
|
readonly healthCheck: HealthCheckService;
|
|
6299
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5351
6300
|
readonly nfTs: NfTsService;
|
|
6301
|
+
readonly notifications: NotificationsService;
|
|
5352
6302
|
readonly operations: OperationsService;
|
|
5353
6303
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5354
6304
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5381,6 +6331,17 @@ declare class ApiError extends Error {
|
|
|
5381
6331
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5382
6332
|
}
|
|
5383
6333
|
|
|
6334
|
+
type AccessListData = {
|
|
6335
|
+
/**
|
|
6336
|
+
* Access Address
|
|
6337
|
+
*/
|
|
6338
|
+
accessAddresses: string;
|
|
6339
|
+
/**
|
|
6340
|
+
* Storage keys
|
|
6341
|
+
*/
|
|
6342
|
+
storageKeys: Array<string>;
|
|
6343
|
+
};
|
|
6344
|
+
|
|
5384
6345
|
type BadGateway = {
|
|
5385
6346
|
/**
|
|
5386
6347
|
* The error message describing the reason for the exception
|
|
@@ -5415,6 +6376,76 @@ type DataListChainsResponse = {
|
|
|
5415
6376
|
chains: Array<ChainInfo>;
|
|
5416
6377
|
};
|
|
5417
6378
|
|
|
6379
|
+
type ERCToken = {
|
|
6380
|
+
/**
|
|
6381
|
+
* Token contract address
|
|
6382
|
+
*/
|
|
6383
|
+
address: string;
|
|
6384
|
+
/**
|
|
6385
|
+
* Token name
|
|
6386
|
+
*/
|
|
6387
|
+
name: string;
|
|
6388
|
+
/**
|
|
6389
|
+
* Token symbol
|
|
6390
|
+
*/
|
|
6391
|
+
symbol: string;
|
|
6392
|
+
/**
|
|
6393
|
+
* Token decimals
|
|
6394
|
+
*/
|
|
6395
|
+
decimals: number;
|
|
6396
|
+
/**
|
|
6397
|
+
* Value including decimals
|
|
6398
|
+
*/
|
|
6399
|
+
valueWithDecimals: string;
|
|
6400
|
+
};
|
|
6401
|
+
|
|
6402
|
+
type ERCTransfer = {
|
|
6403
|
+
/**
|
|
6404
|
+
* Transaction hash
|
|
6405
|
+
*/
|
|
6406
|
+
transactionHash: string;
|
|
6407
|
+
/**
|
|
6408
|
+
* Transfer type
|
|
6409
|
+
*/
|
|
6410
|
+
type: string;
|
|
6411
|
+
/**
|
|
6412
|
+
* Sender address
|
|
6413
|
+
*/
|
|
6414
|
+
from: string;
|
|
6415
|
+
/**
|
|
6416
|
+
* Recipient address
|
|
6417
|
+
*/
|
|
6418
|
+
to: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Amount transferred
|
|
6421
|
+
*/
|
|
6422
|
+
value: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Token Id
|
|
6425
|
+
*/
|
|
6426
|
+
tokenId?: string;
|
|
6427
|
+
/**
|
|
6428
|
+
* Block timestamp
|
|
6429
|
+
*/
|
|
6430
|
+
blockTimestamp: number;
|
|
6431
|
+
/**
|
|
6432
|
+
* Log index
|
|
6433
|
+
*/
|
|
6434
|
+
logIndex: number;
|
|
6435
|
+
/**
|
|
6436
|
+
* erc20 Token details
|
|
6437
|
+
*/
|
|
6438
|
+
erc20Token?: ERCToken;
|
|
6439
|
+
/**
|
|
6440
|
+
* erc721 Token details
|
|
6441
|
+
*/
|
|
6442
|
+
erc721Token?: ERCToken;
|
|
6443
|
+
/**
|
|
6444
|
+
* erc1155 Token details
|
|
6445
|
+
*/
|
|
6446
|
+
erc1155Token?: ERCToken;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
5418
6449
|
type Forbidden = {
|
|
5419
6450
|
/**
|
|
5420
6451
|
* The error message describing the reason for the exception
|
|
@@ -5445,6 +6476,64 @@ type InternalServerError = {
|
|
|
5445
6476
|
error: string;
|
|
5446
6477
|
};
|
|
5447
6478
|
|
|
6479
|
+
type Log = {
|
|
6480
|
+
/**
|
|
6481
|
+
* Contract address
|
|
6482
|
+
*/
|
|
6483
|
+
address: string;
|
|
6484
|
+
/**
|
|
6485
|
+
* First topic
|
|
6486
|
+
*/
|
|
6487
|
+
topic0: string;
|
|
6488
|
+
/**
|
|
6489
|
+
* Second topic (optional)
|
|
6490
|
+
*/
|
|
6491
|
+
topic1?: string;
|
|
6492
|
+
/**
|
|
6493
|
+
* Third topic (optional)
|
|
6494
|
+
*/
|
|
6495
|
+
topic2?: string;
|
|
6496
|
+
/**
|
|
6497
|
+
* Fourth topic (optional)
|
|
6498
|
+
*/
|
|
6499
|
+
topic3?: string;
|
|
6500
|
+
/**
|
|
6501
|
+
* Event data
|
|
6502
|
+
*/
|
|
6503
|
+
data: string;
|
|
6504
|
+
/**
|
|
6505
|
+
* Transaction index
|
|
6506
|
+
*/
|
|
6507
|
+
transactionIndex: number;
|
|
6508
|
+
/**
|
|
6509
|
+
* Log index
|
|
6510
|
+
*/
|
|
6511
|
+
logIndex: number;
|
|
6512
|
+
/**
|
|
6513
|
+
* Indicates if the log was removed
|
|
6514
|
+
*/
|
|
6515
|
+
removed: boolean;
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6518
|
+
type NetworkTokenInfo = {
|
|
6519
|
+
/**
|
|
6520
|
+
* Token name
|
|
6521
|
+
*/
|
|
6522
|
+
tokenName?: string;
|
|
6523
|
+
/**
|
|
6524
|
+
* Token symbol
|
|
6525
|
+
*/
|
|
6526
|
+
tokenSymbol?: string;
|
|
6527
|
+
/**
|
|
6528
|
+
* Token decimals
|
|
6529
|
+
*/
|
|
6530
|
+
tokenDecimals?: number;
|
|
6531
|
+
/**
|
|
6532
|
+
* Value including decimals
|
|
6533
|
+
*/
|
|
6534
|
+
valueWithDecimals?: string;
|
|
6535
|
+
};
|
|
6536
|
+
|
|
5448
6537
|
type NextPageToken = {
|
|
5449
6538
|
/**
|
|
5450
6539
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5497,6 +6586,163 @@ type TooManyRequests = {
|
|
|
5497
6586
|
error: string;
|
|
5498
6587
|
};
|
|
5499
6588
|
|
|
6589
|
+
type WebhookInternalTransaction = {
|
|
6590
|
+
/**
|
|
6591
|
+
* Sender address
|
|
6592
|
+
*/
|
|
6593
|
+
from: string;
|
|
6594
|
+
/**
|
|
6595
|
+
* Recipient address
|
|
6596
|
+
*/
|
|
6597
|
+
to: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* Internal transaction type
|
|
6600
|
+
*/
|
|
6601
|
+
internalTxType: string;
|
|
6602
|
+
/**
|
|
6603
|
+
* Value transferred
|
|
6604
|
+
*/
|
|
6605
|
+
value: string;
|
|
6606
|
+
/**
|
|
6607
|
+
* Gas used
|
|
6608
|
+
*/
|
|
6609
|
+
gasUsed: string;
|
|
6610
|
+
/**
|
|
6611
|
+
* Gas limit
|
|
6612
|
+
*/
|
|
6613
|
+
gasLimit: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* Transaction hash
|
|
6616
|
+
*/
|
|
6617
|
+
transactionHash: string;
|
|
6618
|
+
};
|
|
6619
|
+
|
|
6620
|
+
type Transaction = {
|
|
6621
|
+
/**
|
|
6622
|
+
* Block hash of the transaction
|
|
6623
|
+
*/
|
|
6624
|
+
blockHash: string;
|
|
6625
|
+
/**
|
|
6626
|
+
* Block number of the transaction
|
|
6627
|
+
*/
|
|
6628
|
+
blockNumber: string;
|
|
6629
|
+
/**
|
|
6630
|
+
* Sender address
|
|
6631
|
+
*/
|
|
6632
|
+
from: string;
|
|
6633
|
+
/**
|
|
6634
|
+
* Gas limit for the transaction
|
|
6635
|
+
*/
|
|
6636
|
+
gas: string;
|
|
6637
|
+
/**
|
|
6638
|
+
* Gas price used
|
|
6639
|
+
*/
|
|
6640
|
+
gasPrice: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* Maximum fee per gas
|
|
6643
|
+
*/
|
|
6644
|
+
maxFeePerGas: string;
|
|
6645
|
+
/**
|
|
6646
|
+
* Maximum priority fee per gas
|
|
6647
|
+
*/
|
|
6648
|
+
maxPriorityFeePerGas: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* Transaction hash
|
|
6651
|
+
*/
|
|
6652
|
+
txHash: string;
|
|
6653
|
+
/**
|
|
6654
|
+
* Transaction status
|
|
6655
|
+
*/
|
|
6656
|
+
txStatus: string;
|
|
6657
|
+
/**
|
|
6658
|
+
* Input data
|
|
6659
|
+
*/
|
|
6660
|
+
input: string;
|
|
6661
|
+
/**
|
|
6662
|
+
* Nonce value
|
|
6663
|
+
*/
|
|
6664
|
+
nonce: string;
|
|
6665
|
+
/**
|
|
6666
|
+
* Recipient address
|
|
6667
|
+
*/
|
|
6668
|
+
to: string;
|
|
6669
|
+
/**
|
|
6670
|
+
* Transaction index
|
|
6671
|
+
*/
|
|
6672
|
+
transactionIndex: number;
|
|
6673
|
+
/**
|
|
6674
|
+
* Value transferred in the transaction
|
|
6675
|
+
*/
|
|
6676
|
+
value: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* Transaction type
|
|
6679
|
+
*/
|
|
6680
|
+
type: number;
|
|
6681
|
+
/**
|
|
6682
|
+
* Chain ID of the network
|
|
6683
|
+
*/
|
|
6684
|
+
chainId: string;
|
|
6685
|
+
/**
|
|
6686
|
+
* Cumulative gas used
|
|
6687
|
+
*/
|
|
6688
|
+
receiptCumulativeGasUsed: string;
|
|
6689
|
+
/**
|
|
6690
|
+
* Gas used
|
|
6691
|
+
*/
|
|
6692
|
+
receiptGasUsed: string;
|
|
6693
|
+
/**
|
|
6694
|
+
* Effective gas price
|
|
6695
|
+
*/
|
|
6696
|
+
receiptEffectiveGasPrice: string;
|
|
6697
|
+
/**
|
|
6698
|
+
* Receipt root
|
|
6699
|
+
*/
|
|
6700
|
+
receiptRoot: string;
|
|
6701
|
+
/**
|
|
6702
|
+
* Block timestamp
|
|
6703
|
+
*/
|
|
6704
|
+
blockTimestamp: number;
|
|
6705
|
+
/**
|
|
6706
|
+
* Contract address (optional)
|
|
6707
|
+
*/
|
|
6708
|
+
contractAddress?: string;
|
|
6709
|
+
/**
|
|
6710
|
+
* ERC20 transfers
|
|
6711
|
+
*/
|
|
6712
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6713
|
+
/**
|
|
6714
|
+
* ERC721 transfers
|
|
6715
|
+
*/
|
|
6716
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6717
|
+
/**
|
|
6718
|
+
* ERC1155 transfers
|
|
6719
|
+
*/
|
|
6720
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6721
|
+
/**
|
|
6722
|
+
* Internal transactions (optional)
|
|
6723
|
+
*/
|
|
6724
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6725
|
+
/**
|
|
6726
|
+
* Access list (optional)
|
|
6727
|
+
*/
|
|
6728
|
+
accessList?: Array<AccessListData>;
|
|
6729
|
+
/**
|
|
6730
|
+
* Network token info (optional)
|
|
6731
|
+
*/
|
|
6732
|
+
networkToken?: NetworkTokenInfo;
|
|
6733
|
+
};
|
|
6734
|
+
|
|
6735
|
+
type TransactionEvent = {
|
|
6736
|
+
/**
|
|
6737
|
+
* Transaction details
|
|
6738
|
+
*/
|
|
6739
|
+
transaction: Transaction;
|
|
6740
|
+
/**
|
|
6741
|
+
* Array of log events
|
|
6742
|
+
*/
|
|
6743
|
+
logs?: Array<Log>;
|
|
6744
|
+
};
|
|
6745
|
+
|
|
5500
6746
|
type Unauthorized = {
|
|
5501
6747
|
/**
|
|
5502
6748
|
* The error message describing the reason for the exception
|
|
@@ -5512,4 +6758,43 @@ type Unauthorized = {
|
|
|
5512
6758
|
error: string;
|
|
5513
6759
|
};
|
|
5514
6760
|
|
|
5515
|
-
|
|
6761
|
+
type WebhookAddressActivityResponse = {
|
|
6762
|
+
/**
|
|
6763
|
+
* Webhook ID
|
|
6764
|
+
*/
|
|
6765
|
+
webhookId: string;
|
|
6766
|
+
/**
|
|
6767
|
+
* Event type
|
|
6768
|
+
*/
|
|
6769
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6770
|
+
/**
|
|
6771
|
+
* Message ID
|
|
6772
|
+
*/
|
|
6773
|
+
messageId: string;
|
|
6774
|
+
/**
|
|
6775
|
+
* Event details
|
|
6776
|
+
*/
|
|
6777
|
+
event: TransactionEvent;
|
|
6778
|
+
};
|
|
6779
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6780
|
+
/**
|
|
6781
|
+
* Event type
|
|
6782
|
+
*/
|
|
6783
|
+
enum eventType {
|
|
6784
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
|
|
6788
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6789
|
+
constructor(config: OpenAPIConfig);
|
|
6790
|
+
/**
|
|
6791
|
+
* Request method
|
|
6792
|
+
* @param options The request options from the service
|
|
6793
|
+
* @returns CancelablePromise<T>
|
|
6794
|
+
* @throws ApiError
|
|
6795
|
+
*/
|
|
6796
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6797
|
+
}
|
|
6798
|
+
|
|
6799
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, 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, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6800
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|