@avalabs/glacier-sdk 3.1.0-canary.94d142e.0 → 3.1.0-canary.96ccf93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +385 -25
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
- package/esm/generated/models/Blockchain.d.ts +5 -3
- package/esm/generated/models/BlockchainInfo.d.ts +3 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -1
- package/esm/generated/models/Erc20Transfer.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +9 -1
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +9 -1
- package/esm/generated/models/GetEvmBlockResponse.d.ts +9 -1
- package/esm/generated/models/InternalTransaction.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +9 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +3 -2
- package/esm/generated/services/EvmBlocksService.d.ts +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +9 -2
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +11 -3
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/index.d.ts +7 -0
- 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
|
|
110
|
+
* @returns AvaxSupplyResponse Successful response
|
|
64
111
|
* @throws ApiError
|
|
65
112
|
*/
|
|
66
|
-
getAvaxSupply(): CancelablePromise<
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,7 +2221,7 @@ type Erc1155Transfer = {
|
|
|
2142
2221
|
*/
|
|
2143
2222
|
blockNumber: string;
|
|
2144
2223
|
/**
|
|
2145
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
2146
2225
|
*/
|
|
2147
2226
|
blockTimestamp: number;
|
|
2148
2227
|
/**
|
|
@@ -2174,7 +2253,7 @@ type Erc20Transfer = {
|
|
|
2174
2253
|
*/
|
|
2175
2254
|
blockNumber: string;
|
|
2176
2255
|
/**
|
|
2177
|
-
* The block
|
|
2256
|
+
* The block creation (proposal) timestamp in seconds
|
|
2178
2257
|
*/
|
|
2179
2258
|
blockTimestamp: number;
|
|
2180
2259
|
/**
|
|
@@ -2206,7 +2285,7 @@ type Erc721Transfer = {
|
|
|
2206
2285
|
*/
|
|
2207
2286
|
blockNumber: string;
|
|
2208
2287
|
/**
|
|
2209
|
-
* The block
|
|
2288
|
+
* The block creation (proposal) timestamp in seconds
|
|
2210
2289
|
*/
|
|
2211
2290
|
blockTimestamp: number;
|
|
2212
2291
|
/**
|
|
@@ -2237,7 +2316,7 @@ type InternalTransaction = {
|
|
|
2237
2316
|
*/
|
|
2238
2317
|
blockNumber: string;
|
|
2239
2318
|
/**
|
|
2240
|
-
* The block
|
|
2319
|
+
* The block creation (proposal) timestamp in seconds
|
|
2241
2320
|
*/
|
|
2242
2321
|
blockTimestamp: number;
|
|
2243
2322
|
/**
|
|
@@ -2317,7 +2396,7 @@ declare class EvmTransactionsService {
|
|
|
2317
2396
|
constructor(httpRequest: BaseHttpRequest);
|
|
2318
2397
|
/**
|
|
2319
2398
|
* List the latest transactions across all supported EVM chains
|
|
2320
|
-
* Lists the most recent transactions from all supported EVM-compatible
|
|
2399
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2321
2400
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2401
|
* @throws ApiError
|
|
2323
2402
|
*/
|
|
@@ -2716,11 +2795,18 @@ declare class HealthCheckService {
|
|
|
2716
2795
|
constructor(httpRequest: BaseHttpRequest);
|
|
2717
2796
|
/**
|
|
2718
2797
|
* Get the health of the service
|
|
2719
|
-
* Check the health of the service.
|
|
2720
|
-
* @returns HealthCheckResultDto The health of the service
|
|
2798
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2799
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2721
2800
|
* @throws ApiError
|
|
2722
2801
|
*/
|
|
2723
2802
|
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2803
|
+
/**
|
|
2804
|
+
* Get the liveliness of the service (reads only)
|
|
2805
|
+
* Check the liveliness of the service (reads only).
|
|
2806
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2807
|
+
* @throws ApiError
|
|
2808
|
+
*/
|
|
2809
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2724
2810
|
}
|
|
2725
2811
|
|
|
2726
2812
|
type IcmDestinationTransaction = {
|
|
@@ -3238,6 +3324,252 @@ declare class OperationsService {
|
|
|
3238
3324
|
}): CancelablePromise<OperationStatusResponse>;
|
|
3239
3325
|
}
|
|
3240
3326
|
|
|
3327
|
+
type EvmGenesisAllocDto = {
|
|
3328
|
+
/**
|
|
3329
|
+
* Account balance in hex format
|
|
3330
|
+
*/
|
|
3331
|
+
balance?: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* Contract bytecode in hex format
|
|
3334
|
+
*/
|
|
3335
|
+
code?: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* Contract storage slots
|
|
3338
|
+
*/
|
|
3339
|
+
storage?: Record<string, string>;
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3343
|
+
/**
|
|
3344
|
+
* Block timestamp
|
|
3345
|
+
*/
|
|
3346
|
+
blockTimestamp?: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Admin addresses
|
|
3349
|
+
*/
|
|
3350
|
+
adminAddresses?: Array<string>;
|
|
3351
|
+
/**
|
|
3352
|
+
* Manager addresses
|
|
3353
|
+
*/
|
|
3354
|
+
managerAddresses?: Array<string>;
|
|
3355
|
+
/**
|
|
3356
|
+
* Enabled addresses
|
|
3357
|
+
*/
|
|
3358
|
+
enabledAddresses?: Array<string>;
|
|
3359
|
+
};
|
|
3360
|
+
|
|
3361
|
+
type EvmGenesisFeeConfigDto = {
|
|
3362
|
+
/**
|
|
3363
|
+
* Base fee change denominator
|
|
3364
|
+
*/
|
|
3365
|
+
baseFeeChangeDenominator?: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Block gas cost step
|
|
3368
|
+
*/
|
|
3369
|
+
blockGasCostStep?: number;
|
|
3370
|
+
/**
|
|
3371
|
+
* Gas limit
|
|
3372
|
+
*/
|
|
3373
|
+
gasLimit?: number;
|
|
3374
|
+
/**
|
|
3375
|
+
* Maximum block gas cost
|
|
3376
|
+
*/
|
|
3377
|
+
maxBlockGasCost?: number;
|
|
3378
|
+
/**
|
|
3379
|
+
* Minimum base fee
|
|
3380
|
+
*/
|
|
3381
|
+
minBaseFee?: number;
|
|
3382
|
+
/**
|
|
3383
|
+
* Minimum block gas cost
|
|
3384
|
+
*/
|
|
3385
|
+
minBlockGasCost?: number;
|
|
3386
|
+
/**
|
|
3387
|
+
* Target block rate
|
|
3388
|
+
*/
|
|
3389
|
+
targetBlockRate?: number;
|
|
3390
|
+
/**
|
|
3391
|
+
* Target gas
|
|
3392
|
+
*/
|
|
3393
|
+
targetGas?: number;
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
type EvmGenesisWarpConfigDto = {
|
|
3397
|
+
/**
|
|
3398
|
+
* Block timestamp
|
|
3399
|
+
*/
|
|
3400
|
+
blockTimestamp?: number;
|
|
3401
|
+
/**
|
|
3402
|
+
* Quorum numerator
|
|
3403
|
+
*/
|
|
3404
|
+
quorumNumerator?: number;
|
|
3405
|
+
/**
|
|
3406
|
+
* Require primary network signers
|
|
3407
|
+
*/
|
|
3408
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3411
|
+
type EvmGenesisConfigDto = {
|
|
3412
|
+
/**
|
|
3413
|
+
* Berlin block number
|
|
3414
|
+
*/
|
|
3415
|
+
berlinBlock?: number;
|
|
3416
|
+
/**
|
|
3417
|
+
* Byzantium block number
|
|
3418
|
+
*/
|
|
3419
|
+
byzantiumBlock?: number;
|
|
3420
|
+
/**
|
|
3421
|
+
* Chain ID
|
|
3422
|
+
*/
|
|
3423
|
+
chainId?: number;
|
|
3424
|
+
/**
|
|
3425
|
+
* Constantinople block number
|
|
3426
|
+
*/
|
|
3427
|
+
constantinopleBlock?: number;
|
|
3428
|
+
/**
|
|
3429
|
+
* EIP-150 block number
|
|
3430
|
+
*/
|
|
3431
|
+
eip150Block?: number;
|
|
3432
|
+
/**
|
|
3433
|
+
* EIP-150 hash
|
|
3434
|
+
*/
|
|
3435
|
+
eip150Hash?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* EIP-155 block number
|
|
3438
|
+
*/
|
|
3439
|
+
eip155Block?: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* EIP-158 block number
|
|
3442
|
+
*/
|
|
3443
|
+
eip158Block?: number;
|
|
3444
|
+
/**
|
|
3445
|
+
* Fee configuration
|
|
3446
|
+
*/
|
|
3447
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3448
|
+
/**
|
|
3449
|
+
* Homestead block number
|
|
3450
|
+
*/
|
|
3451
|
+
homesteadBlock?: number;
|
|
3452
|
+
/**
|
|
3453
|
+
* Istanbul block number
|
|
3454
|
+
*/
|
|
3455
|
+
istanbulBlock?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* London block number
|
|
3458
|
+
*/
|
|
3459
|
+
londonBlock?: number;
|
|
3460
|
+
/**
|
|
3461
|
+
* Muir Glacier block number
|
|
3462
|
+
*/
|
|
3463
|
+
muirGlacierBlock?: number;
|
|
3464
|
+
/**
|
|
3465
|
+
* Petersburg block number
|
|
3466
|
+
*/
|
|
3467
|
+
petersburgBlock?: number;
|
|
3468
|
+
/**
|
|
3469
|
+
* Subnet EVM timestamp
|
|
3470
|
+
*/
|
|
3471
|
+
subnetEVMTimestamp?: number;
|
|
3472
|
+
/**
|
|
3473
|
+
* Allow fee recipients
|
|
3474
|
+
*/
|
|
3475
|
+
allowFeeRecipients?: boolean;
|
|
3476
|
+
/**
|
|
3477
|
+
* Warp configuration
|
|
3478
|
+
*/
|
|
3479
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3480
|
+
/**
|
|
3481
|
+
* Transaction allow list configuration
|
|
3482
|
+
*/
|
|
3483
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3484
|
+
/**
|
|
3485
|
+
* Contract deployer allow list configuration
|
|
3486
|
+
*/
|
|
3487
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3488
|
+
/**
|
|
3489
|
+
* Contract native minter configuration
|
|
3490
|
+
*/
|
|
3491
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3492
|
+
/**
|
|
3493
|
+
* Fee manager configuration
|
|
3494
|
+
*/
|
|
3495
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3496
|
+
/**
|
|
3497
|
+
* Reward manager configuration
|
|
3498
|
+
*/
|
|
3499
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
type EvmGenesisDto = {
|
|
3503
|
+
/**
|
|
3504
|
+
* Airdrop amount
|
|
3505
|
+
*/
|
|
3506
|
+
airdropAmount?: number | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Airdrop hash
|
|
3509
|
+
*/
|
|
3510
|
+
airdropHash?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Allocation of accounts and balances
|
|
3513
|
+
*/
|
|
3514
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3515
|
+
/**
|
|
3516
|
+
* Base fee per gas
|
|
3517
|
+
*/
|
|
3518
|
+
baseFeePerGas?: number | null;
|
|
3519
|
+
/**
|
|
3520
|
+
* Blob gas used
|
|
3521
|
+
*/
|
|
3522
|
+
blobGasUsed?: string | null;
|
|
3523
|
+
/**
|
|
3524
|
+
* Coinbase address
|
|
3525
|
+
*/
|
|
3526
|
+
coinbase?: string;
|
|
3527
|
+
/**
|
|
3528
|
+
* Genesis configuration
|
|
3529
|
+
*/
|
|
3530
|
+
config?: EvmGenesisConfigDto;
|
|
3531
|
+
/**
|
|
3532
|
+
* Difficulty
|
|
3533
|
+
*/
|
|
3534
|
+
difficulty?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* Excess blob gas
|
|
3537
|
+
*/
|
|
3538
|
+
excessBlobGas?: string | null;
|
|
3539
|
+
/**
|
|
3540
|
+
* Extra data
|
|
3541
|
+
*/
|
|
3542
|
+
extraData?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Gas limit
|
|
3545
|
+
*/
|
|
3546
|
+
gasLimit?: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* Gas used
|
|
3549
|
+
*/
|
|
3550
|
+
gasUsed?: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* Mix hash
|
|
3553
|
+
*/
|
|
3554
|
+
mixHash?: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* Nonce
|
|
3557
|
+
*/
|
|
3558
|
+
nonce?: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* Block number
|
|
3561
|
+
*/
|
|
3562
|
+
number?: string;
|
|
3563
|
+
/**
|
|
3564
|
+
* Parent hash
|
|
3565
|
+
*/
|
|
3566
|
+
parentHash?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Block timestamp
|
|
3569
|
+
*/
|
|
3570
|
+
timestamp?: string;
|
|
3571
|
+
};
|
|
3572
|
+
|
|
3241
3573
|
type Blockchain = {
|
|
3242
3574
|
createBlockTimestamp: number;
|
|
3243
3575
|
createBlockNumber: string;
|
|
@@ -3248,11 +3580,11 @@ type Blockchain = {
|
|
|
3248
3580
|
/**
|
|
3249
3581
|
* 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
3582
|
*/
|
|
3251
|
-
evmChainId
|
|
3583
|
+
evmChainId?: number;
|
|
3252
3584
|
/**
|
|
3253
|
-
* The genesis data of the blockchain.
|
|
3585
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3254
3586
|
*/
|
|
3255
|
-
genesisData?:
|
|
3587
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3256
3588
|
};
|
|
3257
3589
|
|
|
3258
3590
|
declare enum BlockchainIds {
|
|
@@ -4863,7 +5195,7 @@ type BlockchainInfo = {
|
|
|
4863
5195
|
/**
|
|
4864
5196
|
* 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
|
|
4865
5197
|
*/
|
|
4866
|
-
genesisData?:
|
|
5198
|
+
genesisData?: (EvmGenesisDto | string);
|
|
4867
5199
|
};
|
|
4868
5200
|
|
|
4869
5201
|
type L1ValidatorDetailsTransaction = {
|
|
@@ -5008,7 +5340,7 @@ type PChainTransaction = {
|
|
|
5008
5340
|
txHash: string;
|
|
5009
5341
|
txType: PChainTransactionType;
|
|
5010
5342
|
/**
|
|
5011
|
-
* The block
|
|
5343
|
+
* The block creation (proposal) timestamp in seconds
|
|
5012
5344
|
*/
|
|
5013
5345
|
blockTimestamp: number;
|
|
5014
5346
|
/**
|
|
@@ -5493,7 +5825,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5493
5825
|
* @returns any Successful response
|
|
5494
5826
|
* @throws ApiError
|
|
5495
5827
|
*/
|
|
5496
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
5828
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5497
5829
|
/**
|
|
5498
5830
|
* A primary network blockchain id or alias.
|
|
5499
5831
|
*/
|
|
@@ -5518,6 +5850,10 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5518
5850
|
* Asset ID for any asset (only applicable X-Chain)
|
|
5519
5851
|
*/
|
|
5520
5852
|
assetId?: string;
|
|
5853
|
+
/**
|
|
5854
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5855
|
+
*/
|
|
5856
|
+
minUtxoAmount?: number;
|
|
5521
5857
|
/**
|
|
5522
5858
|
* Boolean filter to include spent UTXOs.
|
|
5523
5859
|
*/
|
|
@@ -5537,7 +5873,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5537
5873
|
* @returns any Successful response
|
|
5538
5874
|
* @throws ApiError
|
|
5539
5875
|
*/
|
|
5540
|
-
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
|
|
5876
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5541
5877
|
/**
|
|
5542
5878
|
* A primary network blockchain id or alias.
|
|
5543
5879
|
*/
|
|
@@ -5552,13 +5888,17 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5552
5888
|
*/
|
|
5553
5889
|
pageToken?: string;
|
|
5554
5890
|
/**
|
|
5555
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is
|
|
5891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
5556
5892
|
*/
|
|
5557
5893
|
pageSize?: number;
|
|
5558
5894
|
/**
|
|
5559
5895
|
* Asset ID for any asset (only applicable X-Chain)
|
|
5560
5896
|
*/
|
|
5561
5897
|
assetId?: string;
|
|
5898
|
+
/**
|
|
5899
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
5900
|
+
*/
|
|
5901
|
+
minUtxoAmount?: number;
|
|
5562
5902
|
/**
|
|
5563
5903
|
* Boolean filter to include spent UTXOs.
|
|
5564
5904
|
*/
|
|
@@ -5680,10 +6020,30 @@ type SignatureAggregationResponse = {
|
|
|
5680
6020
|
};
|
|
5681
6021
|
|
|
5682
6022
|
type SignatureAggregatorRequest = {
|
|
5683
|
-
|
|
6023
|
+
/**
|
|
6024
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
6025
|
+
*/
|
|
6026
|
+
message?: string;
|
|
6027
|
+
/**
|
|
6028
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
6029
|
+
*/
|
|
5684
6030
|
justification?: string;
|
|
6031
|
+
/**
|
|
6032
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6033
|
+
*/
|
|
5685
6034
|
signingSubnetId?: string;
|
|
6035
|
+
/**
|
|
6036
|
+
* 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.
|
|
6037
|
+
*/
|
|
5686
6038
|
quorumPercentage?: number;
|
|
6039
|
+
/**
|
|
6040
|
+
* 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.
|
|
6041
|
+
*/
|
|
6042
|
+
quorumPercentageBuffer?: number;
|
|
6043
|
+
/**
|
|
6044
|
+
* 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.
|
|
6045
|
+
*/
|
|
6046
|
+
pChainHeight?: number;
|
|
5687
6047
|
};
|
|
5688
6048
|
|
|
5689
6049
|
declare class SignatureAggregatorService {
|
|
@@ -6870,4 +7230,4 @@ declare class FetchHttpRequest extends BaseHttpRequest {
|
|
|
6870
7230
|
}
|
|
6871
7231
|
|
|
6872
7232
|
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 };
|
|
6873
|
-
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 };
|
|
7233
|
+
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 };
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -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://
|
|
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://
|
|
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 };
|