@avalabs/glacier-sdk 3.1.0-canary.fcb15b0.0 → 3.1.0-canary.fdddfa3.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 +2251 -384
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/AvaxSupplyResponse.d.ts +44 -0
- 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 +11 -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 +9 -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/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- 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 -3
- 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 +1 -1
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +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 +33 -15
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +32 -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/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -3
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- 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 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +17 -3
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +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 +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -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 +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- 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 +69 -4
- 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 +11 -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 +30 -12
- 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/PrimaryNetworkUtxOsService.d.ts +56 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.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 +70 -5
- 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/SubnetValidatorManagerDetails.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,61 @@ declare abstract class BaseHttpRequest {
|
|
|
54
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
type AvaxSupplyResponse = {
|
|
58
|
+
/**
|
|
59
|
+
* The circulating supply of AVAX.
|
|
60
|
+
*/
|
|
61
|
+
circulatingSupply: string;
|
|
62
|
+
/**
|
|
63
|
+
* The total supply of AVAX.
|
|
64
|
+
*/
|
|
65
|
+
totalSupply: string;
|
|
66
|
+
/**
|
|
67
|
+
* The total P-chain burned fees of AVAX.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* The total C-chain burned fees of AVAX.
|
|
72
|
+
*/
|
|
73
|
+
totalCBurned: string;
|
|
74
|
+
/**
|
|
75
|
+
* The total X-chain burned fees of AVAX.
|
|
76
|
+
*/
|
|
77
|
+
totalXBurned: string;
|
|
78
|
+
/**
|
|
79
|
+
* The total staked AVAX.
|
|
80
|
+
*/
|
|
81
|
+
totalStaked: string;
|
|
82
|
+
/**
|
|
83
|
+
* The total locked AVAX.
|
|
84
|
+
*/
|
|
85
|
+
totalLocked: string;
|
|
86
|
+
/**
|
|
87
|
+
* The total rewards AVAX.
|
|
88
|
+
*/
|
|
89
|
+
totalRewards: string;
|
|
90
|
+
/**
|
|
91
|
+
* The last updated time of the AVAX supply.
|
|
92
|
+
*/
|
|
93
|
+
lastUpdated: string;
|
|
94
|
+
/**
|
|
95
|
+
* The genesis unlock amount of the AVAX supply.
|
|
96
|
+
*/
|
|
97
|
+
genesisUnlock: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
declare class AvaxSupplyService {
|
|
101
|
+
readonly httpRequest: BaseHttpRequest;
|
|
102
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
103
|
+
/**
|
|
104
|
+
* Get AVAX supply information
|
|
105
|
+
* 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.
|
|
106
|
+
* @returns AvaxSupplyResponse Successful response
|
|
107
|
+
* @throws ApiError
|
|
108
|
+
*/
|
|
109
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
110
|
+
}
|
|
111
|
+
|
|
57
112
|
type LogsFormatMetadata = {
|
|
58
113
|
/**
|
|
59
114
|
* The IP address of the client that made the request.
|
|
@@ -148,6 +203,28 @@ type LogsResponseDTO = {
|
|
|
148
203
|
logs: Array<LogsFormat>;
|
|
149
204
|
};
|
|
150
205
|
|
|
206
|
+
declare enum Network {
|
|
207
|
+
MAINNET = "mainnet",
|
|
208
|
+
FUJI = "fuji",
|
|
209
|
+
TESTNET = "testnet"
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
213
|
+
RPC_METHOD = "rpcMethod",
|
|
214
|
+
REQUEST_PATH = "requestPath",
|
|
215
|
+
RESPONSE_CODE = "responseCode",
|
|
216
|
+
COUNTRY = "country",
|
|
217
|
+
CONTINENT = "continent",
|
|
218
|
+
USER_AGENT = "userAgent"
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
222
|
+
HOURLY = "hourly",
|
|
223
|
+
DAILY = "daily",
|
|
224
|
+
WEEKLY = "weekly",
|
|
225
|
+
MONTHLY = "monthly"
|
|
226
|
+
}
|
|
227
|
+
|
|
151
228
|
type RpcUsageMetricsValueAggregated = {
|
|
152
229
|
/**
|
|
153
230
|
* The total number of requests
|
|
@@ -173,6 +250,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
250
|
* The number of invalid requests
|
|
174
251
|
*/
|
|
175
252
|
invalidRequests: number;
|
|
253
|
+
/**
|
|
254
|
+
* The number of API credits wasted on invalid requests
|
|
255
|
+
*/
|
|
256
|
+
apiCreditsWasted: number;
|
|
176
257
|
/**
|
|
177
258
|
* Column name used for data aggregation
|
|
178
259
|
*/
|
|
@@ -190,6 +271,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
271
|
RPC_METHOD = "rpcMethod",
|
|
191
272
|
RESPONSE_CODE = "responseCode",
|
|
192
273
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
274
|
+
REQUEST_PATH = "requestPath",
|
|
275
|
+
COUNTRY = "country",
|
|
276
|
+
CONTINENT = "continent",
|
|
277
|
+
USER_AGENT = "userAgent",
|
|
193
278
|
NONE = "None"
|
|
194
279
|
}
|
|
195
280
|
}
|
|
@@ -205,19 +290,56 @@ type RpcMetrics = {
|
|
|
205
290
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
291
|
};
|
|
207
292
|
|
|
208
|
-
type
|
|
293
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
294
|
/**
|
|
210
295
|
* Duration in which the metrics value is aggregated
|
|
211
296
|
*/
|
|
212
297
|
aggregateDuration: string;
|
|
213
298
|
/**
|
|
214
|
-
*
|
|
299
|
+
* Metrics values
|
|
215
300
|
*/
|
|
216
|
-
|
|
301
|
+
metrics: Array<RpcMetrics>;
|
|
302
|
+
/**
|
|
303
|
+
* Network type for which the metrics are aggregated
|
|
304
|
+
*/
|
|
305
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
306
|
+
};
|
|
307
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
308
|
+
/**
|
|
309
|
+
* Network type for which the metrics are aggregated
|
|
310
|
+
*/
|
|
311
|
+
enum network {
|
|
312
|
+
MAINNET = "mainnet",
|
|
313
|
+
TESTNET = "testnet"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
318
|
+
RPC_METHOD = "rpcMethod",
|
|
319
|
+
RESPONSE_CODE = "responseCode",
|
|
320
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
324
|
+
HOURLY = "hourly",
|
|
325
|
+
DAILY = "daily",
|
|
326
|
+
WEEKLY = "weekly",
|
|
327
|
+
MONTHLY = "monthly"
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
331
|
+
/**
|
|
332
|
+
* Duration in which the metrics value is aggregated
|
|
333
|
+
*/
|
|
334
|
+
aggregateDuration: string;
|
|
217
335
|
/**
|
|
218
336
|
* Metrics values
|
|
219
337
|
*/
|
|
220
338
|
metrics: Array<RpcMetrics>;
|
|
339
|
+
/**
|
|
340
|
+
* ChainId for which the metrics are aggregated
|
|
341
|
+
*/
|
|
342
|
+
chainId: string;
|
|
221
343
|
};
|
|
222
344
|
|
|
223
345
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +445,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
445
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
446
|
* @throws ApiError
|
|
325
447
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
448
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
449
|
/**
|
|
328
450
|
* Organization ID to fetch usage metrics for
|
|
329
451
|
*/
|
|
@@ -348,10 +470,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
470
|
* Filter data by chain ID.
|
|
349
471
|
*/
|
|
350
472
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
473
|
/**
|
|
356
474
|
* Filter data by response status code.
|
|
357
475
|
*/
|
|
@@ -364,6 +482,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
482
|
* Filter data by API key ID.
|
|
365
483
|
*/
|
|
366
484
|
apiKeyId?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Filter data by request path.
|
|
487
|
+
*/
|
|
488
|
+
requestPath?: string;
|
|
367
489
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
490
|
/**
|
|
369
491
|
* Get logs for requests made by client
|
|
@@ -371,7 +493,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
493
|
* @returns LogsResponseDTO Successful response
|
|
372
494
|
* @throws ApiError
|
|
373
495
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
496
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
497
|
/**
|
|
376
498
|
* Organization ID to fetch usage metrics for
|
|
377
499
|
*/
|
|
@@ -388,10 +510,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
510
|
* Filter data by chain ID.
|
|
389
511
|
*/
|
|
390
512
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
513
|
/**
|
|
396
514
|
* Filter data by response status code.
|
|
397
515
|
*/
|
|
@@ -404,6 +522,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
522
|
* Filter data by API key ID.
|
|
405
523
|
*/
|
|
406
524
|
apiKeyId?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Filter data by request path.
|
|
527
|
+
*/
|
|
528
|
+
requestPath?: string;
|
|
407
529
|
/**
|
|
408
530
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
531
|
*/
|
|
@@ -415,15 +537,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
537
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
538
|
/**
|
|
417
539
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
540
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
541
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
542
|
* @throws ApiError
|
|
421
543
|
*/
|
|
422
|
-
|
|
544
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
545
|
/**
|
|
424
|
-
*
|
|
546
|
+
* Time interval granularity for data aggregation for subnet
|
|
547
|
+
* rpc metrics
|
|
425
548
|
*/
|
|
426
|
-
timeInterval?:
|
|
549
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
550
|
/**
|
|
428
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.
|
|
429
552
|
*/
|
|
@@ -435,15 +558,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
558
|
/**
|
|
436
559
|
* Query param for the criterion used for grouping metrics
|
|
437
560
|
*/
|
|
438
|
-
groupBy?:
|
|
561
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
562
|
/**
|
|
440
563
|
* Filter data by chain ID.
|
|
441
564
|
*/
|
|
442
565
|
chainId?: string;
|
|
443
566
|
/**
|
|
444
|
-
* Filter data by
|
|
567
|
+
* Filter data by response status code.
|
|
445
568
|
*/
|
|
446
|
-
|
|
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
|
+
* @deprecated
|
|
581
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
582
|
+
*
|
|
583
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
584
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
585
|
+
* @throws ApiError
|
|
586
|
+
*/
|
|
587
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
588
|
+
/**
|
|
589
|
+
* Time interval granularity for data aggregation for subnet
|
|
590
|
+
* rpc metrics
|
|
591
|
+
*/
|
|
592
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
593
|
+
/**
|
|
594
|
+
* 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.
|
|
595
|
+
*/
|
|
596
|
+
startTimestamp?: number;
|
|
597
|
+
/**
|
|
598
|
+
* 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.
|
|
599
|
+
*/
|
|
600
|
+
endTimestamp?: number;
|
|
601
|
+
/**
|
|
602
|
+
* Query param for the criterion used for grouping metrics
|
|
603
|
+
*/
|
|
604
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
605
|
+
/**
|
|
606
|
+
* Filter data by chain ID.
|
|
607
|
+
*/
|
|
608
|
+
chainId?: string;
|
|
447
609
|
/**
|
|
448
610
|
* Filter data by response status code.
|
|
449
611
|
*/
|
|
@@ -456,7 +618,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
618
|
* Filter data by Rl Bypass API Token.
|
|
457
619
|
*/
|
|
458
620
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
621
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
622
|
+
/**
|
|
623
|
+
* Get usage metrics for the Primary Network RPC
|
|
624
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
625
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
626
|
+
* @throws ApiError
|
|
627
|
+
*/
|
|
628
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
629
|
+
/**
|
|
630
|
+
* Either mainnet or testnet/fuji.
|
|
631
|
+
*/
|
|
632
|
+
network: Network;
|
|
633
|
+
/**
|
|
634
|
+
* Time interval granularity for data aggregation for subnet
|
|
635
|
+
* rpc metrics
|
|
636
|
+
*/
|
|
637
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
638
|
+
/**
|
|
639
|
+
* 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.
|
|
640
|
+
*/
|
|
641
|
+
startTimestamp?: number;
|
|
642
|
+
/**
|
|
643
|
+
* 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.
|
|
644
|
+
*/
|
|
645
|
+
endTimestamp?: number;
|
|
646
|
+
/**
|
|
647
|
+
* Query param for the criterion used for grouping metrics
|
|
648
|
+
*/
|
|
649
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
650
|
+
/**
|
|
651
|
+
* Filter data by response status code.
|
|
652
|
+
*/
|
|
653
|
+
responseCode?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Filter data by request path.
|
|
656
|
+
*/
|
|
657
|
+
requestPath?: string;
|
|
658
|
+
/**
|
|
659
|
+
* 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.
|
|
660
|
+
*/
|
|
661
|
+
country?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
664
|
+
*/
|
|
665
|
+
continent?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Filter data by User Agent.
|
|
668
|
+
*/
|
|
669
|
+
userAgent?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Filter data by RPC method.
|
|
672
|
+
*/
|
|
673
|
+
rpcMethod?: string;
|
|
674
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
460
675
|
}
|
|
461
676
|
|
|
462
677
|
declare class DefaultService {
|
|
@@ -655,6 +870,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
870
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
656
871
|
*/
|
|
657
872
|
nextPageToken?: string;
|
|
873
|
+
/**
|
|
874
|
+
* The native token balance for the address.
|
|
875
|
+
*/
|
|
876
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
877
|
/**
|
|
659
878
|
* The list of ERC-1155 token balances for the address.
|
|
660
879
|
*/
|
|
@@ -699,11 +918,22 @@ type Erc20TokenBalance = {
|
|
|
699
918
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
919
|
*/
|
|
701
920
|
balanceValue?: Money;
|
|
921
|
+
/**
|
|
922
|
+
* 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.
|
|
923
|
+
*/
|
|
924
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
925
|
};
|
|
703
926
|
declare namespace Erc20TokenBalance {
|
|
704
927
|
enum ercType {
|
|
705
928
|
ERC_20 = "ERC-20"
|
|
706
929
|
}
|
|
930
|
+
/**
|
|
931
|
+
* 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.
|
|
932
|
+
*/
|
|
933
|
+
enum tokenReputation {
|
|
934
|
+
MALICIOUS = "Malicious",
|
|
935
|
+
BENIGN = "Benign"
|
|
936
|
+
}
|
|
707
937
|
}
|
|
708
938
|
|
|
709
939
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +941,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
941
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
712
942
|
*/
|
|
713
943
|
nextPageToken?: string;
|
|
944
|
+
/**
|
|
945
|
+
* The native token balance for the address.
|
|
946
|
+
*/
|
|
947
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
948
|
/**
|
|
715
949
|
* The list of ERC-20 token balances for the address.
|
|
716
950
|
*/
|
|
@@ -722,6 +956,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
956
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
723
957
|
*/
|
|
724
958
|
nextPageToken?: string;
|
|
959
|
+
/**
|
|
960
|
+
* The native token balance for the address.
|
|
961
|
+
*/
|
|
962
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
963
|
/**
|
|
726
964
|
* The list of ERC-721 token balances for the address.
|
|
727
965
|
*/
|
|
@@ -785,7 +1023,7 @@ declare class EvmBalancesService {
|
|
|
785
1023
|
*/
|
|
786
1024
|
pageToken?: string;
|
|
787
1025
|
/**
|
|
788
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1026
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
789
1027
|
*/
|
|
790
1028
|
pageSize?: number;
|
|
791
1029
|
/**
|
|
@@ -823,7 +1061,7 @@ declare class EvmBalancesService {
|
|
|
823
1061
|
*/
|
|
824
1062
|
pageToken?: string;
|
|
825
1063
|
/**
|
|
826
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1064
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
827
1065
|
*/
|
|
828
1066
|
pageSize?: number;
|
|
829
1067
|
/**
|
|
@@ -859,7 +1097,7 @@ declare class EvmBalancesService {
|
|
|
859
1097
|
*/
|
|
860
1098
|
pageToken?: string;
|
|
861
1099
|
/**
|
|
862
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1100
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
863
1101
|
*/
|
|
864
1102
|
pageSize?: number;
|
|
865
1103
|
/**
|
|
@@ -889,7 +1127,7 @@ declare class EvmBalancesService {
|
|
|
889
1127
|
*/
|
|
890
1128
|
pageToken?: string;
|
|
891
1129
|
/**
|
|
892
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1130
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
893
1131
|
*/
|
|
894
1132
|
pageSize?: number;
|
|
895
1133
|
/**
|
|
@@ -900,6 +1138,10 @@ declare class EvmBalancesService {
|
|
|
900
1138
|
}
|
|
901
1139
|
|
|
902
1140
|
type GetEvmBlockResponse = {
|
|
1141
|
+
/**
|
|
1142
|
+
* The EVM chain ID on which the block was created.
|
|
1143
|
+
*/
|
|
1144
|
+
chainId: string;
|
|
903
1145
|
/**
|
|
904
1146
|
* The block number on the chain.
|
|
905
1147
|
*/
|
|
@@ -944,6 +1186,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1186
|
};
|
|
945
1187
|
|
|
946
1188
|
type EvmBlock = {
|
|
1189
|
+
/**
|
|
1190
|
+
* The EVM chain ID on which the block was created.
|
|
1191
|
+
*/
|
|
1192
|
+
chainId: string;
|
|
947
1193
|
/**
|
|
948
1194
|
* The block number on the chain.
|
|
949
1195
|
*/
|
|
@@ -998,6 +1244,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1244
|
declare class EvmBlocksService {
|
|
999
1245
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1246
|
constructor(httpRequest: BaseHttpRequest);
|
|
1247
|
+
/**
|
|
1248
|
+
* List latest blocks across all supported EVM chains
|
|
1249
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1250
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1251
|
+
* @throws ApiError
|
|
1252
|
+
*/
|
|
1253
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1254
|
+
/**
|
|
1255
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1256
|
+
*/
|
|
1257
|
+
pageToken?: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1260
|
+
*/
|
|
1261
|
+
pageSize?: number;
|
|
1262
|
+
/**
|
|
1263
|
+
* Either mainnet or testnet/fuji.
|
|
1264
|
+
*/
|
|
1265
|
+
network?: Network;
|
|
1266
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1267
|
/**
|
|
1002
1268
|
* List latest blocks
|
|
1003
1269
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1129,48 +1395,167 @@ type ListChainsResponse = {
|
|
|
1129
1395
|
chains: Array<ChainInfo>;
|
|
1130
1396
|
};
|
|
1131
1397
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1398
|
+
/**
|
|
1399
|
+
* 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.
|
|
1400
|
+
*/
|
|
1401
|
+
declare enum TransactionMethodType {
|
|
1402
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1403
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1404
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1137
1405
|
}
|
|
1138
1406
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1407
|
+
type Method = {
|
|
1408
|
+
callType: TransactionMethodType;
|
|
1142
1409
|
/**
|
|
1143
|
-
*
|
|
1144
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1145
|
-
* @returns ListChainsResponse Successful response
|
|
1146
|
-
* @throws ApiError
|
|
1410
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1147
1411
|
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Either mainnet or testnet/fuji.
|
|
1151
|
-
*/
|
|
1152
|
-
network?: Network;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter by feature.
|
|
1155
|
-
*/
|
|
1156
|
-
feature?: ApiFeature;
|
|
1157
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1412
|
+
methodHash: string;
|
|
1158
1413
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1161
|
-
* @returns GetChainResponse Successful response
|
|
1162
|
-
* @throws ApiError
|
|
1414
|
+
* 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'.
|
|
1163
1415
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
chainId: string;
|
|
1169
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1416
|
+
methodName?: string;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1419
|
+
type RichAddress = {
|
|
1170
1420
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
|
|
1173
|
-
|
|
1421
|
+
* The contract name.
|
|
1422
|
+
*/
|
|
1423
|
+
name?: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* The contract symbol.
|
|
1426
|
+
*/
|
|
1427
|
+
symbol?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1430
|
+
*/
|
|
1431
|
+
decimals?: number;
|
|
1432
|
+
/**
|
|
1433
|
+
* The logo uri for the address.
|
|
1434
|
+
*/
|
|
1435
|
+
logoUri?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1438
|
+
*/
|
|
1439
|
+
address: string;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
type NativeTransaction = {
|
|
1443
|
+
/**
|
|
1444
|
+
* The block number on the chain.
|
|
1445
|
+
*/
|
|
1446
|
+
blockNumber: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* The block finality timestamp.
|
|
1449
|
+
*/
|
|
1450
|
+
blockTimestamp: number;
|
|
1451
|
+
/**
|
|
1452
|
+
* The block hash identifier.
|
|
1453
|
+
*/
|
|
1454
|
+
blockHash: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* The EVM chain ID on which the transaction occured.
|
|
1457
|
+
*/
|
|
1458
|
+
chainId: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1461
|
+
*/
|
|
1462
|
+
blockIndex: number;
|
|
1463
|
+
/**
|
|
1464
|
+
* The transaction hash identifier.
|
|
1465
|
+
*/
|
|
1466
|
+
txHash: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1469
|
+
*/
|
|
1470
|
+
txStatus: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* The transaction type.
|
|
1473
|
+
*/
|
|
1474
|
+
txType: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* The gas limit set for the transaction.
|
|
1477
|
+
*/
|
|
1478
|
+
gasLimit: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* The amount of gas used.
|
|
1481
|
+
*/
|
|
1482
|
+
gasUsed: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1485
|
+
*/
|
|
1486
|
+
gasPrice: string;
|
|
1487
|
+
/**
|
|
1488
|
+
* The nonce used by the sender of the transaction.
|
|
1489
|
+
*/
|
|
1490
|
+
nonce: string;
|
|
1491
|
+
from: RichAddress;
|
|
1492
|
+
to: RichAddress;
|
|
1493
|
+
method?: Method;
|
|
1494
|
+
value: string;
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
type ListNativeTransactionsResponse = {
|
|
1498
|
+
/**
|
|
1499
|
+
* 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.
|
|
1500
|
+
*/
|
|
1501
|
+
nextPageToken?: string;
|
|
1502
|
+
transactions: Array<NativeTransaction>;
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
declare enum TransactionStatus {
|
|
1506
|
+
FAILED = "failed",
|
|
1507
|
+
SUCCESS = "success"
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
declare class EvmChainsService {
|
|
1511
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1512
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1513
|
+
/**
|
|
1514
|
+
* List all chains associated with a given address
|
|
1515
|
+
* 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.
|
|
1516
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1517
|
+
* @throws ApiError
|
|
1518
|
+
*/
|
|
1519
|
+
listAddressChains({ address, }: {
|
|
1520
|
+
/**
|
|
1521
|
+
* A wallet address.
|
|
1522
|
+
*/
|
|
1523
|
+
address: string;
|
|
1524
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1525
|
+
/**
|
|
1526
|
+
* List chains
|
|
1527
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1528
|
+
* @returns ListChainsResponse Successful response
|
|
1529
|
+
* @throws ApiError
|
|
1530
|
+
*/
|
|
1531
|
+
supportedChains({ network, feature, }: {
|
|
1532
|
+
/**
|
|
1533
|
+
* Either mainnet or testnet/fuji.
|
|
1534
|
+
*/
|
|
1535
|
+
network?: Network;
|
|
1536
|
+
/**
|
|
1537
|
+
* Filter by feature.
|
|
1538
|
+
*/
|
|
1539
|
+
feature?: ApiFeature;
|
|
1540
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Get chain information
|
|
1543
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1544
|
+
* @returns GetChainResponse Successful response
|
|
1545
|
+
* @throws ApiError
|
|
1546
|
+
*/
|
|
1547
|
+
getChainInfo({ chainId, }: {
|
|
1548
|
+
/**
|
|
1549
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1550
|
+
*/
|
|
1551
|
+
chainId: string;
|
|
1552
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1553
|
+
/**
|
|
1554
|
+
* @deprecated
|
|
1555
|
+
* **[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.
|
|
1556
|
+
*
|
|
1557
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1558
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1174
1559
|
* @throws ApiError
|
|
1175
1560
|
*/
|
|
1176
1561
|
getAddressChains({ address, }: {
|
|
@@ -1179,6 +1564,54 @@ declare class EvmChainsService {
|
|
|
1179
1564
|
*/
|
|
1180
1565
|
address: string;
|
|
1181
1566
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1567
|
+
/**
|
|
1568
|
+
* @deprecated
|
|
1569
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1570
|
+
*
|
|
1571
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1572
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1573
|
+
* @throws ApiError
|
|
1574
|
+
*/
|
|
1575
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1576
|
+
/**
|
|
1577
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1578
|
+
*/
|
|
1579
|
+
pageToken?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1582
|
+
*/
|
|
1583
|
+
pageSize?: number;
|
|
1584
|
+
/**
|
|
1585
|
+
* Either mainnet or testnet/fuji.
|
|
1586
|
+
*/
|
|
1587
|
+
network?: Network;
|
|
1588
|
+
/**
|
|
1589
|
+
* A status filter for listed transactions.
|
|
1590
|
+
*/
|
|
1591
|
+
status?: TransactionStatus;
|
|
1592
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1593
|
+
/**
|
|
1594
|
+
* @deprecated
|
|
1595
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1596
|
+
*
|
|
1597
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1598
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1599
|
+
* @throws ApiError
|
|
1600
|
+
*/
|
|
1601
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1602
|
+
/**
|
|
1603
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1604
|
+
*/
|
|
1605
|
+
pageToken?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1608
|
+
*/
|
|
1609
|
+
pageSize?: number;
|
|
1610
|
+
/**
|
|
1611
|
+
* Either mainnet or testnet/fuji.
|
|
1612
|
+
*/
|
|
1613
|
+
network?: Network;
|
|
1614
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1182
1615
|
}
|
|
1183
1616
|
|
|
1184
1617
|
type ImageAsset = {
|
|
@@ -1350,7 +1783,7 @@ type Erc1155Contract = {
|
|
|
1350
1783
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1351
1784
|
*/
|
|
1352
1785
|
address: string;
|
|
1353
|
-
deploymentDetails
|
|
1786
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1354
1787
|
ercType: Erc1155Contract.ercType;
|
|
1355
1788
|
/**
|
|
1356
1789
|
* The contract symbol.
|
|
@@ -1381,7 +1814,7 @@ type Erc20Contract = {
|
|
|
1381
1814
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1382
1815
|
*/
|
|
1383
1816
|
address: string;
|
|
1384
|
-
deploymentDetails
|
|
1817
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1385
1818
|
ercType: Erc20Contract.ercType;
|
|
1386
1819
|
/**
|
|
1387
1820
|
* The contract symbol.
|
|
@@ -1416,7 +1849,7 @@ type Erc721Contract = {
|
|
|
1416
1849
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1417
1850
|
*/
|
|
1418
1851
|
address: string;
|
|
1419
|
-
deploymentDetails
|
|
1852
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1420
1853
|
ercType: Erc721Contract.ercType;
|
|
1421
1854
|
/**
|
|
1422
1855
|
* The contract symbol.
|
|
@@ -1446,7 +1879,7 @@ type UnknownContract = {
|
|
|
1446
1879
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1447
1880
|
*/
|
|
1448
1881
|
address: string;
|
|
1449
|
-
deploymentDetails
|
|
1882
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1450
1883
|
ercType: UnknownContract.ercType;
|
|
1451
1884
|
};
|
|
1452
1885
|
declare namespace UnknownContract {
|
|
@@ -1513,29 +1946,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1946
|
}
|
|
1514
1947
|
}
|
|
1515
1948
|
|
|
1516
|
-
type RichAddress = {
|
|
1517
|
-
/**
|
|
1518
|
-
* The contract name.
|
|
1519
|
-
*/
|
|
1520
|
-
name?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* The contract symbol.
|
|
1523
|
-
*/
|
|
1524
|
-
symbol?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1527
|
-
*/
|
|
1528
|
-
decimals?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* The logo uri for the address.
|
|
1531
|
-
*/
|
|
1532
|
-
logoUri?: string;
|
|
1533
|
-
/**
|
|
1534
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1535
|
-
*/
|
|
1536
|
-
address: string;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
1949
|
type Erc1155TransferDetails = {
|
|
1540
1950
|
from: RichAddress;
|
|
1541
1951
|
to: RichAddress;
|
|
@@ -1620,27 +2030,6 @@ type Erc721TransferDetails = {
|
|
|
1620
2030
|
erc721Token: Erc721Token;
|
|
1621
2031
|
};
|
|
1622
2032
|
|
|
1623
|
-
/**
|
|
1624
|
-
* 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.
|
|
1625
|
-
*/
|
|
1626
|
-
declare enum TransactionMethodType {
|
|
1627
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1628
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1629
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
type Method = {
|
|
1633
|
-
callType: TransactionMethodType;
|
|
1634
|
-
/**
|
|
1635
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1636
|
-
*/
|
|
1637
|
-
methodHash: string;
|
|
1638
|
-
/**
|
|
1639
|
-
* 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'.
|
|
1640
|
-
*/
|
|
1641
|
-
methodName?: string;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
2033
|
type FullNativeTransactionDetails = {
|
|
1645
2034
|
/**
|
|
1646
2035
|
* The block number on the chain.
|
|
@@ -1654,6 +2043,10 @@ type FullNativeTransactionDetails = {
|
|
|
1654
2043
|
* The block hash identifier.
|
|
1655
2044
|
*/
|
|
1656
2045
|
blockHash: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* The EVM chain ID on which the transaction occured.
|
|
2048
|
+
*/
|
|
2049
|
+
chainId: string;
|
|
1657
2050
|
/**
|
|
1658
2051
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
2052
|
*/
|
|
@@ -1704,6 +2097,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1704
2097
|
CALL = "CALL",
|
|
1705
2098
|
CREATE = "CREATE",
|
|
1706
2099
|
CREATE2 = "CREATE2",
|
|
2100
|
+
CREATE3 = "CREATE3",
|
|
1707
2101
|
CALLCODE = "CALLCODE",
|
|
1708
2102
|
DELEGATECALL = "DELEGATECALL",
|
|
1709
2103
|
STATICCALL = "STATICCALL"
|
|
@@ -1745,11 +2139,11 @@ type TeleporterMessageInfo = {
|
|
|
1745
2139
|
/**
|
|
1746
2140
|
* chain id of the source chain. valid only for destination transactions
|
|
1747
2141
|
*/
|
|
1748
|
-
sourceChainId?:
|
|
2142
|
+
sourceChainId?: string;
|
|
1749
2143
|
/**
|
|
1750
2144
|
* chain id of the destination chain. valid only for source transactions
|
|
1751
2145
|
*/
|
|
1752
|
-
destinationChainId?:
|
|
2146
|
+
destinationChainId?: string;
|
|
1753
2147
|
};
|
|
1754
2148
|
|
|
1755
2149
|
type GetTransactionResponse = {
|
|
@@ -1766,7 +2160,7 @@ type GetTransactionResponse = {
|
|
|
1766
2160
|
*/
|
|
1767
2161
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1768
2162
|
/**
|
|
1769
|
-
* 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
|
|
2163
|
+
* 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.
|
|
1770
2164
|
*/
|
|
1771
2165
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1772
2166
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1917,99 +2311,40 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2311
|
transactions: Array<InternalTransaction>;
|
|
1918
2312
|
};
|
|
1919
2313
|
|
|
1920
|
-
type
|
|
2314
|
+
type TransactionDetails = {
|
|
1921
2315
|
/**
|
|
1922
|
-
* The
|
|
2316
|
+
* The native (top-level) transaction details.
|
|
1923
2317
|
*/
|
|
1924
|
-
|
|
2318
|
+
nativeTransaction: NativeTransaction;
|
|
1925
2319
|
/**
|
|
1926
|
-
* The
|
|
2320
|
+
* The list of ERC-20 transfers.
|
|
1927
2321
|
*/
|
|
1928
|
-
|
|
2322
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1929
2323
|
/**
|
|
1930
|
-
* The
|
|
2324
|
+
* The list of ERC-721 transfers.
|
|
1931
2325
|
*/
|
|
1932
|
-
|
|
2326
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1933
2327
|
/**
|
|
1934
|
-
* The
|
|
2328
|
+
* The list of ERC-1155 transfers.
|
|
1935
2329
|
*/
|
|
1936
|
-
|
|
2330
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1937
2331
|
/**
|
|
1938
|
-
* The
|
|
2332
|
+
* 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.
|
|
1939
2333
|
*/
|
|
1940
|
-
|
|
2334
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2335
|
+
};
|
|
2336
|
+
|
|
2337
|
+
type ListTransactionDetailsResponse = {
|
|
1941
2338
|
/**
|
|
1942
|
-
*
|
|
2339
|
+
* 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.
|
|
1943
2340
|
*/
|
|
1944
|
-
|
|
2341
|
+
nextPageToken?: string;
|
|
2342
|
+
transactions: Array<TransactionDetails>;
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
type ListTransfersResponse = {
|
|
1945
2346
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
*/
|
|
1948
|
-
txType: number;
|
|
1949
|
-
/**
|
|
1950
|
-
* The gas limit set for the transaction.
|
|
1951
|
-
*/
|
|
1952
|
-
gasLimit: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* The amount of gas used.
|
|
1955
|
-
*/
|
|
1956
|
-
gasUsed: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1959
|
-
*/
|
|
1960
|
-
gasPrice: string;
|
|
1961
|
-
/**
|
|
1962
|
-
* The nonce used by the sender of the transaction.
|
|
1963
|
-
*/
|
|
1964
|
-
nonce: string;
|
|
1965
|
-
from: RichAddress;
|
|
1966
|
-
to: RichAddress;
|
|
1967
|
-
method?: Method;
|
|
1968
|
-
value: string;
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
type ListNativeTransactionsResponse = {
|
|
1972
|
-
/**
|
|
1973
|
-
* 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.
|
|
1974
|
-
*/
|
|
1975
|
-
nextPageToken?: string;
|
|
1976
|
-
transactions: Array<NativeTransaction>;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
type TransactionDetails = {
|
|
1980
|
-
/**
|
|
1981
|
-
* The native (top-level) transaction details.
|
|
1982
|
-
*/
|
|
1983
|
-
nativeTransaction: NativeTransaction;
|
|
1984
|
-
/**
|
|
1985
|
-
* The list of ERC-20 transfers.
|
|
1986
|
-
*/
|
|
1987
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1988
|
-
/**
|
|
1989
|
-
* The list of ERC-721 transfers.
|
|
1990
|
-
*/
|
|
1991
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1992
|
-
/**
|
|
1993
|
-
* The list of ERC-1155 transfers.
|
|
1994
|
-
*/
|
|
1995
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1996
|
-
/**
|
|
1997
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1998
|
-
*/
|
|
1999
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2000
|
-
};
|
|
2001
|
-
|
|
2002
|
-
type ListTransactionDetailsResponse = {
|
|
2003
|
-
/**
|
|
2004
|
-
* 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.
|
|
2005
|
-
*/
|
|
2006
|
-
nextPageToken?: string;
|
|
2007
|
-
transactions: Array<TransactionDetails>;
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
type ListTransfersResponse = {
|
|
2011
|
-
/**
|
|
2012
|
-
* 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.
|
|
2347
|
+
* 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.
|
|
2013
2348
|
*/
|
|
2014
2349
|
nextPageToken?: string;
|
|
2015
2350
|
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
@@ -2020,14 +2355,33 @@ declare enum SortOrder {
|
|
|
2020
2355
|
DESC = "desc"
|
|
2021
2356
|
}
|
|
2022
2357
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2358
|
declare class EvmTransactionsService {
|
|
2029
2359
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
2360
|
constructor(httpRequest: BaseHttpRequest);
|
|
2361
|
+
/**
|
|
2362
|
+
* List the latest transactions across all supported EVM chains
|
|
2363
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2364
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2365
|
+
* @throws ApiError
|
|
2366
|
+
*/
|
|
2367
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2368
|
+
/**
|
|
2369
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2370
|
+
*/
|
|
2371
|
+
pageToken?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2374
|
+
*/
|
|
2375
|
+
pageSize?: number;
|
|
2376
|
+
/**
|
|
2377
|
+
* Either mainnet or testnet/fuji.
|
|
2378
|
+
*/
|
|
2379
|
+
network?: Network;
|
|
2380
|
+
/**
|
|
2381
|
+
* A status filter for listed transactions.
|
|
2382
|
+
*/
|
|
2383
|
+
status?: TransactionStatus;
|
|
2384
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2031
2385
|
/**
|
|
2032
2386
|
* Get deployment transaction
|
|
2033
2387
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2274,7 +2628,7 @@ declare class EvmTransactionsService {
|
|
|
2274
2628
|
* List internal transactions
|
|
2275
2629
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2276
2630
|
*
|
|
2277
|
-
* 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.
|
|
2631
|
+
* 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.
|
|
2278
2632
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2279
2633
|
* @throws ApiError
|
|
2280
2634
|
*/
|
|
@@ -2326,7 +2680,7 @@ declare class EvmTransactionsService {
|
|
|
2326
2680
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
2681
|
* @throws ApiError
|
|
2328
2682
|
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2683
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2330
2684
|
/**
|
|
2331
2685
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
2686
|
*/
|
|
@@ -2335,6 +2689,14 @@ declare class EvmTransactionsService {
|
|
|
2335
2689
|
* A block identifier which is either a block number or the block hash.
|
|
2336
2690
|
*/
|
|
2337
2691
|
blockId: string;
|
|
2692
|
+
/**
|
|
2693
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2694
|
+
*/
|
|
2695
|
+
pageToken?: string;
|
|
2696
|
+
/**
|
|
2697
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2698
|
+
*/
|
|
2699
|
+
pageSize?: number;
|
|
2338
2700
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
2701
|
/**
|
|
2340
2702
|
* List latest transactions
|
|
@@ -2362,68 +2724,211 @@ declare class EvmTransactionsService {
|
|
|
2362
2724
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2363
2725
|
}
|
|
2364
2726
|
|
|
2727
|
+
type HealthIndicatorResultDto = {
|
|
2728
|
+
/**
|
|
2729
|
+
* Status of the health indicator.
|
|
2730
|
+
*/
|
|
2731
|
+
status?: HealthIndicatorResultDto.status;
|
|
2732
|
+
};
|
|
2733
|
+
declare namespace HealthIndicatorResultDto {
|
|
2734
|
+
/**
|
|
2735
|
+
* Status of the health indicator.
|
|
2736
|
+
*/
|
|
2737
|
+
enum status {
|
|
2738
|
+
UP = "up",
|
|
2739
|
+
DOWN = "down"
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
type HealthCheckResultDto = {
|
|
2744
|
+
status?: HealthCheckResultDto.status;
|
|
2745
|
+
info?: any | null;
|
|
2746
|
+
error?: any | null;
|
|
2747
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2748
|
+
};
|
|
2749
|
+
declare namespace HealthCheckResultDto {
|
|
2750
|
+
enum status {
|
|
2751
|
+
ERROR = "error",
|
|
2752
|
+
OK = "ok",
|
|
2753
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2365
2757
|
declare class HealthCheckService {
|
|
2366
2758
|
readonly httpRequest: BaseHttpRequest;
|
|
2367
2759
|
constructor(httpRequest: BaseHttpRequest);
|
|
2368
2760
|
/**
|
|
2369
2761
|
* Get the health of the service
|
|
2370
|
-
*
|
|
2762
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2763
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2371
2764
|
* @throws ApiError
|
|
2372
2765
|
*/
|
|
2373
|
-
dataHealthCheck(): CancelablePromise<
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2766
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Get the liveliness of the service (reads only)
|
|
2769
|
+
* Check the liveliness of the service (reads only).
|
|
2770
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2771
|
+
* @throws ApiError
|
|
2772
|
+
*/
|
|
2773
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2379
2774
|
}
|
|
2380
2775
|
|
|
2381
|
-
type
|
|
2776
|
+
type IcmDestinationTransaction = {
|
|
2777
|
+
txHash: string;
|
|
2778
|
+
timestamp: number;
|
|
2779
|
+
gasSpent: string;
|
|
2780
|
+
rewardRedeemer: string;
|
|
2781
|
+
delivererAddress: string;
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2784
|
+
type IcmReceipt = {
|
|
2785
|
+
receivedMessageNonce: string;
|
|
2786
|
+
relayerRewardAddress: string;
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2789
|
+
type IcmRewardDetails = {
|
|
2790
|
+
/**
|
|
2791
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2792
|
+
*/
|
|
2793
|
+
address: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* The contract name.
|
|
2796
|
+
*/
|
|
2797
|
+
name: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* The contract symbol.
|
|
2800
|
+
*/
|
|
2801
|
+
symbol: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2804
|
+
*/
|
|
2805
|
+
decimals: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* The logo uri for the address.
|
|
2808
|
+
*/
|
|
2809
|
+
logoUri?: string;
|
|
2810
|
+
ercType: IcmRewardDetails.ercType;
|
|
2811
|
+
/**
|
|
2812
|
+
* The token price, if available.
|
|
2813
|
+
*/
|
|
2814
|
+
price?: Money;
|
|
2815
|
+
value: string;
|
|
2816
|
+
};
|
|
2817
|
+
declare namespace IcmRewardDetails {
|
|
2818
|
+
enum ercType {
|
|
2819
|
+
ERC_20 = "ERC-20"
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
type IcmSourceTransaction = {
|
|
2824
|
+
txHash: string;
|
|
2825
|
+
timestamp: number;
|
|
2826
|
+
gasSpent: string;
|
|
2827
|
+
};
|
|
2828
|
+
|
|
2829
|
+
type DeliveredIcmMessage = {
|
|
2830
|
+
messageId: string;
|
|
2831
|
+
icmContractAddress: string;
|
|
2832
|
+
sourceBlockchainId: string;
|
|
2833
|
+
destinationBlockchainId: string;
|
|
2834
|
+
sourceEvmChainId: string;
|
|
2835
|
+
destinationEvmChainId: string;
|
|
2836
|
+
messageNonce: string;
|
|
2837
|
+
from: string;
|
|
2838
|
+
to: string;
|
|
2839
|
+
data?: string;
|
|
2840
|
+
messageExecuted: boolean;
|
|
2841
|
+
receipts: Array<IcmReceipt>;
|
|
2842
|
+
receiptDelivered: boolean;
|
|
2843
|
+
rewardDetails: IcmRewardDetails;
|
|
2844
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2845
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2846
|
+
status: DeliveredIcmMessage.status;
|
|
2847
|
+
};
|
|
2848
|
+
declare namespace DeliveredIcmMessage {
|
|
2849
|
+
enum status {
|
|
2850
|
+
DELIVERED = "delivered"
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2855
|
+
messageId: string;
|
|
2856
|
+
icmContractAddress: string;
|
|
2857
|
+
sourceBlockchainId: string;
|
|
2858
|
+
destinationBlockchainId: string;
|
|
2859
|
+
sourceEvmChainId: string;
|
|
2860
|
+
destinationEvmChainId: string;
|
|
2861
|
+
messageNonce: string;
|
|
2862
|
+
from: string;
|
|
2863
|
+
to: string;
|
|
2864
|
+
data?: string;
|
|
2865
|
+
messageExecuted: boolean;
|
|
2866
|
+
receipts: Array<IcmReceipt>;
|
|
2867
|
+
receiptDelivered: boolean;
|
|
2868
|
+
rewardDetails: IcmRewardDetails;
|
|
2869
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2870
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2871
|
+
};
|
|
2872
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2873
|
+
enum status {
|
|
2874
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
type PendingIcmMessage = {
|
|
2879
|
+
messageId: string;
|
|
2880
|
+
icmContractAddress: string;
|
|
2881
|
+
sourceBlockchainId: string;
|
|
2882
|
+
destinationBlockchainId: string;
|
|
2883
|
+
sourceEvmChainId: string;
|
|
2884
|
+
destinationEvmChainId: string;
|
|
2885
|
+
messageNonce: string;
|
|
2886
|
+
from: string;
|
|
2887
|
+
to: string;
|
|
2888
|
+
data?: string;
|
|
2889
|
+
messageExecuted: boolean;
|
|
2890
|
+
receipts: Array<IcmReceipt>;
|
|
2891
|
+
receiptDelivered: boolean;
|
|
2892
|
+
rewardDetails: IcmRewardDetails;
|
|
2893
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2894
|
+
status: PendingIcmMessage.status;
|
|
2895
|
+
};
|
|
2896
|
+
declare namespace PendingIcmMessage {
|
|
2897
|
+
enum status {
|
|
2898
|
+
PENDING = "pending"
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
type ListIcmMessagesResponse = {
|
|
2382
2903
|
/**
|
|
2383
2904
|
* 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.
|
|
2384
2905
|
*/
|
|
2385
2906
|
nextPageToken?: string;
|
|
2386
|
-
|
|
2907
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2387
2908
|
};
|
|
2388
2909
|
|
|
2389
|
-
declare class
|
|
2910
|
+
declare class InterchainMessagingService {
|
|
2390
2911
|
readonly httpRequest: BaseHttpRequest;
|
|
2391
2912
|
constructor(httpRequest: BaseHttpRequest);
|
|
2392
2913
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2914
|
+
* Get an ICM message
|
|
2915
|
+
* Gets an ICM message by teleporter message ID.
|
|
2395
2916
|
* @returns any Successful response
|
|
2396
2917
|
* @throws ApiError
|
|
2397
2918
|
*/
|
|
2398
|
-
|
|
2399
|
-
/**
|
|
2400
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2401
|
-
*/
|
|
2402
|
-
chainId: string;
|
|
2403
|
-
/**
|
|
2404
|
-
* Contract address on the relevant chain.
|
|
2405
|
-
*/
|
|
2406
|
-
address: string;
|
|
2919
|
+
getIcmMessage({ messageId, }: {
|
|
2407
2920
|
/**
|
|
2408
|
-
*
|
|
2921
|
+
* The teleporter message ID of the ICM message.
|
|
2409
2922
|
*/
|
|
2410
|
-
|
|
2411
|
-
}): CancelablePromise<
|
|
2923
|
+
messageId: string;
|
|
2924
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2412
2925
|
/**
|
|
2413
|
-
* List
|
|
2414
|
-
* Lists
|
|
2415
|
-
* @returns
|
|
2926
|
+
* List ICM messages
|
|
2927
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2928
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2416
2929
|
* @throws ApiError
|
|
2417
2930
|
*/
|
|
2418
|
-
|
|
2419
|
-
/**
|
|
2420
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2421
|
-
*/
|
|
2422
|
-
chainId: string;
|
|
2423
|
-
/**
|
|
2424
|
-
* Contract address on the relevant chain.
|
|
2425
|
-
*/
|
|
2426
|
-
address: string;
|
|
2931
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2427
2932
|
/**
|
|
2428
2933
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2429
2934
|
*/
|
|
@@ -2432,29 +2937,236 @@ declare class NfTsService {
|
|
|
2432
2937
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2433
2938
|
*/
|
|
2434
2939
|
pageSize?: number;
|
|
2435
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2436
|
-
/**
|
|
2437
|
-
* Get token details
|
|
2438
|
-
* Gets token details for a specific token of an NFT contract.
|
|
2439
|
-
* @returns any Successful response
|
|
2440
|
-
* @throws ApiError
|
|
2441
|
-
*/
|
|
2442
|
-
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2443
2940
|
/**
|
|
2444
|
-
*
|
|
2941
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2445
2942
|
*/
|
|
2446
|
-
|
|
2943
|
+
sourceBlockchainId?: string;
|
|
2447
2944
|
/**
|
|
2448
|
-
*
|
|
2945
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2449
2946
|
*/
|
|
2450
|
-
|
|
2947
|
+
destinationBlockchainId?: string;
|
|
2451
2948
|
/**
|
|
2452
|
-
*
|
|
2949
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2950
|
+
*/
|
|
2951
|
+
blockchainId?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* The address of the recipient of the ICM message.
|
|
2954
|
+
*/
|
|
2955
|
+
to?: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* The address of the sender of the ICM message.
|
|
2958
|
+
*/
|
|
2959
|
+
from?: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* Either mainnet or testnet/fuji.
|
|
2962
|
+
*/
|
|
2963
|
+
network?: Network;
|
|
2964
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2965
|
+
/**
|
|
2966
|
+
* List ICM messages by address
|
|
2967
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2968
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2969
|
+
* @throws ApiError
|
|
2970
|
+
*/
|
|
2971
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2972
|
+
/**
|
|
2973
|
+
* An EVM address.
|
|
2974
|
+
*/
|
|
2975
|
+
address: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2978
|
+
*/
|
|
2979
|
+
pageToken?: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2982
|
+
*/
|
|
2983
|
+
pageSize?: number;
|
|
2984
|
+
/**
|
|
2985
|
+
* Either mainnet or testnet/fuji.
|
|
2986
|
+
*/
|
|
2987
|
+
network?: Network;
|
|
2988
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
type ListNftTokens = {
|
|
2992
|
+
/**
|
|
2993
|
+
* 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.
|
|
2994
|
+
*/
|
|
2995
|
+
nextPageToken?: string;
|
|
2996
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
declare class NfTsService {
|
|
3000
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3001
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3002
|
+
/**
|
|
3003
|
+
* Reindex NFT metadata
|
|
3004
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3005
|
+
* @returns any Successful response
|
|
3006
|
+
* @throws ApiError
|
|
3007
|
+
*/
|
|
3008
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3009
|
+
/**
|
|
3010
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3011
|
+
*/
|
|
3012
|
+
chainId: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* Contract address on the relevant chain.
|
|
3015
|
+
*/
|
|
3016
|
+
address: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* TokenId on the contract
|
|
3019
|
+
*/
|
|
3020
|
+
tokenId: string;
|
|
3021
|
+
}): CancelablePromise<any>;
|
|
3022
|
+
/**
|
|
3023
|
+
* List tokens
|
|
3024
|
+
* Lists tokens for an NFT contract.
|
|
3025
|
+
* @returns ListNftTokens Successful response
|
|
3026
|
+
* @throws ApiError
|
|
3027
|
+
*/
|
|
3028
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3029
|
+
/**
|
|
3030
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3031
|
+
*/
|
|
3032
|
+
chainId: string;
|
|
3033
|
+
/**
|
|
3034
|
+
* Contract address on the relevant chain.
|
|
3035
|
+
*/
|
|
3036
|
+
address: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3039
|
+
*/
|
|
3040
|
+
pageToken?: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3043
|
+
*/
|
|
3044
|
+
pageSize?: number;
|
|
3045
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3046
|
+
/**
|
|
3047
|
+
* Get token details
|
|
3048
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3049
|
+
* @returns any Successful response
|
|
3050
|
+
* @throws ApiError
|
|
3051
|
+
*/
|
|
3052
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3053
|
+
/**
|
|
3054
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3055
|
+
*/
|
|
3056
|
+
chainId: string;
|
|
3057
|
+
/**
|
|
3058
|
+
* Contract address on the relevant chain.
|
|
3059
|
+
*/
|
|
3060
|
+
address: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* TokenId on the contract
|
|
2453
3063
|
*/
|
|
2454
3064
|
tokenId: string;
|
|
2455
3065
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2456
3066
|
}
|
|
2457
3067
|
|
|
3068
|
+
type AccessRequest = {
|
|
3069
|
+
/**
|
|
3070
|
+
* The email address to send the access token to
|
|
3071
|
+
*/
|
|
3072
|
+
email: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* The captcha to verify the user
|
|
3075
|
+
*/
|
|
3076
|
+
captcha: string;
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
type NotificationsResponse = {
|
|
3080
|
+
message: string;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
type SubscribeRequest = {
|
|
3084
|
+
/**
|
|
3085
|
+
* The access token to use for authentication
|
|
3086
|
+
*/
|
|
3087
|
+
accessToken: string;
|
|
3088
|
+
/**
|
|
3089
|
+
* The node ID to subscribe to
|
|
3090
|
+
*/
|
|
3091
|
+
nodeId: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3094
|
+
*/
|
|
3095
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3096
|
+
};
|
|
3097
|
+
|
|
3098
|
+
type SubscriptionsRequest = {
|
|
3099
|
+
/**
|
|
3100
|
+
* The access token to use for authentication
|
|
3101
|
+
*/
|
|
3102
|
+
accessToken: string;
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
type SubscriptionsResponse = {
|
|
3106
|
+
/**
|
|
3107
|
+
* The email address of the user
|
|
3108
|
+
*/
|
|
3109
|
+
email: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* The subscriptions of the user
|
|
3112
|
+
*/
|
|
3113
|
+
subscriptions: Record<string, {
|
|
3114
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3115
|
+
}>;
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
type UnsubscribeRequest = {
|
|
3119
|
+
/**
|
|
3120
|
+
* The access token to use for authentication
|
|
3121
|
+
*/
|
|
3122
|
+
accessToken: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* The node ID to subscribe to
|
|
3125
|
+
*/
|
|
3126
|
+
nodeId: string;
|
|
3127
|
+
};
|
|
3128
|
+
|
|
3129
|
+
declare class NotificationsService {
|
|
3130
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3131
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3132
|
+
/**
|
|
3133
|
+
* Access Notifications
|
|
3134
|
+
* Access notifications.
|
|
3135
|
+
* @returns NotificationsResponse Successful response
|
|
3136
|
+
* @throws ApiError
|
|
3137
|
+
*/
|
|
3138
|
+
access({ requestBody, }: {
|
|
3139
|
+
requestBody: AccessRequest;
|
|
3140
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3141
|
+
/**
|
|
3142
|
+
* Subscribe to Notifications
|
|
3143
|
+
* Subscribe to receive notifications.
|
|
3144
|
+
* @returns NotificationsResponse Successful response
|
|
3145
|
+
* @throws ApiError
|
|
3146
|
+
*/
|
|
3147
|
+
subscribe({ requestBody, }: {
|
|
3148
|
+
requestBody: SubscribeRequest;
|
|
3149
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3150
|
+
/**
|
|
3151
|
+
* Unsubscribe from Notifications
|
|
3152
|
+
* Unsubscribe from receiving notifications.
|
|
3153
|
+
* @returns NotificationsResponse Successful response
|
|
3154
|
+
* @throws ApiError
|
|
3155
|
+
*/
|
|
3156
|
+
unsubscribe({ requestBody, }: {
|
|
3157
|
+
requestBody: UnsubscribeRequest;
|
|
3158
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3159
|
+
/**
|
|
3160
|
+
* Get Subscriptions
|
|
3161
|
+
* Get subscriptions.
|
|
3162
|
+
* @returns SubscriptionsResponse Successful response
|
|
3163
|
+
* @throws ApiError
|
|
3164
|
+
*/
|
|
3165
|
+
subscriptions({ requestBody, }: {
|
|
3166
|
+
requestBody: SubscriptionsRequest;
|
|
3167
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3168
|
+
}
|
|
3169
|
+
|
|
2458
3170
|
type EvmNetworkOptions = {
|
|
2459
3171
|
addresses: Array<string>;
|
|
2460
3172
|
includeChains: Array<string>;
|
|
@@ -2488,7 +3200,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2488
3200
|
type PrimaryNetworkOptions = {
|
|
2489
3201
|
addresses?: Array<string>;
|
|
2490
3202
|
cChainEvmAddresses?: Array<string>;
|
|
2491
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3203
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2492
3204
|
};
|
|
2493
3205
|
|
|
2494
3206
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2543,7 +3255,7 @@ type OperationStatusResponse = {
|
|
|
2543
3255
|
operationType: OperationType;
|
|
2544
3256
|
operationStatus: OperationStatus;
|
|
2545
3257
|
message?: string;
|
|
2546
|
-
metadata
|
|
3258
|
+
metadata?: TransactionExportMetadata;
|
|
2547
3259
|
createdAtTimestamp: number;
|
|
2548
3260
|
updatedAtTimestamp: number;
|
|
2549
3261
|
};
|
|
@@ -2576,14 +3288,275 @@ declare class OperationsService {
|
|
|
2576
3288
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2577
3289
|
}
|
|
2578
3290
|
|
|
3291
|
+
type EvmGenesisAllocDto = {
|
|
3292
|
+
/**
|
|
3293
|
+
* Account balance in hex format
|
|
3294
|
+
*/
|
|
3295
|
+
balance?: string;
|
|
3296
|
+
/**
|
|
3297
|
+
* Contract bytecode in hex format
|
|
3298
|
+
*/
|
|
3299
|
+
code?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Contract storage slots
|
|
3302
|
+
*/
|
|
3303
|
+
storage?: Record<string, string>;
|
|
3304
|
+
};
|
|
3305
|
+
|
|
3306
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3307
|
+
/**
|
|
3308
|
+
* Block timestamp
|
|
3309
|
+
*/
|
|
3310
|
+
blockTimestamp?: number;
|
|
3311
|
+
/**
|
|
3312
|
+
* Admin addresses
|
|
3313
|
+
*/
|
|
3314
|
+
adminAddresses?: Array<string>;
|
|
3315
|
+
/**
|
|
3316
|
+
* Manager addresses
|
|
3317
|
+
*/
|
|
3318
|
+
managerAddresses?: Array<string>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Enabled addresses
|
|
3321
|
+
*/
|
|
3322
|
+
enabledAddresses?: Array<string>;
|
|
3323
|
+
};
|
|
3324
|
+
|
|
3325
|
+
type EvmGenesisFeeConfigDto = {
|
|
3326
|
+
/**
|
|
3327
|
+
* Base fee change denominator
|
|
3328
|
+
*/
|
|
3329
|
+
baseFeeChangeDenominator?: number;
|
|
3330
|
+
/**
|
|
3331
|
+
* Block gas cost step
|
|
3332
|
+
*/
|
|
3333
|
+
blockGasCostStep?: number;
|
|
3334
|
+
/**
|
|
3335
|
+
* Gas limit
|
|
3336
|
+
*/
|
|
3337
|
+
gasLimit?: number;
|
|
3338
|
+
/**
|
|
3339
|
+
* Maximum block gas cost
|
|
3340
|
+
*/
|
|
3341
|
+
maxBlockGasCost?: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Minimum base fee
|
|
3344
|
+
*/
|
|
3345
|
+
minBaseFee?: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Minimum block gas cost
|
|
3348
|
+
*/
|
|
3349
|
+
minBlockGasCost?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Target block rate
|
|
3352
|
+
*/
|
|
3353
|
+
targetBlockRate?: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Target gas
|
|
3356
|
+
*/
|
|
3357
|
+
targetGas?: number;
|
|
3358
|
+
};
|
|
3359
|
+
|
|
3360
|
+
type EvmGenesisWarpConfigDto = {
|
|
3361
|
+
/**
|
|
3362
|
+
* Block timestamp
|
|
3363
|
+
*/
|
|
3364
|
+
blockTimestamp?: number;
|
|
3365
|
+
/**
|
|
3366
|
+
* Quorum numerator
|
|
3367
|
+
*/
|
|
3368
|
+
quorumNumerator?: number;
|
|
3369
|
+
/**
|
|
3370
|
+
* Require primary network signers
|
|
3371
|
+
*/
|
|
3372
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3373
|
+
};
|
|
3374
|
+
|
|
3375
|
+
type EvmGenesisConfigDto = {
|
|
3376
|
+
/**
|
|
3377
|
+
* Berlin block number
|
|
3378
|
+
*/
|
|
3379
|
+
berlinBlock?: number;
|
|
3380
|
+
/**
|
|
3381
|
+
* Byzantium block number
|
|
3382
|
+
*/
|
|
3383
|
+
byzantiumBlock?: number;
|
|
3384
|
+
/**
|
|
3385
|
+
* Chain ID
|
|
3386
|
+
*/
|
|
3387
|
+
chainId?: number;
|
|
3388
|
+
/**
|
|
3389
|
+
* Constantinople block number
|
|
3390
|
+
*/
|
|
3391
|
+
constantinopleBlock?: number;
|
|
3392
|
+
/**
|
|
3393
|
+
* EIP-150 block number
|
|
3394
|
+
*/
|
|
3395
|
+
eip150Block?: number;
|
|
3396
|
+
/**
|
|
3397
|
+
* EIP-150 hash
|
|
3398
|
+
*/
|
|
3399
|
+
eip150Hash?: string;
|
|
3400
|
+
/**
|
|
3401
|
+
* EIP-155 block number
|
|
3402
|
+
*/
|
|
3403
|
+
eip155Block?: number;
|
|
3404
|
+
/**
|
|
3405
|
+
* EIP-158 block number
|
|
3406
|
+
*/
|
|
3407
|
+
eip158Block?: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* Fee configuration
|
|
3410
|
+
*/
|
|
3411
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3412
|
+
/**
|
|
3413
|
+
* Homestead block number
|
|
3414
|
+
*/
|
|
3415
|
+
homesteadBlock?: number;
|
|
3416
|
+
/**
|
|
3417
|
+
* Istanbul block number
|
|
3418
|
+
*/
|
|
3419
|
+
istanbulBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* London block number
|
|
3422
|
+
*/
|
|
3423
|
+
londonBlock?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* Muir Glacier block number
|
|
3426
|
+
*/
|
|
3427
|
+
muirGlacierBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* Petersburg block number
|
|
3430
|
+
*/
|
|
3431
|
+
petersburgBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Subnet EVM timestamp
|
|
3434
|
+
*/
|
|
3435
|
+
subnetEVMTimestamp?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Allow fee recipients
|
|
3438
|
+
*/
|
|
3439
|
+
allowFeeRecipients?: boolean;
|
|
3440
|
+
/**
|
|
3441
|
+
* Warp configuration
|
|
3442
|
+
*/
|
|
3443
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3444
|
+
/**
|
|
3445
|
+
* Transaction allow list configuration
|
|
3446
|
+
*/
|
|
3447
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Contract deployer allow list configuration
|
|
3450
|
+
*/
|
|
3451
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3452
|
+
/**
|
|
3453
|
+
* Contract native minter configuration
|
|
3454
|
+
*/
|
|
3455
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3456
|
+
/**
|
|
3457
|
+
* Fee manager configuration
|
|
3458
|
+
*/
|
|
3459
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3460
|
+
/**
|
|
3461
|
+
* Reward manager configuration
|
|
3462
|
+
*/
|
|
3463
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3464
|
+
};
|
|
3465
|
+
|
|
3466
|
+
type EvmGenesisDto = {
|
|
3467
|
+
/**
|
|
3468
|
+
* Airdrop amount
|
|
3469
|
+
*/
|
|
3470
|
+
airdropAmount?: number | null;
|
|
3471
|
+
/**
|
|
3472
|
+
* Airdrop hash
|
|
3473
|
+
*/
|
|
3474
|
+
airdropHash?: string;
|
|
3475
|
+
/**
|
|
3476
|
+
* Allocation of accounts and balances
|
|
3477
|
+
*/
|
|
3478
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3479
|
+
/**
|
|
3480
|
+
* Base fee per gas
|
|
3481
|
+
*/
|
|
3482
|
+
baseFeePerGas?: number | null;
|
|
3483
|
+
/**
|
|
3484
|
+
* Blob gas used
|
|
3485
|
+
*/
|
|
3486
|
+
blobGasUsed?: string | null;
|
|
3487
|
+
/**
|
|
3488
|
+
* Coinbase address
|
|
3489
|
+
*/
|
|
3490
|
+
coinbase?: string;
|
|
3491
|
+
/**
|
|
3492
|
+
* Genesis configuration
|
|
3493
|
+
*/
|
|
3494
|
+
config?: EvmGenesisConfigDto;
|
|
3495
|
+
/**
|
|
3496
|
+
* Difficulty
|
|
3497
|
+
*/
|
|
3498
|
+
difficulty?: string;
|
|
3499
|
+
/**
|
|
3500
|
+
* Excess blob gas
|
|
3501
|
+
*/
|
|
3502
|
+
excessBlobGas?: string | null;
|
|
3503
|
+
/**
|
|
3504
|
+
* Extra data
|
|
3505
|
+
*/
|
|
3506
|
+
extraData?: string;
|
|
3507
|
+
/**
|
|
3508
|
+
* Gas limit
|
|
3509
|
+
*/
|
|
3510
|
+
gasLimit?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Gas used
|
|
3513
|
+
*/
|
|
3514
|
+
gasUsed?: string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Mix hash
|
|
3517
|
+
*/
|
|
3518
|
+
mixHash?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Nonce
|
|
3521
|
+
*/
|
|
3522
|
+
nonce?: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Block number
|
|
3525
|
+
*/
|
|
3526
|
+
number?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Parent hash
|
|
3529
|
+
*/
|
|
3530
|
+
parentHash?: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Block timestamp
|
|
3533
|
+
*/
|
|
3534
|
+
timestamp?: string;
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
type Blockchain = {
|
|
3538
|
+
createBlockTimestamp: number;
|
|
3539
|
+
createBlockNumber: string;
|
|
3540
|
+
blockchainId: string;
|
|
3541
|
+
vmId: string;
|
|
3542
|
+
subnetId: string;
|
|
3543
|
+
blockchainName: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* 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.
|
|
3546
|
+
*/
|
|
3547
|
+
evmChainId: number;
|
|
3548
|
+
/**
|
|
3549
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3550
|
+
*/
|
|
3551
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3552
|
+
};
|
|
3553
|
+
|
|
2579
3554
|
declare enum BlockchainIds {
|
|
2580
3555
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2581
3556
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2582
3557
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2584
3558
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2585
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2586
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3559
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2587
3560
|
}
|
|
2588
3561
|
|
|
2589
3562
|
type ChainAddressChainIdMap = {
|
|
@@ -2607,16 +3580,31 @@ type DelegatorsDetails = {
|
|
|
2607
3580
|
};
|
|
2608
3581
|
|
|
2609
3582
|
type StakingDistribution = {
|
|
3583
|
+
/**
|
|
3584
|
+
* AvalancheGo version for the validator node.
|
|
3585
|
+
*/
|
|
2610
3586
|
version: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* The total amount staked by validators using this version.
|
|
3589
|
+
*/
|
|
2611
3590
|
amountStaked: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* The number of validators using this version.
|
|
3593
|
+
*/
|
|
2612
3594
|
validatorCount: number;
|
|
2613
3595
|
};
|
|
2614
3596
|
|
|
2615
3597
|
type ValidatorsDetails = {
|
|
2616
3598
|
validatorCount: number;
|
|
2617
3599
|
totalAmountStaked: string;
|
|
3600
|
+
/**
|
|
3601
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3602
|
+
*/
|
|
2618
3603
|
estimatedAnnualStakingReward: string;
|
|
2619
3604
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3605
|
+
/**
|
|
3606
|
+
* Ratio of total active stake amount to the current supply.
|
|
3607
|
+
*/
|
|
2620
3608
|
stakingRatio: string;
|
|
2621
3609
|
};
|
|
2622
3610
|
|
|
@@ -2625,15 +3613,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2625
3613
|
delegatorDetails: DelegatorsDetails;
|
|
2626
3614
|
};
|
|
2627
3615
|
|
|
2628
|
-
type Blockchain = {
|
|
2629
|
-
createBlockTimestamp: number;
|
|
2630
|
-
createBlockNumber: string;
|
|
2631
|
-
blockchainId: string;
|
|
2632
|
-
vmId: string;
|
|
2633
|
-
subnetId: string;
|
|
2634
|
-
blockchainName: string;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
3616
|
type ListBlockchainsResponse = {
|
|
2638
3617
|
/**
|
|
2639
3618
|
* 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.
|
|
@@ -2668,7 +3647,13 @@ type CompletedDelegatorDetails = {
|
|
|
2668
3647
|
delegationFee: string;
|
|
2669
3648
|
startTimestamp: number;
|
|
2670
3649
|
endTimestamp: number;
|
|
3650
|
+
/**
|
|
3651
|
+
* Total rewards distributed for the successful delegation.
|
|
3652
|
+
*/
|
|
2671
3653
|
grossReward: string;
|
|
3654
|
+
/**
|
|
3655
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3656
|
+
*/
|
|
2672
3657
|
netReward: string;
|
|
2673
3658
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2674
3659
|
};
|
|
@@ -2686,7 +3671,13 @@ type PendingDelegatorDetails = {
|
|
|
2686
3671
|
delegationFee: string;
|
|
2687
3672
|
startTimestamp: number;
|
|
2688
3673
|
endTimestamp: number;
|
|
3674
|
+
/**
|
|
3675
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3676
|
+
*/
|
|
2689
3677
|
estimatedGrossReward: string;
|
|
3678
|
+
/**
|
|
3679
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3680
|
+
*/
|
|
2690
3681
|
estimatedNetReward: string;
|
|
2691
3682
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2692
3683
|
};
|
|
@@ -2707,8 +3698,63 @@ type ListDelegatorDetailsResponse = {
|
|
|
2707
3698
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2708
3699
|
};
|
|
2709
3700
|
|
|
2710
|
-
type
|
|
3701
|
+
type BalanceOwner = {
|
|
3702
|
+
addresses: Array<string>;
|
|
3703
|
+
threshold: number;
|
|
3704
|
+
};
|
|
3705
|
+
|
|
3706
|
+
type L1ValidatorDetailsFull = {
|
|
3707
|
+
/**
|
|
3708
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3709
|
+
*/
|
|
3710
|
+
validationId: string;
|
|
3711
|
+
/**
|
|
3712
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3713
|
+
*/
|
|
3714
|
+
validationIdHex: string;
|
|
3715
|
+
nodeId: string;
|
|
3716
|
+
subnetId: string;
|
|
3717
|
+
/**
|
|
3718
|
+
* 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
|
|
3719
|
+
*/
|
|
3720
|
+
weight: number;
|
|
3721
|
+
/**
|
|
3722
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
3723
|
+
*/
|
|
3724
|
+
remainingBalance: number;
|
|
3725
|
+
/**
|
|
3726
|
+
* The timestamp of the transaction which created this L1 validator
|
|
3727
|
+
*/
|
|
3728
|
+
creationTimestamp: number;
|
|
3729
|
+
blsCredentials: Record<string, any>;
|
|
3730
|
+
/**
|
|
3731
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
3732
|
+
*/
|
|
3733
|
+
remainingBalanceOwner: BalanceOwner;
|
|
3734
|
+
/**
|
|
3735
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
3736
|
+
*/
|
|
3737
|
+
deactivationOwner: BalanceOwner;
|
|
3738
|
+
};
|
|
3739
|
+
|
|
3740
|
+
type ListL1ValidatorsResponse = {
|
|
3741
|
+
/**
|
|
3742
|
+
* 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.
|
|
3743
|
+
*/
|
|
3744
|
+
nextPageToken?: string;
|
|
3745
|
+
/**
|
|
3746
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3747
|
+
*/
|
|
3748
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3749
|
+
/**
|
|
3750
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3751
|
+
*/
|
|
3752
|
+
blockHeight: string;
|
|
3753
|
+
};
|
|
3754
|
+
|
|
3755
|
+
type L1ValidatorManagerDetails = {
|
|
2711
3756
|
blockchainId: string;
|
|
3757
|
+
contractAddress: string;
|
|
2712
3758
|
};
|
|
2713
3759
|
|
|
2714
3760
|
type SubnetOwnershipInfo = {
|
|
@@ -2749,7 +3795,19 @@ type Subnet = {
|
|
|
2749
3795
|
* Latest subnet owner details for this Subnet.
|
|
2750
3796
|
*/
|
|
2751
3797
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2752
|
-
|
|
3798
|
+
/**
|
|
3799
|
+
* Whether the subnet is an L1 or not.
|
|
3800
|
+
*/
|
|
3801
|
+
isL1: boolean;
|
|
3802
|
+
/**
|
|
3803
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3804
|
+
*/
|
|
3805
|
+
l1ConversionTransactionHash?: string;
|
|
3806
|
+
/**
|
|
3807
|
+
* L1 validator manager details.
|
|
3808
|
+
*/
|
|
3809
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3810
|
+
blockchains: Array<Blockchain>;
|
|
2753
3811
|
};
|
|
2754
3812
|
|
|
2755
3813
|
type ListSubnetsResponse = {
|
|
@@ -2765,6 +3823,29 @@ type BlsCredentials = {
|
|
|
2765
3823
|
proofOfPossession: string;
|
|
2766
3824
|
};
|
|
2767
3825
|
|
|
3826
|
+
type Geolocation = {
|
|
3827
|
+
/**
|
|
3828
|
+
* The name of the validator node.
|
|
3829
|
+
*/
|
|
3830
|
+
city: string;
|
|
3831
|
+
/**
|
|
3832
|
+
* The city of the validator node.
|
|
3833
|
+
*/
|
|
3834
|
+
country: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* The country code of the validator node.
|
|
3837
|
+
*/
|
|
3838
|
+
countryCode: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* The latitude of the validator node.
|
|
3841
|
+
*/
|
|
3842
|
+
latitude: number;
|
|
3843
|
+
/**
|
|
3844
|
+
* The longitude of the validator node.
|
|
3845
|
+
*/
|
|
3846
|
+
longitude: number;
|
|
3847
|
+
};
|
|
3848
|
+
|
|
2768
3849
|
type Rewards = {
|
|
2769
3850
|
validationRewardAmount: string;
|
|
2770
3851
|
delegationRewardAmount: string;
|
|
@@ -2796,6 +3877,9 @@ type ActiveValidatorDetails = {
|
|
|
2796
3877
|
nodeId: string;
|
|
2797
3878
|
subnetId: string;
|
|
2798
3879
|
amountStaked: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3882
|
+
*/
|
|
2799
3883
|
delegationFee?: string;
|
|
2800
3884
|
startTimestamp: number;
|
|
2801
3885
|
endTimestamp: number;
|
|
@@ -2803,15 +3887,37 @@ type ActiveValidatorDetails = {
|
|
|
2803
3887
|
* Present for AddPermissionlessValidatorTx
|
|
2804
3888
|
*/
|
|
2805
3889
|
blsCredentials?: BlsCredentials;
|
|
3890
|
+
/**
|
|
3891
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3892
|
+
*/
|
|
2806
3893
|
stakePercentage: number;
|
|
3894
|
+
/**
|
|
3895
|
+
* The number of delegators linked to the validator.
|
|
3896
|
+
*/
|
|
2807
3897
|
delegatorCount: number;
|
|
3898
|
+
/**
|
|
3899
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3900
|
+
*/
|
|
2808
3901
|
amountDelegated?: string;
|
|
3902
|
+
/**
|
|
3903
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3904
|
+
*/
|
|
2809
3905
|
uptimePerformance: number;
|
|
2810
3906
|
avalancheGoVersion?: string;
|
|
3907
|
+
/**
|
|
3908
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3909
|
+
*/
|
|
2811
3910
|
delegationCapacity?: string;
|
|
3911
|
+
/**
|
|
3912
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3913
|
+
*/
|
|
2812
3914
|
potentialRewards: Rewards;
|
|
2813
3915
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2814
3916
|
validatorHealth: ValidatorHealthDetails;
|
|
3917
|
+
/**
|
|
3918
|
+
* The geographical location of the validator node, if available.
|
|
3919
|
+
*/
|
|
3920
|
+
geolocation: Geolocation | null;
|
|
2815
3921
|
};
|
|
2816
3922
|
declare namespace ActiveValidatorDetails {
|
|
2817
3923
|
enum validationStatus {
|
|
@@ -2824,6 +3930,9 @@ type CompletedValidatorDetails = {
|
|
|
2824
3930
|
nodeId: string;
|
|
2825
3931
|
subnetId: string;
|
|
2826
3932
|
amountStaked: string;
|
|
3933
|
+
/**
|
|
3934
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3935
|
+
*/
|
|
2827
3936
|
delegationFee?: string;
|
|
2828
3937
|
startTimestamp: number;
|
|
2829
3938
|
endTimestamp: number;
|
|
@@ -2847,6 +3956,9 @@ type PendingValidatorDetails = {
|
|
|
2847
3956
|
nodeId: string;
|
|
2848
3957
|
subnetId: string;
|
|
2849
3958
|
amountStaked: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3961
|
+
*/
|
|
2850
3962
|
delegationFee?: string;
|
|
2851
3963
|
startTimestamp: number;
|
|
2852
3964
|
endTimestamp: number;
|
|
@@ -2867,6 +3979,9 @@ type RemovedValidatorDetails = {
|
|
|
2867
3979
|
nodeId: string;
|
|
2868
3980
|
subnetId: string;
|
|
2869
3981
|
amountStaked: string;
|
|
3982
|
+
/**
|
|
3983
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3984
|
+
*/
|
|
2870
3985
|
delegationFee?: string;
|
|
2871
3986
|
startTimestamp: number;
|
|
2872
3987
|
endTimestamp: number;
|
|
@@ -2874,7 +3989,13 @@ type RemovedValidatorDetails = {
|
|
|
2874
3989
|
* Present for AddPermissionlessValidatorTx
|
|
2875
3990
|
*/
|
|
2876
3991
|
blsCredentials?: BlsCredentials;
|
|
3992
|
+
/**
|
|
3993
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3994
|
+
*/
|
|
2877
3995
|
removeTxHash: string;
|
|
3996
|
+
/**
|
|
3997
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3998
|
+
*/
|
|
2878
3999
|
removeTimestamp: number;
|
|
2879
4000
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2880
4001
|
};
|
|
@@ -2954,7 +4075,6 @@ type XChainAssetDetails = {
|
|
|
2954
4075
|
declare enum XChainId {
|
|
2955
4076
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2956
4077
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2957
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2958
4078
|
X_CHAIN = "x-chain"
|
|
2959
4079
|
}
|
|
2960
4080
|
|
|
@@ -3025,7 +4145,7 @@ declare class PrimaryNetworkService {
|
|
|
3025
4145
|
*/
|
|
3026
4146
|
pageToken?: string;
|
|
3027
4147
|
/**
|
|
3028
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4148
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3029
4149
|
*/
|
|
3030
4150
|
pageSize?: number;
|
|
3031
4151
|
/**
|
|
@@ -3033,6 +4153,22 @@ declare class PrimaryNetworkService {
|
|
|
3033
4153
|
*/
|
|
3034
4154
|
sortOrder?: SortOrder;
|
|
3035
4155
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4156
|
+
/**
|
|
4157
|
+
* Get blockchain details by ID
|
|
4158
|
+
* Get details of the blockchain registered on the network.
|
|
4159
|
+
* @returns Blockchain Successful response
|
|
4160
|
+
* @throws ApiError
|
|
4161
|
+
*/
|
|
4162
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4163
|
+
/**
|
|
4164
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4165
|
+
*/
|
|
4166
|
+
blockchainId: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* Either mainnet or testnet/fuji.
|
|
4169
|
+
*/
|
|
4170
|
+
network: Network;
|
|
4171
|
+
}): CancelablePromise<Blockchain>;
|
|
3036
4172
|
/**
|
|
3037
4173
|
* List subnets
|
|
3038
4174
|
* Lists all subnets registered on the network.
|
|
@@ -3049,7 +4185,7 @@ declare class PrimaryNetworkService {
|
|
|
3049
4185
|
*/
|
|
3050
4186
|
pageToken?: string;
|
|
3051
4187
|
/**
|
|
3052
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4188
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3053
4189
|
*/
|
|
3054
4190
|
pageSize?: number;
|
|
3055
4191
|
/**
|
|
@@ -3075,7 +4211,7 @@ declare class PrimaryNetworkService {
|
|
|
3075
4211
|
}): CancelablePromise<Subnet>;
|
|
3076
4212
|
/**
|
|
3077
4213
|
* List validators
|
|
3078
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4214
|
+
* 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.
|
|
3079
4215
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3080
4216
|
* @throws ApiError
|
|
3081
4217
|
*/
|
|
@@ -3093,7 +4229,7 @@ declare class PrimaryNetworkService {
|
|
|
3093
4229
|
*/
|
|
3094
4230
|
pageSize?: number;
|
|
3095
4231
|
/**
|
|
3096
|
-
* A comma separated list of node ids to filter by.
|
|
4232
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3097
4233
|
*/
|
|
3098
4234
|
nodeIds?: string;
|
|
3099
4235
|
/**
|
|
@@ -3216,12 +4352,12 @@ declare class PrimaryNetworkService {
|
|
|
3216
4352
|
nodeIds?: string;
|
|
3217
4353
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3218
4354
|
/**
|
|
3219
|
-
* List
|
|
3220
|
-
* Lists details for
|
|
3221
|
-
* @returns
|
|
4355
|
+
* List L1 validators
|
|
4356
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4357
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3222
4358
|
* @throws ApiError
|
|
3223
4359
|
*/
|
|
3224
|
-
|
|
4360
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3225
4361
|
/**
|
|
3226
4362
|
* Either mainnet or testnet/fuji.
|
|
3227
4363
|
*/
|
|
@@ -3235,10 +4371,10 @@ declare class PrimaryNetworkService {
|
|
|
3235
4371
|
*/
|
|
3236
4372
|
pageSize?: number;
|
|
3237
4373
|
/**
|
|
3238
|
-
* The
|
|
4374
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3239
4375
|
*/
|
|
3240
|
-
|
|
3241
|
-
|
|
4376
|
+
l1ValidationId?: string;
|
|
4377
|
+
includeInactiveL1Validators?: boolean;
|
|
3242
4378
|
/**
|
|
3243
4379
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3244
4380
|
*/
|
|
@@ -3247,17 +4383,15 @@ declare class PrimaryNetworkService {
|
|
|
3247
4383
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
4384
|
*/
|
|
3249
4385
|
subnetId?: any;
|
|
3250
|
-
}): CancelablePromise<
|
|
4386
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3251
4387
|
}
|
|
3252
4388
|
|
|
3253
4389
|
declare enum BlockchainId {
|
|
3254
4390
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3255
4391
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3256
4392
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3257
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3258
4393
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3259
4394
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3260
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3261
4395
|
P_CHAIN = "p-chain",
|
|
3262
4396
|
X_CHAIN = "x-chain",
|
|
3263
4397
|
C_CHAIN = "c-chain"
|
|
@@ -3494,8 +4628,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3494
4628
|
txCount: number;
|
|
3495
4629
|
transactions: Array<string>;
|
|
3496
4630
|
blockSizeBytes: number;
|
|
3497
|
-
|
|
3498
|
-
|
|
4631
|
+
l1ValidatorsAccruedFees?: number;
|
|
4632
|
+
activeL1Validators?: number;
|
|
3499
4633
|
currentSupply?: string;
|
|
3500
4634
|
proposerDetails?: ProposerDetails;
|
|
3501
4635
|
};
|
|
@@ -3509,8 +4643,8 @@ type PrimaryNetworkBlock = {
|
|
|
3509
4643
|
txCount: number;
|
|
3510
4644
|
transactions: Array<string>;
|
|
3511
4645
|
blockSizeBytes: number;
|
|
3512
|
-
|
|
3513
|
-
|
|
4646
|
+
l1ValidatorsAccruedFees?: number;
|
|
4647
|
+
activeL1Validators?: number;
|
|
3514
4648
|
currentSupply?: string;
|
|
3515
4649
|
proposerDetails?: ProposerDetails;
|
|
3516
4650
|
};
|
|
@@ -3553,7 +4687,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3553
4687
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3554
4688
|
* @throws ApiError
|
|
3555
4689
|
*/
|
|
3556
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4690
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3557
4691
|
/**
|
|
3558
4692
|
* A primary network blockchain id or alias.
|
|
3559
4693
|
*/
|
|
@@ -3565,7 +4699,15 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3565
4699
|
/**
|
|
3566
4700
|
* A primary network (P or X chain) nodeId.
|
|
3567
4701
|
*/
|
|
3568
|
-
nodeId: string;
|
|
4702
|
+
nodeId: string;
|
|
4703
|
+
/**
|
|
4704
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4705
|
+
*/
|
|
4706
|
+
startTimestamp?: number;
|
|
4707
|
+
/**
|
|
4708
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4709
|
+
*/
|
|
4710
|
+
endTimestamp?: number;
|
|
3569
4711
|
/**
|
|
3570
4712
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3571
4713
|
*/
|
|
@@ -3581,7 +4723,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3581
4723
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3582
4724
|
* @throws ApiError
|
|
3583
4725
|
*/
|
|
3584
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4726
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3585
4727
|
/**
|
|
3586
4728
|
* A primary network blockchain id or alias.
|
|
3587
4729
|
*/
|
|
@@ -3590,6 +4732,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3590
4732
|
* Either mainnet or testnet/fuji.
|
|
3591
4733
|
*/
|
|
3592
4734
|
network: Network;
|
|
4735
|
+
/**
|
|
4736
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4737
|
+
*/
|
|
4738
|
+
startTimestamp?: number;
|
|
4739
|
+
/**
|
|
4740
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4741
|
+
*/
|
|
4742
|
+
endTimestamp?: number;
|
|
3593
4743
|
/**
|
|
3594
4744
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3595
4745
|
*/
|
|
@@ -3831,6 +4981,10 @@ type Utxo = {
|
|
|
3831
4981
|
* UTXO ID for this output.
|
|
3832
4982
|
*/
|
|
3833
4983
|
utxoId: string;
|
|
4984
|
+
/**
|
|
4985
|
+
* The bytes of the UTXO
|
|
4986
|
+
*/
|
|
4987
|
+
utxoBytes?: string;
|
|
3834
4988
|
/**
|
|
3835
4989
|
* Unix timestamp in seconds at which this output was consumed.
|
|
3836
4990
|
*/
|
|
@@ -3999,6 +5153,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3999
5153
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4000
5154
|
};
|
|
4001
5155
|
|
|
5156
|
+
type BlockchainInfo = {
|
|
5157
|
+
chainName: string;
|
|
5158
|
+
vmId: string;
|
|
5159
|
+
/**
|
|
5160
|
+
* 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
|
|
5161
|
+
*/
|
|
5162
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5163
|
+
};
|
|
5164
|
+
|
|
5165
|
+
type L1ValidatorDetailsTransaction = {
|
|
5166
|
+
/**
|
|
5167
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
5168
|
+
*/
|
|
5169
|
+
validationId: string;
|
|
5170
|
+
/**
|
|
5171
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5172
|
+
*/
|
|
5173
|
+
validationIdHex: string;
|
|
5174
|
+
nodeId: string;
|
|
5175
|
+
subnetId: string;
|
|
5176
|
+
/**
|
|
5177
|
+
* 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
|
|
5178
|
+
*/
|
|
5179
|
+
weight: number;
|
|
5180
|
+
/**
|
|
5181
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
5182
|
+
*/
|
|
5183
|
+
remainingBalance: number;
|
|
5184
|
+
/**
|
|
5185
|
+
* 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
|
|
5186
|
+
*/
|
|
5187
|
+
balanceChange?: number;
|
|
5188
|
+
blsCredentials?: Record<string, any>;
|
|
5189
|
+
};
|
|
5190
|
+
|
|
4002
5191
|
declare enum PChainTransactionType {
|
|
4003
5192
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4004
5193
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4015,14 +5204,17 @@ declare enum PChainTransactionType {
|
|
|
4015
5204
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4016
5205
|
BASE_TX = "BaseTx",
|
|
4017
5206
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
5207
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5208
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5209
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5210
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5211
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4023
5212
|
UNKNOWN = "UNKNOWN"
|
|
4024
5213
|
}
|
|
4025
5214
|
|
|
5215
|
+
/**
|
|
5216
|
+
* Indicates whether the UTXO is staked or transferable
|
|
5217
|
+
*/
|
|
4026
5218
|
declare enum UtxoType {
|
|
4027
5219
|
STAKE = "STAKE",
|
|
4028
5220
|
TRANSFER = "TRANSFER"
|
|
@@ -4050,6 +5242,10 @@ type PChainUtxo = {
|
|
|
4050
5242
|
* UTXO ID for this output.
|
|
4051
5243
|
*/
|
|
4052
5244
|
utxoId: string;
|
|
5245
|
+
/**
|
|
5246
|
+
* The bytes of the UTXO
|
|
5247
|
+
*/
|
|
5248
|
+
utxoBytes?: string;
|
|
4053
5249
|
/**
|
|
4054
5250
|
* @deprecated
|
|
4055
5251
|
*/
|
|
@@ -4060,25 +5256,47 @@ type PChainUtxo = {
|
|
|
4060
5256
|
assetId: string;
|
|
4061
5257
|
blockNumber: string;
|
|
4062
5258
|
blockTimestamp: number;
|
|
5259
|
+
/**
|
|
5260
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
5261
|
+
*/
|
|
4063
5262
|
consumingBlockNumber?: string;
|
|
5263
|
+
/**
|
|
5264
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
5265
|
+
*/
|
|
4064
5266
|
consumingBlockTimestamp?: number;
|
|
5267
|
+
/**
|
|
5268
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
5269
|
+
*/
|
|
4065
5270
|
platformLocktime?: number;
|
|
5271
|
+
/**
|
|
5272
|
+
* The index of the UTXO in the transaction
|
|
5273
|
+
*/
|
|
4066
5274
|
outputIndex: number;
|
|
4067
5275
|
rewardType?: RewardType;
|
|
5276
|
+
/**
|
|
5277
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
5278
|
+
*/
|
|
4068
5279
|
stakeableLocktime?: number;
|
|
4069
5280
|
staked?: boolean;
|
|
5281
|
+
/**
|
|
5282
|
+
* The minimum number of signatures required to spend this UTXO
|
|
5283
|
+
*/
|
|
4070
5284
|
threshold?: number;
|
|
5285
|
+
/**
|
|
5286
|
+
* The hash of the transaction that created this UTXO
|
|
5287
|
+
*/
|
|
4071
5288
|
txHash: string;
|
|
5289
|
+
/**
|
|
5290
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
5291
|
+
*/
|
|
4072
5292
|
utxoEndTimestamp?: number;
|
|
5293
|
+
/**
|
|
5294
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
5295
|
+
*/
|
|
4073
5296
|
utxoStartTimestamp?: number;
|
|
4074
5297
|
utxoType: UtxoType;
|
|
4075
5298
|
};
|
|
4076
5299
|
|
|
4077
|
-
type SubnetValidatorManagerDetails = {
|
|
4078
|
-
blockchainId: string;
|
|
4079
|
-
evmContractAddress: string;
|
|
4080
|
-
};
|
|
4081
|
-
|
|
4082
5300
|
type PChainTransaction = {
|
|
4083
5301
|
/**
|
|
4084
5302
|
* A P-Chain transaction hash.
|
|
@@ -4089,9 +5307,18 @@ type PChainTransaction = {
|
|
|
4089
5307
|
* The block finality timestamp.
|
|
4090
5308
|
*/
|
|
4091
5309
|
blockTimestamp: number;
|
|
5310
|
+
/**
|
|
5311
|
+
* The height of the block in which the transaction was included
|
|
5312
|
+
*/
|
|
4092
5313
|
blockNumber: string;
|
|
4093
5314
|
blockHash: string;
|
|
5315
|
+
/**
|
|
5316
|
+
* The consumed UTXOs of the transaction
|
|
5317
|
+
*/
|
|
4094
5318
|
consumedUtxos: Array<PChainUtxo>;
|
|
5319
|
+
/**
|
|
5320
|
+
* The newly created UTXOs of the transaction
|
|
5321
|
+
*/
|
|
4095
5322
|
emittedUtxos: Array<PChainUtxo>;
|
|
4096
5323
|
/**
|
|
4097
5324
|
* Source chain for an atomic transaction.
|
|
@@ -4102,11 +5329,11 @@ type PChainTransaction = {
|
|
|
4102
5329
|
*/
|
|
4103
5330
|
destinationChain?: string;
|
|
4104
5331
|
/**
|
|
4105
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5332
|
+
* 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
|
|
4106
5333
|
*/
|
|
4107
5334
|
value: Array<AssetAmount>;
|
|
4108
5335
|
/**
|
|
4109
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5336
|
+
* 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
|
|
4110
5337
|
*/
|
|
4111
5338
|
amountBurned: Array<AssetAmount>;
|
|
4112
5339
|
/**
|
|
@@ -4114,9 +5341,9 @@ type PChainTransaction = {
|
|
|
4114
5341
|
*/
|
|
4115
5342
|
amountStaked: Array<AssetAmount>;
|
|
4116
5343
|
/**
|
|
4117
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5344
|
+
* 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.
|
|
4118
5345
|
*/
|
|
4119
|
-
|
|
5346
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4120
5347
|
/**
|
|
4121
5348
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4122
5349
|
*/
|
|
@@ -4126,11 +5353,11 @@ type PChainTransaction = {
|
|
|
4126
5353
|
*/
|
|
4127
5354
|
endTimestamp?: number;
|
|
4128
5355
|
/**
|
|
4129
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5356
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4130
5357
|
*/
|
|
4131
5358
|
delegationFeePercent?: string;
|
|
4132
5359
|
/**
|
|
4133
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5360
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4134
5361
|
*/
|
|
4135
5362
|
nodeId?: string;
|
|
4136
5363
|
/**
|
|
@@ -4138,22 +5365,25 @@ type PChainTransaction = {
|
|
|
4138
5365
|
*/
|
|
4139
5366
|
subnetId?: string;
|
|
4140
5367
|
/**
|
|
4141
|
-
* Present for
|
|
5368
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4142
5369
|
*/
|
|
4143
|
-
|
|
5370
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4144
5371
|
/**
|
|
4145
|
-
*
|
|
5372
|
+
* 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
|
|
4146
5373
|
*/
|
|
4147
|
-
|
|
5374
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4148
5375
|
/**
|
|
4149
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5376
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4150
5377
|
*/
|
|
4151
5378
|
estimatedReward?: string;
|
|
5379
|
+
/**
|
|
5380
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5381
|
+
*/
|
|
4152
5382
|
rewardTxHash?: string;
|
|
4153
5383
|
rewardAddresses?: Array<string>;
|
|
4154
5384
|
memo?: string;
|
|
4155
5385
|
/**
|
|
4156
|
-
*
|
|
5386
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4157
5387
|
*/
|
|
4158
5388
|
stakingTxHash?: string;
|
|
4159
5389
|
/**
|
|
@@ -4161,9 +5391,13 @@ type PChainTransaction = {
|
|
|
4161
5391
|
*/
|
|
4162
5392
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4163
5393
|
/**
|
|
4164
|
-
* Present for AddPermissionlessValidatorTx
|
|
5394
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4165
5395
|
*/
|
|
4166
5396
|
blsCredentials?: BlsCredentials;
|
|
5397
|
+
/**
|
|
5398
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5399
|
+
*/
|
|
5400
|
+
blockchainInfo?: BlockchainInfo;
|
|
4167
5401
|
};
|
|
4168
5402
|
|
|
4169
5403
|
type ListPChainTransactionsResponse = {
|
|
@@ -4346,11 +5580,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4346
5580
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4347
5581
|
BASE_TX = "BaseTx",
|
|
4348
5582
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
5583
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5584
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5585
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5586
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5587
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4354
5588
|
UNKNOWN = "UNKNOWN",
|
|
4355
5589
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4356
5590
|
OPERATION_TX = "OperationTx"
|
|
@@ -4385,11 +5619,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4385
5619
|
*
|
|
4386
5620
|
* 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.
|
|
4387
5621
|
*
|
|
5622
|
+
* 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.
|
|
5623
|
+
*
|
|
4388
5624
|
* 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.
|
|
4389
5625
|
* @returns any Successful response
|
|
4390
5626
|
* @throws ApiError
|
|
4391
5627
|
*/
|
|
4392
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
5628
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4393
5629
|
/**
|
|
4394
5630
|
* A primary network blockchain id or alias.
|
|
4395
5631
|
*/
|
|
@@ -4402,6 +5638,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4402
5638
|
* 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.
|
|
4403
5639
|
*/
|
|
4404
5640
|
addresses?: string;
|
|
5641
|
+
l1ValidationId?: string;
|
|
4405
5642
|
/**
|
|
4406
5643
|
* Query param for filtering items based on transaction types.
|
|
4407
5644
|
*/
|
|
@@ -4531,6 +5768,18 @@ type ListUtxosResponse = {
|
|
|
4531
5768
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4532
5769
|
};
|
|
4533
5770
|
|
|
5771
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5772
|
+
/**
|
|
5773
|
+
* Comma-separated list of primary network addresses
|
|
5774
|
+
*/
|
|
5775
|
+
addresses: string;
|
|
5776
|
+
};
|
|
5777
|
+
|
|
5778
|
+
declare enum UtxosSortByOption {
|
|
5779
|
+
TIMESTAMP = "timestamp",
|
|
5780
|
+
AMOUNT = "amount"
|
|
5781
|
+
}
|
|
5782
|
+
|
|
4534
5783
|
declare class PrimaryNetworkUtxOsService {
|
|
4535
5784
|
readonly httpRequest: BaseHttpRequest;
|
|
4536
5785
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4540,7 +5789,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4540
5789
|
* @returns any Successful response
|
|
4541
5790
|
* @throws ApiError
|
|
4542
5791
|
*/
|
|
4543
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5792
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
4544
5793
|
/**
|
|
4545
5794
|
* A primary network blockchain id or alias.
|
|
4546
5795
|
*/
|
|
@@ -4565,10 +5814,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4565
5814
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4566
5815
|
*/
|
|
4567
5816
|
assetId?: string;
|
|
5817
|
+
/**
|
|
5818
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5819
|
+
*/
|
|
5820
|
+
minUtxoAmount?: number;
|
|
5821
|
+
/**
|
|
5822
|
+
* Boolean filter to include spent UTXOs.
|
|
5823
|
+
*/
|
|
5824
|
+
includeSpent?: boolean;
|
|
5825
|
+
/**
|
|
5826
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5827
|
+
*/
|
|
5828
|
+
sortBy?: UtxosSortByOption;
|
|
5829
|
+
/**
|
|
5830
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
5831
|
+
*/
|
|
5832
|
+
sortOrder?: SortOrder;
|
|
5833
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5834
|
+
/**
|
|
5835
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5836
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5837
|
+
* @returns any Successful response
|
|
5838
|
+
* @throws ApiError
|
|
5839
|
+
*/
|
|
5840
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5841
|
+
/**
|
|
5842
|
+
* A primary network blockchain id or alias.
|
|
5843
|
+
*/
|
|
5844
|
+
blockchainId: BlockchainId;
|
|
5845
|
+
/**
|
|
5846
|
+
* Either mainnet or testnet/fuji.
|
|
5847
|
+
*/
|
|
5848
|
+
network: Network;
|
|
5849
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5850
|
+
/**
|
|
5851
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5852
|
+
*/
|
|
5853
|
+
pageToken?: string;
|
|
5854
|
+
/**
|
|
5855
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5856
|
+
*/
|
|
5857
|
+
pageSize?: number;
|
|
5858
|
+
/**
|
|
5859
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5860
|
+
*/
|
|
5861
|
+
assetId?: string;
|
|
5862
|
+
/**
|
|
5863
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5864
|
+
*/
|
|
5865
|
+
minUtxoAmount?: number;
|
|
4568
5866
|
/**
|
|
4569
5867
|
* Boolean filter to include spent UTXOs.
|
|
4570
5868
|
*/
|
|
4571
5869
|
includeSpent?: boolean;
|
|
5870
|
+
/**
|
|
5871
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5872
|
+
*/
|
|
5873
|
+
sortBy?: UtxosSortByOption;
|
|
4572
5874
|
/**
|
|
4573
5875
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4574
5876
|
*/
|
|
@@ -4683,15 +5985,29 @@ type SignatureAggregationResponse = {
|
|
|
4683
5985
|
|
|
4684
5986
|
type SignatureAggregatorRequest = {
|
|
4685
5987
|
/**
|
|
4686
|
-
*
|
|
5988
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
4687
5989
|
*/
|
|
4688
5990
|
message?: string;
|
|
4689
5991
|
/**
|
|
4690
|
-
*
|
|
5992
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
4691
5993
|
*/
|
|
4692
5994
|
justification?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
5997
|
+
*/
|
|
4693
5998
|
signingSubnetId?: string;
|
|
5999
|
+
/**
|
|
6000
|
+
* Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
|
|
6001
|
+
*/
|
|
4694
6002
|
quorumPercentage?: number;
|
|
6003
|
+
/**
|
|
6004
|
+
* Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
|
|
6005
|
+
*/
|
|
6006
|
+
quorumPercentageBuffer?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
* Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
|
|
6009
|
+
*/
|
|
6010
|
+
pChainHeight?: number;
|
|
4695
6011
|
};
|
|
4696
6012
|
|
|
4697
6013
|
declare class SignatureAggregatorService {
|
|
@@ -4703,9 +6019,29 @@ declare class SignatureAggregatorService {
|
|
|
4703
6019
|
* @returns SignatureAggregationResponse Successful response
|
|
4704
6020
|
* @throws ApiError
|
|
4705
6021
|
*/
|
|
4706
|
-
aggregateSignatures({ requestBody, }: {
|
|
6022
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
6023
|
+
/**
|
|
6024
|
+
* Either mainnet or testnet/fuji.
|
|
6025
|
+
*/
|
|
6026
|
+
network: Network;
|
|
4707
6027
|
requestBody: SignatureAggregatorRequest;
|
|
4708
6028
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6029
|
+
/**
|
|
6030
|
+
* Get Aggregated Signatures
|
|
6031
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6032
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6033
|
+
* @throws ApiError
|
|
6034
|
+
*/
|
|
6035
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6036
|
+
/**
|
|
6037
|
+
* Either mainnet or testnet/fuji.
|
|
6038
|
+
*/
|
|
6039
|
+
network: Network;
|
|
6040
|
+
/**
|
|
6041
|
+
* A primary network (P or X chain) transaction hash.
|
|
6042
|
+
*/
|
|
6043
|
+
txHash: string;
|
|
6044
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4709
6045
|
}
|
|
4710
6046
|
|
|
4711
6047
|
type TeleporterDestinationTransaction = {
|
|
@@ -4839,15 +6175,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4839
6175
|
* 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.
|
|
4840
6176
|
*/
|
|
4841
6177
|
nextPageToken?: string;
|
|
4842
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6178
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4843
6179
|
};
|
|
4844
6180
|
|
|
4845
6181
|
declare class TeleporterService {
|
|
4846
6182
|
readonly httpRequest: BaseHttpRequest;
|
|
4847
6183
|
constructor(httpRequest: BaseHttpRequest);
|
|
4848
6184
|
/**
|
|
4849
|
-
*
|
|
4850
|
-
* Gets a teleporter message by message ID.
|
|
6185
|
+
* @deprecated
|
|
6186
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6187
|
+
*
|
|
6188
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4851
6189
|
* @returns any Successful response
|
|
4852
6190
|
* @throws ApiError
|
|
4853
6191
|
*/
|
|
@@ -4858,8 +6196,10 @@ declare class TeleporterService {
|
|
|
4858
6196
|
messageId: string;
|
|
4859
6197
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4860
6198
|
/**
|
|
4861
|
-
*
|
|
4862
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6199
|
+
* @deprecated
|
|
6200
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6201
|
+
*
|
|
6202
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4863
6203
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4864
6204
|
* @throws ApiError
|
|
4865
6205
|
*/
|
|
@@ -4898,8 +6238,10 @@ declare class TeleporterService {
|
|
|
4898
6238
|
network?: Network;
|
|
4899
6239
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4900
6240
|
/**
|
|
4901
|
-
*
|
|
4902
|
-
* Lists teleporter messages by address. Ordered by
|
|
6241
|
+
* @deprecated
|
|
6242
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6243
|
+
*
|
|
6244
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4903
6245
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4904
6246
|
* @throws ApiError
|
|
4905
6247
|
*/
|
|
@@ -4932,68 +6274,212 @@ type AddressesChangeRequest = {
|
|
|
4932
6274
|
|
|
4933
6275
|
type AddressActivityMetadata = {
|
|
4934
6276
|
/**
|
|
4935
|
-
*
|
|
6277
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6278
|
+
*/
|
|
6279
|
+
eventSignatures?: Array<string>;
|
|
6280
|
+
/**
|
|
6281
|
+
* 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.
|
|
4936
6282
|
*/
|
|
4937
6283
|
addresses: Array<string>;
|
|
6284
|
+
};
|
|
6285
|
+
|
|
6286
|
+
type EVMAddressActivityRequest = {
|
|
6287
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6288
|
+
url: string;
|
|
6289
|
+
name?: string;
|
|
6290
|
+
description?: string;
|
|
6291
|
+
chainId: string;
|
|
6292
|
+
metadata: AddressActivityMetadata;
|
|
4938
6293
|
/**
|
|
4939
|
-
*
|
|
6294
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
4940
6295
|
*/
|
|
4941
|
-
|
|
6296
|
+
includeInternalTxs?: boolean;
|
|
6297
|
+
/**
|
|
6298
|
+
* Whether to include logs in the webhook payload.
|
|
6299
|
+
*/
|
|
6300
|
+
includeLogs?: boolean;
|
|
4942
6301
|
};
|
|
6302
|
+
declare namespace EVMAddressActivityRequest {
|
|
6303
|
+
enum eventType {
|
|
6304
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6305
|
+
}
|
|
6306
|
+
}
|
|
4943
6307
|
|
|
4944
|
-
declare enum
|
|
6308
|
+
declare enum AddressActivityEventType {
|
|
4945
6309
|
ADDRESS_ACTIVITY = "address_activity"
|
|
4946
6310
|
}
|
|
4947
6311
|
|
|
4948
|
-
|
|
6312
|
+
declare enum WebhookStatusType {
|
|
6313
|
+
ACTIVE = "active",
|
|
6314
|
+
INACTIVE = "inactive"
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
type EVMAddressActivityResponse = {
|
|
6318
|
+
id: string;
|
|
4949
6319
|
url: string;
|
|
4950
6320
|
chainId: string;
|
|
4951
|
-
|
|
6321
|
+
status: WebhookStatusType;
|
|
6322
|
+
createdAt: number;
|
|
6323
|
+
name: string;
|
|
6324
|
+
description: string;
|
|
6325
|
+
eventType: AddressActivityEventType;
|
|
4952
6326
|
metadata: AddressActivityMetadata;
|
|
4953
|
-
name?: string;
|
|
4954
|
-
description?: string;
|
|
4955
6327
|
/**
|
|
4956
|
-
* Whether to include traces in the webhook payload.
|
|
6328
|
+
* Whether to include traces in the webhook payload.
|
|
6329
|
+
*/
|
|
6330
|
+
includeInternalTxs?: boolean;
|
|
6331
|
+
/**
|
|
6332
|
+
* Whether to include logs in the webhook payload.
|
|
6333
|
+
*/
|
|
6334
|
+
includeLogs?: boolean;
|
|
6335
|
+
};
|
|
6336
|
+
|
|
6337
|
+
type ListWebhookAddressesResponse = {
|
|
6338
|
+
/**
|
|
6339
|
+
* 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.
|
|
6340
|
+
*/
|
|
6341
|
+
nextPageToken?: string;
|
|
6342
|
+
addresses: Array<string>;
|
|
6343
|
+
totalAddresses: number;
|
|
6344
|
+
};
|
|
6345
|
+
|
|
6346
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6347
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6348
|
+
}
|
|
6349
|
+
|
|
6350
|
+
/**
|
|
6351
|
+
* The type of key to monitor for the address activity event type.
|
|
6352
|
+
*/
|
|
6353
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6354
|
+
ADDRESSES = "addresses"
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6357
|
+
/**
|
|
6358
|
+
* Array of address activity sub-event types
|
|
6359
|
+
*/
|
|
6360
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6361
|
+
BALANCE_CHANGE = "balance_change",
|
|
6362
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6363
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6366
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6367
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6368
|
+
};
|
|
6369
|
+
|
|
6370
|
+
/**
|
|
6371
|
+
* Type of balance to monitor
|
|
6372
|
+
*/
|
|
6373
|
+
declare enum CommonBalanceType {
|
|
6374
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6375
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6376
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6377
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6378
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6379
|
+
PENDING_STAKED = "pendingStaked",
|
|
6380
|
+
UNLOCKED = "unlocked",
|
|
6381
|
+
LOCKED = "locked",
|
|
6382
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6383
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6384
|
+
}
|
|
6385
|
+
|
|
6386
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6387
|
+
balanceType: CommonBalanceType;
|
|
6388
|
+
/**
|
|
6389
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6390
|
+
*/
|
|
6391
|
+
balanceThreshold: string;
|
|
6392
|
+
};
|
|
6393
|
+
|
|
6394
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6395
|
+
/**
|
|
6396
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6397
|
+
*/
|
|
6398
|
+
eventSignatures?: Array<string>;
|
|
6399
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6400
|
+
/**
|
|
6401
|
+
* 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.
|
|
6402
|
+
*/
|
|
6403
|
+
keys: Array<string>;
|
|
6404
|
+
/**
|
|
6405
|
+
* Sub-events to monitor
|
|
6406
|
+
*/
|
|
6407
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6408
|
+
/**
|
|
6409
|
+
* Balance threshold filter
|
|
6410
|
+
*/
|
|
6411
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6412
|
+
};
|
|
6413
|
+
|
|
6414
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6415
|
+
id: string;
|
|
6416
|
+
url: string;
|
|
6417
|
+
chainId: string;
|
|
6418
|
+
status: WebhookStatusType;
|
|
6419
|
+
createdAt: number;
|
|
6420
|
+
name: string;
|
|
6421
|
+
description: string;
|
|
6422
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6423
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6424
|
+
};
|
|
6425
|
+
|
|
6426
|
+
declare enum ValidatorActivityEventType {
|
|
6427
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
/**
|
|
6431
|
+
* The type of key to monitor for the validator activity event type.
|
|
6432
|
+
*/
|
|
6433
|
+
declare enum ValidatorActivityKeyType {
|
|
6434
|
+
NODE_ID = "nodeId",
|
|
6435
|
+
SUBNET_ID = "subnetId"
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
type ValidatorActivitySubEvents = {
|
|
6439
|
+
/**
|
|
6440
|
+
* Array of validator activity sub-event types
|
|
6441
|
+
*/
|
|
6442
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6443
|
+
};
|
|
6444
|
+
|
|
6445
|
+
type ValidatorActivityMetadata = {
|
|
6446
|
+
/**
|
|
6447
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6448
|
+
*/
|
|
6449
|
+
eventSignatures?: Array<string>;
|
|
6450
|
+
keyType: ValidatorActivityKeyType;
|
|
6451
|
+
/**
|
|
6452
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
4957
6453
|
*/
|
|
4958
|
-
|
|
6454
|
+
keys: Array<string>;
|
|
4959
6455
|
/**
|
|
4960
|
-
*
|
|
6456
|
+
* Sub-events to monitor
|
|
4961
6457
|
*/
|
|
4962
|
-
|
|
4963
|
-
};
|
|
4964
|
-
|
|
4965
|
-
type ListWebhookAddressesResponse = {
|
|
6458
|
+
subEvents: ValidatorActivitySubEvents;
|
|
4966
6459
|
/**
|
|
4967
|
-
*
|
|
6460
|
+
* Array of node IDs to filter the events
|
|
4968
6461
|
*/
|
|
4969
|
-
|
|
4970
|
-
addresses: Array<string>;
|
|
4971
|
-
totalAddresses: number;
|
|
4972
|
-
};
|
|
4973
|
-
|
|
4974
|
-
declare enum WebhookStatusType {
|
|
4975
|
-
ACTIVE = "active",
|
|
4976
|
-
INACTIVE = "inactive"
|
|
4977
|
-
}
|
|
4978
|
-
|
|
4979
|
-
type WebhookResponse = {
|
|
4980
|
-
id: string;
|
|
4981
|
-
eventType: EventType;
|
|
4982
|
-
metadata: AddressActivityMetadata;
|
|
6462
|
+
nodeIds?: Array<string>;
|
|
4983
6463
|
/**
|
|
4984
|
-
*
|
|
6464
|
+
* Array of subnet IDs to filter the events
|
|
4985
6465
|
*/
|
|
4986
|
-
|
|
6466
|
+
subnetIds?: Array<string>;
|
|
4987
6467
|
/**
|
|
4988
|
-
*
|
|
6468
|
+
* L1 validator fee balance threshold in nAVAX
|
|
4989
6469
|
*/
|
|
4990
|
-
|
|
6470
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6471
|
+
};
|
|
6472
|
+
|
|
6473
|
+
type ValidatorActivityResponse = {
|
|
6474
|
+
id: string;
|
|
4991
6475
|
url: string;
|
|
4992
6476
|
chainId: string;
|
|
4993
6477
|
status: WebhookStatusType;
|
|
4994
6478
|
createdAt: number;
|
|
4995
6479
|
name: string;
|
|
4996
6480
|
description: string;
|
|
6481
|
+
eventType: ValidatorActivityEventType;
|
|
6482
|
+
metadata: ValidatorActivityMetadata;
|
|
4997
6483
|
};
|
|
4998
6484
|
|
|
4999
6485
|
type ListWebhooksResponse = {
|
|
@@ -5001,8 +6487,31 @@ type ListWebhooksResponse = {
|
|
|
5001
6487
|
* 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.
|
|
5002
6488
|
*/
|
|
5003
6489
|
nextPageToken?: string;
|
|
5004
|
-
webhooks: Array<
|
|
6490
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6491
|
+
};
|
|
6492
|
+
|
|
6493
|
+
declare enum PrimaryNetworkType {
|
|
6494
|
+
MAINNET = "mainnet",
|
|
6495
|
+
FUJI = "fuji"
|
|
6496
|
+
}
|
|
6497
|
+
|
|
6498
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6499
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6500
|
+
url: string;
|
|
6501
|
+
name?: string;
|
|
6502
|
+
description?: string;
|
|
6503
|
+
network: PrimaryNetworkType;
|
|
6504
|
+
chainId: string;
|
|
6505
|
+
/**
|
|
6506
|
+
* Metadata for platform address activity event
|
|
6507
|
+
*/
|
|
6508
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5005
6509
|
};
|
|
6510
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6511
|
+
enum eventType {
|
|
6512
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6513
|
+
}
|
|
6514
|
+
}
|
|
5006
6515
|
|
|
5007
6516
|
type SharedSecretsResponse = {
|
|
5008
6517
|
secret: string;
|
|
@@ -5013,10 +6522,30 @@ type UpdateWebhookRequest = {
|
|
|
5013
6522
|
description?: string;
|
|
5014
6523
|
url?: string;
|
|
5015
6524
|
status?: WebhookStatusType;
|
|
6525
|
+
/**
|
|
6526
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6527
|
+
*/
|
|
5016
6528
|
includeInternalTxs?: boolean;
|
|
5017
6529
|
includeLogs?: boolean;
|
|
5018
6530
|
};
|
|
5019
6531
|
|
|
6532
|
+
type ValidatorActivityRequest = {
|
|
6533
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6534
|
+
url: string;
|
|
6535
|
+
name?: string;
|
|
6536
|
+
description?: string;
|
|
6537
|
+
network: PrimaryNetworkType;
|
|
6538
|
+
/**
|
|
6539
|
+
* Metadata for platform validator activity event
|
|
6540
|
+
*/
|
|
6541
|
+
metadata: ValidatorActivityMetadata;
|
|
6542
|
+
};
|
|
6543
|
+
declare namespace ValidatorActivityRequest {
|
|
6544
|
+
enum eventType {
|
|
6545
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
|
|
5020
6549
|
declare enum WebhookStatus {
|
|
5021
6550
|
ACTIVE = "active",
|
|
5022
6551
|
INACTIVE = "inactive"
|
|
@@ -5028,12 +6557,12 @@ declare class WebhooksService {
|
|
|
5028
6557
|
/**
|
|
5029
6558
|
* Create a webhook
|
|
5030
6559
|
* Create a new webhook.
|
|
5031
|
-
* @returns
|
|
6560
|
+
* @returns any Successful response
|
|
5032
6561
|
* @throws ApiError
|
|
5033
6562
|
*/
|
|
5034
6563
|
createWebhook({ requestBody, }: {
|
|
5035
|
-
requestBody:
|
|
5036
|
-
}): CancelablePromise<
|
|
6564
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6565
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5037
6566
|
/**
|
|
5038
6567
|
* List webhooks
|
|
5039
6568
|
* Lists webhooks for the user.
|
|
@@ -5057,7 +6586,7 @@ declare class WebhooksService {
|
|
|
5057
6586
|
/**
|
|
5058
6587
|
* Get a webhook by ID
|
|
5059
6588
|
* Retrieves a webhook by ID.
|
|
5060
|
-
* @returns
|
|
6589
|
+
* @returns any Successful response
|
|
5061
6590
|
* @throws ApiError
|
|
5062
6591
|
*/
|
|
5063
6592
|
getWebhook({ id, }: {
|
|
@@ -5065,11 +6594,11 @@ declare class WebhooksService {
|
|
|
5065
6594
|
* The webhook identifier.
|
|
5066
6595
|
*/
|
|
5067
6596
|
id: string;
|
|
5068
|
-
}): CancelablePromise<
|
|
6597
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5069
6598
|
/**
|
|
5070
6599
|
* Deactivate a webhook
|
|
5071
6600
|
* Deactivates a webhook by ID.
|
|
5072
|
-
* @returns
|
|
6601
|
+
* @returns any Successful response
|
|
5073
6602
|
* @throws ApiError
|
|
5074
6603
|
*/
|
|
5075
6604
|
deactivateWebhook({ id, }: {
|
|
@@ -5077,11 +6606,11 @@ declare class WebhooksService {
|
|
|
5077
6606
|
* The webhook identifier.
|
|
5078
6607
|
*/
|
|
5079
6608
|
id: string;
|
|
5080
|
-
}): CancelablePromise<
|
|
6609
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5081
6610
|
/**
|
|
5082
6611
|
* Update a webhook
|
|
5083
6612
|
* Updates an existing webhook.
|
|
5084
|
-
* @returns
|
|
6613
|
+
* @returns any Successful response
|
|
5085
6614
|
* @throws ApiError
|
|
5086
6615
|
*/
|
|
5087
6616
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5090,14 +6619,14 @@ declare class WebhooksService {
|
|
|
5090
6619
|
*/
|
|
5091
6620
|
id: string;
|
|
5092
6621
|
requestBody: UpdateWebhookRequest;
|
|
5093
|
-
}): CancelablePromise<
|
|
6622
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5094
6623
|
/**
|
|
5095
|
-
* Generate a shared secret
|
|
5096
|
-
* Generates a new shared secret.
|
|
6624
|
+
* Generate or rotate a shared secret
|
|
6625
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5097
6626
|
* @returns SharedSecretsResponse Successful response
|
|
5098
6627
|
* @throws ApiError
|
|
5099
6628
|
*/
|
|
5100
|
-
|
|
6629
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5101
6630
|
/**
|
|
5102
6631
|
* Get a shared secret
|
|
5103
6632
|
* Get a previously generated shared secret.
|
|
@@ -5106,9 +6635,9 @@ declare class WebhooksService {
|
|
|
5106
6635
|
*/
|
|
5107
6636
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5108
6637
|
/**
|
|
5109
|
-
* Add addresses to webhook
|
|
5110
|
-
* Add addresses to webhook.
|
|
5111
|
-
* @returns
|
|
6638
|
+
* Add addresses to EVM activity webhook
|
|
6639
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6640
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5112
6641
|
* @throws ApiError
|
|
5113
6642
|
*/
|
|
5114
6643
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5117,11 +6646,11 @@ declare class WebhooksService {
|
|
|
5117
6646
|
*/
|
|
5118
6647
|
id: string;
|
|
5119
6648
|
requestBody: AddressesChangeRequest;
|
|
5120
|
-
}): CancelablePromise<
|
|
6649
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5121
6650
|
/**
|
|
5122
|
-
* Remove addresses from webhook
|
|
5123
|
-
* Remove addresses from webhook.
|
|
5124
|
-
* @returns
|
|
6651
|
+
* Remove addresses from EVM activity webhook
|
|
6652
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6653
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5125
6654
|
* @throws ApiError
|
|
5126
6655
|
*/
|
|
5127
6656
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5130,10 +6659,10 @@ declare class WebhooksService {
|
|
|
5130
6659
|
*/
|
|
5131
6660
|
id: string;
|
|
5132
6661
|
requestBody: AddressesChangeRequest;
|
|
5133
|
-
}): CancelablePromise<
|
|
6662
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5134
6663
|
/**
|
|
5135
|
-
* List adresses by
|
|
5136
|
-
* List adresses by webhook.
|
|
6664
|
+
* List adresses by EVM activity webhooks
|
|
6665
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5137
6666
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5138
6667
|
* @throws ApiError
|
|
5139
6668
|
*/
|
|
@@ -5155,6 +6684,7 @@ declare class WebhooksService {
|
|
|
5155
6684
|
|
|
5156
6685
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5157
6686
|
declare class Glacier {
|
|
6687
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5158
6688
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5159
6689
|
readonly default: DefaultService;
|
|
5160
6690
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5163,7 +6693,9 @@ declare class Glacier {
|
|
|
5163
6693
|
readonly evmContracts: EvmContractsService;
|
|
5164
6694
|
readonly evmTransactions: EvmTransactionsService;
|
|
5165
6695
|
readonly healthCheck: HealthCheckService;
|
|
6696
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5166
6697
|
readonly nfTs: NfTsService;
|
|
6698
|
+
readonly notifications: NotificationsService;
|
|
5167
6699
|
readonly operations: OperationsService;
|
|
5168
6700
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5169
6701
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5196,6 +6728,17 @@ declare class ApiError extends Error {
|
|
|
5196
6728
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5197
6729
|
}
|
|
5198
6730
|
|
|
6731
|
+
type AccessListData = {
|
|
6732
|
+
/**
|
|
6733
|
+
* Access Address
|
|
6734
|
+
*/
|
|
6735
|
+
accessAddresses: string;
|
|
6736
|
+
/**
|
|
6737
|
+
* Storage keys
|
|
6738
|
+
*/
|
|
6739
|
+
storageKeys: Array<string>;
|
|
6740
|
+
};
|
|
6741
|
+
|
|
5199
6742
|
type BadGateway = {
|
|
5200
6743
|
/**
|
|
5201
6744
|
* The error message describing the reason for the exception
|
|
@@ -5230,6 +6773,76 @@ type DataListChainsResponse = {
|
|
|
5230
6773
|
chains: Array<ChainInfo>;
|
|
5231
6774
|
};
|
|
5232
6775
|
|
|
6776
|
+
type ERCToken = {
|
|
6777
|
+
/**
|
|
6778
|
+
* Token contract address
|
|
6779
|
+
*/
|
|
6780
|
+
address: string;
|
|
6781
|
+
/**
|
|
6782
|
+
* Token name
|
|
6783
|
+
*/
|
|
6784
|
+
name: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* Token symbol
|
|
6787
|
+
*/
|
|
6788
|
+
symbol: string;
|
|
6789
|
+
/**
|
|
6790
|
+
* Token decimals
|
|
6791
|
+
*/
|
|
6792
|
+
decimals: number;
|
|
6793
|
+
/**
|
|
6794
|
+
* Value including decimals
|
|
6795
|
+
*/
|
|
6796
|
+
valueWithDecimals: string;
|
|
6797
|
+
};
|
|
6798
|
+
|
|
6799
|
+
type ERCTransfer = {
|
|
6800
|
+
/**
|
|
6801
|
+
* Transaction hash
|
|
6802
|
+
*/
|
|
6803
|
+
transactionHash: string;
|
|
6804
|
+
/**
|
|
6805
|
+
* Transfer type
|
|
6806
|
+
*/
|
|
6807
|
+
type: string;
|
|
6808
|
+
/**
|
|
6809
|
+
* Sender address
|
|
6810
|
+
*/
|
|
6811
|
+
from: string;
|
|
6812
|
+
/**
|
|
6813
|
+
* Recipient address
|
|
6814
|
+
*/
|
|
6815
|
+
to: string;
|
|
6816
|
+
/**
|
|
6817
|
+
* Amount transferred
|
|
6818
|
+
*/
|
|
6819
|
+
value: string;
|
|
6820
|
+
/**
|
|
6821
|
+
* Token Id
|
|
6822
|
+
*/
|
|
6823
|
+
tokenId?: string;
|
|
6824
|
+
/**
|
|
6825
|
+
* Block timestamp
|
|
6826
|
+
*/
|
|
6827
|
+
blockTimestamp: number;
|
|
6828
|
+
/**
|
|
6829
|
+
* Log index
|
|
6830
|
+
*/
|
|
6831
|
+
logIndex: number;
|
|
6832
|
+
/**
|
|
6833
|
+
* erc20 Token details
|
|
6834
|
+
*/
|
|
6835
|
+
erc20Token?: ERCToken;
|
|
6836
|
+
/**
|
|
6837
|
+
* erc721 Token details
|
|
6838
|
+
*/
|
|
6839
|
+
erc721Token?: ERCToken;
|
|
6840
|
+
/**
|
|
6841
|
+
* erc1155 Token details
|
|
6842
|
+
*/
|
|
6843
|
+
erc1155Token?: ERCToken;
|
|
6844
|
+
};
|
|
6845
|
+
|
|
5233
6846
|
type Forbidden = {
|
|
5234
6847
|
/**
|
|
5235
6848
|
* The error message describing the reason for the exception
|
|
@@ -5260,6 +6873,64 @@ type InternalServerError = {
|
|
|
5260
6873
|
error: string;
|
|
5261
6874
|
};
|
|
5262
6875
|
|
|
6876
|
+
type Log = {
|
|
6877
|
+
/**
|
|
6878
|
+
* Contract address
|
|
6879
|
+
*/
|
|
6880
|
+
address: string;
|
|
6881
|
+
/**
|
|
6882
|
+
* First topic
|
|
6883
|
+
*/
|
|
6884
|
+
topic0: string;
|
|
6885
|
+
/**
|
|
6886
|
+
* Second topic (optional)
|
|
6887
|
+
*/
|
|
6888
|
+
topic1?: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* Third topic (optional)
|
|
6891
|
+
*/
|
|
6892
|
+
topic2?: string;
|
|
6893
|
+
/**
|
|
6894
|
+
* Fourth topic (optional)
|
|
6895
|
+
*/
|
|
6896
|
+
topic3?: string;
|
|
6897
|
+
/**
|
|
6898
|
+
* Event data
|
|
6899
|
+
*/
|
|
6900
|
+
data: string;
|
|
6901
|
+
/**
|
|
6902
|
+
* Transaction index
|
|
6903
|
+
*/
|
|
6904
|
+
transactionIndex: number;
|
|
6905
|
+
/**
|
|
6906
|
+
* Log index
|
|
6907
|
+
*/
|
|
6908
|
+
logIndex: number;
|
|
6909
|
+
/**
|
|
6910
|
+
* Indicates if the log was removed
|
|
6911
|
+
*/
|
|
6912
|
+
removed: boolean;
|
|
6913
|
+
};
|
|
6914
|
+
|
|
6915
|
+
type NetworkTokenInfo = {
|
|
6916
|
+
/**
|
|
6917
|
+
* Token name
|
|
6918
|
+
*/
|
|
6919
|
+
tokenName?: string;
|
|
6920
|
+
/**
|
|
6921
|
+
* Token symbol
|
|
6922
|
+
*/
|
|
6923
|
+
tokenSymbol?: string;
|
|
6924
|
+
/**
|
|
6925
|
+
* Token decimals
|
|
6926
|
+
*/
|
|
6927
|
+
tokenDecimals?: number;
|
|
6928
|
+
/**
|
|
6929
|
+
* Value including decimals
|
|
6930
|
+
*/
|
|
6931
|
+
valueWithDecimals?: string;
|
|
6932
|
+
};
|
|
6933
|
+
|
|
5263
6934
|
type NextPageToken = {
|
|
5264
6935
|
/**
|
|
5265
6936
|
* 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.
|
|
@@ -5312,6 +6983,163 @@ type TooManyRequests = {
|
|
|
5312
6983
|
error: string;
|
|
5313
6984
|
};
|
|
5314
6985
|
|
|
6986
|
+
type WebhookInternalTransaction = {
|
|
6987
|
+
/**
|
|
6988
|
+
* Sender address
|
|
6989
|
+
*/
|
|
6990
|
+
from: string;
|
|
6991
|
+
/**
|
|
6992
|
+
* Recipient address
|
|
6993
|
+
*/
|
|
6994
|
+
to: string;
|
|
6995
|
+
/**
|
|
6996
|
+
* Internal transaction type
|
|
6997
|
+
*/
|
|
6998
|
+
internalTxType: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* Value transferred
|
|
7001
|
+
*/
|
|
7002
|
+
value: string;
|
|
7003
|
+
/**
|
|
7004
|
+
* Gas used
|
|
7005
|
+
*/
|
|
7006
|
+
gasUsed: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* Gas limit
|
|
7009
|
+
*/
|
|
7010
|
+
gasLimit: string;
|
|
7011
|
+
/**
|
|
7012
|
+
* Transaction hash
|
|
7013
|
+
*/
|
|
7014
|
+
transactionHash: string;
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
type Transaction = {
|
|
7018
|
+
/**
|
|
7019
|
+
* Block hash of the transaction
|
|
7020
|
+
*/
|
|
7021
|
+
blockHash: string;
|
|
7022
|
+
/**
|
|
7023
|
+
* Block number of the transaction
|
|
7024
|
+
*/
|
|
7025
|
+
blockNumber: string;
|
|
7026
|
+
/**
|
|
7027
|
+
* Sender address
|
|
7028
|
+
*/
|
|
7029
|
+
from: string;
|
|
7030
|
+
/**
|
|
7031
|
+
* Gas limit for the transaction
|
|
7032
|
+
*/
|
|
7033
|
+
gas: string;
|
|
7034
|
+
/**
|
|
7035
|
+
* Gas price used
|
|
7036
|
+
*/
|
|
7037
|
+
gasPrice: string;
|
|
7038
|
+
/**
|
|
7039
|
+
* Maximum fee per gas
|
|
7040
|
+
*/
|
|
7041
|
+
maxFeePerGas: string;
|
|
7042
|
+
/**
|
|
7043
|
+
* Maximum priority fee per gas
|
|
7044
|
+
*/
|
|
7045
|
+
maxPriorityFeePerGas: string;
|
|
7046
|
+
/**
|
|
7047
|
+
* Transaction hash
|
|
7048
|
+
*/
|
|
7049
|
+
txHash: string;
|
|
7050
|
+
/**
|
|
7051
|
+
* Transaction status
|
|
7052
|
+
*/
|
|
7053
|
+
txStatus: string;
|
|
7054
|
+
/**
|
|
7055
|
+
* Input data
|
|
7056
|
+
*/
|
|
7057
|
+
input: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* Nonce value
|
|
7060
|
+
*/
|
|
7061
|
+
nonce: string;
|
|
7062
|
+
/**
|
|
7063
|
+
* Recipient address
|
|
7064
|
+
*/
|
|
7065
|
+
to: string;
|
|
7066
|
+
/**
|
|
7067
|
+
* Transaction index
|
|
7068
|
+
*/
|
|
7069
|
+
transactionIndex: number;
|
|
7070
|
+
/**
|
|
7071
|
+
* Value transferred in the transaction
|
|
7072
|
+
*/
|
|
7073
|
+
value: string;
|
|
7074
|
+
/**
|
|
7075
|
+
* Transaction type
|
|
7076
|
+
*/
|
|
7077
|
+
type: number;
|
|
7078
|
+
/**
|
|
7079
|
+
* Chain ID of the network
|
|
7080
|
+
*/
|
|
7081
|
+
chainId: string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Cumulative gas used
|
|
7084
|
+
*/
|
|
7085
|
+
receiptCumulativeGasUsed: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Gas used
|
|
7088
|
+
*/
|
|
7089
|
+
receiptGasUsed: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Effective gas price
|
|
7092
|
+
*/
|
|
7093
|
+
receiptEffectiveGasPrice: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Receipt root
|
|
7096
|
+
*/
|
|
7097
|
+
receiptRoot: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Block timestamp
|
|
7100
|
+
*/
|
|
7101
|
+
blockTimestamp: number;
|
|
7102
|
+
/**
|
|
7103
|
+
* Contract address (optional)
|
|
7104
|
+
*/
|
|
7105
|
+
contractAddress?: string;
|
|
7106
|
+
/**
|
|
7107
|
+
* ERC20 transfers
|
|
7108
|
+
*/
|
|
7109
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7110
|
+
/**
|
|
7111
|
+
* ERC721 transfers
|
|
7112
|
+
*/
|
|
7113
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7114
|
+
/**
|
|
7115
|
+
* ERC1155 transfers
|
|
7116
|
+
*/
|
|
7117
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7118
|
+
/**
|
|
7119
|
+
* Internal transactions (optional)
|
|
7120
|
+
*/
|
|
7121
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7122
|
+
/**
|
|
7123
|
+
* Access list (optional)
|
|
7124
|
+
*/
|
|
7125
|
+
accessList?: Array<AccessListData>;
|
|
7126
|
+
/**
|
|
7127
|
+
* Network token info (optional)
|
|
7128
|
+
*/
|
|
7129
|
+
networkToken?: NetworkTokenInfo;
|
|
7130
|
+
};
|
|
7131
|
+
|
|
7132
|
+
type TransactionEvent = {
|
|
7133
|
+
/**
|
|
7134
|
+
* Transaction details
|
|
7135
|
+
*/
|
|
7136
|
+
transaction: Transaction;
|
|
7137
|
+
/**
|
|
7138
|
+
* Array of log events
|
|
7139
|
+
*/
|
|
7140
|
+
logs?: Array<Log>;
|
|
7141
|
+
};
|
|
7142
|
+
|
|
5315
7143
|
type Unauthorized = {
|
|
5316
7144
|
/**
|
|
5317
7145
|
* The error message describing the reason for the exception
|
|
@@ -5327,4 +7155,43 @@ type Unauthorized = {
|
|
|
5327
7155
|
error: string;
|
|
5328
7156
|
};
|
|
5329
7157
|
|
|
5330
|
-
|
|
7158
|
+
type WebhookAddressActivityResponse = {
|
|
7159
|
+
/**
|
|
7160
|
+
* Webhook ID
|
|
7161
|
+
*/
|
|
7162
|
+
webhookId: string;
|
|
7163
|
+
/**
|
|
7164
|
+
* Event type
|
|
7165
|
+
*/
|
|
7166
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7167
|
+
/**
|
|
7168
|
+
* Message ID
|
|
7169
|
+
*/
|
|
7170
|
+
messageId: string;
|
|
7171
|
+
/**
|
|
7172
|
+
* Event details
|
|
7173
|
+
*/
|
|
7174
|
+
event: TransactionEvent;
|
|
7175
|
+
};
|
|
7176
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7177
|
+
/**
|
|
7178
|
+
* Event type
|
|
7179
|
+
*/
|
|
7180
|
+
enum eventType {
|
|
7181
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7185
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7186
|
+
constructor(config: OpenAPIConfig);
|
|
7187
|
+
/**
|
|
7188
|
+
* Request method
|
|
7189
|
+
* @param options The request options from the service
|
|
7190
|
+
* @returns CancelablePromise<T>
|
|
7191
|
+
* @throws ApiError
|
|
7192
|
+
*/
|
|
7193
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7194
|
+
}
|
|
7195
|
+
|
|
7196
|
+
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, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
7197
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, 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, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, 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, PrimaryNetworkAddressesBodyDto, 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 };
|