@avalabs/glacier-sdk 3.1.0-canary.401b32b.0 → 3.1.0-canary.42010c4.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 +1778 -392
- 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 +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/BadGateway.d.ts +1 -1
- package/esm/generated/models/BadRequest.d.ts +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +1 -1
- package/esm/generated/models/Blockchain.d.ts +9 -1
- package/esm/generated/models/BlockchainId.d.ts +0 -2
- package/esm/generated/models/BlockchainId.js +1 -1
- package/esm/generated/models/BlockchainIds.d.ts +1 -3
- package/esm/generated/models/BlockchainIds.js +1 -1
- package/esm/generated/models/BlockchainInfo.d.ts +7 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +1 -1
- package/esm/generated/models/DataListChainsResponse.d.ts +1 -1
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +5 -1
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +1 -1
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +5 -1
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +5 -1
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -3
- package/esm/generated/models/GetTransactionResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +1 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +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 +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +1 -1
- package/esm/generated/models/LogsFormatMetadata.d.ts +1 -1
- package/esm/generated/models/LogsResponseDTO.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +1 -1
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +5 -1
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +1 -1
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +31 -14
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +28 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +1 -1
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -3
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +1 -1
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/ServiceUnavailable.d.ts +1 -1
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +2 -8
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/Subnet.d.ts +7 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +3 -3
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TooManyRequests.d.ts +1 -1
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +1 -1
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +1 -1
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +1 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainId.d.ts +0 -1
- package/esm/generated/models/XChainId.js +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +30 -13
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +28 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +58 -7
- package/esm/index.js +1 -1
- package/package.json +13 -4
- package/dist/index.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +0 -14
- package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
- package/esm/generated/models/SovDetailsFull.d.ts +0 -33
package/dist/index.d.ts
CHANGED
|
@@ -148,6 +148,28 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet"
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
158
|
+
RPC_METHOD = "rpcMethod",
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
167
|
+
HOURLY = "hourly",
|
|
168
|
+
DAILY = "daily",
|
|
169
|
+
WEEKLY = "weekly",
|
|
170
|
+
MONTHLY = "monthly"
|
|
171
|
+
}
|
|
172
|
+
|
|
151
173
|
type RpcUsageMetricsValueAggregated = {
|
|
152
174
|
/**
|
|
153
175
|
* The total number of requests
|
|
@@ -173,6 +195,10 @@ type RpcUsageMetricsValueAggregated = {
|
|
|
173
195
|
* The number of invalid requests
|
|
174
196
|
*/
|
|
175
197
|
invalidRequests: number;
|
|
198
|
+
/**
|
|
199
|
+
* The number of API credits wasted on invalid requests
|
|
200
|
+
*/
|
|
201
|
+
apiCreditsWasted: number;
|
|
176
202
|
/**
|
|
177
203
|
* Column name used for data aggregation
|
|
178
204
|
*/
|
|
@@ -190,6 +216,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
190
216
|
RPC_METHOD = "rpcMethod",
|
|
191
217
|
RESPONSE_CODE = "responseCode",
|
|
192
218
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
219
|
+
REQUEST_PATH = "requestPath",
|
|
220
|
+
COUNTRY = "country",
|
|
221
|
+
CONTINENT = "continent",
|
|
222
|
+
USER_AGENT = "userAgent",
|
|
193
223
|
NONE = "None"
|
|
194
224
|
}
|
|
195
225
|
}
|
|
@@ -205,19 +235,56 @@ type RpcMetrics = {
|
|
|
205
235
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
206
236
|
};
|
|
207
237
|
|
|
208
|
-
type
|
|
238
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
209
239
|
/**
|
|
210
240
|
* Duration in which the metrics value is aggregated
|
|
211
241
|
*/
|
|
212
242
|
aggregateDuration: string;
|
|
213
243
|
/**
|
|
214
|
-
*
|
|
244
|
+
* Metrics values
|
|
215
245
|
*/
|
|
216
|
-
|
|
246
|
+
metrics: Array<RpcMetrics>;
|
|
247
|
+
/**
|
|
248
|
+
* Network type for which the metrics are aggregated
|
|
249
|
+
*/
|
|
250
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
251
|
+
};
|
|
252
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
253
|
+
/**
|
|
254
|
+
* Network type for which the metrics are aggregated
|
|
255
|
+
*/
|
|
256
|
+
enum network {
|
|
257
|
+
MAINNET = "mainnet",
|
|
258
|
+
TESTNET = "testnet"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
263
|
+
RPC_METHOD = "rpcMethod",
|
|
264
|
+
RESPONSE_CODE = "responseCode",
|
|
265
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
269
|
+
HOURLY = "hourly",
|
|
270
|
+
DAILY = "daily",
|
|
271
|
+
WEEKLY = "weekly",
|
|
272
|
+
MONTHLY = "monthly"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
276
|
+
/**
|
|
277
|
+
* Duration in which the metrics value is aggregated
|
|
278
|
+
*/
|
|
279
|
+
aggregateDuration: string;
|
|
217
280
|
/**
|
|
218
281
|
* Metrics values
|
|
219
282
|
*/
|
|
220
283
|
metrics: Array<RpcMetrics>;
|
|
284
|
+
/**
|
|
285
|
+
* ChainId for which the metrics are aggregated
|
|
286
|
+
*/
|
|
287
|
+
chainId: string;
|
|
221
288
|
};
|
|
222
289
|
|
|
223
290
|
declare enum TimeIntervalGranularityExtended {
|
|
@@ -323,7 +390,7 @@ declare class DataApiUsageMetricsService {
|
|
|
323
390
|
* @returns UsageMetricsResponseDTO Successful response
|
|
324
391
|
* @throws ApiError
|
|
325
392
|
*/
|
|
326
|
-
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId,
|
|
393
|
+
getApiUsageMetrics({ orgId, startTimestamp, endTimestamp, timeInterval, groupBy, chainId, responseCode, requestType, apiKeyId, requestPath, }: {
|
|
327
394
|
/**
|
|
328
395
|
* Organization ID to fetch usage metrics for
|
|
329
396
|
*/
|
|
@@ -348,10 +415,6 @@ declare class DataApiUsageMetricsService {
|
|
|
348
415
|
* Filter data by chain ID.
|
|
349
416
|
*/
|
|
350
417
|
chainId?: string;
|
|
351
|
-
/**
|
|
352
|
-
* Filter data by request path.
|
|
353
|
-
*/
|
|
354
|
-
requestPath?: string;
|
|
355
418
|
/**
|
|
356
419
|
* Filter data by response status code.
|
|
357
420
|
*/
|
|
@@ -364,6 +427,10 @@ declare class DataApiUsageMetricsService {
|
|
|
364
427
|
* Filter data by API key ID.
|
|
365
428
|
*/
|
|
366
429
|
apiKeyId?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Filter data by request path.
|
|
432
|
+
*/
|
|
433
|
+
requestPath?: string;
|
|
367
434
|
}): CancelablePromise<UsageMetricsResponseDTO>;
|
|
368
435
|
/**
|
|
369
436
|
* Get logs for requests made by client
|
|
@@ -371,7 +438,7 @@ declare class DataApiUsageMetricsService {
|
|
|
371
438
|
* @returns LogsResponseDTO Successful response
|
|
372
439
|
* @throws ApiError
|
|
373
440
|
*/
|
|
374
|
-
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId,
|
|
441
|
+
getApiLogs({ orgId, startTimestamp, endTimestamp, chainId, responseCode, requestType, apiKeyId, requestPath, pageToken, pageSize, }: {
|
|
375
442
|
/**
|
|
376
443
|
* Organization ID to fetch usage metrics for
|
|
377
444
|
*/
|
|
@@ -388,10 +455,6 @@ declare class DataApiUsageMetricsService {
|
|
|
388
455
|
* Filter data by chain ID.
|
|
389
456
|
*/
|
|
390
457
|
chainId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* Filter data by request path.
|
|
393
|
-
*/
|
|
394
|
-
requestPath?: string;
|
|
395
458
|
/**
|
|
396
459
|
* Filter data by response status code.
|
|
397
460
|
*/
|
|
@@ -404,6 +467,10 @@ declare class DataApiUsageMetricsService {
|
|
|
404
467
|
* Filter data by API key ID.
|
|
405
468
|
*/
|
|
406
469
|
apiKeyId?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Filter data by request path.
|
|
472
|
+
*/
|
|
473
|
+
requestPath?: string;
|
|
407
474
|
/**
|
|
408
475
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
409
476
|
*/
|
|
@@ -415,15 +482,16 @@ declare class DataApiUsageMetricsService {
|
|
|
415
482
|
}): CancelablePromise<LogsResponseDTO>;
|
|
416
483
|
/**
|
|
417
484
|
* Get usage metrics for the Subnet RPC
|
|
418
|
-
* Gets metrics for Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
419
|
-
* @returns
|
|
485
|
+
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
486
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
420
487
|
* @throws ApiError
|
|
421
488
|
*/
|
|
422
|
-
|
|
489
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
423
490
|
/**
|
|
424
|
-
*
|
|
491
|
+
* Time interval granularity for data aggregation for subnet
|
|
492
|
+
* rpc metrics
|
|
425
493
|
*/
|
|
426
|
-
timeInterval?:
|
|
494
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
427
495
|
/**
|
|
428
496
|
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
429
497
|
*/
|
|
@@ -435,15 +503,54 @@ declare class DataApiUsageMetricsService {
|
|
|
435
503
|
/**
|
|
436
504
|
* Query param for the criterion used for grouping metrics
|
|
437
505
|
*/
|
|
438
|
-
groupBy?:
|
|
506
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
439
507
|
/**
|
|
440
508
|
* Filter data by chain ID.
|
|
441
509
|
*/
|
|
442
510
|
chainId?: string;
|
|
443
511
|
/**
|
|
444
|
-
* Filter data by
|
|
512
|
+
* Filter data by response status code.
|
|
445
513
|
*/
|
|
446
|
-
|
|
514
|
+
responseCode?: string;
|
|
515
|
+
/**
|
|
516
|
+
* Filter data by RPC method.
|
|
517
|
+
*/
|
|
518
|
+
rpcMethod?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Filter data by Rl Bypass API Token.
|
|
521
|
+
*/
|
|
522
|
+
rlBypassApiToken?: string;
|
|
523
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
524
|
+
/**
|
|
525
|
+
* @deprecated
|
|
526
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
527
|
+
*
|
|
528
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
529
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
530
|
+
* @throws ApiError
|
|
531
|
+
*/
|
|
532
|
+
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
533
|
+
/**
|
|
534
|
+
* Time interval granularity for data aggregation for subnet
|
|
535
|
+
* rpc metrics
|
|
536
|
+
*/
|
|
537
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
538
|
+
/**
|
|
539
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
540
|
+
*/
|
|
541
|
+
startTimestamp?: number;
|
|
542
|
+
/**
|
|
543
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
544
|
+
*/
|
|
545
|
+
endTimestamp?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Query param for the criterion used for grouping metrics
|
|
548
|
+
*/
|
|
549
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
550
|
+
/**
|
|
551
|
+
* Filter data by chain ID.
|
|
552
|
+
*/
|
|
553
|
+
chainId?: string;
|
|
447
554
|
/**
|
|
448
555
|
* Filter data by response status code.
|
|
449
556
|
*/
|
|
@@ -456,7 +563,60 @@ declare class DataApiUsageMetricsService {
|
|
|
456
563
|
* Filter data by Rl Bypass API Token.
|
|
457
564
|
*/
|
|
458
565
|
rlBypassApiToken?: string;
|
|
459
|
-
}): CancelablePromise<
|
|
566
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
567
|
+
/**
|
|
568
|
+
* Get usage metrics for the Primary Network RPC
|
|
569
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
570
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
571
|
+
* @throws ApiError
|
|
572
|
+
*/
|
|
573
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
574
|
+
/**
|
|
575
|
+
* Either mainnet or testnet/fuji.
|
|
576
|
+
*/
|
|
577
|
+
network: Network;
|
|
578
|
+
/**
|
|
579
|
+
* Time interval granularity for data aggregation for subnet
|
|
580
|
+
* rpc metrics
|
|
581
|
+
*/
|
|
582
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
583
|
+
/**
|
|
584
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
585
|
+
*/
|
|
586
|
+
startTimestamp?: number;
|
|
587
|
+
/**
|
|
588
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
589
|
+
*/
|
|
590
|
+
endTimestamp?: number;
|
|
591
|
+
/**
|
|
592
|
+
* Query param for the criterion used for grouping metrics
|
|
593
|
+
*/
|
|
594
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
595
|
+
/**
|
|
596
|
+
* Filter data by response status code.
|
|
597
|
+
*/
|
|
598
|
+
responseCode?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Filter data by request path.
|
|
601
|
+
*/
|
|
602
|
+
requestPath?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
605
|
+
*/
|
|
606
|
+
country?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
609
|
+
*/
|
|
610
|
+
continent?: string;
|
|
611
|
+
/**
|
|
612
|
+
* Filter data by User Agent.
|
|
613
|
+
*/
|
|
614
|
+
userAgent?: string;
|
|
615
|
+
/**
|
|
616
|
+
* Filter data by RPC method.
|
|
617
|
+
*/
|
|
618
|
+
rpcMethod?: string;
|
|
619
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
460
620
|
}
|
|
461
621
|
|
|
462
622
|
declare class DefaultService {
|
|
@@ -655,6 +815,10 @@ type ListErc1155BalancesResponse = {
|
|
|
655
815
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
656
816
|
*/
|
|
657
817
|
nextPageToken?: string;
|
|
818
|
+
/**
|
|
819
|
+
* The native token balance for the address.
|
|
820
|
+
*/
|
|
821
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
658
822
|
/**
|
|
659
823
|
* The list of ERC-1155 token balances for the address.
|
|
660
824
|
*/
|
|
@@ -699,11 +863,22 @@ type Erc20TokenBalance = {
|
|
|
699
863
|
* The monetary value of the balance, if a price is available for the token.
|
|
700
864
|
*/
|
|
701
865
|
balanceValue?: Money;
|
|
866
|
+
/**
|
|
867
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
868
|
+
*/
|
|
869
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
702
870
|
};
|
|
703
871
|
declare namespace Erc20TokenBalance {
|
|
704
872
|
enum ercType {
|
|
705
873
|
ERC_20 = "ERC-20"
|
|
706
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
877
|
+
*/
|
|
878
|
+
enum tokenReputation {
|
|
879
|
+
MALICIOUS = "Malicious",
|
|
880
|
+
BENIGN = "Benign"
|
|
881
|
+
}
|
|
707
882
|
}
|
|
708
883
|
|
|
709
884
|
type ListErc20BalancesResponse = {
|
|
@@ -711,6 +886,10 @@ type ListErc20BalancesResponse = {
|
|
|
711
886
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
712
887
|
*/
|
|
713
888
|
nextPageToken?: string;
|
|
889
|
+
/**
|
|
890
|
+
* The native token balance for the address.
|
|
891
|
+
*/
|
|
892
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
714
893
|
/**
|
|
715
894
|
* The list of ERC-20 token balances for the address.
|
|
716
895
|
*/
|
|
@@ -722,6 +901,10 @@ type ListErc721BalancesResponse = {
|
|
|
722
901
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
723
902
|
*/
|
|
724
903
|
nextPageToken?: string;
|
|
904
|
+
/**
|
|
905
|
+
* The native token balance for the address.
|
|
906
|
+
*/
|
|
907
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
725
908
|
/**
|
|
726
909
|
* The list of ERC-721 token balances for the address.
|
|
727
910
|
*/
|
|
@@ -785,7 +968,7 @@ declare class EvmBalancesService {
|
|
|
785
968
|
*/
|
|
786
969
|
pageToken?: string;
|
|
787
970
|
/**
|
|
788
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
971
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
789
972
|
*/
|
|
790
973
|
pageSize?: number;
|
|
791
974
|
/**
|
|
@@ -823,7 +1006,7 @@ declare class EvmBalancesService {
|
|
|
823
1006
|
*/
|
|
824
1007
|
pageToken?: string;
|
|
825
1008
|
/**
|
|
826
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1009
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
827
1010
|
*/
|
|
828
1011
|
pageSize?: number;
|
|
829
1012
|
/**
|
|
@@ -859,7 +1042,7 @@ declare class EvmBalancesService {
|
|
|
859
1042
|
*/
|
|
860
1043
|
pageToken?: string;
|
|
861
1044
|
/**
|
|
862
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1045
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
863
1046
|
*/
|
|
864
1047
|
pageSize?: number;
|
|
865
1048
|
/**
|
|
@@ -889,7 +1072,7 @@ declare class EvmBalancesService {
|
|
|
889
1072
|
*/
|
|
890
1073
|
pageToken?: string;
|
|
891
1074
|
/**
|
|
892
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
1075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 500.
|
|
893
1076
|
*/
|
|
894
1077
|
pageSize?: number;
|
|
895
1078
|
/**
|
|
@@ -900,6 +1083,10 @@ declare class EvmBalancesService {
|
|
|
900
1083
|
}
|
|
901
1084
|
|
|
902
1085
|
type GetEvmBlockResponse = {
|
|
1086
|
+
/**
|
|
1087
|
+
* The EVM chain ID on which the block was created.
|
|
1088
|
+
*/
|
|
1089
|
+
chainId: string;
|
|
903
1090
|
/**
|
|
904
1091
|
* The block number on the chain.
|
|
905
1092
|
*/
|
|
@@ -944,6 +1131,10 @@ type GetEvmBlockResponse = {
|
|
|
944
1131
|
};
|
|
945
1132
|
|
|
946
1133
|
type EvmBlock = {
|
|
1134
|
+
/**
|
|
1135
|
+
* The EVM chain ID on which the block was created.
|
|
1136
|
+
*/
|
|
1137
|
+
chainId: string;
|
|
947
1138
|
/**
|
|
948
1139
|
* The block number on the chain.
|
|
949
1140
|
*/
|
|
@@ -998,6 +1189,26 @@ type ListEvmBlocksResponse = {
|
|
|
998
1189
|
declare class EvmBlocksService {
|
|
999
1190
|
readonly httpRequest: BaseHttpRequest;
|
|
1000
1191
|
constructor(httpRequest: BaseHttpRequest);
|
|
1192
|
+
/**
|
|
1193
|
+
* List latest blocks across all supported EVM chains
|
|
1194
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1195
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1196
|
+
* @throws ApiError
|
|
1197
|
+
*/
|
|
1198
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1199
|
+
/**
|
|
1200
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1201
|
+
*/
|
|
1202
|
+
pageToken?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1205
|
+
*/
|
|
1206
|
+
pageSize?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* Either mainnet or testnet/fuji.
|
|
1209
|
+
*/
|
|
1210
|
+
network?: Network;
|
|
1211
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1001
1212
|
/**
|
|
1002
1213
|
* List latest blocks
|
|
1003
1214
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1129,64 +1340,231 @@ type ListChainsResponse = {
|
|
|
1129
1340
|
chains: Array<ChainInfo>;
|
|
1130
1341
|
};
|
|
1131
1342
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1343
|
+
/**
|
|
1344
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1345
|
+
*/
|
|
1346
|
+
declare enum TransactionMethodType {
|
|
1347
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1348
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1349
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1137
1350
|
}
|
|
1138
1351
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
1352
|
+
type Method = {
|
|
1353
|
+
callType: TransactionMethodType;
|
|
1142
1354
|
/**
|
|
1143
|
-
*
|
|
1144
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1145
|
-
* @returns ListChainsResponse Successful response
|
|
1146
|
-
* @throws ApiError
|
|
1355
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1147
1356
|
*/
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Either mainnet or testnet/fuji.
|
|
1151
|
-
*/
|
|
1152
|
-
network?: Network;
|
|
1153
|
-
/**
|
|
1154
|
-
* Filter by feature.
|
|
1155
|
-
*/
|
|
1156
|
-
feature?: ApiFeature;
|
|
1157
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
1357
|
+
methodHash: string;
|
|
1158
1358
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
1161
|
-
* @returns GetChainResponse Successful response
|
|
1162
|
-
* @throws ApiError
|
|
1359
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1163
1360
|
*/
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
chainId: string;
|
|
1169
|
-
}): CancelablePromise<GetChainResponse>;
|
|
1361
|
+
methodName?: string;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
type RichAddress = {
|
|
1170
1365
|
/**
|
|
1171
|
-
*
|
|
1172
|
-
* Gets the list of chains an address has interacted with.
|
|
1173
|
-
* @returns ListAddressChainsResponse Successful response
|
|
1174
|
-
* @throws ApiError
|
|
1366
|
+
* The contract name.
|
|
1175
1367
|
*/
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* A wallet address.
|
|
1179
|
-
*/
|
|
1180
|
-
address: string;
|
|
1181
|
-
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
type ImageAsset = {
|
|
1185
|
-
assetId?: string;
|
|
1368
|
+
name?: string;
|
|
1186
1369
|
/**
|
|
1187
|
-
*
|
|
1370
|
+
* The contract symbol.
|
|
1188
1371
|
*/
|
|
1189
|
-
|
|
1372
|
+
symbol?: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1375
|
+
*/
|
|
1376
|
+
decimals?: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* The logo uri for the address.
|
|
1379
|
+
*/
|
|
1380
|
+
logoUri?: string;
|
|
1381
|
+
/**
|
|
1382
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1383
|
+
*/
|
|
1384
|
+
address: string;
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
type NativeTransaction = {
|
|
1388
|
+
/**
|
|
1389
|
+
* The block number on the chain.
|
|
1390
|
+
*/
|
|
1391
|
+
blockNumber: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* The block finality timestamp.
|
|
1394
|
+
*/
|
|
1395
|
+
blockTimestamp: number;
|
|
1396
|
+
/**
|
|
1397
|
+
* The block hash identifier.
|
|
1398
|
+
*/
|
|
1399
|
+
blockHash: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* The EVM chain ID on which the transaction occured.
|
|
1402
|
+
*/
|
|
1403
|
+
chainId: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1406
|
+
*/
|
|
1407
|
+
blockIndex: number;
|
|
1408
|
+
/**
|
|
1409
|
+
* The transaction hash identifier.
|
|
1410
|
+
*/
|
|
1411
|
+
txHash: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1414
|
+
*/
|
|
1415
|
+
txStatus: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* The transaction type.
|
|
1418
|
+
*/
|
|
1419
|
+
txType: number;
|
|
1420
|
+
/**
|
|
1421
|
+
* The gas limit set for the transaction.
|
|
1422
|
+
*/
|
|
1423
|
+
gasLimit: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* The amount of gas used.
|
|
1426
|
+
*/
|
|
1427
|
+
gasUsed: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1430
|
+
*/
|
|
1431
|
+
gasPrice: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The nonce used by the sender of the transaction.
|
|
1434
|
+
*/
|
|
1435
|
+
nonce: string;
|
|
1436
|
+
from: RichAddress;
|
|
1437
|
+
to: RichAddress;
|
|
1438
|
+
method?: Method;
|
|
1439
|
+
value: string;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
type ListNativeTransactionsResponse = {
|
|
1443
|
+
/**
|
|
1444
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1445
|
+
*/
|
|
1446
|
+
nextPageToken?: string;
|
|
1447
|
+
transactions: Array<NativeTransaction>;
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
declare enum TransactionStatus {
|
|
1451
|
+
FAILED = "failed",
|
|
1452
|
+
SUCCESS = "success"
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare class EvmChainsService {
|
|
1456
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1457
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1458
|
+
/**
|
|
1459
|
+
* List all chains associated with a given address
|
|
1460
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1461
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
listAddressChains({ address, }: {
|
|
1465
|
+
/**
|
|
1466
|
+
* A wallet address.
|
|
1467
|
+
*/
|
|
1468
|
+
address: string;
|
|
1469
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1470
|
+
/**
|
|
1471
|
+
* List chains
|
|
1472
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1473
|
+
* @returns ListChainsResponse Successful response
|
|
1474
|
+
* @throws ApiError
|
|
1475
|
+
*/
|
|
1476
|
+
supportedChains({ network, feature, }: {
|
|
1477
|
+
/**
|
|
1478
|
+
* Either mainnet or testnet/fuji.
|
|
1479
|
+
*/
|
|
1480
|
+
network?: Network;
|
|
1481
|
+
/**
|
|
1482
|
+
* Filter by feature.
|
|
1483
|
+
*/
|
|
1484
|
+
feature?: ApiFeature;
|
|
1485
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Get chain information
|
|
1488
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1489
|
+
* @returns GetChainResponse Successful response
|
|
1490
|
+
* @throws ApiError
|
|
1491
|
+
*/
|
|
1492
|
+
getChainInfo({ chainId, }: {
|
|
1493
|
+
/**
|
|
1494
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1495
|
+
*/
|
|
1496
|
+
chainId: string;
|
|
1497
|
+
}): CancelablePromise<GetChainResponse>;
|
|
1498
|
+
/**
|
|
1499
|
+
* @deprecated
|
|
1500
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1501
|
+
*
|
|
1502
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1503
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1504
|
+
* @throws ApiError
|
|
1505
|
+
*/
|
|
1506
|
+
getAddressChains({ address, }: {
|
|
1507
|
+
/**
|
|
1508
|
+
* A wallet address.
|
|
1509
|
+
*/
|
|
1510
|
+
address: string;
|
|
1511
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1512
|
+
/**
|
|
1513
|
+
* @deprecated
|
|
1514
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1515
|
+
*
|
|
1516
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1517
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
1518
|
+
* @throws ApiError
|
|
1519
|
+
*/
|
|
1520
|
+
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
1521
|
+
/**
|
|
1522
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1523
|
+
*/
|
|
1524
|
+
pageToken?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1527
|
+
*/
|
|
1528
|
+
pageSize?: number;
|
|
1529
|
+
/**
|
|
1530
|
+
* Either mainnet or testnet/fuji.
|
|
1531
|
+
*/
|
|
1532
|
+
network?: Network;
|
|
1533
|
+
/**
|
|
1534
|
+
* A status filter for listed transactions.
|
|
1535
|
+
*/
|
|
1536
|
+
status?: TransactionStatus;
|
|
1537
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1538
|
+
/**
|
|
1539
|
+
* @deprecated
|
|
1540
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1541
|
+
*
|
|
1542
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1543
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1544
|
+
* @throws ApiError
|
|
1545
|
+
*/
|
|
1546
|
+
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
1547
|
+
/**
|
|
1548
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1549
|
+
*/
|
|
1550
|
+
pageToken?: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1553
|
+
*/
|
|
1554
|
+
pageSize?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Either mainnet or testnet/fuji.
|
|
1557
|
+
*/
|
|
1558
|
+
network?: Network;
|
|
1559
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
type ImageAsset = {
|
|
1563
|
+
assetId?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* OUTPUT ONLY
|
|
1566
|
+
*/
|
|
1567
|
+
imageUri?: string;
|
|
1190
1568
|
};
|
|
1191
1569
|
|
|
1192
1570
|
type PricingProviders = {
|
|
@@ -1350,7 +1728,7 @@ type Erc1155Contract = {
|
|
|
1350
1728
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1351
1729
|
*/
|
|
1352
1730
|
address: string;
|
|
1353
|
-
deploymentDetails
|
|
1731
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1354
1732
|
ercType: Erc1155Contract.ercType;
|
|
1355
1733
|
/**
|
|
1356
1734
|
* The contract symbol.
|
|
@@ -1381,7 +1759,7 @@ type Erc20Contract = {
|
|
|
1381
1759
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1382
1760
|
*/
|
|
1383
1761
|
address: string;
|
|
1384
|
-
deploymentDetails
|
|
1762
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1385
1763
|
ercType: Erc20Contract.ercType;
|
|
1386
1764
|
/**
|
|
1387
1765
|
* The contract symbol.
|
|
@@ -1416,7 +1794,7 @@ type Erc721Contract = {
|
|
|
1416
1794
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1417
1795
|
*/
|
|
1418
1796
|
address: string;
|
|
1419
|
-
deploymentDetails
|
|
1797
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1420
1798
|
ercType: Erc721Contract.ercType;
|
|
1421
1799
|
/**
|
|
1422
1800
|
* The contract symbol.
|
|
@@ -1446,7 +1824,7 @@ type UnknownContract = {
|
|
|
1446
1824
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
1447
1825
|
*/
|
|
1448
1826
|
address: string;
|
|
1449
|
-
deploymentDetails
|
|
1827
|
+
deploymentDetails?: ContractDeploymentDetails;
|
|
1450
1828
|
ercType: UnknownContract.ercType;
|
|
1451
1829
|
};
|
|
1452
1830
|
declare namespace UnknownContract {
|
|
@@ -1513,29 +1891,6 @@ declare namespace Erc1155Token {
|
|
|
1513
1891
|
}
|
|
1514
1892
|
}
|
|
1515
1893
|
|
|
1516
|
-
type RichAddress = {
|
|
1517
|
-
/**
|
|
1518
|
-
* The contract name.
|
|
1519
|
-
*/
|
|
1520
|
-
name?: string;
|
|
1521
|
-
/**
|
|
1522
|
-
* The contract symbol.
|
|
1523
|
-
*/
|
|
1524
|
-
symbol?: string;
|
|
1525
|
-
/**
|
|
1526
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1527
|
-
*/
|
|
1528
|
-
decimals?: number;
|
|
1529
|
-
/**
|
|
1530
|
-
* The logo uri for the address.
|
|
1531
|
-
*/
|
|
1532
|
-
logoUri?: string;
|
|
1533
|
-
/**
|
|
1534
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1535
|
-
*/
|
|
1536
|
-
address: string;
|
|
1537
|
-
};
|
|
1538
|
-
|
|
1539
1894
|
type Erc1155TransferDetails = {
|
|
1540
1895
|
from: RichAddress;
|
|
1541
1896
|
to: RichAddress;
|
|
@@ -1620,27 +1975,6 @@ type Erc721TransferDetails = {
|
|
|
1620
1975
|
erc721Token: Erc721Token;
|
|
1621
1976
|
};
|
|
1622
1977
|
|
|
1623
|
-
/**
|
|
1624
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1625
|
-
*/
|
|
1626
|
-
declare enum TransactionMethodType {
|
|
1627
|
-
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1628
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1629
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
type Method = {
|
|
1633
|
-
callType: TransactionMethodType;
|
|
1634
|
-
/**
|
|
1635
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1636
|
-
*/
|
|
1637
|
-
methodHash: string;
|
|
1638
|
-
/**
|
|
1639
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1640
|
-
*/
|
|
1641
|
-
methodName?: string;
|
|
1642
|
-
};
|
|
1643
|
-
|
|
1644
1978
|
type FullNativeTransactionDetails = {
|
|
1645
1979
|
/**
|
|
1646
1980
|
* The block number on the chain.
|
|
@@ -1654,6 +1988,10 @@ type FullNativeTransactionDetails = {
|
|
|
1654
1988
|
* The block hash identifier.
|
|
1655
1989
|
*/
|
|
1656
1990
|
blockHash: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* The EVM chain ID on which the transaction occured.
|
|
1993
|
+
*/
|
|
1994
|
+
chainId: string;
|
|
1657
1995
|
/**
|
|
1658
1996
|
* The index at which the transaction occured in the block (0-indexed).
|
|
1659
1997
|
*/
|
|
@@ -1704,6 +2042,7 @@ declare enum InternalTransactionOpCall {
|
|
|
1704
2042
|
CALL = "CALL",
|
|
1705
2043
|
CREATE = "CREATE",
|
|
1706
2044
|
CREATE2 = "CREATE2",
|
|
2045
|
+
CREATE3 = "CREATE3",
|
|
1707
2046
|
CALLCODE = "CALLCODE",
|
|
1708
2047
|
DELEGATECALL = "DELEGATECALL",
|
|
1709
2048
|
STATICCALL = "STATICCALL"
|
|
@@ -1745,11 +2084,11 @@ type TeleporterMessageInfo = {
|
|
|
1745
2084
|
/**
|
|
1746
2085
|
* chain id of the source chain. valid only for destination transactions
|
|
1747
2086
|
*/
|
|
1748
|
-
sourceChainId?:
|
|
2087
|
+
sourceChainId?: string;
|
|
1749
2088
|
/**
|
|
1750
2089
|
* chain id of the destination chain. valid only for source transactions
|
|
1751
2090
|
*/
|
|
1752
|
-
destinationChainId?:
|
|
2091
|
+
destinationChainId?: string;
|
|
1753
2092
|
};
|
|
1754
2093
|
|
|
1755
2094
|
type GetTransactionResponse = {
|
|
@@ -1766,7 +2105,7 @@ type GetTransactionResponse = {
|
|
|
1766
2105
|
*/
|
|
1767
2106
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1768
2107
|
/**
|
|
1769
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2
|
|
2108
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1770
2109
|
*/
|
|
1771
2110
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1772
2111
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -1917,99 +2256,40 @@ type ListInternalTransactionsResponse = {
|
|
|
1917
2256
|
transactions: Array<InternalTransaction>;
|
|
1918
2257
|
};
|
|
1919
2258
|
|
|
1920
|
-
type
|
|
1921
|
-
/**
|
|
1922
|
-
* The block number on the chain.
|
|
1923
|
-
*/
|
|
1924
|
-
blockNumber: string;
|
|
2259
|
+
type TransactionDetails = {
|
|
1925
2260
|
/**
|
|
1926
|
-
* The
|
|
2261
|
+
* The native (top-level) transaction details.
|
|
1927
2262
|
*/
|
|
1928
|
-
|
|
2263
|
+
nativeTransaction: NativeTransaction;
|
|
1929
2264
|
/**
|
|
1930
|
-
* The
|
|
2265
|
+
* The list of ERC-20 transfers.
|
|
1931
2266
|
*/
|
|
1932
|
-
|
|
2267
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1933
2268
|
/**
|
|
1934
|
-
* The
|
|
2269
|
+
* The list of ERC-721 transfers.
|
|
1935
2270
|
*/
|
|
1936
|
-
|
|
2271
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1937
2272
|
/**
|
|
1938
|
-
* The
|
|
2273
|
+
* The list of ERC-1155 transfers.
|
|
1939
2274
|
*/
|
|
1940
|
-
|
|
2275
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1941
2276
|
/**
|
|
1942
|
-
* The
|
|
2277
|
+
* 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.
|
|
1943
2278
|
*/
|
|
1944
|
-
|
|
2279
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
type ListTransactionDetailsResponse = {
|
|
1945
2283
|
/**
|
|
1946
|
-
*
|
|
2284
|
+
* 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.
|
|
1947
2285
|
*/
|
|
1948
|
-
|
|
2286
|
+
nextPageToken?: string;
|
|
2287
|
+
transactions: Array<TransactionDetails>;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
type ListTransfersResponse = {
|
|
1949
2291
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
*/
|
|
1952
|
-
gasLimit: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* The amount of gas used.
|
|
1955
|
-
*/
|
|
1956
|
-
gasUsed: string;
|
|
1957
|
-
/**
|
|
1958
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
1959
|
-
*/
|
|
1960
|
-
gasPrice: string;
|
|
1961
|
-
/**
|
|
1962
|
-
* The nonce used by the sender of the transaction.
|
|
1963
|
-
*/
|
|
1964
|
-
nonce: string;
|
|
1965
|
-
from: RichAddress;
|
|
1966
|
-
to: RichAddress;
|
|
1967
|
-
method?: Method;
|
|
1968
|
-
value: string;
|
|
1969
|
-
};
|
|
1970
|
-
|
|
1971
|
-
type ListNativeTransactionsResponse = {
|
|
1972
|
-
/**
|
|
1973
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1974
|
-
*/
|
|
1975
|
-
nextPageToken?: string;
|
|
1976
|
-
transactions: Array<NativeTransaction>;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
type TransactionDetails = {
|
|
1980
|
-
/**
|
|
1981
|
-
* The native (top-level) transaction details.
|
|
1982
|
-
*/
|
|
1983
|
-
nativeTransaction: NativeTransaction;
|
|
1984
|
-
/**
|
|
1985
|
-
* The list of ERC-20 transfers.
|
|
1986
|
-
*/
|
|
1987
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1988
|
-
/**
|
|
1989
|
-
* The list of ERC-721 transfers.
|
|
1990
|
-
*/
|
|
1991
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1992
|
-
/**
|
|
1993
|
-
* The list of ERC-1155 transfers.
|
|
1994
|
-
*/
|
|
1995
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1996
|
-
/**
|
|
1997
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1998
|
-
*/
|
|
1999
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2000
|
-
};
|
|
2001
|
-
|
|
2002
|
-
type ListTransactionDetailsResponse = {
|
|
2003
|
-
/**
|
|
2004
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2005
|
-
*/
|
|
2006
|
-
nextPageToken?: string;
|
|
2007
|
-
transactions: Array<TransactionDetails>;
|
|
2008
|
-
};
|
|
2009
|
-
|
|
2010
|
-
type ListTransfersResponse = {
|
|
2011
|
-
/**
|
|
2012
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2292
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2013
2293
|
*/
|
|
2014
2294
|
nextPageToken?: string;
|
|
2015
2295
|
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
@@ -2020,14 +2300,33 @@ declare enum SortOrder {
|
|
|
2020
2300
|
DESC = "desc"
|
|
2021
2301
|
}
|
|
2022
2302
|
|
|
2023
|
-
declare enum TransactionStatus {
|
|
2024
|
-
FAILED = "failed",
|
|
2025
|
-
SUCCESS = "success"
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2303
|
declare class EvmTransactionsService {
|
|
2029
2304
|
readonly httpRequest: BaseHttpRequest;
|
|
2030
2305
|
constructor(httpRequest: BaseHttpRequest);
|
|
2306
|
+
/**
|
|
2307
|
+
* List the latest transactions across all supported EVM chains
|
|
2308
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2309
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2310
|
+
* @throws ApiError
|
|
2311
|
+
*/
|
|
2312
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2313
|
+
/**
|
|
2314
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2315
|
+
*/
|
|
2316
|
+
pageToken?: string;
|
|
2317
|
+
/**
|
|
2318
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2319
|
+
*/
|
|
2320
|
+
pageSize?: number;
|
|
2321
|
+
/**
|
|
2322
|
+
* Either mainnet or testnet/fuji.
|
|
2323
|
+
*/
|
|
2324
|
+
network?: Network;
|
|
2325
|
+
/**
|
|
2326
|
+
* A status filter for listed transactions.
|
|
2327
|
+
*/
|
|
2328
|
+
status?: TransactionStatus;
|
|
2329
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2031
2330
|
/**
|
|
2032
2331
|
* Get deployment transaction
|
|
2033
2332
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2274,7 +2573,7 @@ declare class EvmTransactionsService {
|
|
|
2274
2573
|
* List internal transactions
|
|
2275
2574
|
* Returns a list of internal transactions for an address and chain. Filterable by block range.
|
|
2276
2575
|
*
|
|
2277
|
-
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2576
|
+
* Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2`/`CREATE3` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
|
|
2278
2577
|
* @returns ListInternalTransactionsResponse Successful response
|
|
2279
2578
|
* @throws ApiError
|
|
2280
2579
|
*/
|
|
@@ -2326,7 +2625,7 @@ declare class EvmTransactionsService {
|
|
|
2326
2625
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2327
2626
|
* @throws ApiError
|
|
2328
2627
|
*/
|
|
2329
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
2628
|
+
getTransactionsForBlock({ chainId, blockId, pageToken, pageSize, }: {
|
|
2330
2629
|
/**
|
|
2331
2630
|
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2332
2631
|
*/
|
|
@@ -2335,6 +2634,14 @@ declare class EvmTransactionsService {
|
|
|
2335
2634
|
* A block identifier which is either a block number or the block hash.
|
|
2336
2635
|
*/
|
|
2337
2636
|
blockId: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2639
|
+
*/
|
|
2640
|
+
pageToken?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* The maximum number of items to return. The minimum page size is 0. The maximum pageSize is 100.
|
|
2643
|
+
*/
|
|
2644
|
+
pageSize?: number;
|
|
2338
2645
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2339
2646
|
/**
|
|
2340
2647
|
* List latest transactions
|
|
@@ -2362,66 +2669,246 @@ declare class EvmTransactionsService {
|
|
|
2362
2669
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2363
2670
|
}
|
|
2364
2671
|
|
|
2672
|
+
type HealthIndicatorResultDto = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Status of the health indicator.
|
|
2675
|
+
*/
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
2679
|
+
/**
|
|
2680
|
+
* Status of the health indicator.
|
|
2681
|
+
*/
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2365
2702
|
declare class HealthCheckService {
|
|
2366
2703
|
readonly httpRequest: BaseHttpRequest;
|
|
2367
2704
|
constructor(httpRequest: BaseHttpRequest);
|
|
2368
2705
|
/**
|
|
2369
2706
|
* Get the health of the service
|
|
2370
|
-
*
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2371
2709
|
* @throws ApiError
|
|
2372
2710
|
*/
|
|
2373
|
-
dataHealthCheck(): CancelablePromise<
|
|
2374
|
-
status?: string;
|
|
2375
|
-
info?: Record<string, Record<string, string>> | null;
|
|
2376
|
-
error?: Record<string, Record<string, string>> | null;
|
|
2377
|
-
details?: Record<string, Record<string, string>>;
|
|
2378
|
-
}>;
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2379
2712
|
}
|
|
2380
2713
|
|
|
2381
|
-
type
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
2728
|
+
/**
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2730
|
+
*/
|
|
2731
|
+
address: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* The contract name.
|
|
2734
|
+
*/
|
|
2735
|
+
name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* The contract symbol.
|
|
2738
|
+
*/
|
|
2739
|
+
symbol: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2742
|
+
*/
|
|
2743
|
+
decimals: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The logo uri for the address.
|
|
2746
|
+
*/
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2749
|
+
/**
|
|
2750
|
+
* The token price, if available.
|
|
2751
|
+
*/
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2382
2841
|
/**
|
|
2383
2842
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2384
2843
|
*/
|
|
2385
2844
|
nextPageToken?: string;
|
|
2386
|
-
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2387
2846
|
};
|
|
2388
2847
|
|
|
2389
|
-
declare class
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2390
2849
|
readonly httpRequest: BaseHttpRequest;
|
|
2391
2850
|
constructor(httpRequest: BaseHttpRequest);
|
|
2392
2851
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by teleporter message ID.
|
|
2395
2854
|
* @returns any Successful response
|
|
2396
2855
|
* @throws ApiError
|
|
2397
2856
|
*/
|
|
2398
|
-
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2399
2858
|
/**
|
|
2400
|
-
*
|
|
2859
|
+
* The teleporter message ID of the ICM message.
|
|
2401
2860
|
*/
|
|
2402
|
-
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2403
2870
|
/**
|
|
2404
|
-
*
|
|
2871
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2405
2872
|
*/
|
|
2406
|
-
|
|
2873
|
+
pageToken?: string;
|
|
2407
2874
|
/**
|
|
2408
|
-
*
|
|
2875
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2409
2876
|
*/
|
|
2410
|
-
|
|
2411
|
-
|
|
2877
|
+
pageSize?: number;
|
|
2878
|
+
/**
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2880
|
+
*/
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2884
|
+
*/
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2888
|
+
*/
|
|
2889
|
+
blockchainId?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2892
|
+
*/
|
|
2893
|
+
to?: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2896
|
+
*/
|
|
2897
|
+
from?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2900
|
+
*/
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2412
2903
|
/**
|
|
2413
|
-
* List
|
|
2414
|
-
* Lists
|
|
2415
|
-
* @returns
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2416
2907
|
* @throws ApiError
|
|
2417
2908
|
*/
|
|
2418
|
-
|
|
2419
|
-
/**
|
|
2420
|
-
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2421
|
-
*/
|
|
2422
|
-
chainId: string;
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2423
2910
|
/**
|
|
2424
|
-
*
|
|
2911
|
+
* An EVM address.
|
|
2425
2912
|
*/
|
|
2426
2913
|
address: string;
|
|
2427
2914
|
/**
|
|
@@ -2432,7 +2919,68 @@ declare class NfTsService {
|
|
|
2432
2919
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2433
2920
|
*/
|
|
2434
2921
|
pageSize?: number;
|
|
2435
|
-
|
|
2922
|
+
/**
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2924
|
+
*/
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
type ListNftTokens = {
|
|
2930
|
+
/**
|
|
2931
|
+
* 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.
|
|
2932
|
+
*/
|
|
2933
|
+
nextPageToken?: string;
|
|
2934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2937
|
+
declare class NfTsService {
|
|
2938
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2939
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2940
|
+
/**
|
|
2941
|
+
* Reindex NFT metadata
|
|
2942
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2943
|
+
* @returns any Successful response
|
|
2944
|
+
* @throws ApiError
|
|
2945
|
+
*/
|
|
2946
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2947
|
+
/**
|
|
2948
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2949
|
+
*/
|
|
2950
|
+
chainId: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Contract address on the relevant chain.
|
|
2953
|
+
*/
|
|
2954
|
+
address: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* TokenId on the contract
|
|
2957
|
+
*/
|
|
2958
|
+
tokenId: string;
|
|
2959
|
+
}): CancelablePromise<any>;
|
|
2960
|
+
/**
|
|
2961
|
+
* List tokens
|
|
2962
|
+
* Lists tokens for an NFT contract.
|
|
2963
|
+
* @returns ListNftTokens Successful response
|
|
2964
|
+
* @throws ApiError
|
|
2965
|
+
*/
|
|
2966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2967
|
+
/**
|
|
2968
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2969
|
+
*/
|
|
2970
|
+
chainId: string;
|
|
2971
|
+
/**
|
|
2972
|
+
* Contract address on the relevant chain.
|
|
2973
|
+
*/
|
|
2974
|
+
address: string;
|
|
2975
|
+
/**
|
|
2976
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2977
|
+
*/
|
|
2978
|
+
pageToken?: string;
|
|
2979
|
+
/**
|
|
2980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2981
|
+
*/
|
|
2982
|
+
pageSize?: number;
|
|
2983
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2436
2984
|
/**
|
|
2437
2985
|
* Get token details
|
|
2438
2986
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -2455,6 +3003,108 @@ declare class NfTsService {
|
|
|
2455
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2456
3004
|
}
|
|
2457
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2458
3108
|
type EvmNetworkOptions = {
|
|
2459
3109
|
addresses: Array<string>;
|
|
2460
3110
|
includeChains: Array<string>;
|
|
@@ -2488,7 +3138,7 @@ declare enum PrimaryNetworkOperationType {
|
|
|
2488
3138
|
type PrimaryNetworkOptions = {
|
|
2489
3139
|
addresses?: Array<string>;
|
|
2490
3140
|
cChainEvmAddresses?: Array<string>;
|
|
2491
|
-
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '
|
|
3141
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2492
3142
|
};
|
|
2493
3143
|
|
|
2494
3144
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
@@ -2543,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2543
3193
|
operationType: OperationType;
|
|
2544
3194
|
operationStatus: OperationStatus;
|
|
2545
3195
|
message?: string;
|
|
2546
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2547
3197
|
createdAtTimestamp: number;
|
|
2548
3198
|
updatedAtTimestamp: number;
|
|
2549
3199
|
};
|
|
@@ -2576,14 +3226,29 @@ declare class OperationsService {
|
|
|
2576
3226
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2577
3227
|
}
|
|
2578
3228
|
|
|
3229
|
+
type Blockchain = {
|
|
3230
|
+
createBlockTimestamp: number;
|
|
3231
|
+
createBlockNumber: string;
|
|
3232
|
+
blockchainId: string;
|
|
3233
|
+
vmId: string;
|
|
3234
|
+
subnetId: string;
|
|
3235
|
+
blockchainName: string;
|
|
3236
|
+
/**
|
|
3237
|
+
* 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.
|
|
3238
|
+
*/
|
|
3239
|
+
evmChainId: number;
|
|
3240
|
+
/**
|
|
3241
|
+
* The genesis data of the blockchain.
|
|
3242
|
+
*/
|
|
3243
|
+
genesisData?: Record<string, any>;
|
|
3244
|
+
};
|
|
3245
|
+
|
|
2579
3246
|
declare enum BlockchainIds {
|
|
2580
3247
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2581
3248
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2582
3249
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
2583
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
2584
3250
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
2585
|
-
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2586
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu"
|
|
3251
|
+
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
|
|
2587
3252
|
}
|
|
2588
3253
|
|
|
2589
3254
|
type ChainAddressChainIdMap = {
|
|
@@ -2607,16 +3272,31 @@ type DelegatorsDetails = {
|
|
|
2607
3272
|
};
|
|
2608
3273
|
|
|
2609
3274
|
type StakingDistribution = {
|
|
3275
|
+
/**
|
|
3276
|
+
* AvalancheGo version for the validator node.
|
|
3277
|
+
*/
|
|
2610
3278
|
version: string;
|
|
3279
|
+
/**
|
|
3280
|
+
* The total amount staked by validators using this version.
|
|
3281
|
+
*/
|
|
2611
3282
|
amountStaked: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* The number of validators using this version.
|
|
3285
|
+
*/
|
|
2612
3286
|
validatorCount: number;
|
|
2613
3287
|
};
|
|
2614
3288
|
|
|
2615
3289
|
type ValidatorsDetails = {
|
|
2616
3290
|
validatorCount: number;
|
|
2617
3291
|
totalAmountStaked: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3294
|
+
*/
|
|
2618
3295
|
estimatedAnnualStakingReward: string;
|
|
2619
3296
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3297
|
+
/**
|
|
3298
|
+
* Ratio of total active stake amount to the current supply.
|
|
3299
|
+
*/
|
|
2620
3300
|
stakingRatio: string;
|
|
2621
3301
|
};
|
|
2622
3302
|
|
|
@@ -2625,15 +3305,6 @@ type GetNetworkDetailsResponse = {
|
|
|
2625
3305
|
delegatorDetails: DelegatorsDetails;
|
|
2626
3306
|
};
|
|
2627
3307
|
|
|
2628
|
-
type Blockchain = {
|
|
2629
|
-
createBlockTimestamp: number;
|
|
2630
|
-
createBlockNumber: string;
|
|
2631
|
-
blockchainId: string;
|
|
2632
|
-
vmId: string;
|
|
2633
|
-
subnetId: string;
|
|
2634
|
-
blockchainName: string;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
3308
|
type ListBlockchainsResponse = {
|
|
2638
3309
|
/**
|
|
2639
3310
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2668,7 +3339,13 @@ type CompletedDelegatorDetails = {
|
|
|
2668
3339
|
delegationFee: string;
|
|
2669
3340
|
startTimestamp: number;
|
|
2670
3341
|
endTimestamp: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* Total rewards distributed for the successful delegation.
|
|
3344
|
+
*/
|
|
2671
3345
|
grossReward: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3348
|
+
*/
|
|
2672
3349
|
netReward: string;
|
|
2673
3350
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2674
3351
|
};
|
|
@@ -2686,7 +3363,13 @@ type PendingDelegatorDetails = {
|
|
|
2686
3363
|
delegationFee: string;
|
|
2687
3364
|
startTimestamp: number;
|
|
2688
3365
|
endTimestamp: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3368
|
+
*/
|
|
2689
3369
|
estimatedGrossReward: string;
|
|
3370
|
+
/**
|
|
3371
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3372
|
+
*/
|
|
2690
3373
|
estimatedNetReward: string;
|
|
2691
3374
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2692
3375
|
};
|
|
@@ -2712,37 +3395,41 @@ type BalanceOwner = {
|
|
|
2712
3395
|
threshold: number;
|
|
2713
3396
|
};
|
|
2714
3397
|
|
|
2715
|
-
type
|
|
3398
|
+
type L1ValidatorDetailsFull = {
|
|
2716
3399
|
/**
|
|
2717
|
-
* Unique
|
|
3400
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
2718
3401
|
*/
|
|
2719
3402
|
validationId: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
3405
|
+
*/
|
|
3406
|
+
validationIdHex: string;
|
|
2720
3407
|
nodeId: string;
|
|
2721
3408
|
subnetId: string;
|
|
2722
3409
|
/**
|
|
2723
|
-
* Weight of the
|
|
3410
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
2724
3411
|
*/
|
|
2725
3412
|
weight: number;
|
|
2726
3413
|
/**
|
|
2727
|
-
* Remaining
|
|
3414
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
2728
3415
|
*/
|
|
2729
3416
|
remainingBalance: number;
|
|
2730
3417
|
/**
|
|
2731
|
-
* The timestamp of the transaction which created this
|
|
3418
|
+
* The timestamp of the transaction which created this L1 validator
|
|
2732
3419
|
*/
|
|
2733
3420
|
creationTimestamp: number;
|
|
2734
3421
|
blsCredentials: Record<string, any>;
|
|
2735
3422
|
/**
|
|
2736
|
-
* The
|
|
3423
|
+
* The L1 validator owner's balance, returned after it's disabled or removed
|
|
2737
3424
|
*/
|
|
2738
3425
|
remainingBalanceOwner: BalanceOwner;
|
|
2739
3426
|
/**
|
|
2740
|
-
* Owner ddresses details which can disable or remove the
|
|
3427
|
+
* Owner ddresses details which can disable or remove the L1 validator
|
|
2741
3428
|
*/
|
|
2742
3429
|
deactivationOwner: BalanceOwner;
|
|
2743
3430
|
};
|
|
2744
3431
|
|
|
2745
|
-
type
|
|
3432
|
+
type ListL1ValidatorsResponse = {
|
|
2746
3433
|
/**
|
|
2747
3434
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2748
3435
|
*/
|
|
@@ -2750,11 +3437,11 @@ type ListSubnetOnlyValidatorsResponse = {
|
|
|
2750
3437
|
/**
|
|
2751
3438
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
3439
|
*/
|
|
2753
|
-
validators: Array<
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
3440
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
3441
|
+
/**
|
|
3442
|
+
* Block height at which the L1 validator's remaining balance is calculated
|
|
3443
|
+
*/
|
|
3444
|
+
blockHeight: string;
|
|
2758
3445
|
};
|
|
2759
3446
|
|
|
2760
3447
|
type L1ValidatorManagerDetails = {
|
|
@@ -2804,11 +3491,15 @@ type Subnet = {
|
|
|
2804
3491
|
* Whether the subnet is an L1 or not.
|
|
2805
3492
|
*/
|
|
2806
3493
|
isL1: boolean;
|
|
3494
|
+
/**
|
|
3495
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3496
|
+
*/
|
|
3497
|
+
l1ConversionTransactionHash?: string;
|
|
2807
3498
|
/**
|
|
2808
3499
|
* L1 validator manager details.
|
|
2809
3500
|
*/
|
|
2810
3501
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2811
|
-
blockchains: Array<
|
|
3502
|
+
blockchains: Array<Blockchain>;
|
|
2812
3503
|
};
|
|
2813
3504
|
|
|
2814
3505
|
type ListSubnetsResponse = {
|
|
@@ -2824,6 +3515,29 @@ type BlsCredentials = {
|
|
|
2824
3515
|
proofOfPossession: string;
|
|
2825
3516
|
};
|
|
2826
3517
|
|
|
3518
|
+
type Geolocation = {
|
|
3519
|
+
/**
|
|
3520
|
+
* The name of the validator node.
|
|
3521
|
+
*/
|
|
3522
|
+
city: string;
|
|
3523
|
+
/**
|
|
3524
|
+
* The city of the validator node.
|
|
3525
|
+
*/
|
|
3526
|
+
country: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* The country code of the validator node.
|
|
3529
|
+
*/
|
|
3530
|
+
countryCode: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* The latitude of the validator node.
|
|
3533
|
+
*/
|
|
3534
|
+
latitude: number;
|
|
3535
|
+
/**
|
|
3536
|
+
* The longitude of the validator node.
|
|
3537
|
+
*/
|
|
3538
|
+
longitude: number;
|
|
3539
|
+
};
|
|
3540
|
+
|
|
2827
3541
|
type Rewards = {
|
|
2828
3542
|
validationRewardAmount: string;
|
|
2829
3543
|
delegationRewardAmount: string;
|
|
@@ -2855,6 +3569,9 @@ type ActiveValidatorDetails = {
|
|
|
2855
3569
|
nodeId: string;
|
|
2856
3570
|
subnetId: string;
|
|
2857
3571
|
amountStaked: string;
|
|
3572
|
+
/**
|
|
3573
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3574
|
+
*/
|
|
2858
3575
|
delegationFee?: string;
|
|
2859
3576
|
startTimestamp: number;
|
|
2860
3577
|
endTimestamp: number;
|
|
@@ -2862,15 +3579,37 @@ type ActiveValidatorDetails = {
|
|
|
2862
3579
|
* Present for AddPermissionlessValidatorTx
|
|
2863
3580
|
*/
|
|
2864
3581
|
blsCredentials?: BlsCredentials;
|
|
3582
|
+
/**
|
|
3583
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3584
|
+
*/
|
|
2865
3585
|
stakePercentage: number;
|
|
3586
|
+
/**
|
|
3587
|
+
* The number of delegators linked to the validator.
|
|
3588
|
+
*/
|
|
2866
3589
|
delegatorCount: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3592
|
+
*/
|
|
2867
3593
|
amountDelegated?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3596
|
+
*/
|
|
2868
3597
|
uptimePerformance: number;
|
|
2869
3598
|
avalancheGoVersion?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3601
|
+
*/
|
|
2870
3602
|
delegationCapacity?: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3605
|
+
*/
|
|
2871
3606
|
potentialRewards: Rewards;
|
|
2872
3607
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2873
3608
|
validatorHealth: ValidatorHealthDetails;
|
|
3609
|
+
/**
|
|
3610
|
+
* The geographical location of the validator node, if available.
|
|
3611
|
+
*/
|
|
3612
|
+
geolocation: Geolocation | null;
|
|
2874
3613
|
};
|
|
2875
3614
|
declare namespace ActiveValidatorDetails {
|
|
2876
3615
|
enum validationStatus {
|
|
@@ -2883,6 +3622,9 @@ type CompletedValidatorDetails = {
|
|
|
2883
3622
|
nodeId: string;
|
|
2884
3623
|
subnetId: string;
|
|
2885
3624
|
amountStaked: string;
|
|
3625
|
+
/**
|
|
3626
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3627
|
+
*/
|
|
2886
3628
|
delegationFee?: string;
|
|
2887
3629
|
startTimestamp: number;
|
|
2888
3630
|
endTimestamp: number;
|
|
@@ -2906,6 +3648,9 @@ type PendingValidatorDetails = {
|
|
|
2906
3648
|
nodeId: string;
|
|
2907
3649
|
subnetId: string;
|
|
2908
3650
|
amountStaked: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3653
|
+
*/
|
|
2909
3654
|
delegationFee?: string;
|
|
2910
3655
|
startTimestamp: number;
|
|
2911
3656
|
endTimestamp: number;
|
|
@@ -2926,6 +3671,9 @@ type RemovedValidatorDetails = {
|
|
|
2926
3671
|
nodeId: string;
|
|
2927
3672
|
subnetId: string;
|
|
2928
3673
|
amountStaked: string;
|
|
3674
|
+
/**
|
|
3675
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3676
|
+
*/
|
|
2929
3677
|
delegationFee?: string;
|
|
2930
3678
|
startTimestamp: number;
|
|
2931
3679
|
endTimestamp: number;
|
|
@@ -2933,7 +3681,13 @@ type RemovedValidatorDetails = {
|
|
|
2933
3681
|
* Present for AddPermissionlessValidatorTx
|
|
2934
3682
|
*/
|
|
2935
3683
|
blsCredentials?: BlsCredentials;
|
|
3684
|
+
/**
|
|
3685
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3686
|
+
*/
|
|
2936
3687
|
removeTxHash: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3690
|
+
*/
|
|
2937
3691
|
removeTimestamp: number;
|
|
2938
3692
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2939
3693
|
};
|
|
@@ -3013,7 +3767,6 @@ type XChainAssetDetails = {
|
|
|
3013
3767
|
declare enum XChainId {
|
|
3014
3768
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3015
3769
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3016
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3017
3770
|
X_CHAIN = "x-chain"
|
|
3018
3771
|
}
|
|
3019
3772
|
|
|
@@ -3084,7 +3837,7 @@ declare class PrimaryNetworkService {
|
|
|
3084
3837
|
*/
|
|
3085
3838
|
pageToken?: string;
|
|
3086
3839
|
/**
|
|
3087
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3840
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3088
3841
|
*/
|
|
3089
3842
|
pageSize?: number;
|
|
3090
3843
|
/**
|
|
@@ -3092,6 +3845,22 @@ declare class PrimaryNetworkService {
|
|
|
3092
3845
|
*/
|
|
3093
3846
|
sortOrder?: SortOrder;
|
|
3094
3847
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
3848
|
+
/**
|
|
3849
|
+
* Get blockchain details by ID
|
|
3850
|
+
* Get details of the blockchain registered on the network.
|
|
3851
|
+
* @returns Blockchain Successful response
|
|
3852
|
+
* @throws ApiError
|
|
3853
|
+
*/
|
|
3854
|
+
getBlockchainById({ blockchainId, network, }: {
|
|
3855
|
+
/**
|
|
3856
|
+
* The blockchain ID of the blockchain to retrieve.
|
|
3857
|
+
*/
|
|
3858
|
+
blockchainId: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Either mainnet or testnet/fuji.
|
|
3861
|
+
*/
|
|
3862
|
+
network: Network;
|
|
3863
|
+
}): CancelablePromise<Blockchain>;
|
|
3095
3864
|
/**
|
|
3096
3865
|
* List subnets
|
|
3097
3866
|
* Lists all subnets registered on the network.
|
|
@@ -3108,7 +3877,7 @@ declare class PrimaryNetworkService {
|
|
|
3108
3877
|
*/
|
|
3109
3878
|
pageToken?: string;
|
|
3110
3879
|
/**
|
|
3111
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
3880
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
|
|
3112
3881
|
*/
|
|
3113
3882
|
pageSize?: number;
|
|
3114
3883
|
/**
|
|
@@ -3134,7 +3903,7 @@ declare class PrimaryNetworkService {
|
|
|
3134
3903
|
}): CancelablePromise<Subnet>;
|
|
3135
3904
|
/**
|
|
3136
3905
|
* List validators
|
|
3137
|
-
* Lists details for validators. By default, returns details for all validators. Filterable by
|
|
3906
|
+
* 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.
|
|
3138
3907
|
* @returns ListValidatorDetailsResponse Successful response
|
|
3139
3908
|
* @throws ApiError
|
|
3140
3909
|
*/
|
|
@@ -3152,7 +3921,7 @@ declare class PrimaryNetworkService {
|
|
|
3152
3921
|
*/
|
|
3153
3922
|
pageSize?: number;
|
|
3154
3923
|
/**
|
|
3155
|
-
* A comma separated list of node ids to filter by.
|
|
3924
|
+
* A comma separated list of node ids to filter by. Supports substring matching.
|
|
3156
3925
|
*/
|
|
3157
3926
|
nodeIds?: string;
|
|
3158
3927
|
/**
|
|
@@ -3275,12 +4044,12 @@ declare class PrimaryNetworkService {
|
|
|
3275
4044
|
nodeIds?: string;
|
|
3276
4045
|
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
3277
4046
|
/**
|
|
3278
|
-
* List
|
|
3279
|
-
* Lists details for
|
|
3280
|
-
* @returns
|
|
4047
|
+
* List L1 validators
|
|
4048
|
+
* Lists details for L1 validators. By default, returns details for all active L1 validators. Filterable by validator node ids, subnet id, and validation id.
|
|
4049
|
+
* @returns ListL1ValidatorsResponse Successful response
|
|
3281
4050
|
* @throws ApiError
|
|
3282
4051
|
*/
|
|
3283
|
-
|
|
4052
|
+
listL1Validators({ network, pageToken, pageSize, l1ValidationId, includeInactiveL1Validators, nodeId, subnetId, }: {
|
|
3284
4053
|
/**
|
|
3285
4054
|
* Either mainnet or testnet/fuji.
|
|
3286
4055
|
*/
|
|
@@ -3294,10 +4063,10 @@ declare class PrimaryNetworkService {
|
|
|
3294
4063
|
*/
|
|
3295
4064
|
pageSize?: number;
|
|
3296
4065
|
/**
|
|
3297
|
-
* The
|
|
4066
|
+
* The L1 Validator's validation ID to filter by. If not provided, then all L1 Validators will be returned.
|
|
3298
4067
|
*/
|
|
3299
|
-
|
|
3300
|
-
|
|
4068
|
+
l1ValidationId?: string;
|
|
4069
|
+
includeInactiveL1Validators?: boolean;
|
|
3301
4070
|
/**
|
|
3302
4071
|
* A valid node ID in format 'NodeID-HASH'.
|
|
3303
4072
|
*/
|
|
@@ -3306,17 +4075,15 @@ declare class PrimaryNetworkService {
|
|
|
3306
4075
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3307
4076
|
*/
|
|
3308
4077
|
subnetId?: any;
|
|
3309
|
-
}): CancelablePromise<
|
|
4078
|
+
}): CancelablePromise<ListL1ValidatorsResponse>;
|
|
3310
4079
|
}
|
|
3311
4080
|
|
|
3312
4081
|
declare enum BlockchainId {
|
|
3313
4082
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3314
4083
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3315
4084
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
3316
|
-
_2PI_Q2AVHCJNDUI_WXS_SY15DTB_VUW_HE2CW_MHYN_EXHS_LL73BBKDB_V = "2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV",
|
|
3317
4085
|
_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
|
|
3318
4086
|
Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
|
|
3319
|
-
V_V3CUI1DS_EPC3N_LCGH9RORWO8S6BYX_M2HZ4QFE5G_EYJW_TQ_AU = "vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu",
|
|
3320
4087
|
P_CHAIN = "p-chain",
|
|
3321
4088
|
X_CHAIN = "x-chain",
|
|
3322
4089
|
C_CHAIN = "c-chain"
|
|
@@ -3553,8 +4320,8 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
3553
4320
|
txCount: number;
|
|
3554
4321
|
transactions: Array<string>;
|
|
3555
4322
|
blockSizeBytes: number;
|
|
3556
|
-
|
|
3557
|
-
|
|
4323
|
+
l1ValidatorsAccruedFees?: number;
|
|
4324
|
+
activeL1Validators?: number;
|
|
3558
4325
|
currentSupply?: string;
|
|
3559
4326
|
proposerDetails?: ProposerDetails;
|
|
3560
4327
|
};
|
|
@@ -3568,8 +4335,8 @@ type PrimaryNetworkBlock = {
|
|
|
3568
4335
|
txCount: number;
|
|
3569
4336
|
transactions: Array<string>;
|
|
3570
4337
|
blockSizeBytes: number;
|
|
3571
|
-
|
|
3572
|
-
|
|
4338
|
+
l1ValidatorsAccruedFees?: number;
|
|
4339
|
+
activeL1Validators?: number;
|
|
3573
4340
|
currentSupply?: string;
|
|
3574
4341
|
proposerDetails?: ProposerDetails;
|
|
3575
4342
|
};
|
|
@@ -3612,7 +4379,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3612
4379
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3613
4380
|
* @throws ApiError
|
|
3614
4381
|
*/
|
|
3615
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
4382
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3616
4383
|
/**
|
|
3617
4384
|
* A primary network blockchain id or alias.
|
|
3618
4385
|
*/
|
|
@@ -3625,6 +4392,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3625
4392
|
* A primary network (P or X chain) nodeId.
|
|
3626
4393
|
*/
|
|
3627
4394
|
nodeId: string;
|
|
4395
|
+
/**
|
|
4396
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4397
|
+
*/
|
|
4398
|
+
startTimestamp?: number;
|
|
4399
|
+
/**
|
|
4400
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4401
|
+
*/
|
|
4402
|
+
endTimestamp?: number;
|
|
3628
4403
|
/**
|
|
3629
4404
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3630
4405
|
*/
|
|
@@ -3640,7 +4415,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3640
4415
|
* @returns ListPrimaryNetworkBlocksResponse Successful response
|
|
3641
4416
|
* @throws ApiError
|
|
3642
4417
|
*/
|
|
3643
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
4418
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3644
4419
|
/**
|
|
3645
4420
|
* A primary network blockchain id or alias.
|
|
3646
4421
|
*/
|
|
@@ -3649,6 +4424,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3649
4424
|
* Either mainnet or testnet/fuji.
|
|
3650
4425
|
*/
|
|
3651
4426
|
network: Network;
|
|
4427
|
+
/**
|
|
4428
|
+
* Query param for retrieving items after a specific timestamp.
|
|
4429
|
+
*/
|
|
4430
|
+
startTimestamp?: number;
|
|
4431
|
+
/**
|
|
4432
|
+
* Query param for retrieving items before a specific timestamp.
|
|
4433
|
+
*/
|
|
4434
|
+
endTimestamp?: number;
|
|
3652
4435
|
/**
|
|
3653
4436
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3654
4437
|
*/
|
|
@@ -4058,6 +4841,41 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
4058
4841
|
chainInfo: PrimaryNetworkChainInfo;
|
|
4059
4842
|
};
|
|
4060
4843
|
|
|
4844
|
+
type BlockchainInfo = {
|
|
4845
|
+
chainName: string;
|
|
4846
|
+
vmId: string;
|
|
4847
|
+
/**
|
|
4848
|
+
* 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
|
|
4849
|
+
*/
|
|
4850
|
+
genesisData?: Record<string, any>;
|
|
4851
|
+
};
|
|
4852
|
+
|
|
4853
|
+
type L1ValidatorDetailsTransaction = {
|
|
4854
|
+
/**
|
|
4855
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4856
|
+
*/
|
|
4857
|
+
validationId: string;
|
|
4858
|
+
/**
|
|
4859
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
4860
|
+
*/
|
|
4861
|
+
validationIdHex: string;
|
|
4862
|
+
nodeId: string;
|
|
4863
|
+
subnetId: string;
|
|
4864
|
+
/**
|
|
4865
|
+
* Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
|
|
4866
|
+
*/
|
|
4867
|
+
weight: number;
|
|
4868
|
+
/**
|
|
4869
|
+
* Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
|
|
4870
|
+
*/
|
|
4871
|
+
remainingBalance: number;
|
|
4872
|
+
/**
|
|
4873
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4874
|
+
*/
|
|
4875
|
+
balanceChange?: number;
|
|
4876
|
+
blsCredentials?: Record<string, any>;
|
|
4877
|
+
};
|
|
4878
|
+
|
|
4061
4879
|
declare enum PChainTransactionType {
|
|
4062
4880
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
4063
4881
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
@@ -4074,14 +4892,17 @@ declare enum PChainTransactionType {
|
|
|
4074
4892
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4075
4893
|
BASE_TX = "BaseTx",
|
|
4076
4894
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4895
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
4896
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
4897
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
4898
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
4899
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4082
4900
|
UNKNOWN = "UNKNOWN"
|
|
4083
4901
|
}
|
|
4084
4902
|
|
|
4903
|
+
/**
|
|
4904
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4905
|
+
*/
|
|
4085
4906
|
declare enum UtxoType {
|
|
4086
4907
|
STAKE = "STAKE",
|
|
4087
4908
|
TRANSFER = "TRANSFER"
|
|
@@ -4119,40 +4940,45 @@ type PChainUtxo = {
|
|
|
4119
4940
|
assetId: string;
|
|
4120
4941
|
blockNumber: string;
|
|
4121
4942
|
blockTimestamp: number;
|
|
4943
|
+
/**
|
|
4944
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4945
|
+
*/
|
|
4122
4946
|
consumingBlockNumber?: string;
|
|
4947
|
+
/**
|
|
4948
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4949
|
+
*/
|
|
4123
4950
|
consumingBlockTimestamp?: number;
|
|
4951
|
+
/**
|
|
4952
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4953
|
+
*/
|
|
4124
4954
|
platformLocktime?: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* The index of the UTXO in the transaction
|
|
4957
|
+
*/
|
|
4125
4958
|
outputIndex: number;
|
|
4126
4959
|
rewardType?: RewardType;
|
|
4960
|
+
/**
|
|
4961
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4962
|
+
*/
|
|
4127
4963
|
stakeableLocktime?: number;
|
|
4128
4964
|
staked?: boolean;
|
|
4129
|
-
threshold?: number;
|
|
4130
|
-
txHash: string;
|
|
4131
|
-
utxoEndTimestamp?: number;
|
|
4132
|
-
utxoStartTimestamp?: number;
|
|
4133
|
-
utxoType: UtxoType;
|
|
4134
|
-
};
|
|
4135
|
-
|
|
4136
|
-
type SoVDetailsTransaction = {
|
|
4137
4965
|
/**
|
|
4138
|
-
*
|
|
4966
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4139
4967
|
*/
|
|
4140
|
-
|
|
4141
|
-
nodeId: string;
|
|
4142
|
-
subnetId: string;
|
|
4968
|
+
threshold?: number;
|
|
4143
4969
|
/**
|
|
4144
|
-
*
|
|
4970
|
+
* The hash of the transaction that created this UTXO
|
|
4145
4971
|
*/
|
|
4146
|
-
|
|
4972
|
+
txHash: string;
|
|
4147
4973
|
/**
|
|
4148
|
-
*
|
|
4974
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4149
4975
|
*/
|
|
4150
|
-
|
|
4976
|
+
utxoEndTimestamp?: number;
|
|
4151
4977
|
/**
|
|
4152
|
-
*
|
|
4978
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4153
4979
|
*/
|
|
4154
|
-
|
|
4155
|
-
|
|
4980
|
+
utxoStartTimestamp?: number;
|
|
4981
|
+
utxoType: UtxoType;
|
|
4156
4982
|
};
|
|
4157
4983
|
|
|
4158
4984
|
type PChainTransaction = {
|
|
@@ -4165,9 +4991,18 @@ type PChainTransaction = {
|
|
|
4165
4991
|
* The block finality timestamp.
|
|
4166
4992
|
*/
|
|
4167
4993
|
blockTimestamp: number;
|
|
4994
|
+
/**
|
|
4995
|
+
* The height of the block in which the transaction was included
|
|
4996
|
+
*/
|
|
4168
4997
|
blockNumber: string;
|
|
4169
4998
|
blockHash: string;
|
|
4999
|
+
/**
|
|
5000
|
+
* The consumed UTXOs of the transaction
|
|
5001
|
+
*/
|
|
4170
5002
|
consumedUtxos: Array<PChainUtxo>;
|
|
5003
|
+
/**
|
|
5004
|
+
* The newly created UTXOs of the transaction
|
|
5005
|
+
*/
|
|
4171
5006
|
emittedUtxos: Array<PChainUtxo>;
|
|
4172
5007
|
/**
|
|
4173
5008
|
* Source chain for an atomic transaction.
|
|
@@ -4178,11 +5013,11 @@ type PChainTransaction = {
|
|
|
4178
5013
|
*/
|
|
4179
5014
|
destinationChain?: string;
|
|
4180
5015
|
/**
|
|
4181
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5016
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4182
5017
|
*/
|
|
4183
5018
|
value: Array<AssetAmount>;
|
|
4184
5019
|
/**
|
|
4185
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5020
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4186
5021
|
*/
|
|
4187
5022
|
amountBurned: Array<AssetAmount>;
|
|
4188
5023
|
/**
|
|
@@ -4190,9 +5025,9 @@ type PChainTransaction = {
|
|
|
4190
5025
|
*/
|
|
4191
5026
|
amountStaked: Array<AssetAmount>;
|
|
4192
5027
|
/**
|
|
4193
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
5028
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4194
5029
|
*/
|
|
4195
|
-
|
|
5030
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4196
5031
|
/**
|
|
4197
5032
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4198
5033
|
*/
|
|
@@ -4202,11 +5037,11 @@ type PChainTransaction = {
|
|
|
4202
5037
|
*/
|
|
4203
5038
|
endTimestamp?: number;
|
|
4204
5039
|
/**
|
|
4205
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
5040
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4206
5041
|
*/
|
|
4207
5042
|
delegationFeePercent?: string;
|
|
4208
5043
|
/**
|
|
4209
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5044
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4210
5045
|
*/
|
|
4211
5046
|
nodeId?: string;
|
|
4212
5047
|
/**
|
|
@@ -4214,22 +5049,25 @@ type PChainTransaction = {
|
|
|
4214
5049
|
*/
|
|
4215
5050
|
subnetId?: string;
|
|
4216
5051
|
/**
|
|
4217
|
-
* Details of the L1's validator manager contract and blockchain. Present for the
|
|
5052
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
4218
5053
|
*/
|
|
4219
5054
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4220
5055
|
/**
|
|
4221
|
-
* Details of
|
|
5056
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4222
5057
|
*/
|
|
4223
|
-
l1ValidatorDetails?: Array<
|
|
5058
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4224
5059
|
/**
|
|
4225
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
5060
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4226
5061
|
*/
|
|
4227
5062
|
estimatedReward?: string;
|
|
5063
|
+
/**
|
|
5064
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5065
|
+
*/
|
|
4228
5066
|
rewardTxHash?: string;
|
|
4229
5067
|
rewardAddresses?: Array<string>;
|
|
4230
5068
|
memo?: string;
|
|
4231
5069
|
/**
|
|
4232
|
-
*
|
|
5070
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4233
5071
|
*/
|
|
4234
5072
|
stakingTxHash?: string;
|
|
4235
5073
|
/**
|
|
@@ -4237,9 +5075,13 @@ type PChainTransaction = {
|
|
|
4237
5075
|
*/
|
|
4238
5076
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4239
5077
|
/**
|
|
4240
|
-
* Present for AddPermissionlessValidatorTx
|
|
5078
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4241
5079
|
*/
|
|
4242
5080
|
blsCredentials?: BlsCredentials;
|
|
5081
|
+
/**
|
|
5082
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
5083
|
+
*/
|
|
5084
|
+
blockchainInfo?: BlockchainInfo;
|
|
4243
5085
|
};
|
|
4244
5086
|
|
|
4245
5087
|
type ListPChainTransactionsResponse = {
|
|
@@ -4422,11 +5264,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4422
5264
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4423
5265
|
BASE_TX = "BaseTx",
|
|
4424
5266
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
5267
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
5268
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
5269
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
5270
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
5271
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
4430
5272
|
UNKNOWN = "UNKNOWN",
|
|
4431
5273
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4432
5274
|
OPERATION_TX = "OperationTx"
|
|
@@ -4461,13 +5303,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4461
5303
|
*
|
|
4462
5304
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4463
5305
|
*
|
|
4464
|
-
* For P-Chain, you can fetch all
|
|
5306
|
+
* For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4465
5307
|
*
|
|
4466
5308
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4467
5309
|
* @returns any Successful response
|
|
4468
5310
|
* @throws ApiError
|
|
4469
5311
|
*/
|
|
4470
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses,
|
|
5312
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, l1ValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4471
5313
|
/**
|
|
4472
5314
|
* A primary network blockchain id or alias.
|
|
4473
5315
|
*/
|
|
@@ -4480,7 +5322,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4480
5322
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4481
5323
|
*/
|
|
4482
5324
|
addresses?: string;
|
|
4483
|
-
|
|
5325
|
+
l1ValidationId?: string;
|
|
4484
5326
|
/**
|
|
4485
5327
|
* Query param for filtering items based on transaction types.
|
|
4486
5328
|
*/
|
|
@@ -4761,13 +5603,7 @@ type SignatureAggregationResponse = {
|
|
|
4761
5603
|
};
|
|
4762
5604
|
|
|
4763
5605
|
type SignatureAggregatorRequest = {
|
|
4764
|
-
|
|
4765
|
-
* Must be defined if justification is not defined
|
|
4766
|
-
*/
|
|
4767
|
-
message?: string;
|
|
4768
|
-
/**
|
|
4769
|
-
* Must be defined if message is not defined
|
|
4770
|
-
*/
|
|
5606
|
+
message: string;
|
|
4771
5607
|
justification?: string;
|
|
4772
5608
|
signingSubnetId?: string;
|
|
4773
5609
|
quorumPercentage?: number;
|
|
@@ -4782,9 +5618,29 @@ declare class SignatureAggregatorService {
|
|
|
4782
5618
|
* @returns SignatureAggregationResponse Successful response
|
|
4783
5619
|
* @throws ApiError
|
|
4784
5620
|
*/
|
|
4785
|
-
aggregateSignatures({ requestBody, }: {
|
|
5621
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5622
|
+
/**
|
|
5623
|
+
* Either mainnet or testnet/fuji.
|
|
5624
|
+
*/
|
|
5625
|
+
network: Network;
|
|
4786
5626
|
requestBody: SignatureAggregatorRequest;
|
|
4787
5627
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5628
|
+
/**
|
|
5629
|
+
* Get Aggregated Signatures
|
|
5630
|
+
* Get Aggregated Signatures for a P-Chain L1 related Warp Message.
|
|
5631
|
+
* @returns SignatureAggregationResponse Successful response
|
|
5632
|
+
* @throws ApiError
|
|
5633
|
+
*/
|
|
5634
|
+
getAggregatedSignatures({ network, txHash, }: {
|
|
5635
|
+
/**
|
|
5636
|
+
* Either mainnet or testnet/fuji.
|
|
5637
|
+
*/
|
|
5638
|
+
network: Network;
|
|
5639
|
+
/**
|
|
5640
|
+
* A primary network (P or X chain) transaction hash.
|
|
5641
|
+
*/
|
|
5642
|
+
txHash: string;
|
|
5643
|
+
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4788
5644
|
}
|
|
4789
5645
|
|
|
4790
5646
|
type TeleporterDestinationTransaction = {
|
|
@@ -4918,15 +5774,17 @@ type ListTeleporterMessagesResponse = {
|
|
|
4918
5774
|
* 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.
|
|
4919
5775
|
*/
|
|
4920
5776
|
nextPageToken?: string;
|
|
4921
|
-
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
5777
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
4922
5778
|
};
|
|
4923
5779
|
|
|
4924
5780
|
declare class TeleporterService {
|
|
4925
5781
|
readonly httpRequest: BaseHttpRequest;
|
|
4926
5782
|
constructor(httpRequest: BaseHttpRequest);
|
|
4927
5783
|
/**
|
|
4928
|
-
*
|
|
4929
|
-
* Gets a teleporter message by message ID.
|
|
5784
|
+
* @deprecated
|
|
5785
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5786
|
+
*
|
|
5787
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
4930
5788
|
* @returns any Successful response
|
|
4931
5789
|
* @throws ApiError
|
|
4932
5790
|
*/
|
|
@@ -4937,8 +5795,10 @@ declare class TeleporterService {
|
|
|
4937
5795
|
messageId: string;
|
|
4938
5796
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4939
5797
|
/**
|
|
4940
|
-
*
|
|
4941
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5798
|
+
* @deprecated
|
|
5799
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5800
|
+
*
|
|
5801
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
4942
5802
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4943
5803
|
* @throws ApiError
|
|
4944
5804
|
*/
|
|
@@ -4977,8 +5837,10 @@ declare class TeleporterService {
|
|
|
4977
5837
|
network?: Network;
|
|
4978
5838
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4979
5839
|
/**
|
|
4980
|
-
*
|
|
4981
|
-
* Lists teleporter messages by address. Ordered by
|
|
5840
|
+
* @deprecated
|
|
5841
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5842
|
+
*
|
|
5843
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
4982
5844
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
4983
5845
|
* @throws ApiError
|
|
4984
5846
|
*/
|
|
@@ -5011,26 +5873,56 @@ type AddressesChangeRequest = {
|
|
|
5011
5873
|
|
|
5012
5874
|
type AddressActivityMetadata = {
|
|
5013
5875
|
/**
|
|
5014
|
-
*
|
|
5876
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5877
|
+
*/
|
|
5878
|
+
eventSignatures?: Array<string>;
|
|
5879
|
+
/**
|
|
5880
|
+
* 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.
|
|
5015
5881
|
*/
|
|
5016
5882
|
addresses: Array<string>;
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
type EVMAddressActivityRequest = {
|
|
5886
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5887
|
+
url: string;
|
|
5888
|
+
name?: string;
|
|
5889
|
+
description?: string;
|
|
5890
|
+
chainId: string;
|
|
5891
|
+
metadata: AddressActivityMetadata;
|
|
5017
5892
|
/**
|
|
5018
|
-
*
|
|
5893
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
5019
5894
|
*/
|
|
5020
|
-
|
|
5895
|
+
includeInternalTxs?: boolean;
|
|
5896
|
+
/**
|
|
5897
|
+
* Whether to include logs in the webhook payload.
|
|
5898
|
+
*/
|
|
5899
|
+
includeLogs?: boolean;
|
|
5021
5900
|
};
|
|
5901
|
+
declare namespace EVMAddressActivityRequest {
|
|
5902
|
+
enum eventType {
|
|
5903
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5022
5906
|
|
|
5023
|
-
declare enum
|
|
5907
|
+
declare enum AddressActivityEventType {
|
|
5024
5908
|
ADDRESS_ACTIVITY = "address_activity"
|
|
5025
5909
|
}
|
|
5026
5910
|
|
|
5027
|
-
|
|
5911
|
+
declare enum WebhookStatusType {
|
|
5912
|
+
ACTIVE = "active",
|
|
5913
|
+
INACTIVE = "inactive"
|
|
5914
|
+
}
|
|
5915
|
+
|
|
5916
|
+
type EVMAddressActivityResponse = {
|
|
5917
|
+
id: string;
|
|
5028
5918
|
url: string;
|
|
5029
5919
|
chainId: string;
|
|
5030
|
-
|
|
5920
|
+
status: WebhookStatusType;
|
|
5921
|
+
createdAt: number;
|
|
5922
|
+
name: string;
|
|
5923
|
+
description: string;
|
|
5924
|
+
eventType: AddressActivityEventType;
|
|
5031
5925
|
metadata: AddressActivityMetadata;
|
|
5032
|
-
name?: string;
|
|
5033
|
-
description?: string;
|
|
5034
5926
|
/**
|
|
5035
5927
|
* Whether to include traces in the webhook payload.
|
|
5036
5928
|
*/
|
|
@@ -5050,29 +5942,143 @@ type ListWebhookAddressesResponse = {
|
|
|
5050
5942
|
totalAddresses: number;
|
|
5051
5943
|
};
|
|
5052
5944
|
|
|
5053
|
-
declare enum
|
|
5054
|
-
|
|
5055
|
-
|
|
5945
|
+
declare enum PrimaryNetworkAddressActivityEventType {
|
|
5946
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
/**
|
|
5950
|
+
* The type of key to monitor for the address activity event type.
|
|
5951
|
+
*/
|
|
5952
|
+
declare enum PlatformAddressActivityKeyType {
|
|
5953
|
+
ADDRESSES = "addresses"
|
|
5954
|
+
}
|
|
5955
|
+
|
|
5956
|
+
/**
|
|
5957
|
+
* Array of address activity sub-event types
|
|
5958
|
+
*/
|
|
5959
|
+
declare enum PrimaryNetworkAddressActivitySubEventType {
|
|
5960
|
+
BALANCE_CHANGE = "balance_change",
|
|
5961
|
+
BALANCE_THRESHOLD = "balance_threshold",
|
|
5962
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
5056
5963
|
}
|
|
5057
5964
|
|
|
5058
|
-
type
|
|
5965
|
+
type PrimaryNetworkAddressActivitySubEvents = {
|
|
5966
|
+
addressActivitySubEvents: Array<PrimaryNetworkAddressActivitySubEventType>;
|
|
5967
|
+
};
|
|
5968
|
+
|
|
5969
|
+
/**
|
|
5970
|
+
* Type of balance to monitor
|
|
5971
|
+
*/
|
|
5972
|
+
declare enum CommonBalanceType {
|
|
5973
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
5974
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
5975
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
5976
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
5977
|
+
LOCKED_STAKED = "lockedStaked",
|
|
5978
|
+
PENDING_STAKED = "pendingStaked",
|
|
5979
|
+
UNLOCKED = "unlocked",
|
|
5980
|
+
LOCKED = "locked",
|
|
5981
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
5982
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
5983
|
+
}
|
|
5984
|
+
|
|
5985
|
+
type PrimaryNetworkBalanceThresholdFilter = {
|
|
5986
|
+
balanceType: CommonBalanceType;
|
|
5987
|
+
/**
|
|
5988
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
5989
|
+
*/
|
|
5990
|
+
balanceThreshold: string;
|
|
5991
|
+
};
|
|
5992
|
+
|
|
5993
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
5994
|
+
/**
|
|
5995
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5996
|
+
*/
|
|
5997
|
+
eventSignatures?: Array<string>;
|
|
5998
|
+
keyType: PlatformAddressActivityKeyType;
|
|
5999
|
+
/**
|
|
6000
|
+
* 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.
|
|
6001
|
+
*/
|
|
6002
|
+
keys: Array<string>;
|
|
6003
|
+
/**
|
|
6004
|
+
* Sub-events to monitor
|
|
6005
|
+
*/
|
|
6006
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
6007
|
+
/**
|
|
6008
|
+
* Balance threshold filter
|
|
6009
|
+
*/
|
|
6010
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
6011
|
+
};
|
|
6012
|
+
|
|
6013
|
+
type PrimaryNetworkAddressActivityResponse = {
|
|
5059
6014
|
id: string;
|
|
5060
|
-
|
|
5061
|
-
|
|
6015
|
+
url: string;
|
|
6016
|
+
chainId: string;
|
|
6017
|
+
status: WebhookStatusType;
|
|
6018
|
+
createdAt: number;
|
|
6019
|
+
name: string;
|
|
6020
|
+
description: string;
|
|
6021
|
+
eventType: PrimaryNetworkAddressActivityEventType;
|
|
6022
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
6023
|
+
};
|
|
6024
|
+
|
|
6025
|
+
declare enum ValidatorActivityEventType {
|
|
6026
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6027
|
+
}
|
|
6028
|
+
|
|
6029
|
+
/**
|
|
6030
|
+
* The type of key to monitor for the validator activity event type.
|
|
6031
|
+
*/
|
|
6032
|
+
declare enum ValidatorActivityKeyType {
|
|
6033
|
+
NODE_ID = "nodeId",
|
|
6034
|
+
SUBNET_ID = "subnetId"
|
|
6035
|
+
}
|
|
6036
|
+
|
|
6037
|
+
type ValidatorActivitySubEvents = {
|
|
5062
6038
|
/**
|
|
5063
|
-
*
|
|
6039
|
+
* Array of validator activity sub-event types
|
|
5064
6040
|
*/
|
|
5065
|
-
|
|
6041
|
+
validatorActivitySubEvents: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
6042
|
+
};
|
|
6043
|
+
|
|
6044
|
+
type ValidatorActivityMetadata = {
|
|
5066
6045
|
/**
|
|
5067
|
-
*
|
|
6046
|
+
* Array of hexadecimal strings of the event signatures.
|
|
5068
6047
|
*/
|
|
5069
|
-
|
|
6048
|
+
eventSignatures?: Array<string>;
|
|
6049
|
+
keyType: ValidatorActivityKeyType;
|
|
6050
|
+
/**
|
|
6051
|
+
* Array of keys like NodeID or SubnetID corresponding to the keyType being monitored. ValidatorActivity event will only accept a single key
|
|
6052
|
+
*/
|
|
6053
|
+
keys: Array<string>;
|
|
6054
|
+
/**
|
|
6055
|
+
* Sub-events to monitor
|
|
6056
|
+
*/
|
|
6057
|
+
subEvents: ValidatorActivitySubEvents;
|
|
6058
|
+
/**
|
|
6059
|
+
* Array of node IDs to filter the events
|
|
6060
|
+
*/
|
|
6061
|
+
nodeIds?: Array<string>;
|
|
6062
|
+
/**
|
|
6063
|
+
* Array of subnet IDs to filter the events
|
|
6064
|
+
*/
|
|
6065
|
+
subnetIds?: Array<string>;
|
|
6066
|
+
/**
|
|
6067
|
+
* L1 validator fee balance threshold in nAVAX
|
|
6068
|
+
*/
|
|
6069
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
6070
|
+
};
|
|
6071
|
+
|
|
6072
|
+
type ValidatorActivityResponse = {
|
|
6073
|
+
id: string;
|
|
5070
6074
|
url: string;
|
|
5071
6075
|
chainId: string;
|
|
5072
6076
|
status: WebhookStatusType;
|
|
5073
6077
|
createdAt: number;
|
|
5074
6078
|
name: string;
|
|
5075
6079
|
description: string;
|
|
6080
|
+
eventType: ValidatorActivityEventType;
|
|
6081
|
+
metadata: ValidatorActivityMetadata;
|
|
5076
6082
|
};
|
|
5077
6083
|
|
|
5078
6084
|
type ListWebhooksResponse = {
|
|
@@ -5080,8 +6086,31 @@ type ListWebhooksResponse = {
|
|
|
5080
6086
|
* 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.
|
|
5081
6087
|
*/
|
|
5082
6088
|
nextPageToken?: string;
|
|
5083
|
-
webhooks: Array<
|
|
6089
|
+
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
declare enum PrimaryNetworkType {
|
|
6093
|
+
MAINNET = "mainnet",
|
|
6094
|
+
FUJI = "fuji"
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
type PrimaryNetworkAddressActivityRequest = {
|
|
6098
|
+
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6099
|
+
url: string;
|
|
6100
|
+
name?: string;
|
|
6101
|
+
description?: string;
|
|
6102
|
+
network: PrimaryNetworkType;
|
|
6103
|
+
chainId: string;
|
|
6104
|
+
/**
|
|
6105
|
+
* Metadata for platform address activity event
|
|
6106
|
+
*/
|
|
6107
|
+
metadata: PrimaryNetworkAddressActivityMetadata;
|
|
5084
6108
|
};
|
|
6109
|
+
declare namespace PrimaryNetworkAddressActivityRequest {
|
|
6110
|
+
enum eventType {
|
|
6111
|
+
PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
|
|
6112
|
+
}
|
|
6113
|
+
}
|
|
5085
6114
|
|
|
5086
6115
|
type SharedSecretsResponse = {
|
|
5087
6116
|
secret: string;
|
|
@@ -5092,10 +6121,30 @@ type UpdateWebhookRequest = {
|
|
|
5092
6121
|
description?: string;
|
|
5093
6122
|
url?: string;
|
|
5094
6123
|
status?: WebhookStatusType;
|
|
6124
|
+
/**
|
|
6125
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
6126
|
+
*/
|
|
5095
6127
|
includeInternalTxs?: boolean;
|
|
5096
6128
|
includeLogs?: boolean;
|
|
5097
6129
|
};
|
|
5098
6130
|
|
|
6131
|
+
type ValidatorActivityRequest = {
|
|
6132
|
+
eventType: ValidatorActivityRequest.eventType;
|
|
6133
|
+
url: string;
|
|
6134
|
+
name?: string;
|
|
6135
|
+
description?: string;
|
|
6136
|
+
network: PrimaryNetworkType;
|
|
6137
|
+
/**
|
|
6138
|
+
* Metadata for platform validator activity event
|
|
6139
|
+
*/
|
|
6140
|
+
metadata: ValidatorActivityMetadata;
|
|
6141
|
+
};
|
|
6142
|
+
declare namespace ValidatorActivityRequest {
|
|
6143
|
+
enum eventType {
|
|
6144
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
6147
|
+
|
|
5099
6148
|
declare enum WebhookStatus {
|
|
5100
6149
|
ACTIVE = "active",
|
|
5101
6150
|
INACTIVE = "inactive"
|
|
@@ -5107,12 +6156,12 @@ declare class WebhooksService {
|
|
|
5107
6156
|
/**
|
|
5108
6157
|
* Create a webhook
|
|
5109
6158
|
* Create a new webhook.
|
|
5110
|
-
* @returns
|
|
6159
|
+
* @returns any Successful response
|
|
5111
6160
|
* @throws ApiError
|
|
5112
6161
|
*/
|
|
5113
6162
|
createWebhook({ requestBody, }: {
|
|
5114
|
-
requestBody:
|
|
5115
|
-
}): CancelablePromise<
|
|
6163
|
+
requestBody: (EVMAddressActivityRequest | PrimaryNetworkAddressActivityRequest | ValidatorActivityRequest);
|
|
6164
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5116
6165
|
/**
|
|
5117
6166
|
* List webhooks
|
|
5118
6167
|
* Lists webhooks for the user.
|
|
@@ -5136,7 +6185,7 @@ declare class WebhooksService {
|
|
|
5136
6185
|
/**
|
|
5137
6186
|
* Get a webhook by ID
|
|
5138
6187
|
* Retrieves a webhook by ID.
|
|
5139
|
-
* @returns
|
|
6188
|
+
* @returns any Successful response
|
|
5140
6189
|
* @throws ApiError
|
|
5141
6190
|
*/
|
|
5142
6191
|
getWebhook({ id, }: {
|
|
@@ -5144,11 +6193,11 @@ declare class WebhooksService {
|
|
|
5144
6193
|
* The webhook identifier.
|
|
5145
6194
|
*/
|
|
5146
6195
|
id: string;
|
|
5147
|
-
}): CancelablePromise<
|
|
6196
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5148
6197
|
/**
|
|
5149
6198
|
* Deactivate a webhook
|
|
5150
6199
|
* Deactivates a webhook by ID.
|
|
5151
|
-
* @returns
|
|
6200
|
+
* @returns any Successful response
|
|
5152
6201
|
* @throws ApiError
|
|
5153
6202
|
*/
|
|
5154
6203
|
deactivateWebhook({ id, }: {
|
|
@@ -5156,11 +6205,11 @@ declare class WebhooksService {
|
|
|
5156
6205
|
* The webhook identifier.
|
|
5157
6206
|
*/
|
|
5158
6207
|
id: string;
|
|
5159
|
-
}): CancelablePromise<
|
|
6208
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5160
6209
|
/**
|
|
5161
6210
|
* Update a webhook
|
|
5162
6211
|
* Updates an existing webhook.
|
|
5163
|
-
* @returns
|
|
6212
|
+
* @returns any Successful response
|
|
5164
6213
|
* @throws ApiError
|
|
5165
6214
|
*/
|
|
5166
6215
|
updateWebhook({ id, requestBody, }: {
|
|
@@ -5169,14 +6218,14 @@ declare class WebhooksService {
|
|
|
5169
6218
|
*/
|
|
5170
6219
|
id: string;
|
|
5171
6220
|
requestBody: UpdateWebhookRequest;
|
|
5172
|
-
}): CancelablePromise<
|
|
6221
|
+
}): CancelablePromise<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
5173
6222
|
/**
|
|
5174
|
-
* Generate a shared secret
|
|
5175
|
-
* Generates a new shared secret.
|
|
6223
|
+
* Generate or rotate a shared secret
|
|
6224
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5176
6225
|
* @returns SharedSecretsResponse Successful response
|
|
5177
6226
|
* @throws ApiError
|
|
5178
6227
|
*/
|
|
5179
|
-
|
|
6228
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5180
6229
|
/**
|
|
5181
6230
|
* Get a shared secret
|
|
5182
6231
|
* Get a previously generated shared secret.
|
|
@@ -5185,9 +6234,9 @@ declare class WebhooksService {
|
|
|
5185
6234
|
*/
|
|
5186
6235
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5187
6236
|
/**
|
|
5188
|
-
* Add addresses to webhook
|
|
5189
|
-
* Add addresses to webhook.
|
|
5190
|
-
* @returns
|
|
6237
|
+
* Add addresses to EVM activity webhook
|
|
6238
|
+
* Add addresses to webhook. Only valid for EVM activity webhooks.
|
|
6239
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5191
6240
|
* @throws ApiError
|
|
5192
6241
|
*/
|
|
5193
6242
|
addAddressesToWebhook({ id, requestBody, }: {
|
|
@@ -5196,11 +6245,11 @@ declare class WebhooksService {
|
|
|
5196
6245
|
*/
|
|
5197
6246
|
id: string;
|
|
5198
6247
|
requestBody: AddressesChangeRequest;
|
|
5199
|
-
}): CancelablePromise<
|
|
6248
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5200
6249
|
/**
|
|
5201
|
-
* Remove addresses from webhook
|
|
5202
|
-
* Remove addresses from webhook.
|
|
5203
|
-
* @returns
|
|
6250
|
+
* Remove addresses from EVM activity webhook
|
|
6251
|
+
* Remove addresses from webhook. Only valid for EVM activity webhooks.
|
|
6252
|
+
* @returns EVMAddressActivityResponse Successful response
|
|
5204
6253
|
* @throws ApiError
|
|
5205
6254
|
*/
|
|
5206
6255
|
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
@@ -5209,10 +6258,10 @@ declare class WebhooksService {
|
|
|
5209
6258
|
*/
|
|
5210
6259
|
id: string;
|
|
5211
6260
|
requestBody: AddressesChangeRequest;
|
|
5212
|
-
}): CancelablePromise<
|
|
6261
|
+
}): CancelablePromise<EVMAddressActivityResponse>;
|
|
5213
6262
|
/**
|
|
5214
|
-
* List adresses by
|
|
5215
|
-
* List adresses by webhook.
|
|
6263
|
+
* List adresses by EVM activity webhooks
|
|
6264
|
+
* List adresses by webhook. Only valid for EVM activity webhooks.
|
|
5216
6265
|
* @returns ListWebhookAddressesResponse Successful response
|
|
5217
6266
|
* @throws ApiError
|
|
5218
6267
|
*/
|
|
@@ -5242,7 +6291,9 @@ declare class Glacier {
|
|
|
5242
6291
|
readonly evmContracts: EvmContractsService;
|
|
5243
6292
|
readonly evmTransactions: EvmTransactionsService;
|
|
5244
6293
|
readonly healthCheck: HealthCheckService;
|
|
6294
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5245
6295
|
readonly nfTs: NfTsService;
|
|
6296
|
+
readonly notifications: NotificationsService;
|
|
5246
6297
|
readonly operations: OperationsService;
|
|
5247
6298
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5248
6299
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5275,6 +6326,17 @@ declare class ApiError extends Error {
|
|
|
5275
6326
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
5276
6327
|
}
|
|
5277
6328
|
|
|
6329
|
+
type AccessListData = {
|
|
6330
|
+
/**
|
|
6331
|
+
* Access Address
|
|
6332
|
+
*/
|
|
6333
|
+
accessAddresses: string;
|
|
6334
|
+
/**
|
|
6335
|
+
* Storage keys
|
|
6336
|
+
*/
|
|
6337
|
+
storageKeys: Array<string>;
|
|
6338
|
+
};
|
|
6339
|
+
|
|
5278
6340
|
type BadGateway = {
|
|
5279
6341
|
/**
|
|
5280
6342
|
* The error message describing the reason for the exception
|
|
@@ -5309,6 +6371,76 @@ type DataListChainsResponse = {
|
|
|
5309
6371
|
chains: Array<ChainInfo>;
|
|
5310
6372
|
};
|
|
5311
6373
|
|
|
6374
|
+
type ERCToken = {
|
|
6375
|
+
/**
|
|
6376
|
+
* Token contract address
|
|
6377
|
+
*/
|
|
6378
|
+
address: string;
|
|
6379
|
+
/**
|
|
6380
|
+
* Token name
|
|
6381
|
+
*/
|
|
6382
|
+
name: string;
|
|
6383
|
+
/**
|
|
6384
|
+
* Token symbol
|
|
6385
|
+
*/
|
|
6386
|
+
symbol: string;
|
|
6387
|
+
/**
|
|
6388
|
+
* Token decimals
|
|
6389
|
+
*/
|
|
6390
|
+
decimals: number;
|
|
6391
|
+
/**
|
|
6392
|
+
* Value including decimals
|
|
6393
|
+
*/
|
|
6394
|
+
valueWithDecimals: string;
|
|
6395
|
+
};
|
|
6396
|
+
|
|
6397
|
+
type ERCTransfer = {
|
|
6398
|
+
/**
|
|
6399
|
+
* Transaction hash
|
|
6400
|
+
*/
|
|
6401
|
+
transactionHash: string;
|
|
6402
|
+
/**
|
|
6403
|
+
* Transfer type
|
|
6404
|
+
*/
|
|
6405
|
+
type: string;
|
|
6406
|
+
/**
|
|
6407
|
+
* Sender address
|
|
6408
|
+
*/
|
|
6409
|
+
from: string;
|
|
6410
|
+
/**
|
|
6411
|
+
* Recipient address
|
|
6412
|
+
*/
|
|
6413
|
+
to: string;
|
|
6414
|
+
/**
|
|
6415
|
+
* Amount transferred
|
|
6416
|
+
*/
|
|
6417
|
+
value: string;
|
|
6418
|
+
/**
|
|
6419
|
+
* Token Id
|
|
6420
|
+
*/
|
|
6421
|
+
tokenId?: string;
|
|
6422
|
+
/**
|
|
6423
|
+
* Block timestamp
|
|
6424
|
+
*/
|
|
6425
|
+
blockTimestamp: number;
|
|
6426
|
+
/**
|
|
6427
|
+
* Log index
|
|
6428
|
+
*/
|
|
6429
|
+
logIndex: number;
|
|
6430
|
+
/**
|
|
6431
|
+
* erc20 Token details
|
|
6432
|
+
*/
|
|
6433
|
+
erc20Token?: ERCToken;
|
|
6434
|
+
/**
|
|
6435
|
+
* erc721 Token details
|
|
6436
|
+
*/
|
|
6437
|
+
erc721Token?: ERCToken;
|
|
6438
|
+
/**
|
|
6439
|
+
* erc1155 Token details
|
|
6440
|
+
*/
|
|
6441
|
+
erc1155Token?: ERCToken;
|
|
6442
|
+
};
|
|
6443
|
+
|
|
5312
6444
|
type Forbidden = {
|
|
5313
6445
|
/**
|
|
5314
6446
|
* The error message describing the reason for the exception
|
|
@@ -5339,6 +6471,64 @@ type InternalServerError = {
|
|
|
5339
6471
|
error: string;
|
|
5340
6472
|
};
|
|
5341
6473
|
|
|
6474
|
+
type Log = {
|
|
6475
|
+
/**
|
|
6476
|
+
* Contract address
|
|
6477
|
+
*/
|
|
6478
|
+
address: string;
|
|
6479
|
+
/**
|
|
6480
|
+
* First topic
|
|
6481
|
+
*/
|
|
6482
|
+
topic0: string;
|
|
6483
|
+
/**
|
|
6484
|
+
* Second topic (optional)
|
|
6485
|
+
*/
|
|
6486
|
+
topic1?: string;
|
|
6487
|
+
/**
|
|
6488
|
+
* Third topic (optional)
|
|
6489
|
+
*/
|
|
6490
|
+
topic2?: string;
|
|
6491
|
+
/**
|
|
6492
|
+
* Fourth topic (optional)
|
|
6493
|
+
*/
|
|
6494
|
+
topic3?: string;
|
|
6495
|
+
/**
|
|
6496
|
+
* Event data
|
|
6497
|
+
*/
|
|
6498
|
+
data: string;
|
|
6499
|
+
/**
|
|
6500
|
+
* Transaction index
|
|
6501
|
+
*/
|
|
6502
|
+
transactionIndex: number;
|
|
6503
|
+
/**
|
|
6504
|
+
* Log index
|
|
6505
|
+
*/
|
|
6506
|
+
logIndex: number;
|
|
6507
|
+
/**
|
|
6508
|
+
* Indicates if the log was removed
|
|
6509
|
+
*/
|
|
6510
|
+
removed: boolean;
|
|
6511
|
+
};
|
|
6512
|
+
|
|
6513
|
+
type NetworkTokenInfo = {
|
|
6514
|
+
/**
|
|
6515
|
+
* Token name
|
|
6516
|
+
*/
|
|
6517
|
+
tokenName?: string;
|
|
6518
|
+
/**
|
|
6519
|
+
* Token symbol
|
|
6520
|
+
*/
|
|
6521
|
+
tokenSymbol?: string;
|
|
6522
|
+
/**
|
|
6523
|
+
* Token decimals
|
|
6524
|
+
*/
|
|
6525
|
+
tokenDecimals?: number;
|
|
6526
|
+
/**
|
|
6527
|
+
* Value including decimals
|
|
6528
|
+
*/
|
|
6529
|
+
valueWithDecimals?: string;
|
|
6530
|
+
};
|
|
6531
|
+
|
|
5342
6532
|
type NextPageToken = {
|
|
5343
6533
|
/**
|
|
5344
6534
|
* 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.
|
|
@@ -5391,6 +6581,163 @@ type TooManyRequests = {
|
|
|
5391
6581
|
error: string;
|
|
5392
6582
|
};
|
|
5393
6583
|
|
|
6584
|
+
type WebhookInternalTransaction = {
|
|
6585
|
+
/**
|
|
6586
|
+
* Sender address
|
|
6587
|
+
*/
|
|
6588
|
+
from: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* Recipient address
|
|
6591
|
+
*/
|
|
6592
|
+
to: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Internal transaction type
|
|
6595
|
+
*/
|
|
6596
|
+
internalTxType: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Value transferred
|
|
6599
|
+
*/
|
|
6600
|
+
value: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Gas used
|
|
6603
|
+
*/
|
|
6604
|
+
gasUsed: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Gas limit
|
|
6607
|
+
*/
|
|
6608
|
+
gasLimit: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* Transaction hash
|
|
6611
|
+
*/
|
|
6612
|
+
transactionHash: string;
|
|
6613
|
+
};
|
|
6614
|
+
|
|
6615
|
+
type Transaction = {
|
|
6616
|
+
/**
|
|
6617
|
+
* Block hash of the transaction
|
|
6618
|
+
*/
|
|
6619
|
+
blockHash: string;
|
|
6620
|
+
/**
|
|
6621
|
+
* Block number of the transaction
|
|
6622
|
+
*/
|
|
6623
|
+
blockNumber: string;
|
|
6624
|
+
/**
|
|
6625
|
+
* Sender address
|
|
6626
|
+
*/
|
|
6627
|
+
from: string;
|
|
6628
|
+
/**
|
|
6629
|
+
* Gas limit for the transaction
|
|
6630
|
+
*/
|
|
6631
|
+
gas: string;
|
|
6632
|
+
/**
|
|
6633
|
+
* Gas price used
|
|
6634
|
+
*/
|
|
6635
|
+
gasPrice: string;
|
|
6636
|
+
/**
|
|
6637
|
+
* Maximum fee per gas
|
|
6638
|
+
*/
|
|
6639
|
+
maxFeePerGas: string;
|
|
6640
|
+
/**
|
|
6641
|
+
* Maximum priority fee per gas
|
|
6642
|
+
*/
|
|
6643
|
+
maxPriorityFeePerGas: string;
|
|
6644
|
+
/**
|
|
6645
|
+
* Transaction hash
|
|
6646
|
+
*/
|
|
6647
|
+
txHash: string;
|
|
6648
|
+
/**
|
|
6649
|
+
* Transaction status
|
|
6650
|
+
*/
|
|
6651
|
+
txStatus: string;
|
|
6652
|
+
/**
|
|
6653
|
+
* Input data
|
|
6654
|
+
*/
|
|
6655
|
+
input: string;
|
|
6656
|
+
/**
|
|
6657
|
+
* Nonce value
|
|
6658
|
+
*/
|
|
6659
|
+
nonce: string;
|
|
6660
|
+
/**
|
|
6661
|
+
* Recipient address
|
|
6662
|
+
*/
|
|
6663
|
+
to: string;
|
|
6664
|
+
/**
|
|
6665
|
+
* Transaction index
|
|
6666
|
+
*/
|
|
6667
|
+
transactionIndex: number;
|
|
6668
|
+
/**
|
|
6669
|
+
* Value transferred in the transaction
|
|
6670
|
+
*/
|
|
6671
|
+
value: string;
|
|
6672
|
+
/**
|
|
6673
|
+
* Transaction type
|
|
6674
|
+
*/
|
|
6675
|
+
type: number;
|
|
6676
|
+
/**
|
|
6677
|
+
* Chain ID of the network
|
|
6678
|
+
*/
|
|
6679
|
+
chainId: string;
|
|
6680
|
+
/**
|
|
6681
|
+
* Cumulative gas used
|
|
6682
|
+
*/
|
|
6683
|
+
receiptCumulativeGasUsed: string;
|
|
6684
|
+
/**
|
|
6685
|
+
* Gas used
|
|
6686
|
+
*/
|
|
6687
|
+
receiptGasUsed: string;
|
|
6688
|
+
/**
|
|
6689
|
+
* Effective gas price
|
|
6690
|
+
*/
|
|
6691
|
+
receiptEffectiveGasPrice: string;
|
|
6692
|
+
/**
|
|
6693
|
+
* Receipt root
|
|
6694
|
+
*/
|
|
6695
|
+
receiptRoot: string;
|
|
6696
|
+
/**
|
|
6697
|
+
* Block timestamp
|
|
6698
|
+
*/
|
|
6699
|
+
blockTimestamp: number;
|
|
6700
|
+
/**
|
|
6701
|
+
* Contract address (optional)
|
|
6702
|
+
*/
|
|
6703
|
+
contractAddress?: string;
|
|
6704
|
+
/**
|
|
6705
|
+
* ERC20 transfers
|
|
6706
|
+
*/
|
|
6707
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
6708
|
+
/**
|
|
6709
|
+
* ERC721 transfers
|
|
6710
|
+
*/
|
|
6711
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
6712
|
+
/**
|
|
6713
|
+
* ERC1155 transfers
|
|
6714
|
+
*/
|
|
6715
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
6716
|
+
/**
|
|
6717
|
+
* Internal transactions (optional)
|
|
6718
|
+
*/
|
|
6719
|
+
internalTransactions?: Array<WebhookInternalTransaction>;
|
|
6720
|
+
/**
|
|
6721
|
+
* Access list (optional)
|
|
6722
|
+
*/
|
|
6723
|
+
accessList?: Array<AccessListData>;
|
|
6724
|
+
/**
|
|
6725
|
+
* Network token info (optional)
|
|
6726
|
+
*/
|
|
6727
|
+
networkToken?: NetworkTokenInfo;
|
|
6728
|
+
};
|
|
6729
|
+
|
|
6730
|
+
type TransactionEvent = {
|
|
6731
|
+
/**
|
|
6732
|
+
* Transaction details
|
|
6733
|
+
*/
|
|
6734
|
+
transaction: Transaction;
|
|
6735
|
+
/**
|
|
6736
|
+
* Array of log events
|
|
6737
|
+
*/
|
|
6738
|
+
logs?: Array<Log>;
|
|
6739
|
+
};
|
|
6740
|
+
|
|
5394
6741
|
type Unauthorized = {
|
|
5395
6742
|
/**
|
|
5396
6743
|
* The error message describing the reason for the exception
|
|
@@ -5406,4 +6753,43 @@ type Unauthorized = {
|
|
|
5406
6753
|
error: string;
|
|
5407
6754
|
};
|
|
5408
6755
|
|
|
5409
|
-
|
|
6756
|
+
type WebhookAddressActivityResponse = {
|
|
6757
|
+
/**
|
|
6758
|
+
* Webhook ID
|
|
6759
|
+
*/
|
|
6760
|
+
webhookId: string;
|
|
6761
|
+
/**
|
|
6762
|
+
* Event type
|
|
6763
|
+
*/
|
|
6764
|
+
eventType: WebhookAddressActivityResponse.eventType;
|
|
6765
|
+
/**
|
|
6766
|
+
* Message ID
|
|
6767
|
+
*/
|
|
6768
|
+
messageId: string;
|
|
6769
|
+
/**
|
|
6770
|
+
* Event details
|
|
6771
|
+
*/
|
|
6772
|
+
event: TransactionEvent;
|
|
6773
|
+
};
|
|
6774
|
+
declare namespace WebhookAddressActivityResponse {
|
|
6775
|
+
/**
|
|
6776
|
+
* Event type
|
|
6777
|
+
*/
|
|
6778
|
+
enum eventType {
|
|
6779
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
6780
|
+
}
|
|
6781
|
+
}
|
|
6782
|
+
|
|
6783
|
+
declare class FetchHttpRequest extends BaseHttpRequest {
|
|
6784
|
+
constructor(config: OpenAPIConfig);
|
|
6785
|
+
/**
|
|
6786
|
+
* Request method
|
|
6787
|
+
* @param options The request options from the service
|
|
6788
|
+
* @returns CancelablePromise<T>
|
|
6789
|
+
* @throws ApiError
|
|
6790
|
+
*/
|
|
6791
|
+
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6792
|
+
}
|
|
6793
|
+
|
|
6794
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
|
|
6795
|
+
export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|