@avalabs/glacier-sdk 3.1.0-canary.d038ef8.0 → 3.1.0-canary.d05a869.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.d.ts CHANGED
@@ -54,16 +54,63 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type AvaxSupplyResponse = {
58
+ /**
59
+ * The circulating supply of AVAX.
60
+ */
61
+ circulatingSupply: string;
62
+ /**
63
+ * The total supply of AVAX.
64
+ */
65
+ totalSupply: string;
66
+ /**
67
+ * Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
72
+ */
73
+ totalCBurned: string;
74
+ /**
75
+ * The total X-chain burned fees of AVAX.
76
+ */
77
+ totalXBurned: string;
78
+ /**
79
+ * The total staked AVAX.
80
+ */
81
+ totalStaked: string;
82
+ /**
83
+ * The total locked AVAX.
84
+ */
85
+ totalLocked: string;
86
+ /**
87
+ * The total rewards AVAX.
88
+ */
89
+ totalRewards: string;
90
+ /**
91
+ * The last updated time of the AVAX supply.
92
+ */
93
+ lastUpdated: string;
94
+ /**
95
+ * The genesis unlock amount of the AVAX supply.
96
+ */
97
+ genesisUnlock: string;
98
+ /**
99
+ * The total L1 validator fees of AVAX.
100
+ */
101
+ l1ValidatorFees: string;
102
+ };
103
+
57
104
  declare class AvaxSupplyService {
58
105
  readonly httpRequest: BaseHttpRequest;
59
106
  constructor(httpRequest: BaseHttpRequest);
60
107
  /**
61
108
  * Get AVAX supply information
62
109
  * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
63
- * @returns void
110
+ * @returns AvaxSupplyResponse Successful response
64
111
  * @throws ApiError
65
112
  */
66
- getAvaxSupply(): CancelablePromise<void>;
113
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
67
114
  }
68
115
 
69
116
  type LogsFormatMetadata = {
@@ -2716,11 +2763,18 @@ declare class HealthCheckService {
2716
2763
  constructor(httpRequest: BaseHttpRequest);
2717
2764
  /**
2718
2765
  * Get the health of the service
2719
- * Check the health of the service.
2720
- * @returns HealthCheckResultDto The health of the service
2766
+ * Check the health of the service. This checks the read and write health of the database and cache.
2767
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2721
2768
  * @throws ApiError
2722
2769
  */
2723
2770
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2771
+ /**
2772
+ * Get the liveliness of the service (reads only)
2773
+ * Check the liveliness of the service (reads only).
2774
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2775
+ * @throws ApiError
2776
+ */
2777
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2724
2778
  }
2725
2779
 
2726
2780
  type IcmDestinationTransaction = {
@@ -3238,6 +3292,252 @@ declare class OperationsService {
3238
3292
  }): CancelablePromise<OperationStatusResponse>;
3239
3293
  }
3240
3294
 
