@avalabs/glacier-sdk 3.1.0-canary.a7f32e3.0 → 3.1.0-canary.a954f1f.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.
Files changed (39) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +465 -24
  3. package/esm/generated/Glacier.js +1 -1
  4. package/esm/generated/core/OpenAPI.js +1 -1
  5. package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
  6. package/esm/generated/models/Blockchain.d.ts +5 -3
  7. package/esm/generated/models/BlockchainInfo.d.ts +3 -1
  8. package/esm/generated/models/Erc1155Transfer.d.ts +5 -1
  9. package/esm/generated/models/Erc20Transfer.d.ts +5 -1
  10. package/esm/generated/models/Erc721Transfer.d.ts +5 -1
  11. package/esm/generated/models/EvmBlock.d.ts +9 -1
  12. package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
  13. package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
  14. package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
  15. package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
  16. package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
  17. package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
  18. package/esm/generated/models/FullNativeTransactionDetails.d.ts +9 -1
  19. package/esm/generated/models/GetEvmBlockResponse.d.ts +9 -1
  20. package/esm/generated/models/InternalTransaction.d.ts +5 -1
  21. package/esm/generated/models/NativeTransaction.d.ts +9 -1
  22. package/esm/generated/models/PChainTransaction.d.ts +1 -1
  23. package/esm/generated/models/PChainUtxo.d.ts +4 -0
  24. package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
  25. package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
  26. package/esm/generated/models/Utxo.d.ts +4 -0
  27. package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
  28. package/esm/generated/models/UtxosSortByOption.js +1 -0
  29. package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
  30. package/esm/generated/services/EvmBlocksService.d.ts +1 -1
  31. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  32. package/esm/generated/services/EvmTransactionsService.d.ts +1 -1
  33. package/esm/generated/services/HealthCheckService.d.ts +9 -2
  34. package/esm/generated/services/HealthCheckService.js +1 -1
  35. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +56 -1
  36. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  37. package/esm/index.d.ts +9 -0
  38. package/esm/index.js +1 -1
  39. 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
  */
@@ -2716,11 +2811,18 @@ declare class HealthCheckService {
2716
2811
  constructor(httpRequest: BaseHttpRequest);
2717
2812
  /**
2718
2813
  * Get the health of the service
2719
- * Check the health of the service.
2720
- * @returns HealthCheckResultDto The health of the service
2814
+ * Check the health of the service. This checks the read and write health of the database and cache.
2815
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2721
2816
  * @throws ApiError
2722
2817
  */
2723
2818
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2819
+ /**
2820
+ * Get the liveliness of the service (reads only)
2821
+ * Check the liveliness of the service (reads only).
2822
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2823
+ * @throws ApiError
2824
+ */
2825
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2724
2826
  }
2725
2827
 
2726
2828
  type IcmDestinationTransaction = {
@@ -3238,6 +3340,252 @@ declare class OperationsService {
3238
3340
  }): CancelablePromise<OperationStatusResponse>;
3239
3341
  }
