@avalabs/glacier-sdk 3.1.0-alpha.32 → 3.1.0-alpha.34
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.d.ts +75 -67
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/Subnet.d.ts +4 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +21 -3
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +25 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/services/MultiChainService.d.ts +0 -70
- package/esm/generated/services/MultiChainService.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1107,6 +1107,26 @@ type ListEvmBlocksResponse = {
|
|
|
1107
1107
|
declare class EvmBlocksService {
|
|
1108
1108
|
readonly httpRequest: BaseHttpRequest;
|
|
1109
1109
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
|
+
/**
|
|
1111
|
+
* List latest blocks across all supported EVM chains
|
|
1112
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1114
|
+
* @throws ApiError
|
|
1115
|
+
*/
|
|
1116
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1117
|
+
/**
|
|
1118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1119
|
+
*/
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1123
|
+
*/
|
|
1124
|
+
pageSize?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Either mainnet or testnet/fuji.
|
|
1127
|
+
*/
|
|
1128
|
+
network?: Network;
|
|
1129
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1110
1130
|
/**
|
|
1111
1131
|
* List latest blocks
|
|
1112
1132
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1353,6 +1373,18 @@ declare enum TransactionStatus {
|
|
|
1353
1373
|
declare class EvmChainsService {
|
|
1354
1374
|
readonly httpRequest: BaseHttpRequest;
|
|
1355
1375
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
|
+
/**
|
|
1377
|
+
* List all chains associated with a given address
|
|
1378
|
+
* 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.
|
|
1379
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1380
|
+
* @throws ApiError
|
|
1381
|
+
*/
|
|
1382
|
+
listAddressChains({ address, }: {
|
|
1383
|
+
/**
|
|
1384
|
+
* A wallet address.
|
|
1385
|
+
*/
|
|
1386
|
+
address: string;
|
|
1387
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1356
1388
|
/**
|
|
1357
1389
|
* List chains
|
|
1358
1390
|
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
@@ -1383,7 +1415,9 @@ declare class EvmChainsService {
|
|
|
1383
1415
|
}): CancelablePromise<GetChainResponse>;
|
|
1384
1416
|
/**
|
|
1385
1417
|
* @deprecated
|
|
1386
|
-
* 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.
|
|
1418
|
+
* **[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.
|
|
1419
|
+
*
|
|
1420
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1387
1421
|
* @returns ListAddressChainsResponse Successful response
|
|
1388
1422
|
* @throws ApiError
|
|
1389
1423
|
*/
|
|
@@ -1395,7 +1429,9 @@ declare class EvmChainsService {
|
|
|
1395
1429
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1396
1430
|
/**
|
|
1397
1431
|
* @deprecated
|
|
1398
|
-
* Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1432
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1433
|
+
*
|
|
1434
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1399
1435
|
* @returns ListNativeTransactionsResponse Successful response
|
|
1400
1436
|
* @throws ApiError
|
|
1401
1437
|
*/
|
|
@@ -1419,7 +1455,9 @@ declare class EvmChainsService {
|
|
|
1419
1455
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1420
1456
|
/**
|
|
1421
1457
|
* @deprecated
|
|
1422
|
-
* Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1458
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1459
|
+
*
|
|
1460
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1423
1461
|
* @returns ListEvmBlocksResponse Successful response
|
|
1424
1462
|
* @throws ApiError
|
|
1425
1463
|
*/
|
|
@@ -2182,6 +2220,30 @@ declare enum SortOrder {
|
|
|
2182
2220
|
declare class EvmTransactionsService {
|
|
2183
2221
|
readonly httpRequest: BaseHttpRequest;
|
|
2184
2222
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
|
+
/**
|
|
2224
|
+
* List the latest transactions across all supported EVM chains
|
|
2225
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2230
|
+
/**
|
|
2231
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2232
|
+
*/
|
|
2233
|
+
pageToken?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2236
|
+
*/
|
|
2237
|
+
pageSize?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Either mainnet or testnet/fuji.
|
|
2240
|
+
*/
|
|
2241
|
+
network?: Network;
|
|
2242
|
+
/**
|
|
2243
|
+
* A status filter for listed transactions.
|
|
2244
|
+
*/
|
|
2245
|
+
status?: TransactionStatus;
|
|
2246
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2185
2247
|
/**
|
|
2186
2248
|
* Get deployment transaction
|
|
2187
2249
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2540,67 +2602,6 @@ declare class HealthCheckService {
|
|
|
2540
2602
|
}>;
|
|
2541
2603
|
}
|
|
2542
2604
|
|
|
2543
|
-
declare class MultiChainService {
|
|
2544
|
-
readonly httpRequest: BaseHttpRequest;
|
|
2545
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
2546
|
-
/**
|
|
2547
|
-
* Get chains for address
|
|
2548
|
-
* 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.
|
|
2549
|
-
* @returns ListAddressChainsResponse Successful response
|
|
2550
|
-
* @throws ApiError
|
|
2551
|
-
*/
|
|
2552
|
-
getAddressChains({ address, }: {
|
|
2553
|
-
/**
|
|
2554
|
-
* A wallet address.
|
|
2555
|
-
*/
|
|
2556
|
-
address: string;
|
|
2557
|
-
}): CancelablePromise<ListAddressChainsResponse>;
|
|
2558
|
-
/**
|
|
2559
|
-
* List latest transactions for all supported EVM chains
|
|
2560
|
-
* Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
2561
|
-
* @returns ListNativeTransactionsResponse Successful response
|
|
2562
|
-
* @throws ApiError
|
|
2563
|
-
*/
|
|
2564
|
-
listAllLatestTransactions({ pageToken, pageSize, network, status, }: {
|
|
2565
|
-
/**
|
|
2566
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2567
|
-
*/
|
|
2568
|
-
pageToken?: string;
|
|
2569
|
-
/**
|
|
2570
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2571
|
-
*/
|
|
2572
|
-
pageSize?: number;
|
|
2573
|
-
/**
|
|
2574
|
-
* Either mainnet or testnet/fuji.
|
|
2575
|
-
*/
|
|
2576
|
-
network?: Network;
|
|
2577
|
-
/**
|
|
2578
|
-
* A status filter for listed transactions.
|
|
2579
|
-
*/
|
|
2580
|
-
status?: TransactionStatus;
|
|
2581
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2582
|
-
/**
|
|
2583
|
-
* List latest blocks for all supported EVM chains
|
|
2584
|
-
* Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
2585
|
-
* @returns ListEvmBlocksResponse Successful response
|
|
2586
|
-
* @throws ApiError
|
|
2587
|
-
*/
|
|
2588
|
-
listAllLatestBlocks({ pageToken, pageSize, network, }: {
|
|
2589
|
-
/**
|
|
2590
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2591
|
-
*/
|
|
2592
|
-
pageToken?: string;
|
|
2593
|
-
/**
|
|
2594
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2595
|
-
*/
|
|
2596
|
-
pageSize?: number;
|
|
2597
|
-
/**
|
|
2598
|
-
* Either mainnet or testnet/fuji.
|
|
2599
|
-
*/
|
|
2600
|
-
network?: Network;
|
|
2601
|
-
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
2605
|
type ListNftTokens = {
|
|
2605
2606
|
/**
|
|
2606
2607
|
* 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.
|
|
@@ -3027,6 +3028,10 @@ type Subnet = {
|
|
|
3027
3028
|
* Whether the subnet is an L1 or not.
|
|
3028
3029
|
*/
|
|
3029
3030
|
isL1: boolean;
|
|
3031
|
+
/**
|
|
3032
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3033
|
+
*/
|
|
3034
|
+
l1ConversionTransactionHash?: string;
|
|
3030
3035
|
/**
|
|
3031
3036
|
* L1 validator manager details.
|
|
3032
3037
|
*/
|
|
@@ -5015,7 +5020,11 @@ declare class SignatureAggregatorService {
|
|
|
5015
5020
|
* @returns SignatureAggregationResponse Successful response
|
|
5016
5021
|
* @throws ApiError
|
|
5017
5022
|
*/
|
|
5018
|
-
aggregateSignatures({ requestBody, }: {
|
|
5023
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5024
|
+
/**
|
|
5025
|
+
* Either mainnet or testnet/fuji.
|
|
5026
|
+
*/
|
|
5027
|
+
network: Network;
|
|
5019
5028
|
requestBody: SignatureAggregatorRequest;
|
|
5020
5029
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
5021
5030
|
}
|
|
@@ -5478,7 +5487,6 @@ declare class Glacier {
|
|
|
5478
5487
|
readonly evmContracts: EvmContractsService;
|
|
5479
5488
|
readonly evmTransactions: EvmTransactionsService;
|
|
5480
5489
|
readonly healthCheck: HealthCheckService;
|
|
5481
|
-
readonly multiChain: MultiChainService;
|
|
5482
5490
|
readonly nfTs: NfTsService;
|
|
5483
5491
|
readonly operations: OperationsService;
|
|
5484
5492
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -5643,4 +5651,4 @@ type Unauthorized = {
|
|
|
5643
5651
|
error: string;
|
|
5644
5652
|
};
|
|
5645
5653
|
|
|
5646
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money,
|
|
5654
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|