@avalabs/glacier-sdk 3.1.0-alpha.67 → 3.1.0-alpha.69

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.
Files changed (28) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +370 -21
  3. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  4. package/esm/generated/models/Blockchain.d.ts +5 -3
  5. package/esm/generated/models/BlockchainInfo.d.ts +3 -1
  6. package/esm/generated/models/Erc1155Transfer.d.ts +5 -1
  7. package/esm/generated/models/Erc20Transfer.d.ts +5 -1
  8. package/esm/generated/models/Erc721Transfer.d.ts +5 -1
  9. package/esm/generated/models/EvmBlock.d.ts +9 -1
  10. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  11. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  12. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  13. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  14. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  15. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  16. package/esm/generated/models/FullNativeTransactionDetails.d.ts +9 -1
  17. package/esm/generated/models/GetEvmBlockResponse.d.ts +9 -1
  18. package/esm/generated/models/InternalTransaction.d.ts +5 -1
  19. package/esm/generated/models/NativeTransaction.d.ts +9 -1
  20. package/esm/generated/models/PChainTransaction.d.ts +1 -1
  21. package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
  22. package/esm/generated/services/EvmBlocksService.d.ts +1 -1
  23. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  24. package/esm/generated/services/EvmTransactionsService.d.ts +1 -1
  25. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +10 -2
  26. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  27. package/esm/index.d.ts +7 -0
  28. package/package.json +2 -2
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 = {
@@ -1104,9 +1151,17 @@ type GetEvmBlockResponse = {
1104
1151
  */
1105
1152
  blockNumber: string;
1106
1153
  /**
1107
- * The block finality timestamp.
1154
+ * The block creation (proposal) timestamp in seconds
1108
1155
  */
1109
1156
  blockTimestamp: number;
1157
+ /**
1158
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1159
+ */
1160
+ blockTimestampMilliseconds?: number;
1161
+ /**
1162
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1163
+ */
1164
+ blockMinDelayExcess?: number;
1110
1165
  /**
1111
1166
  * The block hash identifier.
1112
1167
  */
@@ -1152,9 +1207,17 @@ type EvmBlock = {
1152
1207
  */
1153
1208
  blockNumber: string;
1154
1209
  /**
1155
- * The block finality timestamp.
1210
+ * The block creation (proposal) timestamp in seconds
1156
1211
  */
1157
1212
  blockTimestamp: number;
1213
+ /**
1214
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1215
+ */
1216
+ blockTimestampMilliseconds?: number;
1217
+ /**
1218
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1219
+ */
1220
+ blockMinDelayExcess?: number;
1158
1221
  /**
1159
1222
  * The block hash identifier.
1160
1223
  */
@@ -1203,7 +1266,7 @@ declare class EvmBlocksService {
1203
1266
  constructor(httpRequest: BaseHttpRequest);
1204
1267
  /**
1205
1268
  * List latest blocks across all supported EVM chains
1206
- * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1269
+ * Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
1207
1270
  * @returns ListEvmBlocksResponse Successful response
1208
1271
  * @throws ApiError
1209
1272
  */
@@ -1402,9 +1465,17 @@ type NativeTransaction = {
1402
1465
  */
1403
1466
  blockNumber: string;
1404
1467
  /**
1405
- * The block finality timestamp.
1468
+ * The block creation (proposal) timestamp in seconds
1406
1469
  */
1407
1470
  blockTimestamp: number;
1471
+ /**
1472
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
1473
+ */
1474
+ blockTimestampMilliseconds?: number;
1475
+ /**
1476
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
1477
+ */
1478
+ blockMinDelayExcess?: number;
1408
1479
  /**
1409
1480
  * The block hash identifier.
1410
1481
  */
@@ -1469,7 +1540,7 @@ declare class EvmChainsService {
1469
1540
  constructor(httpRequest: BaseHttpRequest);
1470
1541
  /**
1471
1542
  * List all chains associated with a given address
1472
- * 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.
1543
+ * 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.
1473
1544
  * @returns ListAddressChainsResponse Successful response
1474
1545
  * @throws ApiError
1475
1546
  */
@@ -1993,9 +2064,17 @@ type FullNativeTransactionDetails = {
1993
2064
  */
1994
2065
  blockNumber: string;
1995
2066
  /**
1996
- * The block finality timestamp.
2067
+ * The block creation (proposal) timestamp in seconds
1997
2068
  */
1998
2069
  blockTimestamp: number;
2070
+ /**
2071
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2072
+ */
2073
+ blockTimestampMilliseconds?: number;
2074
+ /**
2075
+ * Minimum block delay in milliseconds. Available only after Granite upgrade.
2076
+ */
2077
+ blockMinDelayExcess?: number;
1999
2078
  /**
2000
2079
  * The block hash identifier.
2001
2080
  */
@@ -2142,9 +2221,13 @@ type Erc1155Transfer = {
2142
2221
  */
2143
2222
  blockNumber: string;
2144
2223
  /**
2145
- * The block finality timestamp.
2224
+ * The block creation (proposal) timestamp in seconds
2146
2225
  */
2147
2226
  blockTimestamp: number;
2227
+ /**
2228
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2229
+ */
2230
+ blockTimestampMilliseconds?: number;
2148
2231
  /**
2149
2232
  * The block hash identifier.
2150
2233
  */
@@ -2174,9 +2257,13 @@ type Erc20Transfer = {
2174
2257
  */
2175
2258
  blockNumber: string;
2176
2259
  /**
2177
- * The block finality timestamp.
2260
+ * The block creation (proposal) timestamp in seconds
2178
2261
  */
2179
2262
  blockTimestamp: number;
2263
+ /**
2264
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2265
+ */
2266
+ blockTimestampMilliseconds?: number;
2180
2267
  /**
2181
2268
  * The block hash identifier.
2182
2269
  */
@@ -2206,9 +2293,13 @@ type Erc721Transfer = {
2206
2293
  */
2207
2294
  blockNumber: string;
2208
2295
  /**
2209
- * The block finality timestamp.
2296
+ * The block creation (proposal) timestamp in seconds
2210
2297
  */
2211
2298
  blockTimestamp: number;
2299
+ /**
2300
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2301
+ */
2302
+ blockTimestampMilliseconds?: number;
2212
2303
  /**
2213
2304
  * The block hash identifier.
2214
2305
  */
@@ -2237,9 +2328,13 @@ type InternalTransaction = {
2237
2328
  */
2238
2329
  blockNumber: string;
2239
2330
  /**
2240
- * The block finality timestamp.
2331
+ * The block creation (proposal) timestamp in seconds
2241
2332
  */
2242
2333
  blockTimestamp: number;
2334
+ /**
2335
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
2336
+ */
2337
+ blockTimestampMilliseconds?: number;
2243
2338
  /**
2244
2339
  * The block hash identifier.
2245
2340
  */
@@ -2317,7 +2412,7 @@ declare class EvmTransactionsService {
2317
2412
  constructor(httpRequest: BaseHttpRequest);
2318
2413
  /**
2319
2414
  * List the latest transactions across all supported EVM chains
2320
- * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2415
+ * Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
2321
2416
  * @returns ListNativeTransactionsResponse Successful response
2322
2417
  * @throws ApiError
2323
2418
  */
@@ -3245,6 +3340,252 @@ declare class OperationsService {
3245
3340
  }): CancelablePromise<OperationStatusResponse>;
3246
3341
  }
3247
3342
 
3343
+ type EvmGenesisAllocDto = {
3344
+ /**
3345
+ * Account balance in hex format
3346
+ */
3347
+ balance?: string;
3348
+ /**
3349
+ * Contract bytecode in hex format
3350
+ */
3351
+ code?: string;
3352
+ /**
3353
+ * Contract storage slots
3354
+ */
3355
+ storage?: Record<string, string>;
3356
+ };
3357
+
3358
+ type EvmGenesisAllowListConfigDto = {
3359
+ /**
3360
+ * Block timestamp
3361
+ */
3362
+ blockTimestamp?: number;
3363
+ /**
3364
+ * Admin addresses
3365
+ */
3366
+ adminAddresses?: Array<string>;
3367
+ /**
3368
+ * Manager addresses
3369
+ */
3370
+ managerAddresses?: Array<string>;
3371
+ /**
3372
+ * Enabled addresses
3373
+ */
3374
+ enabledAddresses?: Array<string>;
3375
+ };
3376
+
3377
+ type EvmGenesisFeeConfigDto = {
3378
+ /**
3379
+ * Base fee change denominator
3380
+ */
3381
+ baseFeeChangeDenominator?: number;
3382
+ /**
3383
+ * Block gas cost step
3384
+ */
3385
+ blockGasCostStep?: number;
3386
+ /**
3387
+ * Gas limit
3388
+ */
3389
+ gasLimit?: number;
3390
+ /**
3391
+ * Maximum block gas cost
3392
+ */
3393
+ maxBlockGasCost?: number;
3394
+ /**
3395
+ * Minimum base fee
3396
+ */
3397
+ minBaseFee?: number;
3398
+ /**
3399
+ * Minimum block gas cost
3400
+ */
3401
+ minBlockGasCost?: number;
3402
+ /**
3403
+ * Target block rate
3404
+ */
3405
+ targetBlockRate?: number;
3406
+ /**
3407
+ * Target gas
3408
+ */
3409
+ targetGas?: number;
3410
+ };
3411
+
3412
+ type EvmGenesisWarpConfigDto = {
3413
+ /**
3414
+ * Block timestamp
3415
+ */
3416
+ blockTimestamp?: number;
3417
+ /**
3418
+ * Quorum numerator
3419
+ */
3420
+ quorumNumerator?: number;
3421
+ /**
3422
+ * Require primary network signers
3423
+ */
3424
+ requirePrimaryNetworkSigners?: boolean;
3425
+ };
3426
+
3427
+ type EvmGenesisConfigDto = {
3428
+ /**
3429
+ * Berlin block number
3430
+ */
3431
+ berlinBlock?: number;
3432
+ /**
3433
+ * Byzantium block number
3434
+ */
3435
+ byzantiumBlock?: number;
3436
+ /**
3437
+ * Chain ID
3438
+ */
3439
+ chainId?: number;
3440
+ /**
3441
+ * Constantinople block number
3442
+ */
3443
+ constantinopleBlock?: number;
3444
+ /**
3445
+ * EIP-150 block number
3446
+ */
3447
+ eip150Block?: number;
3448
+ /**
3449
+ * EIP-150 hash
3450
+ */
3451
+ eip150Hash?: string;
3452
+ /**
3453
+ * EIP-155 block number
3454
+ */
3455
+ eip155Block?: number;
3456
+ /**
3457
+ * EIP-158 block number
3458
+ */
3459
+ eip158Block?: number;
3460
+ /**
3461
+ * Fee configuration
3462
+ */
3463
+ feeConfig?: EvmGenesisFeeConfigDto;
3464
+ /**
3465
+ * Homestead block number
3466
+ */
3467
+ homesteadBlock?: number;
3468
+ /**
3469
+ * Istanbul block number
3470
+ */
3471
+ istanbulBlock?: number;
3472
+ /**
3473
+ * London block number
3474
+ */
3475
+ londonBlock?: number;
3476
+ /**
3477
+ * Muir Glacier block number
3478
+ */
3479
+ muirGlacierBlock?: number;
3480
+ /**
3481
+ * Petersburg block number
3482
+ */
3483
+ petersburgBlock?: number;
3484
+ /**
3485
+ * Subnet EVM timestamp
3486
+ */
3487
+ subnetEVMTimestamp?: number;
3488
+ /**
3489
+ * Allow fee recipients
3490
+ */
3491
+ allowFeeRecipients?: boolean;
3492
+ /**
3493
+ * Warp configuration
3494
+ */
3495
+ warpConfig?: EvmGenesisWarpConfigDto;
3496
+ /**
3497
+ * Transaction allow list configuration
3498
+ */
3499
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3500
+ /**
3501
+ * Contract deployer allow list configuration
3502
+ */
3503
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3504
+ /**
3505
+ * Contract native minter configuration
3506
+ */
3507
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3508
+ /**
3509
+ * Fee manager configuration
3510
+ */
3511
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3512
+ /**
3513
+ * Reward manager configuration
3514
+ */
3515
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3516
+ };
3517
+
3518
+ type EvmGenesisDto = {
3519
+ /**
3520
+ * Airdrop amount
3521
+ */
3522
+ airdropAmount?: number | null;
3523
+ /**
3524
+ * Airdrop hash
3525
+ */
3526
+ airdropHash?: string;
3527
+ /**
3528
+ * Allocation of accounts and balances
3529
+ */
3530
+ alloc?: Record<string, EvmGenesisAllocDto>;
3531
+ /**
3532
+ * Base fee per gas
3533
+ */
3534
+ baseFeePerGas?: number | null;
3535
+ /**
3536
+ * Blob gas used
3537
+ */
3538
+ blobGasUsed?: string | null;
3539
+ /**
3540
+ * Coinbase address
3541
+ */
3542
+ coinbase?: string;
3543
+ /**
3544
+ * Genesis configuration
3545
+ */
3546
+ config?: EvmGenesisConfigDto;
3547
+ /**
3548
+ * Difficulty
3549
+ */
3550
+ difficulty?: string;
3551
+ /**
3552
+ * Excess blob gas
3553
+ */
3554
+ excessBlobGas?: string | null;
3555
+ /**
3556
+ * Extra data
3557
+ */
3558
+ extraData?: string;
3559
+ /**
3560
+ * Gas limit
3561
+ */
3562
+ gasLimit?: string;
3563
+ /**
3564
+ * Gas used
3565
+ */
3566
+ gasUsed?: string;
3567
+ /**
3568
+ * Mix hash
3569
+ */
3570
+ mixHash?: string;
3571
+ /**
3572
+ * Nonce
3573
+ */
3574
+ nonce?: string;
3575
+ /**
3576
+ * Block number
3577
+ */
3578
+ number?: string;
3579
+ /**
3580
+ * Parent hash
3581
+ */
3582
+ parentHash?: string;
3583
+ /**
3584
+ * Block timestamp
3585
+ */
3586
+ timestamp?: string;
3587
+ };
3588
+
3248
3589
  type Blockchain = {
3249
3590
  createBlockTimestamp: number;
3250
3591
  createBlockNumber: string;
@@ -3255,11 +3596,11 @@ type Blockchain = {
3255
3596
  /**
3256
3597
  * 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.
3257
3598
  */
3258
- evmChainId: number;
3599
+ evmChainId?: number;
3259
3600
  /**
3260
- * The genesis data of the blockchain.
3601
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
3261
3602
  */
3262
- genesisData?: Record<string, any>;
3603
+ genesisData?: (EvmGenesisDto | string);
3263
3604
  };
3264
3605
 
3265
3606
  declare enum BlockchainIds {
@@ -4870,7 +5211,7 @@ type BlockchainInfo = {
4870
5211
  /**
4871
5212
  * 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
4872
5213
  */
4873
- genesisData?: Record<string, any>;
5214
+ genesisData?: (EvmGenesisDto | string);
4874
5215
  };
4875
5216
 
4876
5217
  type L1ValidatorDetailsTransaction = {
@@ -5015,7 +5356,7 @@ type PChainTransaction = {
5015
5356
  txHash: string;
5016
5357
  txType: PChainTransactionType;
5017
5358
  /**
5018
- * The block finality timestamp.
5359
+ * The block creation (proposal) timestamp in seconds
5019
5360
  */
5020
5361
  blockTimestamp: number;
5021
5362
  /**
@@ -5500,7 +5841,7 @@ declare class PrimaryNetworkUtxOsService {
5500
5841
  * @returns any Successful response
5501
5842
  * @throws ApiError
5502
5843
  */
5503
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
5844
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5504
5845
  /**
5505
5846
  * A primary network blockchain id or alias.
5506
5847
  */
@@ -5525,6 +5866,10 @@ declare class PrimaryNetworkUtxOsService {
5525
5866
  * Asset ID for any asset (only applicable X-Chain)
5526
5867
  */
5527
5868
  assetId?: string;
5869
+ /**
5870
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5871
+ */
5872
+ minUtxoAmount?: number;
5528
5873
  /**
5529
5874
  * Boolean filter to include spent UTXOs.
5530
5875
  */
@@ -5544,7 +5889,7 @@ declare class PrimaryNetworkUtxOsService {
5544
5889
  * @returns any Successful response
5545
5890
  * @throws ApiError
5546
5891
  */
5547
- getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
5892
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5548
5893
  /**
5549
5894
  * A primary network blockchain id or alias.
5550
5895
  */
@@ -5566,6 +5911,10 @@ declare class PrimaryNetworkUtxOsService {
5566
5911
  * Asset ID for any asset (only applicable X-Chain)
5567
5912
  */
5568
5913
  assetId?: string;
5914
+ /**
5915
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5916
+ */
5917
+ minUtxoAmount?: number;
5569
5918
  /**
5570
5919
  * Boolean filter to include spent UTXOs.
5571
5920
  */
@@ -6897,4 +7246,4 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6897
7246
  }
6898
7247
 
6899
7248
  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 };
6900
- 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, 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 };
7249
+ 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 };
@@ -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 };
@@ -7,9 +7,13 @@ type Erc1155Transfer = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
+ /**
14
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
15
+ */
16
+ blockTimestampMilliseconds?: number;
13
17
  /**
14
18
  * The block hash identifier.
15
19
  */
@@ -7,9 +7,13 @@ type Erc20Transfer = {
7
7
  */
8
8
  blockNumber: string;
9
9
  /**
10
- * The block finality timestamp.
10
+ * The block creation (proposal) timestamp in seconds
11
11
  */
12
12
  blockTimestamp: number;
13
+ /**
14
+ * The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
15
+ */
16
+ blockTimestampMilliseconds?: number;
13
17
  /**
14
18
  * The block hash identifier.
15
19
  */