3240
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
+
3241
3589
  type Blockchain = {
3242
3590
  createBlockTimestamp: number;
3243
3591
  createBlockNumber: string;
@@ -3248,11 +3596,11 @@ type Blockchain = {
3248
3596
  /**
3249
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.
3250
3598
  */
3251
- evmChainId: number;
3599
+ evmChainId?: number;
3252
3600
  /**
3253
- * 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.
3254
3602
  */
3255
- genesisData?: Record<string, any>;
3603
+ genesisData?: (EvmGenesisDto | string);
3256
3604
  };
3257
3605
 
3258
3606
  declare enum BlockchainIds {
@@ -4685,6 +5033,10 @@ type Utxo = {
4685
5033
  * UTXO ID for this output.
4686
5034
  */
4687
5035
  utxoId: string;
5036
+ /**
5037
+ * The bytes of the UTXO
5038
+ */
5039
+ utxoBytes?: string;
4688
5040
  /**
4689
5041
  * Unix timestamp in seconds at which this output was consumed.
4690
5042
  */
@@ -4859,7 +5211,7 @@ type BlockchainInfo = {
4859
5211
  /**
4860
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
4861
5213
  */
4862
- genesisData?: Record<string, any>;
5214
+ genesisData?: (EvmGenesisDto | string);
4863
5215
  };
4864
5216
 
4865
5217
  type L1ValidatorDetailsTransaction = {
@@ -4942,6 +5294,10 @@ type PChainUtxo = {
4942
5294
  * UTXO ID for this output.
4943
5295
  */
4944
5296
  utxoId: string;
5297
+ /**
5298
+ * The bytes of the UTXO
5299
+ */
5300
+ utxoBytes?: string;
4945
5301
  /**
4946
5302
  * @deprecated
4947
5303
  */
@@ -5000,7 +5356,7 @@ type PChainTransaction = {
5000
5356
  txHash: string;
5001
5357
  txType: PChainTransactionType;
5002
5358
  /**
5003
- * The block finality timestamp.
5359
+ * The block creation (proposal) timestamp in seconds
5004
5360
  */
5005
5361
  blockTimestamp: number;
5006
5362
  /**
@@ -5464,6 +5820,18 @@ type ListUtxosResponse = {
5464
5820
  chainInfo: PrimaryNetworkChainInfo;
5465
5821
  };
5466
5822
 
5823
+ type PrimaryNetworkAddressesBodyDto = {
5824
+ /**
5825
+ * Comma-separated list of primary network addresses
5826
+ */
5827
+ addresses: string;
5828
+ };
5829
+
5830
+ declare enum UtxosSortByOption {
5831
+ TIMESTAMP = "timestamp",
5832
+ AMOUNT = "amount"
5833
+ }
5834
+
5467
5835
  declare class PrimaryNetworkUtxOsService {
5468
5836
  readonly httpRequest: BaseHttpRequest;
5469
5837
  constructor(httpRequest: BaseHttpRequest);
@@ -5473,7 +5841,7 @@ declare class PrimaryNetworkUtxOsService {
5473
5841
  * @returns any Successful response
5474
5842
  * @throws ApiError
5475
5843
  */
5476
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5844
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5477
5845
  /**
5478
5846
  * A primary network blockchain id or alias.
5479
5847
  */
@@ -5498,10 +5866,63 @@ declare class PrimaryNetworkUtxOsService {
5498
5866
  * Asset ID for any asset (only applicable X-Chain)
5499
5867
  */
5500
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;
5873
+ /**
5874
+ * Boolean filter to include spent UTXOs.
5875
+ */
5876
+ includeSpent?: boolean;
5877
+ /**
5878
+ * Which property to sort by, in conjunction with sortOrder.
5879
+ */
5880
+ sortBy?: UtxosSortByOption;
5881
+ /**
5882
+ * 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.
5883
+ */
5884
+ sortOrder?: SortOrder;
5885
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5886
+ /**
5887
+ * List UTXOs v2 - Supports querying for more addresses
5888
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5889
+ * @returns any Successful response
5890
+ * @throws ApiError
5891
+ */
5892
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5893
+ /**
5894
+ * A primary network blockchain id or alias.
5895
+ */
5896
+ blockchainId: BlockchainId;
5897
+ /**
5898
+ * Either mainnet or testnet/fuji.
5899
+ */
5900
+ network: Network;
5901
+ requestBody: PrimaryNetworkAddressesBodyDto;
5902
+ /**
5903
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5904
+ */
5905
+ pageToken?: string;
5906
+ /**
5907
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5908
+ */
5909
+ pageSize?: number;
5910
+ /**
5911
+ * Asset ID for any asset (only applicable X-Chain)
5912
+ */
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;
5501
5918
  /**
5502
5919
  * Boolean filter to include spent UTXOs.
5503
5920
  */
5504
5921
  includeSpent?: boolean;
5922
+ /**
5923
+ * Which property to sort by, in conjunction with sortOrder.
5924
+ */
5925
+ sortBy?: UtxosSortByOption;
5505
5926
  /**
5506
5927
  * 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
5928
  */
@@ -5615,10 +6036,30 @@ type SignatureAggregationResponse = {
5615
6036
  };
5616
6037
 
5617
6038
  type SignatureAggregatorRequest = {
5618
- message: string;
6039
+ /**
6040
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
6041
+ */
6042
+ message?: string;
6043
+ /**
6044
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
6045
+ */
5619
6046
  justification?: string;
6047
+ /**
6048
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
6049
+ */
5620
6050
  signingSubnetId?: string;
6051
+ /**
6052
+ * 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.
6053
+ */
5621
6054
  quorumPercentage?: number;
6055
+ /**
6056
+ * 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.
6057
+ */
6058
+ quorumPercentageBuffer?: number;
6059
+ /**
6060
+ * 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.
6061
+ */
6062
+ pChainHeight?: number;
5622
6063
  };
5623
6064
 
5624
6065
  declare class SignatureAggregatorService {
@@ -6804,5 +7245,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6804
7245
  request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6805
7246
  }
6806
7247
 
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 };
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 };
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 };