@avalabs/glacier-sdk 3.1.0-canary.c8a535f.0 → 3.1.0-canary.c994097.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 +1965 -340
- 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/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/Blockchain.d.ts +9 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- 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 +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +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/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 +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +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 +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +5 -1
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +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/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +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/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +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 +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +2 -8
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/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 +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +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/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- 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/AvaxSupplyService.d.ts +16 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +166 -22
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +80 -2
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +55 -4
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +64 -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/EventType.d.ts +0 -5
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,18 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
declare class AvaxSupplyService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* Get AVAX supply information
|
|
62
|
+
* Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
|
|
63
|
+
* @returns void
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
getAvaxSupply(): CancelablePromise<void>;
|
|
67
|
+
}
|
|
68
|
+
|
|
57
69
|
type LogsFormatMetadata = {
|
|
58
70
|
/**
|
|
59
71
|
* The IP address of the client that made the request.
|
|
@@ -148,6 +160,145 @@ type LogsResponseDTO = {
|
|
|
148
160
|
logs: Array<LogsFormat>;
|
|
149
161
|
};
|
|
150
162
|
|
|
163
|
+
declare enum Network {
|
|
164
|
+
MAINNET = "mainnet",
|
|
165
|
+
FUJI = "fuji",
|
|
166
|
+
TESTNET = "testnet"
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
170
|
+
RPC_METHOD = "rpcMethod",
|
|
171
|
+
REQUEST_PATH = "requestPath",
|
|
172
|
+
RESPONSE_CODE = "responseCode",
|
|
173
|
+
COUNTRY = "country",
|
|
174
|
+
CONTINENT = "continent",
|
|
175
|
+
USER_AGENT = "userAgent"
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
179
|
+
HOURLY = "hourly",
|
|
180
|
+
DAILY = "daily",
|
|
181
|
+
WEEKLY = "weekly",
|
|
182
|
+
MONTHLY = "monthly"
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
type RpcUsageMetricsValueAggregated = {
|
|
186
|
+
/**
|
|
187
|
+
* The total number of requests
|
|
188
|
+
*/
|
|
189
|
+
totalRequests: number;
|
|
190
|
+
/**
|
|
191
|
+
* The number of API credits used
|
|
192
|
+
*/
|
|
193
|
+
apiCreditsUsed: number;
|
|
194
|
+
/**
|
|
195
|
+
* The number of requests per second
|
|
196
|
+
*/
|
|
197
|
+
requestsPerSecond: number;
|
|
198
|
+
/**
|
|
199
|
+
* The success rate percentage
|
|
200
|
+
*/
|
|
201
|
+
successRatePercent: number;
|
|
202
|
+
/**
|
|
203
|
+
* The median response time in milliseconds
|
|
204
|
+
*/
|
|
205
|
+
medianResponseTimeMsecs: number;
|
|
206
|
+
/**
|
|
207
|
+
* The number of invalid requests
|
|
208
|
+
*/
|
|
209
|
+
invalidRequests: number;
|
|
210
|
+
/**
|
|
211
|
+
* The number of API credits wasted on invalid requests
|
|
212
|
+
*/
|
|
213
|
+
apiCreditsWasted: number;
|
|
214
|
+
/**
|
|
215
|
+
* Column name used for data aggregation
|
|
216
|
+
*/
|
|
217
|
+
groupedBy: RpcUsageMetricsValueAggregated.groupedBy;
|
|
218
|
+
/**
|
|
219
|
+
* The value of the column used for data aggregation
|
|
220
|
+
*/
|
|
221
|
+
groupValue?: (string | number);
|
|
222
|
+
};
|
|
223
|
+
declare namespace RpcUsageMetricsValueAggregated {
|
|
224
|
+
/**
|
|
225
|
+
* Column name used for data aggregation
|
|
226
|
+
*/
|
|
227
|
+
enum groupedBy {
|
|
228
|
+
RPC_METHOD = "rpcMethod",
|
|
229
|
+
RESPONSE_CODE = "responseCode",
|
|
230
|
+
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
231
|
+
REQUEST_PATH = "requestPath",
|
|
232
|
+
COUNTRY = "country",
|
|
233
|
+
CONTINENT = "continent",
|
|
234
|
+
USER_AGENT = "userAgent",
|
|
235
|
+
NONE = "None"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type RpcMetrics = {
|
|
240
|
+
/**
|
|
241
|
+
* The timestamp of the metrics value
|
|
242
|
+
*/
|
|
243
|
+
timestamp: number;
|
|
244
|
+
/**
|
|
245
|
+
* The metrics values for the timestamp
|
|
246
|
+
*/
|
|
247
|
+
values: Array<RpcUsageMetricsValueAggregated>;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
251
|
+
/**
|
|
252
|
+
* Duration in which the metrics value is aggregated
|
|
253
|
+
*/
|
|
254
|
+
aggregateDuration: string;
|
|
255
|
+
/**
|
|
256
|
+
* Metrics values
|
|
257
|
+
*/
|
|
258
|
+
metrics: Array<RpcMetrics>;
|
|
259
|
+
/**
|
|
260
|
+
* Network type for which the metrics are aggregated
|
|
261
|
+
*/
|
|
262
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
263
|
+
};
|
|
264
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
265
|
+
/**
|
|
266
|
+
* Network type for which the metrics are aggregated
|
|
267
|
+
*/
|
|
268
|
+
enum network {
|
|
269
|
+
MAINNET = "mainnet",
|
|
270
|
+
TESTNET = "testnet"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
275
|
+
RPC_METHOD = "rpcMethod",
|
|
276
|
+
RESPONSE_CODE = "responseCode",
|
|
277
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
281
|
+
HOURLY = "hourly",
|
|
282
|
+
DAILY = "daily",
|
|
283
|
+
WEEKLY = "weekly",
|
|
284
|
+
MONTHLY = "monthly"
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
288
|
+
/**
|
|
289
|
+
* Duration in which the metrics value is aggregated
|
|
290
|
+
*/
|
|
291
|
+
aggregateDuration: string;
|
|
292
|
+
/**
|
|
293
|
+
* Metrics values
|
|
294
|
+
*/
|
|
295
|
+
metrics: Array<RpcMetrics>;
|
|
296
|
+
/**
|
|
297
|
+
* ChainId for which the metrics are aggregated
|
|
298
|
+
*/
|
|
299
|
+
chainId: string;
|
|
300
|
+
};
|
|
301
|
+
|
|
151
302
|
declare enum TimeIntervalGranularityExtended {
|
|
152
303
|
MINUTE = "minute",
|
|
153
304
|
HOURLY = "hourly",
|
|
@@ -251,17 +402,17 @@ declare class DataApiUsageMetricsService {
|
|
|
251
402
|
* @returns UsageMetricsResponseDTO Successful response
|
|
252
403
|
* @throws ApiError
|
|
253
404
|
*/
|
|
254
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy,
|
|
405
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
255
406
|
/**
|
|
256
407
|
* Organization ID to fetch usage metrics for
|
|
257
408
|
*/
|
|
258
409
|
orgId?: string;
|
|
259
410
|
/**
|
|
260
|
-
*
|
|
411
|
+
* 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
412
|
*/
|
|
262
413
|
startTimestamp?: number;
|
|
263
414
|
/**
|
|
264
|
-
*
|
|
415
|
+
* 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
416
|
*/
|
|
266
417
|
endTimestamp?: number;
|
|
267
418
|
/**
|
|
@@ -273,25 +424,25 @@ declare class DataApiUsageMetricsService {
|
|
|
273
424
|
*/
|
|
274
425
|
groupBy?: UsageMetricsGroupByEnum;
|
|
275
426
|
/**
|
|
276
|
-
* Filter data by
|
|
277
|
-
*/
|
|
278
|
-
requestPath?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Filter data by request type.
|
|
427
|
+
* Filter data by chain ID.
|
|
281
428
|
*/
|
|
282
|
-
|
|
429
|
+
chainId?: string;
|
|
283
430
|
/**
|
|
284
431
|
* Filter data by response status code.
|
|
285
432
|
*/
|
|
286
433
|
responseCode?: string;
|
|
287
434
|
/**
|
|
288
|
-
* Filter data by
|
|
435
|
+
* Filter data by request type.
|
|
289
436
|
*/
|
|
290
|
-
|
|
437
|
+
requestType?: 'data' | 'rpc';
|
|
291
438
|
/**
|
|
292
439
|
* Filter data by API key ID.
|
|
293
440
|
*/
|
|
294
441
|
apiKeyId?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Filter data by request path.
|
|
444
|
+
*/
|
|
445
|
+
requestPath?: string;
|
|
295
446
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
296
447
|
/**
|
|
297
448
|
* Get logs for requests made by client
|
|
@@ -299,39 +450,39 @@ declare class DataApiUsageMetricsService {
|
|
|
299
450
|
* @returns LogsResponseDTO Successful response
|
|
300
451
|
* @throws ApiError
|
|
301
452
|
*/
|
|
302
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp,
|
|
453
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
303
454
|
/**
|
|
304
455
|
* Organization ID to fetch usage metrics for
|
|
305
456
|
*/
|
|
306
457
|
orgId?: string;
|
|
307
458
|
/**
|
|
308
|
-
*
|
|
459
|
+
* 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
460
|
*/
|
|
310
461
|
startTimestamp?: number;
|
|
311
462
|
/**
|
|
312
|
-
*
|
|
463
|
+
* 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
464
|
*/
|
|
314
465
|
endTimestamp?: number;
|
|
315
466
|
/**
|
|
316
|
-
* Filter data by
|
|
317
|
-
*/
|
|
318
|
-
requestPath?: string;
|
|
319
|
-
/**
|
|
320
|
-
* Filter data by request type.
|
|
467
|
+
* Filter data by chain ID.
|
|
321
468
|
*/
|
|
322
|
-
|
|
469
|
+
chainId?: string;
|
|
323
470
|
/**
|
|
324
471
|
* Filter data by response status code.
|
|
325
472
|
*/
|
|
326
473
|
responseCode?: string;
|
|
327
474
|
/**
|
|
328
|
-
* Filter data by
|
|
475
|
+
* Filter data by request type.
|
|
329
476
|
*/
|
|
330
|
-
|
|
477
|
+
requestType?: 'data' | 'rpc';
|
|
331
478
|
/**
|
|
332
479
|
* Filter data by API key ID.
|
|
333
480
|
*/
|
|
334
481
|
apiKeyId?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Filter data by request path.
|
|
484
|
+
*/
|
|
485
|
+
requestPath?: string;
|
|
335
486
|
/**
|
|
336
487
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
337
488
|
*/
|
|
@@ -341,6 +492,143 @@ declare class DataApiUsageMetricsService {
|
|
|
341
492
|
*/
|
|
342
493
|
pageSize?: number;
|
|
343
494
|
}): CancelablePromise<LogsResponseDTO>;
|
|
495
|
+
/**
|
|
496
|
+
* Get usage metrics for the Subnet RPC
|
|
497
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
498
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
499
|
+
* @throws ApiError
|
|
500
|
+
*/
|
|
501
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
502
|
+
/**
|
|
503
|
+
* Time interval granularity for data aggregation for subnet
|
|
504
|
+
* rpc metrics
|
|
505
|
+
*/
|
|
506
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
507
|
+
/**
|
|
508
|
+
* 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.
|
|
509
|
+
*/
|
|
510
|
+
startTimestamp?: number;
|
|
511
|
+
/**
|
|
512
|
+
* 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.
|
|
513
|
+
*/
|
|
514
|
+
endTimestamp?: number;
|
|
515
|
+
/**
|
|
516
|
+
* Query param for the criterion used for grouping metrics
|
|
517
|
+
*/
|
|
518
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by chain ID.
|
|
521
|
+
*/
|
|
522
|
+
chainId?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Filter data by response status code.
|
|
525
|
+
*/
|
|
526
|
+
responseCode?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Filter data by RPC method.
|
|
529
|
+
*/
|
|
530
|
+
rpcMethod?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Filter data by Rl Bypass API Token.
|
|
533
|
+
*/
|
|
534
|
+
rlBypassApiToken?: string;
|
|
535
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
536
|
+
/**
|
|
537
|
+
* @deprecated
|
|
538
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
539
|
+
*
|
|
540
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
541
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
542
|
+
* @throws ApiError
|
|
543
|
+
*/
|
|
544
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
545
|
+
/**
|
|
546
|
+
* Time interval granularity for data aggregation for subnet
|
|
547
|
+
* rpc metrics
|
|
548
|
+
*/
|
|
549
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
550
|
+
/**
|
|
551
|
+
* 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.
|
|
552
|
+
*/
|
|
553
|
+
startTimestamp?: number;
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
556
|
+
*/
|
|
557
|
+
endTimestamp?: number;
|
|
558
|
+
/**
|
|
559
|
+
* Query param for the criterion used for grouping metrics
|
|
560
|
+
*/
|
|
561
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
562
|
+
/**
|
|
563
|
+
* Filter data by chain ID.
|
|
564
|
+
*/
|
|
565
|
+
chainId?: string;
|
|
566
|
+
/**
|
|
567
|
+
* Filter data by response status code.
|
|
568
|
+
*/
|
|
569
|
+
responseCode?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Filter data by RPC method.
|
|
572
|
+
*/
|
|
573
|
+
rpcMethod?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Filter data by Rl Bypass API Token.
|
|
576
|
+
*/
|
|
577
|
+
rlBypassApiToken?: string;
|
|
578
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
579
|
+
/**
|
|
580
|
+
* Get usage metrics for the Primary Network RPC
|
|
581
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
582
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
583
|
+
* @throws ApiError
|
|
584
|
+
*/
|
|
585
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
586
|
+
/**
|
|
587
|
+
* Either mainnet or testnet/fuji.
|
|
588
|
+
*/
|
|
589
|
+
network: Network;
|
|
590
|
+
/**
|
|
591
|
+
* Time interval granularity for data aggregation for subnet
|
|
592
|
+
* rpc metrics
|
|
593
|
+
*/
|
|
594
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
595
|
+
/**
|
|
596
|
+
* 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.
|
|
597
|
+
*/
|
|
598
|
+
startTimestamp?: number;
|
|
599
|
+
/**
|
|
600
|
+
* 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.
|
|
601
|
+
*/
|
|
602
|
+
endTimestamp?: number;
|
|
603
|
+
/**
|
|
604
|
+
* Query param for the criterion used for grouping metrics
|
|
605
|
+
*/
|
|
606
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
607
|
+
/**
|
|
608
|
+
* Filter data by response status code.
|
|
609
|
+
*/
|
|
610
|
+
responseCode?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Filter data by request path.
|
|
613
|
+
*/
|
|
614
|
+
requestPath?: string;
|
|
615
|
+
/**
|
|
616
|
+
* 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.
|
|
617
|
+
*/
|
|
618
|
+
country?: string;
|
|
619
|
+
/**
|
|
620
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
621
|
+
*/
|
|
622
|
+
continent?: string;
|
|
623
|
+
/**
|
|
624
|
+
* Filter data by User Agent.
|
|
625
|
+
*/
|
|
626
|
+
userAgent?: string;
|
|
627
|
+
/**
|
|
628
|
+
* Filter data by RPC method.
|
|
629
|
+
*/
|
|
630
|
+
rpcMethod?: string;
|
|
631
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
344
632
|
}
|
|
345
633
|
|
|
346
634
|
declare class DefaultService {
|
|
@@ -539,6 +827,10 @@ type ListErc1155BalancesResponse = {
|
|
|
539
827
|
* 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
828
|
*/
|
|
541
829
|
nextPageToken?: string;
|
|
830
|
+
/**
|
|
831
|
+
* The native token balance for the address.
|
|
832
|
+
*/
|
|
833
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
542
834
|
/**
|
|
543
835
|
* The list of ERC-1155 token balances for the address.
|
|
544
836
|
*/
|
|
@@ -583,11 +875,22 @@ type Erc20TokenBalance = {
|
|
|
583
875
|
* The monetary value of the balance, if a price is available for the token.
|
|
584
876
|
*/
|
|
585
877
|
balanceValue?: Money;
|
|
878
|
+
/**
|
|
879
|
+
* 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.
|
|
880
|
+
*/
|
|
881
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
586
882
|
};
|
|
587
883
|
declare namespace Erc20TokenBalance {
|
|
588
884
|
enum ercType {
|
|
589
885
|
ERC_20 = "ERC-20"
|
|
590
886
|
}
|
|
887
|
+
/**
|
|
888
|
+
* 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.
|
|
889
|
+
*/
|
|
890
|
+
enum tokenReputation {
|
|
891
|
+
MALICIOUS = "Malicious",
|
|
892
|
+
BENIGN = "Benign"
|
|
893
|
+
}
|
|
591
894
|
}
|
|
592
895
|
|
|
593
896
|
type ListErc20BalancesResponse = {
|
|
@@ -595,6 +898,10 @@ type ListErc20BalancesResponse = {
|
|
|
595
898
|
* 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
899
|
*/
|
|
597
900
|
nextPageToken?: string;
|
|
901
|
+
/**
|
|
902
|
+
* The native token balance for the address.
|
|
903
|
+
*/
|
|
904
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
598
905
|
/**
|
|
599
906
|
* The list of ERC-20 token balances for the address.
|
|
600
907
|
*/
|
|
@@ -606,6 +913,10 @@ type ListErc721BalancesResponse = {
|
|
|
606
913
|
* 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
914
|
*/
|
|
608
915
|
nextPageToken?: string;
|
|
916
|
+
/**
|
|
917
|
+
* The native token balance for the address.
|
|
918
|
+
*/
|
|
919
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
609
920
|
/**
|
|
610
921
|
* The list of ERC-721 token balances for the address.
|
|
611
922
|
*/
|
|
@@ -669,7 +980,7 @@ declare class EvmBalancesService {
|
|
|
669
980
|
*/
|
|
670
981
|
pageToken?: string;
|
|
671
982
|
/**
|
|
672
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
983
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
673
984
|
*/
|
|
674
985
|
pageSize?: number;
|
|
675
986
|
/**
|
|
@@ -707,7 +1018,7 @@ declare class EvmBalancesService {
|
|
|
707
1018
|
*/
|
|
708
1019
|
pageToken?: string;
|
|
709
1020
|
/**
|
|
710
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1021
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
711
1022
|
*/
|
|
712
1023
|
pageSize?: number;
|
|
713
1024
|
/**
|
|
@@ -743,7 +1054,7 @@ declare class EvmBalancesService {
|
|
|
743
1054
|
*/
|
|
744
1055
|
pageToken?: string;
|
|
745
1056
|
/**
|
|
746
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1057
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
747
1058
|
*/
|
|
748
1059
|
pageSize?: number;
|
|
749
1060
|
/**
|
|
@@ -773,7 +1084,7 @@ declare class EvmBalancesService {
|
|
|
773
1084
|
*/
|
|
774
1085
|
pageToken?: string;
|
|
775
1086
|
/**
|
|
776
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1087
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
777
1088
|
*/
|
|
778
1089
|
pageSize?: number;
|
|
779
1090
|
/**
|
|
@@ -784,6 +1095,10 @@ declare class EvmBalancesService {
|
|
|
784
1095
|
}
|
|
785
1096
|
|
|
786
1097
|
type GetEvmBlockResponse = {
|
|
1098
|
+
/**
|
|
1099
|
+
* The EVM chain ID on which the block was created.
|
|
1100
|
+
*/
|
|
1101
|
+
chainId: string;
|
|
787
1102
|
/**
|
|
788
1103
|
* The block number on the chain.
|
|
789
1104
|
*/
|
|
@@ -828,6 +1143,10 @@ type GetEvmBlockResponse = {
|
|
|
828
1143
|
};
|
|
829
1144
|
|
|
830
1145
|
type EvmBlock = {
|
|
1146
|
+
/**
|
|
1147
|
+
* The EVM chain ID on which the block was created.
|
|
1148
|
+
*/
|
|
1149
|
+
chainId: string;
|
|
831
1150
|
/**
|
|
832
1151
|
* The block number on the chain.
|
|
833
1152
|
*/
|
|
@@ -882,6 +1201,26 @@ type ListEvmBlocksResponse = {
|
|
|
882
1201
|
declare class EvmBlocksService {
|
|
883
1202
|
readonly httpRequest: BaseHttpRequest;
|
|
884
1203
|
constructor(httpRequest: BaseHttpRequest);
|
|
1204
|
+
/**
|
|
1205
|
+
* List latest blocks across all supported EVM chains
|
|
1206
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1207
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1208
|
+
* @throws ApiError
|
|
1209
|
+
*/
|
|
1210
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1211
|
+
/**
|
|
1212
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1213
|
+
*/
|
|
1214
|
+
pageToken?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1217
|
+
*/
|
|
1218
|
+
pageSize?: number;
|
|
1219
|
+
/**
|
|
1220
|
+
* Either mainnet or testnet/fuji.
|
|
1221
|
+
*/
|
|
1222
|
+
network?: Network;
|
|
1223
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
885
1224
|
/**
|
|
886
1225
|
* List latest blocks
|
|
887
1226
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1004,23 +1343,145 @@ type ChainInfo = {
|
|
|
1004
1343
|
enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
|
|
1005
1344
|
};
|
|
1006
1345
|
|
|
1346
|
+
type ListAddressChainsResponse = {
|
|
1347
|
+
indexedChains?: Array<ChainInfo>;
|
|
1348
|
+
unindexedChains?: Array<string>;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1007
1351
|
type ListChainsResponse = {
|
|
1008
1352
|
chains: Array<ChainInfo>;
|
|
1009
1353
|
};
|
|
1010
1354
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1355
|
+
/**
|
|
1356
|
+
* 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.
|
|
1357
|
+
*/
|
|
1358
|
+
declare enum TransactionMethodType {
|
|
1359
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1360
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1361
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
type Method = {
|
|
1365
|
+
callType: TransactionMethodType;
|
|
1366
|
+
/**
|
|
1367
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1368
|
+
*/
|
|
1369
|
+
methodHash: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* 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'.
|
|
1372
|
+
*/
|
|
1373
|
+
methodName?: string;
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
type RichAddress = {
|
|
1377
|
+
/**
|
|
1378
|
+
* The contract name.
|
|
1379
|
+
*/
|
|
1380
|
+
name?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* The contract symbol.
|
|
1383
|
+
*/
|
|
1384
|
+
symbol?: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1387
|
+
*/
|
|
1388
|
+
decimals?: number;
|
|
1389
|
+
/**
|
|
1390
|
+
* The logo uri for the address.
|
|
1391
|
+
*/
|
|
1392
|
+
logoUri?: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1395
|
+
*/
|
|
1396
|
+
address: string;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
type NativeTransaction = {
|
|
1400
|
+
/**
|
|
1401
|
+
* The block number on the chain.
|
|
1402
|
+
*/
|
|
1403
|
+
blockNumber: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* The block finality timestamp.
|
|
1406
|
+
*/
|
|
1407
|
+
blockTimestamp: number;
|
|
1408
|
+
/**
|
|
1409
|
+
* The block hash identifier.
|
|
1410
|
+
*/
|
|
1411
|
+
blockHash: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* The EVM chain ID on which the transaction occured.
|
|
1414
|
+
*/
|
|
1415
|
+
chainId: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1418
|
+
*/
|
|
1419
|
+
blockIndex: number;
|
|
1420
|
+
/**
|
|
1421
|
+
* The transaction hash identifier.
|
|
1422
|
+
*/
|
|
1423
|
+
txHash: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1426
|
+
*/
|
|
1427
|
+
txStatus: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The transaction type.
|
|
1430
|
+
*/
|
|
1431
|
+
txType: number;
|
|
1432
|
+
/**
|
|
1433
|
+
* The gas limit set for the transaction.
|
|
1434
|
+
*/
|
|
1435
|
+
gasLimit: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* The amount of gas used.
|
|
1438
|
+
*/
|
|
1439
|
+
gasUsed: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1442
|
+
*/
|
|
1443
|
+
gasPrice: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* The nonce used by the sender of the transaction.
|
|
1446
|
+
*/
|
|
1447
|
+
nonce: string;
|
|
1448
|
+
from: RichAddress;
|
|
1449
|
+
to: RichAddress;
|
|
1450
|
+
method?: Method;
|
|
1451
|
+
value: string;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
type ListNativeTransactionsResponse = {
|
|
1455
|
+
/**
|
|
1456
|
+
* 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.
|
|
1457
|
+
*/
|
|
1458
|
+
nextPageToken?: string;
|
|
1459
|
+
transactions: Array<NativeTransaction>;
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
declare enum TransactionStatus {
|
|
1463
|
+
FAILED = "failed",
|
|
1464
|
+
SUCCESS = "success"
|
|
1016
1465
|
}
|
|
1017
1466
|
|
|
1018
1467
|
declare class EvmChainsService {
|
|
1019
1468
|
readonly httpRequest: BaseHttpRequest;
|
|
1020
1469
|
constructor(httpRequest: BaseHttpRequest);
|
|
1470
|
+
/**
|
|
1471
|
+
* List all chains associated with a given address
|
|
1472
|
+
* 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.
|
|
1473
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1474
|
+
* @throws ApiError
|
|
1475
|
+
*/
|
|
1476
|
+
listAddressChains({ address, }: {
|
|
1477
|
+
/**
|
|
1478
|
+
* A wallet address.
|
|
1479
|
+
*/
|
|
1480
|
+
address: string;
|
|
1481
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1021
1482
|
/**
|
|
1022
1483
|
* List chains
|
|
1023
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1484
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1024
1485
|
* @returns ListChainsResponse Successful response
|
|
1025
1486
|
* @throws ApiError
|
|
1026
1487
|
*/
|
|
@@ -1036,7 +1497,7 @@ declare class EvmChainsService {
|
|
|
1036
1497
|
}): CancelablePromise<ListChainsResponse>;
|
|
1037
1498
|
/**
|
|
1038
1499
|
* Get chain information
|
|
1039
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1500
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1040
1501
|
* @returns GetChainResponse Successful response
|
|
1041
1502
|
* @throws ApiError
|
|
1042
1503
|
*/
|
|
@@ -1046,6 +1507,68 @@ declare class EvmChainsService {
|
|
|
1046
1507
|
*/
|
|
1047
1508
|
chainId: string;
|
|
1048
1509
|
}): CancelablePromise<GetChainResponse>;
|
|
1510
|
+
/**
|
|
1511
|
+
* @deprecated
|
|
1512
|
+
* **[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.
|
|
1513
|
+
*
|
|
1514
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1515
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1516
|
+
* @throws ApiError
|
|
1517
|
+
*/
|
|
1518
|
+
getAddressChains({ address, }: {
|
|
1519
|
+
/**
|
|
1520
|
+
* A wallet address.
|
|
1521
|
+
*/
|
|
1522
|
+
address: string;
|
|
1523
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1524
|
+
/**
|
|
1525
|
+
* @deprecated
|
|
1526
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1527
|
+
*
|
|
1528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1529
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1530
|
+
* @throws ApiError
|
|
1531
|
+
*/
|
|
1532
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1533
|
+
/**
|
|
1534
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1535
|
+
*/
|
|
1536
|
+
pageToken?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1539
|
+
*/
|
|
1540
|
+
pageSize?: number;
|
|
1541
|
+
/**
|
|
1542
|
+
* Either mainnet or testnet/fuji.
|
|
1543
|
+
*/
|
|
1544
|
+
network?: Network;
|
|
1545
|
+
/**
|
|
1546
|
+
* A status filter for listed transactions.
|
|
1547
|
+
*/
|
|
1548
|
+
status?: TransactionStatus;
|
|
1549
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1550
|
+
/**
|
|
1551
|
+
* @deprecated
|
|
1552
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1553
|
+
*
|
|
1554
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1555
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1556
|
+
* @throws ApiError
|
|
1557
|
+
*/
|
|
1558
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1559
|
+
/**
|
|
1560
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1561
|
+
*/
|
|
1562
|
+
pageToken?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1565
|
+
*/
|
|
1566
|
+
pageSize?: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* Either mainnet or testnet/fuji.
|
|
1569
|
+
*/
|
|
1570
|
+
network?: Network;
|
|
1571
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1049
1572
|
}
|
|
1050
1573
|
|
|
1051
1574
|
type ImageAsset = {
|
|
@@ -1217,7 +1740,7 @@ type Erc1155Contract = {
|
|
|
1217
1740
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1218
1741
|
*/
|
|
1219
1742
|
address: string;
|
|
1220
|
-
deploymentDetails
|
|
1743
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1221
1744
|
ercType: Erc1155Contract.ercType;
|
|
1222
1745
|
/**
|
|
1223
1746
|
* The contract symbol.
|
|
@@ -1248,7 +1771,7 @@ type Erc20Contract = {
|
|
|
1248
1771
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1249
1772
|
*/
|
|
1250
1773
|
address: string;
|
|
1251
|
-
deploymentDetails
|
|
1774
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1252
1775
|
ercType: Erc20Contract.ercType;
|
|
1253
1776
|
/**
|
|
1254
1777
|
* The contract symbol.
|
|
@@ -1283,7 +1806,7 @@ type Erc721Contract = {
|
|
|
1283
1806
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1284
1807
|
*/
|
|
1285
1808
|
address: string;
|
|
1286
|
-
deploymentDetails
|
|
1809
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1287
1810
|
ercType: Erc721Contract.ercType;
|
|
1288
1811
|
/**
|
|
1289
1812
|
* The contract symbol.
|
|
@@ -1313,7 +1836,7 @@ type UnknownContract = {
|
|
|
1313
1836
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1314
1837
|
*/
|
|
1315
1838
|
address: string;
|
|
1316
|
-
deploymentDetails
|
|
1839
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1317
1840
|
ercType: UnknownContract.ercType;
|
|
1318
1841
|
};
|
|
1319
1842
|
declare namespace UnknownContract {
|
|
@@ -1380,29 +1903,6 @@ declare namespace Erc1155Token {
|
|
|
1380
1903
|
}
|
|
1381
1904
|
}
|
|
1382
1905
|
|
|
1383
|
-
type RichAddress = {
|
|
1384
|
-
/**
|
|
1385
|
-
* The contract name.
|
|
1386
|
-
*/
|
|
1387
|
-
name?: string;
|
|
1388
|
-
/**
|
|
1389
|
-
* The contract symbol.
|
|
1390
|
-
*/
|
|
1391
|
-
symbol?: string;
|
|
1392
|
-
/**
|
|
1393
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1394
|
-
*/
|
|
1395
|
-
decimals?: number;
|
|
1396
|
-
/**
|
|
1397
|
-
* The logo uri for the address.
|
|
1398
|
-
*/
|
|
1399
|
-
logoUri?: string;
|
|
1400
|
-
/**
|
|
1401
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1402
|
-
*/
|
|
1403
|
-
address: string;
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
1906
|
type Erc1155TransferDetails = {
|
|
1407
1907
|
from: RichAddress;
|
|
1408
1908
|
to: RichAddress;
|
|
@@ -1487,27 +1987,6 @@ type Erc721TransferDetails = {
|
|
|
1487
1987
|
erc721Token: Erc721Token;
|
|
1488
1988
|
};
|
|
1489
1989
|
|
|
1490
|
-
/**
|
|
1491
|
-
* 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.
|
|
1492
|
-
*/
|
|
1493
|
-
declare enum TransactionMethodType {
|
|
1494
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1495
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1496
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
type Method = {
|
|
1500
|
-
callType: TransactionMethodType;
|
|
1501
|
-
/**
|
|
1502
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1503
|
-
*/
|
|
1504
|
-
methodHash: string;
|
|
1505
|
-
/**
|
|
1506
|
-
* 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'.
|
|
1507
|
-
*/
|
|
1508
|
-
methodName?: string;
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
1990
|
type FullNativeTransactionDetails = {
|
|
1512
1991
|
/**
|
|
1513
1992
|
* The block number on the chain.
|
|
@@ -1521,6 +2000,10 @@ type FullNativeTransactionDetails = {
|
|
|
1521
2000
|
* The block hash identifier.
|
|
1522
2001
|
*/
|
|
1523
2002
|
blockHash: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* The EVM chain ID on which the transaction occured.
|
|
2005
|
+
*/
|
|
2006
|
+
chainId: string;
|
|
1524
2007
|
/**
|
|
1525
2008
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1526
2009
|
*/
|
|
@@ -1571,6 +2054,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1571
2054
|
CALL = "CALL",
|
|
1572
2055
|
CREATE = "CREATE",
|
|
1573
2056
|
CREATE2 = "CREATE2",
|
|
2057
|
+
CREATE3 = "CREATE3",
|
|
1574
2058
|
CALLCODE = "CALLCODE",
|
|
1575
2059
|
DELEGATECALL = "DELEGATECALL",
|
|
1576
2060
|
STATICCALL = "STATICCALL"
|
|
@@ -1612,11 +2096,11 @@ type TeleporterMessageInfo = {
|
|
|
1612
2096
|
/**
|
|
1613
2097
|
* chain id of the source chain. valid only for destination transactions
|
|
1614
2098
|
*/
|
|
1615
|
-
sourceChainId?:
|
|
2099
|
+
sourceChainId?: string;
|
|
1616
2100
|
/**
|
|
1617
2101
|
* chain id of the destination chain. valid only for source transactions
|
|
1618
2102
|
*/
|
|
1619
|
-
destinationChainId?:
|
|
2103
|
+
destinationChainId?: string;
|
|
1620
2104
|
};
|
|
1621
2105
|
|
|
1622
2106
|
type GetTransactionResponse = {
|
|
@@ -1633,7 +2117,7 @@ type GetTransactionResponse = {
|
|
|
1633
2117
|
*/
|
|
1634
2118
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1635
2119
|
/**
|
|
1636
|
-
* 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
|
|
2120
|
+
* 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.
|
|
1637
2121
|
*/
|
|
1638
2122
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1639
2123
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1784,76 +2268,17 @@ type ListInternalTransactionsResponse = {
|
|
|
1784
2268
|
transactions: Array<InternalTransaction>;
|
|
1785
2269
|
};
|
|
1786
2270
|
|
|
1787
|
-
type
|
|
2271
|
+
type TransactionDetails = {
|
|
1788
2272
|
/**
|
|
1789
|
-
* The
|
|
2273
|
+
* The native (top-level) transaction details.
|
|
1790
2274
|
*/
|
|
1791
|
-
|
|
2275
|
+
nativeTransaction: NativeTransaction;
|
|
1792
2276
|
/**
|
|
1793
|
-
* The
|
|
2277
|
+
* The list of ERC-20 transfers.
|
|
1794
2278
|
*/
|
|
1795
|
-
|
|
2279
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1796
2280
|
/**
|
|
1797
|
-
* The
|
|
1798
|
-
*/
|
|
1799
|
-
blockHash: string;
|
|
1800
|
-
/**
|
|
1801
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
1802
|
-
*/
|
|
1803
|
-
blockIndex: number;
|
|
1804
|
-
/**
|
|
1805
|
-
* The transaction hash identifier.
|
|
1806
|
-
*/
|
|
1807
|
-
txHash: string;
|
|
1808
|
-
/**
|
|
1809
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1810
|
-
*/
|
|
1811
|
-
txStatus: string;
|
|
1812
|
-
/**
|
|
1813
|
-
* The transaction type.
|
|
1814
|
-
*/
|
|
1815
|
-
txType: number;
|
|
1816
|
-
/**
|
|
1817
|
-
* The gas limit set for the transaction.
|
|
1818
|
-
*/
|
|
1819
|
-
gasLimit: string;
|
|
1820
|
-
/**
|
|
1821
|
-
* The amount of gas used.
|
|
1822
|
-
*/
|
|
1823
|
-
gasUsed: string;
|
|
1824
|
-
/**
|
|
1825
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1826
|
-
*/
|
|
1827
|
-
gasPrice: string;
|
|
1828
|
-
/**
|
|
1829
|
-
* The nonce used by the sender of the transaction.
|
|
1830
|
-
*/
|
|
1831
|
-
nonce: string;
|
|
1832
|
-
from: RichAddress;
|
|
1833
|
-
to: RichAddress;
|
|
1834
|
-
method?: Method;
|
|
1835
|
-
value: string;
|
|
1836
|
-
};
|
|
1837
|
-
|
|
1838
|
-
type ListNativeTransactionsResponse = {
|
|
1839
|
-
/**
|
|
1840
|
-
* 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.
|
|
1841
|
-
*/
|
|
1842
|
-
nextPageToken?: string;
|
|
1843
|
-
transactions: Array<NativeTransaction>;
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
type TransactionDetails = {
|
|
1847
|
-
/**
|
|
1848
|
-
* The native (top-level) transaction details.
|
|
1849
|
-
*/
|
|
1850
|
-
nativeTransaction: NativeTransaction;
|
|
1851
|
-
/**
|
|
1852
|
-
* The list of ERC-20 transfers.
|
|
1853
|
-
*/
|
|
1854
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1855
|
-
/**
|
|
1856
|
-
* The list of ERC-721 transfers.
|
|
2281
|
+
* The list of ERC-721 transfers.
|
|
1857
2282
|
*/
|
|
1858
2283
|
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1859
2284
|
/**
|
|
@@ -1861,7 +2286,7 @@ type TransactionDetails = {
|
|
|
1861
2286
|
*/
|
|
1862
2287
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1863
2288
|
/**
|
|
1864
|
-
* 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
|
|
2289
|
+
* 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.
|
|
1865
2290
|
*/
|
|
1866
2291
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1867
2292
|
};
|
|
@@ -1887,14 +2312,33 @@ declare enum SortOrder {
|
|
|
1887
2312
|
DESC = "desc"
|
|
1888
2313
|
}
|
|
1889
2314
|
|
|
1890
|
-
declare enum TransactionStatus {
|
|
1891
|
-
FAILED = "failed",
|
|
1892
|
-
SUCCESS = "success"
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
2315
|
declare class EvmTransactionsService {
|
|
1896
2316
|
readonly httpRequest: BaseHttpRequest;
|
|
1897
2317
|
constructor(httpRequest: BaseHttpRequest);
|
|
2318
|
+
/**
|
|
2319
|
+
* List the latest transactions across all supported EVM chains
|
|
2320
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2321
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
|
+
* @throws ApiError
|
|
2323
|
+
*/
|
|
2324
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2325
|
+
/**
|
|
2326
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2327
|
+
*/
|
|
2328
|
+
pageToken?: string;
|
|
2329
|
+
/**
|
|
2330
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2331
|
+
*/
|
|
2332
|
+
pageSize?: number;
|
|
2333
|
+
/**
|
|
2334
|
+
* Either mainnet or testnet/fuji.
|
|
2335
|
+
*/
|
|
2336
|
+
network?: Network;
|
|
2337
|
+
/**
|
|
2338
|
+
* A status filter for listed transactions.
|
|
2339
|
+
*/
|
|
2340
|
+
status?: TransactionStatus;
|
|
2341
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1898
2342
|
/**
|
|
1899
2343
|
* Get deployment transaction
|
|
1900
2344
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2141,7 +2585,7 @@ declare class EvmTransactionsService {
|
|
|
2141
2585
|
* List internal transactions
|
|
2142
2586
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2143
2587
|
*
|
|
2144
|
-
* 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.
|
|
2588
|
+
* 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.
|
|
2145
2589
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2146
2590
|
* @throws ApiError
|
|
2147
2591
|
*/
|
|
@@ -2193,7 +2637,7 @@ declare class EvmTransactionsService {
|
|
|
2193
2637
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2194
2638
|
* @throws ApiError
|
|
2195
2639
|
*/
|
|
2196
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2640
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2197
2641
|
/**
|
|
2198
2642
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2199
2643
|
*/
|
|
@@ -2202,6 +2646,14 @@ declare class EvmTransactionsService {
|
|
|
2202
2646
|
* A block identifier which is either a block number or the block hash.
|
|
2203
2647
|
*/
|
|
2204
2648
|
blockId: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2651
|
+
*/
|
|
2652
|
+
pageToken?: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2655
|
+
*/
|
|
2656
|
+
pageSize?: number;
|
|
2205
2657
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2206
2658
|
/**
|
|
2207
2659
|
* List latest transactions
|
|
@@ -2229,66 +2681,246 @@ declare class EvmTransactionsService {
|
|
|
2229
2681
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2230
2682
|
}
|
|
2231
2683
|
|
|
2684
|
+
type HealthIndicatorResultDto = {
|
|
2685
|
+
/**
|
|
2686
|
+
* Status of the health indicator.
|
|
2687
|
+
*/
|
|
2688
|
+
status?: HealthIndicatorResultDto.status;
|
|
2689
|
+
};
|
|
2690
|
+
declare namespace HealthIndicatorResultDto {
|
|
2691
|
+
/**
|
|
2692
|
+
* Status of the health indicator.
|
|
2693
|
+
*/
|
|
2694
|
+
enum status {
|
|
2695
|
+
UP = "up",
|
|
2696
|
+
DOWN = "down"
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
type HealthCheckResultDto = {
|
|
2701
|
+
status?: HealthCheckResultDto.status;
|
|
2702
|
+
info?: any | null;
|
|
2703
|
+
error?: any | null;
|
|
2704
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2705
|
+
};
|
|
2706
|
+
declare namespace HealthCheckResultDto {
|
|
2707
|
+
enum status {
|
|
2708
|
+
ERROR = "error",
|
|
2709
|
+
OK = "ok",
|
|
2710
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2232
2714
|
declare class HealthCheckService {
|
|
2233
2715
|
readonly httpRequest: BaseHttpRequest;
|
|
2234
2716
|
constructor(httpRequest: BaseHttpRequest);
|
|
2235
2717
|
/**
|
|
2236
2718
|
* Get the health of the service
|
|
2237
|
-
*
|
|
2719
|
+
* Check the health of the service.
|
|
2720
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2238
2721
|
* @throws ApiError
|
|
2239
2722
|
*/
|
|
2240
|
-
dataHealthCheck(): CancelablePromise<
|
|
2241
|
-
status?: string;
|
|
2242
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2243
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2244
|
-
details?: Record<string, Record<string, string>>;
|
|
2245
|
-
}>;
|
|
2723
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2246
2724
|
}
|
|
2247
2725
|
|
|
2248
|
-
type
|
|
2726
|
+
type IcmDestinationTransaction = {
|
|
2727
|
+
txHash: string;
|
|
2728
|
+
timestamp: number;
|
|
2729
|
+
gasSpent: string;
|
|
2730
|
+
rewardRedeemer: string;
|
|
2731
|
+
delivererAddress: string;
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2734
|
+
type IcmReceipt = {
|
|
2735
|
+
receivedMessageNonce: string;
|
|
2736
|
+
relayerRewardAddress: string;
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
type IcmRewardDetails = {
|
|
2740
|
+
/**
|
|
2741
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2742
|
+
*/
|
|
2743
|
+
address: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* The contract name.
|
|
2746
|
+
*/
|
|
2747
|
+
name: string;
|
|
2748
|
+
/**
|
|
2749
|
+
* The contract symbol.
|
|
2750
|
+
*/
|
|
2751
|
+
symbol: string;
|
|
2752
|
+
/**
|
|
2753
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2754
|
+
*/
|
|
2755
|
+
decimals: number;
|
|
2756
|
+
/**
|
|
2757
|
+
* The logo uri for the address.
|
|
2758
|
+
*/
|
|
2759
|
+
logoUri?: string;
|
|
2760
|
+
ercType: IcmRewardDetails.ercType;
|
|
2761
|
+
/**
|
|
2762
|
+
* The token price, if available.
|
|
2763
|
+
*/
|
|
2764
|
+
price?: Money;
|
|
2765
|
+
value: string;
|
|
2766
|
+
};
|
|
2767
|
+
declare namespace IcmRewardDetails {
|
|
2768
|
+
enum ercType {
|
|
2769
|
+
ERC_20 = "ERC-20"
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
type IcmSourceTransaction = {
|
|
2774
|
+
txHash: string;
|
|
2775
|
+
timestamp: number;
|
|
2776
|
+
gasSpent: string;
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
type DeliveredIcmMessage = {
|
|
2780
|
+
messageId: string;
|
|
2781
|
+
icmContractAddress: string;
|
|
2782
|
+
sourceBlockchainId: string;
|
|
2783
|
+
destinationBlockchainId: string;
|
|
2784
|
+
sourceEvmChainId: string;
|
|
2785
|
+
destinationEvmChainId: string;
|
|
2786
|
+
messageNonce: string;
|
|
2787
|
+
from: string;
|
|
2788
|
+
to: string;
|
|
2789
|
+
data?: string;
|
|
2790
|
+
messageExecuted: boolean;
|
|
2791
|
+
receipts: Array<IcmReceipt>;
|
|
2792
|
+
receiptDelivered: boolean;
|
|
2793
|
+
rewardDetails: IcmRewardDetails;
|
|
2794
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2795
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2796
|
+
status: DeliveredIcmMessage.status;
|
|
2797
|
+
};
|
|
2798
|
+
declare namespace DeliveredIcmMessage {
|
|
2799
|
+
enum status {
|
|
2800
|
+
DELIVERED = "delivered"
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2805
|
+
messageId: string;
|
|
2806
|
+
icmContractAddress: string;
|
|
2807
|
+
sourceBlockchainId: string;
|
|
2808
|
+
destinationBlockchainId: string;
|
|
2809
|
+
sourceEvmChainId: string;
|
|
2810
|
+
destinationEvmChainId: string;
|
|
2811
|
+
messageNonce: string;
|
|
2812
|
+
from: string;
|
|
2813
|
+
to: string;
|
|
2814
|
+
data?: string;
|
|
2815
|
+
messageExecuted: boolean;
|
|
2816
|
+
receipts: Array<IcmReceipt>;
|
|
2817
|
+
receiptDelivered: boolean;
|
|
2818
|
+
rewardDetails: IcmRewardDetails;
|
|
2819
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2820
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2821
|
+
};
|
|
2822
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2823
|
+
enum status {
|
|
2824
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
type PendingIcmMessage = {
|
|
2829
|
+
messageId: string;
|
|
2830
|
+
icmContractAddress: string;
|
|
2831
|
+
sourceBlockchainId: string;
|
|
2832
|
+
destinationBlockchainId: string;
|
|
2833
|
+
sourceEvmChainId: string;
|
|
2834
|
+
destinationEvmChainId: string;
|
|
2835
|
+
messageNonce: string;
|
|
2836
|
+
from: string;
|
|
2837
|
+
to: string;
|
|
2838
|
+
data?: string;
|
|
2839
|
+
messageExecuted: boolean;
|
|
2840
|
+
receipts: Array<IcmReceipt>;
|
|
2841
|
+
receiptDelivered: boolean;
|
|
2842
|
+
rewardDetails: IcmRewardDetails;
|
|
2843
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2844
|
+
status: PendingIcmMessage.status;
|
|
2845
|
+
};
|
|
2846
|
+
declare namespace PendingIcmMessage {
|
|
2847
|
+
enum status {
|
|
2848
|
+
PENDING = "pending"
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
type ListIcmMessagesResponse = {
|
|
2249
2853
|
/**
|
|
2250
2854
|
* 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.
|
|
2251
2855
|
*/
|
|
2252
2856
|
nextPageToken?: string;
|
|
2253
|
-
|
|
2857
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2254
2858
|
};
|
|
2255
2859
|
|
|
2256
|
-
declare class
|
|
2860
|
+
declare class InterchainMessagingService {
|
|
2257
2861
|
readonly httpRequest: BaseHttpRequest;
|
|
2258
2862
|
constructor(httpRequest: BaseHttpRequest);
|
|
2259
2863
|
/**
|
|
2260
|
-
*
|
|
2261
|
-
*
|
|
2864
|
+
* Get an ICM message
|
|
2865
|
+
* Gets an ICM message by teleporter message ID.
|
|
2262
2866
|
* @returns any Successful response
|
|
2263
2867
|
* @throws ApiError
|
|
2264
2868
|
*/
|
|
2265
|
-
|
|
2869
|
+
getIcmMessage({ messageId, }: {
|
|
2266
2870
|
/**
|
|
2267
|
-
*
|
|
2871
|
+
* The teleporter message ID of the ICM message.
|
|
2268
2872
|
*/
|
|
2269
|
-
|
|
2873
|
+
messageId: string;
|
|
2874
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2875
|
+
/**
|
|
2876
|
+
* List ICM messages
|
|
2877
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2878
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2879
|
+
* @throws ApiError
|
|
2880
|
+
*/
|
|
2881
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2270
2882
|
/**
|
|
2271
|
-
*
|
|
2883
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2272
2884
|
*/
|
|
2273
|
-
|
|
2885
|
+
pageToken?: string;
|
|
2274
2886
|
/**
|
|
2275
|
-
*
|
|
2887
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2276
2888
|
*/
|
|
2277
|
-
|
|
2278
|
-
|
|
2889
|
+
pageSize?: number;
|
|
2890
|
+
/**
|
|
2891
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2892
|
+
*/
|
|
2893
|
+
sourceBlockchainId?: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2896
|
+
*/
|
|
2897
|
+
destinationBlockchainId?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2900
|
+
*/
|
|
2901
|
+
blockchainId?: string;
|
|
2902
|
+
/**
|
|
2903
|
+
* The address of the recipient of the ICM message.
|
|
2904
|
+
*/
|
|
2905
|
+
to?: string;
|
|
2906
|
+
/**
|
|
2907
|
+
* The address of the sender of the ICM message.
|
|
2908
|
+
*/
|
|
2909
|
+
from?: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* Either mainnet or testnet/fuji.
|
|
2912
|
+
*/
|
|
2913
|
+
network?: Network;
|
|
2914
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2279
2915
|
/**
|
|
2280
|
-
* List
|
|
2281
|
-
* Lists
|
|
2282
|
-
* @returns
|
|
2916
|
+
* List ICM messages by address
|
|
2917
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2918
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2283
2919
|
* @throws ApiError
|
|
2284
2920
|
*/
|
|
2285
|
-
|
|
2286
|
-
/**
|
|
2287
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2288
|
-
*/
|
|
2289
|
-
chainId: string;
|
|
2921
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2290
2922
|
/**
|
|
2291
|
-
*
|
|
2923
|
+
* An EVM address.
|
|
2292
2924
|
*/
|
|
2293
2925
|
address: string;
|
|
2294
2926
|
/**
|
|
@@ -2299,7 +2931,68 @@ declare class NfTsService {
|
|
|
2299
2931
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2300
2932
|
*/
|
|
2301
2933
|
pageSize?: number;
|
|
2302
|
-
|
|
2934
|
+
/**
|
|
2935
|
+
* Either mainnet or testnet/fuji.
|
|
2936
|
+
*/
|
|
2937
|
+
network?: Network;
|
|
2938
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
type ListNftTokens = {
|
|
2942
|
+
/**
|
|
2943
|
+
* 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.
|
|
2944
|
+
*/
|
|
2945
|
+
nextPageToken?: string;
|
|
2946
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
declare class NfTsService {
|
|
2950
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2951
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2952
|
+
/**
|
|
2953
|
+
* Reindex NFT metadata
|
|
2954
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2955
|
+
* @returns any Successful response
|
|
2956
|
+
* @throws ApiError
|
|
2957
|
+
*/
|
|
2958
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2959
|
+
/**
|
|
2960
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2961
|
+
*/
|
|
2962
|
+
chainId: string;
|
|
2963
|
+
/**
|
|
2964
|
+
* Contract address on the relevant chain.
|
|
2965
|
+
*/
|
|
2966
|
+
address: string;
|
|
2967
|
+
/**
|
|
2968
|
+
* TokenId on the contract
|
|
2969
|
+
*/
|
|
2970
|
+
tokenId: string;
|
|
2971
|
+
}): CancelablePromise<any>;
|
|
2972
|
+
/**
|
|
2973
|
+
* List tokens
|
|
2974
|
+
* Lists tokens for an NFT contract.
|
|
2975
|
+
* @returns ListNftTokens Successful response
|
|
2976
|
+
* @throws ApiError
|
|
2977
|
+
*/
|
|
2978
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2979
|
+
/**
|
|
2980
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2981
|
+
*/
|
|
2982
|
+
chainId: string;
|
|
2983
|
+
/**
|
|
2984
|
+
* Contract address on the relevant chain.
|
|
2985
|
+
*/
|
|
2986
|
+
address: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2989
|
+
*/
|
|
2990
|
+
pageToken?: string;
|
|
2991
|
+
/**
|
|
2992
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2993
|
+
*/
|
|
2994
|
+
pageSize?: number;
|
|
2995
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2303
2996
|
/**
|
|
2304
2997
|
* Get token details
|
|
2305
2998
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -2322,6 +3015,108 @@ declare class NfTsService {
|
|
|
2322
3015
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2323
3016
|
}
|
|
2324
3017
|
|
|
3018
|
+
type AccessRequest = {
|
|
3019
|
+
/**
|
|
3020
|
+
* The email address to send the access token to
|
|
3021
|
+
*/
|
|
3022
|
+
email: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* The captcha to verify the user
|
|
3025
|
+
*/
|
|
3026
|
+
captcha: string;
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
type NotificationsResponse = {
|
|
3030
|
+
message: string;
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
type SubscribeRequest = {
|
|
3034
|
+
/**
|
|
3035
|
+
* The access token to use for authentication
|
|
3036
|
+
*/
|
|
3037
|
+
accessToken: string;
|
|
3038
|
+
/**
|
|
3039
|
+
* The node ID to subscribe to
|
|
3040
|
+
*/
|
|
3041
|
+
nodeId: string;
|
|
3042
|
+
/**
|
|
3043
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3044
|
+
*/
|
|
3045
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3046
|
+
};
|
|
3047
|
+
|
|
3048
|
+
type SubscriptionsRequest = {
|
|
3049
|
+
/**
|
|
3050
|
+
* The access token to use for authentication
|
|
3051
|
+
*/
|
|
3052
|
+
accessToken: string;
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
type SubscriptionsResponse = {
|
|
3056
|
+
/**
|
|
3057
|
+
* The email address of the user
|
|
3058
|
+
*/
|
|
3059
|
+
email: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* The subscriptions of the user
|
|
3062
|
+
*/
|
|
3063
|
+
subscriptions: Record<string, {
|
|
3064
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3065
|
+
}>;
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
type UnsubscribeRequest = {
|
|
3069
|
+
/**
|
|
3070
|
+
* The access token to use for authentication
|
|
3071
|
+
*/
|
|
3072
|
+
accessToken: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* The node ID to subscribe to
|
|
3075
|
+
*/
|
|
3076
|
+
nodeId: string;
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
declare class NotificationsService {
|
|
3080
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3081
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3082
|
+
/**
|
|
3083
|
+
* Access Notifications
|
|
3084
|
+
* Access notifications.
|
|
3085
|
+
* @returns NotificationsResponse Successful response
|
|
3086
|
+
* @throws ApiError
|
|
3087
|
+
*/
|
|
3088
|
+
access({ requestBody, }: {
|
|
3089
|
+
requestBody: AccessRequest;
|
|
3090
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3091
|
+
/**
|
|
3092
|
+
* Subscribe to Notifications
|
|
3093
|
+
* Subscribe to receive notifications.
|
|
3094
|
+
* @returns NotificationsResponse Successful response
|
|
3095
|
+
* @throws ApiError
|
|
3096
|
+
*/
|
|
3097
|
+
subscribe({ requestBody, }: {
|
|
3098
|
+
requestBody: SubscribeRequest;
|
|
3099
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3100
|
+
/**
|
|
3101
|
+
* Unsubscribe from Notifications
|
|
3102
|
+
* Unsubscribe from receiving notifications.
|
|
3103
|
+
* @returns NotificationsResponse Successful response
|
|
3104
|
+
* @throws ApiError
|
|
3105
|
+
*/
|
|
3106
|
+
unsubscribe({ requestBody, }: {
|
|
3107
|
+
requestBody: UnsubscribeRequest;
|
|
3108
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3109
|
+
/**
|
|
3110
|
+
* Get Subscriptions
|
|
3111
|
+
* Get subscriptions.
|
|
3112
|
+
* @returns SubscriptionsResponse Successful response
|
|
3113
|
+
* @throws ApiError
|
|
3114
|
+
*/
|
|
3115
|
+
subscriptions({ requestBody, }: {
|
|
3116
|
+
requestBody: SubscriptionsRequest;
|
|
3117
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
2325
3120
|
type EvmNetworkOptions = {
|
|
2326
3121
|
addresses: Array<string>;
|
|
2327
3122
|
includeChains: Array<string>;
|
|
@@ -2355,7 +3150,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2355
3150
|
type PrimaryNetworkOptions = {
|
|
2356
3151
|
addresses?: Array<string>;
|
|
2357
3152
|
cChainEvmAddresses?: Array<string>;
|
|
2358
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3153
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2359
3154
|
};
|
|
2360
3155
|
|
|
2361
3156
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2410,7 +3205,7 @@ type OperationStatusResponse = {
|
|
|
2410
3205
|
operationType: OperationType;
|
|
2411
3206
|
operationStatus: OperationStatus;
|
|
2412
3207
|
message?: string;
|
|
2413
|
-
metadata
|
|
3208
|
+
metadata?: TransactionExportMetadata;
|
|
2414
3209
|
createdAtTimestamp: number;
|
|
2415
3210
|
updatedAtTimestamp: number;
|
|
2416
3211
|
};
|
|
@@ -2443,14 +3238,29 @@ declare class OperationsService {
|
|
|
2443
3238
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2444
3239
|
}
|
|
2445
3240
|
|
|
3241
|
+
type Blockchain = {
|
|
3242
|
+
createBlockTimestamp: number;
|
|
3243
|
+
createBlockNumber: string;
|
|
3244
|
+
blockchainId: string;
|
|
3245
|
+
vmId: string;
|
|
3246
|
+
subnetId: string;
|
|
3247
|
+
blockchainName: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* 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.
|
|
3250
|
+
*/
|
|
3251
|
+
evmChainId: number;
|
|
3252
|
+
/**
|
|
3253
|
+
* The genesis data of the blockchain.
|
|
3254
|
+
*/
|
|
3255
|
+
genesisData?: Record<string, any>;
|
|
3256
|
+
};
|
|
3257
|
+
|
|
2446
3258
|
declare enum BlockchainIds {
|
|
2447
3259
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2448
3260
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2449
3261
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2450
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2451
3262
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2452
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2453
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3263
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2454
3264
|
}
|
|
2455
3265
|
|
|
2456
3266
|
type ChainAddressChainIdMap = {
|
|
@@ -2474,16 +3284,31 @@ type DelegatorsDetails = {
|
|
|
2474
3284
|
};
|
|
2475
3285
|
|
|
2476
3286
|
type StakingDistribution = {
|
|
3287
|
+
/**
|
|
3288
|
+
* AvalancheGo version for the validator node.
|
|
3289
|
+
*/
|
|
2477
3290
|
version: string;
|
|
3291
|
+
/**
|
|
3292
|
+
* The total amount staked by validators using this version.
|
|
3293
|
+
*/
|
|
2478
3294
|
amountStaked: string;
|
|
3295
|
+
/**
|
|
3296
|
+
* The number of validators using this version.
|
|
3297
|
+
*/
|
|
2479
3298
|
validatorCount: number;
|
|
2480
3299
|
};
|
|
2481
3300
|
|
|
2482
3301
|
type ValidatorsDetails = {
|
|
2483
3302
|
validatorCount: number;
|
|
2484
3303
|
totalAmountStaked: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3306
|
+
*/
|
|
2485
3307
|
estimatedAnnualStakingReward: string;
|
|
2486
3308
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3309
|
+
/**
|
|
3310
|
+
* Ratio of total active stake amount to the current supply.
|
|
3311
|
+
*/
|
|
2487
3312
|
stakingRatio: string;
|
|
2488
3313
|
};
|
|
2489
3314
|
|
|
@@ -2492,15 +3317,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2492
3317
|
delegatorDetails: DelegatorsDetails;
|
|
2493
3318
|
};
|
|
2494
3319
|
|
|
2495
|
-
type Blockchain = {
|
|
2496
|
-
createBlockTimestamp: number;
|
|
2497
|
-
createBlockNumber: string;
|
|
2498
|
-
blockchainId: string;
|
|
2499
|
-
vmId: string;
|
|
2500
|
-
subnetId: string;
|
|
2501
|
-
blockchainName: string;
|
|
2502
|
-
};
|
|
2503
|
-
|
|
2504
3320
|
type ListBlockchainsResponse = {
|
|
2505
3321
|
/**
|
|
2506
3322
|
* 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.
|
|
@@ -2535,7 +3351,13 @@ type CompletedDelegatorDetails = {
|
|
|
2535
3351
|
delegationFee: string;
|
|
2536
3352
|
startTimestamp: number;
|
|
2537
3353
|
endTimestamp: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Total rewards distributed for the successful delegation.
|
|
3356
|
+
*/
|
|
2538
3357
|
grossReward: string;
|
|
3358
|
+
/**
|
|
3359
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3360
|
+
*/
|
|
2539
3361
|
netReward: string;
|
|
2540
3362
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2541
3363
|
};
|
|
@@ -2553,7 +3375,13 @@ type PendingDelegatorDetails = {
|
|
|
2553
3375
|
delegationFee: string;
|
|
2554
3376
|
startTimestamp: number;
|
|
2555
3377
|
endTimestamp: number;
|
|
3378
|
+
/**
|
|
3379
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3380
|
+
*/
|
|
2556
3381
|
estimatedGrossReward: string;
|
|
3382
|
+
/**
|
|
3383
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3384
|
+
*/
|
|
2557
3385
|
estimatedNetReward: string;
|
|
2558
3386
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2559
3387
|
};
|
|
@@ -2574,8 +3402,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2574
3402
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2575
3403
|
};
|
|
2576
3404
|
|
|
2577
|
-
type
|
|
3405
|
+
type BalanceOwner = {
|
|
3406
|
+
addresses: Array<string>;
|
|
3407
|
+
threshold: number;
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3410
|
+
type L1ValidatorDetailsFull = {
|
|
3411
|
+
/**
|
|
3412
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3413
|
+
*/
|
|
3414
|
+
validationId: string;
|
|
3415
|
+
/**
|
|
3416
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3417
|
+
*/
|
|
3418
|
+
validationIdHex: string;
|
|
3419
|
+
nodeId: string;
|
|
3420
|
+
subnetId: string;
|
|
3421
|
+
/**
|
|
3422
|
+
* 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
|
|
3423
|
+
*/
|
|
3424
|
+
weight: number;
|
|
3425
|
+
/**
|
|
3426
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3427
|
+
*/
|
|
3428
|
+
remainingBalance: number;
|
|
3429
|
+
/**
|
|
3430
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3431
|
+
*/
|
|
3432
|
+
creationTimestamp: number;
|
|
3433
|
+
blsCredentials: Record<string, any>;
|
|
3434
|
+
/**
|
|
3435
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3436
|
+
*/
|
|
3437
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3438
|
+
/**
|
|
3439
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3440
|
+
*/
|
|
3441
|
+
deactivationOwner: BalanceOwner;
|
|
3442
|
+
};
|
|
3443
|
+
|
|
3444
|
+
type ListL1ValidatorsResponse = {
|
|
3445
|
+
/**
|
|
3446
|
+
* 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.
|
|
3447
|
+
*/
|
|
3448
|
+
nextPageToken?: string;
|
|
3449
|
+
/**
|
|
3450
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3451
|
+
*/
|
|
3452
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3453
|
+
/**
|
|
3454
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3455
|
+
*/
|
|
3456
|
+
blockHeight: string;
|
|
3457
|
+
};
|
|
3458
|
+
|
|
3459
|
+
type L1ValidatorManagerDetails = {
|
|
2578
3460
|
blockchainId: string;
|
|
3461
|
+
contractAddress: string;
|
|
2579
3462
|
};
|
|
2580
3463
|
|
|
2581
3464
|
type SubnetOwnershipInfo = {
|
|
@@ -2616,7 +3499,19 @@ type Subnet = {
|
|
|
2616
3499
|
* Latest subnet owner details for this Subnet.
|
|
2617
3500
|
*/
|
|
2618
3501
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2619
|
-
|
|
3502
|
+
/**
|
|
3503
|
+
* Whether the subnet is an L1 or not.
|
|
3504
|
+
*/
|
|
3505
|
+
isL1: boolean;
|
|
3506
|
+
/**
|
|
3507
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3508
|
+
*/
|
|
3509
|
+
l1ConversionTransactionHash?: string;
|
|
3510
|
+
/**
|
|
3511
|
+
* L1 validator manager details.
|
|
3512
|
+
*/
|
|
3513
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3514
|
+
blockchains: Array<Blockchain>;
|
|
2620
3515
|
};
|
|
2621
3516
|
|
|
2622
3517
|
type ListSubnetsResponse = {
|
|
@@ -2632,6 +3527,29 @@ type BlsCredentials = {
|
|
|
2632
3527
|
proofOfPossession: string;
|
|
2633
3528
|
};
|
|
2634
3529
|
|
|
3530
|
+
type Geolocation = {
|
|
3531
|
+
/**
|
|
3532
|
+
* The name of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
city: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* The city of the validator node.
|
|
3537
|
+
*/
|
|
3538
|
+
country: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The country code of the validator node.
|
|
3541
|
+
*/
|
|
3542
|
+
countryCode: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* The latitude of the validator node.
|
|
3545
|
+
*/
|
|
3546
|
+
latitude: number;
|
|
3547
|
+
/**
|
|
3548
|
+
* The longitude of the validator node.
|
|
3549
|
+
*/
|
|
3550
|
+
longitude: number;
|
|
3551
|
+
};
|
|
3552
|
+
|
|
2635
3553
|
type Rewards = {
|
|
2636
3554
|
validationRewardAmount: string;
|
|
2637
3555
|
delegationRewardAmount: string;
|
|
@@ -2663,6 +3581,9 @@ type ActiveValidatorDetails = {
|
|
|
2663
3581
|
nodeId: string;
|
|
2664
3582
|
subnetId: string;
|
|
2665
3583
|
amountStaked: string;
|
|
3584
|
+
/**
|
|
3585
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3586
|
+
*/
|
|
2666
3587
|
delegationFee?: string;
|
|
2667
3588
|
startTimestamp: number;
|
|
2668
3589
|
endTimestamp: number;
|
|
@@ -2670,15 +3591,37 @@ type ActiveValidatorDetails = {
|
|
|
2670
3591
|
* Present for AddPermissionlessValidatorTx
|
|
2671
3592
|
*/
|
|
2672
3593
|
blsCredentials?: BlsCredentials;
|
|
3594
|
+
/**
|
|
3595
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3596
|
+
*/
|
|
2673
3597
|
stakePercentage: number;
|
|
3598
|
+
/**
|
|
3599
|
+
* The number of delegators linked to the validator.
|
|
3600
|
+
*/
|
|
2674
3601
|
delegatorCount: number;
|
|
3602
|
+
/**
|
|
3603
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3604
|
+
*/
|
|
2675
3605
|
amountDelegated?: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3608
|
+
*/
|
|
2676
3609
|
uptimePerformance: number;
|
|
2677
3610
|
avalancheGoVersion?: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3613
|
+
*/
|
|
2678
3614
|
delegationCapacity?: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3617
|
+
*/
|
|
2679
3618
|
potentialRewards: Rewards;
|
|
2680
3619
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2681
3620
|
validatorHealth: ValidatorHealthDetails;
|
|
3621
|
+
/**
|
|
3622
|
+
* The geographical location of the validator node, if available.
|
|
3623
|
+
*/
|
|
3624
|
+
geolocation: Geolocation | null;
|
|
2682
3625
|
};
|
|
2683
3626
|
declare namespace ActiveValidatorDetails {
|
|
2684
3627
|
enum validationStatus {
|
|
@@ -2691,6 +3634,9 @@ type CompletedValidatorDetails = {
|
|
|
2691
3634
|
nodeId: string;
|
|
2692
3635
|
subnetId: string;
|
|
2693
3636
|
amountStaked: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3639
|
+
*/
|
|
2694
3640
|
delegationFee?: string;
|
|
2695
3641
|
startTimestamp: number;
|
|
2696
3642
|
endTimestamp: number;
|
|
@@ -2714,6 +3660,9 @@ type PendingValidatorDetails = {
|
|
|
2714
3660
|
nodeId: string;
|
|
2715
3661
|
subnetId: string;
|
|
2716
3662
|
amountStaked: string;
|
|
3663
|
+
/**
|
|
3664
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3665
|
+
*/
|
|
2717
3666
|
delegationFee?: string;
|
|
2718
3667
|
startTimestamp: number;
|
|
2719
3668
|
endTimestamp: number;
|
|
@@ -2734,6 +3683,9 @@ type RemovedValidatorDetails = {
|
|
|
2734
3683
|
nodeId: string;
|
|
2735
3684
|
subnetId: string;
|
|
2736
3685
|
amountStaked: string;
|
|
3686
|
+
/**
|
|
3687
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3688
|
+
*/
|
|
2737
3689
|
delegationFee?: string;
|
|
2738
3690
|
startTimestamp: number;
|
|
2739
3691
|
endTimestamp: number;
|
|
@@ -2741,7 +3693,13 @@ type RemovedValidatorDetails = {
|
|
|
2741
3693
|
* Present for AddPermissionlessValidatorTx
|
|
2742
3694
|
*/
|
|
2743
3695
|
blsCredentials?: BlsCredentials;
|
|
3696
|
+
/**
|
|
3697
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3698
|
+
*/
|
|
2744
3699
|
removeTxHash: string;
|
|
3700
|
+
/**
|
|
3701
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3702
|
+
*/
|
|
2745
3703
|
removeTimestamp: number;
|
|
2746
3704
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2747
3705
|
};
|
|
@@ -2821,7 +3779,6 @@ type XChainAssetDetails = {
|
|
|
2821
3779
|
declare enum XChainId {
|
|
2822
3780
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2823
3781
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2824
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2825
3782
|
X_CHAIN = "x-chain"
|
|
2826
3783
|
}
|
|
2827
3784
|
|
|
@@ -2892,7 +3849,7 @@ declare class PrimaryNetworkService {
|
|
|
2892
3849
|
*/
|
|
2893
3850
|
pageToken?: string;
|
|
2894
3851
|
/**
|
|
2895
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2896
3853
|
*/
|
|
2897
3854
|
pageSize?: number;
|
|
2898
3855
|
/**
|
|
@@ -2900,6 +3857,22 @@ declare class PrimaryNetworkService {
|
|
|
2900
3857
|
*/
|
|
2901
3858
|
sortOrder?: SortOrder;
|
|
2902
3859
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3860
|
+
/**
|
|
3861
|
+
* Get blockchain details by ID
|
|
3862
|
+
* Get details of the blockchain registered on the network.
|
|
3863
|
+
* @returns Blockchain Successful response
|
|
3864
|
+
* @throws ApiError
|
|
3865
|
+
*/
|
|
3866
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3867
|
+
/**
|
|
3868
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3869
|
+
*/
|
|
3870
|
+
blockchainId: string;
|
|
3871
|
+
/**
|
|
3872
|
+
* Either mainnet or testnet/fuji.
|
|
3873
|
+
*/
|
|
3874
|
+
network: Network;
|
|
3875
|
+
}): CancelablePromise<Blockchain>;
|
|
2903
3876
|
/**
|
|
2904
3877
|
* List subnets
|
|
2905
3878
|
* Lists all subnets registered on the network.
|
|
@@ -2916,7 +3889,7 @@ declare class PrimaryNetworkService {
|
|
|
2916
3889
|
*/
|
|
2917
3890
|
pageToken?: string;
|
|
2918
3891
|
/**
|
|
2919
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
2920
3893
|
*/
|
|
2921
3894
|
pageSize?: number;
|
|
2922
3895
|
/**
|
|
@@ -2942,7 +3915,7 @@ declare class PrimaryNetworkService {
|
|
|
2942
3915
|
}): CancelablePromise<Subnet>;
|
|
2943
3916
|
/**
|
|
2944
3917
|
* List validators
|
|
2945
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3918
|
+
* 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
3919
|
* @returns ListValidatorDetailsResponse Successful response
|
|
2947
3920
|
* @throws ApiError
|
|
2948
3921
|
*/
|
|
@@ -2960,7 +3933,7 @@ declare class PrimaryNetworkService {
|
|
|
2960
3933
|
*/
|
|
2961
3934
|
pageSize?: number;
|
|
2962
3935
|
/**
|
|
2963
|
-
* A comma separated list of node ids to filter by.
|
|
3936
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
2964
3937
|
*/
|
|
2965
3938
|
nodeIds?: string;
|
|
2966
3939
|
/**
|
|
@@ -3082,20 +4055,51 @@ declare class PrimaryNetworkService {
|
|
|
3082
4055
|
*/
|
|
3083
4056
|
nodeIds?: string;
|
|
3084
4057
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
4058
|
+
/**
|
|
4059
|
+
* List L1 validators
|
|
4060
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4061
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
4062
|
+
* @throws ApiError
|
|
4063
|
+
*/
|
|
4064
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
4065
|
+
/**
|
|
4066
|
+
* Either mainnet or testnet/fuji.
|
|
4067
|
+
*/
|
|
4068
|
+
network: Network;
|
|
4069
|
+
/**
|
|
4070
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4071
|
+
*/
|
|
4072
|
+
pageToken?: string;
|
|
4073
|
+
/**
|
|
4074
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4075
|
+
*/
|
|
4076
|
+
pageSize?: number;
|
|
4077
|
+
/**
|
|
4078
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
4079
|
+
*/
|
|
4080
|
+
l1ValidationId?: string;
|
|
4081
|
+
includeInactiveL1Validators?: boolean;
|
|
4082
|
+
/**
|
|
4083
|
+
* A valid node ID in format 'NodeID-HASH'.
|
|
4084
|
+
*/
|
|
4085
|
+
nodeId?: string;
|
|
4086
|
+
/**
|
|
4087
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
4088
|
+
*/
|
|
4089
|
+
subnetId?: any;
|
|
4090
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
declare enum BlockchainId {
|
|
4094
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
4095
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
4096
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4097
|
+
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
4098
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
4099
|
+
P_CHAIN = "p-chain",
|
|
4100
|
+
X_CHAIN = "x-chain",
|
|
4101
|
+
C_CHAIN = "c-chain"
|
|
4102
|
+
}
|
|
3099
4103
|
|
|
3100
4104
|
type CChainSharedAssetBalance = {
|
|
3101
4105
|
/**
|
|
@@ -3128,12 +4132,6 @@ type CChainAtomicBalances = {
|
|
|
3128
4132
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3129
4133
|
};
|
|
3130
4134
|
|
|
3131
|
-
declare enum PrimaryNetwork {
|
|
3132
|
-
MAINNET = "mainnet",
|
|
3133
|
-
FUJI = "fuji",
|
|
3134
|
-
DEVNET = "devnet"
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
4135
|
declare enum PrimaryNetworkChainName {
|
|
3138
4136
|
P_CHAIN = "p-chain",
|
|
3139
4137
|
X_CHAIN = "x-chain",
|
|
@@ -3142,7 +4140,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3142
4140
|
|
|
3143
4141
|
type PrimaryNetworkChainInfo = {
|
|
3144
4142
|
chainName: PrimaryNetworkChainName;
|
|
3145
|
-
network:
|
|
4143
|
+
network: Network;
|
|
3146
4144
|
};
|
|
3147
4145
|
|
|
3148
4146
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3334,6 +4332,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3334
4332
|
txCount: number;
|
|
3335
4333
|
transactions: Array<string>;
|
|
3336
4334
|
blockSizeBytes: number;
|
|
4335
|
+
l1ValidatorsAccruedFees?: number;
|
|
4336
|
+
activeL1Validators?: number;
|
|
3337
4337
|
currentSupply?: string;
|
|
3338
4338
|
proposerDetails?: ProposerDetails;
|
|
3339
4339
|
};
|
|
@@ -3347,6 +4347,8 @@ type PrimaryNetworkBlock = {
|
|
|
3347
4347
|
txCount: number;
|
|
3348
4348
|
transactions: Array<string>;
|
|
3349
4349
|
blockSizeBytes: number;
|
|
4350
|
+
l1ValidatorsAccruedFees?: number;
|
|
4351
|
+
activeL1Validators?: number;
|
|
3350
4352
|
currentSupply?: string;
|
|
3351
4353
|
proposerDetails?: ProposerDetails;
|
|
3352
4354
|
};
|
|
@@ -3389,7 +4391,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3389
4391
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3390
4392
|
* @throws ApiError
|
|
3391
4393
|
*/
|
|
3392
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4394
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3393
4395
|
/**
|
|
3394
4396
|
* A primary network blockchain id or alias.
|
|
3395
4397
|
*/
|
|
@@ -3402,6 +4404,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3402
4404
|
* A primary network (P or X chain) nodeId.
|
|
3403
4405
|
*/
|
|
3404
4406
|
nodeId: string;
|
|
4407
|
+
/**
|
|
4408
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4409
|
+
*/
|
|
4410
|
+
startTimestamp?: number;
|
|
4411
|
+
/**
|
|
4412
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4413
|
+
*/
|
|
4414
|
+
endTimestamp?: number;
|
|
3405
4415
|
/**
|
|
3406
4416
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3407
4417
|
*/
|
|
@@ -3417,7 +4427,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3417
4427
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3418
4428
|
* @throws ApiError
|
|
3419
4429
|
*/
|
|
3420
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4430
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3421
4431
|
/**
|
|
3422
4432
|
* A primary network blockchain id or alias.
|
|
3423
4433
|
*/
|
|
@@ -3426,6 +4436,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3426
4436
|
* Either mainnet or testnet/fuji.
|
|
3427
4437
|
*/
|
|
3428
4438
|
network: Network;
|
|
4439
|
+
/**
|
|
4440
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4441
|
+
*/
|
|
4442
|
+
startTimestamp?: number;
|
|
4443
|
+
/**
|
|
4444
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4445
|
+
*/
|
|
4446
|
+
endTimestamp?: number;
|
|
3429
4447
|
/**
|
|
3430
4448
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3431
4449
|
*/
|
|
@@ -3835,6 +4853,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3835
4853
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3836
4854
|
};
|
|
3837
4855
|
|
|
4856
|
+
type BlockchainInfo = {
|
|
4857
|
+
chainName: string;
|
|
4858
|
+
vmId: string;
|
|
4859
|
+
/**
|
|
4860
|
+
* 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
|
|
4861
|
+
*/
|
|
4862
|
+
genesisData?: Record<string, any>;
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4865
|
+
type L1ValidatorDetailsTransaction = {
|
|
4866
|
+
/**
|
|
4867
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4868
|
+
*/
|
|
4869
|
+
validationId: string;
|
|
4870
|
+
/**
|
|
4871
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4872
|
+
*/
|
|
4873
|
+
validationIdHex: string;
|
|
4874
|
+
nodeId: string;
|
|
4875
|
+
subnetId: string;
|
|
4876
|
+
/**
|
|
4877
|
+
* 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
|
|
4878
|
+
*/
|
|
4879
|
+
weight: number;
|
|
4880
|
+
/**
|
|
4881
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4882
|
+
*/
|
|
4883
|
+
remainingBalance: number;
|
|
4884
|
+
/**
|
|
4885
|
+
* 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
|
|
4886
|
+
*/
|
|
4887
|
+
balanceChange?: number;
|
|
4888
|
+
blsCredentials?: Record<string, any>;
|
|
4889
|
+
};
|
|
4890
|
+
|
|
3838
4891
|
declare enum PChainTransactionType {
|
|
3839
4892
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3840
4893
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -3851,9 +4904,17 @@ declare enum PChainTransactionType {
|
|
|
3851
4904
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3852
4905
|
BASE_TX = "BaseTx",
|
|
3853
4906
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4907
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4908
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4909
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4910
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4911
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
3854
4912
|
UNKNOWN = "UNKNOWN"
|
|
3855
4913
|
}
|
|
3856
4914
|
|
|
4915
|
+
/**
|
|
4916
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4917
|
+
*/
|
|
3857
4918
|
declare enum UtxoType {
|
|
3858
4919
|
STAKE = "STAKE",
|
|
3859
4920
|
TRANSFER = "TRANSFER"
|
|
@@ -3891,16 +4952,43 @@ type PChainUtxo = {
|
|
|
3891
4952
|
assetId: string;
|
|
3892
4953
|
blockNumber: string;
|
|
3893
4954
|
blockTimestamp: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4957
|
+
*/
|
|
3894
4958
|
consumingBlockNumber?: string;
|
|
4959
|
+
/**
|
|
4960
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4961
|
+
*/
|
|
3895
4962
|
consumingBlockTimestamp?: number;
|
|
4963
|
+
/**
|
|
4964
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4965
|
+
*/
|
|
3896
4966
|
platformLocktime?: number;
|
|
4967
|
+
/**
|
|
4968
|
+
* The index of the UTXO in the transaction
|
|
4969
|
+
*/
|
|
3897
4970
|
outputIndex: number;
|
|
3898
4971
|
rewardType?: RewardType;
|
|
4972
|
+
/**
|
|
4973
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4974
|
+
*/
|
|
3899
4975
|
stakeableLocktime?: number;
|
|
3900
4976
|
staked?: boolean;
|
|
4977
|
+
/**
|
|
4978
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4979
|
+
*/
|
|
3901
4980
|
threshold?: number;
|
|
4981
|
+
/**
|
|
4982
|
+
* The hash of the transaction that created this UTXO
|
|
4983
|
+
*/
|
|
3902
4984
|
txHash: string;
|
|
4985
|
+
/**
|
|
4986
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4987
|
+
*/
|
|
3903
4988
|
utxoEndTimestamp?: number;
|
|
4989
|
+
/**
|
|
4990
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4991
|
+
*/
|
|
3904
4992
|
utxoStartTimestamp?: number;
|
|
3905
4993
|
utxoType: UtxoType;
|
|
3906
4994
|
};
|
|
@@ -3915,9 +5003,18 @@ type PChainTransaction = {
|
|
|
3915
5003
|
* The block finality timestamp.
|
|
3916
5004
|
*/
|
|
3917
5005
|
blockTimestamp: number;
|
|
5006
|
+
/**
|
|
5007
|
+
* The height of the block in which the transaction was included
|
|
5008
|
+
*/
|
|
3918
5009
|
blockNumber: string;
|
|
3919
5010
|
blockHash: string;
|
|
5011
|
+
/**
|
|
5012
|
+
* The consumed UTXOs of the transaction
|
|
5013
|
+
*/
|
|
3920
5014
|
consumedUtxos: Array<PChainUtxo>;
|
|
5015
|
+
/**
|
|
5016
|
+
* The newly created UTXOs of the transaction
|
|
5017
|
+
*/
|
|
3921
5018
|
emittedUtxos: Array<PChainUtxo>;
|
|
3922
5019
|
/**
|
|
3923
5020
|
* Source chain for an atomic transaction.
|
|
@@ -3928,17 +5025,21 @@ type PChainTransaction = {
|
|
|
3928
5025
|
*/
|
|
3929
5026
|
destinationChain?: string;
|
|
3930
5027
|
/**
|
|
3931
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5028
|
+
* 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
|
|
3932
5029
|
*/
|
|
3933
5030
|
value: Array<AssetAmount>;
|
|
3934
5031
|
/**
|
|
3935
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5032
|
+
* 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
|
|
3936
5033
|
*/
|
|
3937
5034
|
amountBurned: Array<AssetAmount>;
|
|
3938
5035
|
/**
|
|
3939
5036
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3940
5037
|
*/
|
|
3941
5038
|
amountStaked: Array<AssetAmount>;
|
|
5039
|
+
/**
|
|
5040
|
+
* 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.
|
|
5041
|
+
*/
|
|
5042
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
3942
5043
|
/**
|
|
3943
5044
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3944
5045
|
*/
|
|
@@ -3948,11 +5049,11 @@ type PChainTransaction = {
|
|
|
3948
5049
|
*/
|
|
3949
5050
|
endTimestamp?: number;
|
|
3950
5051
|
/**
|
|
3951
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5052
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
3952
5053
|
*/
|
|
3953
5054
|
delegationFeePercent?: string;
|
|
3954
5055
|
/**
|
|
3955
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5056
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3956
5057
|
*/
|
|
3957
5058
|
nodeId?: string;
|
|
3958
5059
|
/**
|
|
@@ -3960,14 +5061,25 @@ type PChainTransaction = {
|
|
|
3960
5061
|
*/
|
|
3961
5062
|
subnetId?: string;
|
|
3962
5063
|
/**
|
|
3963
|
-
* Present for
|
|
5064
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
5065
|
+
*/
|
|
5066
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
5067
|
+
/**
|
|
5068
|
+
* 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
|
|
5069
|
+
*/
|
|
5070
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
5071
|
+
/**
|
|
5072
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3964
5073
|
*/
|
|
3965
5074
|
estimatedReward?: string;
|
|
5075
|
+
/**
|
|
5076
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5077
|
+
*/
|
|
3966
5078
|
rewardTxHash?: string;
|
|
3967
5079
|
rewardAddresses?: Array<string>;
|
|
3968
5080
|
memo?: string;
|
|
3969
5081
|
/**
|
|
3970
|
-
*
|
|
5082
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
3971
5083
|
*/
|
|
3972
5084
|
stakingTxHash?: string;
|
|
3973
5085
|
/**
|
|
@@ -3975,9 +5087,13 @@ type PChainTransaction = {
|
|
|
3975
5087
|
*/
|
|
3976
5088
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3977
5089
|
/**
|
|
3978
|
-
* Present for AddPermissionlessValidatorTx
|
|
5090
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
3979
5091
|
*/
|
|
3980
5092
|
blsCredentials?: BlsCredentials;
|
|
5093
|
+
/**
|
|
5094
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5095
|
+
*/
|
|
5096
|
+
blockchainInfo?: BlockchainInfo;
|
|
3981
5097
|
};
|
|
3982
5098
|
|
|
3983
5099
|
type ListPChainTransactionsResponse = {
|
|
@@ -4160,6 +5276,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4160
5276
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4161
5277
|
BASE_TX = "BaseTx",
|
|
4162
5278
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
5279
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5280
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5281
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5282
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5283
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4163
5284
|
UNKNOWN = "UNKNOWN",
|
|
4164
5285
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4165
5286
|
OPERATION_TX = "OperationTx"
|
|
@@ -4194,11 +5315,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4194
5315
|
*
|
|
4195
5316
|
* 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.
|
|
4196
5317
|
*
|
|
5318
|
+
* 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.
|
|
5319
|
+
*
|
|
4197
5320
|
* 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.
|
|
4198
5321
|
* @returns any Successful response
|
|
4199
5322
|
* @throws ApiError
|
|
4200
5323
|
*/
|
|
4201
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5324
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4202
5325
|
/**
|
|
4203
5326
|
* A primary network blockchain id or alias.
|
|
4204
5327
|
*/
|
|
@@ -4211,6 +5334,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4211
5334
|
* 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.
|
|
4212
5335
|
*/
|
|
4213
5336
|
addresses?: string;
|
|
5337
|
+
l1ValidationId?: string;
|
|
4214
5338
|
/**
|
|
4215
5339
|
* Query param for filtering items based on transaction types.
|
|
4216
5340
|
*/
|
|
@@ -4486,61 +5610,12 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4486
5610
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4487
5611
|
}
|
|
4488
5612
|
|
|
4489
|
-
type RpcErrorDto = {
|
|
4490
|
-
code: number;
|
|
4491
|
-
message: string;
|
|
4492
|
-
data?: Record<string, any>;
|
|
4493
|
-
};
|
|
4494
|
-
|
|
4495
|
-
type RpcErrorResponseDto = {
|
|
4496
|
-
jsonrpc: string;
|
|
4497
|
-
id?: (string | number);
|
|
4498
|
-
error: RpcErrorDto;
|
|
4499
|
-
};
|
|
4500
|
-
|
|
4501
|
-
type RpcRequestBodyDto = {
|
|
4502
|
-
method: string;
|
|
4503
|
-
params?: Record<string, any>;
|
|
4504
|
-
id?: (string | number);
|
|
4505
|
-
jsonrpc?: string;
|
|
4506
|
-
};
|
|
4507
|
-
|
|
4508
|
-
type RpcSuccessResponseDto = {
|
|
4509
|
-
jsonrpc: string;
|
|
4510
|
-
id?: (string | number);
|
|
4511
|
-
result: Record<string, any>;
|
|
4512
|
-
};
|
|
4513
|
-
|
|
4514
|
-
declare class RpcService {
|
|
4515
|
-
readonly httpRequest: BaseHttpRequest;
|
|
4516
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
4517
|
-
/**
|
|
4518
|
-
* Calls JSON-RPC method
|
|
4519
|
-
* Calls JSON-RPC method.
|
|
4520
|
-
* @returns any Successful response
|
|
4521
|
-
* @throws ApiError
|
|
4522
|
-
*/
|
|
4523
|
-
rpc({ chainId, requestBody, }: {
|
|
4524
|
-
/**
|
|
4525
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4526
|
-
*/
|
|
4527
|
-
chainId: string;
|
|
4528
|
-
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4529
|
-
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4530
|
-
}
|
|
4531
|
-
|
|
4532
5613
|
type SignatureAggregationResponse = {
|
|
4533
5614
|
signedMessage: string;
|
|
4534
5615
|
};
|
|
4535
5616
|
|
|
4536
5617
|
type SignatureAggregatorRequest = {
|
|
4537
|
-
|
|
4538
|
-
* Must be defined if justification is not defined
|
|
4539
|
-
*/
|
|
4540
|
-
message?: string;
|
|
4541
|
-
/**
|
|
4542
|
-
* Must be defined if message is not defined
|
|
4543
|
-
*/
|
|
5618
|
+
message: string;
|
|
4544
5619
|
justification?: string;
|
|
4545
5620
|
signingSubnetId?: string;
|
|
4546
5621
|
quorumPercentage?: number;
|
|
@@ -4555,9 +5630,29 @@ declare class SignatureAggregatorService {
|
|
|
4555
5630
|
* @returns SignatureAggregationResponse Successful response
|
|
4556
5631
|
* @throws ApiError
|
|
4557
5632
|
*/
|
|
4558
|
-
aggregateSignatures({ requestBody, }: {
|
|
5633
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5634
|
+
/**
|
|
5635
|
+
* Either mainnet or testnet/fuji.
|
|
5636
|
+
*/
|
|
5637
|
+
network: Network;
|
|
4559
5638
|
requestBody: SignatureAggregatorRequest;
|
|
4560
5639
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5640
|
+
/**
|
|
5641
|
+
* Get Aggregated Signatures
|
|
5642
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5643
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5644
|
+
* @throws ApiError
|
|
5645
|
+
*/
|
|
5646
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5647
|
+
/**
|
|
5648
|
+
* Either mainnet or testnet/fuji.
|
|
5649
|
+
*/
|
|
5650
|
+
network: Network;
|
|
5651
|
+
/**
|
|
5652
|
+
* A primary network (P or X chain) transaction hash.
|
|
5653
|
+
*/
|
|
5654
|
+
txHash: string;
|
|
5655
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4561
5656
|
}
|
|
4562
5657
|
|
|
4563
5658
|
type TeleporterDestinationTransaction = {
|
|
@@ -4691,15 +5786,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4691
5786
|
* 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.
|
|
4692
5787
|
*/
|
|
4693
5788
|
nextPageToken?: string;
|
|
4694
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5789
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4695
5790
|
};
|
|
4696
5791
|
|
|
4697
5792
|
declare class TeleporterService {
|
|
4698
5793
|
readonly httpRequest: BaseHttpRequest;
|
|
4699
5794
|
constructor(httpRequest: BaseHttpRequest);
|
|
4700
5795
|
/**
|
|
4701
|
-
*
|
|
4702
|
-
* Gets a teleporter message by message ID.
|
|
5796
|
+
* @deprecated
|
|
5797
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5798
|
+
*
|
|
5799
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4703
5800
|
* @returns any Successful response
|
|
4704
5801
|
* @throws ApiError
|
|
4705
5802
|
*/
|
|
@@ -4710,8 +5807,10 @@ declare class TeleporterService {
|
|
|
4710
5807
|
messageId: string;
|
|
4711
5808
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4712
5809
|
/**
|
|
4713
|
-
*
|
|
4714
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5810
|
+
* @deprecated
|
|
5811
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5812
|
+
*
|
|
5813
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4715
5814
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4716
5815
|
* @throws ApiError
|
|
4717
5816
|
*/
|
|
@@ -4750,8 +5849,10 @@ declare class TeleporterService {
|
|
|
4750
5849
|
network?: Network;
|
|
4751
5850
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4752
5851
|
/**
|
|
4753
|
-
*
|
|
4754
|
-
* Lists teleporter messages by address. Ordered by
|
|
5852
|
+
* @deprecated
|
|
5853
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5854
|
+
*
|
|
5855
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4755
5856
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4756
5857
|
* @throws ApiError
|
|
4757
5858
|
*/
|
|
@@ -4784,26 +5885,56 @@ type AddressesChangeRequest = {
|
|
|
4784
5885
|
|
|
4785
5886
|
type AddressActivityMetadata = {
|
|
4786
5887
|
/**
|
|
4787
|
-
*
|
|
5888
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5889
|
+
*/
|
|
5890
|
+
eventSignatures?: Array<string>;
|
|
5891
|
+
/**
|
|
5892
|
+
* Ethereum address(es) for the address_activity event type. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
4788
5893
|
*/
|
|
4789
5894
|
addresses: Array<string>;
|
|
5895
|
+
};
|
|
5896
|
+
|
|
5897
|
+
type EVMAddressActivityRequest = {
|
|
5898
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5899
|
+
url: string;
|
|
5900
|
+
name?: string;
|
|
5901
|
+
description?: string;
|
|
5902
|
+
chainId: string;
|
|
5903
|
+
metadata: AddressActivityMetadata;
|
|
4790
5904
|
/**
|
|
4791
|
-
*
|
|
5905
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4792
5906
|
*/
|
|
4793
|
-
|
|
5907
|
+
includeInternalTxs?: boolean;
|
|
5908
|
+
/**
|
|
5909
|
+
* Whether to include logs in the webhook payload.
|
|
5910
|
+
*/
|
|
5911
|
+
includeLogs?: boolean;
|
|
4794
5912
|
};
|
|
5913
|
+
declare namespace EVMAddressActivityRequest {
|
|
5914
|
+
enum eventType {
|
|
5915
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5916
|
+
}
|
|
5917
|
+
}
|
|
4795
5918
|
|
|
4796
|
-
declare enum
|
|
5919
|
+
declare enum AddressActivityEventType {
|
|
4797
5920
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4798
5921
|
}
|
|
4799
5922
|
|
|
4800
|
-
|
|
5923
|
+
declare enum WebhookStatusType {
|
|
5924
|
+
ACTIVE = "active",
|
|
5925
|
+
INACTIVE = "inactive"
|
|
5926
|
+
}
|
|
5927
|
+
|
|
5928
|
+
type EVMAddressActivityResponse = {
|
|
5929
|
+
id: string;
|
|
4801
5930
|
url: string;
|
|
4802
5931
|
chainId: string;
|
|
4803
|
-
|
|
5932
|
+
status: WebhookStatusType;
|
|
5933
|
+
createdAt: number;
|
|
5934
|
+
name: string;
|
|
5935
|
+
description: string;
|
|
5936
|
+
eventType: AddressActivityEventType;
|
|
4804
5937
|
metadata: AddressActivityMetadata;
|
|
4805
|
-
name?: string;
|
|
4806
|
-
description?: string;
|
|
4807
5938
|
/**
|
|
4808
5939
|
* Whether to include traces in the webhook payload.
|
|
4809
5940
|
*/
|
|
@@ -4823,29 +5954,143 @@ type ListWebhookAddressesResponse = {
|
|
|
4823
5954
|
totalAddresses: number;
|
|
4824
5955
|
};
|
|
4825
5956
|
|
|
4826
|
-
declare enum
|
|
4827
|
-
|
|
4828
|
-
INACTIVE = "inactive"
|
|
5957
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
5958
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
4829
5959
|
}
|
|
4830
5960
|
|
|
4831
|
-
|
|
5961
|
+
/**
|
|
5962
|
+
* The type of key to monitor for the address activity event type.
|
|
5963
|
+
*/
|
|
5964
|
+
declare enum PlatformAddressActivityKeyType {
|
|
5965
|
+
ADDRESSES = "addresses"
|
|
5966
|
+
}
|
|
5967
|
+
|
|
5968
|
+
/**
|
|
5969
|
+
* Array of address activity sub-event types
|
|
5970
|
+
*/
|
|
5971
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5972
|
+
BALANCE_CHANGE = "balance_change",
|
|
5973
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
5974
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5975
|
+
}
|
|
5976
|
+
|
|
5977
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
5978
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5979
|
+
};
|
|
5980
|
+
|
|
5981
|
+
/**
|
|
5982
|
+
* Type of balance to monitor
|
|
5983
|
+
*/
|
|
5984
|
+
declare enum CommonBalanceType {
|
|
5985
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5986
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5987
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5988
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5989
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5990
|
+
PENDING_STAKED = "pendingStaked",
|
|
5991
|
+
UNLOCKED = "unlocked",
|
|
5992
|
+
LOCKED = "locked",
|
|
5993
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5994
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5997
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
5998
|
+
balanceType: CommonBalanceType;
|
|
5999
|
+
/**
|
|
6000
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6001
|
+
*/
|
|
6002
|
+
balanceThreshold: string;
|
|
6003
|
+
};
|
|
6004
|
+
|
|
6005
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6006
|
+
/**
|
|
6007
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6008
|
+
*/
|
|
6009
|
+
eventSignatures?: Array<string>;
|
|
6010
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6011
|
+
/**
|
|
6012
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
6013
|
+
*/
|
|
6014
|
+
keys: Array<string>;
|
|
6015
|
+
/**
|
|
6016
|
+
* Sub-events to monitor
|
|
6017
|
+
*/
|
|
6018
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6019
|
+
/**
|
|
6020
|
+
* Balance threshold filter
|
|
6021
|
+
*/
|
|
6022
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6023
|
+
};
|
|
6024
|
+
|
|
6025
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
4832
6026
|
id: string;
|
|
4833
|
-
|
|
4834
|
-
|
|
6027
|
+
url: string;
|
|
6028
|
+
chainId: string;
|
|
6029
|
+
status: WebhookStatusType;
|
|
6030
|
+
createdAt: number;
|
|
6031
|
+
name: string;
|
|
6032
|
+
description: string;
|
|
6033
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6034
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6035
|
+
};
|
|
6036
|
+
|
|
6037
|
+
declare enum ValidatorActivityEventType {
|
|
6038
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6039
|
+
}
|
|
6040
|
+
|
|
6041
|
+
/**
|
|
6042
|
+
* The type of key to monitor for the validator activity event type.
|
|
6043
|
+
*/
|
|
6044
|
+
declare enum ValidatorActivityKeyType {
|
|
6045
|
+
NODE_ID = "nodeId",
|
|
6046
|
+
SUBNET_ID = "subnetId"
|
|
6047
|
+
}
|
|
6048
|
+
|
|
6049
|
+
type ValidatorActivitySubEvents = {
|
|
4835
6050
|
/**
|
|
4836
|
-
*
|
|
6051
|
+
* Array of validator activity sub-event types
|
|
4837
6052
|
*/
|
|
4838
|
-
|
|
6053
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6054
|
+
};
|
|
6055
|
+
|
|
6056
|
+
type ValidatorActivityMetadata = {
|
|
4839
6057
|
/**
|
|
4840
|
-
*
|
|
6058
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4841
6059
|
*/
|
|
4842
|
-
|
|
6060
|
+
eventSignatures?: Array<string>;
|
|
6061
|
+
keyType: ValidatorActivityKeyType;
|
|
6062
|
+
/**
|
|
6063
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6064
|
+
*/
|
|
6065
|
+
keys: Array<string>;
|
|
6066
|
+
/**
|
|
6067
|
+
* Sub-events to monitor
|
|
6068
|
+
*/
|
|
6069
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6070
|
+
/**
|
|
6071
|
+
* Array of node IDs to filter the events
|
|
6072
|
+
*/
|
|
6073
|
+
nodeIds?: Array<string>;
|
|
6074
|
+
/**
|
|
6075
|
+
* Array of subnet IDs to filter the events
|
|
6076
|
+
*/
|
|
6077
|
+
subnetIds?: Array<string>;
|
|
6078
|
+
/**
|
|
6079
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6080
|
+
*/
|
|
6081
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6082
|
+
};
|
|
6083
|
+
|
|
6084
|
+
type ValidatorActivityResponse = {
|
|
6085
|
+
id: string;
|
|
4843
6086
|
url: string;
|
|
4844
6087
|
chainId: string;
|
|
4845
6088
|
status: WebhookStatusType;
|
|
4846
6089
|
createdAt: number;
|
|
4847
6090
|
name: string;
|
|
4848
6091
|
description: string;
|
|
6092
|
+
eventType: ValidatorActivityEventType;
|
|
6093
|
+
metadata: ValidatorActivityMetadata;
|
|
4849
6094
|
};
|
|
4850
6095
|
|
|
4851
6096
|
type ListWebhooksResponse = {
|
|
@@ -4853,9 +6098,32 @@ type ListWebhooksResponse = {
|
|
|
4853
6098
|
* 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.
|
|
4854
6099
|
*/
|
|
4855
6100
|
nextPageToken?: string;
|
|
4856
|
-
webhooks: Array<
|
|
6101
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4857
6102
|
};
|
|
4858
6103
|
|
|
6104
|
+
declare enum PrimaryNetworkType {
|
|
6105
|
+
MAINNET = "mainnet",
|
|
6106
|
+
FUJI = "fuji"
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6110
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6111
|
+
url: string;
|
|
6112
|
+
name?: string;
|
|
6113
|
+
description?: string;
|
|
6114
|
+
network: PrimaryNetworkType;
|
|
6115
|
+
chainId: string;
|
|
6116
|
+
/**
|
|
6117
|
+
* Metadata for platform address activity event
|
|
6118
|
+
*/
|
|
6119
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6120
|
+
};
|
|
6121
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6122
|
+
enum eventType {
|
|
6123
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6124
|
+
}
|
|
6125
|
+
}
|
|
6126
|
+
|
|
4859
6127
|
type SharedSecretsResponse = {
|
|
4860
6128
|
secret: string;
|
|
4861
6129
|
};
|
|
@@ -4865,10 +6133,30 @@ type UpdateWebhookRequest = {
|
|
|
4865
6133
|
description?: string;
|
|
4866
6134
|
url?: string;
|
|
4867
6135
|
status?: WebhookStatusType;
|
|
6136
|
+
/**
|
|
6137
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6138
|
+
*/
|
|
4868
6139
|
includeInternalTxs?: boolean;
|
|
4869
6140
|
includeLogs?: boolean;
|
|
4870
6141
|
};
|
|
4871
6142
|
|
|
6143
|
+
type ValidatorActivityRequest = {
|
|
6144
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6145
|
+
url: string;
|
|
6146
|
+
name?: string;
|
|
6147
|
+
description?: string;
|
|
6148
|
+
network: PrimaryNetworkType;
|
|
6149
|
+
/**
|
|
6150
|
+
* Metadata for platform validator activity event
|
|
6151
|
+
*/
|
|
6152
|
+
metadata: ValidatorActivityMetadata;
|
|
6153
|
+
};
|
|
6154
|
+
declare namespace ValidatorActivityRequest {
|
|
6155
|
+
enum eventType {
|
|
6156
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6159
|
+
|
|
4872
6160
|
declare enum WebhookStatus {
|
|
4873
6161
|
ACTIVE = "active",
|
|
4874
6162
|
INACTIVE = "inactive"
|
|
@@ -4880,12 +6168,12 @@ declare class WebhooksService {
|
|
|
4880
6168
|
/**
|
|
4881
6169
|
* Create a webhook
|
|
4882
6170
|
* Create a new webhook.
|
|
4883
|
-
* @returns
|
|
6171
|
+
* @returns any Successful response
|
|
4884
6172
|
* @throws ApiError
|
|
4885
6173
|
*/
|
|
4886
6174
|
createWebhook({ requestBody, }: {
|
|
4887
|
-
requestBody:
|
|
4888
|
-
}): CancelablePromise<
|
|
6175
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6176
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4889
6177
|
/**
|
|
4890
6178
|
* List webhooks
|
|
4891
6179
|
* Lists webhooks for the user.
|
|
@@ -4909,7 +6197,7 @@ declare class WebhooksService {
|
|
|
4909
6197
|
/**
|
|
4910
6198
|
* Get a webhook by ID
|
|
4911
6199
|
* Retrieves a webhook by ID.
|
|
4912
|
-
* @returns
|
|
6200
|
+
* @returns any Successful response
|
|
4913
6201
|
* @throws ApiError
|
|
4914
6202
|
*/
|
|
4915
6203
|
getWebhook({ id, }: {
|
|
@@ -4917,11 +6205,11 @@ declare class WebhooksService {
|
|
|
4917
6205
|
* The webhook identifier.
|
|
4918
6206
|
*/
|
|
4919
6207
|
id: string;
|
|
4920
|
-
}): CancelablePromise<
|
|
6208
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4921
6209
|
/**
|
|
4922
6210
|
* Deactivate a webhook
|
|
4923
6211
|
* Deactivates a webhook by ID.
|
|
4924
|
-
* @returns
|
|
6212
|
+
* @returns any Successful response
|
|
4925
6213
|
* @throws ApiError
|
|
4926
6214
|
*/
|
|
4927
6215
|
deactivateWebhook({ id, }: {
|
|
@@ -4929,11 +6217,11 @@ declare class WebhooksService {
|
|
|
4929
6217
|
* The webhook identifier.
|
|
4930
6218
|
*/
|
|
4931
6219
|
id: string;
|
|
4932
|
-
}): CancelablePromise<
|
|
6220
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4933
6221
|
/**
|
|
4934
6222
|
* Update a webhook
|
|
4935
6223
|
* Updates an existing webhook.
|
|
4936
|
-
* @returns
|
|
6224
|
+
* @returns any Successful response
|
|
4937
6225
|
* @throws ApiError
|
|
4938
6226
|
*/
|
|
4939
6227
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -4942,14 +6230,14 @@ declare class WebhooksService {
|
|
|
4942
6230
|
*/
|
|
4943
6231
|
id: string;
|
|
4944
6232
|
requestBody: UpdateWebhookRequest;
|
|
4945
|
-
}): CancelablePromise<
|
|
6233
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
4946
6234
|
/**
|
|
4947
|
-
* Generate a shared secret
|
|
4948
|
-
* Generates a new shared secret.
|
|
6235
|
+
* Generate or rotate a shared secret
|
|
6236
|
+
* Generates a new shared secret or rotate an existing one.
|
|
4949
6237
|
* @returns SharedSecretsResponse Successful response
|
|
4950
6238
|
* @throws ApiError
|
|
4951
6239
|
*/
|
|
4952
|
-
|
|
6240
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4953
6241
|
/**
|
|
4954
6242
|
* Get a shared secret
|
|
4955
6243
|
* Get a previously generated shared secret.
|
|
@@ -4958,9 +6246,9 @@ declare class WebhooksService {
|
|
|
4958
6246
|
*/
|
|
4959
6247
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4960
6248
|
/**
|
|
4961
|
-
* Add addresses to webhook
|
|
4962
|
-
* Add addresses to webhook.
|
|
4963
|
-
* @returns
|
|
6249
|
+
* Add addresses to EVM activity webhook
|
|
6250
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6251
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4964
6252
|
* @throws ApiError
|
|
4965
6253
|
*/
|
|
4966
6254
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -4969,11 +6257,11 @@ declare class WebhooksService {
|
|
|
4969
6257
|
*/
|
|
4970
6258
|
id: string;
|
|
4971
6259
|
requestBody: AddressesChangeRequest;
|
|
4972
|
-
}): CancelablePromise<
|
|
6260
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4973
6261
|
/**
|
|
4974
|
-
* Remove addresses from webhook
|
|
4975
|
-
* Remove addresses from webhook.
|
|
4976
|
-
* @returns
|
|
6262
|
+
* Remove addresses from EVM activity webhook
|
|
6263
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6264
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
4977
6265
|
* @throws ApiError
|
|
4978
6266
|
*/
|
|
4979
6267
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -4982,10 +6270,10 @@ declare class WebhooksService {
|
|
|
4982
6270
|
*/
|
|
4983
6271
|
id: string;
|
|
4984
6272
|
requestBody: AddressesChangeRequest;
|
|
4985
|
-
}): CancelablePromise<
|
|
6273
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
4986
6274
|
/**
|
|
4987
|
-
* List adresses by
|
|
4988
|
-
* List adresses by webhook.
|
|
6275
|
+
* List adresses by EVM activity webhooks
|
|
6276
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
4989
6277
|
* @returns ListWebhookAddressesResponse Successful response
|
|
4990
6278
|
* @throws ApiError
|
|
4991
6279
|
*/
|
|
@@ -5007,6 +6295,7 @@ declare class WebhooksService {
|
|
|
5007
6295
|
|
|
5008
6296
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5009
6297
|
declare class Glacier {
|
|
6298
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5010
6299
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5011
6300
|
readonly default: DefaultService;
|
|
5012
6301
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5015,7 +6304,9 @@ declare class Glacier {
|
|
|
5015
6304
|
readonly evmContracts: EvmContractsService;
|
|
5016
6305
|
readonly evmTransactions: EvmTransactionsService;
|
|
5017
6306
|
readonly healthCheck: HealthCheckService;
|
|
6307
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5018
6308
|
readonly nfTs: NfTsService;
|
|
6309
|
+
readonly notifications: NotificationsService;
|
|
5019
6310
|
readonly operations: OperationsService;
|
|
5020
6311
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5021
6312
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5024,7 +6315,6 @@ declare class Glacier {
|
|
|
5024
6315
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5025
6316
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5026
6317
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5027
|
-
readonly rpc: RpcService;
|
|
5028
6318
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5029
6319
|
readonly teleporter: TeleporterService;
|
|
5030
6320
|
readonly webhooks: WebhooksService;
|
|
@@ -5049,6 +6339,17 @@ declare class ApiError extends Error {
|
|
|
5049
6339
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5050
6340
|
}
|
|
5051
6341
|
|
|
6342
|
+
type AccessListData = {
|
|
6343
|
+
/**
|
|
6344
|
+
* Access Address
|
|
6345
|
+
*/
|
|
6346
|
+
accessAddresses: string;
|
|
6347
|
+
/**
|
|
6348
|
+
* Storage keys
|
|
6349
|
+
*/
|
|
6350
|
+
storageKeys: Array<string>;
|
|
6351
|
+
};
|
|
6352
|
+
|
|
5052
6353
|
type BadGateway = {
|
|
5053
6354
|
/**
|
|
5054
6355
|
* The error message describing the reason for the exception
|
|
@@ -5083,6 +6384,76 @@ type DataListChainsResponse = {
|
|
|
5083
6384
|
chains: Array<ChainInfo>;
|
|
5084
6385
|
};
|
|
5085
6386
|
|
|
6387
|
+
type ERCToken = {
|
|
6388
|
+
/**
|
|
6389
|
+
* Token contract address
|
|
6390
|
+
*/
|
|
6391
|
+
address: string;
|
|
6392
|
+
/**
|
|
6393
|
+
* Token name
|
|
6394
|
+
*/
|
|
6395
|
+
name: string;
|
|
6396
|
+
/**
|
|
6397
|
+
* Token symbol
|
|
6398
|
+
*/
|
|
6399
|
+
symbol: string;
|
|
6400
|
+
/**
|
|
6401
|
+
* Token decimals
|
|
6402
|
+
*/
|
|
6403
|
+
decimals: number;
|
|
6404
|
+
/**
|
|
6405
|
+
* Value including decimals
|
|
6406
|
+
*/
|
|
6407
|
+
valueWithDecimals: string;
|
|
6408
|
+
};
|
|
6409
|
+
|
|
6410
|
+
type ERCTransfer = {
|
|
6411
|
+
/**
|
|
6412
|
+
* Transaction hash
|
|
6413
|
+
*/
|
|
6414
|
+
transactionHash: string;
|
|
6415
|
+
/**
|
|
6416
|
+
* Transfer type
|
|
6417
|
+
*/
|
|
6418
|
+
type: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Sender address
|
|
6421
|
+
*/
|
|
6422
|
+
from: string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Recipient address
|
|
6425
|
+
*/
|
|
6426
|
+
to: string;
|
|
6427
|
+
/**
|
|
6428
|
+
* Amount transferred
|
|
6429
|
+
*/
|
|
6430
|
+
value: string;
|
|
6431
|
+
/**
|
|
6432
|
+
* Token Id
|
|
6433
|
+
*/
|
|
6434
|
+
tokenId?: string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Block timestamp
|
|
6437
|
+
*/
|
|
6438
|
+
blockTimestamp: number;
|
|
6439
|
+
/**
|
|
6440
|
+
* Log index
|
|
6441
|
+
*/
|
|
6442
|
+
logIndex: number;
|
|
6443
|
+
/**
|
|
6444
|
+
* erc20 Token details
|
|
6445
|
+
*/
|
|
6446
|
+
erc20Token?: ERCToken;
|
|
6447
|
+
/**
|
|
6448
|
+
* erc721 Token details
|
|
6449
|
+
*/
|
|
6450
|
+
erc721Token?: ERCToken;
|
|
6451
|
+
/**
|
|
6452
|
+
* erc1155 Token details
|
|
6453
|
+
*/
|
|
6454
|
+
erc1155Token?: ERCToken;
|
|
6455
|
+
};
|
|
6456
|
+
|
|
5086
6457
|
type Forbidden = {
|
|
5087
6458
|
/**
|
|
5088
6459
|
* The error message describing the reason for the exception
|
|
@@ -5113,6 +6484,64 @@ type InternalServerError = {
|
|
|
5113
6484
|
error: string;
|
|
5114
6485
|
};
|
|
5115
6486
|
|
|
6487
|
+
type Log = {
|
|
6488
|
+
/**
|
|
6489
|
+
* Contract address
|
|
6490
|
+
*/
|
|
6491
|
+
address: string;
|
|
6492
|
+
/**
|
|
6493
|
+
* First topic
|
|
6494
|
+
*/
|
|
6495
|
+
topic0: string;
|
|
6496
|
+
/**
|
|
6497
|
+
* Second topic (optional)
|
|
6498
|
+
*/
|
|
6499
|
+
topic1?: string;
|
|
6500
|
+
/**
|
|
6501
|
+
* Third topic (optional)
|
|
6502
|
+
*/
|
|
6503
|
+
topic2?: string;
|
|
6504
|
+
/**
|
|
6505
|
+
* Fourth topic (optional)
|
|
6506
|
+
*/
|
|
6507
|
+
topic3?: string;
|
|
6508
|
+
/**
|
|
6509
|
+
* Event data
|
|
6510
|
+
*/
|
|
6511
|
+
data: string;
|
|
6512
|
+
/**
|
|
6513
|
+
* Transaction index
|
|
6514
|
+
*/
|
|
6515
|
+
transactionIndex: number;
|
|
6516
|
+
/**
|
|
6517
|
+
* Log index
|
|
6518
|
+
*/
|
|
6519
|
+
logIndex: number;
|
|
6520
|
+
/**
|
|
6521
|
+
* Indicates if the log was removed
|
|
6522
|
+
*/
|
|
6523
|
+
removed: boolean;
|
|
6524
|
+
};
|
|
6525
|
+
|
|
6526
|
+
type NetworkTokenInfo = {
|
|
6527
|
+
/**
|
|
6528
|
+
* Token name
|
|
6529
|
+
*/
|
|
6530
|
+
tokenName?: string;
|
|
6531
|
+
/**
|
|
6532
|
+
* Token symbol
|
|
6533
|
+
*/
|
|
6534
|
+
tokenSymbol?: string;
|
|
6535
|
+
/**
|
|
6536
|
+
* Token decimals
|
|
6537
|
+
*/
|
|
6538
|
+
tokenDecimals?: number;
|
|
6539
|
+
/**
|
|
6540
|
+
* Value including decimals
|
|
6541
|
+
*/
|
|
6542
|
+
valueWithDecimals?: string;
|
|
6543
|
+
};
|
|
6544
|
+
|
|
5116
6545
|
type NextPageToken = {
|
|
5117
6546
|
/**
|
|
5118
6547
|
* 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.
|
|
@@ -5165,6 +6594,163 @@ type TooManyRequests = {
|
|
|
5165
6594
|
error: string;
|
|
5166
6595
|
};
|
|
5167
6596
|
|
|
6597
|
+
type WebhookInternalTransaction = {
|
|
6598
|
+
/**
|
|
6599
|
+
* Sender address
|
|
6600
|
+
*/
|
|
6601
|
+
from: string;
|
|
6602
|
+
/**
|
|
6603
|
+
* Recipient address
|
|
6604
|
+
*/
|
|
6605
|
+
to: string;
|
|
6606
|
+
/**
|
|
6607
|
+
* Internal transaction type
|
|
6608
|
+
*/
|
|
6609
|
+
internalTxType: string;
|
|
6610
|
+
/**
|
|
6611
|
+
* Value transferred
|
|
6612
|
+
*/
|
|
6613
|
+
value: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* Gas used
|
|
6616
|
+
*/
|
|
6617
|
+
gasUsed: string;
|
|
6618
|
+
/**
|
|
6619
|
+
* Gas limit
|
|
6620
|
+
*/
|
|
6621
|
+
gasLimit: string;
|
|
6622
|
+
/**
|
|
6623
|
+
* Transaction hash
|
|
6624
|
+
*/
|
|
6625
|
+
transactionHash: string;
|
|
6626
|
+
};
|
|
6627
|
+
|
|
6628
|
+
type Transaction = {
|
|
6629
|
+
/**
|
|
6630
|
+
* Block hash of the transaction
|
|
6631
|
+
*/
|
|
6632
|
+
blockHash: string;
|
|
6633
|
+
/**
|
|
6634
|
+
* Block number of the transaction
|
|
6635
|
+
*/
|
|
6636
|
+
blockNumber: string;
|
|
6637
|
+
/**
|
|
6638
|
+
* Sender address
|
|
6639
|
+
*/
|
|
6640
|
+
from: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* Gas limit for the transaction
|
|
6643
|
+
*/
|
|
6644
|
+
gas: string;
|
|
6645
|
+
/**
|
|
6646
|
+
* Gas price used
|
|
6647
|
+
*/
|
|
6648
|
+
gasPrice: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* Maximum fee per gas
|
|
6651
|
+
*/
|
|
6652
|
+
maxFeePerGas: string;
|
|
6653
|
+
/**
|
|
6654
|
+
* Maximum priority fee per gas
|
|
6655
|
+
*/
|
|
6656
|
+
maxPriorityFeePerGas: string;
|
|
6657
|
+
/**
|
|
6658
|
+
* Transaction hash
|
|
6659
|
+
*/
|
|
6660
|
+
txHash: string;
|
|
6661
|
+
/**
|
|
6662
|
+
* Transaction status
|
|
6663
|
+
*/
|
|
6664
|
+
txStatus: string;
|
|
6665
|
+
/**
|
|
6666
|
+
* Input data
|
|
6667
|
+
*/
|
|
6668
|
+
input: string;
|
|
6669
|
+
/**
|
|
6670
|
+
* Nonce value
|
|
6671
|
+
*/
|
|
6672
|
+
nonce: string;
|
|
6673
|
+
/**
|
|
6674
|
+
* Recipient address
|
|
6675
|
+
*/
|
|
6676
|
+
to: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* Transaction index
|
|
6679
|
+
*/
|
|
6680
|
+
transactionIndex: number;
|
|
6681
|
+
/**
|
|
6682
|
+
* Value transferred in the transaction
|
|
6683
|
+
*/
|
|
6684
|
+
value: string;
|
|
6685
|
+
/**
|
|
6686
|
+
* Transaction type
|
|
6687
|
+
*/
|
|
6688
|
+
type: number;
|
|
6689
|
+
/**
|
|
6690
|
+
* Chain ID of the network
|
|
6691
|
+
*/
|
|
6692
|
+
chainId: string;
|
|
6693
|
+
/**
|
|
6694
|
+
* Cumulative gas used
|
|
6695
|
+
*/
|
|
6696
|
+
receiptCumulativeGasUsed: string;
|
|
6697
|
+
/**
|
|
6698
|
+
* Gas used
|
|
6699
|
+
*/
|
|
6700
|
+
receiptGasUsed: string;
|
|
6701
|
+
/**
|
|
6702
|
+
* Effective gas price
|
|
6703
|
+
*/
|
|
6704
|
+
receiptEffectiveGasPrice: string;
|
|
6705
|
+
/**
|
|
6706
|
+
* Receipt root
|
|
6707
|
+
*/
|
|
6708
|
+
receiptRoot: string;
|
|
6709
|
+
/**
|
|
6710
|
+
* Block timestamp
|
|
6711
|
+
*/
|
|
6712
|
+
blockTimestamp: number;
|
|
6713
|
+
/**
|
|
6714
|
+
* Contract address (optional)
|
|
6715
|
+
*/
|
|
6716
|
+
contractAddress?: string;
|
|
6717
|
+
/**
|
|
6718
|
+
* ERC20 transfers
|
|
6719
|
+
*/
|
|
6720
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6721
|
+
/**
|
|
6722
|
+
* ERC721 transfers
|
|
6723
|
+
*/
|
|
6724
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6725
|
+
/**
|
|
6726
|
+
* ERC1155 transfers
|
|
6727
|
+
*/
|
|
6728
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6729
|
+
/**
|
|
6730
|
+
* Internal transactions (optional)
|
|
6731
|
+
*/
|
|
6732
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6733
|
+
/**
|
|
6734
|
+
* Access list (optional)
|
|
6735
|
+
*/
|
|
6736
|
+
accessList?: Array<AccessListData>;
|
|
6737
|
+
/**
|
|
6738
|
+
* Network token info (optional)
|
|
6739
|
+
*/
|
|
6740
|
+
networkToken?: NetworkTokenInfo;
|
|
6741
|
+
};
|
|
6742
|
+
|
|
6743
|
+
type TransactionEvent = {
|
|
6744
|
+
/**
|
|
6745
|
+
* Transaction details
|
|
6746
|
+
*/
|
|
6747
|
+
transaction: Transaction;
|
|
6748
|
+
/**
|
|
6749
|
+
* Array of log events
|
|
6750
|
+
*/
|
|
6751
|
+
logs?: Array<Log>;
|
|
6752
|
+
};
|
|
6753
|
+
|
|
5168
6754
|
type Unauthorized = {
|
|
5169
6755
|
/**
|
|
5170
6756
|
* The error message describing the reason for the exception
|
|
@@ -5180,4 +6766,43 @@ type Unauthorized = {
|
|
|
5180
6766
|
error: string;
|
|
5181
6767
|
};
|
|
5182
6768
|
|
|
5183
|
-
|
|
6769
|
+
type WebhookAddressActivityResponse = {
|
|
6770
|
+
/**
|
|
6771
|
+
* Webhook ID
|
|
6772
|
+
*/
|
|
6773
|
+
webhookId: string;
|
|
6774
|
+
/**
|
|
6775
|
+
* Event type
|
|
6776
|
+
*/
|
|
6777
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6778
|
+
/**
|
|
6779
|
+
* Message ID
|
|
6780
|
+
*/
|
|
6781
|
+
messageId: string;
|
|
6782
|
+
/**
|
|
6783
|
+
* Event details
|
|
6784
|
+
*/
|
|
6785
|
+
event: TransactionEvent;
|
|
6786
|
+
};
|
|
6787
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6788
|
+
/**
|
|
6789
|
+
* Event type
|
|
6790
|
+
*/
|
|
6791
|
+
enum eventType {
|
|
6792
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6793
|
+
}
|
|
6794
|
+
}
|
|
6795
|
+
|
|
6796
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6797
|
+
constructor(config: OpenAPIConfig);
|
|
6798
|
+
/**
|
|
6799
|
+
* Request method
|
|
6800
|
+
* @param options The request options from the service
|
|
6801
|
+
* @returns CancelablePromise<T>
|
|
6802
|
+
* @throws ApiError
|
|
6803
|
+
*/
|
|
6804
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6805
|
+
}
|
|
6806
|
+
|
|
6807
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6808
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|