3295
+ type EvmGenesisAllocDto = {
3296
+ /**
3297
+ * Account balance in hex format
3298
+ */
3299
+ balance?: string;
3300
+ /**
3301
+ * Contract bytecode in hex format
3302
+ */
3303
+ code?: string;
3304
+ /**
3305
+ * Contract storage slots
3306
+ */
3307
+ storage?: Record<string, string>;
3308
+ };
3309
+
3310
+ type EvmGenesisAllowListConfigDto = {
3311
+ /**
3312
+ * Block timestamp
3313
+ */
3314
+ blockTimestamp?: number;
3315
+ /**
3316
+ * Admin addresses
3317
+ */
3318
+ adminAddresses?: Array<string>;
3319
+ /**
3320
+ * Manager addresses
3321
+ */
3322
+ managerAddresses?: Array<string>;
3323
+ /**
3324
+ * Enabled addresses
3325
+ */
3326
+ enabledAddresses?: Array<string>;
3327
+ };
3328
+
3329
+ type EvmGenesisFeeConfigDto = {
3330
+ /**
3331
+ * Base fee change denominator
3332
+ */
3333
+ baseFeeChangeDenominator?: number;
3334
+ /**
3335
+ * Block gas cost step
3336
+ */
3337
+ blockGasCostStep?: number;
3338
+ /**
3339
+ * Gas limit
3340
+ */
3341
+ gasLimit?: number;
3342
+ /**
3343
+ * Maximum block gas cost
3344
+ */
3345
+ maxBlockGasCost?: number;
3346
+ /**
3347
+ * Minimum base fee
3348
+ */
3349
+ minBaseFee?: number;
3350
+ /**
3351
+ * Minimum block gas cost
3352
+ */
3353
+ minBlockGasCost?: number;
3354
+ /**
3355
+ * Target block rate
3356
+ */
3357
+ targetBlockRate?: number;
3358
+ /**
3359
+ * Target gas
3360
+ */
3361
+ targetGas?: number;
3362
+ };
3363
+
3364
+ type EvmGenesisWarpConfigDto = {
3365
+ /**
3366
+ * Block timestamp
3367
+ */
3368
+ blockTimestamp?: number;
3369
+ /**
3370
+ * Quorum numerator
3371
+ */
3372
+ quorumNumerator?: number;
3373
+ /**
3374
+ * Require primary network signers
3375
+ */
3376
+ requirePrimaryNetworkSigners?: boolean;
3377
+ };
3378
+
3379
+ type EvmGenesisConfigDto = {
3380
+ /**
3381
+ * Berlin block number
3382
+ */
3383
+ berlinBlock?: number;
3384
+ /**
3385
+ * Byzantium block number
3386
+ */
3387
+ byzantiumBlock?: number;
3388
+ /**
3389
+ * Chain ID
3390
+ */
3391
+ chainId?: number;
3392
+ /**
3393
+ * Constantinople block number
3394
+ */
3395
+ constantinopleBlock?: number;
3396
+ /**
3397
+ * EIP-150 block number
3398
+ */
3399
+ eip150Block?: number;
3400
+ /**
3401
+ * EIP-150 hash
3402
+ */
3403
+ eip150Hash?: string;
3404
+ /**
3405
+ * EIP-155 block number
3406
+ */
3407
+ eip155Block?: number;
3408
+ /**
3409
+ * EIP-158 block number
3410
+ */
3411
+ eip158Block?: number;
3412
+ /**
3413
+ * Fee configuration
3414
+ */
3415
+ feeConfig?: EvmGenesisFeeConfigDto;
3416
+ /**
3417
+ * Homestead block number
3418
+ */
3419
+ homesteadBlock?: number;
3420
+ /**
3421
+ * Istanbul block number
3422
+ */
3423
+ istanbulBlock?: number;
3424
+ /**
3425
+ * London block number
3426
+ */
3427
+ londonBlock?: number;
3428
+ /**
3429
+ * Muir Glacier block number
3430
+ */
3431
+ muirGlacierBlock?: number;
3432
+ /**
3433
+ * Petersburg block number
3434
+ */
3435
+ petersburgBlock?: number;
3436
+ /**
3437
+ * Subnet EVM timestamp
3438
+ */
3439
+ subnetEVMTimestamp?: number;
3440
+ /**
3441
+ * Allow fee recipients
3442
+ */
3443
+ allowFeeRecipients?: boolean;
3444
+ /**
3445
+ * Warp configuration
3446
+ */
3447
+ warpConfig?: EvmGenesisWarpConfigDto;
3448
+ /**
3449
+ * Transaction allow list configuration
3450
+ */
3451
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3452
+ /**
3453
+ * Contract deployer allow list configuration
3454
+ */
3455
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3456
+ /**
3457
+ * Contract native minter configuration
3458
+ */
3459
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3460
+ /**
3461
+ * Fee manager configuration
3462
+ */
3463
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3464
+ /**
3465
+ * Reward manager configuration
3466
+ */
3467
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3468
+ };
3469
+
3470
+ type EvmGenesisDto = {
3471
+ /**
3472
+ * Airdrop amount
3473
+ */
3474
+ airdropAmount?: number | null;
3475
+ /**
3476
+ * Airdrop hash
3477
+ */
3478
+ airdropHash?: string;
3479
+ /**
3480
+ * Allocation of accounts and balances
3481
+ */
3482
+ alloc?: Record<string, EvmGenesisAllocDto>;
3483
+ /**
3484
+ * Base fee per gas
3485
+ */
3486
+ baseFeePerGas?: number | null;
3487
+ /**
3488
+ * Blob gas used
3489
+ */
3490
+ blobGasUsed?: string | null;
3491
+ /**
3492
+ * Coinbase address
3493
+ */
3494
+ coinbase?: string;
3495
+ /**
3496
+ * Genesis configuration
3497
+ */
3498
+ config?: EvmGenesisConfigDto;
3499
+ /**
3500
+ * Difficulty
3501
+ */
3502
+ difficulty?: string;
3503
+ /**
3504
+ * Excess blob gas
3505
+ */
3506
+ excessBlobGas?: string | null;
3507
+ /**
3508
+ * Extra data
3509
+ */
3510
+ extraData?: string;
3511
+ /**
3512
+ * Gas limit
3513
+ */
3514
+ gasLimit?: string;
3515
+ /**
3516
+ * Gas used
3517
+ */
3518
+ gasUsed?: string;
3519
+ /**
3520
+ * Mix hash
3521
+ */
3522
+ mixHash?: string;
3523
+ /**
3524
+ * Nonce
3525
+ */
3526
+ nonce?: string;
3527
+ /**
3528
+ * Block number
3529
+ */
3530
+ number?: string;
3531
+ /**
3532
+ * Parent hash
3533
+ */
3534
+ parentHash?: string;
3535
+ /**
3536
+ * Block timestamp
3537
+ */
3538
+ timestamp?: string;
3539
+ };
3540
+
3241
3541
  type Blockchain = {
3242
3542
  createBlockTimestamp: number;
3243
3543
  createBlockNumber: string;
@@ -3248,11 +3548,11 @@ type Blockchain = {
3248
3548
  /**
3249
3549
  * EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
3250
3550
  */
3251
- evmChainId: number;
3551
+ evmChainId?: number;
3252
3552
  /**
3253
- * The genesis data of the blockchain.
3553
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
3254
3554
  */
3255
- genesisData?: Record<string, any>;
3555
+ genesisData?: (EvmGenesisDto | string);
3256
3556
  };
3257
3557
 
3258
3558
  declare enum BlockchainIds {
@@ -4685,6 +4985,10 @@ type Utxo = {
4685
4985
  * UTXO ID for this output.
4686
4986
  */
4687
4987
  utxoId: string;
4988
+ /**
4989
+ * The bytes of the UTXO
4990
+ */
4991
+ utxoBytes?: string;
4688
4992
  /**
4689
4993
  * Unix timestamp in seconds at which this output was consumed.
4690
4994
  */
@@ -4859,7 +5163,7 @@ type BlockchainInfo = {
4859
5163
  /**
4860
5164
  * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
4861
5165
  */
4862
- genesisData?: Record<string, any>;
5166
+ genesisData?: (EvmGenesisDto | string);
4863
5167
  };
4864
5168
 
4865
5169
  type L1ValidatorDetailsTransaction = {
@@ -4942,6 +5246,10 @@ type PChainUtxo = {
4942
5246
  * UTXO ID for this output.
4943
5247
  */
4944
5248
  utxoId: string;
5249
+ /**
5250
+ * The bytes of the UTXO
5251
+ */
5252
+ utxoBytes?: string;
4945
5253
  /**
4946
5254
  * @deprecated
4947
5255
  */
@@ -5464,6 +5772,18 @@ type ListUtxosResponse = {
5464
5772
  chainInfo: PrimaryNetworkChainInfo;
5465
5773
  };
5466
5774
 
5775
+ type PrimaryNetworkAddressesBodyDto = {
5776
+ /**
5777
+ * Comma-separated list of primary network addresses
5778
+ */
5779
+ addresses: string;
5780
+ };
5781
+
5782
+ declare enum UtxosSortByOption {
5783
+ TIMESTAMP = "timestamp",
5784
+ AMOUNT = "amount"
5785
+ }
5786
+
5467
5787
  declare class PrimaryNetworkUtxOsService {
5468
5788
  readonly httpRequest: BaseHttpRequest;
5469
5789
  constructor(httpRequest: BaseHttpRequest);
@@ -5473,7 +5793,7 @@ declare class PrimaryNetworkUtxOsService {
5473
5793
  * @returns any Successful response
5474
5794
  * @throws ApiError
5475
5795
  */
5476
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5796
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5477
5797
  /**
5478
5798
  * A primary network blockchain id or alias.
5479
5799
  */
@@ -5498,10 +5818,63 @@ declare class PrimaryNetworkUtxOsService {
5498
5818
  * Asset ID for any asset (only applicable X-Chain)
5499
5819
  */
5500
5820
  assetId?: string;
5821
+ /**
5822
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5823
+ */
5824
+ minUtxoAmount?: number;
5825
+ /**
5826
+ * Boolean filter to include spent UTXOs.
5827
+ */
5828
+ includeSpent?: boolean;
5829
+ /**
5830
+ * Which property to sort by, in conjunction with sortOrder.
5831
+ */
5832
+ sortBy?: UtxosSortByOption;
5833
+ /**
5834
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
5835
+ */
5836
+ sortOrder?: SortOrder;
5837
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5838
+ /**
5839
+ * List UTXOs v2 - Supports querying for more addresses
5840
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5841
+ * @returns any Successful response
5842
+ * @throws ApiError
5843
+ */
5844
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5845
+ /**
5846
+ * A primary network blockchain id or alias.
5847
+ */
5848
+ blockchainId: BlockchainId;
5849
+ /**
5850
+ * Either mainnet or testnet/fuji.
5851
+ */
5852
+ network: Network;
5853
+ requestBody: PrimaryNetworkAddressesBodyDto;
5854
+ /**
5855
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5856
+ */
5857
+ pageToken?: string;
5858
+ /**
5859
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5860
+ */
5861
+ pageSize?: number;
5862
+ /**
5863
+ * Asset ID for any asset (only applicable X-Chain)
5864
+ */
5865
+ assetId?: string;
5866
+ /**
5867
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5868
+ */
5869
+ minUtxoAmount?: number;
5501
5870
  /**
5502
5871
  * Boolean filter to include spent UTXOs.
5503
5872
  */
5504
5873
  includeSpent?: boolean;
5874
+ /**
5875
+ * Which property to sort by, in conjunction with sortOrder.
5876
+ */
5877
+ sortBy?: UtxosSortByOption;
5505
5878
  /**
5506
5879
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
5507
5880
  */
@@ -5615,10 +5988,30 @@ type SignatureAggregationResponse = {
5615
5988
  };
5616
5989
 
5617
5990
  type SignatureAggregatorRequest = {
5618
- message: string;
5991
+ /**
5992
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
5993
+ */
5994
+ message?: string;
5995
+ /**
5996
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
5997
+ */
5619
5998
  justification?: string;
5999
+ /**
6000
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
6001
+ */
5620
6002
  signingSubnetId?: string;
6003
+ /**
6004
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
6005
+ */
5621
6006
  quorumPercentage?: number;
6007
+ /**
6008
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
6009
+ */
6010
+ quorumPercentageBuffer?: number;
6011
+ /**
6012
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
6013
+ */
6014
+ pChainHeight?: number;
5622
6015
  };
5623
6016
 
5624
6017
  declare class SignatureAggregatorService {
@@ -6804,5 +7197,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6804
7197
  request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6805
7198
  }
6806
7199
 
6807
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6808
- export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
7200
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
7201
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
@@ -1 +1 @@
1
- import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{AvaxSupplyService as r}from"./services/AvaxSupplyService.js";import{DataApiUsageMetricsService as s}from"./services/DataApiUsageMetricsService.js";import{DefaultService as i}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as o}from"./services/EvmBlocksService.js";import{EvmChainsService as a}from"./services/EvmChainsService.js";import{EvmContractsService as c}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as n}from"./services/HealthCheckService.js";import{InterchainMessagingService as h}from"./services/InterchainMessagingService.js";import{NfTsService as v}from"./services/NfTsService.js";import{NotificationsService as p}from"./services/NotificationsService.js";import{OperationsService as w}from"./services/OperationsService.js";import{PrimaryNetworkService as S}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as u}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as f}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as E}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as l}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as j}from"./services/TeleporterService.js";import{WebhooksService as y}from"./services/WebhooksService.js";class g{avaxSupply;dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,A=e){this.request=new A({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"1.0.0",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.avaxSupply=new r(this.request),this.dataApiUsageMetrics=new s(this.request),this.default=new i(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new o(this.request),this.evmChains=new a(this.request),this.evmContracts=new c(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new n(this.request),this.interchainMessaging=new h(this.request),this.nfTs=new v(this.request),this.notifications=new p(this.request),this.operations=new w(this.request),this.primaryNetwork=new S(this.request),this.primaryNetworkBalances=new u(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new f(this.request),this.primaryNetworkUtxOs=new E(this.request),this.primaryNetworkVertices=new l(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new j(this.request),this.webhooks=new y(this.request)}}export{g as Glacier};
1
+ import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{AvaxSupplyService as r}from"./services/AvaxSupplyService.js";import{DataApiUsageMetricsService as s}from"./services/DataApiUsageMetricsService.js";import{DefaultService as i}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as o}from"./services/EvmBlocksService.js";import{EvmChainsService as a}from"./services/EvmChainsService.js";import{EvmContractsService as c}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as n}from"./services/HealthCheckService.js";import{InterchainMessagingService as h}from"./services/InterchainMessagingService.js";import{NfTsService as v}from"./services/NfTsService.js";import{NotificationsService as p}from"./services/NotificationsService.js";import{OperationsService as w}from"./services/OperationsService.js";import{PrimaryNetworkService as S}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as u}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as f}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as E}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as l}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as j}from"./services/TeleporterService.js";import{WebhooksService as y}from"./services/WebhooksService.js";class g{avaxSupply;dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,A=e){this.request=new A({BASE:g?.BASE??"https://data-api-dev.avax.network",VERSION:g?.VERSION??"1.0.0",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.avaxSupply=new r(this.request),this.dataApiUsageMetrics=new s(this.request),this.default=new i(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new o(this.request),this.evmChains=new a(this.request),this.evmContracts=new c(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new n(this.request),this.interchainMessaging=new h(this.request),this.nfTs=new v(this.request),this.notifications=new p(this.request),this.operations=new w(this.request),this.primaryNetwork=new S(this.request),this.primaryNetworkBalances=new u(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new f(this.request),this.primaryNetworkUtxOs=new E(this.request),this.primaryNetworkVertices=new l(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new j(this.request),this.webhooks=new y(this.request)}}export{g as Glacier};
@@ -1 +1 @@
1
- const E={BASE:"https://glacier-api-dev.avax.network",VERSION:"1.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};export{E as OpenAPI};
1
+ const E={BASE:"https://data-api-dev.avax.network",VERSION:"1.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};export{E as OpenAPI};
@@ -0,0 +1,48 @@
1
+ type AvaxSupplyResponse = {
2
+ /**
3
+ * The circulating supply of AVAX.
4
+ */
5
+ circulatingSupply: string;
6
+ /**
7
+ * The total supply of AVAX.
8
+ */
9
+ totalSupply: string;
10
+ /**
11
+ * Represents the total amount of AVAX burned on the P-Chain. This value includes AVAX lost when the sum of input UTXOs exceeds the sum of output UTXOs—potentially by more than the expected transaction fee, such as in malformed or improperly constructed transactions—as well as all L1 validator fees that have been burned to date.
12
+ */
13
+ totalPBurned: string;
14
+ /**
15
+ * Represents the total amount of AVAX burned on the C-Chain. This value includes the total amount of AVAX burned on the C-Chain in evm txns and the total amount of AVAX burned on the C-Chain in atomic txns.
16
+ */
17
+ totalCBurned: string;
18
+ /**
19
+ * The total X-chain burned fees of AVAX.
20
+ */
21
+ totalXBurned: string;
22
+ /**
23
+ * The total staked AVAX.
24
+ */
25
+ totalStaked: string;
26
+ /**
27
+ * The total locked AVAX.
28
+ */
29
+ totalLocked: string;
30
+ /**
31
+ * The total rewards AVAX.
32
+ */
33
+ totalRewards: string;
34
+ /**
35
+ * The last updated time of the AVAX supply.
36
+ */
37
+ lastUpdated: string;
38
+ /**
39
+ * The genesis unlock amount of the AVAX supply.
40
+ */
41
+ genesisUnlock: string;
42
+ /**
43
+ * The total L1 validator fees of AVAX.
44
+ */
45
+ l1ValidatorFees: string;
46
+ };
47
+
48
+ export type { AvaxSupplyResponse };
@@ -1,3 +1,5 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type Blockchain = {
2
4
  createBlockTimestamp: number;
3
5
  createBlockNumber: string;
@@ -8,11 +10,11 @@ type Blockchain = {
8
10
  /**
9
11
  * 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.
10
12
  */
11
- evmChainId: number;
13
+ evmChainId?: number;
12
14
  /**
13
- * The genesis data of the blockchain.
15
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
14
16
  */
15
- genesisData?: Record<string, any>;
17
+ genesisData?: (EvmGenesisDto | string);
16
18
  };
17
19
 
18
20
  export type { Blockchain };
@@ -1,10 +1,12 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type BlockchainInfo = {
2
4
  chainName: string;
3
5
  vmId: string;
4
6
  /**
5
7
  * 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
6
8
  */
7
- genesisData?: Record<string, any>;
9
+ genesisData?: (EvmGenesisDto | string);
8
10
  };
9
11
 
10
12
  export type { BlockchainInfo };
@@ -0,0 +1,16 @@
1
+ type EvmGenesisAllocDto = {
2
+ /**
3
+ * Account balance in hex format
4
+ */
5
+ balance?: string;
6
+ /**
7
+ * Contract bytecode in hex format
8
+ */
9
+ code?: string;
10
+ /**
11
+ * Contract storage slots
12
+ */
13
+ storage?: Record<string, string>;
14
+ };
15
+
16
+ export type { EvmGenesisAllocDto };
@@ -0,0 +1,20 @@
1
+ type EvmGenesisAllowListConfigDto = {
2
+ /**
3
+ * Block timestamp
4
+ */
5
+ blockTimestamp?: number;
6
+ /**
7
+ * Admin addresses
8
+ */
9
+ adminAddresses?: Array<string>;
10
+ /**
11
+ * Manager addresses
12
+ */
13
+ managerAddresses?: Array<string>;
14
+ /**
15
+ * Enabled addresses
16
+ */
17
+ enabledAddresses?: Array<string>;
18
+ };
19
+
20
+ export type { EvmGenesisAllowListConfigDto };