@avalabs/glacier-sdk 3.1.0-canary.c57360e.0 → 3.1.0-canary.c5d5718.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 +1790 -389
- package/esm/generated/Glacier.d.ts +4 -2
- 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/AddressActivityMetadata.d.ts +1 -1
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/Blockchain.d.ts +5 -1
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +5 -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 +5 -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 +5 -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 +3 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +16 -17
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- 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 +12 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +1 -1
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +4 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +5 -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 +34 -8
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +28 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
- 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/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- 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/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -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 +2 -8
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- 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 +1 -1
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +1 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +122 -23
- 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 +80 -2
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
- 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/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -2
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.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 +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +52 -10
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,28 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet"
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
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"
|
|
171
|
+
}
|
|
172
|
+
|
|
151
173
|
type RpcUsageMetricsValueAggregated = {
|
|
152
174
|
/**
|
|
153
175
|
* The total number of requests
|
|
@@ -173,6 +195,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
195
|
* The number of invalid requests
|
|
174
196
|
*/
|
|
175
197
|
invalidRequests: number;
|
|
198
|
+
/**
|
|
199
|
+
* The number of API credits wasted on invalid requests
|
|
200
|
+
*/
|
|
201
|
+
apiCreditsWasted: number;
|
|
176
202
|
/**
|
|
177
203
|
* Column name used for data aggregation
|
|
178
204
|
*/
|
|
@@ -190,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
216
|
RPC_METHOD = "rpcMethod",
|
|
191
217
|
RESPONSE_CODE = "responseCode",
|
|
192
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
193
223
|
NONE = "None"
|
|
194
224
|
}
|
|
195
225
|
}
|
|
@@ -205,19 +235,56 @@ type RpcMetrics = {
|
|
|
205
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
236
|
};
|
|
207
237
|
|
|
208
|
-
type
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
239
|
/**
|
|
210
240
|
* Duration in which the metrics value is aggregated
|
|
211
241
|
*/
|
|
212
242
|
aggregateDuration: string;
|
|
213
243
|
/**
|
|
214
|
-
*
|
|
244
|
+
* Metrics values
|
|
215
245
|
*/
|
|
216
|
-
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
276
|
+
/**
|
|
277
|
+
* Duration in which the metrics value is aggregated
|
|
278
|
+
*/
|
|
279
|
+
aggregateDuration: string;
|
|
217
280
|
/**
|
|
218
281
|
* Metrics values
|
|
219
282
|
*/
|
|
220
283
|
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
221
288
|
};
|
|
222
289
|
|
|
223
290
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +390,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
390
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
391
|
* @throws ApiError
|
|
325
392
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
393
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
394
|
/**
|
|
328
395
|
* Organization ID to fetch usage metrics for
|
|
329
396
|
*/
|
|
@@ -333,7 +400,7 @@ declare class DataApiUsageMetricsService {
|
|
|
333
400
|
*/
|
|
334
401
|
startTimestamp?: number;
|
|
335
402
|
/**
|
|
336
|
-
* 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.
|
|
403
|
+
* 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.
|
|
337
404
|
*/
|
|
338
405
|
endTimestamp?: number;
|
|
339
406
|
/**
|
|
@@ -348,10 +415,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
415
|
* Filter data by chain ID.
|
|
349
416
|
*/
|
|
350
417
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
418
|
/**
|
|
356
419
|
* Filter data by response status code.
|
|
357
420
|
*/
|
|
@@ -364,6 +427,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
427
|
* Filter data by API key ID.
|
|
365
428
|
*/
|
|
366
429
|
apiKeyId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Filter data by request path.
|
|
432
|
+
*/
|
|
433
|
+
requestPath?: string;
|
|
367
434
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
435
|
/**
|
|
369
436
|
* Get logs for requests made by client
|
|
@@ -371,7 +438,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
438
|
* @returns LogsResponseDTO Successful response
|
|
372
439
|
* @throws ApiError
|
|
373
440
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
441
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
442
|
/**
|
|
376
443
|
* Organization ID to fetch usage metrics for
|
|
377
444
|
*/
|
|
@@ -381,17 +448,13 @@ declare class DataApiUsageMetricsService {
|
|
|
381
448
|
*/
|
|
382
449
|
startTimestamp?: number;
|
|
383
450
|
/**
|
|
384
|
-
* 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.
|
|
451
|
+
* 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.
|
|
385
452
|
*/
|
|
386
453
|
endTimestamp?: number;
|
|
387
454
|
/**
|
|
388
455
|
* Filter data by chain ID.
|
|
389
456
|
*/
|
|
390
457
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
458
|
/**
|
|
396
459
|
* Filter data by response status code.
|
|
397
460
|
*/
|
|
@@ -404,6 +467,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
467
|
* Filter data by API key ID.
|
|
405
468
|
*/
|
|
406
469
|
apiKeyId?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Filter data by request path.
|
|
472
|
+
*/
|
|
473
|
+
requestPath?: string;
|
|
407
474
|
/**
|
|
408
475
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
476
|
*/
|
|
@@ -415,35 +482,75 @@ declare class DataApiUsageMetricsService {
|
|
|
415
482
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
483
|
/**
|
|
417
484
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
485
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
486
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
487
|
* @throws ApiError
|
|
421
488
|
*/
|
|
422
|
-
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
490
|
/**
|
|
424
|
-
*
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
425
493
|
*/
|
|
426
|
-
timeInterval?:
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
495
|
/**
|
|
428
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.
|
|
429
497
|
*/
|
|
430
498
|
startTimestamp?: number;
|
|
431
499
|
/**
|
|
432
|
-
* 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.
|
|
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.
|
|
433
501
|
*/
|
|
434
502
|
endTimestamp?: number;
|
|
435
503
|
/**
|
|
436
504
|
* Query param for the criterion used for grouping metrics
|
|
437
505
|
*/
|
|
438
|
-
groupBy?:
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
507
|
/**
|
|
440
508
|
* Filter data by chain ID.
|
|
441
509
|
*/
|
|
442
510
|
chainId?: string;
|
|
443
511
|
/**
|
|
444
|
-
* Filter data by
|
|
512
|
+
* Filter data by response status code.
|
|
445
513
|
*/
|
|
446
|
-
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
532
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
533
|
+
/**
|
|
534
|
+
* Time interval granularity for data aggregation for subnet
|
|
535
|
+
* rpc metrics
|
|
536
|
+
*/
|
|
537
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
538
|
+
/**
|
|
539
|
+
* 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.
|
|
540
|
+
*/
|
|
541
|
+
startTimestamp?: number;
|
|
542
|
+
/**
|
|
543
|
+
* 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.
|
|
544
|
+
*/
|
|
545
|
+
endTimestamp?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Query param for the criterion used for grouping metrics
|
|
548
|
+
*/
|
|
549
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
550
|
+
/**
|
|
551
|
+
* Filter data by chain ID.
|
|
552
|
+
*/
|
|
553
|
+
chainId?: string;
|
|
447
554
|
/**
|
|
448
555
|
* Filter data by response status code.
|
|
449
556
|
*/
|
|
@@ -456,7 +563,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
563
|
* Filter data by Rl Bypass API Token.
|
|
457
564
|
*/
|
|
458
565
|
rlBypassApiToken?: string;
|
|
459
|
-
}): 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>;
|
|
460
620
|
}
|
|
461
621
|
|
|
462
622
|
declare class DefaultService {
|
|
@@ -655,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
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.
|
|
656
816
|
*/
|
|
657
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
822
|
/**
|
|
659
823
|
* The list of ERC-1155 token balances for the address.
|
|
660
824
|
*/
|
|
@@ -699,11 +863,22 @@ type Erc20TokenBalance = {
|
|
|
699
863
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
864
|
*/
|
|
701
865
|
balanceValue?: Money;
|
|
866
|
+
/**
|
|
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.
|
|
868
|
+
*/
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
870
|
};
|
|
703
871
|
declare namespace Erc20TokenBalance {
|
|
704
872
|
enum ercType {
|
|
705
873
|
ERC_20 = "ERC-20"
|
|
706
874
|
}
|
|
875
|
+
/**
|
|
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.
|
|
877
|
+
*/
|
|
878
|
+
enum tokenReputation {
|
|
879
|
+
MALICIOUS = "Malicious",
|
|
880
|
+
BENIGN = "Benign"
|
|
881
|
+
}
|
|
707
882
|
}
|
|
708
883
|
|
|
709
884
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
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.
|
|
712
887
|
*/
|
|
713
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
893
|
/**
|
|
715
894
|
* The list of ERC-20 token balances for the address.
|
|
716
895
|
*/
|
|
@@ -722,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
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.
|
|
723
902
|
*/
|
|
724
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
908
|
/**
|
|
726
909
|
* The list of ERC-721 token balances for the address.
|
|
727
910
|
*/
|
|
@@ -785,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
785
968
|
*/
|
|
786
969
|
pageToken?: string;
|
|
787
970
|
/**
|
|
788
|
-
* 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.
|
|
789
972
|
*/
|
|
790
973
|
pageSize?: number;
|
|
791
974
|
/**
|
|
@@ -823,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
823
1006
|
*/
|
|
824
1007
|
pageToken?: string;
|
|
825
1008
|
/**
|
|
826
|
-
* 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.
|
|
827
1010
|
*/
|
|
828
1011
|
pageSize?: number;
|
|
829
1012
|
/**
|
|
@@ -859,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
859
1042
|
*/
|
|
860
1043
|
pageToken?: string;
|
|
861
1044
|
/**
|
|
862
|
-
* 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.
|
|
863
1046
|
*/
|
|
864
1047
|
pageSize?: number;
|
|
865
1048
|
/**
|
|
@@ -889,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
889
1072
|
*/
|
|
890
1073
|
pageToken?: string;
|
|
891
1074
|
/**
|
|
892
|
-
* 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.
|
|
893
1076
|
*/
|
|
894
1077
|
pageSize?: number;
|
|
895
1078
|
/**
|
|
@@ -900,6 +1083,10 @@ declare class EvmBalancesService {
|
|
|
900
1083
|
}
|
|
901
1084
|
|
|
902
1085
|
type GetEvmBlockResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* The EVM chain ID on which the block was created.
|
|
1088
|
+
*/
|
|
1089
|
+
chainId: string;
|
|
903
1090
|
/**
|
|
904
1091
|
* The block number on the chain.
|
|
905
1092
|
*/
|
|
@@ -944,6 +1131,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1131
|
};
|
|
945
1132
|
|
|
946
1133
|
type EvmBlock = {
|
|
1134
|
+
/**
|
|
1135
|
+
* The EVM chain ID on which the block was created.
|
|
1136
|
+
*/
|
|
1137
|
+
chainId: string;
|
|
947
1138
|
/**
|
|
948
1139
|
* The block number on the chain.
|
|
949
1140
|
*/
|
|
@@ -998,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1189
|
declare class EvmBlocksService {
|
|
999
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
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>;
|
|
1001
1212
|
/**
|
|
1002
1213
|
* List latest blocks
|
|
1003
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1120,66 +1331,250 @@ type ChainInfo = {
|
|
|
1120
1331
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1121
1332
|
};
|
|
1122
1333
|
|
|
1334
|
+
type ListAddressChainsResponse = {
|
|
1335
|
+
indexedChains?: Array<ChainInfo>;
|
|
1336
|
+
unindexedChains?: Array<string>;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1123
1339
|
type ListChainsResponse = {
|
|
1124
1340
|
chains: Array<ChainInfo>;
|
|
1125
1341
|
};
|
|
1126
1342
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1343
|
+
/**
|
|
1344
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1345
|
+
*/
|
|
1346
|
+
declare enum TransactionMethodType {
|
|
1347
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1348
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1349
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1132
1350
|
}
|
|
1133
1351
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1352
|
+
type Method = {
|
|
1353
|
+
callType: TransactionMethodType;
|
|
1137
1354
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1140
|
-
* @returns ListChainsResponse Successful response
|
|
1141
|
-
* @throws ApiError
|
|
1355
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1142
1356
|
*/
|
|
1143
|
-
|
|
1144
|
-
/**
|
|
1145
|
-
* Either mainnet or testnet/fuji.
|
|
1146
|
-
*/
|
|
1147
|
-
network?: Network;
|
|
1148
|
-
/**
|
|
1149
|
-
* Filter by feature.
|
|
1150
|
-
*/
|
|
1151
|
-
feature?: ApiFeature;
|
|
1152
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1357
|
+
methodHash: string;
|
|
1153
1358
|
/**
|
|
1154
|
-
*
|
|
1155
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1156
|
-
* @returns GetChainResponse Successful response
|
|
1157
|
-
* @throws ApiError
|
|
1359
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1158
1360
|
*/
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1162
|
-
*/
|
|
1163
|
-
chainId: string;
|
|
1164
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1165
|
-
}
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1166
1363
|
|
|
1167
|
-
type
|
|
1168
|
-
assetId?: string;
|
|
1364
|
+
type RichAddress = {
|
|
1169
1365
|
/**
|
|
1170
|
-
*
|
|
1366
|
+
* The contract name.
|
|
1171
1367
|
*/
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1368
|
+
name?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* The contract symbol.
|
|
1371
|
+
*/
|
|
1372
|
+
symbol?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1375
|
+
*/
|
|
1376
|
+
decimals?: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* The logo uri for the address.
|
|
1379
|
+
*/
|
|
1380
|
+
logoUri?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1383
|
+
*/
|
|
1384
|
+
address: string;
|
|
1177
1385
|
};
|
|
1178
1386
|
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1387
|
+
type NativeTransaction = {
|
|
1388
|
+
/**
|
|
1389
|
+
* The block number on the chain.
|
|
1390
|
+
*/
|
|
1391
|
+
blockNumber: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* The block finality timestamp.
|
|
1394
|
+
*/
|
|
1395
|
+
blockTimestamp: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* The block hash identifier.
|
|
1398
|
+
*/
|
|
1399
|
+
blockHash: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* The EVM chain ID on which the transaction occured.
|
|
1402
|
+
*/
|
|
1403
|
+
chainId: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1406
|
+
*/
|
|
1407
|
+
blockIndex: number;
|
|
1408
|
+
/**
|
|
1409
|
+
* The transaction hash identifier.
|
|
1410
|
+
*/
|
|
1411
|
+
txHash: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1414
|
+
*/
|
|
1415
|
+
txStatus: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* The transaction type.
|
|
1418
|
+
*/
|
|
1419
|
+
txType: number;
|
|
1420
|
+
/**
|
|
1421
|
+
* The gas limit set for the transaction.
|
|
1422
|
+
*/
|
|
1423
|
+
gasLimit: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* The amount of gas used.
|
|
1426
|
+
*/
|
|
1427
|
+
gasUsed: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1430
|
+
*/
|
|
1431
|
+
gasPrice: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The nonce used by the sender of the transaction.
|
|
1434
|
+
*/
|
|
1435
|
+
nonce: string;
|
|
1436
|
+
from: RichAddress;
|
|
1437
|
+
to: RichAddress;
|
|
1438
|
+
method?: Method;
|
|
1439
|
+
value: string;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
type ListNativeTransactionsResponse = {
|
|
1443
|
+
/**
|
|
1444
|
+
* 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.
|
|
1445
|
+
*/
|
|
1446
|
+
nextPageToken?: string;
|
|
1447
|
+
transactions: Array<NativeTransaction>;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
declare enum TransactionStatus {
|
|
1451
|
+
FAILED = "failed",
|
|
1452
|
+
SUCCESS = "success"
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare class EvmChainsService {
|
|
1456
|
+
readonly httpRequest: BaseHttpRequest;
|
|
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>;
|
|
1470
|
+
/**
|
|
1471
|
+
* List chains
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1473
|
+
* @returns ListChainsResponse Successful response
|
|
1474
|
+
* @throws ApiError
|
|
1475
|
+
*/
|
|
1476
|
+
supportedChains({ network, feature, }: {
|
|
1477
|
+
/**
|
|
1478
|
+
* Either mainnet or testnet/fuji.
|
|
1479
|
+
*/
|
|
1480
|
+
network?: Network;
|
|
1481
|
+
/**
|
|
1482
|
+
* Filter by feature.
|
|
1483
|
+
*/
|
|
1484
|
+
feature?: ApiFeature;
|
|
1485
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Get chain information
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1489
|
+
* @returns GetChainResponse Successful response
|
|
1490
|
+
* @throws ApiError
|
|
1491
|
+
*/
|
|
1492
|
+
getChainInfo({ chainId, }: {
|
|
1493
|
+
/**
|
|
1494
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1495
|
+
*/
|
|
1496
|
+
chainId: string;
|
|
1497
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1498
|
+
/**
|
|
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** .
|
|
1503
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1504
|
+
* @throws ApiError
|
|
1505
|
+
*/
|
|
1506
|
+
getAddressChains({ address, }: {
|
|
1507
|
+
/**
|
|
1508
|
+
* A wallet address.
|
|
1509
|
+
*/
|
|
1510
|
+
address: string;
|
|
1511
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1512
|
+
/**
|
|
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** .
|
|
1517
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1518
|
+
* @throws ApiError
|
|
1519
|
+
*/
|
|
1520
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1521
|
+
/**
|
|
1522
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1523
|
+
*/
|
|
1524
|
+
pageToken?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1527
|
+
*/
|
|
1528
|
+
pageSize?: number;
|
|
1529
|
+
/**
|
|
1530
|
+
* Either mainnet or testnet/fuji.
|
|
1531
|
+
*/
|
|
1532
|
+
network?: Network;
|
|
1533
|
+
/**
|
|
1534
|
+
* A status filter for listed transactions.
|
|
1535
|
+
*/
|
|
1536
|
+
status?: TransactionStatus;
|
|
1537
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1538
|
+
/**
|
|
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** .
|
|
1543
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1544
|
+
* @throws ApiError
|
|
1545
|
+
*/
|
|
1546
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1547
|
+
/**
|
|
1548
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1549
|
+
*/
|
|
1550
|
+
pageToken?: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1553
|
+
*/
|
|
1554
|
+
pageSize?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Either mainnet or testnet/fuji.
|
|
1557
|
+
*/
|
|
1558
|
+
network?: Network;
|
|
1559
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
type ImageAsset = {
|
|
1563
|
+
assetId?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* OUTPUT ONLY
|
|
1566
|
+
*/
|
|
1567
|
+
imageUri?: string;
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
type PricingProviders = {
|
|
1571
|
+
coingeckoCoinId?: string;
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
declare enum ResourceLinkType {
|
|
1575
|
+
BLOG = "Blog",
|
|
1576
|
+
COIN_GECKO = "CoinGecko",
|
|
1577
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1183
1578
|
DISCORD = "Discord",
|
|
1184
1579
|
DOCUMENTATION = "Documentation",
|
|
1185
1580
|
FACEBOOK = "Facebook",
|
|
@@ -1333,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1333
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1334
1729
|
*/
|
|
1335
1730
|
address: string;
|
|
1336
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1337
1732
|
ercType: Erc1155Contract.ercType;
|
|
1338
1733
|
/**
|
|
1339
1734
|
* The contract symbol.
|
|
@@ -1364,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1364
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1365
1760
|
*/
|
|
1366
1761
|
address: string;
|
|
1367
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1368
1763
|
ercType: Erc20Contract.ercType;
|
|
1369
1764
|
/**
|
|
1370
1765
|
* The contract symbol.
|
|
@@ -1399,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1399
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1400
1795
|
*/
|
|
1401
1796
|
address: string;
|
|
1402
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1403
1798
|
ercType: Erc721Contract.ercType;
|
|
1404
1799
|
/**
|
|
1405
1800
|
* The contract symbol.
|
|
@@ -1429,7 +1824,7 @@ type UnknownContract = {
|
|
|
1429
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1430
1825
|
*/
|
|
1431
1826
|
address: string;
|
|
1432
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1433
1828
|
ercType: UnknownContract.ercType;
|
|
1434
1829
|
};
|
|
1435
1830
|
declare namespace UnknownContract {
|
|
@@ -1496,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1496
1891
|
}
|
|
1497
1892
|
}
|
|
1498
1893
|
|
|
1499
|
-
type RichAddress = {
|
|
1500
|
-
/**
|
|
1501
|
-
* The contract name.
|
|
1502
|
-
*/
|
|
1503
|
-
name?: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* The contract symbol.
|
|
1506
|
-
*/
|
|
1507
|
-
symbol?: string;
|
|
1508
|
-
/**
|
|
1509
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1510
|
-
*/
|
|
1511
|
-
decimals?: number;
|
|
1512
|
-
/**
|
|
1513
|
-
* The logo uri for the address.
|
|
1514
|
-
*/
|
|
1515
|
-
logoUri?: string;
|
|
1516
|
-
/**
|
|
1517
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1518
|
-
*/
|
|
1519
|
-
address: string;
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
1894
|
type Erc1155TransferDetails = {
|
|
1523
1895
|
from: RichAddress;
|
|
1524
1896
|
to: RichAddress;
|
|
@@ -1603,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1603
1975
|
erc721Token: Erc721Token;
|
|
1604
1976
|
};
|
|
1605
1977
|
|
|
1606
|
-
/**
|
|
1607
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1608
|
-
*/
|
|
1609
|
-
declare enum TransactionMethodType {
|
|
1610
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1611
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1612
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
type Method = {
|
|
1616
|
-
callType: TransactionMethodType;
|
|
1617
|
-
/**
|
|
1618
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1619
|
-
*/
|
|
1620
|
-
methodHash: string;
|
|
1621
|
-
/**
|
|
1622
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1623
|
-
*/
|
|
1624
|
-
methodName?: string;
|
|
1625
|
-
};
|
|
1626
|
-
|
|
1627
1978
|
type FullNativeTransactionDetails = {
|
|
1628
1979
|
/**
|
|
1629
1980
|
* The block number on the chain.
|
|
@@ -1637,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1637
1988
|
* The block hash identifier.
|
|
1638
1989
|
*/
|
|
1639
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1640
1995
|
/**
|
|
1641
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1642
1997
|
*/
|
|
@@ -1687,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1687
2042
|
CALL = "CALL",
|
|
1688
2043
|
CREATE = "CREATE",
|
|
1689
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1690
2046
|
CALLCODE = "CALLCODE",
|
|
1691
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1692
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -1749,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
1749
2105
|
*/
|
|
1750
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1751
2107
|
/**
|
|
1752
|
-
* 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.
|
|
1753
2109
|
*/
|
|
1754
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1755
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1865,31 +2221,33 @@ type ListErc721TransactionsResponse = {
|
|
|
1865
2221
|
|
|
1866
2222
|
type InternalTransaction = {
|
|
1867
2223
|
/**
|
|
1868
|
-
*
|
|
2224
|
+
* Sender address
|
|
1869
2225
|
*/
|
|
1870
|
-
|
|
2226
|
+
from: string;
|
|
1871
2227
|
/**
|
|
1872
|
-
*
|
|
2228
|
+
* Recipient address
|
|
1873
2229
|
*/
|
|
1874
|
-
|
|
2230
|
+
to: string;
|
|
1875
2231
|
/**
|
|
1876
|
-
*
|
|
2232
|
+
* Internal transaction type
|
|
1877
2233
|
*/
|
|
1878
|
-
|
|
2234
|
+
internalTxType: string;
|
|
1879
2235
|
/**
|
|
1880
|
-
*
|
|
2236
|
+
* Value transferred
|
|
1881
2237
|
*/
|
|
1882
|
-
txHash: string;
|
|
1883
|
-
from: RichAddress;
|
|
1884
|
-
to: RichAddress;
|
|
1885
|
-
internalTxType: InternalTransactionOpCall;
|
|
1886
2238
|
value: string;
|
|
1887
2239
|
/**
|
|
1888
|
-
*
|
|
2240
|
+
* Gas used
|
|
1889
2241
|
*/
|
|
1890
|
-
isReverted: boolean;
|
|
1891
2242
|
gasUsed: string;
|
|
2243
|
+
/**
|
|
2244
|
+
* Gas limit
|
|
2245
|
+
*/
|
|
1892
2246
|
gasLimit: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Transaction hash
|
|
2249
|
+
*/
|
|
2250
|
+
transactionHash: string;
|
|
1893
2251
|
};
|
|
1894
2252
|
|
|
1895
2253
|
type ListInternalTransactionsResponse = {
|
|
@@ -1900,84 +2258,25 @@ type ListInternalTransactionsResponse = {
|
|
|
1900
2258
|
transactions: Array<InternalTransaction>;
|
|
1901
2259
|
};
|
|
1902
2260
|
|
|
1903
|
-
type
|
|
2261
|
+
type TransactionDetails = {
|
|
1904
2262
|
/**
|
|
1905
|
-
* The
|
|
2263
|
+
* The native (top-level) transaction details.
|
|
1906
2264
|
*/
|
|
1907
|
-
|
|
2265
|
+
nativeTransaction: NativeTransaction;
|
|
1908
2266
|
/**
|
|
1909
|
-
* The
|
|
2267
|
+
* The list of ERC-20 transfers.
|
|
1910
2268
|
*/
|
|
1911
|
-
|
|
2269
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1912
2270
|
/**
|
|
1913
|
-
* The
|
|
2271
|
+
* The list of ERC-721 transfers.
|
|
1914
2272
|
*/
|
|
1915
|
-
|
|
2273
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1916
2274
|
/**
|
|
1917
|
-
* The
|
|
2275
|
+
* The list of ERC-1155 transfers.
|
|
1918
2276
|
*/
|
|
1919
|
-
|
|
2277
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1920
2278
|
/**
|
|
1921
|
-
* The
|
|
1922
|
-
*/
|
|
1923
|
-
txHash: string;
|
|
1924
|
-
/**
|
|
1925
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1926
|
-
*/
|
|
1927
|
-
txStatus: string;
|
|
1928
|
-
/**
|
|
1929
|
-
* The transaction type.
|
|
1930
|
-
*/
|
|
1931
|
-
txType: number;
|
|
1932
|
-
/**
|
|
1933
|
-
* The gas limit set for the transaction.
|
|
1934
|
-
*/
|
|
1935
|
-
gasLimit: string;
|
|
1936
|
-
/**
|
|
1937
|
-
* The amount of gas used.
|
|
1938
|
-
*/
|
|
1939
|
-
gasUsed: string;
|
|
1940
|
-
/**
|
|
1941
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1942
|
-
*/
|
|
1943
|
-
gasPrice: string;
|
|
1944
|
-
/**
|
|
1945
|
-
* The nonce used by the sender of the transaction.
|
|
1946
|
-
*/
|
|
1947
|
-
nonce: string;
|
|
1948
|
-
from: RichAddress;
|
|
1949
|
-
to: RichAddress;
|
|
1950
|
-
method?: Method;
|
|
1951
|
-
value: string;
|
|
1952
|
-
};
|
|
1953
|
-
|
|
1954
|
-
type ListNativeTransactionsResponse = {
|
|
1955
|
-
/**
|
|
1956
|
-
* 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.
|
|
1957
|
-
*/
|
|
1958
|
-
nextPageToken?: string;
|
|
1959
|
-
transactions: Array<NativeTransaction>;
|
|
1960
|
-
};
|
|
1961
|
-
|
|
1962
|
-
type TransactionDetails = {
|
|
1963
|
-
/**
|
|
1964
|
-
* The native (top-level) transaction details.
|
|
1965
|
-
*/
|
|
1966
|
-
nativeTransaction: NativeTransaction;
|
|
1967
|
-
/**
|
|
1968
|
-
* The list of ERC-20 transfers.
|
|
1969
|
-
*/
|
|
1970
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1971
|
-
/**
|
|
1972
|
-
* The list of ERC-721 transfers.
|
|
1973
|
-
*/
|
|
1974
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1975
|
-
/**
|
|
1976
|
-
* The list of ERC-1155 transfers.
|
|
1977
|
-
*/
|
|
1978
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1979
|
-
/**
|
|
1980
|
-
* 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 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2279
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1981
2280
|
*/
|
|
1982
2281
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1983
2282
|
};
|
|
@@ -2003,14 +2302,33 @@ declare enum SortOrder {
|
|
|
2003
2302
|
DESC = "desc"
|
|
2004
2303
|
}
|
|
2005
2304
|
|
|
2006
|
-
declare enum TransactionStatus {
|
|
2007
|
-
FAILED = "failed",
|
|
2008
|
-
SUCCESS = "success"
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
2305
|
declare class EvmTransactionsService {
|
|
2012
2306
|
readonly httpRequest: BaseHttpRequest;
|
|
2013
2307
|
constructor(httpRequest: BaseHttpRequest);
|
|
2308
|
+
/**
|
|
2309
|
+
* List the latest transactions across all supported EVM chains
|
|
2310
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2311
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2312
|
+
* @throws ApiError
|
|
2313
|
+
*/
|
|
2314
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2315
|
+
/**
|
|
2316
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2317
|
+
*/
|
|
2318
|
+
pageToken?: string;
|
|
2319
|
+
/**
|
|
2320
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2321
|
+
*/
|
|
2322
|
+
pageSize?: number;
|
|
2323
|
+
/**
|
|
2324
|
+
* Either mainnet or testnet/fuji.
|
|
2325
|
+
*/
|
|
2326
|
+
network?: Network;
|
|
2327
|
+
/**
|
|
2328
|
+
* A status filter for listed transactions.
|
|
2329
|
+
*/
|
|
2330
|
+
status?: TransactionStatus;
|
|
2331
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2014
2332
|
/**
|
|
2015
2333
|
* Get deployment transaction
|
|
2016
2334
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2257,7 +2575,7 @@ declare class EvmTransactionsService {
|
|
|
2257
2575
|
* List internal transactions
|
|
2258
2576
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2259
2577
|
*
|
|
2260
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2578
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2261
2579
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2262
2580
|
* @throws ApiError
|
|
2263
2581
|
*/
|
|
@@ -2309,7 +2627,7 @@ declare class EvmTransactionsService {
|
|
|
2309
2627
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2310
2628
|
* @throws ApiError
|
|
2311
2629
|
*/
|
|
2312
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2630
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2313
2631
|
/**
|
|
2314
2632
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2315
2633
|
*/
|
|
@@ -2318,6 +2636,14 @@ declare class EvmTransactionsService {
|
|
|
2318
2636
|
* A block identifier which is either a block number or the block hash.
|
|
2319
2637
|
*/
|
|
2320
2638
|
blockId: string;
|
|
2639
|
+
/**
|
|
2640
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2641
|
+
*/
|
|
2642
|
+
pageToken?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2645
|
+
*/
|
|
2646
|
+
pageSize?: number;
|
|
2321
2647
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2322
2648
|
/**
|
|
2323
2649
|
* List latest transactions
|
|
@@ -2345,66 +2671,246 @@ declare class EvmTransactionsService {
|
|
|
2345
2671
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2346
2672
|
}
|
|
2347
2673
|
|
|
2674
|
+
type HealthIndicatorResultDto = {
|
|
2675
|
+
/**
|
|
2676
|
+
* Status of the health indicator.
|
|
2677
|
+
*/
|
|
2678
|
+
status?: HealthIndicatorResultDto.status;
|
|
2679
|
+
};
|
|
2680
|
+
declare namespace HealthIndicatorResultDto {
|
|
2681
|
+
/**
|
|
2682
|
+
* Status of the health indicator.
|
|
2683
|
+
*/
|
|
2684
|
+
enum status {
|
|
2685
|
+
UP = "up",
|
|
2686
|
+
DOWN = "down"
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
type HealthCheckResultDto = {
|
|
2691
|
+
status?: HealthCheckResultDto.status;
|
|
2692
|
+
info?: any | null;
|
|
2693
|
+
error?: any | null;
|
|
2694
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2695
|
+
};
|
|
2696
|
+
declare namespace HealthCheckResultDto {
|
|
2697
|
+
enum status {
|
|
2698
|
+
ERROR = "error",
|
|
2699
|
+
OK = "ok",
|
|
2700
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2348
2704
|
declare class HealthCheckService {
|
|
2349
2705
|
readonly httpRequest: BaseHttpRequest;
|
|
2350
2706
|
constructor(httpRequest: BaseHttpRequest);
|
|
2351
2707
|
/**
|
|
2352
2708
|
* Get the health of the service
|
|
2353
|
-
*
|
|
2709
|
+
* Check the health of the service.
|
|
2710
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2354
2711
|
* @throws ApiError
|
|
2355
2712
|
*/
|
|
2356
|
-
dataHealthCheck(): CancelablePromise<
|
|
2357
|
-
status?: string;
|
|
2358
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2359
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2360
|
-
details?: Record<string, Record<string, string>>;
|
|
2361
|
-
}>;
|
|
2713
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2362
2714
|
}
|
|
2363
2715
|
|
|
2364
|
-
type
|
|
2716
|
+
type IcmDestinationTransaction = {
|
|
2717
|
+
txHash: string;
|
|
2718
|
+
timestamp: number;
|
|
2719
|
+
gasSpent: string;
|
|
2720
|
+
rewardRedeemer: string;
|
|
2721
|
+
delivererAddress: string;
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
type IcmReceipt = {
|
|
2725
|
+
receivedMessageNonce: string;
|
|
2726
|
+
relayerRewardAddress: string;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
type IcmRewardDetails = {
|
|
2730
|
+
/**
|
|
2731
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2732
|
+
*/
|
|
2733
|
+
address: string;
|
|
2734
|
+
/**
|
|
2735
|
+
* The contract name.
|
|
2736
|
+
*/
|
|
2737
|
+
name: string;
|
|
2738
|
+
/**
|
|
2739
|
+
* The contract symbol.
|
|
2740
|
+
*/
|
|
2741
|
+
symbol: string;
|
|
2742
|
+
/**
|
|
2743
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2744
|
+
*/
|
|
2745
|
+
decimals: number;
|
|
2746
|
+
/**
|
|
2747
|
+
* The logo uri for the address.
|
|
2748
|
+
*/
|
|
2749
|
+
logoUri?: string;
|
|
2750
|
+
ercType: IcmRewardDetails.ercType;
|
|
2751
|
+
/**
|
|
2752
|
+
* The token price, if available.
|
|
2753
|
+
*/
|
|
2754
|
+
price?: Money;
|
|
2755
|
+
value: string;
|
|
2756
|
+
};
|
|
2757
|
+
declare namespace IcmRewardDetails {
|
|
2758
|
+
enum ercType {
|
|
2759
|
+
ERC_20 = "ERC-20"
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
type IcmSourceTransaction = {
|
|
2764
|
+
txHash: string;
|
|
2765
|
+
timestamp: number;
|
|
2766
|
+
gasSpent: string;
|
|
2767
|
+
};
|
|
2768
|
+
|
|
2769
|
+
type DeliveredIcmMessage = {
|
|
2770
|
+
messageId: string;
|
|
2771
|
+
icmContractAddress: string;
|
|
2772
|
+
sourceBlockchainId: string;
|
|
2773
|
+
destinationBlockchainId: string;
|
|
2774
|
+
sourceEvmChainId: string;
|
|
2775
|
+
destinationEvmChainId: string;
|
|
2776
|
+
messageNonce: string;
|
|
2777
|
+
from: string;
|
|
2778
|
+
to: string;
|
|
2779
|
+
data?: string;
|
|
2780
|
+
messageExecuted: boolean;
|
|
2781
|
+
receipts: Array<IcmReceipt>;
|
|
2782
|
+
receiptDelivered: boolean;
|
|
2783
|
+
rewardDetails: IcmRewardDetails;
|
|
2784
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2785
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2786
|
+
status: DeliveredIcmMessage.status;
|
|
2787
|
+
};
|
|
2788
|
+
declare namespace DeliveredIcmMessage {
|
|
2789
|
+
enum status {
|
|
2790
|
+
DELIVERED = "delivered"
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2795
|
+
messageId: string;
|
|
2796
|
+
icmContractAddress: string;
|
|
2797
|
+
sourceBlockchainId: string;
|
|
2798
|
+
destinationBlockchainId: string;
|
|
2799
|
+
sourceEvmChainId: string;
|
|
2800
|
+
destinationEvmChainId: string;
|
|
2801
|
+
messageNonce: string;
|
|
2802
|
+
from: string;
|
|
2803
|
+
to: string;
|
|
2804
|
+
data?: string;
|
|
2805
|
+
messageExecuted: boolean;
|
|
2806
|
+
receipts: Array<IcmReceipt>;
|
|
2807
|
+
receiptDelivered: boolean;
|
|
2808
|
+
rewardDetails: IcmRewardDetails;
|
|
2809
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2810
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2811
|
+
};
|
|
2812
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2813
|
+
enum status {
|
|
2814
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
type PendingIcmMessage = {
|
|
2819
|
+
messageId: string;
|
|
2820
|
+
icmContractAddress: string;
|
|
2821
|
+
sourceBlockchainId: string;
|
|
2822
|
+
destinationBlockchainId: string;
|
|
2823
|
+
sourceEvmChainId: string;
|
|
2824
|
+
destinationEvmChainId: string;
|
|
2825
|
+
messageNonce: string;
|
|
2826
|
+
from: string;
|
|
2827
|
+
to: string;
|
|
2828
|
+
data?: string;
|
|
2829
|
+
messageExecuted: boolean;
|
|
2830
|
+
receipts: Array<IcmReceipt>;
|
|
2831
|
+
receiptDelivered: boolean;
|
|
2832
|
+
rewardDetails: IcmRewardDetails;
|
|
2833
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2834
|
+
status: PendingIcmMessage.status;
|
|
2835
|
+
};
|
|
2836
|
+
declare namespace PendingIcmMessage {
|
|
2837
|
+
enum status {
|
|
2838
|
+
PENDING = "pending"
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
type ListIcmMessagesResponse = {
|
|
2365
2843
|
/**
|
|
2366
2844
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2367
2845
|
*/
|
|
2368
2846
|
nextPageToken?: string;
|
|
2369
|
-
|
|
2847
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2370
2848
|
};
|
|
2371
2849
|
|
|
2372
|
-
declare class
|
|
2850
|
+
declare class InterchainMessagingService {
|
|
2373
2851
|
readonly httpRequest: BaseHttpRequest;
|
|
2374
2852
|
constructor(httpRequest: BaseHttpRequest);
|
|
2375
2853
|
/**
|
|
2376
|
-
*
|
|
2377
|
-
*
|
|
2854
|
+
* Get an ICM message
|
|
2855
|
+
* Gets an ICM message by teleporter message ID.
|
|
2378
2856
|
* @returns any Successful response
|
|
2379
2857
|
* @throws ApiError
|
|
2380
2858
|
*/
|
|
2381
|
-
|
|
2859
|
+
getIcmMessage({ messageId, }: {
|
|
2382
2860
|
/**
|
|
2383
|
-
*
|
|
2861
|
+
* The teleporter message ID of the ICM message.
|
|
2384
2862
|
*/
|
|
2385
|
-
|
|
2863
|
+
messageId: string;
|
|
2864
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2865
|
+
/**
|
|
2866
|
+
* List ICM messages
|
|
2867
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2868
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2869
|
+
* @throws ApiError
|
|
2870
|
+
*/
|
|
2871
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2386
2872
|
/**
|
|
2387
|
-
*
|
|
2873
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2388
2874
|
*/
|
|
2389
|
-
|
|
2875
|
+
pageToken?: string;
|
|
2390
2876
|
/**
|
|
2391
|
-
*
|
|
2877
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2392
2878
|
*/
|
|
2393
|
-
|
|
2394
|
-
|
|
2879
|
+
pageSize?: number;
|
|
2880
|
+
/**
|
|
2881
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2882
|
+
*/
|
|
2883
|
+
sourceBlockchainId?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2886
|
+
*/
|
|
2887
|
+
destinationBlockchainId?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2890
|
+
*/
|
|
2891
|
+
blockchainId?: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* The address of the recipient of the ICM message.
|
|
2894
|
+
*/
|
|
2895
|
+
to?: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* The address of the sender of the ICM message.
|
|
2898
|
+
*/
|
|
2899
|
+
from?: string;
|
|
2900
|
+
/**
|
|
2901
|
+
* Either mainnet or testnet/fuji.
|
|
2902
|
+
*/
|
|
2903
|
+
network?: Network;
|
|
2904
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2395
2905
|
/**
|
|
2396
|
-
* List
|
|
2397
|
-
* Lists
|
|
2398
|
-
* @returns
|
|
2906
|
+
* List ICM messages by address
|
|
2907
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2908
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2399
2909
|
* @throws ApiError
|
|
2400
2910
|
*/
|
|
2401
|
-
|
|
2402
|
-
/**
|
|
2403
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2404
|
-
*/
|
|
2405
|
-
chainId: string;
|
|
2911
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2406
2912
|
/**
|
|
2407
|
-
*
|
|
2913
|
+
* An EVM address.
|
|
2408
2914
|
*/
|
|
2409
2915
|
address: string;
|
|
2410
2916
|
/**
|
|
@@ -2415,7 +2921,68 @@ declare class NfTsService {
|
|
|
2415
2921
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2416
2922
|
*/
|
|
2417
2923
|
pageSize?: number;
|
|
2418
|
-
|
|
2924
|
+
/**
|
|
2925
|
+
* Either mainnet or testnet/fuji.
|
|
2926
|
+
*/
|
|
2927
|
+
network?: Network;
|
|
2928
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
type ListNftTokens = {
|
|
2932
|
+
/**
|
|
2933
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2934
|
+
*/
|
|
2935
|
+
nextPageToken?: string;
|
|
2936
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
declare class NfTsService {
|
|
2940
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2941
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2942
|
+
/**
|
|
2943
|
+
* Reindex NFT metadata
|
|
2944
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2945
|
+
* @returns any Successful response
|
|
2946
|
+
* @throws ApiError
|
|
2947
|
+
*/
|
|
2948
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2949
|
+
/**
|
|
2950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2951
|
+
*/
|
|
2952
|
+
chainId: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Contract address on the relevant chain.
|
|
2955
|
+
*/
|
|
2956
|
+
address: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* TokenId on the contract
|
|
2959
|
+
*/
|
|
2960
|
+
tokenId: string;
|
|
2961
|
+
}): CancelablePromise<any>;
|
|
2962
|
+
/**
|
|
2963
|
+
* List tokens
|
|
2964
|
+
* Lists tokens for an NFT contract.
|
|
2965
|
+
* @returns ListNftTokens Successful response
|
|
2966
|
+
* @throws ApiError
|
|
2967
|
+
*/
|
|
2968
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2969
|
+
/**
|
|
2970
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2971
|
+
*/
|
|
2972
|
+
chainId: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Contract address on the relevant chain.
|
|
2975
|
+
*/
|
|
2976
|
+
address: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2979
|
+
*/
|
|
2980
|
+
pageToken?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2983
|
+
*/
|
|
2984
|
+
pageSize?: number;
|
|
2985
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2419
2986
|
/**
|
|
2420
2987
|
* Get token details
|
|
2421
2988
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -2438,6 +3005,108 @@ declare class NfTsService {
|
|
|
2438
3005
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2439
3006
|
}
|
|
2440
3007
|
|
|
3008
|
+
type AccessRequest = {
|
|
3009
|
+
/**
|
|
3010
|
+
* The email address to send the access token to
|
|
3011
|
+
*/
|
|
3012
|
+
email: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* The captcha to verify the user
|
|
3015
|
+
*/
|
|
3016
|
+
captcha: string;
|
|
3017
|
+
};
|
|
3018
|
+
|
|
3019
|
+
type NotificationsResponse = {
|
|
3020
|
+
message: string;
|
|
3021
|
+
};
|
|
3022
|
+
|
|
3023
|
+
type SubscribeRequest = {
|
|
3024
|
+
/**
|
|
3025
|
+
* The access token to use for authentication
|
|
3026
|
+
*/
|
|
3027
|
+
accessToken: string;
|
|
3028
|
+
/**
|
|
3029
|
+
* The node ID to subscribe to
|
|
3030
|
+
*/
|
|
3031
|
+
nodeId: string;
|
|
3032
|
+
/**
|
|
3033
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3034
|
+
*/
|
|
3035
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3038
|
+
type SubscriptionsRequest = {
|
|
3039
|
+
/**
|
|
3040
|
+
* The access token to use for authentication
|
|
3041
|
+
*/
|
|
3042
|
+
accessToken: string;
|
|
3043
|
+
};
|
|
3044
|
+
|
|
3045
|
+
type SubscriptionsResponse = {
|
|
3046
|
+
/**
|
|
3047
|
+
* The email address of the user
|
|
3048
|
+
*/
|
|
3049
|
+
email: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* The subscriptions of the user
|
|
3052
|
+
*/
|
|
3053
|
+
subscriptions: Record<string, {
|
|
3054
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3055
|
+
}>;
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
type UnsubscribeRequest = {
|
|
3059
|
+
/**
|
|
3060
|
+
* The access token to use for authentication
|
|
3061
|
+
*/
|
|
3062
|
+
accessToken: string;
|
|
3063
|
+
/**
|
|
3064
|
+
* The node ID to subscribe to
|
|
3065
|
+
*/
|
|
3066
|
+
nodeId: string;
|
|
3067
|
+
};
|
|
3068
|
+
|
|
3069
|
+
declare class NotificationsService {
|
|
3070
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3071
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3072
|
+
/**
|
|
3073
|
+
* Access Notifications
|
|
3074
|
+
* Access notifications.
|
|
3075
|
+
* @returns NotificationsResponse Successful response
|
|
3076
|
+
* @throws ApiError
|
|
3077
|
+
*/
|
|
3078
|
+
access({ requestBody, }: {
|
|
3079
|
+
requestBody: AccessRequest;
|
|
3080
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3081
|
+
/**
|
|
3082
|
+
* Subscribe to Notifications
|
|
3083
|
+
* Subscribe to receive notifications.
|
|
3084
|
+
* @returns NotificationsResponse Successful response
|
|
3085
|
+
* @throws ApiError
|
|
3086
|
+
*/
|
|
3087
|
+
subscribe({ requestBody, }: {
|
|
3088
|
+
requestBody: SubscribeRequest;
|
|
3089
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3090
|
+
/**
|
|
3091
|
+
* Unsubscribe from Notifications
|
|
3092
|
+
* Unsubscribe from receiving notifications.
|
|
3093
|
+
* @returns NotificationsResponse Successful response
|
|
3094
|
+
* @throws ApiError
|
|
3095
|
+
*/
|
|
3096
|
+
unsubscribe({ requestBody, }: {
|
|
3097
|
+
requestBody: UnsubscribeRequest;
|
|
3098
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3099
|
+
/**
|
|
3100
|
+
* Get Subscriptions
|
|
3101
|
+
* Get subscriptions.
|
|
3102
|
+
* @returns SubscriptionsResponse Successful response
|
|
3103
|
+
* @throws ApiError
|
|
3104
|
+
*/
|
|
3105
|
+
subscriptions({ requestBody, }: {
|
|
3106
|
+
requestBody: SubscriptionsRequest;
|
|
3107
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
2441
3110
|
type EvmNetworkOptions = {
|
|
2442
3111
|
addresses: Array<string>;
|
|
2443
3112
|
includeChains: Array<string>;
|
|
@@ -2526,7 +3195,7 @@ type OperationStatusResponse = {
|
|
|
2526
3195
|
operationType: OperationType;
|
|
2527
3196
|
operationStatus: OperationStatus;
|
|
2528
3197
|
message?: string;
|
|
2529
|
-
metadata
|
|
3198
|
+
metadata?: TransactionExportMetadata;
|
|
2530
3199
|
createdAtTimestamp: number;
|
|
2531
3200
|
updatedAtTimestamp: number;
|
|
2532
3201
|
};
|
|
@@ -2559,6 +3228,19 @@ declare class OperationsService {
|
|
|
2559
3228
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2560
3229
|
}
|
|
2561
3230
|
|
|
3231
|
+
type Blockchain = {
|
|
3232
|
+
createBlockTimestamp: number;
|
|
3233
|
+
createBlockNumber: string;
|
|
3234
|
+
blockchainId: string;
|
|
3235
|
+
vmId: string;
|
|
3236
|
+
subnetId: string;
|
|
3237
|
+
blockchainName: string;
|
|
3238
|
+
/**
|
|
3239
|
+
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
3240
|
+
*/
|
|
3241
|
+
evmChainId: number;
|
|
3242
|
+
};
|
|
3243
|
+
|
|
2562
3244
|
declare enum BlockchainIds {
|
|
2563
3245
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2564
3246
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -2590,16 +3272,31 @@ type DelegatorsDetails = {
|
|
|
2590
3272
|
};
|
|
2591
3273
|
|
|
2592
3274
|
type StakingDistribution = {
|
|
3275
|
+
/**
|
|
3276
|
+
* AvalancheGo version for the validator node.
|
|
3277
|
+
*/
|
|
2593
3278
|
version: string;
|
|
3279
|
+
/**
|
|
3280
|
+
* The total amount staked by validators using this version.
|
|
3281
|
+
*/
|
|
2594
3282
|
amountStaked: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* The number of validators using this version.
|
|
3285
|
+
*/
|
|
2595
3286
|
validatorCount: number;
|
|
2596
3287
|
};
|
|
2597
3288
|
|
|
2598
3289
|
type ValidatorsDetails = {
|
|
2599
3290
|
validatorCount: number;
|
|
2600
3291
|
totalAmountStaked: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3294
|
+
*/
|
|
2601
3295
|
estimatedAnnualStakingReward: string;
|
|
2602
3296
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3297
|
+
/**
|
|
3298
|
+
* Ratio of total active stake amount to the current supply.
|
|
3299
|
+
*/
|
|
2603
3300
|
stakingRatio: string;
|
|
2604
3301
|
};
|
|
2605
3302
|
|
|
@@ -2608,15 +3305,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2608
3305
|
delegatorDetails: DelegatorsDetails;
|
|
2609
3306
|
};
|
|
2610
3307
|
|
|
2611
|
-
type Blockchain = {
|
|
2612
|
-
createBlockTimestamp: number;
|
|
2613
|
-
createBlockNumber: string;
|
|
2614
|
-
blockchainId: string;
|
|
2615
|
-
vmId: string;
|
|
2616
|
-
subnetId: string;
|
|
2617
|
-
blockchainName: string;
|
|
2618
|
-
};
|
|
2619
|
-
|
|
2620
3308
|
type ListBlockchainsResponse = {
|
|
2621
3309
|
/**
|
|
2622
3310
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2651,7 +3339,13 @@ type CompletedDelegatorDetails = {
|
|
|
2651
3339
|
delegationFee: string;
|
|
2652
3340
|
startTimestamp: number;
|
|
2653
3341
|
endTimestamp: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Total rewards distributed for the successful delegation.
|
|
3344
|
+
*/
|
|
2654
3345
|
grossReward: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3348
|
+
*/
|
|
2655
3349
|
netReward: string;
|
|
2656
3350
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2657
3351
|
};
|
|
@@ -2669,7 +3363,13 @@ type PendingDelegatorDetails = {
|
|
|
2669
3363
|
delegationFee: string;
|
|
2670
3364
|
startTimestamp: number;
|
|
2671
3365
|
endTimestamp: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3368
|
+
*/
|
|
2672
3369
|
estimatedGrossReward: string;
|
|
3370
|
+
/**
|
|
3371
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3372
|
+
*/
|
|
2673
3373
|
estimatedNetReward: string;
|
|
2674
3374
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2675
3375
|
};
|
|
@@ -2690,8 +3390,59 @@ type ListDelegatorDetailsResponse = {
|
|
|
2690
3390
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2691
3391
|
};
|
|
2692
3392
|
|
|
2693
|
-
type
|
|
3393
|
+
type BalanceOwner = {
|
|
3394
|
+
addresses: Array<string>;
|
|
3395
|
+
threshold: number;
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
type L1ValidatorDetailsFull = {
|
|
3399
|
+
/**
|
|
3400
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3401
|
+
*/
|
|
3402
|
+
validationId: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3405
|
+
*/
|
|
3406
|
+
validationIdHex: string;
|
|
3407
|
+
nodeId: string;
|
|
3408
|
+
subnetId: string;
|
|
3409
|
+
/**
|
|
3410
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
3411
|
+
*/
|
|
3412
|
+
weight: number;
|
|
3413
|
+
/**
|
|
3414
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3415
|
+
*/
|
|
3416
|
+
remainingBalance: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3419
|
+
*/
|
|
3420
|
+
creationTimestamp: number;
|
|
3421
|
+
blsCredentials: Record<string, any>;
|
|
3422
|
+
/**
|
|
3423
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3424
|
+
*/
|
|
3425
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3426
|
+
/**
|
|
3427
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3428
|
+
*/
|
|
3429
|
+
deactivationOwner: BalanceOwner;
|
|
3430
|
+
};
|
|
3431
|
+
|
|
3432
|
+
type ListL1ValidatorsResponse = {
|
|
3433
|
+
/**
|
|
3434
|
+
* 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.
|
|
3435
|
+
*/
|
|
3436
|
+
nextPageToken?: string;
|
|
3437
|
+
/**
|
|
3438
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3439
|
+
*/
|
|
3440
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3441
|
+
};
|
|
3442
|
+
|
|
3443
|
+
type L1ValidatorManagerDetails = {
|
|
2694
3444
|
blockchainId: string;
|
|
3445
|
+
contractAddress: string;
|
|
2695
3446
|
};
|
|
2696
3447
|
|
|
2697
3448
|
type SubnetOwnershipInfo = {
|
|
@@ -2732,7 +3483,19 @@ type Subnet = {
|
|
|
2732
3483
|
* Latest subnet owner details for this Subnet.
|
|
2733
3484
|
*/
|
|
2734
3485
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2735
|
-
|
|
3486
|
+
/**
|
|
3487
|
+
* Whether the subnet is an L1 or not.
|
|
3488
|
+
*/
|
|
3489
|
+
isL1: boolean;
|
|
3490
|
+
/**
|
|
3491
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3492
|
+
*/
|
|
3493
|
+
l1ConversionTransactionHash?: string;
|
|
3494
|
+
/**
|
|
3495
|
+
* L1 validator manager details.
|
|
3496
|
+
*/
|
|
3497
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3498
|
+
blockchains: Array<Blockchain>;
|
|
2736
3499
|
};
|
|
2737
3500
|
|
|
2738
3501
|
type ListSubnetsResponse = {
|
|
@@ -2748,6 +3511,29 @@ type BlsCredentials = {
|
|
|
2748
3511
|
proofOfPossession: string;
|
|
2749
3512
|
};
|
|
2750
3513
|
|
|
3514
|
+
type Geolocation = {
|
|
3515
|
+
/**
|
|
3516
|
+
* The name of the validator node.
|
|
3517
|
+
*/
|
|
3518
|
+
city: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* The city of the validator node.
|
|
3521
|
+
*/
|
|
3522
|
+
country: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* The country code of the validator node.
|
|
3525
|
+
*/
|
|
3526
|
+
countryCode: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* The latitude of the validator node.
|
|
3529
|
+
*/
|
|
3530
|
+
latitude: number;
|
|
3531
|
+
/**
|
|
3532
|
+
* The longitude of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
longitude: number;
|
|
3535
|
+
};
|
|
3536
|
+
|
|
2751
3537
|
type Rewards = {
|
|
2752
3538
|
validationRewardAmount: string;
|
|
2753
3539
|
delegationRewardAmount: string;
|
|
@@ -2779,6 +3565,9 @@ type ActiveValidatorDetails = {
|
|
|
2779
3565
|
nodeId: string;
|
|
2780
3566
|
subnetId: string;
|
|
2781
3567
|
amountStaked: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3570
|
+
*/
|
|
2782
3571
|
delegationFee?: string;
|
|
2783
3572
|
startTimestamp: number;
|
|
2784
3573
|
endTimestamp: number;
|
|
@@ -2786,15 +3575,37 @@ type ActiveValidatorDetails = {
|
|
|
2786
3575
|
* Present for AddPermissionlessValidatorTx
|
|
2787
3576
|
*/
|
|
2788
3577
|
blsCredentials?: BlsCredentials;
|
|
3578
|
+
/**
|
|
3579
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3580
|
+
*/
|
|
2789
3581
|
stakePercentage: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* The number of delegators linked to the validator.
|
|
3584
|
+
*/
|
|
2790
3585
|
delegatorCount: number;
|
|
3586
|
+
/**
|
|
3587
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3588
|
+
*/
|
|
2791
3589
|
amountDelegated?: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3592
|
+
*/
|
|
2792
3593
|
uptimePerformance: number;
|
|
2793
3594
|
avalancheGoVersion?: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3597
|
+
*/
|
|
2794
3598
|
delegationCapacity?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3601
|
+
*/
|
|
2795
3602
|
potentialRewards: Rewards;
|
|
2796
3603
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2797
3604
|
validatorHealth: ValidatorHealthDetails;
|
|
3605
|
+
/**
|
|
3606
|
+
* The geographical location of the validator node, if available.
|
|
3607
|
+
*/
|
|
3608
|
+
geolocation: Geolocation | null;
|
|
2798
3609
|
};
|
|
2799
3610
|
declare namespace ActiveValidatorDetails {
|
|
2800
3611
|
enum validationStatus {
|
|
@@ -2807,6 +3618,9 @@ type CompletedValidatorDetails = {
|
|
|
2807
3618
|
nodeId: string;
|
|
2808
3619
|
subnetId: string;
|
|
2809
3620
|
amountStaked: string;
|
|
3621
|
+
/**
|
|
3622
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3623
|
+
*/
|
|
2810
3624
|
delegationFee?: string;
|
|
2811
3625
|
startTimestamp: number;
|
|
2812
3626
|
endTimestamp: number;
|
|
@@ -2830,6 +3644,9 @@ type PendingValidatorDetails = {
|
|
|
2830
3644
|
nodeId: string;
|
|
2831
3645
|
subnetId: string;
|
|
2832
3646
|
amountStaked: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3649
|
+
*/
|
|
2833
3650
|
delegationFee?: string;
|
|
2834
3651
|
startTimestamp: number;
|
|
2835
3652
|
endTimestamp: number;
|
|
@@ -2850,6 +3667,9 @@ type RemovedValidatorDetails = {
|
|
|
2850
3667
|
nodeId: string;
|
|
2851
3668
|
subnetId: string;
|
|
2852
3669
|
amountStaked: string;
|
|
3670
|
+
/**
|
|
3671
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3672
|
+
*/
|
|
2853
3673
|
delegationFee?: string;
|
|
2854
3674
|
startTimestamp: number;
|
|
2855
3675
|
endTimestamp: number;
|
|
@@ -2857,7 +3677,13 @@ type RemovedValidatorDetails = {
|
|
|
2857
3677
|
* Present for AddPermissionlessValidatorTx
|
|
2858
3678
|
*/
|
|
2859
3679
|
blsCredentials?: BlsCredentials;
|
|
3680
|
+
/**
|
|
3681
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3682
|
+
*/
|
|
2860
3683
|
removeTxHash: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3686
|
+
*/
|
|
2861
3687
|
removeTimestamp: number;
|
|
2862
3688
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2863
3689
|
};
|
|
@@ -3016,6 +3842,22 @@ declare class PrimaryNetworkService {
|
|
|
3016
3842
|
*/
|
|
3017
3843
|
sortOrder?: SortOrder;
|
|
3018
3844
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3845
|
+
/**
|
|
3846
|
+
* Get blockchain details by ID
|
|
3847
|
+
* Get details of the blockchain registered on the network.
|
|
3848
|
+
* @returns Blockchain Successful response
|
|
3849
|
+
* @throws ApiError
|
|
3850
|
+
*/
|
|
3851
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3852
|
+
/**
|
|
3853
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3854
|
+
*/
|
|
3855
|
+
blockchainId: string;
|
|
3856
|
+
/**
|
|
3857
|
+
* Either mainnet or testnet/fuji.
|
|
3858
|
+
*/
|
|
3859
|
+
network: Network;
|
|
3860
|
+
}): CancelablePromise<Blockchain>;
|
|
3019
3861
|
/**
|
|
3020
3862
|
* List subnets
|
|
3021
3863
|
* Lists all subnets registered on the network.
|
|
@@ -3058,7 +3900,7 @@ declare class PrimaryNetworkService {
|
|
|
3058
3900
|
}): CancelablePromise<Subnet>;
|
|
3059
3901
|
/**
|
|
3060
3902
|
* List validators
|
|
3061
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3903
|
+
* Lists details for validators. By default, returns details for all validators. The nodeIds parameter supports substring matching. Filterable by validation status, delegation capacity, time remaining, fee percentage, uptime performance, and subnet id.
|
|
3062
3904
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3063
3905
|
* @throws ApiError
|
|
3064
3906
|
*/
|
|
@@ -3076,7 +3918,7 @@ declare class PrimaryNetworkService {
|
|
|
3076
3918
|
*/
|
|
3077
3919
|
pageSize?: number;
|
|
3078
3920
|
/**
|
|
3079
|
-
* A comma separated list of node ids to filter by.
|
|
3921
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3080
3922
|
*/
|
|
3081
3923
|
nodeIds?: string;
|
|
3082
3924
|
/**
|
|
@@ -3198,27 +4040,60 @@ declare class PrimaryNetworkService {
|
|
|
3198
4040
|
*/
|
|
3199
4041
|
nodeIds?: string;
|
|
3200
4042
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
declare enum BlockchainId {
|
|
3204
|
-
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3205
|
-
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3206
|
-
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3207
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3208
|
-
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3209
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3210
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3211
|
-
P_CHAIN = "p-chain",
|
|
3212
|
-
X_CHAIN = "x-chain",
|
|
3213
|
-
C_CHAIN = "c-chain"
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
type CChainSharedAssetBalance = {
|
|
3217
4043
|
/**
|
|
3218
|
-
*
|
|
4044
|
+
* List L1 validators
|
|
4045
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4046
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4047
|
+
* @throws ApiError
|
|
3219
4048
|
*/
|
|
3220
|
-
|
|
3221
|
-
|
|
4049
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4050
|
+
/**
|
|
4051
|
+
* Either mainnet or testnet/fuji.
|
|
4052
|
+
*/
|
|
4053
|
+
network: Network;
|
|
4054
|
+
/**
|
|
4055
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4056
|
+
*/
|
|
4057
|
+
pageToken?: string;
|
|
4058
|
+
/**
|
|
4059
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4060
|
+
*/
|
|
4061
|
+
pageSize?: number;
|
|
4062
|
+
/**
|
|
4063
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4064
|
+
*/
|
|
4065
|
+
l1ValidationId?: string;
|
|
4066
|
+
includeInactiveL1Validators?: boolean;
|
|
4067
|
+
/**
|
|
4068
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4069
|
+
*/
|
|
4070
|
+
nodeId?: string;
|
|
4071
|
+
/**
|
|
4072
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4073
|
+
*/
|
|
4074
|
+
subnetId?: any;
|
|
4075
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
4076
|
+
}
|
|
4077
|
+
|
|
4078
|
+
declare enum BlockchainId {
|
|
4079
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
4080
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4081
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4082
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
4083
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
4084
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4085
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
4086
|
+
P_CHAIN = "p-chain",
|
|
4087
|
+
X_CHAIN = "x-chain",
|
|
4088
|
+
C_CHAIN = "c-chain"
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
type CChainSharedAssetBalance = {
|
|
4092
|
+
/**
|
|
4093
|
+
* Unique ID for an asset.
|
|
4094
|
+
*/
|
|
4095
|
+
assetId: string;
|
|
4096
|
+
/**
|
|
3222
4097
|
* Name of this asset.
|
|
3223
4098
|
*/
|
|
3224
4099
|
name: string;
|
|
@@ -3244,12 +4119,6 @@ type CChainAtomicBalances = {
|
|
|
3244
4119
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3245
4120
|
};
|
|
3246
4121
|
|
|
3247
|
-
declare enum PrimaryNetwork {
|
|
3248
|
-
MAINNET = "mainnet",
|
|
3249
|
-
FUJI = "fuji",
|
|
3250
|
-
DEVNET = "devnet"
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
4122
|
declare enum PrimaryNetworkChainName {
|
|
3254
4123
|
P_CHAIN = "p-chain",
|
|
3255
4124
|
X_CHAIN = "x-chain",
|
|
@@ -3258,7 +4127,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3258
4127
|
|
|
3259
4128
|
type PrimaryNetworkChainInfo = {
|
|
3260
4129
|
chainName: PrimaryNetworkChainName;
|
|
3261
|
-
network:
|
|
4130
|
+
network: Network;
|
|
3262
4131
|
};
|
|
3263
4132
|
|
|
3264
4133
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3450,6 +4319,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3450
4319
|
txCount: number;
|
|
3451
4320
|
transactions: Array<string>;
|
|
3452
4321
|
blockSizeBytes: number;
|
|
4322
|
+
l1ValidatorsAccruedFees?: number;
|
|
4323
|
+
activeL1Validators?: number;
|
|
3453
4324
|
currentSupply?: string;
|
|
3454
4325
|
proposerDetails?: ProposerDetails;
|
|
3455
4326
|
};
|
|
@@ -3463,6 +4334,8 @@ type PrimaryNetworkBlock = {
|
|
|
3463
4334
|
txCount: number;
|
|
3464
4335
|
transactions: Array<string>;
|
|
3465
4336
|
blockSizeBytes: number;
|
|
4337
|
+
l1ValidatorsAccruedFees?: number;
|
|
4338
|
+
activeL1Validators?: number;
|
|
3466
4339
|
currentSupply?: string;
|
|
3467
4340
|
proposerDetails?: ProposerDetails;
|
|
3468
4341
|
};
|
|
@@ -3505,7 +4378,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3505
4378
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3506
4379
|
* @throws ApiError
|
|
3507
4380
|
*/
|
|
3508
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4381
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3509
4382
|
/**
|
|
3510
4383
|
* A primary network blockchain id or alias.
|
|
3511
4384
|
*/
|
|
@@ -3518,6 +4391,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3518
4391
|
* A primary network (P or X chain) nodeId.
|
|
3519
4392
|
*/
|
|
3520
4393
|
nodeId: string;
|
|
4394
|
+
/**
|
|
4395
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4396
|
+
*/
|
|
4397
|
+
startTimestamp?: number;
|
|
4398
|
+
/**
|
|
4399
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4400
|
+
*/
|
|
4401
|
+
endTimestamp?: number;
|
|
3521
4402
|
/**
|
|
3522
4403
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3523
4404
|
*/
|
|
@@ -3533,7 +4414,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3533
4414
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3534
4415
|
* @throws ApiError
|
|
3535
4416
|
*/
|
|
3536
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4417
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3537
4418
|
/**
|
|
3538
4419
|
* A primary network blockchain id or alias.
|
|
3539
4420
|
*/
|
|
@@ -3542,6 +4423,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3542
4423
|
* Either mainnet or testnet/fuji.
|
|
3543
4424
|
*/
|
|
3544
4425
|
network: Network;
|
|
4426
|
+
/**
|
|
4427
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4428
|
+
*/
|
|
4429
|
+
startTimestamp?: number;
|
|
4430
|
+
/**
|
|
4431
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4432
|
+
*/
|
|
4433
|
+
endTimestamp?: number;
|
|
3545
4434
|
/**
|
|
3546
4435
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3547
4436
|
*/
|
|
@@ -3951,6 +4840,32 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3951
4840
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3952
4841
|
};
|
|
3953
4842
|
|
|
4843
|
+
type L1ValidatorDetailsTransaction = {
|
|
4844
|
+
/**
|
|
4845
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4846
|
+
*/
|
|
4847
|
+
validationId: string;
|
|
4848
|
+
/**
|
|
4849
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4850
|
+
*/
|
|
4851
|
+
validationIdHex: string;
|
|
4852
|
+
nodeId: string;
|
|
4853
|
+
subnetId: string;
|
|
4854
|
+
/**
|
|
4855
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4856
|
+
*/
|
|
4857
|
+
weight: number;
|
|
4858
|
+
/**
|
|
4859
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4860
|
+
*/
|
|
4861
|
+
remainingBalance: number;
|
|
4862
|
+
/**
|
|
4863
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4864
|
+
*/
|
|
4865
|
+
balanceChange?: number;
|
|
4866
|
+
blsCredentials?: Record<string, any>;
|
|
4867
|
+
};
|
|
4868
|
+
|
|
3954
4869
|
declare enum PChainTransactionType {
|
|
3955
4870
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3956
4871
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3967,9 +4882,17 @@ declare enum PChainTransactionType {
|
|
|
3967
4882
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3968
4883
|
BASE_TX = "BaseTx",
|
|
3969
4884
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4885
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4886
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4887
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4888
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4889
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3970
4890
|
UNKNOWN = "UNKNOWN"
|
|
3971
4891
|
}
|
|
3972
4892
|
|
|
4893
|
+
/**
|
|
4894
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4895
|
+
*/
|
|
3973
4896
|
declare enum UtxoType {
|
|
3974
4897
|
STAKE = "STAKE",
|
|
3975
4898
|
TRANSFER = "TRANSFER"
|
|
@@ -4007,16 +4930,43 @@ type PChainUtxo = {
|
|
|
4007
4930
|
assetId: string;
|
|
4008
4931
|
blockNumber: string;
|
|
4009
4932
|
blockTimestamp: number;
|
|
4933
|
+
/**
|
|
4934
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4935
|
+
*/
|
|
4010
4936
|
consumingBlockNumber?: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4939
|
+
*/
|
|
4011
4940
|
consumingBlockTimestamp?: number;
|
|
4941
|
+
/**
|
|
4942
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4943
|
+
*/
|
|
4012
4944
|
platformLocktime?: number;
|
|
4945
|
+
/**
|
|
4946
|
+
* The index of the UTXO in the transaction
|
|
4947
|
+
*/
|
|
4013
4948
|
outputIndex: number;
|
|
4014
4949
|
rewardType?: RewardType;
|
|
4950
|
+
/**
|
|
4951
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4952
|
+
*/
|
|
4015
4953
|
stakeableLocktime?: number;
|
|
4016
4954
|
staked?: boolean;
|
|
4955
|
+
/**
|
|
4956
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4957
|
+
*/
|
|
4017
4958
|
threshold?: number;
|
|
4959
|
+
/**
|
|
4960
|
+
* The hash of the transaction that created this UTXO
|
|
4961
|
+
*/
|
|
4018
4962
|
txHash: string;
|
|
4963
|
+
/**
|
|
4964
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4965
|
+
*/
|
|
4019
4966
|
utxoEndTimestamp?: number;
|
|
4967
|
+
/**
|
|
4968
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4969
|
+
*/
|
|
4020
4970
|
utxoStartTimestamp?: number;
|
|
4021
4971
|
utxoType: UtxoType;
|
|
4022
4972
|
};
|
|
@@ -4031,9 +4981,18 @@ type PChainTransaction = {
|
|
|
4031
4981
|
* The block finality timestamp.
|
|
4032
4982
|
*/
|
|
4033
4983
|
blockTimestamp: number;
|
|
4984
|
+
/**
|
|
4985
|
+
* The height of the block in which the transaction was included
|
|
4986
|
+
*/
|
|
4034
4987
|
blockNumber: string;
|
|
4035
4988
|
blockHash: string;
|
|
4989
|
+
/**
|
|
4990
|
+
* The consumed UTXOs of the transaction
|
|
4991
|
+
*/
|
|
4036
4992
|
consumedUtxos: Array<PChainUtxo>;
|
|
4993
|
+
/**
|
|
4994
|
+
* The newly created UTXOs of the transaction
|
|
4995
|
+
*/
|
|
4037
4996
|
emittedUtxos: Array<PChainUtxo>;
|
|
4038
4997
|
/**
|
|
4039
4998
|
* Source chain for an atomic transaction.
|
|
@@ -4044,17 +5003,21 @@ type PChainTransaction = {
|
|
|
4044
5003
|
*/
|
|
4045
5004
|
destinationChain?: string;
|
|
4046
5005
|
/**
|
|
4047
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5006
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4048
5007
|
*/
|
|
4049
5008
|
value: Array<AssetAmount>;
|
|
4050
5009
|
/**
|
|
4051
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5010
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4052
5011
|
*/
|
|
4053
5012
|
amountBurned: Array<AssetAmount>;
|
|
4054
5013
|
/**
|
|
4055
5014
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4056
5015
|
*/
|
|
4057
5016
|
amountStaked: Array<AssetAmount>;
|
|
5017
|
+
/**
|
|
5018
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
5019
|
+
*/
|
|
5020
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4058
5021
|
/**
|
|
4059
5022
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4060
5023
|
*/
|
|
@@ -4064,11 +5027,11 @@ type PChainTransaction = {
|
|
|
4064
5027
|
*/
|
|
4065
5028
|
endTimestamp?: number;
|
|
4066
5029
|
/**
|
|
4067
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5030
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4068
5031
|
*/
|
|
4069
5032
|
delegationFeePercent?: string;
|
|
4070
5033
|
/**
|
|
4071
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5034
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4072
5035
|
*/
|
|
4073
5036
|
nodeId?: string;
|
|
4074
5037
|
/**
|
|
@@ -4076,14 +5039,25 @@ type PChainTransaction = {
|
|
|
4076
5039
|
*/
|
|
4077
5040
|
subnetId?: string;
|
|
4078
5041
|
/**
|
|
4079
|
-
* Present for
|
|
5042
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5043
|
+
*/
|
|
5044
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5045
|
+
/**
|
|
5046
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
5047
|
+
*/
|
|
5048
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5049
|
+
/**
|
|
5050
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
5051
|
*/
|
|
4081
5052
|
estimatedReward?: string;
|
|
5053
|
+
/**
|
|
5054
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5055
|
+
*/
|
|
4082
5056
|
rewardTxHash?: string;
|
|
4083
5057
|
rewardAddresses?: Array<string>;
|
|
4084
5058
|
memo?: string;
|
|
4085
5059
|
/**
|
|
4086
|
-
*
|
|
5060
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4087
5061
|
*/
|
|
4088
5062
|
stakingTxHash?: string;
|
|
4089
5063
|
/**
|
|
@@ -4091,7 +5065,7 @@ type PChainTransaction = {
|
|
|
4091
5065
|
*/
|
|
4092
5066
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4093
5067
|
/**
|
|
4094
|
-
* Present for AddPermissionlessValidatorTx
|
|
5068
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4095
5069
|
*/
|
|
4096
5070
|
blsCredentials?: BlsCredentials;
|
|
4097
5071
|
};
|
|
@@ -4276,6 +5250,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4276
5250
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4277
5251
|
BASE_TX = "BaseTx",
|
|
4278
5252
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5253
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5254
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5255
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5256
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5257
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4279
5258
|
UNKNOWN = "UNKNOWN",
|
|
4280
5259
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4281
5260
|
OPERATION_TX = "OperationTx"
|
|
@@ -4310,11 +5289,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4310
5289
|
*
|
|
4311
5290
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4312
5291
|
*
|
|
5292
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
5293
|
+
*
|
|
4313
5294
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4314
5295
|
* @returns any Successful response
|
|
4315
5296
|
* @throws ApiError
|
|
4316
5297
|
*/
|
|
4317
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5298
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4318
5299
|
/**
|
|
4319
5300
|
* A primary network blockchain id or alias.
|
|
4320
5301
|
*/
|
|
@@ -4327,6 +5308,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4327
5308
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4328
5309
|
*/
|
|
4329
5310
|
addresses?: string;
|
|
5311
|
+
l1ValidationId?: string;
|
|
4330
5312
|
/**
|
|
4331
5313
|
* Query param for filtering items based on transaction types.
|
|
4332
5314
|
*/
|
|
@@ -4602,61 +5584,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4602
5584
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4603
5585
|
}
|
|
4604
5586
|
|
|
4605
|
-
type RpcErrorDto = {
|
|
4606
|
-
code: number;
|
|
4607
|
-
message: string;
|
|
4608
|
-
data?: Record<string, any>;
|
|
4609
|
-
};
|
|
4610
|
-
|
|
4611
|
-
type RpcErrorResponseDto = {
|
|
4612
|
-
jsonrpc: string;
|
|
4613
|
-
id?: (string | number);
|
|
4614
|
-
error: RpcErrorDto;
|
|
4615
|
-
};
|
|
4616
|
-
|
|
4617
|
-
type RpcRequestBodyDto = {
|
|
4618
|
-
method: string;
|
|
4619
|
-
params?: Record<string, any>;
|
|
4620
|
-
id?: (string | number);
|
|
4621
|
-
jsonrpc?: string;
|
|
4622
|
-
};
|
|
4623
|
-
|
|
4624
|
-
type RpcSuccessResponseDto = {
|
|
4625
|
-
jsonrpc: string;
|
|
4626
|
-
id?: (string | number);
|
|
4627
|
-
result: Record<string, any>;
|
|
4628
|
-
};
|
|
4629
|
-
|
|
4630
|
-
declare class RpcService {
|
|
4631
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4632
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4633
|
-
/**
|
|
4634
|
-
* Calls JSON-RPC method
|
|
4635
|
-
* Calls JSON-RPC method.
|
|
4636
|
-
* @returns any Successful response
|
|
4637
|
-
* @throws ApiError
|
|
4638
|
-
*/
|
|
4639
|
-
rpc({ chainId, requestBody, }: {
|
|
4640
|
-
/**
|
|
4641
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4642
|
-
*/
|
|
4643
|
-
chainId: string;
|
|
4644
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4645
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4646
|
-
}
|
|
4647
|
-
|
|
4648
5587
|
type SignatureAggregationResponse = {
|
|
4649
5588
|
signedMessage: string;
|
|
4650
5589
|
};
|
|
4651
5590
|
|
|
4652
5591
|
type SignatureAggregatorRequest = {
|
|
4653
|
-
|
|
4654
|
-
* Must be defined if justification is not defined
|
|
4655
|
-
*/
|
|
4656
|
-
message?: string;
|
|
4657
|
-
/**
|
|
4658
|
-
* Must be defined if message is not defined
|
|
4659
|
-
*/
|
|
5592
|
+
message: string;
|
|
4660
5593
|
justification?: string;
|
|
4661
5594
|
signingSubnetId?: string;
|
|
4662
5595
|
quorumPercentage?: number;
|
|
@@ -4671,9 +5604,29 @@ declare class SignatureAggregatorService {
|
|
|
4671
5604
|
* @returns SignatureAggregationResponse Successful response
|
|
4672
5605
|
* @throws ApiError
|
|
4673
5606
|
*/
|
|
4674
|
-
aggregateSignatures({ requestBody, }: {
|
|
5607
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5608
|
+
/**
|
|
5609
|
+
* Either mainnet or testnet/fuji.
|
|
5610
|
+
*/
|
|
5611
|
+
network: Network;
|
|
4675
5612
|
requestBody: SignatureAggregatorRequest;
|
|
4676
5613
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5614
|
+
/**
|
|
5615
|
+
* Get Aggregated Signatures
|
|
5616
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5617
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5618
|
+
* @throws ApiError
|
|
5619
|
+
*/
|
|
5620
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5621
|
+
/**
|
|
5622
|
+
* Either mainnet or testnet/fuji.
|
|
5623
|
+
*/
|
|
5624
|
+
network: Network;
|
|
5625
|
+
/**
|
|
5626
|
+
* A primary network (P or X chain) transaction hash.
|
|
5627
|
+
*/
|
|
5628
|
+
txHash: string;
|
|
5629
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4677
5630
|
}
|
|
4678
5631
|
|
|
4679
5632
|
type TeleporterDestinationTransaction = {
|
|
@@ -4814,8 +5767,10 @@ declare class TeleporterService {
|
|
|
4814
5767
|
readonly httpRequest: BaseHttpRequest;
|
|
4815
5768
|
constructor(httpRequest: BaseHttpRequest);
|
|
4816
5769
|
/**
|
|
4817
|
-
*
|
|
4818
|
-
* Gets a teleporter message by message ID.
|
|
5770
|
+
* @deprecated
|
|
5771
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5772
|
+
*
|
|
5773
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4819
5774
|
* @returns any Successful response
|
|
4820
5775
|
* @throws ApiError
|
|
4821
5776
|
*/
|
|
@@ -4826,8 +5781,10 @@ declare class TeleporterService {
|
|
|
4826
5781
|
messageId: string;
|
|
4827
5782
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4828
5783
|
/**
|
|
4829
|
-
*
|
|
4830
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5784
|
+
* @deprecated
|
|
5785
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5786
|
+
*
|
|
5787
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4831
5788
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4832
5789
|
* @throws ApiError
|
|
4833
5790
|
*/
|
|
@@ -4866,8 +5823,10 @@ declare class TeleporterService {
|
|
|
4866
5823
|
network?: Network;
|
|
4867
5824
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4868
5825
|
/**
|
|
4869
|
-
*
|
|
4870
|
-
* Lists teleporter messages by address. Ordered by
|
|
5826
|
+
* @deprecated
|
|
5827
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5828
|
+
*
|
|
5829
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4871
5830
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4872
5831
|
* @throws ApiError
|
|
4873
5832
|
*/
|
|
@@ -4909,44 +5868,54 @@ type AddressActivityMetadata = {
|
|
|
4909
5868
|
eventSignatures?: Array<string>;
|
|
4910
5869
|
};
|
|
4911
5870
|
|
|
4912
|
-
declare enum
|
|
4913
|
-
|
|
5871
|
+
declare enum PrimaryNetworkType {
|
|
5872
|
+
MAINNET = "mainnet",
|
|
5873
|
+
FUJI = "fuji"
|
|
4914
5874
|
}
|
|
4915
5875
|
|
|
4916
|
-
type
|
|
5876
|
+
type EVMAddressActivityRequest = {
|
|
5877
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
4917
5878
|
url: string;
|
|
4918
5879
|
chainId: string;
|
|
4919
|
-
|
|
4920
|
-
metadata: AddressActivityMetadata;
|
|
5880
|
+
network?: PrimaryNetworkType;
|
|
4921
5881
|
name?: string;
|
|
4922
5882
|
description?: string;
|
|
4923
5883
|
/**
|
|
4924
|
-
* Whether to include traces in the webhook payload.
|
|
5884
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4925
5885
|
*/
|
|
4926
5886
|
includeInternalTxs?: boolean;
|
|
4927
5887
|
/**
|
|
4928
5888
|
* Whether to include logs in the webhook payload.
|
|
4929
5889
|
*/
|
|
4930
5890
|
includeLogs?: boolean;
|
|
5891
|
+
metadata: AddressActivityMetadata;
|
|
4931
5892
|
};
|
|
5893
|
+
declare namespace EVMAddressActivityRequest {
|
|
5894
|
+
enum eventType {
|
|
5895
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5896
|
+
}
|
|
5897
|
+
}
|
|
4932
5898
|
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
addresses: Array<string>;
|
|
4939
|
-
totalAddresses: number;
|
|
4940
|
-
};
|
|
5899
|
+
declare enum EventType {
|
|
5900
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5901
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5902
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5903
|
+
}
|
|
4941
5904
|
|
|
4942
5905
|
declare enum WebhookStatusType {
|
|
4943
5906
|
ACTIVE = "active",
|
|
4944
5907
|
INACTIVE = "inactive"
|
|
4945
5908
|
}
|
|
4946
5909
|
|
|
4947
|
-
type
|
|
5910
|
+
type EVMAddressActivityResponse = {
|
|
4948
5911
|
id: string;
|
|
4949
5912
|
eventType: EventType;
|
|
5913
|
+
url: string;
|
|
5914
|
+
chainId: string;
|
|
5915
|
+
status: WebhookStatusType;
|
|
5916
|
+
createdAt: number;
|
|
5917
|
+
name: string;
|
|
5918
|
+
description: string;
|
|
4950
5919
|
metadata: AddressActivityMetadata;
|
|
4951
5920
|
/**
|
|
4952
5921
|
* Whether to include traces in the webhook payload.
|
|
@@ -4956,12 +5925,109 @@ type WebhookResponse = {
|
|
|
4956
5925
|
* Whether to include logs in the webhook payload.
|
|
4957
5926
|
*/
|
|
4958
5927
|
includeLogs?: boolean;
|
|
5928
|
+
};
|
|
5929
|
+
|
|
5930
|
+
type ListWebhookAddressesResponse = {
|
|
5931
|
+
/**
|
|
5932
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5933
|
+
*/
|
|
5934
|
+
nextPageToken?: string;
|
|
5935
|
+
addresses: Array<string>;
|
|
5936
|
+
totalAddresses: number;
|
|
5937
|
+
};
|
|
5938
|
+
|
|
5939
|
+
/**
|
|
5940
|
+
* The type of key for platform activity depending on the event type
|
|
5941
|
+
*/
|
|
5942
|
+
declare enum PlatformActivityKeyType {
|
|
5943
|
+
ADDRESSES = "addresses",
|
|
5944
|
+
NODE_ID = "nodeId",
|
|
5945
|
+
SUBNET_ID = "subnetId"
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5948
|
+
/**
|
|
5949
|
+
* Array of address activity sub-event types
|
|
5950
|
+
*/
|
|
5951
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5952
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5953
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5954
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
type PlatformActivitySubEvents = {
|
|
5958
|
+
/**
|
|
5959
|
+
* Array of validator activity sub-event types
|
|
5960
|
+
*/
|
|
5961
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5962
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5963
|
+
};
|
|
5964
|
+
|
|
5965
|
+
/**
|
|
5966
|
+
* Type of balance to monitor
|
|
5967
|
+
*/
|
|
5968
|
+
declare enum CommonBalanceType {
|
|
5969
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5970
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5971
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5972
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5973
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5974
|
+
PENDING_STAKED = "pendingStaked",
|
|
5975
|
+
UNLOCKED = "unlocked",
|
|
5976
|
+
LOCKED = "locked",
|
|
5977
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5978
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5981
|
+
type PlatformBalanceThresholdFilter = {
|
|
5982
|
+
balanceType: CommonBalanceType;
|
|
5983
|
+
/**
|
|
5984
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5985
|
+
*/
|
|
5986
|
+
balanceThreshold: string;
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
type PlatformActivityMetadata = {
|
|
5990
|
+
keyType: PlatformActivityKeyType;
|
|
5991
|
+
/**
|
|
5992
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
5993
|
+
*/
|
|
5994
|
+
keys: Array<string>;
|
|
5995
|
+
/**
|
|
5996
|
+
* Sub-events to monitor
|
|
5997
|
+
*/
|
|
5998
|
+
subEvents?: PlatformActivitySubEvents;
|
|
5999
|
+
/**
|
|
6000
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6001
|
+
*/
|
|
6002
|
+
eventSignatures?: Array<string>;
|
|
6003
|
+
/**
|
|
6004
|
+
* Array of node IDs to filter the events
|
|
6005
|
+
*/
|
|
6006
|
+
nodeIds?: Array<string>;
|
|
6007
|
+
/**
|
|
6008
|
+
* Array of subnet IDs to filter the events
|
|
6009
|
+
*/
|
|
6010
|
+
subnetIds?: Array<string>;
|
|
6011
|
+
/**
|
|
6012
|
+
* Balance threshold filter
|
|
6013
|
+
*/
|
|
6014
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6015
|
+
/**
|
|
6016
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6017
|
+
*/
|
|
6018
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6019
|
+
};
|
|
6020
|
+
|
|
6021
|
+
type PlatformActivityResponse = {
|
|
6022
|
+
id: string;
|
|
6023
|
+
eventType: EventType;
|
|
4959
6024
|
url: string;
|
|
4960
6025
|
chainId: string;
|
|
4961
6026
|
status: WebhookStatusType;
|
|
4962
6027
|
createdAt: number;
|
|
4963
6028
|
name: string;
|
|
4964
6029
|
description: string;
|
|
6030
|
+
metadata: PlatformActivityMetadata;
|
|
4965
6031
|
};
|
|
4966
6032
|
|
|
4967
6033
|
type ListWebhooksResponse = {
|
|
@@ -4969,9 +6035,36 @@ type ListWebhooksResponse = {
|
|
|
4969
6035
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4970
6036
|
*/
|
|
4971
6037
|
nextPageToken?: string;
|
|
4972
|
-
webhooks: Array<
|
|
6038
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4973
6039
|
};
|
|
4974
6040
|
|
|
6041
|
+
type PlatformActivityRequest = {
|
|
6042
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6043
|
+
url: string;
|
|
6044
|
+
chainId: string;
|
|
6045
|
+
network?: PrimaryNetworkType;
|
|
6046
|
+
name?: string;
|
|
6047
|
+
description?: string;
|
|
6048
|
+
/**
|
|
6049
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6050
|
+
*/
|
|
6051
|
+
includeInternalTxs?: boolean;
|
|
6052
|
+
/**
|
|
6053
|
+
* Whether to include logs in the webhook payload.
|
|
6054
|
+
*/
|
|
6055
|
+
includeLogs?: boolean;
|
|
6056
|
+
/**
|
|
6057
|
+
* Metadata for platform activity
|
|
6058
|
+
*/
|
|
6059
|
+
metadata: PlatformActivityMetadata;
|
|
6060
|
+
};
|
|
6061
|
+
declare namespace PlatformActivityRequest {
|
|
6062
|
+
enum eventType {
|
|
6063
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6064
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
|
|
4975
6068
|
type SharedSecretsResponse = {
|
|
4976
6069
|
secret: string;
|
|
4977
6070
|
};
|
|
@@ -4981,6 +6074,9 @@ type UpdateWebhookRequest = {
|
|
|
4981
6074
|
description?: string;
|
|
4982
6075
|
url?: string;
|
|
4983
6076
|
status?: WebhookStatusType;
|
|
6077
|
+
/**
|
|
6078
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6079
|
+
*/
|
|
4984
6080
|
includeInternalTxs?: boolean;
|
|
4985
6081
|
includeLogs?: boolean;
|
|
4986
6082
|
};
|
|
@@ -4996,12 +6092,12 @@ declare class WebhooksService {
|
|
|
4996
6092
|
/**
|
|
4997
6093
|
* Create a webhook
|
|
4998
6094
|
* Create a new webhook.
|
|
4999
|
-
* @returns
|
|
6095
|
+
* @returns any Successful response
|
|
5000
6096
|
* @throws ApiError
|
|
5001
6097
|
*/
|
|
5002
6098
|
createWebhook({ requestBody, }: {
|
|
5003
|
-
requestBody:
|
|
5004
|
-
}): CancelablePromise<
|
|
6099
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6100
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5005
6101
|
/**
|
|
5006
6102
|
* List webhooks
|
|
5007
6103
|
* Lists webhooks for the user.
|
|
@@ -5025,7 +6121,7 @@ declare class WebhooksService {
|
|
|
5025
6121
|
/**
|
|
5026
6122
|
* Get a webhook by ID
|
|
5027
6123
|
* Retrieves a webhook by ID.
|
|
5028
|
-
* @returns
|
|
6124
|
+
* @returns any Successful response
|
|
5029
6125
|
* @throws ApiError
|
|
5030
6126
|
*/
|
|
5031
6127
|
getWebhook({ id, }: {
|
|
@@ -5033,11 +6129,11 @@ declare class WebhooksService {
|
|
|
5033
6129
|
* The webhook identifier.
|
|
5034
6130
|
*/
|
|
5035
6131
|
id: string;
|
|
5036
|
-
}): CancelablePromise<
|
|
6132
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5037
6133
|
/**
|
|
5038
6134
|
* Deactivate a webhook
|
|
5039
6135
|
* Deactivates a webhook by ID.
|
|
5040
|
-
* @returns
|
|
6136
|
+
* @returns any Successful response
|
|
5041
6137
|
* @throws ApiError
|
|
5042
6138
|
*/
|
|
5043
6139
|
deactivateWebhook({ id, }: {
|
|
@@ -5045,11 +6141,11 @@ declare class WebhooksService {
|
|
|
5045
6141
|
* The webhook identifier.
|
|
5046
6142
|
*/
|
|
5047
6143
|
id: string;
|
|
5048
|
-
}): CancelablePromise<
|
|
6144
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5049
6145
|
/**
|
|
5050
6146
|
* Update a webhook
|
|
5051
6147
|
* Updates an existing webhook.
|
|
5052
|
-
* @returns
|
|
6148
|
+
* @returns any Successful response
|
|
5053
6149
|
* @throws ApiError
|
|
5054
6150
|
*/
|
|
5055
6151
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5058,14 +6154,14 @@ declare class WebhooksService {
|
|
|
5058
6154
|
*/
|
|
5059
6155
|
id: string;
|
|
5060
6156
|
requestBody: UpdateWebhookRequest;
|
|
5061
|
-
}): CancelablePromise<
|
|
6157
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5062
6158
|
/**
|
|
5063
|
-
* Generate a shared secret
|
|
5064
|
-
* Generates a new shared secret.
|
|
6159
|
+
* Generate or rotate a shared secret
|
|
6160
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5065
6161
|
* @returns SharedSecretsResponse Successful response
|
|
5066
6162
|
* @throws ApiError
|
|
5067
6163
|
*/
|
|
5068
|
-
|
|
6164
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5069
6165
|
/**
|
|
5070
6166
|
* Get a shared secret
|
|
5071
6167
|
* Get a previously generated shared secret.
|
|
@@ -5074,9 +6170,9 @@ declare class WebhooksService {
|
|
|
5074
6170
|
*/
|
|
5075
6171
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5076
6172
|
/**
|
|
5077
|
-
* Add addresses to webhook
|
|
5078
|
-
* Add addresses to webhook.
|
|
5079
|
-
* @returns
|
|
6173
|
+
* Add addresses to EVM activity webhook
|
|
6174
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6175
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5080
6176
|
* @throws ApiError
|
|
5081
6177
|
*/
|
|
5082
6178
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5085,11 +6181,11 @@ declare class WebhooksService {
|
|
|
5085
6181
|
*/
|
|
5086
6182
|
id: string;
|
|
5087
6183
|
requestBody: AddressesChangeRequest;
|
|
5088
|
-
}): CancelablePromise<
|
|
6184
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5089
6185
|
/**
|
|
5090
|
-
* Remove addresses from webhook
|
|
5091
|
-
* Remove addresses from webhook.
|
|
5092
|
-
* @returns
|
|
6186
|
+
* Remove addresses from EVM activity webhook
|
|
6187
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6188
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5093
6189
|
* @throws ApiError
|
|
5094
6190
|
*/
|
|
5095
6191
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5098,10 +6194,10 @@ declare class WebhooksService {
|
|
|
5098
6194
|
*/
|
|
5099
6195
|
id: string;
|
|
5100
6196
|
requestBody: AddressesChangeRequest;
|
|
5101
|
-
}): CancelablePromise<
|
|
6197
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5102
6198
|
/**
|
|
5103
|
-
* List adresses by
|
|
5104
|
-
* List adresses by webhook.
|
|
6199
|
+
* List adresses by EVM activity webhooks
|
|
6200
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5105
6201
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5106
6202
|
* @throws ApiError
|
|
5107
6203
|
*/
|
|
@@ -5131,7 +6227,9 @@ declare class Glacier {
|
|
|
5131
6227
|
readonly evmContracts: EvmContractsService;
|
|
5132
6228
|
readonly evmTransactions: EvmTransactionsService;
|
|
5133
6229
|
readonly healthCheck: HealthCheckService;
|
|
6230
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5134
6231
|
readonly nfTs: NfTsService;
|
|
6232
|
+
readonly notifications: NotificationsService;
|
|
5135
6233
|
readonly operations: OperationsService;
|
|
5136
6234
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5137
6235
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5140,7 +6238,6 @@ declare class Glacier {
|
|
|
5140
6238
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5141
6239
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5142
6240
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5143
|
-
readonly rpc: RpcService;
|
|
5144
6241
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5145
6242
|
readonly teleporter: TeleporterService;
|
|
5146
6243
|
readonly webhooks: WebhooksService;
|
|
@@ -5165,6 +6262,17 @@ declare class ApiError extends Error {
|
|
|
5165
6262
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5166
6263
|
}
|
|
5167
6264
|
|
|
6265
|
+
type AccessListData = {
|
|
6266
|
+
/**
|
|
6267
|
+
* Access Address
|
|
6268
|
+
*/
|
|
6269
|
+
accessAddresses: string;
|
|
6270
|
+
/**
|
|
6271
|
+
* Storage keys
|
|
6272
|
+
*/
|
|
6273
|
+
storageKeys: Array<string>;
|
|
6274
|
+
};
|
|
6275
|
+
|
|
5168
6276
|
type BadGateway = {
|
|
5169
6277
|
/**
|
|
5170
6278
|
* The error message describing the reason for the exception
|
|
@@ -5199,6 +6307,76 @@ type DataListChainsResponse = {
|
|
|
5199
6307
|
chains: Array<ChainInfo>;
|
|
5200
6308
|
};
|
|
5201
6309
|
|
|
6310
|
+
type ERCToken = {
|
|
6311
|
+
/**
|
|
6312
|
+
* Token contract address
|
|
6313
|
+
*/
|
|
6314
|
+
address: string;
|
|
6315
|
+
/**
|
|
6316
|
+
* Token name
|
|
6317
|
+
*/
|
|
6318
|
+
name: string;
|
|
6319
|
+
/**
|
|
6320
|
+
* Token symbol
|
|
6321
|
+
*/
|
|
6322
|
+
symbol: string;
|
|
6323
|
+
/**
|
|
6324
|
+
* Token decimals
|
|
6325
|
+
*/
|
|
6326
|
+
decimals: number;
|
|
6327
|
+
/**
|
|
6328
|
+
* Value including decimals
|
|
6329
|
+
*/
|
|
6330
|
+
valueWithDecimals: string;
|
|
6331
|
+
};
|
|
6332
|
+
|
|
6333
|
+
type ERCTransfer = {
|
|
6334
|
+
/**
|
|
6335
|
+
* Transaction hash
|
|
6336
|
+
*/
|
|
6337
|
+
transactionHash: string;
|
|
6338
|
+
/**
|
|
6339
|
+
* Transfer type
|
|
6340
|
+
*/
|
|
6341
|
+
type: string;
|
|
6342
|
+
/**
|
|
6343
|
+
* Sender address
|
|
6344
|
+
*/
|
|
6345
|
+
from: string;
|
|
6346
|
+
/**
|
|
6347
|
+
* Recipient address
|
|
6348
|
+
*/
|
|
6349
|
+
to: string;
|
|
6350
|
+
/**
|
|
6351
|
+
* Amount transferred
|
|
6352
|
+
*/
|
|
6353
|
+
value: string;
|
|
6354
|
+
/**
|
|
6355
|
+
* Token Id
|
|
6356
|
+
*/
|
|
6357
|
+
tokenId?: string;
|
|
6358
|
+
/**
|
|
6359
|
+
* Block timestamp
|
|
6360
|
+
*/
|
|
6361
|
+
blockTimestamp: number;
|
|
6362
|
+
/**
|
|
6363
|
+
* Log index
|
|
6364
|
+
*/
|
|
6365
|
+
logIndex: number;
|
|
6366
|
+
/**
|
|
6367
|
+
* erc20 Token details
|
|
6368
|
+
*/
|
|
6369
|
+
erc20Token?: ERCToken;
|
|
6370
|
+
/**
|
|
6371
|
+
* erc721 Token details
|
|
6372
|
+
*/
|
|
6373
|
+
erc721Token?: ERCToken;
|
|
6374
|
+
/**
|
|
6375
|
+
* erc1155 Token details
|
|
6376
|
+
*/
|
|
6377
|
+
erc1155Token?: ERCToken;
|
|
6378
|
+
};
|
|
6379
|
+
|
|
5202
6380
|
type Forbidden = {
|
|
5203
6381
|
/**
|
|
5204
6382
|
* The error message describing the reason for the exception
|
|
@@ -5229,6 +6407,64 @@ type InternalServerError = {
|
|
|
5229
6407
|
error: string;
|
|
5230
6408
|
};
|
|
5231
6409
|
|
|
6410
|
+
type Log = {
|
|
6411
|
+
/**
|
|
6412
|
+
* Contract address
|
|
6413
|
+
*/
|
|
6414
|
+
address: string;
|
|
6415
|
+
/**
|
|
6416
|
+
* First topic
|
|
6417
|
+
*/
|
|
6418
|
+
topic0: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Second topic (optional)
|
|
6421
|
+
*/
|
|
6422
|
+
topic1?: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Third topic (optional)
|
|
6425
|
+
*/
|
|
6426
|
+
topic2?: string;
|
|
6427
|
+
/**
|
|
6428
|
+
* Fourth topic (optional)
|
|
6429
|
+
*/
|
|
6430
|
+
topic3?: string;
|
|
6431
|
+
/**
|
|
6432
|
+
* Event data
|
|
6433
|
+
*/
|
|
6434
|
+
data: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Transaction index
|
|
6437
|
+
*/
|
|
6438
|
+
transactionIndex: number;
|
|
6439
|
+
/**
|
|
6440
|
+
* Log index
|
|
6441
|
+
*/
|
|
6442
|
+
logIndex: number;
|
|
6443
|
+
/**
|
|
6444
|
+
* Indicates if the log was removed
|
|
6445
|
+
*/
|
|
6446
|
+
removed: boolean;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
type NetworkTokenInfo = {
|
|
6450
|
+
/**
|
|
6451
|
+
* Token name
|
|
6452
|
+
*/
|
|
6453
|
+
tokenName?: string;
|
|
6454
|
+
/**
|
|
6455
|
+
* Token symbol
|
|
6456
|
+
*/
|
|
6457
|
+
tokenSymbol?: string;
|
|
6458
|
+
/**
|
|
6459
|
+
* Token decimals
|
|
6460
|
+
*/
|
|
6461
|
+
tokenDecimals?: number;
|
|
6462
|
+
/**
|
|
6463
|
+
* Value including decimals
|
|
6464
|
+
*/
|
|
6465
|
+
valueWithDecimals?: string;
|
|
6466
|
+
};
|
|
6467
|
+
|
|
5232
6468
|
type NextPageToken = {
|
|
5233
6469
|
/**
|
|
5234
6470
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5281,6 +6517,132 @@ type TooManyRequests = {
|
|
|
5281
6517
|
error: string;
|
|
5282
6518
|
};
|
|
5283
6519
|
|
|
6520
|
+
type Transaction = {
|
|
6521
|
+
/**
|
|
6522
|
+
* Block hash of the transaction
|
|
6523
|
+
*/
|
|
6524
|
+
blockHash: string;
|
|
6525
|
+
/**
|
|
6526
|
+
* Block number of the transaction
|
|
6527
|
+
*/
|
|
6528
|
+
blockNumber: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Sender address
|
|
6531
|
+
*/
|
|
6532
|
+
from: string;
|
|
6533
|
+
/**
|
|
6534
|
+
* Gas limit for the transaction
|
|
6535
|
+
*/
|
|
6536
|
+
gas: string;
|
|
6537
|
+
/**
|
|
6538
|
+
* Gas price used
|
|
6539
|
+
*/
|
|
6540
|
+
gasPrice: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Maximum fee per gas
|
|
6543
|
+
*/
|
|
6544
|
+
maxFeePerGas: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Maximum priority fee per gas
|
|
6547
|
+
*/
|
|
6548
|
+
maxPriorityFeePerGas: string;
|
|
6549
|
+
/**
|
|
6550
|
+
* Transaction hash
|
|
6551
|
+
*/
|
|
6552
|
+
txHash: string;
|
|
6553
|
+
/**
|
|
6554
|
+
* Transaction status
|
|
6555
|
+
*/
|
|
6556
|
+
txStatus: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Input data
|
|
6559
|
+
*/
|
|
6560
|
+
input: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Nonce value
|
|
6563
|
+
*/
|
|
6564
|
+
nonce: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Recipient address
|
|
6567
|
+
*/
|
|
6568
|
+
to: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Transaction index
|
|
6571
|
+
*/
|
|
6572
|
+
transactionIndex: number;
|
|
6573
|
+
/**
|
|
6574
|
+
* Value transferred in the transaction
|
|
6575
|
+
*/
|
|
6576
|
+
value: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* Transaction type
|
|
6579
|
+
*/
|
|
6580
|
+
type: number;
|
|
6581
|
+
/**
|
|
6582
|
+
* Chain ID of the network
|
|
6583
|
+
*/
|
|
6584
|
+
chainId: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* Cumulative gas used
|
|
6587
|
+
*/
|
|
6588
|
+
receiptCumulativeGasUsed: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Gas used
|
|
6591
|
+
*/
|
|
6592
|
+
receiptGasUsed: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Effective gas price
|
|
6595
|
+
*/
|
|
6596
|
+
receiptEffectiveGasPrice: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Receipt root
|
|
6599
|
+
*/
|
|
6600
|
+
receiptRoot: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Block timestamp
|
|
6603
|
+
*/
|
|
6604
|
+
blockTimestamp: number;
|
|
6605
|
+
/**
|
|
6606
|
+
* Contract address (optional)
|
|
6607
|
+
*/
|
|
6608
|
+
contractAddress?: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* ERC20 transfers
|
|
6611
|
+
*/
|
|
6612
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6613
|
+
/**
|
|
6614
|
+
* ERC721 transfers
|
|
6615
|
+
*/
|
|
6616
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6617
|
+
/**
|
|
6618
|
+
* ERC1155 transfers
|
|
6619
|
+
*/
|
|
6620
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6621
|
+
/**
|
|
6622
|
+
* Internal transactions (optional)
|
|
6623
|
+
*/
|
|
6624
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6625
|
+
/**
|
|
6626
|
+
* Access list (optional)
|
|
6627
|
+
*/
|
|
6628
|
+
accessList?: Array<AccessListData>;
|
|
6629
|
+
/**
|
|
6630
|
+
* Network token info (optional)
|
|
6631
|
+
*/
|
|
6632
|
+
networkToken?: NetworkTokenInfo;
|
|
6633
|
+
};
|
|
6634
|
+
|
|
6635
|
+
type TransactionEvent = {
|
|
6636
|
+
/**
|
|
6637
|
+
* Transaction details
|
|
6638
|
+
*/
|
|
6639
|
+
transaction: Transaction;
|
|
6640
|
+
/**
|
|
6641
|
+
* Array of log events
|
|
6642
|
+
*/
|
|
6643
|
+
logs?: Array<Log>;
|
|
6644
|
+
};
|
|
6645
|
+
|
|
5284
6646
|
type Unauthorized = {
|
|
5285
6647
|
/**
|
|
5286
6648
|
* The error message describing the reason for the exception
|
|
@@ -5296,4 +6658,43 @@ type Unauthorized = {
|
|
|
5296
6658
|
error: string;
|
|
5297
6659
|
};
|
|
5298
6660
|
|
|
5299
|
-
|
|
6661
|
+
type WebhookAddressActivityResponse = {
|
|
6662
|
+
/**
|
|
6663
|
+
* Webhook ID
|
|
6664
|
+
*/
|
|
6665
|
+
webhookId: string;
|
|
6666
|
+
/**
|
|
6667
|
+
* Event type
|
|
6668
|
+
*/
|
|
6669
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6670
|
+
/**
|
|
6671
|
+
* Message ID
|
|
6672
|
+
*/
|
|
6673
|
+
messageId: string;
|
|
6674
|
+
/**
|
|
6675
|
+
* Event details
|
|
6676
|
+
*/
|
|
6677
|
+
event: TransactionEvent;
|
|
6678
|
+
};
|
|
6679
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6680
|
+
/**
|
|
6681
|
+
* Event type
|
|
6682
|
+
*/
|
|
6683
|
+
enum eventType {
|
|
6684
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6685
|
+
}
|
|
6686
|
+
}
|
|
6687
|
+
|
|
6688
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6689
|
+
constructor(config: OpenAPIConfig);
|
|
6690
|
+
/**
|
|
6691
|
+
* Request method
|
|
6692
|
+
* @param options The request options from the service
|
|
6693
|
+
* @returns CancelablePromise<T>
|
|
6694
|
+
* @throws ApiError
|
|
6695
|
+
*/
|
|
6696
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6697
|
+
}
|
|
6698
|
+
|
|
6699
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EventType, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformActivityKeyType, PlatformActivityRequest, PlatformAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6700
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PlatformActivityMetadata, PlatformActivityResponse, PlatformActivitySubEvents, PlatformBalanceThresholdFilter, PricingProviders, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorHealthDetails, ValidatorsDetails, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|