@avalabs/glacier-sdk 3.1.0-canary.7c119e2.0 → 3.1.0-canary.7d0a6cf.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 +1580 -241
- package/esm/generated/Glacier.d.ts +4 -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 +1 -1
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -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 +48 -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 +1 -1
- 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/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/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
- 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 +3 -3
- 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 +1 -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 +1 -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 +1 -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 +1 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +5 -1
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +5 -1
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +1 -1
- 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 +1 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +1 -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 +5 -1
- 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 +1 -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 +1 -1
- 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 +6 -1
- package/esm/generated/models/PChainUtxo.d.ts +5 -1
- 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/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 +1 -1
- 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 +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- 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/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/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/RpcUsageMetricsValueAggregated.d.ts +4 -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 +22 -2
- package/esm/generated/models/StakingDistribution.d.ts +1 -1
- package/esm/generated/models/Subnet.d.ts +3 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/SubscribeRequest.d.ts +1 -1
- package/esm/generated/models/SubscriptionsRequest.d.ts +1 -1
- package/esm/generated/models/SubscriptionsResponse.d.ts +1 -1
- 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 +1 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +1 -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/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 +1 -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 +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmTransactionsService.d.ts +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/PrimaryNetworkService.d.ts +22 -5
- package/esm/generated/services/PrimaryNetworkService.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 +16 -0
- 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 +54 -3
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/EventType.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,65 @@ 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
|
+
* Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
|
|
68
|
+
*/
|
|
69
|
+
totalPBurned: string;
|
|
70
|
+
/**
|
|
71
|
+
* Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
|
|
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
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare class AvaxSupplyService {
|
|
105
|
+
readonly httpRequest: BaseHttpRequest;
|
|
106
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
107
|
+
/**
|
|
108
|
+
* Get AVAX supply information
|
|
109
|
+
* 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.
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
|
|
114
|
+
}
|
|
115
|
+
|
|
57
116
|
type LogsFormatMetadata = {
|
|
58
117
|
/**
|
|
59
118
|
* The IP address of the client that made the request.
|
|
@@ -151,11 +210,11 @@ type LogsResponseDTO = {
|
|
|
151
210
|
declare enum Network {
|
|
152
211
|
MAINNET = "mainnet",
|
|
153
212
|
FUJI = "fuji",
|
|
154
|
-
TESTNET = "testnet"
|
|
155
|
-
DEVNET = "devnet"
|
|
213
|
+
TESTNET = "testnet"
|
|
156
214
|
}
|
|
157
215
|
|
|
158
216
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
217
|
+
RPC_METHOD = "rpcMethod",
|
|
159
218
|
REQUEST_PATH = "requestPath",
|
|
160
219
|
RESPONSE_CODE = "responseCode",
|
|
161
220
|
COUNTRY = "country",
|
|
@@ -163,13 +222,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
222
|
USER_AGENT = "userAgent"
|
|
164
223
|
}
|
|
165
224
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
225
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
226
|
HOURLY = "hourly",
|
|
174
227
|
DAILY = "daily",
|
|
175
228
|
WEEKLY = "weekly",
|
|
@@ -222,6 +275,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
275
|
RPC_METHOD = "rpcMethod",
|
|
223
276
|
RESPONSE_CODE = "responseCode",
|
|
224
277
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
278
|
+
REQUEST_PATH = "requestPath",
|
|
279
|
+
COUNTRY = "country",
|
|
280
|
+
CONTINENT = "continent",
|
|
281
|
+
USER_AGENT = "userAgent",
|
|
225
282
|
NONE = "None"
|
|
226
283
|
}
|
|
227
284
|
}
|
|
@@ -237,6 +294,43 @@ type RpcMetrics = {
|
|
|
237
294
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
295
|
};
|
|
239
296
|
|
|
297
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
298
|
+
/**
|
|
299
|
+
* Duration in which the metrics value is aggregated
|
|
300
|
+
*/
|
|
301
|
+
aggregateDuration: string;
|
|
302
|
+
/**
|
|
303
|
+
* Metrics values
|
|
304
|
+
*/
|
|
305
|
+
metrics: Array<RpcMetrics>;
|
|
306
|
+
/**
|
|
307
|
+
* Network type for which the metrics are aggregated
|
|
308
|
+
*/
|
|
309
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
310
|
+
};
|
|
311
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
312
|
+
/**
|
|
313
|
+
* Network type for which the metrics are aggregated
|
|
314
|
+
*/
|
|
315
|
+
enum network {
|
|
316
|
+
MAINNET = "mainnet",
|
|
317
|
+
TESTNET = "testnet"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
322
|
+
RPC_METHOD = "rpcMethod",
|
|
323
|
+
RESPONSE_CODE = "responseCode",
|
|
324
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
328
|
+
HOURLY = "hourly",
|
|
329
|
+
DAILY = "daily",
|
|
330
|
+
WEEKLY = "weekly",
|
|
331
|
+
MONTHLY = "monthly"
|
|
332
|
+
}
|
|
333
|
+
|
|
240
334
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
335
|
/**
|
|
242
336
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +545,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
545
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
546
|
* @throws ApiError
|
|
453
547
|
*/
|
|
548
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
549
|
+
/**
|
|
550
|
+
* Time interval granularity for data aggregation for subnet
|
|
551
|
+
* rpc metrics
|
|
552
|
+
*/
|
|
553
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
556
|
+
*/
|
|
557
|
+
startTimestamp?: number;
|
|
558
|
+
/**
|
|
559
|
+
* 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.
|
|
560
|
+
*/
|
|
561
|
+
endTimestamp?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Query param for the criterion used for grouping metrics
|
|
564
|
+
*/
|
|
565
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
566
|
+
/**
|
|
567
|
+
* Filter data by chain ID.
|
|
568
|
+
*/
|
|
569
|
+
chainId?: string;
|
|
570
|
+
/**
|
|
571
|
+
* Filter data by response status code.
|
|
572
|
+
*/
|
|
573
|
+
responseCode?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Filter data by RPC method.
|
|
576
|
+
*/
|
|
577
|
+
rpcMethod?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Filter data by Rl Bypass API Token.
|
|
580
|
+
*/
|
|
581
|
+
rlBypassApiToken?: string;
|
|
582
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
583
|
+
/**
|
|
584
|
+
* @deprecated
|
|
585
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
586
|
+
*
|
|
587
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
588
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
589
|
+
* @throws ApiError
|
|
590
|
+
*/
|
|
454
591
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
592
|
/**
|
|
456
593
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +626,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
626
|
/**
|
|
490
627
|
* Get usage metrics for the Primary Network RPC
|
|
491
628
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
629
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
630
|
* @throws ApiError
|
|
494
631
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
632
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
633
|
/**
|
|
497
634
|
* Either mainnet or testnet/fuji.
|
|
498
635
|
*/
|
|
@@ -501,7 +638,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
638
|
* Time interval granularity for data aggregation for subnet
|
|
502
639
|
* rpc metrics
|
|
503
640
|
*/
|
|
504
|
-
timeInterval?:
|
|
641
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
642
|
/**
|
|
506
643
|
* 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.
|
|
507
644
|
*/
|
|
@@ -523,18 +660,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
660
|
*/
|
|
524
661
|
requestPath?: string;
|
|
525
662
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
663
|
+
* 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.
|
|
527
664
|
*/
|
|
528
665
|
country?: string;
|
|
529
666
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
667
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
668
|
*/
|
|
532
669
|
continent?: string;
|
|
533
670
|
/**
|
|
534
671
|
* Filter data by User Agent.
|
|
535
672
|
*/
|
|
536
673
|
userAgent?: string;
|
|
537
|
-
|
|
674
|
+
/**
|
|
675
|
+
* Filter data by RPC method.
|
|
676
|
+
*/
|
|
677
|
+
rpcMethod?: string;
|
|
678
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
679
|
}
|
|
539
680
|
|
|
540
681
|
declare class DefaultService {
|
|
@@ -782,16 +923,16 @@ type Erc20TokenBalance = {
|
|
|
782
923
|
*/
|
|
783
924
|
balanceValue?: Money;
|
|
784
925
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
926
|
+
* 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.
|
|
786
927
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
928
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
929
|
};
|
|
789
930
|
declare namespace Erc20TokenBalance {
|
|
790
931
|
enum ercType {
|
|
791
932
|
ERC_20 = "ERC-20"
|
|
792
933
|
}
|
|
793
934
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
935
|
+
* 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.
|
|
795
936
|
*/
|
|
796
937
|
enum tokenReputation {
|
|
797
938
|
MALICIOUS = "Malicious",
|
|
@@ -886,7 +1027,7 @@ declare class EvmBalancesService {
|
|
|
886
1027
|
*/
|
|
887
1028
|
pageToken?: string;
|
|
888
1029
|
/**
|
|
889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
890
1031
|
*/
|
|
891
1032
|
pageSize?: number;
|
|
892
1033
|
/**
|
|
@@ -924,7 +1065,7 @@ declare class EvmBalancesService {
|
|
|
924
1065
|
*/
|
|
925
1066
|
pageToken?: string;
|
|
926
1067
|
/**
|
|
927
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1068
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
928
1069
|
*/
|
|
929
1070
|
pageSize?: number;
|
|
930
1071
|
/**
|
|
@@ -960,7 +1101,7 @@ declare class EvmBalancesService {
|
|
|
960
1101
|
*/
|
|
961
1102
|
pageToken?: string;
|
|
962
1103
|
/**
|
|
963
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1104
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
964
1105
|
*/
|
|
965
1106
|
pageSize?: number;
|
|
966
1107
|
/**
|
|
@@ -990,7 +1131,7 @@ declare class EvmBalancesService {
|
|
|
990
1131
|
*/
|
|
991
1132
|
pageToken?: string;
|
|
992
1133
|
/**
|
|
993
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1134
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
994
1135
|
*/
|
|
995
1136
|
pageSize?: number;
|
|
996
1137
|
/**
|
|
@@ -1646,7 +1787,7 @@ type Erc1155Contract = {
|
|
|
1646
1787
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1647
1788
|
*/
|
|
1648
1789
|
address: string;
|
|
1649
|
-
deploymentDetails
|
|
1790
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1650
1791
|
ercType: Erc1155Contract.ercType;
|
|
1651
1792
|
/**
|
|
1652
1793
|
* The contract symbol.
|
|
@@ -1677,7 +1818,7 @@ type Erc20Contract = {
|
|
|
1677
1818
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1678
1819
|
*/
|
|
1679
1820
|
address: string;
|
|
1680
|
-
deploymentDetails
|
|
1821
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1681
1822
|
ercType: Erc20Contract.ercType;
|
|
1682
1823
|
/**
|
|
1683
1824
|
* The contract symbol.
|
|
@@ -1712,7 +1853,7 @@ type Erc721Contract = {
|
|
|
1712
1853
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1713
1854
|
*/
|
|
1714
1855
|
address: string;
|
|
1715
|
-
deploymentDetails
|
|
1856
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1716
1857
|
ercType: Erc721Contract.ercType;
|
|
1717
1858
|
/**
|
|
1718
1859
|
* The contract symbol.
|
|
@@ -1742,7 +1883,7 @@ type UnknownContract = {
|
|
|
1742
1883
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1743
1884
|
*/
|
|
1744
1885
|
address: string;
|
|
1745
|
-
deploymentDetails
|
|
1886
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1746
1887
|
ercType: UnknownContract.ercType;
|
|
1747
1888
|
};
|
|
1748
1889
|
declare namespace UnknownContract {
|
|
@@ -1960,6 +2101,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1960
2101
|
CALL = "CALL",
|
|
1961
2102
|
CREATE = "CREATE",
|
|
1962
2103
|
CREATE2 = "CREATE2",
|
|
2104
|
+
CREATE3 = "CREATE3",
|
|
1963
2105
|
CALLCODE = "CALLCODE",
|
|
1964
2106
|
DELEGATECALL = "DELEGATECALL",
|
|
1965
2107
|
STATICCALL = "STATICCALL"
|
|
@@ -2001,11 +2143,11 @@ type TeleporterMessageInfo = {
|
|
|
2001
2143
|
/**
|
|
2002
2144
|
* chain id of the source chain. valid only for destination transactions
|
|
2003
2145
|
*/
|
|
2004
|
-
sourceChainId?:
|
|
2146
|
+
sourceChainId?: string;
|
|
2005
2147
|
/**
|
|
2006
2148
|
* chain id of the destination chain. valid only for source transactions
|
|
2007
2149
|
*/
|
|
2008
|
-
destinationChainId?:
|
|
2150
|
+
destinationChainId?: string;
|
|
2009
2151
|
};
|
|
2010
2152
|
|
|
2011
2153
|
type GetTransactionResponse = {
|
|
@@ -2022,7 +2164,7 @@ type GetTransactionResponse = {
|
|
|
2022
2164
|
*/
|
|
2023
2165
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2024
2166
|
/**
|
|
2025
|
-
* 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
|
|
2167
|
+
* 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.
|
|
2026
2168
|
*/
|
|
2027
2169
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2028
2170
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -2191,7 +2333,7 @@ type TransactionDetails = {
|
|
|
2191
2333
|
*/
|
|
2192
2334
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2193
2335
|
/**
|
|
2194
|
-
* 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
|
|
2336
|
+
* 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.
|
|
2195
2337
|
*/
|
|
2196
2338
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2197
2339
|
};
|
|
@@ -2490,7 +2632,7 @@ declare class EvmTransactionsService {
|
|
|
2490
2632
|
* List internal transactions
|
|
2491
2633
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2492
2634
|
*
|
|
2493
|
-
* 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.
|
|
2635
|
+
* 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.
|
|
2494
2636
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2495
2637
|
* @throws ApiError
|
|
2496
2638
|
*/
|
|
@@ -2586,151 +2728,399 @@ declare class EvmTransactionsService {
|
|
|
2586
2728
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2729
|
}
|
|
2588
2730
|
|
|
2589
|
-
|
|
2590
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2591
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2731
|
+
type HealthIndicatorResultDto = {
|
|
2592
2732
|
/**
|
|
2593
|
-
*
|
|
2594
|
-
* @returns any The Health Check is successful
|
|
2595
|
-
* @throws ApiError
|
|
2733
|
+
* Status of the health indicator.
|
|
2596
2734
|
*/
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2601
|
-
details?: Record<string, Record<string, string>>;
|
|
2602
|
-
}>;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
type ListNftTokens = {
|
|
2735
|
+
status?: HealthIndicatorResultDto.status;
|
|
2736
|
+
};
|
|
2737
|
+
declare namespace HealthIndicatorResultDto {
|
|
2606
2738
|
/**
|
|
2607
|
-
*
|
|
2739
|
+
* Status of the health indicator.
|
|
2608
2740
|
*/
|
|
2609
|
-
|
|
2610
|
-
|
|
2741
|
+
enum status {
|
|
2742
|
+
UP = "up",
|
|
2743
|
+
DOWN = "down"
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
type HealthCheckResultDto = {
|
|
2748
|
+
status?: HealthCheckResultDto.status;
|
|
2749
|
+
info?: any | null;
|
|
2750
|
+
error?: any | null;
|
|
2751
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2611
2752
|
};
|
|
2753
|
+
declare namespace HealthCheckResultDto {
|
|
2754
|
+
enum status {
|
|
2755
|
+
ERROR = "error",
|
|
2756
|
+
OK = "ok",
|
|
2757
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2612
2760
|
|
|
2613
|
-
declare class
|
|
2761
|
+
declare class HealthCheckService {
|
|
2614
2762
|
readonly httpRequest: BaseHttpRequest;
|
|
2615
2763
|
constructor(httpRequest: BaseHttpRequest);
|
|
2616
2764
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
2619
|
-
* @returns
|
|
2620
|
-
* @throws ApiError
|
|
2621
|
-
*/
|
|
2622
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
2623
|
-
/**
|
|
2624
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2625
|
-
*/
|
|
2626
|
-
chainId: string;
|
|
2627
|
-
/**
|
|
2628
|
-
* Contract address on the relevant chain.
|
|
2629
|
-
*/
|
|
2630
|
-
address: string;
|
|
2631
|
-
/**
|
|
2632
|
-
* TokenId on the contract
|
|
2633
|
-
*/
|
|
2634
|
-
tokenId: string;
|
|
2635
|
-
}): CancelablePromise<any>;
|
|
2636
|
-
/**
|
|
2637
|
-
* List tokens
|
|
2638
|
-
* Lists tokens for an NFT contract.
|
|
2639
|
-
* @returns ListNftTokens Successful response
|
|
2765
|
+
* Get the health of the service
|
|
2766
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2767
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2640
2768
|
* @throws ApiError
|
|
2641
2769
|
*/
|
|
2642
|
-
|
|
2643
|
-
/**
|
|
2644
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
-
*/
|
|
2646
|
-
chainId: string;
|
|
2647
|
-
/**
|
|
2648
|
-
* Contract address on the relevant chain.
|
|
2649
|
-
*/
|
|
2650
|
-
address: string;
|
|
2651
|
-
/**
|
|
2652
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
|
-
*/
|
|
2654
|
-
pageToken?: string;
|
|
2655
|
-
/**
|
|
2656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
-
*/
|
|
2658
|
-
pageSize?: number;
|
|
2659
|
-
}): CancelablePromise<ListNftTokens>;
|
|
2770
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2660
2771
|
/**
|
|
2661
|
-
* Get
|
|
2662
|
-
*
|
|
2663
|
-
* @returns
|
|
2772
|
+
* Get the liveliness of the service (reads only)
|
|
2773
|
+
* Check the liveliness of the service (reads only).
|
|
2774
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2664
2775
|
* @throws ApiError
|
|
2665
2776
|
*/
|
|
2666
|
-
|
|
2667
|
-
/**
|
|
2668
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2669
|
-
*/
|
|
2670
|
-
chainId: string;
|
|
2671
|
-
/**
|
|
2672
|
-
* Contract address on the relevant chain.
|
|
2673
|
-
*/
|
|
2674
|
-
address: string;
|
|
2675
|
-
/**
|
|
2676
|
-
* TokenId on the contract
|
|
2677
|
-
*/
|
|
2678
|
-
tokenId: string;
|
|
2679
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2777
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2680
2778
|
}
|
|
2681
2779
|
|
|
2682
|
-
type
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
* The captcha to verify the user
|
|
2689
|
-
*/
|
|
2690
|
-
captcha: string;
|
|
2780
|
+
type IcmDestinationTransaction = {
|
|
2781
|
+
txHash: string;
|
|
2782
|
+
timestamp: number;
|
|
2783
|
+
gasSpent: string;
|
|
2784
|
+
rewardRedeemer: string;
|
|
2785
|
+
delivererAddress: string;
|
|
2691
2786
|
};
|
|
2692
2787
|
|
|
2693
|
-
type
|
|
2694
|
-
|
|
2788
|
+
type IcmReceipt = {
|
|
2789
|
+
receivedMessageNonce: string;
|
|
2790
|
+
relayerRewardAddress: string;
|
|
2695
2791
|
};
|
|
2696
2792
|
|
|
2697
|
-
type
|
|
2793
|
+
type IcmRewardDetails = {
|
|
2698
2794
|
/**
|
|
2699
|
-
*
|
|
2795
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2700
2796
|
*/
|
|
2701
|
-
|
|
2797
|
+
address: string;
|
|
2702
2798
|
/**
|
|
2703
|
-
* The
|
|
2799
|
+
* The contract name.
|
|
2704
2800
|
*/
|
|
2705
|
-
|
|
2801
|
+
name: string;
|
|
2706
2802
|
/**
|
|
2707
|
-
* The
|
|
2803
|
+
* The contract symbol.
|
|
2708
2804
|
*/
|
|
2709
|
-
|
|
2710
|
-
};
|
|
2711
|
-
|
|
2712
|
-
type SubscriptionsRequest = {
|
|
2805
|
+
symbol: string;
|
|
2713
2806
|
/**
|
|
2714
|
-
* The
|
|
2807
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2715
2808
|
*/
|
|
2716
|
-
|
|
2717
|
-
};
|
|
2718
|
-
|
|
2719
|
-
type SubscriptionsResponse = {
|
|
2809
|
+
decimals: number;
|
|
2720
2810
|
/**
|
|
2721
|
-
* The
|
|
2811
|
+
* The logo uri for the address.
|
|
2722
2812
|
*/
|
|
2723
|
-
|
|
2813
|
+
logoUri?: string;
|
|
2814
|
+
ercType: IcmRewardDetails.ercType;
|
|
2724
2815
|
/**
|
|
2725
|
-
* The
|
|
2816
|
+
* The token price, if available.
|
|
2726
2817
|
*/
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
}>;
|
|
2818
|
+
price?: Money;
|
|
2819
|
+
value: string;
|
|
2730
2820
|
};
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2821
|
+
declare namespace IcmRewardDetails {
|
|
2822
|
+
enum ercType {
|
|
2823
|
+
ERC_20 = "ERC-20"
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
type IcmSourceTransaction = {
|
|
2828
|
+
txHash: string;
|
|
2829
|
+
timestamp: number;
|
|
2830
|
+
gasSpent: string;
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
type DeliveredIcmMessage = {
|
|
2834
|
+
messageId: string;
|
|
2835
|
+
icmContractAddress: string;
|
|
2836
|
+
sourceBlockchainId: string;
|
|
2837
|
+
destinationBlockchainId: string;
|
|
2838
|
+
sourceEvmChainId: string;
|
|
2839
|
+
destinationEvmChainId: string;
|
|
2840
|
+
messageNonce: string;
|
|
2841
|
+
from: string;
|
|
2842
|
+
to: string;
|
|
2843
|
+
data?: string;
|
|
2844
|
+
messageExecuted: boolean;
|
|
2845
|
+
receipts: Array<IcmReceipt>;
|
|
2846
|
+
receiptDelivered: boolean;
|
|
2847
|
+
rewardDetails: IcmRewardDetails;
|
|
2848
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2849
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2850
|
+
status: DeliveredIcmMessage.status;
|
|
2851
|
+
};
|
|
2852
|
+
declare namespace DeliveredIcmMessage {
|
|
2853
|
+
enum status {
|
|
2854
|
+
DELIVERED = "delivered"
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2859
|
+
messageId: string;
|
|
2860
|
+
icmContractAddress: string;
|
|
2861
|
+
sourceBlockchainId: string;
|
|
2862
|
+
destinationBlockchainId: string;
|
|
2863
|
+
sourceEvmChainId: string;
|
|
2864
|
+
destinationEvmChainId: string;
|
|
2865
|
+
messageNonce: string;
|
|
2866
|
+
from: string;
|
|
2867
|
+
to: string;
|
|
2868
|
+
data?: string;
|
|
2869
|
+
messageExecuted: boolean;
|
|
2870
|
+
receipts: Array<IcmReceipt>;
|
|
2871
|
+
receiptDelivered: boolean;
|
|
2872
|
+
rewardDetails: IcmRewardDetails;
|
|
2873
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2874
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2875
|
+
};
|
|
2876
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2877
|
+
enum status {
|
|
2878
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
type PendingIcmMessage = {
|
|
2883
|
+
messageId: string;
|
|
2884
|
+
icmContractAddress: string;
|
|
2885
|
+
sourceBlockchainId: string;
|
|
2886
|
+
destinationBlockchainId: string;
|
|
2887
|
+
sourceEvmChainId: string;
|
|
2888
|
+
destinationEvmChainId: string;
|
|
2889
|
+
messageNonce: string;
|
|
2890
|
+
from: string;
|
|
2891
|
+
to: string;
|
|
2892
|
+
data?: string;
|
|
2893
|
+
messageExecuted: boolean;
|
|
2894
|
+
receipts: Array<IcmReceipt>;
|
|
2895
|
+
receiptDelivered: boolean;
|
|
2896
|
+
rewardDetails: IcmRewardDetails;
|
|
2897
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2898
|
+
status: PendingIcmMessage.status;
|
|
2899
|
+
};
|
|
2900
|
+
declare namespace PendingIcmMessage {
|
|
2901
|
+
enum status {
|
|
2902
|
+
PENDING = "pending"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
type ListIcmMessagesResponse = {
|
|
2907
|
+
/**
|
|
2908
|
+
* 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.
|
|
2909
|
+
*/
|
|
2910
|
+
nextPageToken?: string;
|
|
2911
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
declare class InterchainMessagingService {
|
|
2915
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2916
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2917
|
+
/**
|
|
2918
|
+
* Get an ICM message
|
|
2919
|
+
* Gets an ICM message by teleporter message ID.
|
|
2920
|
+
* @returns any Successful response
|
|
2921
|
+
* @throws ApiError
|
|
2922
|
+
*/
|
|
2923
|
+
getIcmMessage({ messageId, }: {
|
|
2924
|
+
/**
|
|
2925
|
+
* The teleporter message ID of the ICM message.
|
|
2926
|
+
*/
|
|
2927
|
+
messageId: string;
|
|
2928
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2929
|
+
/**
|
|
2930
|
+
* List ICM messages
|
|
2931
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2932
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2933
|
+
* @throws ApiError
|
|
2934
|
+
*/
|
|
2935
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2936
|
+
/**
|
|
2937
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2938
|
+
*/
|
|
2939
|
+
pageToken?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2942
|
+
*/
|
|
2943
|
+
pageSize?: number;
|
|
2944
|
+
/**
|
|
2945
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2946
|
+
*/
|
|
2947
|
+
sourceBlockchainId?: string;
|
|
2948
|
+
/**
|
|
2949
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2950
|
+
*/
|
|
2951
|
+
destinationBlockchainId?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2954
|
+
*/
|
|
2955
|
+
blockchainId?: string;
|
|
2956
|
+
/**
|
|
2957
|
+
* The address of the recipient of the ICM message.
|
|
2958
|
+
*/
|
|
2959
|
+
to?: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* The address of the sender of the ICM message.
|
|
2962
|
+
*/
|
|
2963
|
+
from?: string;
|
|
2964
|
+
/**
|
|
2965
|
+
* Either mainnet or testnet/fuji.
|
|
2966
|
+
*/
|
|
2967
|
+
network?: Network;
|
|
2968
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2969
|
+
/**
|
|
2970
|
+
* List ICM messages by address
|
|
2971
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2972
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2973
|
+
* @throws ApiError
|
|
2974
|
+
*/
|
|
2975
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2976
|
+
/**
|
|
2977
|
+
* An EVM address.
|
|
2978
|
+
*/
|
|
2979
|
+
address: string;
|
|
2980
|
+
/**
|
|
2981
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2982
|
+
*/
|
|
2983
|
+
pageToken?: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2986
|
+
*/
|
|
2987
|
+
pageSize?: number;
|
|
2988
|
+
/**
|
|
2989
|
+
* Either mainnet or testnet/fuji.
|
|
2990
|
+
*/
|
|
2991
|
+
network?: Network;
|
|
2992
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
type ListNftTokens = {
|
|
2996
|
+
/**
|
|
2997
|
+
* 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.
|
|
2998
|
+
*/
|
|
2999
|
+
nextPageToken?: string;
|
|
3000
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
3003
|
+
declare class NfTsService {
|
|
3004
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3005
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3006
|
+
/**
|
|
3007
|
+
* Reindex NFT metadata
|
|
3008
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
3009
|
+
* @returns any Successful response
|
|
3010
|
+
* @throws ApiError
|
|
3011
|
+
*/
|
|
3012
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
3013
|
+
/**
|
|
3014
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3015
|
+
*/
|
|
3016
|
+
chainId: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* Contract address on the relevant chain.
|
|
3019
|
+
*/
|
|
3020
|
+
address: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* TokenId on the contract
|
|
3023
|
+
*/
|
|
3024
|
+
tokenId: string;
|
|
3025
|
+
}): CancelablePromise<any>;
|
|
3026
|
+
/**
|
|
3027
|
+
* List tokens
|
|
3028
|
+
* Lists tokens for an NFT contract.
|
|
3029
|
+
* @returns ListNftTokens Successful response
|
|
3030
|
+
* @throws ApiError
|
|
3031
|
+
*/
|
|
3032
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
3033
|
+
/**
|
|
3034
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3035
|
+
*/
|
|
3036
|
+
chainId: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Contract address on the relevant chain.
|
|
3039
|
+
*/
|
|
3040
|
+
address: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3043
|
+
*/
|
|
3044
|
+
pageToken?: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3047
|
+
*/
|
|
3048
|
+
pageSize?: number;
|
|
3049
|
+
}): CancelablePromise<ListNftTokens>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Get token details
|
|
3052
|
+
* Gets token details for a specific token of an NFT contract.
|
|
3053
|
+
* @returns any Successful response
|
|
3054
|
+
* @throws ApiError
|
|
3055
|
+
*/
|
|
3056
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
3057
|
+
/**
|
|
3058
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
3059
|
+
*/
|
|
3060
|
+
chainId: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Contract address on the relevant chain.
|
|
3063
|
+
*/
|
|
3064
|
+
address: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* TokenId on the contract
|
|
3067
|
+
*/
|
|
3068
|
+
tokenId: string;
|
|
3069
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
type AccessRequest = {
|
|
3073
|
+
/**
|
|
3074
|
+
* The email address to send the access token to
|
|
3075
|
+
*/
|
|
3076
|
+
email: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The captcha to verify the user
|
|
3079
|
+
*/
|
|
3080
|
+
captcha: string;
|
|
3081
|
+
};
|
|
3082
|
+
|
|
3083
|
+
type NotificationsResponse = {
|
|
3084
|
+
message: string;
|
|
3085
|
+
};
|
|
3086
|
+
|
|
3087
|
+
type SubscribeRequest = {
|
|
3088
|
+
/**
|
|
3089
|
+
* The access token to use for authentication
|
|
3090
|
+
*/
|
|
3091
|
+
accessToken: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* The node ID to subscribe to
|
|
3094
|
+
*/
|
|
3095
|
+
nodeId: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3098
|
+
*/
|
|
3099
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
type SubscriptionsRequest = {
|
|
3103
|
+
/**
|
|
3104
|
+
* The access token to use for authentication
|
|
3105
|
+
*/
|
|
3106
|
+
accessToken: string;
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
type SubscriptionsResponse = {
|
|
3110
|
+
/**
|
|
3111
|
+
* The email address of the user
|
|
3112
|
+
*/
|
|
3113
|
+
email: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* The subscriptions of the user
|
|
3116
|
+
*/
|
|
3117
|
+
subscriptions: Record<string, {
|
|
3118
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3119
|
+
}>;
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
type UnsubscribeRequest = {
|
|
3123
|
+
/**
|
|
2734
3124
|
* The access token to use for authentication
|
|
2735
3125
|
*/
|
|
2736
3126
|
accessToken: string;
|
|
@@ -2814,7 +3204,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2814
3204
|
type PrimaryNetworkOptions = {
|
|
2815
3205
|
addresses?: Array<string>;
|
|
2816
3206
|
cChainEvmAddresses?: Array<string>;
|
|
2817
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3207
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2818
3208
|
};
|
|
2819
3209
|
|
|
2820
3210
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2869,7 +3259,7 @@ type OperationStatusResponse = {
|
|
|
2869
3259
|
operationType: OperationType;
|
|
2870
3260
|
operationStatus: OperationStatus;
|
|
2871
3261
|
message?: string;
|
|
2872
|
-
metadata
|
|
3262
|
+
metadata?: TransactionExportMetadata;
|
|
2873
3263
|
createdAtTimestamp: number;
|
|
2874
3264
|
updatedAtTimestamp: number;
|
|
2875
3265
|
};
|
|
@@ -2897,19 +3287,280 @@ declare class OperationsService {
|
|
|
2897
3287
|
* @returns OperationStatusResponse Successful response
|
|
2898
3288
|
* @throws ApiError
|
|
2899
3289
|
*/
|
|
2900
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2901
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2902
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2903
|
-
}
|
|
3290
|
+
postTransactionExportJob({ requestBody, }: {
|
|
3291
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
3292
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
type EvmGenesisAllocDto = {
|
|
3296
|
+
/**
|
|
3297
|
+
* Account balance in hex format
|
|
3298
|
+
*/
|
|
3299
|
+
balance?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Contract bytecode in hex format
|
|
3302
|
+
*/
|
|
3303
|
+
code?: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Contract storage slots
|
|
3306
|
+
*/
|
|
3307
|
+
storage?: Record<string, string>;
|
|
3308
|
+
};
|
|
3309
|
+
|
|
3310
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3311
|
+
/**
|
|
3312
|
+
* Block timestamp
|
|
3313
|
+
*/
|
|
3314
|
+
blockTimestamp?: number;
|
|
3315
|
+
/**
|
|
3316
|
+
* Admin addresses
|
|
3317
|
+
*/
|
|
3318
|
+
adminAddresses?: Array<string>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Manager addresses
|
|
3321
|
+
*/
|
|
3322
|
+
managerAddresses?: Array<string>;
|
|
3323
|
+
/**
|
|
3324
|
+
* Enabled addresses
|
|
3325
|
+
*/
|
|
3326
|
+
enabledAddresses?: Array<string>;
|
|
3327
|
+
};
|
|
3328
|
+
|
|
3329
|
+
type EvmGenesisFeeConfigDto = {
|
|
3330
|
+
/**
|
|
3331
|
+
* Base fee change denominator
|
|
3332
|
+
*/
|
|
3333
|
+
baseFeeChangeDenominator?: number;
|
|
3334
|
+
/**
|
|
3335
|
+
* Block gas cost step
|
|
3336
|
+
*/
|
|
3337
|
+
blockGasCostStep?: number;
|
|
3338
|
+
/**
|
|
3339
|
+
* Gas limit
|
|
3340
|
+
*/
|
|
3341
|
+
gasLimit?: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Maximum block gas cost
|
|
3344
|
+
*/
|
|
3345
|
+
maxBlockGasCost?: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Minimum base fee
|
|
3348
|
+
*/
|
|
3349
|
+
minBaseFee?: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Minimum block gas cost
|
|
3352
|
+
*/
|
|
3353
|
+
minBlockGasCost?: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Target block rate
|
|
3356
|
+
*/
|
|
3357
|
+
targetBlockRate?: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* Target gas
|
|
3360
|
+
*/
|
|
3361
|
+
targetGas?: number;
|
|
3362
|
+
};
|
|
3363
|
+
|
|
3364
|
+
type EvmGenesisWarpConfigDto = {
|
|
3365
|
+
/**
|
|
3366
|
+
* Block timestamp
|
|
3367
|
+
*/
|
|
3368
|
+
blockTimestamp?: number;
|
|
3369
|
+
/**
|
|
3370
|
+
* Quorum numerator
|
|
3371
|
+
*/
|
|
3372
|
+
quorumNumerator?: number;
|
|
3373
|
+
/**
|
|
3374
|
+
* Require primary network signers
|
|
3375
|
+
*/
|
|
3376
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3377
|
+
};
|
|
3378
|
+
|
|
3379
|
+
type EvmGenesisConfigDto = {
|
|
3380
|
+
/**
|
|
3381
|
+
* Berlin block number
|
|
3382
|
+
*/
|
|
3383
|
+
berlinBlock?: number;
|
|
3384
|
+
/**
|
|
3385
|
+
* Byzantium block number
|
|
3386
|
+
*/
|
|
3387
|
+
byzantiumBlock?: number;
|
|
3388
|
+
/**
|
|
3389
|
+
* Chain ID
|
|
3390
|
+
*/
|
|
3391
|
+
chainId?: number;
|
|
3392
|
+
/**
|
|
3393
|
+
* Constantinople block number
|
|
3394
|
+
*/
|
|
3395
|
+
constantinopleBlock?: number;
|
|
3396
|
+
/**
|
|
3397
|
+
* EIP-150 block number
|
|
3398
|
+
*/
|
|
3399
|
+
eip150Block?: number;
|
|
3400
|
+
/**
|
|
3401
|
+
* EIP-150 hash
|
|
3402
|
+
*/
|
|
3403
|
+
eip150Hash?: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* EIP-155 block number
|
|
3406
|
+
*/
|
|
3407
|
+
eip155Block?: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* EIP-158 block number
|
|
3410
|
+
*/
|
|
3411
|
+
eip158Block?: number;
|
|
3412
|
+
/**
|
|
3413
|
+
* Fee configuration
|
|
3414
|
+
*/
|
|
3415
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3416
|
+
/**
|
|
3417
|
+
* Homestead block number
|
|
3418
|
+
*/
|
|
3419
|
+
homesteadBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* Istanbul block number
|
|
3422
|
+
*/
|
|
3423
|
+
istanbulBlock?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* London block number
|
|
3426
|
+
*/
|
|
3427
|
+
londonBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* Muir Glacier block number
|
|
3430
|
+
*/
|
|
3431
|
+
muirGlacierBlock?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* Petersburg block number
|
|
3434
|
+
*/
|
|
3435
|
+
petersburgBlock?: number;
|
|
3436
|
+
/**
|
|
3437
|
+
* Subnet EVM timestamp
|
|
3438
|
+
*/
|
|
3439
|
+
subnetEVMTimestamp?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* Allow fee recipients
|
|
3442
|
+
*/
|
|
3443
|
+
allowFeeRecipients?: boolean;
|
|
3444
|
+
/**
|
|
3445
|
+
* Warp configuration
|
|
3446
|
+
*/
|
|
3447
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Transaction allow list configuration
|
|
3450
|
+
*/
|
|
3451
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3452
|
+
/**
|
|
3453
|
+
* Contract deployer allow list configuration
|
|
3454
|
+
*/
|
|
3455
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3456
|
+
/**
|
|
3457
|
+
* Contract native minter configuration
|
|
3458
|
+
*/
|
|
3459
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3460
|
+
/**
|
|
3461
|
+
* Fee manager configuration
|
|
3462
|
+
*/
|
|
3463
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3464
|
+
/**
|
|
3465
|
+
* Reward manager configuration
|
|
3466
|
+
*/
|
|
3467
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3468
|
+
};
|
|
3469
|
+
|
|
3470
|
+
type EvmGenesisDto = {
|
|
3471
|
+
/**
|
|
3472
|
+
* Airdrop amount
|
|
3473
|
+
*/
|
|
3474
|
+
airdropAmount?: number | null;
|
|
3475
|
+
/**
|
|
3476
|
+
* Airdrop hash
|
|
3477
|
+
*/
|
|
3478
|
+
airdropHash?: string;
|
|
3479
|
+
/**
|
|
3480
|
+
* Allocation of accounts and balances
|
|
3481
|
+
*/
|
|
3482
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3483
|
+
/**
|
|
3484
|
+
* Base fee per gas
|
|
3485
|
+
*/
|
|
3486
|
+
baseFeePerGas?: number | null;
|
|
3487
|
+
/**
|
|
3488
|
+
* Blob gas used
|
|
3489
|
+
*/
|
|
3490
|
+
blobGasUsed?: string | null;
|
|
3491
|
+
/**
|
|
3492
|
+
* Coinbase address
|
|
3493
|
+
*/
|
|
3494
|
+
coinbase?: string;
|
|
3495
|
+
/**
|
|
3496
|
+
* Genesis configuration
|
|
3497
|
+
*/
|
|
3498
|
+
config?: EvmGenesisConfigDto;
|
|
3499
|
+
/**
|
|
3500
|
+
* Difficulty
|
|
3501
|
+
*/
|
|
3502
|
+
difficulty?: string;
|
|
3503
|
+
/**
|
|
3504
|
+
* Excess blob gas
|
|
3505
|
+
*/
|
|
3506
|
+
excessBlobGas?: string | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Extra data
|
|
3509
|
+
*/
|
|
3510
|
+
extraData?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Gas limit
|
|
3513
|
+
*/
|
|
3514
|
+
gasLimit?: string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Gas used
|
|
3517
|
+
*/
|
|
3518
|
+
gasUsed?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Mix hash
|
|
3521
|
+
*/
|
|
3522
|
+
mixHash?: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* Nonce
|
|
3525
|
+
*/
|
|
3526
|
+
nonce?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Block number
|
|
3529
|
+
*/
|
|
3530
|
+
number?: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Parent hash
|
|
3533
|
+
*/
|
|
3534
|
+
parentHash?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
timestamp?: string;
|
|
3539
|
+
};
|
|
3540
|
+
|
|
3541
|
+
type Blockchain = {
|
|
3542
|
+
createBlockTimestamp: number;
|
|
3543
|
+
createBlockNumber: string;
|
|
3544
|
+
blockchainId: string;
|
|
3545
|
+
vmId: string;
|
|
3546
|
+
subnetId: string;
|
|
3547
|
+
blockchainName: string;
|
|
3548
|
+
/**
|
|
3549
|
+
* 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.
|
|
3550
|
+
*/
|
|
3551
|
+
evmChainId?: number;
|
|
3552
|
+
/**
|
|
3553
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3554
|
+
*/
|
|
3555
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3556
|
+
};
|
|
2904
3557
|
|
|
2905
3558
|
declare enum BlockchainIds {
|
|
2906
3559
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2907
3560
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2908
3561
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2909
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2910
3562
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2911
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2912
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3563
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2913
3564
|
}
|
|
2914
3565
|
|
|
2915
3566
|
type ChainAddressChainIdMap = {
|
|
@@ -2966,15 +3617,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2966
3617
|
delegatorDetails: DelegatorsDetails;
|
|
2967
3618
|
};
|
|
2968
3619
|
|
|
2969
|
-
type Blockchain = {
|
|
2970
|
-
createBlockTimestamp: number;
|
|
2971
|
-
createBlockNumber: string;
|
|
2972
|
-
blockchainId: string;
|
|
2973
|
-
vmId: string;
|
|
2974
|
-
subnetId: string;
|
|
2975
|
-
blockchainName: string;
|
|
2976
|
-
};
|
|
2977
|
-
|
|
2978
3620
|
type ListBlockchainsResponse = {
|
|
2979
3621
|
/**
|
|
2980
3622
|
* 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.
|
|
@@ -3070,6 +3712,10 @@ type L1ValidatorDetailsFull = {
|
|
|
3070
3712
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
3071
3713
|
*/
|
|
3072
3714
|
validationId: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3717
|
+
*/
|
|
3718
|
+
validationIdHex: string;
|
|
3073
3719
|
nodeId: string;
|
|
3074
3720
|
subnetId: string;
|
|
3075
3721
|
/**
|
|
@@ -3104,10 +3750,10 @@ type ListL1ValidatorsResponse = {
|
|
|
3104
3750
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
3105
3751
|
*/
|
|
3106
3752
|
validators: Array<L1ValidatorDetailsFull>;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3753
|
+
/**
|
|
3754
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3755
|
+
*/
|
|
3756
|
+
blockHeight: string;
|
|
3111
3757
|
};
|
|
3112
3758
|
|
|
3113
3759
|
type L1ValidatorManagerDetails = {
|
|
@@ -3165,7 +3811,7 @@ type Subnet = {
|
|
|
3165
3811
|
* L1 validator manager details.
|
|
3166
3812
|
*/
|
|
3167
3813
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
3168
|
-
blockchains: Array<
|
|
3814
|
+
blockchains: Array<Blockchain>;
|
|
3169
3815
|
};
|
|
3170
3816
|
|
|
3171
3817
|
type ListSubnetsResponse = {
|
|
@@ -3181,6 +3827,29 @@ type BlsCredentials = {
|
|
|
3181
3827
|
proofOfPossession: string;
|
|
3182
3828
|
};
|
|
3183
3829
|
|
|
3830
|
+
type Geolocation = {
|
|
3831
|
+
/**
|
|
3832
|
+
* The name of the validator node.
|
|
3833
|
+
*/
|
|
3834
|
+
city: string;
|
|
3835
|
+
/**
|
|
3836
|
+
* The city of the validator node.
|
|
3837
|
+
*/
|
|
3838
|
+
country: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* The country code of the validator node.
|
|
3841
|
+
*/
|
|
3842
|
+
countryCode: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* The latitude of the validator node.
|
|
3845
|
+
*/
|
|
3846
|
+
latitude: number;
|
|
3847
|
+
/**
|
|
3848
|
+
* The longitude of the validator node.
|
|
3849
|
+
*/
|
|
3850
|
+
longitude: number;
|
|
3851
|
+
};
|
|
3852
|
+
|
|
3184
3853
|
type Rewards = {
|
|
3185
3854
|
validationRewardAmount: string;
|
|
3186
3855
|
delegationRewardAmount: string;
|
|
@@ -3249,6 +3918,10 @@ type ActiveValidatorDetails = {
|
|
|
3249
3918
|
potentialRewards: Rewards;
|
|
3250
3919
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3251
3920
|
validatorHealth: ValidatorHealthDetails;
|
|
3921
|
+
/**
|
|
3922
|
+
* The geographical location of the validator node, if available.
|
|
3923
|
+
*/
|
|
3924
|
+
geolocation: Geolocation | null;
|
|
3252
3925
|
};
|
|
3253
3926
|
declare namespace ActiveValidatorDetails {
|
|
3254
3927
|
enum validationStatus {
|
|
@@ -3406,7 +4079,6 @@ type XChainAssetDetails = {
|
|
|
3406
4079
|
declare enum XChainId {
|
|
3407
4080
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3408
4081
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3409
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3410
4082
|
X_CHAIN = "x-chain"
|
|
3411
4083
|
}
|
|
3412
4084
|
|
|
@@ -3477,7 +4149,7 @@ declare class PrimaryNetworkService {
|
|
|
3477
4149
|
*/
|
|
3478
4150
|
pageToken?: string;
|
|
3479
4151
|
/**
|
|
3480
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4152
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3481
4153
|
*/
|
|
3482
4154
|
pageSize?: number;
|
|
3483
4155
|
/**
|
|
@@ -3485,6 +4157,22 @@ declare class PrimaryNetworkService {
|
|
|
3485
4157
|
*/
|
|
3486
4158
|
sortOrder?: SortOrder;
|
|
3487
4159
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
4160
|
+
/**
|
|
4161
|
+
* Get blockchain details by ID
|
|
4162
|
+
* Get details of the blockchain registered on the network.
|
|
4163
|
+
* @returns Blockchain Successful response
|
|
4164
|
+
* @throws ApiError
|
|
4165
|
+
*/
|
|
4166
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
4167
|
+
/**
|
|
4168
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
4169
|
+
*/
|
|
4170
|
+
blockchainId: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Either mainnet or testnet/fuji.
|
|
4173
|
+
*/
|
|
4174
|
+
network: Network;
|
|
4175
|
+
}): CancelablePromise<Blockchain>;
|
|
3488
4176
|
/**
|
|
3489
4177
|
* List subnets
|
|
3490
4178
|
* Lists all subnets registered on the network.
|
|
@@ -3501,7 +4189,7 @@ declare class PrimaryNetworkService {
|
|
|
3501
4189
|
*/
|
|
3502
4190
|
pageToken?: string;
|
|
3503
4191
|
/**
|
|
3504
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
4192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3505
4193
|
*/
|
|
3506
4194
|
pageSize?: number;
|
|
3507
4195
|
/**
|
|
@@ -3527,7 +4215,7 @@ declare class PrimaryNetworkService {
|
|
|
3527
4215
|
}): CancelablePromise<Subnet>;
|
|
3528
4216
|
/**
|
|
3529
4217
|
* List validators
|
|
3530
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
4218
|
+
* 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.
|
|
3531
4219
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3532
4220
|
* @throws ApiError
|
|
3533
4221
|
*/
|
|
@@ -3545,7 +4233,7 @@ declare class PrimaryNetworkService {
|
|
|
3545
4233
|
*/
|
|
3546
4234
|
pageSize?: number;
|
|
3547
4235
|
/**
|
|
3548
|
-
* A comma separated list of node ids to filter by.
|
|
4236
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3549
4237
|
*/
|
|
3550
4238
|
nodeIds?: string;
|
|
3551
4239
|
/**
|
|
@@ -3689,7 +4377,7 @@ declare class PrimaryNetworkService {
|
|
|
3689
4377
|
/**
|
|
3690
4378
|
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3691
4379
|
*/
|
|
3692
|
-
l1ValidationId?:
|
|
4380
|
+
l1ValidationId?: string;
|
|
3693
4381
|
includeInactiveL1Validators?: boolean;
|
|
3694
4382
|
/**
|
|
3695
4383
|
* A valid node ID in format 'NodeID-HASH'.
|
|
@@ -3706,10 +4394,8 @@ declare enum BlockchainId {
|
|
|
3706
4394
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3707
4395
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3708
4396
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3709
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3710
4397
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3711
4398
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3712
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3713
4399
|
P_CHAIN = "p-chain",
|
|
3714
4400
|
X_CHAIN = "x-chain",
|
|
3715
4401
|
C_CHAIN = "c-chain"
|
|
@@ -4299,6 +4985,10 @@ type Utxo = {
|
|
|
4299
4985
|
* UTXO ID for this output.
|
|
4300
4986
|
*/
|
|
4301
4987
|
utxoId: string;
|
|
4988
|
+
/**
|
|
4989
|
+
* The bytes of the UTXO
|
|
4990
|
+
*/
|
|
4991
|
+
utxoBytes?: string;
|
|
4302
4992
|
/**
|
|
4303
4993
|
* Unix timestamp in seconds at which this output was consumed.
|
|
4304
4994
|
*/
|
|
@@ -4467,11 +5157,24 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4467
5157
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4468
5158
|
};
|
|
4469
5159
|
|
|
5160
|
+
type BlockchainInfo = {
|
|
5161
|
+
chainName: string;
|
|
5162
|
+
vmId: string;
|
|
5163
|
+
/**
|
|
5164
|
+
* 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
|
|
5165
|
+
*/
|
|
5166
|
+
genesisData?: (EvmGenesisDto | string);
|
|
5167
|
+
};
|
|
5168
|
+
|
|
4470
5169
|
type L1ValidatorDetailsTransaction = {
|
|
4471
5170
|
/**
|
|
4472
5171
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4473
5172
|
*/
|
|
4474
5173
|
validationId: string;
|
|
5174
|
+
/**
|
|
5175
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
5176
|
+
*/
|
|
5177
|
+
validationIdHex: string;
|
|
4475
5178
|
nodeId: string;
|
|
4476
5179
|
subnetId: string;
|
|
4477
5180
|
/**
|
|
@@ -4543,6 +5246,10 @@ type PChainUtxo = {
|
|
|
4543
5246
|
* UTXO ID for this output.
|
|
4544
5247
|
*/
|
|
4545
5248
|
utxoId: string;
|
|
5249
|
+
/**
|
|
5250
|
+
* The bytes of the UTXO
|
|
5251
|
+
*/
|
|
5252
|
+
utxoBytes?: string;
|
|
4546
5253
|
/**
|
|
4547
5254
|
* @deprecated
|
|
4548
5255
|
*/
|
|
@@ -4691,6 +5398,10 @@ type PChainTransaction = {
|
|
|
4691
5398
|
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4692
5399
|
*/
|
|
4693
5400
|
blsCredentials?: BlsCredentials;
|
|
5401
|
+
/**
|
|
5402
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5403
|
+
*/
|
|
5404
|
+
blockchainInfo?: BlockchainInfo;
|
|
4694
5405
|
};
|
|
4695
5406
|
|
|
4696
5407
|
type ListPChainTransactionsResponse = {
|
|
@@ -5061,6 +5772,18 @@ type ListUtxosResponse = {
|
|
|
5061
5772
|
chainInfo: PrimaryNetworkChainInfo;
|
|
5062
5773
|
};
|
|
5063
5774
|
|
|
5775
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5776
|
+
/**
|
|
5777
|
+
* Comma-separated list of primary network addresses
|
|
5778
|
+
*/
|
|
5779
|
+
addresses: string;
|
|
5780
|
+
};
|
|
5781
|
+
|
|
5782
|
+
declare enum UtxosSortByOption {
|
|
5783
|
+
TIMESTAMP = "timestamp",
|
|
5784
|
+
AMOUNT = "amount"
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5064
5787
|
declare class PrimaryNetworkUtxOsService {
|
|
5065
5788
|
readonly httpRequest: BaseHttpRequest;
|
|
5066
5789
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -5070,7 +5793,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5070
5793
|
* @returns any Successful response
|
|
5071
5794
|
* @throws ApiError
|
|
5072
5795
|
*/
|
|
5073
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5796
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5074
5797
|
/**
|
|
5075
5798
|
* A primary network blockchain id or alias.
|
|
5076
5799
|
*/
|
|
@@ -5095,10 +5818,63 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5095
5818
|
* Asset ID for any asset (only applicable X-Chain)
|
|
5096
5819
|
*/
|
|
5097
5820
|
assetId?: string;
|
|
5821
|
+
/**
|
|
5822
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5823
|
+
*/
|
|
5824
|
+
minUtxoAmount?: number;
|
|
5825
|
+
/**
|
|
5826
|
+
* Boolean filter to include spent UTXOs.
|
|
5827
|
+
*/
|
|
5828
|
+
includeSpent?: boolean;
|
|
5829
|
+
/**
|
|
5830
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5831
|
+
*/
|
|
5832
|
+
sortBy?: UtxosSortByOption;
|
|
5833
|
+
/**
|
|
5834
|
+
* 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.
|
|
5835
|
+
*/
|
|
5836
|
+
sortOrder?: SortOrder;
|
|
5837
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
5838
|
+
/**
|
|
5839
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
5840
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
5841
|
+
* @returns any Successful response
|
|
5842
|
+
* @throws ApiError
|
|
5843
|
+
*/
|
|
5844
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5845
|
+
/**
|
|
5846
|
+
* A primary network blockchain id or alias.
|
|
5847
|
+
*/
|
|
5848
|
+
blockchainId: BlockchainId;
|
|
5849
|
+
/**
|
|
5850
|
+
* Either mainnet or testnet/fuji.
|
|
5851
|
+
*/
|
|
5852
|
+
network: Network;
|
|
5853
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
5854
|
+
/**
|
|
5855
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
5856
|
+
*/
|
|
5857
|
+
pageToken?: string;
|
|
5858
|
+
/**
|
|
5859
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5860
|
+
*/
|
|
5861
|
+
pageSize?: number;
|
|
5862
|
+
/**
|
|
5863
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
5864
|
+
*/
|
|
5865
|
+
assetId?: string;
|
|
5866
|
+
/**
|
|
5867
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5868
|
+
*/
|
|
5869
|
+
minUtxoAmount?: number;
|
|
5098
5870
|
/**
|
|
5099
5871
|
* Boolean filter to include spent UTXOs.
|
|
5100
5872
|
*/
|
|
5101
5873
|
includeSpent?: boolean;
|
|
5874
|
+
/**
|
|
5875
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
5876
|
+
*/
|
|
5877
|
+
sortBy?: UtxosSortByOption;
|
|
5102
5878
|
/**
|
|
5103
5879
|
* 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.
|
|
5104
5880
|
*/
|
|
@@ -5212,10 +5988,30 @@ type SignatureAggregationResponse = {
|
|
|
5212
5988
|
};
|
|
5213
5989
|
|
|
5214
5990
|
type SignatureAggregatorRequest = {
|
|
5215
|
-
|
|
5991
|
+
/**
|
|
5992
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
5993
|
+
*/
|
|
5994
|
+
message?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
5997
|
+
*/
|
|
5216
5998
|
justification?: string;
|
|
5999
|
+
/**
|
|
6000
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6001
|
+
*/
|
|
5217
6002
|
signingSubnetId?: string;
|
|
6003
|
+
/**
|
|
6004
|
+
* 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.
|
|
6005
|
+
*/
|
|
5218
6006
|
quorumPercentage?: number;
|
|
6007
|
+
/**
|
|
6008
|
+
* 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.
|
|
6009
|
+
*/
|
|
6010
|
+
quorumPercentageBuffer?: number;
|
|
6011
|
+
/**
|
|
6012
|
+
* 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.
|
|
6013
|
+
*/
|
|
6014
|
+
pChainHeight?: number;
|
|
5219
6015
|
};
|
|
5220
6016
|
|
|
5221
6017
|
declare class SignatureAggregatorService {
|
|
@@ -5234,6 +6030,22 @@ declare class SignatureAggregatorService {
|
|
|
5234
6030
|
network: Network;
|
|
5235
6031
|
requestBody: SignatureAggregatorRequest;
|
|
5236
6032
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
6033
|
+
/**
|
|
6034
|
+
* Get Aggregated Signatures
|
|
6035
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
6036
|
+
* @returns SignatureAggregationResponse Successful response
|
|
6037
|
+
* @throws ApiError
|
|
6038
|
+
*/
|
|
6039
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
6040
|
+
/**
|
|
6041
|
+
* Either mainnet or testnet/fuji.
|
|
6042
|
+
*/
|
|
6043
|
+
network: Network;
|
|
6044
|
+
/**
|
|
6045
|
+
* A primary network (P or X chain) transaction hash.
|
|
6046
|
+
*/
|
|
6047
|
+
txHash: string;
|
|
6048
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5237
6049
|
}
|
|
5238
6050
|
|
|
5239
6051
|
type TeleporterDestinationTransaction = {
|
|
@@ -5367,15 +6179,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
5367
6179
|
* 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.
|
|
5368
6180
|
*/
|
|
5369
6181
|
nextPageToken?: string;
|
|
5370
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
6182
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
5371
6183
|
};
|
|
5372
6184
|
|
|
5373
6185
|
declare class TeleporterService {
|
|
5374
6186
|
readonly httpRequest: BaseHttpRequest;
|
|
5375
6187
|
constructor(httpRequest: BaseHttpRequest);
|
|
5376
6188
|
/**
|
|
5377
|
-
*
|
|
5378
|
-
* Gets a teleporter message by message ID.
|
|
6189
|
+
* @deprecated
|
|
6190
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
6191
|
+
*
|
|
6192
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5379
6193
|
* @returns any Successful response
|
|
5380
6194
|
* @throws ApiError
|
|
5381
6195
|
*/
|
|
@@ -5386,8 +6200,10 @@ declare class TeleporterService {
|
|
|
5386
6200
|
messageId: string;
|
|
5387
6201
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5388
6202
|
/**
|
|
5389
|
-
*
|
|
5390
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
6203
|
+
* @deprecated
|
|
6204
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
6205
|
+
*
|
|
6206
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5391
6207
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5392
6208
|
* @throws ApiError
|
|
5393
6209
|
*/
|
|
@@ -5426,8 +6242,10 @@ declare class TeleporterService {
|
|
|
5426
6242
|
network?: Network;
|
|
5427
6243
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5428
6244
|
/**
|
|
5429
|
-
*
|
|
5430
|
-
* Lists teleporter messages by address. Ordered by
|
|
6245
|
+
* @deprecated
|
|
6246
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
6247
|
+
*
|
|
6248
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5431
6249
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5432
6250
|
* @throws ApiError
|
|
5433
6251
|
*/
|
|
@@ -5460,68 +6278,212 @@ type AddressesChangeRequest = {
|
|
|
5460
6278
|
|
|
5461
6279
|
type AddressActivityMetadata = {
|
|
5462
6280
|
/**
|
|
5463
|
-
*
|
|
6281
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6282
|
+
*/
|
|
6283
|
+
eventSignatures?: Array<string>;
|
|
6284
|
+
/**
|
|
6285
|
+
* 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.
|
|
5464
6286
|
*/
|
|
5465
6287
|
addresses: Array<string>;
|
|
6288
|
+
};
|
|
6289
|
+
|
|
6290
|
+
type EVMAddressActivityRequest = {
|
|
6291
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
6292
|
+
url: string;
|
|
6293
|
+
name?: string;
|
|
6294
|
+
description?: string;
|
|
6295
|
+
chainId: string;
|
|
6296
|
+
metadata: AddressActivityMetadata;
|
|
5466
6297
|
/**
|
|
5467
|
-
*
|
|
6298
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5468
6299
|
*/
|
|
5469
|
-
|
|
6300
|
+
includeInternalTxs?: boolean;
|
|
6301
|
+
/**
|
|
6302
|
+
* Whether to include logs in the webhook payload.
|
|
6303
|
+
*/
|
|
6304
|
+
includeLogs?: boolean;
|
|
5470
6305
|
};
|
|
6306
|
+
declare namespace EVMAddressActivityRequest {
|
|
6307
|
+
enum eventType {
|
|
6308
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6309
|
+
}
|
|
6310
|
+
}
|
|
5471
6311
|
|
|
5472
|
-
declare enum
|
|
6312
|
+
declare enum AddressActivityEventType {
|
|
5473
6313
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5474
6314
|
}
|
|
5475
6315
|
|
|
5476
|
-
|
|
6316
|
+
declare enum WebhookStatusType {
|
|
6317
|
+
ACTIVE = "active",
|
|
6318
|
+
INACTIVE = "inactive"
|
|
6319
|
+
}
|
|
6320
|
+
|
|
6321
|
+
type EVMAddressActivityResponse = {
|
|
6322
|
+
id: string;
|
|
5477
6323
|
url: string;
|
|
5478
6324
|
chainId: string;
|
|
5479
|
-
|
|
6325
|
+
status: WebhookStatusType;
|
|
6326
|
+
createdAt: number;
|
|
6327
|
+
name: string;
|
|
6328
|
+
description: string;
|
|
6329
|
+
eventType: AddressActivityEventType;
|
|
5480
6330
|
metadata: AddressActivityMetadata;
|
|
5481
|
-
name?: string;
|
|
5482
|
-
description?: string;
|
|
5483
6331
|
/**
|
|
5484
|
-
* Whether to include traces in the webhook payload.
|
|
6332
|
+
* Whether to include traces in the webhook payload.
|
|
6333
|
+
*/
|
|
6334
|
+
includeInternalTxs?: boolean;
|
|
6335
|
+
/**
|
|
6336
|
+
* Whether to include logs in the webhook payload.
|
|
6337
|
+
*/
|
|
6338
|
+
includeLogs?: boolean;
|
|
6339
|
+
};
|
|
6340
|
+
|
|
6341
|
+
type ListWebhookAddressesResponse = {
|
|
6342
|
+
/**
|
|
6343
|
+
* 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.
|
|
6344
|
+
*/
|
|
6345
|
+
nextPageToken?: string;
|
|
6346
|
+
addresses: Array<string>;
|
|
6347
|
+
totalAddresses: number;
|
|
6348
|
+
};
|
|
6349
|
+
|
|
6350
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
6351
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6352
|
+
}
|
|
6353
|
+
|
|
6354
|
+
/**
|
|
6355
|
+
* The type of key to monitor for the address activity event type.
|
|
6356
|
+
*/
|
|
6357
|
+
declare enum PlatformAddressActivityKeyType {
|
|
6358
|
+
ADDRESSES = "addresses"
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* Array of address activity sub-event types
|
|
6363
|
+
*/
|
|
6364
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
6365
|
+
BALANCE_CHANGE = "balance_change",
|
|
6366
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
6367
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
6368
|
+
}
|
|
6369
|
+
|
|
6370
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
6371
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
6372
|
+
};
|
|
6373
|
+
|
|
6374
|
+
/**
|
|
6375
|
+
* Type of balance to monitor
|
|
6376
|
+
*/
|
|
6377
|
+
declare enum CommonBalanceType {
|
|
6378
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6379
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
6380
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
6381
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
6382
|
+
LOCKED_STAKED = "lockedStaked",
|
|
6383
|
+
PENDING_STAKED = "pendingStaked",
|
|
6384
|
+
UNLOCKED = "unlocked",
|
|
6385
|
+
LOCKED = "locked",
|
|
6386
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
6387
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
6388
|
+
}
|
|
6389
|
+
|
|
6390
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
6391
|
+
balanceType: CommonBalanceType;
|
|
6392
|
+
/**
|
|
6393
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
6394
|
+
*/
|
|
6395
|
+
balanceThreshold: string;
|
|
6396
|
+
};
|
|
6397
|
+
|
|
6398
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6399
|
+
/**
|
|
6400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6401
|
+
*/
|
|
6402
|
+
eventSignatures?: Array<string>;
|
|
6403
|
+
keyType: PlatformAddressActivityKeyType;
|
|
6404
|
+
/**
|
|
6405
|
+
* 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.
|
|
6406
|
+
*/
|
|
6407
|
+
keys: Array<string>;
|
|
6408
|
+
/**
|
|
6409
|
+
* Sub-events to monitor
|
|
6410
|
+
*/
|
|
6411
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6412
|
+
/**
|
|
6413
|
+
* Balance threshold filter
|
|
6414
|
+
*/
|
|
6415
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6416
|
+
};
|
|
6417
|
+
|
|
6418
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
6419
|
+
id: string;
|
|
6420
|
+
url: string;
|
|
6421
|
+
chainId: string;
|
|
6422
|
+
status: WebhookStatusType;
|
|
6423
|
+
createdAt: number;
|
|
6424
|
+
name: string;
|
|
6425
|
+
description: string;
|
|
6426
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6427
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6428
|
+
};
|
|
6429
|
+
|
|
6430
|
+
declare enum ValidatorActivityEventType {
|
|
6431
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
/**
|
|
6435
|
+
* The type of key to monitor for the validator activity event type.
|
|
6436
|
+
*/
|
|
6437
|
+
declare enum ValidatorActivityKeyType {
|
|
6438
|
+
NODE_ID = "nodeId",
|
|
6439
|
+
SUBNET_ID = "subnetId"
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
type ValidatorActivitySubEvents = {
|
|
6443
|
+
/**
|
|
6444
|
+
* Array of validator activity sub-event types
|
|
6445
|
+
*/
|
|
6446
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6447
|
+
};
|
|
6448
|
+
|
|
6449
|
+
type ValidatorActivityMetadata = {
|
|
6450
|
+
/**
|
|
6451
|
+
* Array of hexadecimal strings of the event signatures.
|
|
6452
|
+
*/
|
|
6453
|
+
eventSignatures?: Array<string>;
|
|
6454
|
+
keyType: ValidatorActivityKeyType;
|
|
6455
|
+
/**
|
|
6456
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
5485
6457
|
*/
|
|
5486
|
-
|
|
6458
|
+
keys: Array<string>;
|
|
5487
6459
|
/**
|
|
5488
|
-
*
|
|
6460
|
+
* Sub-events to monitor
|
|
5489
6461
|
*/
|
|
5490
|
-
|
|
5491
|
-
};
|
|
5492
|
-
|
|
5493
|
-
type ListWebhookAddressesResponse = {
|
|
6462
|
+
subEvents: ValidatorActivitySubEvents;
|
|
5494
6463
|
/**
|
|
5495
|
-
*
|
|
6464
|
+
* Array of node IDs to filter the events
|
|
5496
6465
|
*/
|
|
5497
|
-
|
|
5498
|
-
addresses: Array<string>;
|
|
5499
|
-
totalAddresses: number;
|
|
5500
|
-
};
|
|
5501
|
-
|
|
5502
|
-
declare enum WebhookStatusType {
|
|
5503
|
-
ACTIVE = "active",
|
|
5504
|
-
INACTIVE = "inactive"
|
|
5505
|
-
}
|
|
5506
|
-
|
|
5507
|
-
type WebhookResponse = {
|
|
5508
|
-
id: string;
|
|
5509
|
-
eventType: EventType;
|
|
5510
|
-
metadata: AddressActivityMetadata;
|
|
6466
|
+
nodeIds?: Array<string>;
|
|
5511
6467
|
/**
|
|
5512
|
-
*
|
|
6468
|
+
* Array of subnet IDs to filter the events
|
|
5513
6469
|
*/
|
|
5514
|
-
|
|
6470
|
+
subnetIds?: Array<string>;
|
|
5515
6471
|
/**
|
|
5516
|
-
*
|
|
6472
|
+
* L1 validator fee balance threshold in nAVAX
|
|
5517
6473
|
*/
|
|
5518
|
-
|
|
6474
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6475
|
+
};
|
|
6476
|
+
|
|
6477
|
+
type ValidatorActivityResponse = {
|
|
6478
|
+
id: string;
|
|
5519
6479
|
url: string;
|
|
5520
6480
|
chainId: string;
|
|
5521
6481
|
status: WebhookStatusType;
|
|
5522
6482
|
createdAt: number;
|
|
5523
6483
|
name: string;
|
|
5524
6484
|
description: string;
|
|
6485
|
+
eventType: ValidatorActivityEventType;
|
|
6486
|
+
metadata: ValidatorActivityMetadata;
|
|
5525
6487
|
};
|
|
5526
6488
|
|
|
5527
6489
|
type ListWebhooksResponse = {
|
|
@@ -5529,8 +6491,31 @@ type ListWebhooksResponse = {
|
|
|
5529
6491
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
5530
6492
|
*/
|
|
5531
6493
|
nextPageToken?: string;
|
|
5532
|
-
webhooks: Array<
|
|
6494
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6495
|
+
};
|
|
6496
|
+
|
|
6497
|
+
declare enum PrimaryNetworkType {
|
|
6498
|
+
MAINNET = "mainnet",
|
|
6499
|
+
FUJI = "fuji"
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6503
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6504
|
+
url: string;
|
|
6505
|
+
name?: string;
|
|
6506
|
+
description?: string;
|
|
6507
|
+
network: PrimaryNetworkType;
|
|
6508
|
+
chainId: string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Metadata for platform address activity event
|
|
6511
|
+
*/
|
|
6512
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5533
6513
|
};
|
|
6514
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6515
|
+
enum eventType {
|
|
6516
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6517
|
+
}
|
|
6518
|
+
}
|
|
5534
6519
|
|
|
5535
6520
|
type SharedSecretsResponse = {
|
|
5536
6521
|
secret: string;
|
|
@@ -5548,6 +6533,23 @@ type UpdateWebhookRequest = {
|
|
|
5548
6533
|
includeLogs?: boolean;
|
|
5549
6534
|
};
|
|
5550
6535
|
|
|
6536
|
+
type ValidatorActivityRequest = {
|
|
6537
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6538
|
+
url: string;
|
|
6539
|
+
name?: string;
|
|
6540
|
+
description?: string;
|
|
6541
|
+
network: PrimaryNetworkType;
|
|
6542
|
+
/**
|
|
6543
|
+
* Metadata for platform validator activity event
|
|
6544
|
+
*/
|
|
6545
|
+
metadata: ValidatorActivityMetadata;
|
|
6546
|
+
};
|
|
6547
|
+
declare namespace ValidatorActivityRequest {
|
|
6548
|
+
enum eventType {
|
|
6549
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6550
|
+
}
|
|
6551
|
+
}
|
|
6552
|
+
|
|
5551
6553
|
declare enum WebhookStatus {
|
|
5552
6554
|
ACTIVE = "active",
|
|
5553
6555
|
INACTIVE = "inactive"
|
|
@@ -5559,12 +6561,12 @@ declare class WebhooksService {
|
|
|
5559
6561
|
/**
|
|
5560
6562
|
* Create a webhook
|
|
5561
6563
|
* Create a new webhook.
|
|
5562
|
-
* @returns
|
|
6564
|
+
* @returns any Successful response
|
|
5563
6565
|
* @throws ApiError
|
|
5564
6566
|
*/
|
|
5565
6567
|
createWebhook({ requestBody, }: {
|
|
5566
|
-
requestBody:
|
|
5567
|
-
}): CancelablePromise<
|
|
6568
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6569
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5568
6570
|
/**
|
|
5569
6571
|
* List webhooks
|
|
5570
6572
|
* Lists webhooks for the user.
|
|
@@ -5588,7 +6590,7 @@ declare class WebhooksService {
|
|
|
5588
6590
|
/**
|
|
5589
6591
|
* Get a webhook by ID
|
|
5590
6592
|
* Retrieves a webhook by ID.
|
|
5591
|
-
* @returns
|
|
6593
|
+
* @returns any Successful response
|
|
5592
6594
|
* @throws ApiError
|
|
5593
6595
|
*/
|
|
5594
6596
|
getWebhook({ id, }: {
|
|
@@ -5596,11 +6598,11 @@ declare class WebhooksService {
|
|
|
5596
6598
|
* The webhook identifier.
|
|
5597
6599
|
*/
|
|
5598
6600
|
id: string;
|
|
5599
|
-
}): CancelablePromise<
|
|
6601
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5600
6602
|
/**
|
|
5601
6603
|
* Deactivate a webhook
|
|
5602
6604
|
* Deactivates a webhook by ID.
|
|
5603
|
-
* @returns
|
|
6605
|
+
* @returns any Successful response
|
|
5604
6606
|
* @throws ApiError
|
|
5605
6607
|
*/
|
|
5606
6608
|
deactivateWebhook({ id, }: {
|
|
@@ -5608,11 +6610,11 @@ declare class WebhooksService {
|
|
|
5608
6610
|
* The webhook identifier.
|
|
5609
6611
|
*/
|
|
5610
6612
|
id: string;
|
|
5611
|
-
}): CancelablePromise<
|
|
6613
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5612
6614
|
/**
|
|
5613
6615
|
* Update a webhook
|
|
5614
6616
|
* Updates an existing webhook.
|
|
5615
|
-
* @returns
|
|
6617
|
+
* @returns any Successful response
|
|
5616
6618
|
* @throws ApiError
|
|
5617
6619
|
*/
|
|
5618
6620
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5621,14 +6623,14 @@ declare class WebhooksService {
|
|
|
5621
6623
|
*/
|
|
5622
6624
|
id: string;
|
|
5623
6625
|
requestBody: UpdateWebhookRequest;
|
|
5624
|
-
}): CancelablePromise<
|
|
6626
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5625
6627
|
/**
|
|
5626
|
-
* Generate a shared secret
|
|
5627
|
-
* Generates a new shared secret.
|
|
6628
|
+
* Generate or rotate a shared secret
|
|
6629
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5628
6630
|
* @returns SharedSecretsResponse Successful response
|
|
5629
6631
|
* @throws ApiError
|
|
5630
6632
|
*/
|
|
5631
|
-
|
|
6633
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5632
6634
|
/**
|
|
5633
6635
|
* Get a shared secret
|
|
5634
6636
|
* Get a previously generated shared secret.
|
|
@@ -5637,9 +6639,9 @@ declare class WebhooksService {
|
|
|
5637
6639
|
*/
|
|
5638
6640
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5639
6641
|
/**
|
|
5640
|
-
* Add addresses to webhook
|
|
5641
|
-
* Add addresses to webhook.
|
|
5642
|
-
* @returns
|
|
6642
|
+
* Add addresses to EVM activity webhook
|
|
6643
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6644
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5643
6645
|
* @throws ApiError
|
|
5644
6646
|
*/
|
|
5645
6647
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5648,11 +6650,11 @@ declare class WebhooksService {
|
|
|
5648
6650
|
*/
|
|
5649
6651
|
id: string;
|
|
5650
6652
|
requestBody: AddressesChangeRequest;
|
|
5651
|
-
}): CancelablePromise<
|
|
6653
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5652
6654
|
/**
|
|
5653
|
-
* Remove addresses from webhook
|
|
5654
|
-
* Remove addresses from webhook.
|
|
5655
|
-
* @returns
|
|
6655
|
+
* Remove addresses from EVM activity webhook
|
|
6656
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6657
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5656
6658
|
* @throws ApiError
|
|
5657
6659
|
*/
|
|
5658
6660
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5661,10 +6663,10 @@ declare class WebhooksService {
|
|
|
5661
6663
|
*/
|
|
5662
6664
|
id: string;
|
|
5663
6665
|
requestBody: AddressesChangeRequest;
|
|
5664
|
-
}): CancelablePromise<
|
|
6666
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5665
6667
|
/**
|
|
5666
|
-
* List adresses by
|
|
5667
|
-
* List adresses by webhook.
|
|
6668
|
+
* List adresses by EVM activity webhooks
|
|
6669
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5668
6670
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5669
6671
|
* @throws ApiError
|
|
5670
6672
|
*/
|
|
@@ -5686,6 +6688,7 @@ declare class WebhooksService {
|
|
|
5686
6688
|
|
|
5687
6689
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
5688
6690
|
declare class Glacier {
|
|
6691
|
+
readonly avaxSupply: AvaxSupplyService;
|
|
5689
6692
|
readonly dataApiUsageMetrics: DataApiUsageMetricsService;
|
|
5690
6693
|
readonly default: DefaultService;
|
|
5691
6694
|
readonly evmBalances: EvmBalancesService;
|
|
@@ -5694,6 +6697,7 @@ declare class Glacier {
|
|
|
5694
6697
|
readonly evmContracts: EvmContractsService;
|
|
5695
6698
|
readonly evmTransactions: EvmTransactionsService;
|
|
5696
6699
|
readonly healthCheck: HealthCheckService;
|
|
6700
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5697
6701
|
readonly nfTs: NfTsService;
|
|
5698
6702
|
readonly notifications: NotificationsService;
|
|
5699
6703
|
readonly operations: OperationsService;
|
|
@@ -5728,6 +6732,17 @@ declare class ApiError extends Error {
|
|
|
5728
6732
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5729
6733
|
}
|
|
5730
6734
|
|
|
6735
|
+
type AccessListData = {
|
|
6736
|
+
/**
|
|
6737
|
+
* Access Address
|
|
6738
|
+
*/
|
|
6739
|
+
accessAddresses: string;
|
|
6740
|
+
/**
|
|
6741
|
+
* Storage keys
|
|
6742
|
+
*/
|
|
6743
|
+
storageKeys: Array<string>;
|
|
6744
|
+
};
|
|
6745
|
+
|
|
5731
6746
|
type BadGateway = {
|
|
5732
6747
|
/**
|
|
5733
6748
|
* The error message describing the reason for the exception
|
|
@@ -5762,6 +6777,76 @@ type DataListChainsResponse = {
|
|
|
5762
6777
|
chains: Array<ChainInfo>;
|
|
5763
6778
|
};
|
|
5764
6779
|
|
|
6780
|
+
type ERCToken = {
|
|
6781
|
+
/**
|
|
6782
|
+
* Token contract address
|
|
6783
|
+
*/
|
|
6784
|
+
address: string;
|
|
6785
|
+
/**
|
|
6786
|
+
* Token name
|
|
6787
|
+
*/
|
|
6788
|
+
name: string;
|
|
6789
|
+
/**
|
|
6790
|
+
* Token symbol
|
|
6791
|
+
*/
|
|
6792
|
+
symbol: string;
|
|
6793
|
+
/**
|
|
6794
|
+
* Token decimals
|
|
6795
|
+
*/
|
|
6796
|
+
decimals: number;
|
|
6797
|
+
/**
|
|
6798
|
+
* Value including decimals
|
|
6799
|
+
*/
|
|
6800
|
+
valueWithDecimals: string;
|
|
6801
|
+
};
|
|
6802
|
+
|
|
6803
|
+
type ERCTransfer = {
|
|
6804
|
+
/**
|
|
6805
|
+
* Transaction hash
|
|
6806
|
+
*/
|
|
6807
|
+
transactionHash: string;
|
|
6808
|
+
/**
|
|
6809
|
+
* Transfer type
|
|
6810
|
+
*/
|
|
6811
|
+
type: string;
|
|
6812
|
+
/**
|
|
6813
|
+
* Sender address
|
|
6814
|
+
*/
|
|
6815
|
+
from: string;
|
|
6816
|
+
/**
|
|
6817
|
+
* Recipient address
|
|
6818
|
+
*/
|
|
6819
|
+
to: string;
|
|
6820
|
+
/**
|
|
6821
|
+
* Amount transferred
|
|
6822
|
+
*/
|
|
6823
|
+
value: string;
|
|
6824
|
+
/**
|
|
6825
|
+
* Token Id
|
|
6826
|
+
*/
|
|
6827
|
+
tokenId?: string;
|
|
6828
|
+
/**
|
|
6829
|
+
* Block timestamp
|
|
6830
|
+
*/
|
|
6831
|
+
blockTimestamp: number;
|
|
6832
|
+
/**
|
|
6833
|
+
* Log index
|
|
6834
|
+
*/
|
|
6835
|
+
logIndex: number;
|
|
6836
|
+
/**
|
|
6837
|
+
* erc20 Token details
|
|
6838
|
+
*/
|
|
6839
|
+
erc20Token?: ERCToken;
|
|
6840
|
+
/**
|
|
6841
|
+
* erc721 Token details
|
|
6842
|
+
*/
|
|
6843
|
+
erc721Token?: ERCToken;
|
|
6844
|
+
/**
|
|
6845
|
+
* erc1155 Token details
|
|
6846
|
+
*/
|
|
6847
|
+
erc1155Token?: ERCToken;
|
|
6848
|
+
};
|
|
6849
|
+
|
|
5765
6850
|
type Forbidden = {
|
|
5766
6851
|
/**
|
|
5767
6852
|
* The error message describing the reason for the exception
|
|
@@ -5792,6 +6877,64 @@ type InternalServerError = {
|
|
|
5792
6877
|
error: string;
|
|
5793
6878
|
};
|
|
5794
6879
|
|
|
6880
|
+
type Log = {
|
|
6881
|
+
/**
|
|
6882
|
+
* Contract address
|
|
6883
|
+
*/
|
|
6884
|
+
address: string;
|
|
6885
|
+
/**
|
|
6886
|
+
* First topic
|
|
6887
|
+
*/
|
|
6888
|
+
topic0: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* Second topic (optional)
|
|
6891
|
+
*/
|
|
6892
|
+
topic1?: string;
|
|
6893
|
+
/**
|
|
6894
|
+
* Third topic (optional)
|
|
6895
|
+
*/
|
|
6896
|
+
topic2?: string;
|
|
6897
|
+
/**
|
|
6898
|
+
* Fourth topic (optional)
|
|
6899
|
+
*/
|
|
6900
|
+
topic3?: string;
|
|
6901
|
+
/**
|
|
6902
|
+
* Event data
|
|
6903
|
+
*/
|
|
6904
|
+
data: string;
|
|
6905
|
+
/**
|
|
6906
|
+
* Transaction index
|
|
6907
|
+
*/
|
|
6908
|
+
transactionIndex: number;
|
|
6909
|
+
/**
|
|
6910
|
+
* Log index
|
|
6911
|
+
*/
|
|
6912
|
+
logIndex: number;
|
|
6913
|
+
/**
|
|
6914
|
+
* Indicates if the log was removed
|
|
6915
|
+
*/
|
|
6916
|
+
removed: boolean;
|
|
6917
|
+
};
|
|
6918
|
+
|
|
6919
|
+
type NetworkTokenInfo = {
|
|
6920
|
+
/**
|
|
6921
|
+
* Token name
|
|
6922
|
+
*/
|
|
6923
|
+
tokenName?: string;
|
|
6924
|
+
/**
|
|
6925
|
+
* Token symbol
|
|
6926
|
+
*/
|
|
6927
|
+
tokenSymbol?: string;
|
|
6928
|
+
/**
|
|
6929
|
+
* Token decimals
|
|
6930
|
+
*/
|
|
6931
|
+
tokenDecimals?: number;
|
|
6932
|
+
/**
|
|
6933
|
+
* Value including decimals
|
|
6934
|
+
*/
|
|
6935
|
+
valueWithDecimals?: string;
|
|
6936
|
+
};
|
|
6937
|
+
|
|
5795
6938
|
type NextPageToken = {
|
|
5796
6939
|
/**
|
|
5797
6940
|
* 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.
|
|
@@ -5844,6 +6987,163 @@ type TooManyRequests = {
|
|
|
5844
6987
|
error: string;
|
|
5845
6988
|
};
|
|
5846
6989
|
|
|
6990
|
+
type WebhookInternalTransaction = {
|
|
6991
|
+
/**
|
|
6992
|
+
* Sender address
|
|
6993
|
+
*/
|
|
6994
|
+
from: string;
|
|
6995
|
+
/**
|
|
6996
|
+
* Recipient address
|
|
6997
|
+
*/
|
|
6998
|
+
to: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* Internal transaction type
|
|
7001
|
+
*/
|
|
7002
|
+
internalTxType: string;
|
|
7003
|
+
/**
|
|
7004
|
+
* Value transferred
|
|
7005
|
+
*/
|
|
7006
|
+
value: string;
|
|
7007
|
+
/**
|
|
7008
|
+
* Gas used
|
|
7009
|
+
*/
|
|
7010
|
+
gasUsed: string;
|
|
7011
|
+
/**
|
|
7012
|
+
* Gas limit
|
|
7013
|
+
*/
|
|
7014
|
+
gasLimit: string;
|
|
7015
|
+
/**
|
|
7016
|
+
* Transaction hash
|
|
7017
|
+
*/
|
|
7018
|
+
transactionHash: string;
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
type Transaction = {
|
|
7022
|
+
/**
|
|
7023
|
+
* Block hash of the transaction
|
|
7024
|
+
*/
|
|
7025
|
+
blockHash: string;
|
|
7026
|
+
/**
|
|
7027
|
+
* Block number of the transaction
|
|
7028
|
+
*/
|
|
7029
|
+
blockNumber: string;
|
|
7030
|
+
/**
|
|
7031
|
+
* Sender address
|
|
7032
|
+
*/
|
|
7033
|
+
from: string;
|
|
7034
|
+
/**
|
|
7035
|
+
* Gas limit for the transaction
|
|
7036
|
+
*/
|
|
7037
|
+
gas: string;
|
|
7038
|
+
/**
|
|
7039
|
+
* Gas price used
|
|
7040
|
+
*/
|
|
7041
|
+
gasPrice: string;
|
|
7042
|
+
/**
|
|
7043
|
+
* Maximum fee per gas
|
|
7044
|
+
*/
|
|
7045
|
+
maxFeePerGas: string;
|
|
7046
|
+
/**
|
|
7047
|
+
* Maximum priority fee per gas
|
|
7048
|
+
*/
|
|
7049
|
+
maxPriorityFeePerGas: string;
|
|
7050
|
+
/**
|
|
7051
|
+
* Transaction hash
|
|
7052
|
+
*/
|
|
7053
|
+
txHash: string;
|
|
7054
|
+
/**
|
|
7055
|
+
* Transaction status
|
|
7056
|
+
*/
|
|
7057
|
+
txStatus: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* Input data
|
|
7060
|
+
*/
|
|
7061
|
+
input: string;
|
|
7062
|
+
/**
|
|
7063
|
+
* Nonce value
|
|
7064
|
+
*/
|
|
7065
|
+
nonce: string;
|
|
7066
|
+
/**
|
|
7067
|
+
* Recipient address
|
|
7068
|
+
*/
|
|
7069
|
+
to: string;
|
|
7070
|
+
/**
|
|
7071
|
+
* Transaction index
|
|
7072
|
+
*/
|
|
7073
|
+
transactionIndex: number;
|
|
7074
|
+
/**
|
|
7075
|
+
* Value transferred in the transaction
|
|
7076
|
+
*/
|
|
7077
|
+
value: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Transaction type
|
|
7080
|
+
*/
|
|
7081
|
+
type: number;
|
|
7082
|
+
/**
|
|
7083
|
+
* Chain ID of the network
|
|
7084
|
+
*/
|
|
7085
|
+
chainId: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Cumulative gas used
|
|
7088
|
+
*/
|
|
7089
|
+
receiptCumulativeGasUsed: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Gas used
|
|
7092
|
+
*/
|
|
7093
|
+
receiptGasUsed: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Effective gas price
|
|
7096
|
+
*/
|
|
7097
|
+
receiptEffectiveGasPrice: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Receipt root
|
|
7100
|
+
*/
|
|
7101
|
+
receiptRoot: string;
|
|
7102
|
+
/**
|
|
7103
|
+
* Block timestamp
|
|
7104
|
+
*/
|
|
7105
|
+
blockTimestamp: number;
|
|
7106
|
+
/**
|
|
7107
|
+
* Contract address (optional)
|
|
7108
|
+
*/
|
|
7109
|
+
contractAddress?: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* ERC20 transfers
|
|
7112
|
+
*/
|
|
7113
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
7114
|
+
/**
|
|
7115
|
+
* ERC721 transfers
|
|
7116
|
+
*/
|
|
7117
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
7118
|
+
/**
|
|
7119
|
+
* ERC1155 transfers
|
|
7120
|
+
*/
|
|
7121
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
7122
|
+
/**
|
|
7123
|
+
* Internal transactions (optional)
|
|
7124
|
+
*/
|
|
7125
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
7126
|
+
/**
|
|
7127
|
+
* Access list (optional)
|
|
7128
|
+
*/
|
|
7129
|
+
accessList?: Array<AccessListData>;
|
|
7130
|
+
/**
|
|
7131
|
+
* Network token info (optional)
|
|
7132
|
+
*/
|
|
7133
|
+
networkToken?: NetworkTokenInfo;
|
|
7134
|
+
};
|
|
7135
|
+
|
|
7136
|
+
type TransactionEvent = {
|
|
7137
|
+
/**
|
|
7138
|
+
* Transaction details
|
|
7139
|
+
*/
|
|
7140
|
+
transaction: Transaction;
|
|
7141
|
+
/**
|
|
7142
|
+
* Array of log events
|
|
7143
|
+
*/
|
|
7144
|
+
logs?: Array<Log>;
|
|
7145
|
+
};
|
|
7146
|
+
|
|
5847
7147
|
type Unauthorized = {
|
|
5848
7148
|
/**
|
|
5849
7149
|
* The error message describing the reason for the exception
|
|
@@ -5859,4 +7159,43 @@ type Unauthorized = {
|
|
|
5859
7159
|
error: string;
|
|
5860
7160
|
};
|
|
5861
7161
|
|
|
5862
|
-
|
|
7162
|
+
type WebhookAddressActivityResponse = {
|
|
7163
|
+
/**
|
|
7164
|
+
* Webhook ID
|
|
7165
|
+
*/
|
|
7166
|
+
webhookId: string;
|
|
7167
|
+
/**
|
|
7168
|
+
* Event type
|
|
7169
|
+
*/
|
|
7170
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
7171
|
+
/**
|
|
7172
|
+
* Message ID
|
|
7173
|
+
*/
|
|
7174
|
+
messageId: string;
|
|
7175
|
+
/**
|
|
7176
|
+
* Event details
|
|
7177
|
+
*/
|
|
7178
|
+
event: TransactionEvent;
|
|
7179
|
+
};
|
|
7180
|
+
declare namespace WebhookAddressActivityResponse {
|
|
7181
|
+
/**
|
|
7182
|
+
* Event type
|
|
7183
|
+
*/
|
|
7184
|
+
enum eventType {
|
|
7185
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
7190
|
+
constructor(config: OpenAPIConfig);
|
|
7191
|
+
/**
|
|
7192
|
+
* Request method
|
|
7193
|
+
* @param options The request options from the service
|
|
7194
|
+
* @returns CancelablePromise<T>
|
|
7195
|
+
* @throws ApiError
|
|
7196
|
+
*/
|
|
7197
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
7198
|
+
}
|
|
7199
|
+
|
|
7200
|
+
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 };
|
|
7201
|
+
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 };
|