@avalabs/glacier-sdk 3.1.0-canary.c11d301.0 → 3.1.0-canary.c1bd548.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 +1787 -394
- 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 +18 -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 +72 -6
- 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,68 +1331,240 @@ 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
|
-
|
|
1162
|
-
|
|
1163
|
-
chainId: string;
|
|
1164
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
type RichAddress = {
|
|
1165
1365
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
* Gets the list of chains an address has interacted with.
|
|
1168
|
-
* @returns ListChainsResponse Successful response
|
|
1169
|
-
* @throws ApiError
|
|
1366
|
+
* The contract name.
|
|
1170
1367
|
*/
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* A wallet address.
|
|
1174
|
-
*/
|
|
1175
|
-
address: string;
|
|
1176
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
type ImageAsset = {
|
|
1180
|
-
assetId?: string;
|
|
1368
|
+
name?: string;
|
|
1181
1369
|
/**
|
|
1182
|
-
*
|
|
1370
|
+
* The contract symbol.
|
|
1183
1371
|
*/
|
|
1184
|
-
|
|
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;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
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;
|
|
1185
1568
|
};
|
|
1186
1569
|
|
|
1187
1570
|
type PricingProviders = {
|
|
@@ -1345,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1345
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1346
1729
|
*/
|
|
1347
1730
|
address: string;
|
|
1348
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1349
1732
|
ercType: Erc1155Contract.ercType;
|
|
1350
1733
|
/**
|
|
1351
1734
|
* The contract symbol.
|
|
@@ -1376,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1376
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1377
1760
|
*/
|
|
1378
1761
|
address: string;
|
|
1379
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1380
1763
|
ercType: Erc20Contract.ercType;
|
|
1381
1764
|
/**
|
|
1382
1765
|
* The contract symbol.
|
|
@@ -1411,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1411
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1412
1795
|
*/
|
|
1413
1796
|
address: string;
|
|
1414
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1415
1798
|
ercType: Erc721Contract.ercType;
|
|
1416
1799
|
/**
|
|
1417
1800
|
* The contract symbol.
|
|
@@ -1441,7 +1824,7 @@ type UnknownContract = {
|
|
|
1441
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1442
1825
|
*/
|
|
1443
1826
|
address: string;
|
|
1444
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1445
1828
|
ercType: UnknownContract.ercType;
|
|
1446
1829
|
};
|
|
1447
1830
|
declare namespace UnknownContract {
|
|
@@ -1508,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1508
1891
|
}
|
|
1509
1892
|
}
|
|
1510
1893
|
|
|
1511
|
-
type RichAddress = {
|
|
1512
|
-
/**
|
|
1513
|
-
* The contract name.
|
|
1514
|
-
*/
|
|
1515
|
-
name?: string;
|
|
1516
|
-
/**
|
|
1517
|
-
* The contract symbol.
|
|
1518
|
-
*/
|
|
1519
|
-
symbol?: string;
|
|
1520
|
-
/**
|
|
1521
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1522
|
-
*/
|
|
1523
|
-
decimals?: number;
|
|
1524
|
-
/**
|
|
1525
|
-
* The logo uri for the address.
|
|
1526
|
-
*/
|
|
1527
|
-
logoUri?: string;
|
|
1528
|
-
/**
|
|
1529
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1530
|
-
*/
|
|
1531
|
-
address: string;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
1894
|
type Erc1155TransferDetails = {
|
|
1535
1895
|
from: RichAddress;
|
|
1536
1896
|
to: RichAddress;
|
|
@@ -1615,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1615
1975
|
erc721Token: Erc721Token;
|
|
1616
1976
|
};
|
|
1617
1977
|
|
|
1618
|
-
/**
|
|
1619
|
-
* 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.
|
|
1620
|
-
*/
|
|
1621
|
-
declare enum TransactionMethodType {
|
|
1622
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1623
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1624
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
type Method = {
|
|
1628
|
-
callType: TransactionMethodType;
|
|
1629
|
-
/**
|
|
1630
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1631
|
-
*/
|
|
1632
|
-
methodHash: string;
|
|
1633
|
-
/**
|
|
1634
|
-
* 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'.
|
|
1635
|
-
*/
|
|
1636
|
-
methodName?: string;
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
1978
|
type FullNativeTransactionDetails = {
|
|
1640
1979
|
/**
|
|
1641
1980
|
* The block number on the chain.
|
|
@@ -1649,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1649
1988
|
* The block hash identifier.
|
|
1650
1989
|
*/
|
|
1651
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1652
1995
|
/**
|
|
1653
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1654
1997
|
*/
|
|
@@ -1699,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1699
2042
|
CALL = "CALL",
|
|
1700
2043
|
CREATE = "CREATE",
|
|
1701
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1702
2046
|
CALLCODE = "CALLCODE",
|
|
1703
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1704
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -1761,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
1761
2105
|
*/
|
|
1762
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1763
2107
|
/**
|
|
1764
|
-
* 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.
|
|
1765
2109
|
*/
|
|
1766
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1767
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1877,31 +2221,33 @@ type ListErc721TransactionsResponse = {
|
|
|
1877
2221
|
|
|
1878
2222
|
type InternalTransaction = {
|
|
1879
2223
|
/**
|
|
1880
|
-
*
|
|
2224
|
+
* Sender address
|
|
1881
2225
|
*/
|
|
1882
|
-
|
|
2226
|
+
from: string;
|
|
1883
2227
|
/**
|
|
1884
|
-
*
|
|
2228
|
+
* Recipient address
|
|
1885
2229
|
*/
|
|
1886
|
-
|
|
2230
|
+
to: string;
|
|
1887
2231
|
/**
|
|
1888
|
-
*
|
|
2232
|
+
* Internal transaction type
|
|
1889
2233
|
*/
|
|
1890
|
-
|
|
2234
|
+
internalTxType: string;
|
|
1891
2235
|
/**
|
|
1892
|
-
*
|
|
2236
|
+
* Value transferred
|
|
1893
2237
|
*/
|
|
1894
|
-
txHash: string;
|
|
1895
|
-
from: RichAddress;
|
|
1896
|
-
to: RichAddress;
|
|
1897
|
-
internalTxType: InternalTransactionOpCall;
|
|
1898
2238
|
value: string;
|
|
1899
2239
|
/**
|
|
1900
|
-
*
|
|
2240
|
+
* Gas used
|
|
1901
2241
|
*/
|
|
1902
|
-
isReverted: boolean;
|
|
1903
2242
|
gasUsed: string;
|
|
2243
|
+
/**
|
|
2244
|
+
* Gas limit
|
|
2245
|
+
*/
|
|
1904
2246
|
gasLimit: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Transaction hash
|
|
2249
|
+
*/
|
|
2250
|
+
transactionHash: string;
|
|
1905
2251
|
};
|
|
1906
2252
|
|
|
1907
2253
|
type ListInternalTransactionsResponse = {
|
|
@@ -1912,89 +2258,30 @@ type ListInternalTransactionsResponse = {
|
|
|
1912
2258
|
transactions: Array<InternalTransaction>;
|
|
1913
2259
|
};
|
|
1914
2260
|
|
|
1915
|
-
type
|
|
2261
|
+
type TransactionDetails = {
|
|
1916
2262
|
/**
|
|
1917
|
-
* The
|
|
2263
|
+
* The native (top-level) transaction details.
|
|
1918
2264
|
*/
|
|
1919
|
-
|
|
2265
|
+
nativeTransaction: NativeTransaction;
|
|
1920
2266
|
/**
|
|
1921
|
-
* The
|
|
2267
|
+
* The list of ERC-20 transfers.
|
|
1922
2268
|
*/
|
|
1923
|
-
|
|
2269
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1924
2270
|
/**
|
|
1925
|
-
* The
|
|
2271
|
+
* The list of ERC-721 transfers.
|
|
1926
2272
|
*/
|
|
1927
|
-
|
|
2273
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1928
2274
|
/**
|
|
1929
|
-
* The
|
|
2275
|
+
* The list of ERC-1155 transfers.
|
|
1930
2276
|
*/
|
|
1931
|
-
|
|
2277
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1932
2278
|
/**
|
|
1933
|
-
* The
|
|
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.
|
|
1934
2280
|
*/
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
txStatus: string;
|
|
1940
|
-
/**
|
|
1941
|
-
* The transaction type.
|
|
1942
|
-
*/
|
|
1943
|
-
txType: number;
|
|
1944
|
-
/**
|
|
1945
|
-
* The gas limit set for the transaction.
|
|
1946
|
-
*/
|
|
1947
|
-
gasLimit: string;
|
|
1948
|
-
/**
|
|
1949
|
-
* The amount of gas used.
|
|
1950
|
-
*/
|
|
1951
|
-
gasUsed: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1954
|
-
*/
|
|
1955
|
-
gasPrice: string;
|
|
1956
|
-
/**
|
|
1957
|
-
* The nonce used by the sender of the transaction.
|
|
1958
|
-
*/
|
|
1959
|
-
nonce: string;
|
|
1960
|
-
from: RichAddress;
|
|
1961
|
-
to: RichAddress;
|
|
1962
|
-
method?: Method;
|
|
1963
|
-
value: string;
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
|
-
type ListNativeTransactionsResponse = {
|
|
1967
|
-
/**
|
|
1968
|
-
* 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.
|
|
1969
|
-
*/
|
|
1970
|
-
nextPageToken?: string;
|
|
1971
|
-
transactions: Array<NativeTransaction>;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
|
-
type TransactionDetails = {
|
|
1975
|
-
/**
|
|
1976
|
-
* The native (top-level) transaction details.
|
|
1977
|
-
*/
|
|
1978
|
-
nativeTransaction: NativeTransaction;
|
|
1979
|
-
/**
|
|
1980
|
-
* The list of ERC-20 transfers.
|
|
1981
|
-
*/
|
|
1982
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1983
|
-
/**
|
|
1984
|
-
* The list of ERC-721 transfers.
|
|
1985
|
-
*/
|
|
1986
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1987
|
-
/**
|
|
1988
|
-
* The list of ERC-1155 transfers.
|
|
1989
|
-
*/
|
|
1990
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1991
|
-
/**
|
|
1992
|
-
* 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.
|
|
1993
|
-
*/
|
|
1994
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
type ListTransactionDetailsResponse = {
|
|
2281
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2282
|
+
};
|
|
2283
|
+
|
|
2284
|
+
type ListTransactionDetailsResponse = {
|
|
1998
2285
|
/**
|
|
1999
2286
|
* 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.
|
|
2000
2287
|
*/
|
|
@@ -2015,14 +2302,33 @@ declare enum SortOrder {
|
|
|
2015
2302
|
DESC = "desc"
|
|
2016
2303
|
}
|
|
2017
2304
|
|
|
2018
|
-
declare enum TransactionStatus {
|
|
2019
|
-
FAILED = "failed",
|
|
2020
|
-
SUCCESS = "success"
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
2305
|
declare class EvmTransactionsService {
|
|
2024
2306
|
readonly httpRequest: BaseHttpRequest;
|
|
2025
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>;
|
|
2026
2332
|
/**
|
|
2027
2333
|
* Get deployment transaction
|
|
2028
2334
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2269,7 +2575,7 @@ declare class EvmTransactionsService {
|
|
|
2269
2575
|
* List internal transactions
|
|
2270
2576
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2271
2577
|
*
|
|
2272
|
-
* 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.
|
|
2273
2579
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2274
2580
|
* @throws ApiError
|
|
2275
2581
|
*/
|
|
@@ -2321,7 +2627,7 @@ declare class EvmTransactionsService {
|
|
|
2321
2627
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2628
|
* @throws ApiError
|
|
2323
2629
|
*/
|
|
2324
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2630
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2325
2631
|
/**
|
|
2326
2632
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2327
2633
|
*/
|
|
@@ -2330,6 +2636,14 @@ declare class EvmTransactionsService {
|
|
|
2330
2636
|
* A block identifier which is either a block number or the block hash.
|
|
2331
2637
|
*/
|
|
2332
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;
|
|
2333
2647
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2334
2648
|
/**
|
|
2335
2649
|
* List latest transactions
|
|
@@ -2357,66 +2671,307 @@ declare class EvmTransactionsService {
|
|
|
2357
2671
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2358
2672
|
}
|
|
2359
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
|
+
|
|
2360
2704
|
declare class HealthCheckService {
|
|
2361
2705
|
readonly httpRequest: BaseHttpRequest;
|
|
2362
2706
|
constructor(httpRequest: BaseHttpRequest);
|
|
2363
2707
|
/**
|
|
2364
2708
|
* Get the health of the service
|
|
2365
|
-
*
|
|
2709
|
+
* Check the health of the service.
|
|
2710
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2366
2711
|
* @throws ApiError
|
|
2367
2712
|
*/
|
|
2368
|
-
dataHealthCheck(): CancelablePromise<
|
|
2369
|
-
status?: string;
|
|
2370
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2371
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2372
|
-
details?: Record<string, Record<string, string>>;
|
|
2373
|
-
}>;
|
|
2713
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2374
2714
|
}
|
|
2375
2715
|
|
|
2376
|
-
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 = {
|
|
2377
2843
|
/**
|
|
2378
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.
|
|
2379
2845
|
*/
|
|
2380
2846
|
nextPageToken?: string;
|
|
2381
|
-
|
|
2847
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2382
2848
|
};
|
|
2383
2849
|
|
|
2384
|
-
declare class
|
|
2850
|
+
declare class InterchainMessagingService {
|
|
2385
2851
|
readonly httpRequest: BaseHttpRequest;
|
|
2386
2852
|
constructor(httpRequest: BaseHttpRequest);
|
|
2387
2853
|
/**
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2854
|
+
* Get an ICM message
|
|
2855
|
+
* Gets an ICM message by teleporter message ID.
|
|
2390
2856
|
* @returns any Successful response
|
|
2391
2857
|
* @throws ApiError
|
|
2392
2858
|
*/
|
|
2393
|
-
|
|
2859
|
+
getIcmMessage({ messageId, }: {
|
|
2394
2860
|
/**
|
|
2395
|
-
*
|
|
2861
|
+
* The teleporter message ID of the ICM message.
|
|
2396
2862
|
*/
|
|
2397
|
-
|
|
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, }: {
|
|
2398
2872
|
/**
|
|
2399
|
-
*
|
|
2873
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2400
2874
|
*/
|
|
2401
|
-
|
|
2875
|
+
pageToken?: string;
|
|
2402
2876
|
/**
|
|
2403
|
-
*
|
|
2877
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2404
2878
|
*/
|
|
2405
|
-
|
|
2406
|
-
|
|
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>;
|
|
2407
2905
|
/**
|
|
2408
|
-
* List
|
|
2409
|
-
* Lists
|
|
2410
|
-
* @returns
|
|
2906
|
+
* List ICM messages by address
|
|
2907
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2908
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2411
2909
|
* @throws ApiError
|
|
2412
2910
|
*/
|
|
2413
|
-
|
|
2414
|
-
/**
|
|
2415
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2416
|
-
*/
|
|
2417
|
-
chainId: string;
|
|
2911
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2418
2912
|
/**
|
|
2419
|
-
*
|
|
2913
|
+
* An EVM address.
|
|
2914
|
+
*/
|
|
2915
|
+
address: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2918
|
+
*/
|
|
2919
|
+
pageToken?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2922
|
+
*/
|
|
2923
|
+
pageSize?: number;
|
|
2924
|
+
/**
|
|
2925
|
+
* Either mainnet or testnet/fuji.
|
|
2926
|
+
*/
|
|
2927
|
+
network?: Network;
|
|
2928
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
type ListNftTokens = {
|
|
2932
|
+
/**
|
|
2933
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2934
|
+
*/
|
|
2935
|
+
nextPageToken?: string;
|
|
2936
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
declare class NfTsService {
|
|
2940
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2941
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2942
|
+
/**
|
|
2943
|
+
* Reindex NFT metadata
|
|
2944
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2945
|
+
* @returns any Successful response
|
|
2946
|
+
* @throws ApiError
|
|
2947
|
+
*/
|
|
2948
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2949
|
+
/**
|
|
2950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2951
|
+
*/
|
|
2952
|
+
chainId: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Contract address on the relevant chain.
|
|
2955
|
+
*/
|
|
2956
|
+
address: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* TokenId on the contract
|
|
2959
|
+
*/
|
|
2960
|
+
tokenId: string;
|
|
2961
|
+
}): CancelablePromise<any>;
|
|
2962
|
+
/**
|
|
2963
|
+
* List tokens
|
|
2964
|
+
* Lists tokens for an NFT contract.
|
|
2965
|
+
* @returns ListNftTokens Successful response
|
|
2966
|
+
* @throws ApiError
|
|
2967
|
+
*/
|
|
2968
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2969
|
+
/**
|
|
2970
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2971
|
+
*/
|
|
2972
|
+
chainId: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Contract address on the relevant chain.
|
|
2420
2975
|
*/
|
|
2421
2976
|
address: string;
|
|
2422
2977
|
/**
|
|
@@ -2450,6 +3005,108 @@ declare class NfTsService {
|
|
|
2450
3005
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2451
3006
|
}
|
|
2452
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
|
+
|
|
2453
3110
|
type EvmNetworkOptions = {
|
|
2454
3111
|
addresses: Array<string>;
|
|
2455
3112
|
includeChains: Array<string>;
|
|
@@ -2538,7 +3195,7 @@ type OperationStatusResponse = {
|
|
|
2538
3195
|
operationType: OperationType;
|
|
2539
3196
|
operationStatus: OperationStatus;
|
|
2540
3197
|
message?: string;
|
|
2541
|
-
metadata
|
|
3198
|
+
metadata?: TransactionExportMetadata;
|
|
2542
3199
|
createdAtTimestamp: number;
|
|
2543
3200
|
updatedAtTimestamp: number;
|
|
2544
3201
|
};
|
|
@@ -2571,6 +3228,19 @@ declare class OperationsService {
|
|
|
2571
3228
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2572
3229
|
}
|
|
2573
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
|
+
|
|
2574
3244
|
declare enum BlockchainIds {
|
|
2575
3245
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2576
3246
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
@@ -2602,16 +3272,31 @@ type DelegatorsDetails = {
|
|
|
2602
3272
|
};
|
|
2603
3273
|
|
|
2604
3274
|
type StakingDistribution = {
|
|
3275
|
+
/**
|
|
3276
|
+
* AvalancheGo version for the validator node.
|
|
3277
|
+
*/
|
|
2605
3278
|
version: string;
|
|
3279
|
+
/**
|
|
3280
|
+
* The total amount staked by validators using this version.
|
|
3281
|
+
*/
|
|
2606
3282
|
amountStaked: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* The number of validators using this version.
|
|
3285
|
+
*/
|
|
2607
3286
|
validatorCount: number;
|
|
2608
3287
|
};
|
|
2609
3288
|
|
|
2610
3289
|
type ValidatorsDetails = {
|
|
2611
3290
|
validatorCount: number;
|
|
2612
3291
|
totalAmountStaked: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3294
|
+
*/
|
|
2613
3295
|
estimatedAnnualStakingReward: string;
|
|
2614
3296
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3297
|
+
/**
|
|
3298
|
+
* Ratio of total active stake amount to the current supply.
|
|
3299
|
+
*/
|
|
2615
3300
|
stakingRatio: string;
|
|
2616
3301
|
};
|
|
2617
3302
|
|
|
@@ -2620,15 +3305,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2620
3305
|
delegatorDetails: DelegatorsDetails;
|
|
2621
3306
|
};
|
|
2622
3307
|
|
|
2623
|
-
type Blockchain = {
|
|
2624
|
-
createBlockTimestamp: number;
|
|
2625
|
-
createBlockNumber: string;
|
|
2626
|
-
blockchainId: string;
|
|
2627
|
-
vmId: string;
|
|
2628
|
-
subnetId: string;
|
|
2629
|
-
blockchainName: string;
|
|
2630
|
-
};
|
|
2631
|
-
|
|
2632
3308
|
type ListBlockchainsResponse = {
|
|
2633
3309
|
/**
|
|
2634
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.
|
|
@@ -2663,7 +3339,13 @@ type CompletedDelegatorDetails = {
|
|
|
2663
3339
|
delegationFee: string;
|
|
2664
3340
|
startTimestamp: number;
|
|
2665
3341
|
endTimestamp: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Total rewards distributed for the successful delegation.
|
|
3344
|
+
*/
|
|
2666
3345
|
grossReward: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3348
|
+
*/
|
|
2667
3349
|
netReward: string;
|
|
2668
3350
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2669
3351
|
};
|
|
@@ -2681,7 +3363,13 @@ type PendingDelegatorDetails = {
|
|
|
2681
3363
|
delegationFee: string;
|
|
2682
3364
|
startTimestamp: number;
|
|
2683
3365
|
endTimestamp: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3368
|
+
*/
|
|
2684
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
|
+
*/
|
|
2685
3373
|
estimatedNetReward: string;
|
|
2686
3374
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2687
3375
|
};
|
|
@@ -2702,8 +3390,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2702
3390
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2703
3391
|
};
|
|
2704
3392
|
|
|
2705
|
-
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
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3443
|
+
*/
|
|
3444
|
+
blockHeight: string;
|
|
3445
|
+
};
|
|
3446
|
+
|
|
3447
|
+
type L1ValidatorManagerDetails = {
|
|
2706
3448
|
blockchainId: string;
|
|
3449
|
+
contractAddress: string;
|
|
2707
3450
|
};
|
|
2708
3451
|
|
|
2709
3452
|
type SubnetOwnershipInfo = {
|
|
@@ -2744,7 +3487,19 @@ type Subnet = {
|
|
|
2744
3487
|
* Latest subnet owner details for this Subnet.
|
|
2745
3488
|
*/
|
|
2746
3489
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2747
|
-
|
|
3490
|
+
/**
|
|
3491
|
+
* Whether the subnet is an L1 or not.
|
|
3492
|
+
*/
|
|
3493
|
+
isL1: boolean;
|
|
3494
|
+
/**
|
|
3495
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3496
|
+
*/
|
|
3497
|
+
l1ConversionTransactionHash?: string;
|
|
3498
|
+
/**
|
|
3499
|
+
* L1 validator manager details.
|
|
3500
|
+
*/
|
|
3501
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3502
|
+
blockchains: Array<Blockchain>;
|
|
2748
3503
|
};
|
|
2749
3504
|
|
|
2750
3505
|
type ListSubnetsResponse = {
|
|
@@ -2760,6 +3515,29 @@ type BlsCredentials = {
|
|
|
2760
3515
|
proofOfPossession: string;
|
|
2761
3516
|
};
|
|
2762
3517
|
|
|
3518
|
+
type Geolocation = {
|
|
3519
|
+
/**
|
|
3520
|
+
* The name of the validator node.
|
|
3521
|
+
*/
|
|
3522
|
+
city: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* The city of the validator node.
|
|
3525
|
+
*/
|
|
3526
|
+
country: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* The country code of the validator node.
|
|
3529
|
+
*/
|
|
3530
|
+
countryCode: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* The latitude of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
latitude: number;
|
|
3535
|
+
/**
|
|
3536
|
+
* The longitude of the validator node.
|
|
3537
|
+
*/
|
|
3538
|
+
longitude: number;
|
|
3539
|
+
};
|
|
3540
|
+
|
|
2763
3541
|
type Rewards = {
|
|
2764
3542
|
validationRewardAmount: string;
|
|
2765
3543
|
delegationRewardAmount: string;
|
|
@@ -2791,6 +3569,9 @@ type ActiveValidatorDetails = {
|
|
|
2791
3569
|
nodeId: string;
|
|
2792
3570
|
subnetId: string;
|
|
2793
3571
|
amountStaked: string;
|
|
3572
|
+
/**
|
|
3573
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3574
|
+
*/
|
|
2794
3575
|
delegationFee?: string;
|
|
2795
3576
|
startTimestamp: number;
|
|
2796
3577
|
endTimestamp: number;
|
|
@@ -2798,15 +3579,37 @@ type ActiveValidatorDetails = {
|
|
|
2798
3579
|
* Present for AddPermissionlessValidatorTx
|
|
2799
3580
|
*/
|
|
2800
3581
|
blsCredentials?: BlsCredentials;
|
|
3582
|
+
/**
|
|
3583
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3584
|
+
*/
|
|
2801
3585
|
stakePercentage: number;
|
|
3586
|
+
/**
|
|
3587
|
+
* The number of delegators linked to the validator.
|
|
3588
|
+
*/
|
|
2802
3589
|
delegatorCount: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3592
|
+
*/
|
|
2803
3593
|
amountDelegated?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3596
|
+
*/
|
|
2804
3597
|
uptimePerformance: number;
|
|
2805
3598
|
avalancheGoVersion?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3601
|
+
*/
|
|
2806
3602
|
delegationCapacity?: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3605
|
+
*/
|
|
2807
3606
|
potentialRewards: Rewards;
|
|
2808
3607
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2809
3608
|
validatorHealth: ValidatorHealthDetails;
|
|
3609
|
+
/**
|
|
3610
|
+
* The geographical location of the validator node, if available.
|
|
3611
|
+
*/
|
|
3612
|
+
geolocation: Geolocation | null;
|
|
2810
3613
|
};
|
|
2811
3614
|
declare namespace ActiveValidatorDetails {
|
|
2812
3615
|
enum validationStatus {
|
|
@@ -2819,6 +3622,9 @@ type CompletedValidatorDetails = {
|
|
|
2819
3622
|
nodeId: string;
|
|
2820
3623
|
subnetId: string;
|
|
2821
3624
|
amountStaked: string;
|
|
3625
|
+
/**
|
|
3626
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3627
|
+
*/
|
|
2822
3628
|
delegationFee?: string;
|
|
2823
3629
|
startTimestamp: number;
|
|
2824
3630
|
endTimestamp: number;
|
|
@@ -2842,6 +3648,9 @@ type PendingValidatorDetails = {
|
|
|
2842
3648
|
nodeId: string;
|
|
2843
3649
|
subnetId: string;
|
|
2844
3650
|
amountStaked: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3653
|
+
*/
|
|
2845
3654
|
delegationFee?: string;
|
|
2846
3655
|
startTimestamp: number;
|
|
2847
3656
|
endTimestamp: number;
|
|
@@ -2862,6 +3671,9 @@ type RemovedValidatorDetails = {
|
|
|
2862
3671
|
nodeId: string;
|
|
2863
3672
|
subnetId: string;
|
|
2864
3673
|
amountStaked: string;
|
|
3674
|
+
/**
|
|
3675
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3676
|
+
*/
|
|
2865
3677
|
delegationFee?: string;
|
|
2866
3678
|
startTimestamp: number;
|
|
2867
3679
|
endTimestamp: number;
|
|
@@ -2869,7 +3681,13 @@ type RemovedValidatorDetails = {
|
|
|
2869
3681
|
* Present for AddPermissionlessValidatorTx
|
|
2870
3682
|
*/
|
|
2871
3683
|
blsCredentials?: BlsCredentials;
|
|
3684
|
+
/**
|
|
3685
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3686
|
+
*/
|
|
2872
3687
|
removeTxHash: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3690
|
+
*/
|
|
2873
3691
|
removeTimestamp: number;
|
|
2874
3692
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2875
3693
|
};
|
|
@@ -3028,6 +3846,22 @@ declare class PrimaryNetworkService {
|
|
|
3028
3846
|
*/
|
|
3029
3847
|
sortOrder?: SortOrder;
|
|
3030
3848
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3849
|
+
/**
|
|
3850
|
+
* Get blockchain details by ID
|
|
3851
|
+
* Get details of the blockchain registered on the network.
|
|
3852
|
+
* @returns Blockchain Successful response
|
|
3853
|
+
* @throws ApiError
|
|
3854
|
+
*/
|
|
3855
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3856
|
+
/**
|
|
3857
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3858
|
+
*/
|
|
3859
|
+
blockchainId: string;
|
|
3860
|
+
/**
|
|
3861
|
+
* Either mainnet or testnet/fuji.
|
|
3862
|
+
*/
|
|
3863
|
+
network: Network;
|
|
3864
|
+
}): CancelablePromise<Blockchain>;
|
|
3031
3865
|
/**
|
|
3032
3866
|
* List subnets
|
|
3033
3867
|
* Lists all subnets registered on the network.
|
|
@@ -3070,7 +3904,7 @@ declare class PrimaryNetworkService {
|
|
|
3070
3904
|
}): CancelablePromise<Subnet>;
|
|
3071
3905
|
/**
|
|
3072
3906
|
* List validators
|
|
3073
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3907
|
+
* 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.
|
|
3074
3908
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3075
3909
|
* @throws ApiError
|
|
3076
3910
|
*/
|
|
@@ -3088,7 +3922,7 @@ declare class PrimaryNetworkService {
|
|
|
3088
3922
|
*/
|
|
3089
3923
|
pageSize?: number;
|
|
3090
3924
|
/**
|
|
3091
|
-
* A comma separated list of node ids to filter by.
|
|
3925
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3092
3926
|
*/
|
|
3093
3927
|
nodeIds?: string;
|
|
3094
3928
|
/**
|
|
@@ -3210,26 +4044,59 @@ declare class PrimaryNetworkService {
|
|
|
3210
4044
|
*/
|
|
3211
4045
|
nodeIds?: string;
|
|
3212
4046
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3213
|
-
}
|
|
3214
|
-
|
|
3215
|
-
declare enum BlockchainId {
|
|
3216
|
-
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3217
|
-
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3218
|
-
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3219
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3220
|
-
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3221
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3222
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3223
|
-
P_CHAIN = "p-chain",
|
|
3224
|
-
X_CHAIN = "x-chain",
|
|
3225
|
-
C_CHAIN = "c-chain"
|
|
3226
|
-
}
|
|
3227
|
-
|
|
3228
|
-
type CChainSharedAssetBalance = {
|
|
3229
4047
|
/**
|
|
3230
|
-
*
|
|
4048
|
+
* List L1 validators
|
|
4049
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4050
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4051
|
+
* @throws ApiError
|
|
3231
4052
|
*/
|
|
3232
|
-
|
|
4053
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4054
|
+
/**
|
|
4055
|
+
* Either mainnet or testnet/fuji.
|
|
4056
|
+
*/
|
|
4057
|
+
network: Network;
|
|
4058
|
+
/**
|
|
4059
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4060
|
+
*/
|
|
4061
|
+
pageToken?: string;
|
|
4062
|
+
/**
|
|
4063
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4064
|
+
*/
|
|
4065
|
+
pageSize?: number;
|
|
4066
|
+
/**
|
|
4067
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4068
|
+
*/
|
|
4069
|
+
l1ValidationId?: string;
|
|
4070
|
+
includeInactiveL1Validators?: boolean;
|
|
4071
|
+
/**
|
|
4072
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4073
|
+
*/
|
|
4074
|
+
nodeId?: string;
|
|
4075
|
+
/**
|
|
4076
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4077
|
+
*/
|
|
4078
|
+
subnetId?: any;
|
|
4079
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
declare enum BlockchainId {
|
|
4083
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
4084
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4085
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4086
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
4087
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
4088
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4089
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
4090
|
+
P_CHAIN = "p-chain",
|
|
4091
|
+
X_CHAIN = "x-chain",
|
|
4092
|
+
C_CHAIN = "c-chain"
|
|
4093
|
+
}
|
|
4094
|
+
|
|
4095
|
+
type CChainSharedAssetBalance = {
|
|
4096
|
+
/**
|
|
4097
|
+
* Unique ID for an asset.
|
|
4098
|
+
*/
|
|
4099
|
+
assetId: string;
|
|
3233
4100
|
/**
|
|
3234
4101
|
* Name of this asset.
|
|
3235
4102
|
*/
|
|
@@ -3256,12 +4123,6 @@ type CChainAtomicBalances = {
|
|
|
3256
4123
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3257
4124
|
};
|
|
3258
4125
|
|
|
3259
|
-
declare enum PrimaryNetwork {
|
|
3260
|
-
MAINNET = "mainnet",
|
|
3261
|
-
FUJI = "fuji",
|
|
3262
|
-
DEVNET = "devnet"
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
4126
|
declare enum PrimaryNetworkChainName {
|
|
3266
4127
|
P_CHAIN = "p-chain",
|
|
3267
4128
|
X_CHAIN = "x-chain",
|
|
@@ -3270,7 +4131,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3270
4131
|
|
|
3271
4132
|
type PrimaryNetworkChainInfo = {
|
|
3272
4133
|
chainName: PrimaryNetworkChainName;
|
|
3273
|
-
network:
|
|
4134
|
+
network: Network;
|
|
3274
4135
|
};
|
|
3275
4136
|
|
|
3276
4137
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3462,6 +4323,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3462
4323
|
txCount: number;
|
|
3463
4324
|
transactions: Array<string>;
|
|
3464
4325
|
blockSizeBytes: number;
|
|
4326
|
+
l1ValidatorsAccruedFees?: number;
|
|
4327
|
+
activeL1Validators?: number;
|
|
3465
4328
|
currentSupply?: string;
|
|
3466
4329
|
proposerDetails?: ProposerDetails;
|
|
3467
4330
|
};
|
|
@@ -3475,6 +4338,8 @@ type PrimaryNetworkBlock = {
|
|
|
3475
4338
|
txCount: number;
|
|
3476
4339
|
transactions: Array<string>;
|
|
3477
4340
|
blockSizeBytes: number;
|
|
4341
|
+
l1ValidatorsAccruedFees?: number;
|
|
4342
|
+
activeL1Validators?: number;
|
|
3478
4343
|
currentSupply?: string;
|
|
3479
4344
|
proposerDetails?: ProposerDetails;
|
|
3480
4345
|
};
|
|
@@ -3517,7 +4382,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3517
4382
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3518
4383
|
* @throws ApiError
|
|
3519
4384
|
*/
|
|
3520
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4385
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3521
4386
|
/**
|
|
3522
4387
|
* A primary network blockchain id or alias.
|
|
3523
4388
|
*/
|
|
@@ -3530,6 +4395,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3530
4395
|
* A primary network (P or X chain) nodeId.
|
|
3531
4396
|
*/
|
|
3532
4397
|
nodeId: string;
|
|
4398
|
+
/**
|
|
4399
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4400
|
+
*/
|
|
4401
|
+
startTimestamp?: number;
|
|
4402
|
+
/**
|
|
4403
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4404
|
+
*/
|
|
4405
|
+
endTimestamp?: number;
|
|
3533
4406
|
/**
|
|
3534
4407
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3535
4408
|
*/
|
|
@@ -3545,7 +4418,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3545
4418
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3546
4419
|
* @throws ApiError
|
|
3547
4420
|
*/
|
|
3548
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4421
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3549
4422
|
/**
|
|
3550
4423
|
* A primary network blockchain id or alias.
|
|
3551
4424
|
*/
|
|
@@ -3554,6 +4427,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3554
4427
|
* Either mainnet or testnet/fuji.
|
|
3555
4428
|
*/
|
|
3556
4429
|
network: Network;
|
|
4430
|
+
/**
|
|
4431
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4432
|
+
*/
|
|
4433
|
+
startTimestamp?: number;
|
|
4434
|
+
/**
|
|
4435
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4436
|
+
*/
|
|
4437
|
+
endTimestamp?: number;
|
|
3557
4438
|
/**
|
|
3558
4439
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3559
4440
|
*/
|
|
@@ -3963,6 +4844,32 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3963
4844
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3964
4845
|
};
|
|
3965
4846
|
|
|
4847
|
+
type L1ValidatorDetailsTransaction = {
|
|
4848
|
+
/**
|
|
4849
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4850
|
+
*/
|
|
4851
|
+
validationId: string;
|
|
4852
|
+
/**
|
|
4853
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4854
|
+
*/
|
|
4855
|
+
validationIdHex: string;
|
|
4856
|
+
nodeId: string;
|
|
4857
|
+
subnetId: string;
|
|
4858
|
+
/**
|
|
4859
|
+
* 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
|
|
4860
|
+
*/
|
|
4861
|
+
weight: number;
|
|
4862
|
+
/**
|
|
4863
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4864
|
+
*/
|
|
4865
|
+
remainingBalance: number;
|
|
4866
|
+
/**
|
|
4867
|
+
* 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
|
|
4868
|
+
*/
|
|
4869
|
+
balanceChange?: number;
|
|
4870
|
+
blsCredentials?: Record<string, any>;
|
|
4871
|
+
};
|
|
4872
|
+
|
|
3966
4873
|
declare enum PChainTransactionType {
|
|
3967
4874
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3968
4875
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3979,9 +4886,17 @@ declare enum PChainTransactionType {
|
|
|
3979
4886
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3980
4887
|
BASE_TX = "BaseTx",
|
|
3981
4888
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4889
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4890
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4891
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4892
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4893
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3982
4894
|
UNKNOWN = "UNKNOWN"
|
|
3983
4895
|
}
|
|
3984
4896
|
|
|
4897
|
+
/**
|
|
4898
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4899
|
+
*/
|
|
3985
4900
|
declare enum UtxoType {
|
|
3986
4901
|
STAKE = "STAKE",
|
|
3987
4902
|
TRANSFER = "TRANSFER"
|
|
@@ -4019,16 +4934,43 @@ type PChainUtxo = {
|
|
|
4019
4934
|
assetId: string;
|
|
4020
4935
|
blockNumber: string;
|
|
4021
4936
|
blockTimestamp: number;
|
|
4937
|
+
/**
|
|
4938
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4939
|
+
*/
|
|
4022
4940
|
consumingBlockNumber?: string;
|
|
4941
|
+
/**
|
|
4942
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4943
|
+
*/
|
|
4023
4944
|
consumingBlockTimestamp?: number;
|
|
4945
|
+
/**
|
|
4946
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4947
|
+
*/
|
|
4024
4948
|
platformLocktime?: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* The index of the UTXO in the transaction
|
|
4951
|
+
*/
|
|
4025
4952
|
outputIndex: number;
|
|
4026
4953
|
rewardType?: RewardType;
|
|
4954
|
+
/**
|
|
4955
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4956
|
+
*/
|
|
4027
4957
|
stakeableLocktime?: number;
|
|
4028
4958
|
staked?: boolean;
|
|
4959
|
+
/**
|
|
4960
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4961
|
+
*/
|
|
4029
4962
|
threshold?: number;
|
|
4963
|
+
/**
|
|
4964
|
+
* The hash of the transaction that created this UTXO
|
|
4965
|
+
*/
|
|
4030
4966
|
txHash: string;
|
|
4967
|
+
/**
|
|
4968
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4969
|
+
*/
|
|
4031
4970
|
utxoEndTimestamp?: number;
|
|
4971
|
+
/**
|
|
4972
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4973
|
+
*/
|
|
4032
4974
|
utxoStartTimestamp?: number;
|
|
4033
4975
|
utxoType: UtxoType;
|
|
4034
4976
|
};
|
|
@@ -4043,9 +4985,18 @@ type PChainTransaction = {
|
|
|
4043
4985
|
* The block finality timestamp.
|
|
4044
4986
|
*/
|
|
4045
4987
|
blockTimestamp: number;
|
|
4988
|
+
/**
|
|
4989
|
+
* The height of the block in which the transaction was included
|
|
4990
|
+
*/
|
|
4046
4991
|
blockNumber: string;
|
|
4047
4992
|
blockHash: string;
|
|
4993
|
+
/**
|
|
4994
|
+
* The consumed UTXOs of the transaction
|
|
4995
|
+
*/
|
|
4048
4996
|
consumedUtxos: Array<PChainUtxo>;
|
|
4997
|
+
/**
|
|
4998
|
+
* The newly created UTXOs of the transaction
|
|
4999
|
+
*/
|
|
4049
5000
|
emittedUtxos: Array<PChainUtxo>;
|
|
4050
5001
|
/**
|
|
4051
5002
|
* Source chain for an atomic transaction.
|
|
@@ -4056,17 +5007,21 @@ type PChainTransaction = {
|
|
|
4056
5007
|
*/
|
|
4057
5008
|
destinationChain?: string;
|
|
4058
5009
|
/**
|
|
4059
|
-
* 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 amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4060
5011
|
*/
|
|
4061
5012
|
value: Array<AssetAmount>;
|
|
4062
5013
|
/**
|
|
4063
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5014
|
+
* 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
|
|
4064
5015
|
*/
|
|
4065
5016
|
amountBurned: Array<AssetAmount>;
|
|
4066
5017
|
/**
|
|
4067
5018
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4068
5019
|
*/
|
|
4069
5020
|
amountStaked: Array<AssetAmount>;
|
|
5021
|
+
/**
|
|
5022
|
+
* 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.
|
|
5023
|
+
*/
|
|
5024
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4070
5025
|
/**
|
|
4071
5026
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4072
5027
|
*/
|
|
@@ -4076,11 +5031,11 @@ type PChainTransaction = {
|
|
|
4076
5031
|
*/
|
|
4077
5032
|
endTimestamp?: number;
|
|
4078
5033
|
/**
|
|
4079
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5034
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4080
5035
|
*/
|
|
4081
5036
|
delegationFeePercent?: string;
|
|
4082
5037
|
/**
|
|
4083
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5038
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4084
5039
|
*/
|
|
4085
5040
|
nodeId?: string;
|
|
4086
5041
|
/**
|
|
@@ -4088,14 +5043,25 @@ type PChainTransaction = {
|
|
|
4088
5043
|
*/
|
|
4089
5044
|
subnetId?: string;
|
|
4090
5045
|
/**
|
|
4091
|
-
* Present for
|
|
5046
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5047
|
+
*/
|
|
5048
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5049
|
+
/**
|
|
5050
|
+
* 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
|
|
5051
|
+
*/
|
|
5052
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5053
|
+
/**
|
|
5054
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
5055
|
*/
|
|
4093
5056
|
estimatedReward?: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5059
|
+
*/
|
|
4094
5060
|
rewardTxHash?: string;
|
|
4095
5061
|
rewardAddresses?: Array<string>;
|
|
4096
5062
|
memo?: string;
|
|
4097
5063
|
/**
|
|
4098
|
-
*
|
|
5064
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4099
5065
|
*/
|
|
4100
5066
|
stakingTxHash?: string;
|
|
4101
5067
|
/**
|
|
@@ -4103,7 +5069,7 @@ type PChainTransaction = {
|
|
|
4103
5069
|
*/
|
|
4104
5070
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4105
5071
|
/**
|
|
4106
|
-
* Present for AddPermissionlessValidatorTx
|
|
5072
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4107
5073
|
*/
|
|
4108
5074
|
blsCredentials?: BlsCredentials;
|
|
4109
5075
|
};
|
|
@@ -4288,6 +5254,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4288
5254
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4289
5255
|
BASE_TX = "BaseTx",
|
|
4290
5256
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5257
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5258
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5259
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5260
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5261
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4291
5262
|
UNKNOWN = "UNKNOWN",
|
|
4292
5263
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4293
5264
|
OPERATION_TX = "OperationTx"
|
|
@@ -4322,11 +5293,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4322
5293
|
*
|
|
4323
5294
|
* 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.
|
|
4324
5295
|
*
|
|
5296
|
+
* 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.
|
|
5297
|
+
*
|
|
4325
5298
|
* 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.
|
|
4326
5299
|
* @returns any Successful response
|
|
4327
5300
|
* @throws ApiError
|
|
4328
5301
|
*/
|
|
4329
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5302
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4330
5303
|
/**
|
|
4331
5304
|
* A primary network blockchain id or alias.
|
|
4332
5305
|
*/
|
|
@@ -4339,6 +5312,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4339
5312
|
* 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.
|
|
4340
5313
|
*/
|
|
4341
5314
|
addresses?: string;
|
|
5315
|
+
l1ValidationId?: string;
|
|
4342
5316
|
/**
|
|
4343
5317
|
* Query param for filtering items based on transaction types.
|
|
4344
5318
|
*/
|
|
@@ -4614,61 +5588,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4614
5588
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4615
5589
|
}
|
|
4616
5590
|
|
|
4617
|
-
type RpcErrorDto = {
|
|
4618
|
-
code: number;
|
|
4619
|
-
message: string;
|
|
4620
|
-
data?: Record<string, any>;
|
|
4621
|
-
};
|
|
4622
|
-
|
|
4623
|
-
type RpcErrorResponseDto = {
|
|
4624
|
-
jsonrpc: string;
|
|
4625
|
-
id?: (string | number);
|
|
4626
|
-
error: RpcErrorDto;
|
|
4627
|
-
};
|
|
4628
|
-
|
|
4629
|
-
type RpcRequestBodyDto = {
|
|
4630
|
-
method: string;
|
|
4631
|
-
params?: Record<string, any>;
|
|
4632
|
-
id?: (string | number);
|
|
4633
|
-
jsonrpc?: string;
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
|
-
type RpcSuccessResponseDto = {
|
|
4637
|
-
jsonrpc: string;
|
|
4638
|
-
id?: (string | number);
|
|
4639
|
-
result: Record<string, any>;
|
|
4640
|
-
};
|
|
4641
|
-
|
|
4642
|
-
declare class RpcService {
|
|
4643
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4644
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4645
|
-
/**
|
|
4646
|
-
* Calls JSON-RPC method
|
|
4647
|
-
* Calls JSON-RPC method.
|
|
4648
|
-
* @returns any Successful response
|
|
4649
|
-
* @throws ApiError
|
|
4650
|
-
*/
|
|
4651
|
-
rpc({ chainId, requestBody, }: {
|
|
4652
|
-
/**
|
|
4653
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4654
|
-
*/
|
|
4655
|
-
chainId: string;
|
|
4656
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4657
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
5591
|
type SignatureAggregationResponse = {
|
|
4661
5592
|
signedMessage: string;
|
|
4662
5593
|
};
|
|
4663
5594
|
|
|
4664
5595
|
type SignatureAggregatorRequest = {
|
|
4665
|
-
|
|
4666
|
-
* Must be defined if justification is not defined
|
|
4667
|
-
*/
|
|
4668
|
-
message?: string;
|
|
4669
|
-
/**
|
|
4670
|
-
* Must be defined if message is not defined
|
|
4671
|
-
*/
|
|
5596
|
+
message: string;
|
|
4672
5597
|
justification?: string;
|
|
4673
5598
|
signingSubnetId?: string;
|
|
4674
5599
|
quorumPercentage?: number;
|
|
@@ -4683,9 +5608,29 @@ declare class SignatureAggregatorService {
|
|
|
4683
5608
|
* @returns SignatureAggregationResponse Successful response
|
|
4684
5609
|
* @throws ApiError
|
|
4685
5610
|
*/
|
|
4686
|
-
aggregateSignatures({ requestBody, }: {
|
|
5611
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5612
|
+
/**
|
|
5613
|
+
* Either mainnet or testnet/fuji.
|
|
5614
|
+
*/
|
|
5615
|
+
network: Network;
|
|
4687
5616
|
requestBody: SignatureAggregatorRequest;
|
|
4688
5617
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5618
|
+
/**
|
|
5619
|
+
* Get Aggregated Signatures
|
|
5620
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5621
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5622
|
+
* @throws ApiError
|
|
5623
|
+
*/
|
|
5624
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5625
|
+
/**
|
|
5626
|
+
* Either mainnet or testnet/fuji.
|
|
5627
|
+
*/
|
|
5628
|
+
network: Network;
|
|
5629
|
+
/**
|
|
5630
|
+
* A primary network (P or X chain) transaction hash.
|
|
5631
|
+
*/
|
|
5632
|
+
txHash: string;
|
|
5633
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4689
5634
|
}
|
|
4690
5635
|
|
|
4691
5636
|
type TeleporterDestinationTransaction = {
|
|
@@ -4826,8 +5771,10 @@ declare class TeleporterService {
|
|
|
4826
5771
|
readonly httpRequest: BaseHttpRequest;
|
|
4827
5772
|
constructor(httpRequest: BaseHttpRequest);
|
|
4828
5773
|
/**
|
|
4829
|
-
*
|
|
4830
|
-
* Gets a teleporter message by message ID.
|
|
5774
|
+
* @deprecated
|
|
5775
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5776
|
+
*
|
|
5777
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4831
5778
|
* @returns any Successful response
|
|
4832
5779
|
* @throws ApiError
|
|
4833
5780
|
*/
|
|
@@ -4838,8 +5785,10 @@ declare class TeleporterService {
|
|
|
4838
5785
|
messageId: string;
|
|
4839
5786
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4840
5787
|
/**
|
|
4841
|
-
*
|
|
4842
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5788
|
+
* @deprecated
|
|
5789
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5790
|
+
*
|
|
5791
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4843
5792
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4844
5793
|
* @throws ApiError
|
|
4845
5794
|
*/
|
|
@@ -4878,8 +5827,10 @@ declare class TeleporterService {
|
|
|
4878
5827
|
network?: Network;
|
|
4879
5828
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4880
5829
|
/**
|
|
4881
|
-
*
|
|
4882
|
-
* Lists teleporter messages by address. Ordered by
|
|
5830
|
+
* @deprecated
|
|
5831
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5832
|
+
*
|
|
5833
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4883
5834
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4884
5835
|
* @throws ApiError
|
|
4885
5836
|
*/
|
|
@@ -4921,44 +5872,54 @@ type AddressActivityMetadata = {
|
|
|
4921
5872
|
eventSignatures?: Array<string>;
|
|
4922
5873
|
};
|
|
4923
5874
|
|
|
4924
|
-
declare enum
|
|
4925
|
-
|
|
5875
|
+
declare enum PrimaryNetworkType {
|
|
5876
|
+
MAINNET = "mainnet",
|
|
5877
|
+
FUJI = "fuji"
|
|
4926
5878
|
}
|
|
4927
5879
|
|
|
4928
|
-
type
|
|
5880
|
+
type EVMAddressActivityRequest = {
|
|
5881
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
4929
5882
|
url: string;
|
|
4930
5883
|
chainId: string;
|
|
4931
|
-
|
|
4932
|
-
metadata: AddressActivityMetadata;
|
|
5884
|
+
network?: PrimaryNetworkType;
|
|
4933
5885
|
name?: string;
|
|
4934
5886
|
description?: string;
|
|
4935
5887
|
/**
|
|
4936
|
-
* Whether to include traces in the webhook payload.
|
|
5888
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4937
5889
|
*/
|
|
4938
5890
|
includeInternalTxs?: boolean;
|
|
4939
5891
|
/**
|
|
4940
5892
|
* Whether to include logs in the webhook payload.
|
|
4941
5893
|
*/
|
|
4942
5894
|
includeLogs?: boolean;
|
|
5895
|
+
metadata: AddressActivityMetadata;
|
|
4943
5896
|
};
|
|
5897
|
+
declare namespace EVMAddressActivityRequest {
|
|
5898
|
+
enum eventType {
|
|
5899
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5900
|
+
}
|
|
5901
|
+
}
|
|
4944
5902
|
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
addresses: Array<string>;
|
|
4951
|
-
totalAddresses: number;
|
|
4952
|
-
};
|
|
5903
|
+
declare enum EventType {
|
|
5904
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5905
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5906
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5907
|
+
}
|
|
4953
5908
|
|
|
4954
5909
|
declare enum WebhookStatusType {
|
|
4955
5910
|
ACTIVE = "active",
|
|
4956
5911
|
INACTIVE = "inactive"
|
|
4957
5912
|
}
|
|
4958
5913
|
|
|
4959
|
-
type
|
|
5914
|
+
type EVMAddressActivityResponse = {
|
|
4960
5915
|
id: string;
|
|
4961
5916
|
eventType: EventType;
|
|
5917
|
+
url: string;
|
|
5918
|
+
chainId: string;
|
|
5919
|
+
status: WebhookStatusType;
|
|
5920
|
+
createdAt: number;
|
|
5921
|
+
name: string;
|
|
5922
|
+
description: string;
|
|
4962
5923
|
metadata: AddressActivityMetadata;
|
|
4963
5924
|
/**
|
|
4964
5925
|
* Whether to include traces in the webhook payload.
|
|
@@ -4968,12 +5929,109 @@ type WebhookResponse = {
|
|
|
4968
5929
|
* Whether to include logs in the webhook payload.
|
|
4969
5930
|
*/
|
|
4970
5931
|
includeLogs?: boolean;
|
|
5932
|
+
};
|
|
5933
|
+
|
|
5934
|
+
type ListWebhookAddressesResponse = {
|
|
5935
|
+
/**
|
|
5936
|
+
* 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.
|
|
5937
|
+
*/
|
|
5938
|
+
nextPageToken?: string;
|
|
5939
|
+
addresses: Array<string>;
|
|
5940
|
+
totalAddresses: number;
|
|
5941
|
+
};
|
|
5942
|
+
|
|
5943
|
+
/**
|
|
5944
|
+
* The type of key for platform activity depending on the event type
|
|
5945
|
+
*/
|
|
5946
|
+
declare enum PlatformActivityKeyType {
|
|
5947
|
+
ADDRESSES = "addresses",
|
|
5948
|
+
NODE_ID = "nodeId",
|
|
5949
|
+
SUBNET_ID = "subnetId"
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5952
|
+
/**
|
|
5953
|
+
* Array of address activity sub-event types
|
|
5954
|
+
*/
|
|
5955
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5956
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5957
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5958
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5961
|
+
type PlatformActivitySubEvents = {
|
|
5962
|
+
/**
|
|
5963
|
+
* Array of validator activity sub-event types
|
|
5964
|
+
*/
|
|
5965
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5966
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5967
|
+
};
|
|
5968
|
+
|
|
5969
|
+
/**
|
|
5970
|
+
* Type of balance to monitor
|
|
5971
|
+
*/
|
|
5972
|
+
declare enum CommonBalanceType {
|
|
5973
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5974
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5975
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5976
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5977
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5978
|
+
PENDING_STAKED = "pendingStaked",
|
|
5979
|
+
UNLOCKED = "unlocked",
|
|
5980
|
+
LOCKED = "locked",
|
|
5981
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5982
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5983
|
+
}
|
|
5984
|
+
|
|
5985
|
+
type PlatformBalanceThresholdFilter = {
|
|
5986
|
+
balanceType: CommonBalanceType;
|
|
5987
|
+
/**
|
|
5988
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5989
|
+
*/
|
|
5990
|
+
balanceThreshold: string;
|
|
5991
|
+
};
|
|
5992
|
+
|
|
5993
|
+
type PlatformActivityMetadata = {
|
|
5994
|
+
keyType: PlatformActivityKeyType;
|
|
5995
|
+
/**
|
|
5996
|
+
* 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
|
|
5997
|
+
*/
|
|
5998
|
+
keys: Array<string>;
|
|
5999
|
+
/**
|
|
6000
|
+
* Sub-events to monitor
|
|
6001
|
+
*/
|
|
6002
|
+
subEvents?: PlatformActivitySubEvents;
|
|
6003
|
+
/**
|
|
6004
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6005
|
+
*/
|
|
6006
|
+
eventSignatures?: Array<string>;
|
|
6007
|
+
/**
|
|
6008
|
+
* Array of node IDs to filter the events
|
|
6009
|
+
*/
|
|
6010
|
+
nodeIds?: Array<string>;
|
|
6011
|
+
/**
|
|
6012
|
+
* Array of subnet IDs to filter the events
|
|
6013
|
+
*/
|
|
6014
|
+
subnetIds?: Array<string>;
|
|
6015
|
+
/**
|
|
6016
|
+
* Balance threshold filter
|
|
6017
|
+
*/
|
|
6018
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6019
|
+
/**
|
|
6020
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6021
|
+
*/
|
|
6022
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6023
|
+
};
|
|
6024
|
+
|
|
6025
|
+
type PlatformActivityResponse = {
|
|
6026
|
+
id: string;
|
|
6027
|
+
eventType: EventType;
|
|
4971
6028
|
url: string;
|
|
4972
6029
|
chainId: string;
|
|
4973
6030
|
status: WebhookStatusType;
|
|
4974
6031
|
createdAt: number;
|
|
4975
6032
|
name: string;
|
|
4976
6033
|
description: string;
|
|
6034
|
+
metadata: PlatformActivityMetadata;
|
|
4977
6035
|
};
|
|
4978
6036
|
|
|
4979
6037
|
type ListWebhooksResponse = {
|
|
@@ -4981,9 +6039,36 @@ type ListWebhooksResponse = {
|
|
|
4981
6039
|
* 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.
|
|
4982
6040
|
*/
|
|
4983
6041
|
nextPageToken?: string;
|
|
4984
|
-
webhooks: Array<
|
|
6042
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4985
6043
|
};
|
|
4986
6044
|
|
|
6045
|
+
type PlatformActivityRequest = {
|
|
6046
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6047
|
+
url: string;
|
|
6048
|
+
chainId: string;
|
|
6049
|
+
network?: PrimaryNetworkType;
|
|
6050
|
+
name?: string;
|
|
6051
|
+
description?: string;
|
|
6052
|
+
/**
|
|
6053
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6054
|
+
*/
|
|
6055
|
+
includeInternalTxs?: boolean;
|
|
6056
|
+
/**
|
|
6057
|
+
* Whether to include logs in the webhook payload.
|
|
6058
|
+
*/
|
|
6059
|
+
includeLogs?: boolean;
|
|
6060
|
+
/**
|
|
6061
|
+
* Metadata for platform activity
|
|
6062
|
+
*/
|
|
6063
|
+
metadata: PlatformActivityMetadata;
|
|
6064
|
+
};
|
|
6065
|
+
declare namespace PlatformActivityRequest {
|
|
6066
|
+
enum eventType {
|
|
6067
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6068
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6069
|
+
}
|
|
6070
|
+
}
|
|
6071
|
+
|
|
4987
6072
|
type SharedSecretsResponse = {
|
|
4988
6073
|
secret: string;
|
|
4989
6074
|
};
|
|
@@ -4993,6 +6078,9 @@ type UpdateWebhookRequest = {
|
|
|
4993
6078
|
description?: string;
|
|
4994
6079
|
url?: string;
|
|
4995
6080
|
status?: WebhookStatusType;
|
|
6081
|
+
/**
|
|
6082
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6083
|
+
*/
|
|
4996
6084
|
includeInternalTxs?: boolean;
|
|
4997
6085
|
includeLogs?: boolean;
|
|
4998
6086
|
};
|
|
@@ -5008,12 +6096,12 @@ declare class WebhooksService {
|
|
|
5008
6096
|
/**
|
|
5009
6097
|
* Create a webhook
|
|
5010
6098
|
* Create a new webhook.
|
|
5011
|
-
* @returns
|
|
6099
|
+
* @returns any Successful response
|
|
5012
6100
|
* @throws ApiError
|
|
5013
6101
|
*/
|
|
5014
6102
|
createWebhook({ requestBody, }: {
|
|
5015
|
-
requestBody:
|
|
5016
|
-
}): CancelablePromise<
|
|
6103
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6104
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5017
6105
|
/**
|
|
5018
6106
|
* List webhooks
|
|
5019
6107
|
* Lists webhooks for the user.
|
|
@@ -5037,7 +6125,7 @@ declare class WebhooksService {
|
|
|
5037
6125
|
/**
|
|
5038
6126
|
* Get a webhook by ID
|
|
5039
6127
|
* Retrieves a webhook by ID.
|
|
5040
|
-
* @returns
|
|
6128
|
+
* @returns any Successful response
|
|
5041
6129
|
* @throws ApiError
|
|
5042
6130
|
*/
|
|
5043
6131
|
getWebhook({ id, }: {
|
|
@@ -5045,11 +6133,11 @@ declare class WebhooksService {
|
|
|
5045
6133
|
* The webhook identifier.
|
|
5046
6134
|
*/
|
|
5047
6135
|
id: string;
|
|
5048
|
-
}): CancelablePromise<
|
|
6136
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5049
6137
|
/**
|
|
5050
6138
|
* Deactivate a webhook
|
|
5051
6139
|
* Deactivates a webhook by ID.
|
|
5052
|
-
* @returns
|
|
6140
|
+
* @returns any Successful response
|
|
5053
6141
|
* @throws ApiError
|
|
5054
6142
|
*/
|
|
5055
6143
|
deactivateWebhook({ id, }: {
|
|
@@ -5057,11 +6145,11 @@ declare class WebhooksService {
|
|
|
5057
6145
|
* The webhook identifier.
|
|
5058
6146
|
*/
|
|
5059
6147
|
id: string;
|
|
5060
|
-
}): CancelablePromise<
|
|
6148
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5061
6149
|
/**
|
|
5062
6150
|
* Update a webhook
|
|
5063
6151
|
* Updates an existing webhook.
|
|
5064
|
-
* @returns
|
|
6152
|
+
* @returns any Successful response
|
|
5065
6153
|
* @throws ApiError
|
|
5066
6154
|
*/
|
|
5067
6155
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5070,14 +6158,14 @@ declare class WebhooksService {
|
|
|
5070
6158
|
*/
|
|
5071
6159
|
id: string;
|
|
5072
6160
|
requestBody: UpdateWebhookRequest;
|
|
5073
|
-
}): CancelablePromise<
|
|
6161
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
5074
6162
|
/**
|
|
5075
|
-
* Generate a shared secret
|
|
5076
|
-
* Generates a new shared secret.
|
|
6163
|
+
* Generate or rotate a shared secret
|
|
6164
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5077
6165
|
* @returns SharedSecretsResponse Successful response
|
|
5078
6166
|
* @throws ApiError
|
|
5079
6167
|
*/
|
|
5080
|
-
|
|
6168
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5081
6169
|
/**
|
|
5082
6170
|
* Get a shared secret
|
|
5083
6171
|
* Get a previously generated shared secret.
|
|
@@ -5086,9 +6174,9 @@ declare class WebhooksService {
|
|
|
5086
6174
|
*/
|
|
5087
6175
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5088
6176
|
/**
|
|
5089
|
-
* Add addresses to webhook
|
|
5090
|
-
* Add addresses to webhook.
|
|
5091
|
-
* @returns
|
|
6177
|
+
* Add addresses to EVM activity webhook
|
|
6178
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6179
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5092
6180
|
* @throws ApiError
|
|
5093
6181
|
*/
|
|
5094
6182
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5097,11 +6185,11 @@ declare class WebhooksService {
|
|
|
5097
6185
|
*/
|
|
5098
6186
|
id: string;
|
|
5099
6187
|
requestBody: AddressesChangeRequest;
|
|
5100
|
-
}): CancelablePromise<
|
|
6188
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5101
6189
|
/**
|
|
5102
|
-
* Remove addresses from webhook
|
|
5103
|
-
* Remove addresses from webhook.
|
|
5104
|
-
* @returns
|
|
6190
|
+
* Remove addresses from EVM activity webhook
|
|
6191
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6192
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5105
6193
|
* @throws ApiError
|
|
5106
6194
|
*/
|
|
5107
6195
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5110,10 +6198,10 @@ declare class WebhooksService {
|
|
|
5110
6198
|
*/
|
|
5111
6199
|
id: string;
|
|
5112
6200
|
requestBody: AddressesChangeRequest;
|
|
5113
|
-
}): CancelablePromise<
|
|
6201
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5114
6202
|
/**
|
|
5115
|
-
* List adresses by
|
|
5116
|
-
* List adresses by webhook.
|
|
6203
|
+
* List adresses by EVM activity webhooks
|
|
6204
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5117
6205
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5118
6206
|
* @throws ApiError
|
|
5119
6207
|
*/
|
|
@@ -5143,7 +6231,9 @@ declare class Glacier {
|
|
|
5143
6231
|
readonly evmContracts: EvmContractsService;
|
|
5144
6232
|
readonly evmTransactions: EvmTransactionsService;
|
|
5145
6233
|
readonly healthCheck: HealthCheckService;
|
|
6234
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5146
6235
|
readonly nfTs: NfTsService;
|
|
6236
|
+
readonly notifications: NotificationsService;
|
|
5147
6237
|
readonly operations: OperationsService;
|
|
5148
6238
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5149
6239
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5152,7 +6242,6 @@ declare class Glacier {
|
|
|
5152
6242
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5153
6243
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5154
6244
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5155
|
-
readonly rpc: RpcService;
|
|
5156
6245
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5157
6246
|
readonly teleporter: TeleporterService;
|
|
5158
6247
|
readonly webhooks: WebhooksService;
|
|
@@ -5177,6 +6266,17 @@ declare class ApiError extends Error {
|
|
|
5177
6266
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5178
6267
|
}
|
|
5179
6268
|
|
|
6269
|
+
type AccessListData = {
|
|
6270
|
+
/**
|
|
6271
|
+
* Access Address
|
|
6272
|
+
*/
|
|
6273
|
+
accessAddresses: string;
|
|
6274
|
+
/**
|
|
6275
|
+
* Storage keys
|
|
6276
|
+
*/
|
|
6277
|
+
storageKeys: Array<string>;
|
|
6278
|
+
};
|
|
6279
|
+
|
|
5180
6280
|
type BadGateway = {
|
|
5181
6281
|
/**
|
|
5182
6282
|
* The error message describing the reason for the exception
|
|
@@ -5211,6 +6311,76 @@ type DataListChainsResponse = {
|
|
|
5211
6311
|
chains: Array<ChainInfo>;
|
|
5212
6312
|
};
|
|
5213
6313
|
|
|
6314
|
+
type ERCToken = {
|
|
6315
|
+
/**
|
|
6316
|
+
* Token contract address
|
|
6317
|
+
*/
|
|
6318
|
+
address: string;
|
|
6319
|
+
/**
|
|
6320
|
+
* Token name
|
|
6321
|
+
*/
|
|
6322
|
+
name: string;
|
|
6323
|
+
/**
|
|
6324
|
+
* Token symbol
|
|
6325
|
+
*/
|
|
6326
|
+
symbol: string;
|
|
6327
|
+
/**
|
|
6328
|
+
* Token decimals
|
|
6329
|
+
*/
|
|
6330
|
+
decimals: number;
|
|
6331
|
+
/**
|
|
6332
|
+
* Value including decimals
|
|
6333
|
+
*/
|
|
6334
|
+
valueWithDecimals: string;
|
|
6335
|
+
};
|
|
6336
|
+
|
|
6337
|
+
type ERCTransfer = {
|
|
6338
|
+
/**
|
|
6339
|
+
* Transaction hash
|
|
6340
|
+
*/
|
|
6341
|
+
transactionHash: string;
|
|
6342
|
+
/**
|
|
6343
|
+
* Transfer type
|
|
6344
|
+
*/
|
|
6345
|
+
type: string;
|
|
6346
|
+
/**
|
|
6347
|
+
* Sender address
|
|
6348
|
+
*/
|
|
6349
|
+
from: string;
|
|
6350
|
+
/**
|
|
6351
|
+
* Recipient address
|
|
6352
|
+
*/
|
|
6353
|
+
to: string;
|
|
6354
|
+
/**
|
|
6355
|
+
* Amount transferred
|
|
6356
|
+
*/
|
|
6357
|
+
value: string;
|
|
6358
|
+
/**
|
|
6359
|
+
* Token Id
|
|
6360
|
+
*/
|
|
6361
|
+
tokenId?: string;
|
|
6362
|
+
/**
|
|
6363
|
+
* Block timestamp
|
|
6364
|
+
*/
|
|
6365
|
+
blockTimestamp: number;
|
|
6366
|
+
/**
|
|
6367
|
+
* Log index
|
|
6368
|
+
*/
|
|
6369
|
+
logIndex: number;
|
|
6370
|
+
/**
|
|
6371
|
+
* erc20 Token details
|
|
6372
|
+
*/
|
|
6373
|
+
erc20Token?: ERCToken;
|
|
6374
|
+
/**
|
|
6375
|
+
* erc721 Token details
|
|
6376
|
+
*/
|
|
6377
|
+
erc721Token?: ERCToken;
|
|
6378
|
+
/**
|
|
6379
|
+
* erc1155 Token details
|
|
6380
|
+
*/
|
|
6381
|
+
erc1155Token?: ERCToken;
|
|
6382
|
+
};
|
|
6383
|
+
|
|
5214
6384
|
type Forbidden = {
|
|
5215
6385
|
/**
|
|
5216
6386
|
* The error message describing the reason for the exception
|
|
@@ -5241,6 +6411,64 @@ type InternalServerError = {
|
|
|
5241
6411
|
error: string;
|
|
5242
6412
|
};
|
|
5243
6413
|
|
|
6414
|
+
type Log = {
|
|
6415
|
+
/**
|
|
6416
|
+
* Contract address
|
|
6417
|
+
*/
|
|
6418
|
+
address: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* First topic
|
|
6421
|
+
*/
|
|
6422
|
+
topic0: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Second topic (optional)
|
|
6425
|
+
*/
|
|
6426
|
+
topic1?: string;
|
|
6427
|
+
/**
|
|
6428
|
+
* Third topic (optional)
|
|
6429
|
+
*/
|
|
6430
|
+
topic2?: string;
|
|
6431
|
+
/**
|
|
6432
|
+
* Fourth topic (optional)
|
|
6433
|
+
*/
|
|
6434
|
+
topic3?: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Event data
|
|
6437
|
+
*/
|
|
6438
|
+
data: string;
|
|
6439
|
+
/**
|
|
6440
|
+
* Transaction index
|
|
6441
|
+
*/
|
|
6442
|
+
transactionIndex: number;
|
|
6443
|
+
/**
|
|
6444
|
+
* Log index
|
|
6445
|
+
*/
|
|
6446
|
+
logIndex: number;
|
|
6447
|
+
/**
|
|
6448
|
+
* Indicates if the log was removed
|
|
6449
|
+
*/
|
|
6450
|
+
removed: boolean;
|
|
6451
|
+
};
|
|
6452
|
+
|
|
6453
|
+
type NetworkTokenInfo = {
|
|
6454
|
+
/**
|
|
6455
|
+
* Token name
|
|
6456
|
+
*/
|
|
6457
|
+
tokenName?: string;
|
|
6458
|
+
/**
|
|
6459
|
+
* Token symbol
|
|
6460
|
+
*/
|
|
6461
|
+
tokenSymbol?: string;
|
|
6462
|
+
/**
|
|
6463
|
+
* Token decimals
|
|
6464
|
+
*/
|
|
6465
|
+
tokenDecimals?: number;
|
|
6466
|
+
/**
|
|
6467
|
+
* Value including decimals
|
|
6468
|
+
*/
|
|
6469
|
+
valueWithDecimals?: string;
|
|
6470
|
+
};
|
|
6471
|
+
|
|
5244
6472
|
type NextPageToken = {
|
|
5245
6473
|
/**
|
|
5246
6474
|
* 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.
|
|
@@ -5293,6 +6521,132 @@ type TooManyRequests = {
|
|
|
5293
6521
|
error: string;
|
|
5294
6522
|
};
|
|
5295
6523
|
|
|
6524
|
+
type Transaction = {
|
|
6525
|
+
/**
|
|
6526
|
+
* Block hash of the transaction
|
|
6527
|
+
*/
|
|
6528
|
+
blockHash: string;
|
|
6529
|
+
/**
|
|
6530
|
+
* Block number of the transaction
|
|
6531
|
+
*/
|
|
6532
|
+
blockNumber: string;
|
|
6533
|
+
/**
|
|
6534
|
+
* Sender address
|
|
6535
|
+
*/
|
|
6536
|
+
from: string;
|
|
6537
|
+
/**
|
|
6538
|
+
* Gas limit for the transaction
|
|
6539
|
+
*/
|
|
6540
|
+
gas: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* Gas price used
|
|
6543
|
+
*/
|
|
6544
|
+
gasPrice: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Maximum fee per gas
|
|
6547
|
+
*/
|
|
6548
|
+
maxFeePerGas: string;
|
|
6549
|
+
/**
|
|
6550
|
+
* Maximum priority fee per gas
|
|
6551
|
+
*/
|
|
6552
|
+
maxPriorityFeePerGas: string;
|
|
6553
|
+
/**
|
|
6554
|
+
* Transaction hash
|
|
6555
|
+
*/
|
|
6556
|
+
txHash: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Transaction status
|
|
6559
|
+
*/
|
|
6560
|
+
txStatus: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* Input data
|
|
6563
|
+
*/
|
|
6564
|
+
input: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Nonce value
|
|
6567
|
+
*/
|
|
6568
|
+
nonce: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Recipient address
|
|
6571
|
+
*/
|
|
6572
|
+
to: string;
|
|
6573
|
+
/**
|
|
6574
|
+
* Transaction index
|
|
6575
|
+
*/
|
|
6576
|
+
transactionIndex: number;
|
|
6577
|
+
/**
|
|
6578
|
+
* Value transferred in the transaction
|
|
6579
|
+
*/
|
|
6580
|
+
value: string;
|
|
6581
|
+
/**
|
|
6582
|
+
* Transaction type
|
|
6583
|
+
*/
|
|
6584
|
+
type: number;
|
|
6585
|
+
/**
|
|
6586
|
+
* Chain ID of the network
|
|
6587
|
+
*/
|
|
6588
|
+
chainId: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Cumulative gas used
|
|
6591
|
+
*/
|
|
6592
|
+
receiptCumulativeGasUsed: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Gas used
|
|
6595
|
+
*/
|
|
6596
|
+
receiptGasUsed: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Effective gas price
|
|
6599
|
+
*/
|
|
6600
|
+
receiptEffectiveGasPrice: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Receipt root
|
|
6603
|
+
*/
|
|
6604
|
+
receiptRoot: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Block timestamp
|
|
6607
|
+
*/
|
|
6608
|
+
blockTimestamp: number;
|
|
6609
|
+
/**
|
|
6610
|
+
* Contract address (optional)
|
|
6611
|
+
*/
|
|
6612
|
+
contractAddress?: string;
|
|
6613
|
+
/**
|
|
6614
|
+
* ERC20 transfers
|
|
6615
|
+
*/
|
|
6616
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6617
|
+
/**
|
|
6618
|
+
* ERC721 transfers
|
|
6619
|
+
*/
|
|
6620
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6621
|
+
/**
|
|
6622
|
+
* ERC1155 transfers
|
|
6623
|
+
*/
|
|
6624
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6625
|
+
/**
|
|
6626
|
+
* Internal transactions (optional)
|
|
6627
|
+
*/
|
|
6628
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6629
|
+
/**
|
|
6630
|
+
* Access list (optional)
|
|
6631
|
+
*/
|
|
6632
|
+
accessList?: Array<AccessListData>;
|
|
6633
|
+
/**
|
|
6634
|
+
* Network token info (optional)
|
|
6635
|
+
*/
|
|
6636
|
+
networkToken?: NetworkTokenInfo;
|
|
6637
|
+
};
|
|
6638
|
+
|
|
6639
|
+
type TransactionEvent = {
|
|
6640
|
+
/**
|
|
6641
|
+
* Transaction details
|
|
6642
|
+
*/
|
|
6643
|
+
transaction: Transaction;
|
|
6644
|
+
/**
|
|
6645
|
+
* Array of log events
|
|
6646
|
+
*/
|
|
6647
|
+
logs?: Array<Log>;
|
|
6648
|
+
};
|
|
6649
|
+
|
|
5296
6650
|
type Unauthorized = {
|
|
5297
6651
|
/**
|
|
5298
6652
|
* The error message describing the reason for the exception
|
|
@@ -5308,4 +6662,43 @@ type Unauthorized = {
|
|
|
5308
6662
|
error: string;
|
|
5309
6663
|
};
|
|
5310
6664
|
|
|
5311
|
-
|
|
6665
|
+
type WebhookAddressActivityResponse = {
|
|
6666
|
+
/**
|
|
6667
|
+
* Webhook ID
|
|
6668
|
+
*/
|
|
6669
|
+
webhookId: string;
|
|
6670
|
+
/**
|
|
6671
|
+
* Event type
|
|
6672
|
+
*/
|
|
6673
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6674
|
+
/**
|
|
6675
|
+
* Message ID
|
|
6676
|
+
*/
|
|
6677
|
+
messageId: string;
|
|
6678
|
+
/**
|
|
6679
|
+
* Event details
|
|
6680
|
+
*/
|
|
6681
|
+
event: TransactionEvent;
|
|
6682
|
+
};
|
|
6683
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6684
|
+
/**
|
|
6685
|
+
* Event type
|
|
6686
|
+
*/
|
|
6687
|
+
enum eventType {
|
|
6688
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
|
|
6692
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6693
|
+
constructor(config: OpenAPIConfig);
|
|
6694
|
+
/**
|
|
6695
|
+
* Request method
|
|
6696
|
+
* @param options The request options from the service
|
|
6697
|
+
* @returns CancelablePromise<T>
|
|
6698
|
+
* @throws ApiError
|
|
6699
|
+
*/
|
|
6700
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
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 };
|
|
6704
|
+
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 };
|