@avalabs/glacier-sdk 3.1.0-canary.b1108b2.0 → 3.1.0-canary.b7d64d8.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 +1961 -388
- package/esm/generated/Glacier.d.ts +6 -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 +9 -1
- package/esm/generated/models/BlockchainId.d.ts +2 -0
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +3 -1
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +7 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/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 +5 -5
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
- 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 +13 -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 +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +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 +2 -1
- 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 +39 -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 +2 -2
- 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/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
- 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 +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- 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 +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
- 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/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- 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/XChainId.d.ts +1 -0
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +166 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +9 -9
- package/esm/generated/services/EvmBlocksService.d.ts +23 -2
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +84 -6
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +47 -14
- 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/NfTsService.d.ts +3 -3
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +21 -5
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +64 -13
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +12 -9
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +3 -3
- package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +17 -11
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +57 -9
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- 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,145 @@ 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
|
+
|
|
173
|
+
type RpcUsageMetricsValueAggregated = {
|
|
174
|
+
/**
|
|
175
|
+
* The total number of requests
|
|
176
|
+
*/
|
|
177
|
+
totalRequests: number;
|
|
178
|
+
/**
|
|
179
|
+
* The number of API credits used
|
|
180
|
+
*/
|
|
181
|
+
apiCreditsUsed: number;
|
|
182
|
+
/**
|
|
183
|
+
* The number of requests per second
|
|
184
|
+
*/
|
|
185
|
+
requestsPerSecond: number;
|
|
186
|
+
/**
|
|
187
|
+
* The success rate percentage
|
|
188
|
+
*/
|
|
189
|
+
successRatePercent: number;
|
|
190
|
+
/**
|
|
191
|
+
* The median response time in milliseconds
|
|
192
|
+
*/
|
|
193
|
+
medianResponseTimeMsecs: number;
|
|
194
|
+
/**
|
|
195
|
+
* The number of invalid requests
|
|
196
|
+
*/
|
|
197
|
+
invalidRequests: number;
|
|
198
|
+
/**
|
|
199
|
+
* The number of API credits wasted on invalid requests
|
|
200
|
+
*/
|
|
201
|
+
apiCreditsWasted: number;
|
|
202
|
+
/**
|
|
203
|
+
* Column name used for data aggregation
|
|
204
|
+
*/
|
|
205
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
206
|
+
/**
|
|
207
|
+
* The value of the column used for data aggregation
|
|
208
|
+
*/
|
|
209
|
+
groupValue?: (string | number);
|
|
210
|
+
};
|
|
211
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
212
|
+
/**
|
|
213
|
+
* Column name used for data aggregation
|
|
214
|
+
*/
|
|
215
|
+
enum groupedBy {
|
|
216
|
+
RPC_METHOD = "rpcMethod",
|
|
217
|
+
RESPONSE_CODE = "responseCode",
|
|
218
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
223
|
+
NONE = "None"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
type RpcMetrics = {
|
|
228
|
+
/**
|
|
229
|
+
* The timestamp of the metrics value
|
|
230
|
+
*/
|
|
231
|
+
timestamp: number;
|
|
232
|
+
/**
|
|
233
|
+
* The metrics values for the timestamp
|
|
234
|
+
*/
|
|
235
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
239
|
+
/**
|
|
240
|
+
* Duration in which the metrics value is aggregated
|
|
241
|
+
*/
|
|
242
|
+
aggregateDuration: string;
|
|
243
|
+
/**
|
|
244
|
+
* Metrics values
|
|
245
|
+
*/
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
276
|
+
/**
|
|
277
|
+
* Duration in which the metrics value is aggregated
|
|
278
|
+
*/
|
|
279
|
+
aggregateDuration: string;
|
|
280
|
+
/**
|
|
281
|
+
* Metrics values
|
|
282
|
+
*/
|
|
283
|
+
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
151
290
|
declare enum TimeIntervalGranularityExtended {
|
|
152
291
|
MINUTE = "minute",
|
|
153
292
|
HOURLY = "hourly",
|
|
@@ -251,17 +390,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
390
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
391
|
* @throws ApiError
|
|
253
392
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
393
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
394
|
/**
|
|
256
395
|
* Organization ID to fetch usage metrics for
|
|
257
396
|
*/
|
|
258
397
|
orgId?: string;
|
|
259
398
|
/**
|
|
260
|
-
*
|
|
399
|
+
* 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.
|
|
261
400
|
*/
|
|
262
401
|
startTimestamp?: number;
|
|
263
402
|
/**
|
|
264
|
-
*
|
|
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.
|
|
265
404
|
*/
|
|
266
405
|
endTimestamp?: number;
|
|
267
406
|
/**
|
|
@@ -273,25 +412,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
412
|
*/
|
|
274
413
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
414
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
415
|
+
* Filter data by chain ID.
|
|
281
416
|
*/
|
|
282
|
-
|
|
417
|
+
chainId?: string;
|
|
283
418
|
/**
|
|
284
419
|
* Filter data by response status code.
|
|
285
420
|
*/
|
|
286
421
|
responseCode?: string;
|
|
287
422
|
/**
|
|
288
|
-
* Filter data by
|
|
423
|
+
* Filter data by request type.
|
|
289
424
|
*/
|
|
290
|
-
|
|
425
|
+
requestType?: 'data' | 'rpc';
|
|
291
426
|
/**
|
|
292
427
|
* Filter data by API key ID.
|
|
293
428
|
*/
|
|
294
429
|
apiKeyId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Filter data by request path.
|
|
432
|
+
*/
|
|
433
|
+
requestPath?: string;
|
|
295
434
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
435
|
/**
|
|
297
436
|
* Get logs for requests made by client
|
|
@@ -299,39 +438,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
438
|
* @returns LogsResponseDTO Successful response
|
|
300
439
|
* @throws ApiError
|
|
301
440
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
441
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
442
|
/**
|
|
304
443
|
* Organization ID to fetch usage metrics for
|
|
305
444
|
*/
|
|
306
445
|
orgId?: string;
|
|
307
446
|
/**
|
|
308
|
-
*
|
|
447
|
+
* 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.
|
|
309
448
|
*/
|
|
310
449
|
startTimestamp?: number;
|
|
311
450
|
/**
|
|
312
|
-
*
|
|
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.
|
|
313
452
|
*/
|
|
314
453
|
endTimestamp?: number;
|
|
315
454
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
455
|
+
* Filter data by chain ID.
|
|
321
456
|
*/
|
|
322
|
-
|
|
457
|
+
chainId?: string;
|
|
323
458
|
/**
|
|
324
459
|
* Filter data by response status code.
|
|
325
460
|
*/
|
|
326
461
|
responseCode?: string;
|
|
327
462
|
/**
|
|
328
|
-
* Filter data by
|
|
463
|
+
* Filter data by request type.
|
|
329
464
|
*/
|
|
330
|
-
|
|
465
|
+
requestType?: 'data' | 'rpc';
|
|
331
466
|
/**
|
|
332
467
|
* Filter data by API key ID.
|
|
333
468
|
*/
|
|
334
469
|
apiKeyId?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Filter data by request path.
|
|
472
|
+
*/
|
|
473
|
+
requestPath?: string;
|
|
335
474
|
/**
|
|
336
475
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
476
|
*/
|
|
@@ -341,6 +480,143 @@ declare class DataApiUsageMetricsService {
|
|
|
341
480
|
*/
|
|
342
481
|
pageSize?: number;
|
|
343
482
|
}): CancelablePromise<LogsResponseDTO>;
|
|
483
|
+
/**
|
|
484
|
+
* Get usage metrics for the Subnet RPC
|
|
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
|
|
487
|
+
* @throws ApiError
|
|
488
|
+
*/
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
490
|
+
/**
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
493
|
+
*/
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
495
|
+
/**
|
|
496
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
497
|
+
*/
|
|
498
|
+
startTimestamp?: number;
|
|
499
|
+
/**
|
|
500
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
501
|
+
*/
|
|
502
|
+
endTimestamp?: number;
|
|
503
|
+
/**
|
|
504
|
+
* Query param for the criterion used for grouping metrics
|
|
505
|
+
*/
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
507
|
+
/**
|
|
508
|
+
* Filter data by chain ID.
|
|
509
|
+
*/
|
|
510
|
+
chainId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Filter data by response status code.
|
|
513
|
+
*/
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
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;
|
|
554
|
+
/**
|
|
555
|
+
* Filter data by response status code.
|
|
556
|
+
*/
|
|
557
|
+
responseCode?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Filter data by RPC method.
|
|
560
|
+
*/
|
|
561
|
+
rpcMethod?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Filter data by Rl Bypass API Token.
|
|
564
|
+
*/
|
|
565
|
+
rlBypassApiToken?: string;
|
|
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>;
|
|
344
620
|
}
|
|
345
621
|
|
|
346
622
|
declare class DefaultService {
|
|
@@ -539,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
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.
|
|
540
816
|
*/
|
|
541
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
822
|
/**
|
|
543
823
|
* The list of ERC-1155 token balances for the address.
|
|
544
824
|
*/
|
|
@@ -583,11 +863,22 @@ type Erc20TokenBalance = {
|
|
|
583
863
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
864
|
*/
|
|
585
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;
|
|
586
870
|
};
|
|
587
871
|
declare namespace Erc20TokenBalance {
|
|
588
872
|
enum ercType {
|
|
589
873
|
ERC_20 = "ERC-20"
|
|
590
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
|
+
}
|
|
591
882
|
}
|
|
592
883
|
|
|
593
884
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
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.
|
|
596
887
|
*/
|
|
597
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
893
|
/**
|
|
599
894
|
* The list of ERC-20 token balances for the address.
|
|
600
895
|
*/
|
|
@@ -606,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
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.
|
|
607
902
|
*/
|
|
608
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
908
|
/**
|
|
610
909
|
* The list of ERC-721 token balances for the address.
|
|
611
910
|
*/
|
|
@@ -625,7 +924,7 @@ declare class EvmBalancesService {
|
|
|
625
924
|
*/
|
|
626
925
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
627
926
|
/**
|
|
628
|
-
* A supported evm chain id
|
|
927
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
629
928
|
*/
|
|
630
929
|
chainId: string;
|
|
631
930
|
/**
|
|
@@ -653,7 +952,7 @@ declare class EvmBalancesService {
|
|
|
653
952
|
*/
|
|
654
953
|
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
655
954
|
/**
|
|
656
|
-
* A supported evm chain id
|
|
955
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
657
956
|
*/
|
|
658
957
|
chainId: string;
|
|
659
958
|
/**
|
|
@@ -669,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
669
968
|
*/
|
|
670
969
|
pageToken?: string;
|
|
671
970
|
/**
|
|
672
|
-
* 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.
|
|
673
972
|
*/
|
|
674
973
|
pageSize?: number;
|
|
675
974
|
/**
|
|
@@ -695,7 +994,7 @@ declare class EvmBalancesService {
|
|
|
695
994
|
*/
|
|
696
995
|
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
697
996
|
/**
|
|
698
|
-
* A supported evm chain id
|
|
997
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
699
998
|
*/
|
|
700
999
|
chainId: string;
|
|
701
1000
|
/**
|
|
@@ -707,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
707
1006
|
*/
|
|
708
1007
|
pageToken?: string;
|
|
709
1008
|
/**
|
|
710
|
-
* 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.
|
|
711
1010
|
*/
|
|
712
1011
|
pageSize?: number;
|
|
713
1012
|
/**
|
|
@@ -727,7 +1026,7 @@ declare class EvmBalancesService {
|
|
|
727
1026
|
*/
|
|
728
1027
|
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
729
1028
|
/**
|
|
730
|
-
* A supported evm chain id
|
|
1029
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
731
1030
|
*/
|
|
732
1031
|
chainId: string;
|
|
733
1032
|
/**
|
|
@@ -743,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
743
1042
|
*/
|
|
744
1043
|
pageToken?: string;
|
|
745
1044
|
/**
|
|
746
|
-
* 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.
|
|
747
1046
|
*/
|
|
748
1047
|
pageSize?: number;
|
|
749
1048
|
/**
|
|
@@ -761,7 +1060,7 @@ declare class EvmBalancesService {
|
|
|
761
1060
|
*/
|
|
762
1061
|
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
763
1062
|
/**
|
|
764
|
-
* A supported evm chain id
|
|
1063
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
765
1064
|
*/
|
|
766
1065
|
chainId: string;
|
|
767
1066
|
/**
|
|
@@ -773,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
773
1072
|
*/
|
|
774
1073
|
pageToken?: string;
|
|
775
1074
|
/**
|
|
776
|
-
* 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.
|
|
777
1076
|
*/
|
|
778
1077
|
pageSize?: number;
|
|
779
1078
|
/**
|
|
@@ -784,6 +1083,10 @@ declare class EvmBalancesService {
|
|
|
784
1083
|
}
|
|
785
1084
|
|
|
786
1085
|
type GetEvmBlockResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* The EVM chain ID on which the block was created.
|
|
1088
|
+
*/
|
|
1089
|
+
chainId: string;
|
|
787
1090
|
/**
|
|
788
1091
|
* The block number on the chain.
|
|
789
1092
|
*/
|
|
@@ -828,6 +1131,10 @@ type GetEvmBlockResponse = {
|
|
|
828
1131
|
};
|
|
829
1132
|
|
|
830
1133
|
type EvmBlock = {
|
|
1134
|
+
/**
|
|
1135
|
+
* The EVM chain ID on which the block was created.
|
|
1136
|
+
*/
|
|
1137
|
+
chainId: string;
|
|
831
1138
|
/**
|
|
832
1139
|
* The block number on the chain.
|
|
833
1140
|
*/
|
|
@@ -882,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
882
1189
|
declare class EvmBlocksService {
|
|
883
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
884
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>;
|
|
885
1212
|
/**
|
|
886
1213
|
* List latest blocks
|
|
887
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -890,7 +1217,7 @@ declare class EvmBlocksService {
|
|
|
890
1217
|
*/
|
|
891
1218
|
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
892
1219
|
/**
|
|
893
|
-
* A supported evm chain id
|
|
1220
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
894
1221
|
*/
|
|
895
1222
|
chainId: string;
|
|
896
1223
|
/**
|
|
@@ -910,7 +1237,7 @@ declare class EvmBlocksService {
|
|
|
910
1237
|
*/
|
|
911
1238
|
getBlock({ chainId, blockId, }: {
|
|
912
1239
|
/**
|
|
913
|
-
* A supported evm chain id
|
|
1240
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
914
1241
|
*/
|
|
915
1242
|
chainId: string;
|
|
916
1243
|
/**
|
|
@@ -1004,29 +1331,153 @@ type ChainInfo = {
|
|
|
1004
1331
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1332
|
};
|
|
1006
1333
|
|
|
1334
|
+
type ListAddressChainsResponse = {
|
|
1335
|
+
indexedChains?: Array<ChainInfo>;
|
|
1336
|
+
unindexedChains?: Array<string>;
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1007
1339
|
type ListChainsResponse = {
|
|
1008
1340
|
chains: Array<ChainInfo>;
|
|
1009
1341
|
};
|
|
1010
1342
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
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"
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
type Method = {
|
|
1353
|
+
callType: TransactionMethodType;
|
|
1354
|
+
/**
|
|
1355
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1356
|
+
*/
|
|
1357
|
+
methodHash: string;
|
|
1358
|
+
/**
|
|
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'.
|
|
1360
|
+
*/
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
type RichAddress = {
|
|
1365
|
+
/**
|
|
1366
|
+
* The contract name.
|
|
1367
|
+
*/
|
|
1368
|
+
name?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* The contract symbol.
|
|
1371
|
+
*/
|
|
1372
|
+
symbol?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1375
|
+
*/
|
|
1376
|
+
decimals?: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* The logo uri for the address.
|
|
1379
|
+
*/
|
|
1380
|
+
logoUri?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1383
|
+
*/
|
|
1384
|
+
address: string;
|
|
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"
|
|
1014
1453
|
}
|
|
1015
1454
|
|
|
1016
1455
|
declare class EvmChainsService {
|
|
1017
1456
|
readonly httpRequest: BaseHttpRequest;
|
|
1018
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>;
|
|
1019
1470
|
/**
|
|
1020
1471
|
* List chains
|
|
1021
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1022
1473
|
* @returns ListChainsResponse Successful response
|
|
1023
1474
|
* @throws ApiError
|
|
1024
1475
|
*/
|
|
1025
1476
|
supportedChains({ network, feature, }: {
|
|
1026
1477
|
/**
|
|
1027
|
-
* mainnet or testnet.
|
|
1478
|
+
* Either mainnet or testnet/fuji.
|
|
1028
1479
|
*/
|
|
1029
|
-
network?:
|
|
1480
|
+
network?: Network;
|
|
1030
1481
|
/**
|
|
1031
1482
|
* Filter by feature.
|
|
1032
1483
|
*/
|
|
@@ -1034,16 +1485,78 @@ declare class EvmChainsService {
|
|
|
1034
1485
|
}): CancelablePromise<ListChainsResponse>;
|
|
1035
1486
|
/**
|
|
1036
1487
|
* Get chain information
|
|
1037
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1038
1489
|
* @returns GetChainResponse Successful response
|
|
1039
1490
|
* @throws ApiError
|
|
1040
1491
|
*/
|
|
1041
1492
|
getChainInfo({ chainId, }: {
|
|
1042
1493
|
/**
|
|
1043
|
-
* A supported evm chain id
|
|
1494
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
1495
|
*/
|
|
1045
1496
|
chainId: string;
|
|
1046
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>;
|
|
1047
1560
|
}
|
|
1048
1561
|
|
|
1049
1562
|
type ImageAsset = {
|
|
@@ -1215,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1215
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1216
1729
|
*/
|
|
1217
1730
|
address: string;
|
|
1218
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1219
1732
|
ercType: Erc1155Contract.ercType;
|
|
1220
1733
|
/**
|
|
1221
1734
|
* The contract symbol.
|
|
@@ -1246,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1246
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1247
1760
|
*/
|
|
1248
1761
|
address: string;
|
|
1249
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1250
1763
|
ercType: Erc20Contract.ercType;
|
|
1251
1764
|
/**
|
|
1252
1765
|
* The contract symbol.
|
|
@@ -1281,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1281
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1282
1795
|
*/
|
|
1283
1796
|
address: string;
|
|
1284
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1285
1798
|
ercType: Erc721Contract.ercType;
|
|
1286
1799
|
/**
|
|
1287
1800
|
* The contract symbol.
|
|
@@ -1311,7 +1824,7 @@ type UnknownContract = {
|
|
|
1311
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1312
1825
|
*/
|
|
1313
1826
|
address: string;
|
|
1314
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1315
1828
|
ercType: UnknownContract.ercType;
|
|
1316
1829
|
};
|
|
1317
1830
|
declare namespace UnknownContract {
|
|
@@ -1335,7 +1848,7 @@ declare class EvmContractsService {
|
|
|
1335
1848
|
*/
|
|
1336
1849
|
getContractMetadata({ chainId, address, }: {
|
|
1337
1850
|
/**
|
|
1338
|
-
* A supported evm chain id
|
|
1851
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1339
1852
|
*/
|
|
1340
1853
|
chainId: string;
|
|
1341
1854
|
/**
|
|
@@ -1351,7 +1864,7 @@ declare class EvmContractsService {
|
|
|
1351
1864
|
*/
|
|
1352
1865
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1353
1866
|
/**
|
|
1354
|
-
* A supported evm chain id
|
|
1867
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1355
1868
|
*/
|
|
1356
1869
|
chainId: string;
|
|
1357
1870
|
/**
|
|
@@ -1378,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1378
1891
|
}
|
|
1379
1892
|
}
|
|
1380
1893
|
|
|
1381
|
-
type RichAddress = {
|
|
1382
|
-
/**
|
|
1383
|
-
* The contract name.
|
|
1384
|
-
*/
|
|
1385
|
-
name?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* The contract symbol.
|
|
1388
|
-
*/
|
|
1389
|
-
symbol?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1392
|
-
*/
|
|
1393
|
-
decimals?: number;
|
|
1394
|
-
/**
|
|
1395
|
-
* The logo uri for the address.
|
|
1396
|
-
*/
|
|
1397
|
-
logoUri?: string;
|
|
1398
|
-
/**
|
|
1399
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1400
|
-
*/
|
|
1401
|
-
address: string;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
1894
|
type Erc1155TransferDetails = {
|
|
1405
1895
|
from: RichAddress;
|
|
1406
1896
|
to: RichAddress;
|
|
@@ -1485,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1485
1975
|
erc721Token: Erc721Token;
|
|
1486
1976
|
};
|
|
1487
1977
|
|
|
1488
|
-
/**
|
|
1489
|
-
* 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.
|
|
1490
|
-
*/
|
|
1491
|
-
declare enum TransactionMethodType {
|
|
1492
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1493
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1494
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
type Method = {
|
|
1498
|
-
callType: TransactionMethodType;
|
|
1499
|
-
/**
|
|
1500
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1501
|
-
*/
|
|
1502
|
-
methodHash: string;
|
|
1503
|
-
/**
|
|
1504
|
-
* 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'.
|
|
1505
|
-
*/
|
|
1506
|
-
methodName?: string;
|
|
1507
|
-
};
|
|
1508
|
-
|
|
1509
1978
|
type FullNativeTransactionDetails = {
|
|
1510
1979
|
/**
|
|
1511
1980
|
* The block number on the chain.
|
|
@@ -1519,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1519
1988
|
* The block hash identifier.
|
|
1520
1989
|
*/
|
|
1521
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1522
1995
|
/**
|
|
1523
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1524
1997
|
*/
|
|
@@ -1569,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1569
2042
|
CALL = "CALL",
|
|
1570
2043
|
CREATE = "CREATE",
|
|
1571
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1572
2046
|
CALLCODE = "CALLCODE",
|
|
1573
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1574
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -1631,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
1631
2105
|
*/
|
|
1632
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1633
2107
|
/**
|
|
1634
|
-
* 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.
|
|
1635
2109
|
*/
|
|
1636
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1637
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1747,31 +2221,33 @@ type ListErc721TransactionsResponse = {
|
|
|
1747
2221
|
|
|
1748
2222
|
type InternalTransaction = {
|
|
1749
2223
|
/**
|
|
1750
|
-
*
|
|
2224
|
+
* Sender address
|
|
1751
2225
|
*/
|
|
1752
|
-
|
|
2226
|
+
from: string;
|
|
1753
2227
|
/**
|
|
1754
|
-
*
|
|
2228
|
+
* Recipient address
|
|
1755
2229
|
*/
|
|
1756
|
-
|
|
2230
|
+
to: string;
|
|
1757
2231
|
/**
|
|
1758
|
-
*
|
|
2232
|
+
* Internal transaction type
|
|
1759
2233
|
*/
|
|
1760
|
-
|
|
2234
|
+
internalTxType: string;
|
|
1761
2235
|
/**
|
|
1762
|
-
*
|
|
2236
|
+
* Value transferred
|
|
1763
2237
|
*/
|
|
1764
|
-
txHash: string;
|
|
1765
|
-
from: RichAddress;
|
|
1766
|
-
to: RichAddress;
|
|
1767
|
-
internalTxType: InternalTransactionOpCall;
|
|
1768
2238
|
value: string;
|
|
1769
2239
|
/**
|
|
1770
|
-
*
|
|
2240
|
+
* Gas used
|
|
1771
2241
|
*/
|
|
1772
|
-
isReverted: boolean;
|
|
1773
2242
|
gasUsed: string;
|
|
2243
|
+
/**
|
|
2244
|
+
* Gas limit
|
|
2245
|
+
*/
|
|
1774
2246
|
gasLimit: string;
|
|
2247
|
+
/**
|
|
2248
|
+
* Transaction hash
|
|
2249
|
+
*/
|
|
2250
|
+
transactionHash: string;
|
|
1775
2251
|
};
|
|
1776
2252
|
|
|
1777
2253
|
type ListInternalTransactionsResponse = {
|
|
@@ -1782,72 +2258,13 @@ type ListInternalTransactionsResponse = {
|
|
|
1782
2258
|
transactions: Array<InternalTransaction>;
|
|
1783
2259
|
};
|
|
1784
2260
|
|
|
1785
|
-
type
|
|
2261
|
+
type TransactionDetails = {
|
|
1786
2262
|
/**
|
|
1787
|
-
* The
|
|
2263
|
+
* The native (top-level) transaction details.
|
|
1788
2264
|
*/
|
|
1789
|
-
|
|
2265
|
+
nativeTransaction: NativeTransaction;
|
|
1790
2266
|
/**
|
|
1791
|
-
* The
|
|
1792
|
-
*/
|
|
1793
|
-
blockTimestamp: number;
|
|
1794
|
-
/**
|
|
1795
|
-
* The block hash identifier.
|
|
1796
|
-
*/
|
|
1797
|
-
blockHash: string;
|
|
1798
|
-
/**
|
|
1799
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1800
|
-
*/
|
|
1801
|
-
blockIndex: number;
|
|
1802
|
-
/**
|
|
1803
|
-
* The transaction hash identifier.
|
|
1804
|
-
*/
|
|
1805
|
-
txHash: string;
|
|
1806
|
-
/**
|
|
1807
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1808
|
-
*/
|
|
1809
|
-
txStatus: string;
|
|
1810
|
-
/**
|
|
1811
|
-
* The transaction type.
|
|
1812
|
-
*/
|
|
1813
|
-
txType: number;
|
|
1814
|
-
/**
|
|
1815
|
-
* The gas limit set for the transaction.
|
|
1816
|
-
*/
|
|
1817
|
-
gasLimit: string;
|
|
1818
|
-
/**
|
|
1819
|
-
* The amount of gas used.
|
|
1820
|
-
*/
|
|
1821
|
-
gasUsed: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1824
|
-
*/
|
|
1825
|
-
gasPrice: string;
|
|
1826
|
-
/**
|
|
1827
|
-
* The nonce used by the sender of the transaction.
|
|
1828
|
-
*/
|
|
1829
|
-
nonce: string;
|
|
1830
|
-
from: RichAddress;
|
|
1831
|
-
to: RichAddress;
|
|
1832
|
-
method?: Method;
|
|
1833
|
-
value: string;
|
|
1834
|
-
};
|
|
1835
|
-
|
|
1836
|
-
type ListNativeTransactionsResponse = {
|
|
1837
|
-
/**
|
|
1838
|
-
* 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.
|
|
1839
|
-
*/
|
|
1840
|
-
nextPageToken?: string;
|
|
1841
|
-
transactions: Array<NativeTransaction>;
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
type TransactionDetails = {
|
|
1845
|
-
/**
|
|
1846
|
-
* The native (top-level) transaction details.
|
|
1847
|
-
*/
|
|
1848
|
-
nativeTransaction: NativeTransaction;
|
|
1849
|
-
/**
|
|
1850
|
-
* The list of ERC-20 transfers.
|
|
2267
|
+
* The list of ERC-20 transfers.
|
|
1851
2268
|
*/
|
|
1852
2269
|
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1853
2270
|
/**
|
|
@@ -1859,7 +2276,7 @@ type TransactionDetails = {
|
|
|
1859
2276
|
*/
|
|
1860
2277
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1861
2278
|
/**
|
|
1862
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2279
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1863
2280
|
*/
|
|
1864
2281
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1865
2282
|
};
|
|
@@ -1885,14 +2302,33 @@ declare enum SortOrder {
|
|
|
1885
2302
|
DESC = "desc"
|
|
1886
2303
|
}
|
|
1887
2304
|
|
|
1888
|
-
declare enum TransactionStatus {
|
|
1889
|
-
FAILED = "failed",
|
|
1890
|
-
SUCCESS = "success"
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
2305
|
declare class EvmTransactionsService {
|
|
1894
2306
|
readonly httpRequest: BaseHttpRequest;
|
|
1895
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>;
|
|
1896
2332
|
/**
|
|
1897
2333
|
* Get deployment transaction
|
|
1898
2334
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -1901,7 +2337,7 @@ declare class EvmTransactionsService {
|
|
|
1901
2337
|
*/
|
|
1902
2338
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1903
2339
|
/**
|
|
1904
|
-
* A supported evm chain id
|
|
2340
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
2341
|
*/
|
|
1906
2342
|
chainId: string;
|
|
1907
2343
|
/**
|
|
@@ -1921,7 +2357,7 @@ declare class EvmTransactionsService {
|
|
|
1921
2357
|
*/
|
|
1922
2358
|
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1923
2359
|
/**
|
|
1924
|
-
* A supported evm chain id
|
|
2360
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1925
2361
|
*/
|
|
1926
2362
|
chainId: string;
|
|
1927
2363
|
/**
|
|
@@ -1945,7 +2381,7 @@ declare class EvmTransactionsService {
|
|
|
1945
2381
|
*/
|
|
1946
2382
|
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1947
2383
|
/**
|
|
1948
|
-
* A supported evm chain id
|
|
2384
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
2385
|
*/
|
|
1950
2386
|
chainId: string;
|
|
1951
2387
|
/**
|
|
@@ -1979,7 +2415,7 @@ declare class EvmTransactionsService {
|
|
|
1979
2415
|
*/
|
|
1980
2416
|
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1981
2417
|
/**
|
|
1982
|
-
* A supported evm chain id
|
|
2418
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1983
2419
|
*/
|
|
1984
2420
|
chainId: string;
|
|
1985
2421
|
/**
|
|
@@ -2015,7 +2451,7 @@ declare class EvmTransactionsService {
|
|
|
2015
2451
|
*/
|
|
2016
2452
|
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2017
2453
|
/**
|
|
2018
|
-
* A supported evm chain id
|
|
2454
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2019
2455
|
*/
|
|
2020
2456
|
chainId: string;
|
|
2021
2457
|
/**
|
|
@@ -2047,7 +2483,7 @@ declare class EvmTransactionsService {
|
|
|
2047
2483
|
*/
|
|
2048
2484
|
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2049
2485
|
/**
|
|
2050
|
-
* A supported evm chain id
|
|
2486
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2051
2487
|
*/
|
|
2052
2488
|
chainId: string;
|
|
2053
2489
|
/**
|
|
@@ -2079,7 +2515,7 @@ declare class EvmTransactionsService {
|
|
|
2079
2515
|
*/
|
|
2080
2516
|
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2081
2517
|
/**
|
|
2082
|
-
* A supported evm chain id
|
|
2518
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2083
2519
|
*/
|
|
2084
2520
|
chainId: string;
|
|
2085
2521
|
/**
|
|
@@ -2111,7 +2547,7 @@ declare class EvmTransactionsService {
|
|
|
2111
2547
|
*/
|
|
2112
2548
|
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2113
2549
|
/**
|
|
2114
|
-
* A supported evm chain id
|
|
2550
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2115
2551
|
*/
|
|
2116
2552
|
chainId: string;
|
|
2117
2553
|
/**
|
|
@@ -2139,13 +2575,13 @@ declare class EvmTransactionsService {
|
|
|
2139
2575
|
* List internal transactions
|
|
2140
2576
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2141
2577
|
*
|
|
2142
|
-
* 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.
|
|
2143
2579
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2144
2580
|
* @throws ApiError
|
|
2145
2581
|
*/
|
|
2146
2582
|
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
2147
2583
|
/**
|
|
2148
|
-
* A supported evm chain id
|
|
2584
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2149
2585
|
*/
|
|
2150
2586
|
chainId: string;
|
|
2151
2587
|
/**
|
|
@@ -2177,7 +2613,7 @@ declare class EvmTransactionsService {
|
|
|
2177
2613
|
*/
|
|
2178
2614
|
getTransaction({ chainId, txHash, }: {
|
|
2179
2615
|
/**
|
|
2180
|
-
* A supported evm chain id
|
|
2616
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2181
2617
|
*/
|
|
2182
2618
|
chainId: string;
|
|
2183
2619
|
/**
|
|
@@ -2191,15 +2627,23 @@ declare class EvmTransactionsService {
|
|
|
2191
2627
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2192
2628
|
* @throws ApiError
|
|
2193
2629
|
*/
|
|
2194
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2630
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2195
2631
|
/**
|
|
2196
|
-
* A supported evm chain id
|
|
2632
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2197
2633
|
*/
|
|
2198
2634
|
chainId: string;
|
|
2199
2635
|
/**
|
|
2200
2636
|
* A block identifier which is either a block number or the block hash.
|
|
2201
2637
|
*/
|
|
2202
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;
|
|
2203
2647
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2204
2648
|
/**
|
|
2205
2649
|
* List latest transactions
|
|
@@ -2209,7 +2653,7 @@ declare class EvmTransactionsService {
|
|
|
2209
2653
|
*/
|
|
2210
2654
|
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2211
2655
|
/**
|
|
2212
|
-
* A supported evm chain id
|
|
2656
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2213
2657
|
*/
|
|
2214
2658
|
chainId: string;
|
|
2215
2659
|
/**
|
|
@@ -2227,90 +2671,331 @@ declare class EvmTransactionsService {
|
|
|
2227
2671
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2228
2672
|
}
|
|
2229
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
|
+
|
|
2230
2704
|
declare class HealthCheckService {
|
|
2231
2705
|
readonly httpRequest: BaseHttpRequest;
|
|
2232
2706
|
constructor(httpRequest: BaseHttpRequest);
|
|
2233
2707
|
/**
|
|
2234
2708
|
* Get the health of the service
|
|
2235
|
-
*
|
|
2709
|
+
* Check the health of the service.
|
|
2710
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2236
2711
|
* @throws ApiError
|
|
2237
2712
|
*/
|
|
2238
|
-
dataHealthCheck(): CancelablePromise<
|
|
2239
|
-
status?: string;
|
|
2240
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2241
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2242
|
-
details?: Record<string, Record<string, string>>;
|
|
2243
|
-
}>;
|
|
2713
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2244
2714
|
}
|
|
2245
2715
|
|
|
2246
|
-
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 = {
|
|
2247
2843
|
/**
|
|
2248
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.
|
|
2249
2845
|
*/
|
|
2250
2846
|
nextPageToken?: string;
|
|
2251
|
-
|
|
2847
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2252
2848
|
};
|
|
2253
2849
|
|
|
2254
|
-
declare class
|
|
2850
|
+
declare class InterchainMessagingService {
|
|
2255
2851
|
readonly httpRequest: BaseHttpRequest;
|
|
2256
2852
|
constructor(httpRequest: BaseHttpRequest);
|
|
2257
2853
|
/**
|
|
2258
|
-
*
|
|
2259
|
-
*
|
|
2854
|
+
* Get an ICM message
|
|
2855
|
+
* Gets an ICM message by teleporter message ID.
|
|
2260
2856
|
* @returns any Successful response
|
|
2261
2857
|
* @throws ApiError
|
|
2262
2858
|
*/
|
|
2263
|
-
|
|
2859
|
+
getIcmMessage({ messageId, }: {
|
|
2264
2860
|
/**
|
|
2265
|
-
*
|
|
2861
|
+
* The teleporter message ID of the ICM message.
|
|
2266
2862
|
*/
|
|
2267
|
-
|
|
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, }: {
|
|
2268
2872
|
/**
|
|
2269
|
-
*
|
|
2873
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2270
2874
|
*/
|
|
2271
|
-
|
|
2875
|
+
pageToken?: string;
|
|
2272
2876
|
/**
|
|
2273
|
-
*
|
|
2877
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2274
2878
|
*/
|
|
2275
|
-
|
|
2276
|
-
}): CancelablePromise<any>;
|
|
2277
|
-
/**
|
|
2278
|
-
* List tokens
|
|
2279
|
-
* Lists tokens for an NFT contract.
|
|
2280
|
-
* @returns ListNftTokens Successful response
|
|
2281
|
-
* @throws ApiError
|
|
2282
|
-
*/
|
|
2283
|
-
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2879
|
+
pageSize?: number;
|
|
2284
2880
|
/**
|
|
2285
|
-
*
|
|
2881
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2286
2882
|
*/
|
|
2287
|
-
|
|
2883
|
+
sourceBlockchainId?: string;
|
|
2288
2884
|
/**
|
|
2289
|
-
*
|
|
2885
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2290
2886
|
*/
|
|
2291
|
-
|
|
2887
|
+
destinationBlockchainId?: string;
|
|
2292
2888
|
/**
|
|
2293
|
-
*
|
|
2889
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2294
2890
|
*/
|
|
2295
|
-
|
|
2891
|
+
blockchainId?: string;
|
|
2296
2892
|
/**
|
|
2297
|
-
* The
|
|
2893
|
+
* The address of the recipient of the ICM message.
|
|
2298
2894
|
*/
|
|
2299
|
-
|
|
2300
|
-
|
|
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>;
|
|
2301
2905
|
/**
|
|
2302
|
-
*
|
|
2303
|
-
*
|
|
2304
|
-
* @returns
|
|
2906
|
+
* List ICM messages by address
|
|
2907
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2908
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2305
2909
|
* @throws ApiError
|
|
2306
2910
|
*/
|
|
2307
|
-
|
|
2308
|
-
/**
|
|
2309
|
-
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2310
|
-
*/
|
|
2311
|
-
chainId: string;
|
|
2911
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2312
2912
|
/**
|
|
2313
|
-
*
|
|
2913
|
+
* An EVM address.
|
|
2914
|
+
*/
|
|
2915
|
+
address: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2918
|
+
*/
|
|
2919
|
+
pageToken?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2922
|
+
*/
|
|
2923
|
+
pageSize?: number;
|
|
2924
|
+
/**
|
|
2925
|
+
* Either mainnet or testnet/fuji.
|
|
2926
|
+
*/
|
|
2927
|
+
network?: Network;
|
|
2928
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2929
|
+
}
|
|
2930
|
+
|
|
2931
|
+
type ListNftTokens = {
|
|
2932
|
+
/**
|
|
2933
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2934
|
+
*/
|
|
2935
|
+
nextPageToken?: string;
|
|
2936
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
declare class NfTsService {
|
|
2940
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2941
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2942
|
+
/**
|
|
2943
|
+
* Reindex NFT metadata
|
|
2944
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2945
|
+
* @returns any Successful response
|
|
2946
|
+
* @throws ApiError
|
|
2947
|
+
*/
|
|
2948
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2949
|
+
/**
|
|
2950
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2951
|
+
*/
|
|
2952
|
+
chainId: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Contract address on the relevant chain.
|
|
2955
|
+
*/
|
|
2956
|
+
address: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* TokenId on the contract
|
|
2959
|
+
*/
|
|
2960
|
+
tokenId: string;
|
|
2961
|
+
}): CancelablePromise<any>;
|
|
2962
|
+
/**
|
|
2963
|
+
* List tokens
|
|
2964
|
+
* Lists tokens for an NFT contract.
|
|
2965
|
+
* @returns ListNftTokens Successful response
|
|
2966
|
+
* @throws ApiError
|
|
2967
|
+
*/
|
|
2968
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2969
|
+
/**
|
|
2970
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2971
|
+
*/
|
|
2972
|
+
chainId: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Contract address on the relevant chain.
|
|
2975
|
+
*/
|
|
2976
|
+
address: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2979
|
+
*/
|
|
2980
|
+
pageToken?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2983
|
+
*/
|
|
2984
|
+
pageSize?: number;
|
|
2985
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2986
|
+
/**
|
|
2987
|
+
* Get token details
|
|
2988
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2989
|
+
* @returns any Successful response
|
|
2990
|
+
* @throws ApiError
|
|
2991
|
+
*/
|
|
2992
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2993
|
+
/**
|
|
2994
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2995
|
+
*/
|
|
2996
|
+
chainId: string;
|
|
2997
|
+
/**
|
|
2998
|
+
* Contract address on the relevant chain.
|
|
2314
2999
|
*/
|
|
2315
3000
|
address: string;
|
|
2316
3001
|
/**
|
|
@@ -2320,6 +3005,108 @@ declare class NfTsService {
|
|
|
2320
3005
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2321
3006
|
}
|
|
2322
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
|
+
|
|
2323
3110
|
type EvmNetworkOptions = {
|
|
2324
3111
|
addresses: Array<string>;
|
|
2325
3112
|
includeChains: Array<string>;
|
|
@@ -2331,16 +3118,16 @@ declare enum EVMOperationType {
|
|
|
2331
3118
|
|
|
2332
3119
|
type CreateEvmTransactionExportRequest = {
|
|
2333
3120
|
type: EVMOperationType;
|
|
2334
|
-
firstDate
|
|
2335
|
-
lastDate
|
|
3121
|
+
firstDate?: string;
|
|
3122
|
+
lastDate?: string;
|
|
2336
3123
|
/**
|
|
2337
3124
|
* @deprecated
|
|
2338
3125
|
*/
|
|
2339
|
-
startDate
|
|
3126
|
+
startDate?: string;
|
|
2340
3127
|
/**
|
|
2341
3128
|
* @deprecated
|
|
2342
3129
|
*/
|
|
2343
|
-
endDate
|
|
3130
|
+
endDate?: string;
|
|
2344
3131
|
options: EvmNetworkOptions;
|
|
2345
3132
|
};
|
|
2346
3133
|
|
|
@@ -2353,21 +3140,21 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2353
3140
|
type PrimaryNetworkOptions = {
|
|
2354
3141
|
addresses?: Array<string>;
|
|
2355
3142
|
cChainEvmAddresses?: Array<string>;
|
|
2356
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
3143
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2357
3144
|
};
|
|
2358
3145
|
|
|
2359
3146
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2360
3147
|
type: PrimaryNetworkOperationType;
|
|
2361
|
-
firstDate
|
|
2362
|
-
lastDate
|
|
3148
|
+
firstDate?: string;
|
|
3149
|
+
lastDate?: string;
|
|
2363
3150
|
/**
|
|
2364
3151
|
* @deprecated
|
|
2365
3152
|
*/
|
|
2366
|
-
startDate
|
|
3153
|
+
startDate?: string;
|
|
2367
3154
|
/**
|
|
2368
3155
|
* @deprecated
|
|
2369
3156
|
*/
|
|
2370
|
-
endDate
|
|
3157
|
+
endDate?: string;
|
|
2371
3158
|
options: PrimaryNetworkOptions;
|
|
2372
3159
|
};
|
|
2373
3160
|
|
|
@@ -2408,7 +3195,7 @@ type OperationStatusResponse = {
|
|
|
2408
3195
|
operationType: OperationType;
|
|
2409
3196
|
operationStatus: OperationStatus;
|
|
2410
3197
|
message?: string;
|
|
2411
|
-
metadata
|
|
3198
|
+
metadata?: TransactionExportMetadata;
|
|
2412
3199
|
createdAtTimestamp: number;
|
|
2413
3200
|
updatedAtTimestamp: number;
|
|
2414
3201
|
};
|
|
@@ -2441,12 +3228,31 @@ declare class OperationsService {
|
|
|
2441
3228
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2442
3229
|
}
|
|
2443
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
|
+
* The genesis data of the blockchain.
|
|
3244
|
+
*/
|
|
3245
|
+
genesisData: Record<string, any>;
|
|
3246
|
+
};
|
|
3247
|
+
|
|
2444
3248
|
declare enum BlockchainIds {
|
|
2445
3249
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2446
3250
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2447
3251
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3252
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2448
3253
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2449
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
3254
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3255
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
2450
3256
|
}
|
|
2451
3257
|
|
|
2452
3258
|
type ChainAddressChainIdMap = {
|
|
@@ -2470,16 +3276,31 @@ type DelegatorsDetails = {
|
|
|
2470
3276
|
};
|
|
2471
3277
|
|
|
2472
3278
|
type StakingDistribution = {
|
|
3279
|
+
/**
|
|
3280
|
+
* AvalancheGo version for the validator node.
|
|
3281
|
+
*/
|
|
2473
3282
|
version: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* The total amount staked by validators using this version.
|
|
3285
|
+
*/
|
|
2474
3286
|
amountStaked: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* The number of validators using this version.
|
|
3289
|
+
*/
|
|
2475
3290
|
validatorCount: number;
|
|
2476
3291
|
};
|
|
2477
3292
|
|
|
2478
3293
|
type ValidatorsDetails = {
|
|
2479
3294
|
validatorCount: number;
|
|
2480
3295
|
totalAmountStaked: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3298
|
+
*/
|
|
2481
3299
|
estimatedAnnualStakingReward: string;
|
|
2482
3300
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3301
|
+
/**
|
|
3302
|
+
* Ratio of total active stake amount to the current supply.
|
|
3303
|
+
*/
|
|
2483
3304
|
stakingRatio: string;
|
|
2484
3305
|
};
|
|
2485
3306
|
|
|
@@ -2488,15 +3309,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2488
3309
|
delegatorDetails: DelegatorsDetails;
|
|
2489
3310
|
};
|
|
2490
3311
|
|
|
2491
|
-
type Blockchain = {
|
|
2492
|
-
createBlockTimestamp: number;
|
|
2493
|
-
createBlockNumber: string;
|
|
2494
|
-
blockchainId: string;
|
|
2495
|
-
vmId: string;
|
|
2496
|
-
subnetId: string;
|
|
2497
|
-
blockchainName: string;
|
|
2498
|
-
};
|
|
2499
|
-
|
|
2500
3312
|
type ListBlockchainsResponse = {
|
|
2501
3313
|
/**
|
|
2502
3314
|
* 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.
|
|
@@ -2531,7 +3343,13 @@ type CompletedDelegatorDetails = {
|
|
|
2531
3343
|
delegationFee: string;
|
|
2532
3344
|
startTimestamp: number;
|
|
2533
3345
|
endTimestamp: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Total rewards distributed for the successful delegation.
|
|
3348
|
+
*/
|
|
2534
3349
|
grossReward: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3352
|
+
*/
|
|
2535
3353
|
netReward: string;
|
|
2536
3354
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2537
3355
|
};
|
|
@@ -2549,7 +3367,13 @@ type PendingDelegatorDetails = {
|
|
|
2549
3367
|
delegationFee: string;
|
|
2550
3368
|
startTimestamp: number;
|
|
2551
3369
|
endTimestamp: number;
|
|
3370
|
+
/**
|
|
3371
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3372
|
+
*/
|
|
2552
3373
|
estimatedGrossReward: string;
|
|
3374
|
+
/**
|
|
3375
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3376
|
+
*/
|
|
2553
3377
|
estimatedNetReward: string;
|
|
2554
3378
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2555
3379
|
};
|
|
@@ -2570,8 +3394,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2570
3394
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2571
3395
|
};
|
|
2572
3396
|
|
|
2573
|
-
type
|
|
3397
|
+
type BalanceOwner = {
|
|
3398
|
+
addresses: Array<string>;
|
|
3399
|
+
threshold: number;
|
|
3400
|
+
};
|
|
3401
|
+
|
|
3402
|
+
type L1ValidatorDetailsFull = {
|
|
3403
|
+
/**
|
|
3404
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3405
|
+
*/
|
|
3406
|
+
validationId: string;
|
|
3407
|
+
/**
|
|
3408
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3409
|
+
*/
|
|
3410
|
+
validationIdHex: string;
|
|
3411
|
+
nodeId: string;
|
|
3412
|
+
subnetId: string;
|
|
3413
|
+
/**
|
|
3414
|
+
* 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
|
|
3415
|
+
*/
|
|
3416
|
+
weight: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3419
|
+
*/
|
|
3420
|
+
remainingBalance: number;
|
|
3421
|
+
/**
|
|
3422
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3423
|
+
*/
|
|
3424
|
+
creationTimestamp: number;
|
|
3425
|
+
blsCredentials: Record<string, any>;
|
|
3426
|
+
/**
|
|
3427
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3428
|
+
*/
|
|
3429
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3430
|
+
/**
|
|
3431
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3432
|
+
*/
|
|
3433
|
+
deactivationOwner: BalanceOwner;
|
|
3434
|
+
};
|
|
3435
|
+
|
|
3436
|
+
type ListL1ValidatorsResponse = {
|
|
3437
|
+
/**
|
|
3438
|
+
* 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.
|
|
3439
|
+
*/
|
|
3440
|
+
nextPageToken?: string;
|
|
3441
|
+
/**
|
|
3442
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3443
|
+
*/
|
|
3444
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3445
|
+
/**
|
|
3446
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3447
|
+
*/
|
|
3448
|
+
blockHeight: string;
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3451
|
+
type L1ValidatorManagerDetails = {
|
|
2574
3452
|
blockchainId: string;
|
|
3453
|
+
contractAddress: string;
|
|
2575
3454
|
};
|
|
2576
3455
|
|
|
2577
3456
|
type SubnetOwnershipInfo = {
|
|
@@ -2612,7 +3491,19 @@ type Subnet = {
|
|
|
2612
3491
|
* Latest subnet owner details for this Subnet.
|
|
2613
3492
|
*/
|
|
2614
3493
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2615
|
-
|
|
3494
|
+
/**
|
|
3495
|
+
* Whether the subnet is an L1 or not.
|
|
3496
|
+
*/
|
|
3497
|
+
isL1: boolean;
|
|
3498
|
+
/**
|
|
3499
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3500
|
+
*/
|
|
3501
|
+
l1ConversionTransactionHash?: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* L1 validator manager details.
|
|
3504
|
+
*/
|
|
3505
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3506
|
+
blockchains: Array<Blockchain>;
|
|
2616
3507
|
};
|
|
2617
3508
|
|
|
2618
3509
|
type ListSubnetsResponse = {
|
|
@@ -2628,6 +3519,29 @@ type BlsCredentials = {
|
|
|
2628
3519
|
proofOfPossession: string;
|
|
2629
3520
|
};
|
|
2630
3521
|
|
|
3522
|
+
type Geolocation = {
|
|
3523
|
+
/**
|
|
3524
|
+
* The name of the validator node.
|
|
3525
|
+
*/
|
|
3526
|
+
city: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* The city of the validator node.
|
|
3529
|
+
*/
|
|
3530
|
+
country: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* The country code of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
countryCode: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* The latitude of the validator node.
|
|
3537
|
+
*/
|
|
3538
|
+
latitude: number;
|
|
3539
|
+
/**
|
|
3540
|
+
* The longitude of the validator node.
|
|
3541
|
+
*/
|
|
3542
|
+
longitude: number;
|
|
3543
|
+
};
|
|
3544
|
+
|
|
2631
3545
|
type Rewards = {
|
|
2632
3546
|
validationRewardAmount: string;
|
|
2633
3547
|
delegationRewardAmount: string;
|
|
@@ -2659,6 +3573,9 @@ type ActiveValidatorDetails = {
|
|
|
2659
3573
|
nodeId: string;
|
|
2660
3574
|
subnetId: string;
|
|
2661
3575
|
amountStaked: string;
|
|
3576
|
+
/**
|
|
3577
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3578
|
+
*/
|
|
2662
3579
|
delegationFee?: string;
|
|
2663
3580
|
startTimestamp: number;
|
|
2664
3581
|
endTimestamp: number;
|
|
@@ -2666,15 +3583,37 @@ type ActiveValidatorDetails = {
|
|
|
2666
3583
|
* Present for AddPermissionlessValidatorTx
|
|
2667
3584
|
*/
|
|
2668
3585
|
blsCredentials?: BlsCredentials;
|
|
3586
|
+
/**
|
|
3587
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3588
|
+
*/
|
|
2669
3589
|
stakePercentage: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* The number of delegators linked to the validator.
|
|
3592
|
+
*/
|
|
2670
3593
|
delegatorCount: number;
|
|
3594
|
+
/**
|
|
3595
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3596
|
+
*/
|
|
2671
3597
|
amountDelegated?: string;
|
|
3598
|
+
/**
|
|
3599
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3600
|
+
*/
|
|
2672
3601
|
uptimePerformance: number;
|
|
2673
3602
|
avalancheGoVersion?: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3605
|
+
*/
|
|
2674
3606
|
delegationCapacity?: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3609
|
+
*/
|
|
2675
3610
|
potentialRewards: Rewards;
|
|
2676
3611
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2677
3612
|
validatorHealth: ValidatorHealthDetails;
|
|
3613
|
+
/**
|
|
3614
|
+
* The geographical location of the validator node, if available.
|
|
3615
|
+
*/
|
|
3616
|
+
geolocation: Geolocation | null;
|
|
2678
3617
|
};
|
|
2679
3618
|
declare namespace ActiveValidatorDetails {
|
|
2680
3619
|
enum validationStatus {
|
|
@@ -2687,6 +3626,9 @@ type CompletedValidatorDetails = {
|
|
|
2687
3626
|
nodeId: string;
|
|
2688
3627
|
subnetId: string;
|
|
2689
3628
|
amountStaked: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3631
|
+
*/
|
|
2690
3632
|
delegationFee?: string;
|
|
2691
3633
|
startTimestamp: number;
|
|
2692
3634
|
endTimestamp: number;
|
|
@@ -2710,6 +3652,9 @@ type PendingValidatorDetails = {
|
|
|
2710
3652
|
nodeId: string;
|
|
2711
3653
|
subnetId: string;
|
|
2712
3654
|
amountStaked: string;
|
|
3655
|
+
/**
|
|
3656
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3657
|
+
*/
|
|
2713
3658
|
delegationFee?: string;
|
|
2714
3659
|
startTimestamp: number;
|
|
2715
3660
|
endTimestamp: number;
|
|
@@ -2730,6 +3675,9 @@ type RemovedValidatorDetails = {
|
|
|
2730
3675
|
nodeId: string;
|
|
2731
3676
|
subnetId: string;
|
|
2732
3677
|
amountStaked: string;
|
|
3678
|
+
/**
|
|
3679
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3680
|
+
*/
|
|
2733
3681
|
delegationFee?: string;
|
|
2734
3682
|
startTimestamp: number;
|
|
2735
3683
|
endTimestamp: number;
|
|
@@ -2737,7 +3685,13 @@ type RemovedValidatorDetails = {
|
|
|
2737
3685
|
* Present for AddPermissionlessValidatorTx
|
|
2738
3686
|
*/
|
|
2739
3687
|
blsCredentials?: BlsCredentials;
|
|
3688
|
+
/**
|
|
3689
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3690
|
+
*/
|
|
2740
3691
|
removeTxHash: string;
|
|
3692
|
+
/**
|
|
3693
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3694
|
+
*/
|
|
2741
3695
|
removeTimestamp: number;
|
|
2742
3696
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2743
3697
|
};
|
|
@@ -2758,11 +3712,6 @@ type ListValidatorDetailsResponse = {
|
|
|
2758
3712
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2759
3713
|
};
|
|
2760
3714
|
|
|
2761
|
-
declare enum Network {
|
|
2762
|
-
MAINNET = "mainnet",
|
|
2763
|
-
FUJI = "fuji"
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
3715
|
declare enum SortByOption {
|
|
2767
3716
|
BLOCK_INDEX = "blockIndex",
|
|
2768
3717
|
DELEGATION_CAPACITY = "delegationCapacity",
|
|
@@ -2822,6 +3771,7 @@ type XChainAssetDetails = {
|
|
|
2822
3771
|
declare enum XChainId {
|
|
2823
3772
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2824
3773
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3774
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2825
3775
|
X_CHAIN = "x-chain"
|
|
2826
3776
|
}
|
|
2827
3777
|
|
|
@@ -2840,7 +3790,7 @@ declare class PrimaryNetworkService {
|
|
|
2840
3790
|
*/
|
|
2841
3791
|
blockchainId: XChainId;
|
|
2842
3792
|
/**
|
|
2843
|
-
* Either mainnet or
|
|
3793
|
+
* Either mainnet or testnet/fuji.
|
|
2844
3794
|
*/
|
|
2845
3795
|
network: Network;
|
|
2846
3796
|
/**
|
|
@@ -2860,7 +3810,7 @@ declare class PrimaryNetworkService {
|
|
|
2860
3810
|
*/
|
|
2861
3811
|
addresses: string;
|
|
2862
3812
|
/**
|
|
2863
|
-
* Either mainnet or
|
|
3813
|
+
* Either mainnet or testnet/fuji.
|
|
2864
3814
|
*/
|
|
2865
3815
|
network: Network;
|
|
2866
3816
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
@@ -2872,7 +3822,7 @@ declare class PrimaryNetworkService {
|
|
|
2872
3822
|
*/
|
|
2873
3823
|
getNetworkDetails({ network, }: {
|
|
2874
3824
|
/**
|
|
2875
|
-
* Either mainnet or
|
|
3825
|
+
* Either mainnet or testnet/fuji.
|
|
2876
3826
|
*/
|
|
2877
3827
|
network: Network;
|
|
2878
3828
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
@@ -2884,7 +3834,7 @@ declare class PrimaryNetworkService {
|
|
|
2884
3834
|
*/
|
|
2885
3835
|
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2886
3836
|
/**
|
|
2887
|
-
* Either mainnet or
|
|
3837
|
+
* Either mainnet or testnet/fuji.
|
|
2888
3838
|
*/
|
|
2889
3839
|
network: Network;
|
|
2890
3840
|
/**
|
|
@@ -2892,7 +3842,7 @@ declare class PrimaryNetworkService {
|
|
|
2892
3842
|
*/
|
|
2893
3843
|
pageToken?: string;
|
|
2894
3844
|
/**
|
|
2895
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3845
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2896
3846
|
*/
|
|
2897
3847
|
pageSize?: number;
|
|
2898
3848
|
/**
|
|
@@ -2900,6 +3850,22 @@ declare class PrimaryNetworkService {
|
|
|
2900
3850
|
*/
|
|
2901
3851
|
sortOrder?: SortOrder;
|
|
2902
3852
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3853
|
+
/**
|
|
3854
|
+
* Get blockchain details by ID
|
|
3855
|
+
* Get details of the blockchain registered on the network.
|
|
3856
|
+
* @returns Blockchain Successful response
|
|
3857
|
+
* @throws ApiError
|
|
3858
|
+
*/
|
|
3859
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3860
|
+
/**
|
|
3861
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3862
|
+
*/
|
|
3863
|
+
blockchainId: string;
|
|
3864
|
+
/**
|
|
3865
|
+
* Either mainnet or testnet/fuji.
|
|
3866
|
+
*/
|
|
3867
|
+
network: Network;
|
|
3868
|
+
}): CancelablePromise<Blockchain>;
|
|
2903
3869
|
/**
|
|
2904
3870
|
* List subnets
|
|
2905
3871
|
* Lists all subnets registered on the network.
|
|
@@ -2908,7 +3874,7 @@ declare class PrimaryNetworkService {
|
|
|
2908
3874
|
*/
|
|
2909
3875
|
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2910
3876
|
/**
|
|
2911
|
-
* Either mainnet or
|
|
3877
|
+
* Either mainnet or testnet/fuji.
|
|
2912
3878
|
*/
|
|
2913
3879
|
network: Network;
|
|
2914
3880
|
/**
|
|
@@ -2916,7 +3882,7 @@ declare class PrimaryNetworkService {
|
|
|
2916
3882
|
*/
|
|
2917
3883
|
pageToken?: string;
|
|
2918
3884
|
/**
|
|
2919
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3885
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2920
3886
|
*/
|
|
2921
3887
|
pageSize?: number;
|
|
2922
3888
|
/**
|
|
@@ -2932,7 +3898,7 @@ declare class PrimaryNetworkService {
|
|
|
2932
3898
|
*/
|
|
2933
3899
|
getSubnetById({ network, subnetId, }: {
|
|
2934
3900
|
/**
|
|
2935
|
-
* Either mainnet or
|
|
3901
|
+
* Either mainnet or testnet/fuji.
|
|
2936
3902
|
*/
|
|
2937
3903
|
network: Network;
|
|
2938
3904
|
/**
|
|
@@ -2942,13 +3908,13 @@ declare class PrimaryNetworkService {
|
|
|
2942
3908
|
}): CancelablePromise<Subnet>;
|
|
2943
3909
|
/**
|
|
2944
3910
|
* List validators
|
|
2945
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3911
|
+
* 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.
|
|
2946
3912
|
* @returns ListValidatorDetailsResponse Successful response
|
|
2947
3913
|
* @throws ApiError
|
|
2948
3914
|
*/
|
|
2949
3915
|
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2950
3916
|
/**
|
|
2951
|
-
* Either mainnet or
|
|
3917
|
+
* Either mainnet or testnet/fuji.
|
|
2952
3918
|
*/
|
|
2953
3919
|
network: Network;
|
|
2954
3920
|
/**
|
|
@@ -2960,7 +3926,7 @@ declare class PrimaryNetworkService {
|
|
|
2960
3926
|
*/
|
|
2961
3927
|
pageSize?: number;
|
|
2962
3928
|
/**
|
|
2963
|
-
* A comma separated list of node ids to filter by.
|
|
3929
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
2964
3930
|
*/
|
|
2965
3931
|
nodeIds?: string;
|
|
2966
3932
|
/**
|
|
@@ -3022,7 +3988,7 @@ declare class PrimaryNetworkService {
|
|
|
3022
3988
|
*/
|
|
3023
3989
|
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
3024
3990
|
/**
|
|
3025
|
-
* Either mainnet or
|
|
3991
|
+
* Either mainnet or testnet/fuji.
|
|
3026
3992
|
*/
|
|
3027
3993
|
network: Network;
|
|
3028
3994
|
/**
|
|
@@ -3054,7 +4020,7 @@ declare class PrimaryNetworkService {
|
|
|
3054
4020
|
*/
|
|
3055
4021
|
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
3056
4022
|
/**
|
|
3057
|
-
* Either mainnet or
|
|
4023
|
+
* Either mainnet or testnet/fuji.
|
|
3058
4024
|
*/
|
|
3059
4025
|
network: Network;
|
|
3060
4026
|
/**
|
|
@@ -3082,14 +4048,49 @@ declare class PrimaryNetworkService {
|
|
|
3082
4048
|
*/
|
|
3083
4049
|
nodeIds?: string;
|
|
3084
4050
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
4051
|
+
/**
|
|
4052
|
+
* List L1 validators
|
|
4053
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4054
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4055
|
+
* @throws ApiError
|
|
4056
|
+
*/
|
|
4057
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4058
|
+
/**
|
|
4059
|
+
* Either mainnet or testnet/fuji.
|
|
4060
|
+
*/
|
|
4061
|
+
network: Network;
|
|
4062
|
+
/**
|
|
4063
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4064
|
+
*/
|
|
4065
|
+
pageToken?: string;
|
|
4066
|
+
/**
|
|
4067
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4068
|
+
*/
|
|
4069
|
+
pageSize?: number;
|
|
4070
|
+
/**
|
|
4071
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4072
|
+
*/
|
|
4073
|
+
l1ValidationId?: string;
|
|
4074
|
+
includeInactiveL1Validators?: boolean;
|
|
4075
|
+
/**
|
|
4076
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4077
|
+
*/
|
|
4078
|
+
nodeId?: string;
|
|
4079
|
+
/**
|
|
4080
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4081
|
+
*/
|
|
4082
|
+
subnetId?: any;
|
|
4083
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3085
4084
|
}
|
|
3086
4085
|
|
|
3087
4086
|
declare enum BlockchainId {
|
|
3088
4087
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3089
4088
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3090
4089
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4090
|
+
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3091
4091
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3092
4092
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4093
|
+
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3093
4094
|
P_CHAIN = "p-chain",
|
|
3094
4095
|
X_CHAIN = "x-chain",
|
|
3095
4096
|
C_CHAIN = "c-chain"
|
|
@@ -3126,11 +4127,6 @@ type CChainAtomicBalances = {
|
|
|
3126
4127
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3127
4128
|
};
|
|
3128
4129
|
|
|
3129
|
-
declare enum PrimaryNetwork {
|
|
3130
|
-
MAINNET = "mainnet",
|
|
3131
|
-
FUJI = "fuji"
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
4130
|
declare enum PrimaryNetworkChainName {
|
|
3135
4131
|
P_CHAIN = "p-chain",
|
|
3136
4132
|
X_CHAIN = "x-chain",
|
|
@@ -3139,7 +4135,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3139
4135
|
|
|
3140
4136
|
type PrimaryNetworkChainInfo = {
|
|
3141
4137
|
chainName: PrimaryNetworkChainName;
|
|
3142
|
-
network:
|
|
4138
|
+
network: Network;
|
|
3143
4139
|
};
|
|
3144
4140
|
|
|
3145
4141
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3300,7 +4296,7 @@ declare class PrimaryNetworkBalancesService {
|
|
|
3300
4296
|
*/
|
|
3301
4297
|
blockchainId: BlockchainId;
|
|
3302
4298
|
/**
|
|
3303
|
-
* Either mainnet or
|
|
4299
|
+
* Either mainnet or testnet/fuji.
|
|
3304
4300
|
*/
|
|
3305
4301
|
network: Network;
|
|
3306
4302
|
/**
|
|
@@ -3331,6 +4327,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3331
4327
|
txCount: number;
|
|
3332
4328
|
transactions: Array<string>;
|
|
3333
4329
|
blockSizeBytes: number;
|
|
4330
|
+
l1ValidatorsAccruedFees?: number;
|
|
4331
|
+
activeL1Validators?: number;
|
|
3334
4332
|
currentSupply?: string;
|
|
3335
4333
|
proposerDetails?: ProposerDetails;
|
|
3336
4334
|
};
|
|
@@ -3344,6 +4342,8 @@ type PrimaryNetworkBlock = {
|
|
|
3344
4342
|
txCount: number;
|
|
3345
4343
|
transactions: Array<string>;
|
|
3346
4344
|
blockSizeBytes: number;
|
|
4345
|
+
l1ValidatorsAccruedFees?: number;
|
|
4346
|
+
activeL1Validators?: number;
|
|
3347
4347
|
currentSupply?: string;
|
|
3348
4348
|
proposerDetails?: ProposerDetails;
|
|
3349
4349
|
};
|
|
@@ -3372,7 +4372,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3372
4372
|
*/
|
|
3373
4373
|
blockchainId: BlockchainId;
|
|
3374
4374
|
/**
|
|
3375
|
-
* Either mainnet or
|
|
4375
|
+
* Either mainnet or testnet/fuji.
|
|
3376
4376
|
*/
|
|
3377
4377
|
network: Network;
|
|
3378
4378
|
/**
|
|
@@ -3386,19 +4386,27 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3386
4386
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3387
4387
|
* @throws ApiError
|
|
3388
4388
|
*/
|
|
3389
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4389
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3390
4390
|
/**
|
|
3391
4391
|
* A primary network blockchain id or alias.
|
|
3392
4392
|
*/
|
|
3393
4393
|
blockchainId: BlockchainId;
|
|
3394
4394
|
/**
|
|
3395
|
-
* Either mainnet or
|
|
4395
|
+
* Either mainnet or testnet/fuji.
|
|
3396
4396
|
*/
|
|
3397
4397
|
network: Network;
|
|
3398
4398
|
/**
|
|
3399
4399
|
* A primary network (P or X chain) nodeId.
|
|
3400
4400
|
*/
|
|
3401
4401
|
nodeId: string;
|
|
4402
|
+
/**
|
|
4403
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4404
|
+
*/
|
|
4405
|
+
startTimestamp?: number;
|
|
4406
|
+
/**
|
|
4407
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4408
|
+
*/
|
|
4409
|
+
endTimestamp?: number;
|
|
3402
4410
|
/**
|
|
3403
4411
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3404
4412
|
*/
|
|
@@ -3414,15 +4422,23 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3414
4422
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3415
4423
|
* @throws ApiError
|
|
3416
4424
|
*/
|
|
3417
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4425
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3418
4426
|
/**
|
|
3419
4427
|
* A primary network blockchain id or alias.
|
|
3420
4428
|
*/
|
|
3421
4429
|
blockchainId: BlockchainId;
|
|
3422
4430
|
/**
|
|
3423
|
-
* Either mainnet or
|
|
4431
|
+
* Either mainnet or testnet/fuji.
|
|
3424
4432
|
*/
|
|
3425
4433
|
network: Network;
|
|
4434
|
+
/**
|
|
4435
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4436
|
+
*/
|
|
4437
|
+
startTimestamp?: number;
|
|
4438
|
+
/**
|
|
4439
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4440
|
+
*/
|
|
4441
|
+
endTimestamp?: number;
|
|
3426
4442
|
/**
|
|
3427
4443
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3428
4444
|
*/
|
|
@@ -3554,7 +4570,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3554
4570
|
*/
|
|
3555
4571
|
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3556
4572
|
/**
|
|
3557
|
-
* Either mainnet or
|
|
4573
|
+
* Either mainnet or testnet/fuji.
|
|
3558
4574
|
*/
|
|
3559
4575
|
network: Network;
|
|
3560
4576
|
/**
|
|
@@ -3586,7 +4602,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3586
4602
|
*/
|
|
3587
4603
|
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3588
4604
|
/**
|
|
3589
|
-
* Either mainnet or
|
|
4605
|
+
* Either mainnet or testnet/fuji.
|
|
3590
4606
|
*/
|
|
3591
4607
|
network: Network;
|
|
3592
4608
|
/**
|
|
@@ -3832,6 +4848,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3832
4848
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3833
4849
|
};
|
|
3834
4850
|
|
|
4851
|
+
type BlockchainInfo = {
|
|
4852
|
+
chainName: string;
|
|
4853
|
+
vmId: string;
|
|
4854
|
+
/**
|
|
4855
|
+
* The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
|
|
4856
|
+
*/
|
|
4857
|
+
genesisData: Record<string, any>;
|
|
4858
|
+
};
|
|
4859
|
+
|
|
4860
|
+
type L1ValidatorDetailsTransaction = {
|
|
4861
|
+
/**
|
|
4862
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4863
|
+
*/
|
|
4864
|
+
validationId: string;
|
|
4865
|
+
/**
|
|
4866
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4867
|
+
*/
|
|
4868
|
+
validationIdHex: string;
|
|
4869
|
+
nodeId: string;
|
|
4870
|
+
subnetId: string;
|
|
4871
|
+
/**
|
|
4872
|
+
* 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
|
|
4873
|
+
*/
|
|
4874
|
+
weight: number;
|
|
4875
|
+
/**
|
|
4876
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4877
|
+
*/
|
|
4878
|
+
remainingBalance: number;
|
|
4879
|
+
/**
|
|
4880
|
+
* 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
|
|
4881
|
+
*/
|
|
4882
|
+
balanceChange?: number;
|
|
4883
|
+
blsCredentials?: Record<string, any>;
|
|
4884
|
+
};
|
|
4885
|
+
|
|
3835
4886
|
declare enum PChainTransactionType {
|
|
3836
4887
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3837
4888
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3848,9 +4899,17 @@ declare enum PChainTransactionType {
|
|
|
3848
4899
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3849
4900
|
BASE_TX = "BaseTx",
|
|
3850
4901
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4902
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4903
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4904
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4905
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4906
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3851
4907
|
UNKNOWN = "UNKNOWN"
|
|
3852
4908
|
}
|
|
3853
4909
|
|
|
4910
|
+
/**
|
|
4911
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4912
|
+
*/
|
|
3854
4913
|
declare enum UtxoType {
|
|
3855
4914
|
STAKE = "STAKE",
|
|
3856
4915
|
TRANSFER = "TRANSFER"
|
|
@@ -3888,16 +4947,43 @@ type PChainUtxo = {
|
|
|
3888
4947
|
assetId: string;
|
|
3889
4948
|
blockNumber: string;
|
|
3890
4949
|
blockTimestamp: number;
|
|
4950
|
+
/**
|
|
4951
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4952
|
+
*/
|
|
3891
4953
|
consumingBlockNumber?: string;
|
|
4954
|
+
/**
|
|
4955
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4956
|
+
*/
|
|
3892
4957
|
consumingBlockTimestamp?: number;
|
|
4958
|
+
/**
|
|
4959
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4960
|
+
*/
|
|
3893
4961
|
platformLocktime?: number;
|
|
4962
|
+
/**
|
|
4963
|
+
* The index of the UTXO in the transaction
|
|
4964
|
+
*/
|
|
3894
4965
|
outputIndex: number;
|
|
3895
4966
|
rewardType?: RewardType;
|
|
4967
|
+
/**
|
|
4968
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4969
|
+
*/
|
|
3896
4970
|
stakeableLocktime?: number;
|
|
3897
4971
|
staked?: boolean;
|
|
4972
|
+
/**
|
|
4973
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4974
|
+
*/
|
|
3898
4975
|
threshold?: number;
|
|
4976
|
+
/**
|
|
4977
|
+
* The hash of the transaction that created this UTXO
|
|
4978
|
+
*/
|
|
3899
4979
|
txHash: string;
|
|
4980
|
+
/**
|
|
4981
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4982
|
+
*/
|
|
3900
4983
|
utxoEndTimestamp?: number;
|
|
4984
|
+
/**
|
|
4985
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4986
|
+
*/
|
|
3901
4987
|
utxoStartTimestamp?: number;
|
|
3902
4988
|
utxoType: UtxoType;
|
|
3903
4989
|
};
|
|
@@ -3912,9 +4998,18 @@ type PChainTransaction = {
|
|
|
3912
4998
|
* The block finality timestamp.
|
|
3913
4999
|
*/
|
|
3914
5000
|
blockTimestamp: number;
|
|
5001
|
+
/**
|
|
5002
|
+
* The height of the block in which the transaction was included
|
|
5003
|
+
*/
|
|
3915
5004
|
blockNumber: string;
|
|
3916
5005
|
blockHash: string;
|
|
5006
|
+
/**
|
|
5007
|
+
* The consumed UTXOs of the transaction
|
|
5008
|
+
*/
|
|
3917
5009
|
consumedUtxos: Array<PChainUtxo>;
|
|
5010
|
+
/**
|
|
5011
|
+
* The newly created UTXOs of the transaction
|
|
5012
|
+
*/
|
|
3918
5013
|
emittedUtxos: Array<PChainUtxo>;
|
|
3919
5014
|
/**
|
|
3920
5015
|
* Source chain for an atomic transaction.
|
|
@@ -3925,17 +5020,21 @@ type PChainTransaction = {
|
|
|
3925
5020
|
*/
|
|
3926
5021
|
destinationChain?: string;
|
|
3927
5022
|
/**
|
|
3928
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5023
|
+
* 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
|
|
3929
5024
|
*/
|
|
3930
5025
|
value: Array<AssetAmount>;
|
|
3931
5026
|
/**
|
|
3932
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5027
|
+
* 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
|
|
3933
5028
|
*/
|
|
3934
5029
|
amountBurned: Array<AssetAmount>;
|
|
3935
5030
|
/**
|
|
3936
5031
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3937
5032
|
*/
|
|
3938
5033
|
amountStaked: Array<AssetAmount>;
|
|
5034
|
+
/**
|
|
5035
|
+
* 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.
|
|
5036
|
+
*/
|
|
5037
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3939
5038
|
/**
|
|
3940
5039
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3941
5040
|
*/
|
|
@@ -3945,11 +5044,11 @@ type PChainTransaction = {
|
|
|
3945
5044
|
*/
|
|
3946
5045
|
endTimestamp?: number;
|
|
3947
5046
|
/**
|
|
3948
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5047
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3949
5048
|
*/
|
|
3950
5049
|
delegationFeePercent?: string;
|
|
3951
5050
|
/**
|
|
3952
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5051
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3953
5052
|
*/
|
|
3954
5053
|
nodeId?: string;
|
|
3955
5054
|
/**
|
|
@@ -3957,14 +5056,25 @@ type PChainTransaction = {
|
|
|
3957
5056
|
*/
|
|
3958
5057
|
subnetId?: string;
|
|
3959
5058
|
/**
|
|
3960
|
-
* Present for
|
|
5059
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5060
|
+
*/
|
|
5061
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5062
|
+
/**
|
|
5063
|
+
* 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
|
|
5064
|
+
*/
|
|
5065
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5066
|
+
/**
|
|
5067
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3961
5068
|
*/
|
|
3962
5069
|
estimatedReward?: string;
|
|
5070
|
+
/**
|
|
5071
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5072
|
+
*/
|
|
3963
5073
|
rewardTxHash?: string;
|
|
3964
5074
|
rewardAddresses?: Array<string>;
|
|
3965
5075
|
memo?: string;
|
|
3966
5076
|
/**
|
|
3967
|
-
*
|
|
5077
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3968
5078
|
*/
|
|
3969
5079
|
stakingTxHash?: string;
|
|
3970
5080
|
/**
|
|
@@ -3972,9 +5082,13 @@ type PChainTransaction = {
|
|
|
3972
5082
|
*/
|
|
3973
5083
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3974
5084
|
/**
|
|
3975
|
-
* Present for AddPermissionlessValidatorTx
|
|
5085
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3976
5086
|
*/
|
|
3977
5087
|
blsCredentials?: BlsCredentials;
|
|
5088
|
+
/**
|
|
5089
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5090
|
+
*/
|
|
5091
|
+
blockchainInfo?: BlockchainInfo;
|
|
3978
5092
|
};
|
|
3979
5093
|
|
|
3980
5094
|
type ListPChainTransactionsResponse = {
|
|
@@ -4157,6 +5271,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4157
5271
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4158
5272
|
BASE_TX = "BaseTx",
|
|
4159
5273
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5274
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5275
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5276
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5277
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5278
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4160
5279
|
UNKNOWN = "UNKNOWN",
|
|
4161
5280
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4162
5281
|
OPERATION_TX = "OperationTx"
|
|
@@ -4177,7 +5296,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4177
5296
|
*/
|
|
4178
5297
|
blockchainId: BlockchainId;
|
|
4179
5298
|
/**
|
|
4180
|
-
* Either mainnet or
|
|
5299
|
+
* Either mainnet or testnet/fuji.
|
|
4181
5300
|
*/
|
|
4182
5301
|
network: Network;
|
|
4183
5302
|
/**
|
|
@@ -4191,23 +5310,26 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4191
5310
|
*
|
|
4192
5311
|
* 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.
|
|
4193
5312
|
*
|
|
5313
|
+
* 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.
|
|
5314
|
+
*
|
|
4194
5315
|
* 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.
|
|
4195
5316
|
* @returns any Successful response
|
|
4196
5317
|
* @throws ApiError
|
|
4197
5318
|
*/
|
|
4198
|
-
listLatestPrimaryNetworkTransactions({
|
|
4199
|
-
/**
|
|
4200
|
-
* 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.
|
|
4201
|
-
*/
|
|
4202
|
-
addresses: string;
|
|
5319
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4203
5320
|
/**
|
|
4204
5321
|
* A primary network blockchain id or alias.
|
|
4205
5322
|
*/
|
|
4206
5323
|
blockchainId: BlockchainId;
|
|
4207
5324
|
/**
|
|
4208
|
-
* Either mainnet or
|
|
5325
|
+
* Either mainnet or testnet/fuji.
|
|
4209
5326
|
*/
|
|
4210
5327
|
network: Network;
|
|
5328
|
+
/**
|
|
5329
|
+
* 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.
|
|
5330
|
+
*/
|
|
5331
|
+
addresses?: string;
|
|
5332
|
+
l1ValidationId?: string;
|
|
4211
5333
|
/**
|
|
4212
5334
|
* Query param for filtering items based on transaction types.
|
|
4213
5335
|
*/
|
|
@@ -4245,7 +5367,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4245
5367
|
*/
|
|
4246
5368
|
blockchainId: PChainId;
|
|
4247
5369
|
/**
|
|
4248
|
-
* Either mainnet or
|
|
5370
|
+
* Either mainnet or testnet/fuji.
|
|
4249
5371
|
*/
|
|
4250
5372
|
network: Network;
|
|
4251
5373
|
/**
|
|
@@ -4289,7 +5411,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4289
5411
|
*/
|
|
4290
5412
|
blockchainId: XChainId;
|
|
4291
5413
|
/**
|
|
4292
|
-
* Either mainnet or
|
|
5414
|
+
* Either mainnet or testnet/fuji.
|
|
4293
5415
|
*/
|
|
4294
5416
|
network: Network;
|
|
4295
5417
|
/**
|
|
@@ -4352,7 +5474,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4352
5474
|
*/
|
|
4353
5475
|
blockchainId: BlockchainId;
|
|
4354
5476
|
/**
|
|
4355
|
-
* Either mainnet or
|
|
5477
|
+
* Either mainnet or testnet/fuji.
|
|
4356
5478
|
*/
|
|
4357
5479
|
network: Network;
|
|
4358
5480
|
/**
|
|
@@ -4417,7 +5539,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4417
5539
|
*/
|
|
4418
5540
|
blockchainId: XChainId;
|
|
4419
5541
|
/**
|
|
4420
|
-
* Either mainnet or
|
|
5542
|
+
* Either mainnet or testnet/fuji.
|
|
4421
5543
|
*/
|
|
4422
5544
|
network: Network;
|
|
4423
5545
|
/**
|
|
@@ -4445,7 +5567,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4445
5567
|
*/
|
|
4446
5568
|
blockchainId: XChainId;
|
|
4447
5569
|
/**
|
|
4448
|
-
* Either mainnet or
|
|
5570
|
+
* Either mainnet or testnet/fuji.
|
|
4449
5571
|
*/
|
|
4450
5572
|
network: Network;
|
|
4451
5573
|
}): CancelablePromise<XChainVertex>;
|
|
@@ -4465,7 +5587,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4465
5587
|
*/
|
|
4466
5588
|
blockchainId: XChainId;
|
|
4467
5589
|
/**
|
|
4468
|
-
* Either mainnet or
|
|
5590
|
+
* Either mainnet or testnet/fuji.
|
|
4469
5591
|
*/
|
|
4470
5592
|
network: Network;
|
|
4471
5593
|
/**
|
|
@@ -4483,47 +5605,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4483
5605
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4484
5606
|
}
|
|
4485
5607
|
|
|
4486
|
-
type
|
|
4487
|
-
|
|
4488
|
-
message: string;
|
|
4489
|
-
data?: Record<string, any>;
|
|
5608
|
+
type SignatureAggregationResponse = {
|
|
5609
|
+
signedMessage: string;
|
|
4490
5610
|
};
|
|
4491
5611
|
|
|
4492
|
-
type
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
type RpcRequestBodyDto = {
|
|
4499
|
-
method: string;
|
|
4500
|
-
params?: Record<string, any>;
|
|
4501
|
-
id?: (string | number);
|
|
4502
|
-
jsonrpc?: string;
|
|
4503
|
-
};
|
|
4504
|
-
|
|
4505
|
-
type RpcSuccessResponseDto = {
|
|
4506
|
-
jsonrpc: string;
|
|
4507
|
-
id?: (string | number);
|
|
4508
|
-
result: Record<string, any>;
|
|
5612
|
+
type SignatureAggregatorRequest = {
|
|
5613
|
+
message: string;
|
|
5614
|
+
justification?: string;
|
|
5615
|
+
signingSubnetId?: string;
|
|
5616
|
+
quorumPercentage?: number;
|
|
4509
5617
|
};
|
|
4510
5618
|
|
|
4511
|
-
declare class
|
|
5619
|
+
declare class SignatureAggregatorService {
|
|
4512
5620
|
readonly httpRequest: BaseHttpRequest;
|
|
4513
5621
|
constructor(httpRequest: BaseHttpRequest);
|
|
4514
5622
|
/**
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
* @returns
|
|
5623
|
+
* Aggregate Signatures
|
|
5624
|
+
* Aggregates Signatures for a Warp message from Subnet validators.
|
|
5625
|
+
* @returns SignatureAggregationResponse Successful response
|
|
4518
5626
|
* @throws ApiError
|
|
4519
5627
|
*/
|
|
4520
|
-
|
|
5628
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
4521
5629
|
/**
|
|
4522
|
-
*
|
|
5630
|
+
* Either mainnet or testnet/fuji.
|
|
4523
5631
|
*/
|
|
4524
|
-
|
|
4525
|
-
requestBody:
|
|
4526
|
-
}): CancelablePromise<
|
|
5632
|
+
network: Network;
|
|
5633
|
+
requestBody: SignatureAggregatorRequest;
|
|
5634
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5635
|
+
/**
|
|
5636
|
+
* Get Aggregated Signatures
|
|
5637
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5638
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5639
|
+
* @throws ApiError
|
|
5640
|
+
*/
|
|
5641
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5642
|
+
/**
|
|
5643
|
+
* Either mainnet or testnet/fuji.
|
|
5644
|
+
*/
|
|
5645
|
+
network: Network;
|
|
5646
|
+
/**
|
|
5647
|
+
* A primary network (P or X chain) transaction hash.
|
|
5648
|
+
*/
|
|
5649
|
+
txHash: string;
|
|
5650
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4527
5651
|
}
|
|
4528
5652
|
|
|
4529
5653
|
type TeleporterDestinationTransaction = {
|
|
@@ -4657,15 +5781,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4657
5781
|
* 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.
|
|
4658
5782
|
*/
|
|
4659
5783
|
nextPageToken?: string;
|
|
4660
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5784
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4661
5785
|
};
|
|
4662
5786
|
|
|
4663
5787
|
declare class TeleporterService {
|
|
4664
5788
|
readonly httpRequest: BaseHttpRequest;
|
|
4665
5789
|
constructor(httpRequest: BaseHttpRequest);
|
|
4666
5790
|
/**
|
|
4667
|
-
*
|
|
4668
|
-
* Gets a teleporter message by message ID.
|
|
5791
|
+
* @deprecated
|
|
5792
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5793
|
+
*
|
|
5794
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4669
5795
|
* @returns any Successful response
|
|
4670
5796
|
* @throws ApiError
|
|
4671
5797
|
*/
|
|
@@ -4676,8 +5802,10 @@ declare class TeleporterService {
|
|
|
4676
5802
|
messageId: string;
|
|
4677
5803
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4678
5804
|
/**
|
|
4679
|
-
*
|
|
4680
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5805
|
+
* @deprecated
|
|
5806
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5807
|
+
*
|
|
5808
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4681
5809
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4682
5810
|
* @throws ApiError
|
|
4683
5811
|
*/
|
|
@@ -4711,13 +5839,15 @@ declare class TeleporterService {
|
|
|
4711
5839
|
*/
|
|
4712
5840
|
from?: string;
|
|
4713
5841
|
/**
|
|
4714
|
-
* mainnet or testnet.
|
|
5842
|
+
* Either mainnet or testnet/fuji.
|
|
4715
5843
|
*/
|
|
4716
|
-
network?:
|
|
5844
|
+
network?: Network;
|
|
4717
5845
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4718
5846
|
/**
|
|
4719
|
-
*
|
|
4720
|
-
* Lists teleporter messages by address. Ordered by
|
|
5847
|
+
* @deprecated
|
|
5848
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5849
|
+
*
|
|
5850
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4721
5851
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4722
5852
|
* @throws ApiError
|
|
4723
5853
|
*/
|
|
@@ -4735,9 +5865,9 @@ declare class TeleporterService {
|
|
|
4735
5865
|
*/
|
|
4736
5866
|
pageSize?: number;
|
|
4737
5867
|
/**
|
|
4738
|
-
* mainnet or testnet.
|
|
5868
|
+
* Either mainnet or testnet/fuji.
|
|
4739
5869
|
*/
|
|
4740
|
-
network?:
|
|
5870
|
+
network?: Network;
|
|
4741
5871
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4742
5872
|
}
|
|
4743
5873
|
|
|
@@ -4759,44 +5889,54 @@ type AddressActivityMetadata = {
|
|
|
4759
5889
|
eventSignatures?: Array<string>;
|
|
4760
5890
|
};
|
|
4761
5891
|
|
|
4762
|
-
declare enum
|
|
4763
|
-
|
|
5892
|
+
declare enum PrimaryNetworkType {
|
|
5893
|
+
MAINNET = "mainnet",
|
|
5894
|
+
FUJI = "fuji"
|
|
4764
5895
|
}
|
|
4765
5896
|
|
|
4766
|
-
type
|
|
5897
|
+
type EVMAddressActivityRequest = {
|
|
5898
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
4767
5899
|
url: string;
|
|
4768
5900
|
chainId: string;
|
|
4769
|
-
|
|
4770
|
-
metadata: AddressActivityMetadata;
|
|
5901
|
+
network?: PrimaryNetworkType;
|
|
4771
5902
|
name?: string;
|
|
4772
5903
|
description?: string;
|
|
4773
5904
|
/**
|
|
4774
|
-
* Whether to include traces in the webhook payload.
|
|
5905
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4775
5906
|
*/
|
|
4776
5907
|
includeInternalTxs?: boolean;
|
|
4777
5908
|
/**
|
|
4778
5909
|
* Whether to include logs in the webhook payload.
|
|
4779
5910
|
*/
|
|
4780
5911
|
includeLogs?: boolean;
|
|
5912
|
+
metadata: AddressActivityMetadata;
|
|
4781
5913
|
};
|
|
5914
|
+
declare namespace EVMAddressActivityRequest {
|
|
5915
|
+
enum eventType {
|
|
5916
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5917
|
+
}
|
|
5918
|
+
}
|
|
4782
5919
|
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
addresses: Array<string>;
|
|
4789
|
-
totalAddresses: number;
|
|
4790
|
-
};
|
|
5920
|
+
declare enum EventType {
|
|
5921
|
+
ADDRESS_ACTIVITY = "address_activity",
|
|
5922
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
5923
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
5924
|
+
}
|
|
4791
5925
|
|
|
4792
5926
|
declare enum WebhookStatusType {
|
|
4793
5927
|
ACTIVE = "active",
|
|
4794
5928
|
INACTIVE = "inactive"
|
|
4795
5929
|
}
|
|
4796
5930
|
|
|
4797
|
-
type
|
|
5931
|
+
type EVMAddressActivityResponse = {
|
|
4798
5932
|
id: string;
|
|
4799
5933
|
eventType: EventType;
|
|
5934
|
+
url: string;
|
|
5935
|
+
chainId: string;
|
|
5936
|
+
status: WebhookStatusType;
|
|
5937
|
+
createdAt: number;
|
|
5938
|
+
name: string;
|
|
5939
|
+
description: string;
|
|
4800
5940
|
metadata: AddressActivityMetadata;
|
|
4801
5941
|
/**
|
|
4802
5942
|
* Whether to include traces in the webhook payload.
|
|
@@ -4806,12 +5946,109 @@ type WebhookResponse = {
|
|
|
4806
5946
|
* Whether to include logs in the webhook payload.
|
|
4807
5947
|
*/
|
|
4808
5948
|
includeLogs?: boolean;
|
|
5949
|
+
};
|
|
5950
|
+
|
|
5951
|
+
type ListWebhookAddressesResponse = {
|
|
5952
|
+
/**
|
|
5953
|
+
* 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.
|
|
5954
|
+
*/
|
|
5955
|
+
nextPageToken?: string;
|
|
5956
|
+
addresses: Array<string>;
|
|
5957
|
+
totalAddresses: number;
|
|
5958
|
+
};
|
|
5959
|
+
|
|
5960
|
+
/**
|
|
5961
|
+
* The type of key for platform activity depending on the event type
|
|
5962
|
+
*/
|
|
5963
|
+
declare enum PlatformActivityKeyType {
|
|
5964
|
+
ADDRESSES = "addresses",
|
|
5965
|
+
NODE_ID = "nodeId",
|
|
5966
|
+
SUBNET_ID = "subnetId"
|
|
5967
|
+
}
|
|
5968
|
+
|
|
5969
|
+
/**
|
|
5970
|
+
* Array of address activity sub-event types
|
|
5971
|
+
*/
|
|
5972
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5973
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
5974
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
5975
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5976
|
+
}
|
|
5977
|
+
|
|
5978
|
+
type PlatformActivitySubEvents = {
|
|
5979
|
+
/**
|
|
5980
|
+
* Array of validator activity sub-event types
|
|
5981
|
+
*/
|
|
5982
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
5983
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
5984
|
+
};
|
|
5985
|
+
|
|
5986
|
+
/**
|
|
5987
|
+
* Type of balance to monitor
|
|
5988
|
+
*/
|
|
5989
|
+
declare enum CommonBalanceType {
|
|
5990
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5991
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5992
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5993
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5994
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5995
|
+
PENDING_STAKED = "pendingStaked",
|
|
5996
|
+
UNLOCKED = "unlocked",
|
|
5997
|
+
LOCKED = "locked",
|
|
5998
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5999
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
type PlatformBalanceThresholdFilter = {
|
|
6003
|
+
balanceType: CommonBalanceType;
|
|
6004
|
+
/**
|
|
6005
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6006
|
+
*/
|
|
6007
|
+
balanceThreshold: string;
|
|
6008
|
+
};
|
|
6009
|
+
|
|
6010
|
+
type PlatformActivityMetadata = {
|
|
6011
|
+
keyType: PlatformActivityKeyType;
|
|
6012
|
+
/**
|
|
6013
|
+
* 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
|
|
6014
|
+
*/
|
|
6015
|
+
keys: Array<string>;
|
|
6016
|
+
/**
|
|
6017
|
+
* Sub-events to monitor
|
|
6018
|
+
*/
|
|
6019
|
+
subEvents?: PlatformActivitySubEvents;
|
|
6020
|
+
/**
|
|
6021
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6022
|
+
*/
|
|
6023
|
+
eventSignatures?: Array<string>;
|
|
6024
|
+
/**
|
|
6025
|
+
* Array of node IDs to filter the events
|
|
6026
|
+
*/
|
|
6027
|
+
nodeIds?: Array<string>;
|
|
6028
|
+
/**
|
|
6029
|
+
* Array of subnet IDs to filter the events
|
|
6030
|
+
*/
|
|
6031
|
+
subnetIds?: Array<string>;
|
|
6032
|
+
/**
|
|
6033
|
+
* Balance threshold filter
|
|
6034
|
+
*/
|
|
6035
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
6036
|
+
/**
|
|
6037
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6038
|
+
*/
|
|
6039
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6040
|
+
};
|
|
6041
|
+
|
|
6042
|
+
type PlatformActivityResponse = {
|
|
6043
|
+
id: string;
|
|
6044
|
+
eventType: EventType;
|
|
4809
6045
|
url: string;
|
|
4810
6046
|
chainId: string;
|
|
4811
6047
|
status: WebhookStatusType;
|
|
4812
6048
|
createdAt: number;
|
|
4813
6049
|
name: string;
|
|
4814
6050
|
description: string;
|
|
6051
|
+
metadata: PlatformActivityMetadata;
|
|
4815
6052
|
};
|
|
4816
6053
|
|
|
4817
6054
|
type ListWebhooksResponse = {
|
|
@@ -4819,9 +6056,36 @@ type ListWebhooksResponse = {
|
|
|
4819
6056
|
* 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.
|
|
4820
6057
|
*/
|
|
4821
6058
|
nextPageToken?: string;
|
|
4822
|
-
webhooks: Array<
|
|
6059
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4823
6060
|
};
|
|
4824
6061
|
|
|
6062
|
+
type PlatformActivityRequest = {
|
|
6063
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6064
|
+
url: string;
|
|
6065
|
+
chainId: string;
|
|
6066
|
+
network?: PrimaryNetworkType;
|
|
6067
|
+
name?: string;
|
|
6068
|
+
description?: string;
|
|
6069
|
+
/**
|
|
6070
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6071
|
+
*/
|
|
6072
|
+
includeInternalTxs?: boolean;
|
|
6073
|
+
/**
|
|
6074
|
+
* Whether to include logs in the webhook payload.
|
|
6075
|
+
*/
|
|
6076
|
+
includeLogs?: boolean;
|
|
6077
|
+
/**
|
|
6078
|
+
* Metadata for platform activity
|
|
6079
|
+
*/
|
|
6080
|
+
metadata: PlatformActivityMetadata;
|
|
6081
|
+
};
|
|
6082
|
+
declare namespace PlatformActivityRequest {
|
|
6083
|
+
enum eventType {
|
|
6084
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
6085
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6086
|
+
}
|
|
6087
|
+
}
|
|
6088
|
+
|
|
4825
6089
|
type SharedSecretsResponse = {
|
|
4826
6090
|
secret: string;
|
|
4827
6091
|
};
|
|
@@ -4831,6 +6095,9 @@ type UpdateWebhookRequest = {
|
|
|
4831
6095
|
description?: string;
|
|
4832
6096
|
url?: string;
|
|
4833
6097
|
status?: WebhookStatusType;
|
|
6098
|
+
/**
|
|
6099
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6100
|
+
*/
|
|
4834
6101
|
includeInternalTxs?: boolean;
|
|
4835
6102
|
includeLogs?: boolean;
|
|
4836
6103
|
};
|
|
@@ -4846,12 +6113,12 @@ declare class WebhooksService {
|
|
|
4846
6113
|
/**
|
|
4847
6114
|
* Create a webhook
|
|
4848
6115
|
* Create a new webhook.
|
|
4849
|
-
* @returns
|
|
6116
|
+
* @returns any Successful response
|
|
4850
6117
|
* @throws ApiError
|
|
4851
6118
|
*/
|
|
4852
6119
|
createWebhook({ requestBody, }: {
|
|
4853
|
-
requestBody:
|
|
4854
|
-
}): CancelablePromise<
|
|
6120
|
+
requestBody: (EVMAddressActivityRequest | PlatformActivityRequest);
|
|
6121
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4855
6122
|
/**
|
|
4856
6123
|
* List webhooks
|
|
4857
6124
|
* Lists webhooks for the user.
|
|
@@ -4875,7 +6142,7 @@ declare class WebhooksService {
|
|
|
4875
6142
|
/**
|
|
4876
6143
|
* Get a webhook by ID
|
|
4877
6144
|
* Retrieves a webhook by ID.
|
|
4878
|
-
* @returns
|
|
6145
|
+
* @returns any Successful response
|
|
4879
6146
|
* @throws ApiError
|
|
4880
6147
|
*/
|
|
4881
6148
|
getWebhook({ id, }: {
|
|
@@ -4883,11 +6150,11 @@ declare class WebhooksService {
|
|
|
4883
6150
|
* The webhook identifier.
|
|
4884
6151
|
*/
|
|
4885
6152
|
id: string;
|
|
4886
|
-
}): CancelablePromise<
|
|
6153
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4887
6154
|
/**
|
|
4888
6155
|
* Deactivate a webhook
|
|
4889
6156
|
* Deactivates a webhook by ID.
|
|
4890
|
-
* @returns
|
|
6157
|
+
* @returns any Successful response
|
|
4891
6158
|
* @throws ApiError
|
|
4892
6159
|
*/
|
|
4893
6160
|
deactivateWebhook({ id, }: {
|
|
@@ -4895,11 +6162,11 @@ declare class WebhooksService {
|
|
|
4895
6162
|
* The webhook identifier.
|
|
4896
6163
|
*/
|
|
4897
6164
|
id: string;
|
|
4898
|
-
}): CancelablePromise<
|
|
6165
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4899
6166
|
/**
|
|
4900
6167
|
* Update a webhook
|
|
4901
6168
|
* Updates an existing webhook.
|
|
4902
|
-
* @returns
|
|
6169
|
+
* @returns any Successful response
|
|
4903
6170
|
* @throws ApiError
|
|
4904
6171
|
*/
|
|
4905
6172
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4908,14 +6175,14 @@ declare class WebhooksService {
|
|
|
4908
6175
|
*/
|
|
4909
6176
|
id: string;
|
|
4910
6177
|
requestBody: UpdateWebhookRequest;
|
|
4911
|
-
}): CancelablePromise<
|
|
6178
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
4912
6179
|
/**
|
|
4913
|
-
* Generate a shared secret
|
|
4914
|
-
* Generates a new shared secret.
|
|
6180
|
+
* Generate or rotate a shared secret
|
|
6181
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4915
6182
|
* @returns SharedSecretsResponse Successful response
|
|
4916
6183
|
* @throws ApiError
|
|
4917
6184
|
*/
|
|
4918
|
-
|
|
6185
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4919
6186
|
/**
|
|
4920
6187
|
* Get a shared secret
|
|
4921
6188
|
* Get a previously generated shared secret.
|
|
@@ -4924,9 +6191,9 @@ declare class WebhooksService {
|
|
|
4924
6191
|
*/
|
|
4925
6192
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4926
6193
|
/**
|
|
4927
|
-
* Add addresses to webhook
|
|
4928
|
-
* Add addresses to webhook.
|
|
4929
|
-
* @returns
|
|
6194
|
+
* Add addresses to EVM activity webhook
|
|
6195
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6196
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4930
6197
|
* @throws ApiError
|
|
4931
6198
|
*/
|
|
4932
6199
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4935,11 +6202,11 @@ declare class WebhooksService {
|
|
|
4935
6202
|
*/
|
|
4936
6203
|
id: string;
|
|
4937
6204
|
requestBody: AddressesChangeRequest;
|
|
4938
|
-
}): CancelablePromise<
|
|
6205
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4939
6206
|
/**
|
|
4940
|
-
* Remove addresses from webhook
|
|
4941
|
-
* Remove addresses from webhook.
|
|
4942
|
-
* @returns
|
|
6207
|
+
* Remove addresses from EVM activity webhook
|
|
6208
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6209
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4943
6210
|
* @throws ApiError
|
|
4944
6211
|
*/
|
|
4945
6212
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4948,10 +6215,10 @@ declare class WebhooksService {
|
|
|
4948
6215
|
*/
|
|
4949
6216
|
id: string;
|
|
4950
6217
|
requestBody: AddressesChangeRequest;
|
|
4951
|
-
}): CancelablePromise<
|
|
6218
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4952
6219
|
/**
|
|
4953
|
-
* List adresses by
|
|
4954
|
-
* List adresses by webhook.
|
|
6220
|
+
* List adresses by EVM activity webhooks
|
|
6221
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
4955
6222
|
* @returns ListWebhookAddressesResponse Successful response
|
|
4956
6223
|
* @throws ApiError
|
|
4957
6224
|
*/
|
|
@@ -4981,7 +6248,9 @@ declare class Glacier {
|
|
|
4981
6248
|
readonly evmContracts: EvmContractsService;
|
|
4982
6249
|
readonly evmTransactions: EvmTransactionsService;
|
|
4983
6250
|
readonly healthCheck: HealthCheckService;
|
|
6251
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
4984
6252
|
readonly nfTs: NfTsService;
|
|
6253
|
+
readonly notifications: NotificationsService;
|
|
4985
6254
|
readonly operations: OperationsService;
|
|
4986
6255
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
4987
6256
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -4990,7 +6259,7 @@ declare class Glacier {
|
|
|
4990
6259
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4991
6260
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4992
6261
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4993
|
-
readonly
|
|
6262
|
+
readonly signatureAggregator: SignatureAggregatorService;
|
|
4994
6263
|
readonly teleporter: TeleporterService;
|
|
4995
6264
|
readonly webhooks: WebhooksService;
|
|
4996
6265
|
readonly request: BaseHttpRequest;
|
|
@@ -5014,6 +6283,17 @@ declare class ApiError extends Error {
|
|
|
5014
6283
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5015
6284
|
}
|
|
5016
6285
|
|
|
6286
|
+
type AccessListData = {
|
|
6287
|
+
/**
|
|
6288
|
+
* Access Address
|
|
6289
|
+
*/
|
|
6290
|
+
accessAddresses: string;
|
|
6291
|
+
/**
|
|
6292
|
+
* Storage keys
|
|
6293
|
+
*/
|
|
6294
|
+
storageKeys: Array<string>;
|
|
6295
|
+
};
|
|
6296
|
+
|
|
5017
6297
|
type BadGateway = {
|
|
5018
6298
|
/**
|
|
5019
6299
|
* The error message describing the reason for the exception
|
|
@@ -5048,6 +6328,76 @@ type DataListChainsResponse = {
|
|
|
5048
6328
|
chains: Array<ChainInfo>;
|
|
5049
6329
|
};
|
|
5050
6330
|
|
|
6331
|
+
type ERCToken = {
|
|
6332
|
+
/**
|
|
6333
|
+
* Token contract address
|
|
6334
|
+
*/
|
|
6335
|
+
address: string;
|
|
6336
|
+
/**
|
|
6337
|
+
* Token name
|
|
6338
|
+
*/
|
|
6339
|
+
name: string;
|
|
6340
|
+
/**
|
|
6341
|
+
* Token symbol
|
|
6342
|
+
*/
|
|
6343
|
+
symbol: string;
|
|
6344
|
+
/**
|
|
6345
|
+
* Token decimals
|
|
6346
|
+
*/
|
|
6347
|
+
decimals: number;
|
|
6348
|
+
/**
|
|
6349
|
+
* Value including decimals
|
|
6350
|
+
*/
|
|
6351
|
+
valueWithDecimals: string;
|
|
6352
|
+
};
|
|
6353
|
+
|
|
6354
|
+
type ERCTransfer = {
|
|
6355
|
+
/**
|
|
6356
|
+
* Transaction hash
|
|
6357
|
+
*/
|
|
6358
|
+
transactionHash: string;
|
|
6359
|
+
/**
|
|
6360
|
+
* Transfer type
|
|
6361
|
+
*/
|
|
6362
|
+
type: string;
|
|
6363
|
+
/**
|
|
6364
|
+
* Sender address
|
|
6365
|
+
*/
|
|
6366
|
+
from: string;
|
|
6367
|
+
/**
|
|
6368
|
+
* Recipient address
|
|
6369
|
+
*/
|
|
6370
|
+
to: string;
|
|
6371
|
+
/**
|
|
6372
|
+
* Amount transferred
|
|
6373
|
+
*/
|
|
6374
|
+
value: string;
|
|
6375
|
+
/**
|
|
6376
|
+
* Token Id
|
|
6377
|
+
*/
|
|
6378
|
+
tokenId?: string;
|
|
6379
|
+
/**
|
|
6380
|
+
* Block timestamp
|
|
6381
|
+
*/
|
|
6382
|
+
blockTimestamp: number;
|
|
6383
|
+
/**
|
|
6384
|
+
* Log index
|
|
6385
|
+
*/
|
|
6386
|
+
logIndex: number;
|
|
6387
|
+
/**
|
|
6388
|
+
* erc20 Token details
|
|
6389
|
+
*/
|
|
6390
|
+
erc20Token?: ERCToken;
|
|
6391
|
+
/**
|
|
6392
|
+
* erc721 Token details
|
|
6393
|
+
*/
|
|
6394
|
+
erc721Token?: ERCToken;
|
|
6395
|
+
/**
|
|
6396
|
+
* erc1155 Token details
|
|
6397
|
+
*/
|
|
6398
|
+
erc1155Token?: ERCToken;
|
|
6399
|
+
};
|
|
6400
|
+
|
|
5051
6401
|
type Forbidden = {
|
|
5052
6402
|
/**
|
|
5053
6403
|
* The error message describing the reason for the exception
|
|
@@ -5078,6 +6428,64 @@ type InternalServerError = {
|
|
|
5078
6428
|
error: string;
|
|
5079
6429
|
};
|
|
5080
6430
|
|
|
6431
|
+
type Log = {
|
|
6432
|
+
/**
|
|
6433
|
+
* Contract address
|
|
6434
|
+
*/
|
|
6435
|
+
address: string;
|
|
6436
|
+
/**
|
|
6437
|
+
* First topic
|
|
6438
|
+
*/
|
|
6439
|
+
topic0: string;
|
|
6440
|
+
/**
|
|
6441
|
+
* Second topic (optional)
|
|
6442
|
+
*/
|
|
6443
|
+
topic1?: string;
|
|
6444
|
+
/**
|
|
6445
|
+
* Third topic (optional)
|
|
6446
|
+
*/
|
|
6447
|
+
topic2?: string;
|
|
6448
|
+
/**
|
|
6449
|
+
* Fourth topic (optional)
|
|
6450
|
+
*/
|
|
6451
|
+
topic3?: string;
|
|
6452
|
+
/**
|
|
6453
|
+
* Event data
|
|
6454
|
+
*/
|
|
6455
|
+
data: string;
|
|
6456
|
+
/**
|
|
6457
|
+
* Transaction index
|
|
6458
|
+
*/
|
|
6459
|
+
transactionIndex: number;
|
|
6460
|
+
/**
|
|
6461
|
+
* Log index
|
|
6462
|
+
*/
|
|
6463
|
+
logIndex: number;
|
|
6464
|
+
/**
|
|
6465
|
+
* Indicates if the log was removed
|
|
6466
|
+
*/
|
|
6467
|
+
removed: boolean;
|
|
6468
|
+
};
|
|
6469
|
+
|
|
6470
|
+
type NetworkTokenInfo = {
|
|
6471
|
+
/**
|
|
6472
|
+
* Token name
|
|
6473
|
+
*/
|
|
6474
|
+
tokenName?: string;
|
|
6475
|
+
/**
|
|
6476
|
+
* Token symbol
|
|
6477
|
+
*/
|
|
6478
|
+
tokenSymbol?: string;
|
|
6479
|
+
/**
|
|
6480
|
+
* Token decimals
|
|
6481
|
+
*/
|
|
6482
|
+
tokenDecimals?: number;
|
|
6483
|
+
/**
|
|
6484
|
+
* Value including decimals
|
|
6485
|
+
*/
|
|
6486
|
+
valueWithDecimals?: string;
|
|
6487
|
+
};
|
|
6488
|
+
|
|
5081
6489
|
type NextPageToken = {
|
|
5082
6490
|
/**
|
|
5083
6491
|
* 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.
|
|
@@ -5130,6 +6538,132 @@ type TooManyRequests = {
|
|
|
5130
6538
|
error: string;
|
|
5131
6539
|
};
|
|
5132
6540
|
|
|
6541
|
+
type Transaction = {
|
|
6542
|
+
/**
|
|
6543
|
+
* Block hash of the transaction
|
|
6544
|
+
*/
|
|
6545
|
+
blockHash: string;
|
|
6546
|
+
/**
|
|
6547
|
+
* Block number of the transaction
|
|
6548
|
+
*/
|
|
6549
|
+
blockNumber: string;
|
|
6550
|
+
/**
|
|
6551
|
+
* Sender address
|
|
6552
|
+
*/
|
|
6553
|
+
from: string;
|
|
6554
|
+
/**
|
|
6555
|
+
* Gas limit for the transaction
|
|
6556
|
+
*/
|
|
6557
|
+
gas: string;
|
|
6558
|
+
/**
|
|
6559
|
+
* Gas price used
|
|
6560
|
+
*/
|
|
6561
|
+
gasPrice: string;
|
|
6562
|
+
/**
|
|
6563
|
+
* Maximum fee per gas
|
|
6564
|
+
*/
|
|
6565
|
+
maxFeePerGas: string;
|
|
6566
|
+
/**
|
|
6567
|
+
* Maximum priority fee per gas
|
|
6568
|
+
*/
|
|
6569
|
+
maxPriorityFeePerGas: string;
|
|
6570
|
+
/**
|
|
6571
|
+
* Transaction hash
|
|
6572
|
+
*/
|
|
6573
|
+
txHash: string;
|
|
6574
|
+
/**
|
|
6575
|
+
* Transaction status
|
|
6576
|
+
*/
|
|
6577
|
+
txStatus: string;
|
|
6578
|
+
/**
|
|
6579
|
+
* Input data
|
|
6580
|
+
*/
|
|
6581
|
+
input: string;
|
|
6582
|
+
/**
|
|
6583
|
+
* Nonce value
|
|
6584
|
+
*/
|
|
6585
|
+
nonce: string;
|
|
6586
|
+
/**
|
|
6587
|
+
* Recipient address
|
|
6588
|
+
*/
|
|
6589
|
+
to: string;
|
|
6590
|
+
/**
|
|
6591
|
+
* Transaction index
|
|
6592
|
+
*/
|
|
6593
|
+
transactionIndex: number;
|
|
6594
|
+
/**
|
|
6595
|
+
* Value transferred in the transaction
|
|
6596
|
+
*/
|
|
6597
|
+
value: string;
|
|
6598
|
+
/**
|
|
6599
|
+
* Transaction type
|
|
6600
|
+
*/
|
|
6601
|
+
type: number;
|
|
6602
|
+
/**
|
|
6603
|
+
* Chain ID of the network
|
|
6604
|
+
*/
|
|
6605
|
+
chainId: string;
|
|
6606
|
+
/**
|
|
6607
|
+
* Cumulative gas used
|
|
6608
|
+
*/
|
|
6609
|
+
receiptCumulativeGasUsed: string;
|
|
6610
|
+
/**
|
|
6611
|
+
* Gas used
|
|
6612
|
+
*/
|
|
6613
|
+
receiptGasUsed: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* Effective gas price
|
|
6616
|
+
*/
|
|
6617
|
+
receiptEffectiveGasPrice: string;
|
|
6618
|
+
/**
|
|
6619
|
+
* Receipt root
|
|
6620
|
+
*/
|
|
6621
|
+
receiptRoot: string;
|
|
6622
|
+
/**
|
|
6623
|
+
* Block timestamp
|
|
6624
|
+
*/
|
|
6625
|
+
blockTimestamp: number;
|
|
6626
|
+
/**
|
|
6627
|
+
* Contract address (optional)
|
|
6628
|
+
*/
|
|
6629
|
+
contractAddress?: string;
|
|
6630
|
+
/**
|
|
6631
|
+
* ERC20 transfers
|
|
6632
|
+
*/
|
|
6633
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6634
|
+
/**
|
|
6635
|
+
* ERC721 transfers
|
|
6636
|
+
*/
|
|
6637
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6638
|
+
/**
|
|
6639
|
+
* ERC1155 transfers
|
|
6640
|
+
*/
|
|
6641
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6642
|
+
/**
|
|
6643
|
+
* Internal transactions (optional)
|
|
6644
|
+
*/
|
|
6645
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
6646
|
+
/**
|
|
6647
|
+
* Access list (optional)
|
|
6648
|
+
*/
|
|
6649
|
+
accessList?: Array<AccessListData>;
|
|
6650
|
+
/**
|
|
6651
|
+
* Network token info (optional)
|
|
6652
|
+
*/
|
|
6653
|
+
networkToken?: NetworkTokenInfo;
|
|
6654
|
+
};
|
|
6655
|
+
|
|
6656
|
+
type TransactionEvent = {
|
|
6657
|
+
/**
|
|
6658
|
+
* Transaction details
|
|
6659
|
+
*/
|
|
6660
|
+
transaction: Transaction;
|
|
6661
|
+
/**
|
|
6662
|
+
* Array of log events
|
|
6663
|
+
*/
|
|
6664
|
+
logs?: Array<Log>;
|
|
6665
|
+
};
|
|
6666
|
+
|
|
5133
6667
|
type Unauthorized = {
|
|
5134
6668
|
/**
|
|
5135
6669
|
* The error message describing the reason for the exception
|
|
@@ -5145,4 +6679,43 @@ type Unauthorized = {
|
|
|
5145
6679
|
error: string;
|
|
5146
6680
|
};
|
|
5147
6681
|
|
|
5148
|
-
|
|
6682
|
+
type WebhookAddressActivityResponse = {
|
|
6683
|
+
/**
|
|
6684
|
+
* Webhook ID
|
|
6685
|
+
*/
|
|
6686
|
+
webhookId: string;
|
|
6687
|
+
/**
|
|
6688
|
+
* Event type
|
|
6689
|
+
*/
|
|
6690
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6691
|
+
/**
|
|
6692
|
+
* Message ID
|
|
6693
|
+
*/
|
|
6694
|
+
messageId: string;
|
|
6695
|
+
/**
|
|
6696
|
+
* Event details
|
|
6697
|
+
*/
|
|
6698
|
+
event: TransactionEvent;
|
|
6699
|
+
};
|
|
6700
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6701
|
+
/**
|
|
6702
|
+
* Event type
|
|
6703
|
+
*/
|
|
6704
|
+
enum eventType {
|
|
6705
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6706
|
+
}
|
|
6707
|
+
}
|
|
6708
|
+
|
|
6709
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6710
|
+
constructor(config: OpenAPIConfig);
|
|
6711
|
+
/**
|
|
6712
|
+
* Request method
|
|
6713
|
+
* @param options The request options from the service
|
|
6714
|
+
* @returns CancelablePromise<T>
|
|
6715
|
+
* @throws ApiError
|
|
6716
|
+
*/
|
|
6717
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
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 };
|
|
6721
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, 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 };
|