@avalabs/glacier-sdk 3.1.0-canary.9180fa3.0 → 3.1.0-canary.92a00bd.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 +654 -29
- 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 +5 -1
- package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
- package/esm/generated/models/Erc20TokenV2.js +1 -0
- package/esm/generated/models/Erc20Transfer.d.ts +5 -1
- package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
- package/esm/generated/models/Erc721Transfer.d.ts +5 -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 +5 -1
- package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
- package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
- package/esm/generated/models/NativeTransaction.d.ts +9 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +4 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +21 -1
- package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
- package/esm/generated/models/Utxo.d.ts +4 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- 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 +41 -1
- package/esm/generated/services/EvmTransactionsService.js +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 +94 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/index.d.ts +14 -0
- package/esm/index.js +1 -1
- 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,9 +2221,13 @@ 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;
|
|
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
|
|
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
|
|
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
|
|
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
|
*/
|
|
@@ -2299,6 +2394,89 @@ type ListTransactionDetailsResponse = {
|
|
|
2299
2394
|
transactions: Array<TransactionDetails>;
|
|
2300
2395
|
};
|
|
2301
2396
|
|
|
2397
|
+
type Erc20TokenV2 = {
|
|
2398
|
+
/**
|
|
2399
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2400
|
+
*/
|
|
2401
|
+
address: string;
|
|
2402
|
+
/**
|
|
2403
|
+
* The contract name.
|
|
2404
|
+
*/
|
|
2405
|
+
name: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* The contract symbol.
|
|
2408
|
+
*/
|
|
2409
|
+
symbol: string;
|
|
2410
|
+
/**
|
|
2411
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2412
|
+
*/
|
|
2413
|
+
decimals: number;
|
|
2414
|
+
/**
|
|
2415
|
+
* The logo uri for the address.
|
|
2416
|
+
*/
|
|
2417
|
+
logoUri?: string;
|
|
2418
|
+
ercType: Erc20TokenV2.ercType;
|
|
2419
|
+
/**
|
|
2420
|
+
* The token price, if available.
|
|
2421
|
+
*/
|
|
2422
|
+
price?: Money;
|
|
2423
|
+
/**
|
|
2424
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
2425
|
+
*/
|
|
2426
|
+
tokenReputation: Erc20TokenV2.tokenReputation;
|
|
2427
|
+
};
|
|
2428
|
+
declare namespace Erc20TokenV2 {
|
|
2429
|
+
enum ercType {
|
|
2430
|
+
ERC_20 = "ERC-20"
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
2434
|
+
*/
|
|
2435
|
+
enum tokenReputation {
|
|
2436
|
+
MALICIOUS = "Malicious",
|
|
2437
|
+
BENIGN = "Benign"
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
type Erc20TransferDetailsV2 = {
|
|
2442
|
+
from: RichAddress;
|
|
2443
|
+
to: RichAddress;
|
|
2444
|
+
logIndex: number;
|
|
2445
|
+
value: string;
|
|
2446
|
+
erc20Token: Erc20TokenV2;
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
type TransactionDetailsV2 = {
|
|
2450
|
+
/**
|
|
2451
|
+
* The native (top-level) transaction details.
|
|
2452
|
+
*/
|
|
2453
|
+
nativeTransaction: NativeTransaction;
|
|
2454
|
+
/**
|
|
2455
|
+
* The list of ERC-20 transfers.
|
|
2456
|
+
*/
|
|
2457
|
+
erc20Transfers?: Array<Erc20TransferDetailsV2>;
|
|
2458
|
+
/**
|
|
2459
|
+
* The list of ERC-721 transfers.
|
|
2460
|
+
*/
|
|
2461
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
2462
|
+
/**
|
|
2463
|
+
* The list of ERC-1155 transfers.
|
|
2464
|
+
*/
|
|
2465
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
2466
|
+
/**
|
|
2467
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2/CREATE3 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
2468
|
+
*/
|
|
2469
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
type ListTransactionDetailsResponseV2 = {
|
|
2473
|
+
/**
|
|
2474
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2475
|
+
*/
|
|
2476
|
+
nextPageToken?: string;
|
|
2477
|
+
transactions: Array<TransactionDetailsV2>;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2302
2480
|
type ListTransfersResponse = {
|
|
2303
2481
|
/**
|
|
2304
2482
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2317,7 +2495,7 @@ declare class EvmTransactionsService {
|
|
|
2317
2495
|
constructor(httpRequest: BaseHttpRequest);
|
|
2318
2496
|
/**
|
|
2319
2497
|
* List the latest transactions across all supported EVM chains
|
|
2320
|
-
* Lists the most recent transactions from all supported EVM-compatible
|
|
2498
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2321
2499
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2322
2500
|
* @throws ApiError
|
|
2323
2501
|
*/
|
|
@@ -2453,6 +2631,45 @@ declare class EvmTransactionsService {
|
|
|
2453
2631
|
*/
|
|
2454
2632
|
sortOrder?: SortOrder;
|
|
2455
2633
|
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
2634
|
+
/**
|
|
2635
|
+
* List transactions v2
|
|
2636
|
+
* Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers (with token reputation), ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
|
|
2637
|
+
*
|
|
2638
|
+
* Filterable by block ranges.
|
|
2639
|
+
* @returns ListTransactionDetailsResponseV2 Successful response
|
|
2640
|
+
* @throws ApiError
|
|
2641
|
+
*/
|
|
2642
|
+
listTransactionsV2({ chainId, address, pageToken, pageSize, startBlock, endBlock, filterSpamTokens, sortOrder, }: {
|
|
2643
|
+
/**
|
|
2644
|
+
* A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2645
|
+
*/
|
|
2646
|
+
chainId: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* A wallet address.
|
|
2649
|
+
*/
|
|
2650
|
+
address: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2653
|
+
*/
|
|
2654
|
+
pageToken?: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
+
*/
|
|
2658
|
+
pageSize?: number;
|
|
2659
|
+
/**
|
|
2660
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
2661
|
+
*/
|
|
2662
|
+
startBlock?: number;
|
|
2663
|
+
/**
|
|
2664
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
2665
|
+
*/
|
|
2666
|
+
endBlock?: number;
|
|
2667
|
+
filterSpamTokens?: boolean;
|
|
2668
|
+
/**
|
|
2669
|
+
* 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.
|
|
2670
|
+
*/
|
|
2671
|
+
sortOrder?: SortOrder;
|
|
2672
|
+
}): CancelablePromise<ListTransactionDetailsResponseV2>;
|
|
2456
2673
|
/**
|
|
2457
2674
|
* List native transactions
|
|
2458
2675
|
* Lists native transactions for an address. Filterable by block range.
|
|
@@ -2716,11 +2933,18 @@ declare class HealthCheckService {
|
|
|
2716
2933
|
constructor(httpRequest: BaseHttpRequest);
|
|
2717
2934
|
/**
|
|
2718
2935
|
* Get the health of the service
|
|
2719
|
-
* Check the health of the service.
|
|
2720
|
-
* @returns HealthCheckResultDto The health of the service
|
|
2936
|
+
* Check the health of the service. This checks the read and write health of the database and cache.
|
|
2937
|
+
* @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
|
|
2721
2938
|
* @throws ApiError
|
|
2722
2939
|
*/
|
|
2723
2940
|
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2941
|
+
/**
|
|
2942
|
+
* Get the liveliness of the service (reads only)
|
|
2943
|
+
* Check the liveliness of the service (reads only).
|
|
2944
|
+
* @returns HealthCheckResultDto The liveliness of the service (reads only)
|
|
2945
|
+
* @throws ApiError
|
|
2946
|
+
*/
|
|
2947
|
+
liveCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2724
2948
|
}
|
|
2725
2949
|
|
|
2726
2950
|
type IcmDestinationTransaction = {
|
|
@@ -3238,6 +3462,252 @@ declare class OperationsService {
|
|
|
3238
3462
|
}): CancelablePromise<OperationStatusResponse>;
|
|
3239
3463
|
}
|
|
3240
3464
|
|
|
3465
|
+
type EvmGenesisAllocDto = {
|
|
3466
|
+
/**
|
|
3467
|
+
* Account balance in hex format
|
|
3468
|
+
*/
|
|
3469
|
+
balance?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
* Contract bytecode in hex format
|
|
3472
|
+
*/
|
|
3473
|
+
code?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* Contract storage slots
|
|
3476
|
+
*/
|
|
3477
|
+
storage?: Record<string, string>;
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3480
|
+
type EvmGenesisAllowListConfigDto = {
|
|
3481
|
+
/**
|
|
3482
|
+
* Block timestamp
|
|
3483
|
+
*/
|
|
3484
|
+
blockTimestamp?: number;
|
|
3485
|
+
/**
|
|
3486
|
+
* Admin addresses
|
|
3487
|
+
*/
|
|
3488
|
+
adminAddresses?: Array<string>;
|
|
3489
|
+
/**
|
|
3490
|
+
* Manager addresses
|
|
3491
|
+
*/
|
|
3492
|
+
managerAddresses?: Array<string>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Enabled addresses
|
|
3495
|
+
*/
|
|
3496
|
+
enabledAddresses?: Array<string>;
|
|
3497
|
+
};
|
|
3498
|
+
|
|
3499
|
+
type EvmGenesisFeeConfigDto = {
|
|
3500
|
+
/**
|
|
3501
|
+
* Base fee change denominator
|
|
3502
|
+
*/
|
|
3503
|
+
baseFeeChangeDenominator?: number;
|
|
3504
|
+
/**
|
|
3505
|
+
* Block gas cost step
|
|
3506
|
+
*/
|
|
3507
|
+
blockGasCostStep?: number;
|
|
3508
|
+
/**
|
|
3509
|
+
* Gas limit
|
|
3510
|
+
*/
|
|
3511
|
+
gasLimit?: number;
|
|
3512
|
+
/**
|
|
3513
|
+
* Maximum block gas cost
|
|
3514
|
+
*/
|
|
3515
|
+
maxBlockGasCost?: number;
|
|
3516
|
+
/**
|
|
3517
|
+
* Minimum base fee
|
|
3518
|
+
*/
|
|
3519
|
+
minBaseFee?: number;
|
|
3520
|
+
/**
|
|
3521
|
+
* Minimum block gas cost
|
|
3522
|
+
*/
|
|
3523
|
+
minBlockGasCost?: number;
|
|
3524
|
+
/**
|
|
3525
|
+
* Target block rate
|
|
3526
|
+
*/
|
|
3527
|
+
targetBlockRate?: number;
|
|
3528
|
+
/**
|
|
3529
|
+
* Target gas
|
|
3530
|
+
*/
|
|
3531
|
+
targetGas?: number;
|
|
3532
|
+
};
|
|
3533
|
+
|
|
3534
|
+
type EvmGenesisWarpConfigDto = {
|
|
3535
|
+
/**
|
|
3536
|
+
* Block timestamp
|
|
3537
|
+
*/
|
|
3538
|
+
blockTimestamp?: number;
|
|
3539
|
+
/**
|
|
3540
|
+
* Quorum numerator
|
|
3541
|
+
*/
|
|
3542
|
+
quorumNumerator?: number;
|
|
3543
|
+
/**
|
|
3544
|
+
* Require primary network signers
|
|
3545
|
+
*/
|
|
3546
|
+
requirePrimaryNetworkSigners?: boolean;
|
|
3547
|
+
};
|
|
3548
|
+
|
|
3549
|
+
type EvmGenesisConfigDto = {
|
|
3550
|
+
/**
|
|
3551
|
+
* Berlin block number
|
|
3552
|
+
*/
|
|
3553
|
+
berlinBlock?: number;
|
|
3554
|
+
/**
|
|
3555
|
+
* Byzantium block number
|
|
3556
|
+
*/
|
|
3557
|
+
byzantiumBlock?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* Chain ID
|
|
3560
|
+
*/
|
|
3561
|
+
chainId?: number;
|
|
3562
|
+
/**
|
|
3563
|
+
* Constantinople block number
|
|
3564
|
+
*/
|
|
3565
|
+
constantinopleBlock?: number;
|
|
3566
|
+
/**
|
|
3567
|
+
* EIP-150 block number
|
|
3568
|
+
*/
|
|
3569
|
+
eip150Block?: number;
|
|
3570
|
+
/**
|
|
3571
|
+
* EIP-150 hash
|
|
3572
|
+
*/
|
|
3573
|
+
eip150Hash?: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* EIP-155 block number
|
|
3576
|
+
*/
|
|
3577
|
+
eip155Block?: number;
|
|
3578
|
+
/**
|
|
3579
|
+
* EIP-158 block number
|
|
3580
|
+
*/
|
|
3581
|
+
eip158Block?: number;
|
|
3582
|
+
/**
|
|
3583
|
+
* Fee configuration
|
|
3584
|
+
*/
|
|
3585
|
+
feeConfig?: EvmGenesisFeeConfigDto;
|
|
3586
|
+
/**
|
|
3587
|
+
* Homestead block number
|
|
3588
|
+
*/
|
|
3589
|
+
homesteadBlock?: number;
|
|
3590
|
+
/**
|
|
3591
|
+
* Istanbul block number
|
|
3592
|
+
*/
|
|
3593
|
+
istanbulBlock?: number;
|
|
3594
|
+
/**
|
|
3595
|
+
* London block number
|
|
3596
|
+
*/
|
|
3597
|
+
londonBlock?: number;
|
|
3598
|
+
/**
|
|
3599
|
+
* Muir Glacier block number
|
|
3600
|
+
*/
|
|
3601
|
+
muirGlacierBlock?: number;
|
|
3602
|
+
/**
|
|
3603
|
+
* Petersburg block number
|
|
3604
|
+
*/
|
|
3605
|
+
petersburgBlock?: number;
|
|
3606
|
+
/**
|
|
3607
|
+
* Subnet EVM timestamp
|
|
3608
|
+
*/
|
|
3609
|
+
subnetEVMTimestamp?: number;
|
|
3610
|
+
/**
|
|
3611
|
+
* Allow fee recipients
|
|
3612
|
+
*/
|
|
3613
|
+
allowFeeRecipients?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* Warp configuration
|
|
3616
|
+
*/
|
|
3617
|
+
warpConfig?: EvmGenesisWarpConfigDto;
|
|
3618
|
+
/**
|
|
3619
|
+
* Transaction allow list configuration
|
|
3620
|
+
*/
|
|
3621
|
+
txAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3622
|
+
/**
|
|
3623
|
+
* Contract deployer allow list configuration
|
|
3624
|
+
*/
|
|
3625
|
+
contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
|
|
3626
|
+
/**
|
|
3627
|
+
* Contract native minter configuration
|
|
3628
|
+
*/
|
|
3629
|
+
contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
|
|
3630
|
+
/**
|
|
3631
|
+
* Fee manager configuration
|
|
3632
|
+
*/
|
|
3633
|
+
feeManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3634
|
+
/**
|
|
3635
|
+
* Reward manager configuration
|
|
3636
|
+
*/
|
|
3637
|
+
rewardManagerConfig?: EvmGenesisAllowListConfigDto;
|
|
3638
|
+
};
|
|
3639
|
+
|
|
3640
|
+
type EvmGenesisDto = {
|
|
3641
|
+
/**
|
|
3642
|
+
* Airdrop amount
|
|
3643
|
+
*/
|
|
3644
|
+
airdropAmount?: number | null;
|
|
3645
|
+
/**
|
|
3646
|
+
* Airdrop hash
|
|
3647
|
+
*/
|
|
3648
|
+
airdropHash?: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* Allocation of accounts and balances
|
|
3651
|
+
*/
|
|
3652
|
+
alloc?: Record<string, EvmGenesisAllocDto>;
|
|
3653
|
+
/**
|
|
3654
|
+
* Base fee per gas
|
|
3655
|
+
*/
|
|
3656
|
+
baseFeePerGas?: number | null;
|
|
3657
|
+
/**
|
|
3658
|
+
* Blob gas used
|
|
3659
|
+
*/
|
|
3660
|
+
blobGasUsed?: string | null;
|
|
3661
|
+
/**
|
|
3662
|
+
* Coinbase address
|
|
3663
|
+
*/
|
|
3664
|
+
coinbase?: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* Genesis configuration
|
|
3667
|
+
*/
|
|
3668
|
+
config?: EvmGenesisConfigDto;
|
|
3669
|
+
/**
|
|
3670
|
+
* Difficulty
|
|
3671
|
+
*/
|
|
3672
|
+
difficulty?: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Excess blob gas
|
|
3675
|
+
*/
|
|
3676
|
+
excessBlobGas?: string | null;
|
|
3677
|
+
/**
|
|
3678
|
+
* Extra data
|
|
3679
|
+
*/
|
|
3680
|
+
extraData?: string;
|
|
3681
|
+
/**
|
|
3682
|
+
* Gas limit
|
|
3683
|
+
*/
|
|
3684
|
+
gasLimit?: string;
|
|
3685
|
+
/**
|
|
3686
|
+
* Gas used
|
|
3687
|
+
*/
|
|
3688
|
+
gasUsed?: string;
|
|
3689
|
+
/**
|
|
3690
|
+
* Mix hash
|
|
3691
|
+
*/
|
|
3692
|
+
mixHash?: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* Nonce
|
|
3695
|
+
*/
|
|
3696
|
+
nonce?: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* Block number
|
|
3699
|
+
*/
|
|
3700
|
+
number?: string;
|
|
3701
|
+
/**
|
|
3702
|
+
* Parent hash
|
|
3703
|
+
*/
|
|
3704
|
+
parentHash?: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Block timestamp
|
|
3707
|
+
*/
|
|
3708
|
+
timestamp?: string;
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3241
3711
|
type Blockchain = {
|
|
3242
3712
|
createBlockTimestamp: number;
|
|
3243
3713
|
createBlockNumber: string;
|
|
@@ -3248,11 +3718,11 @@ type Blockchain = {
|
|
|
3248
3718
|
/**
|
|
3249
3719
|
* 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
3720
|
*/
|
|
3251
|
-
evmChainId
|
|
3721
|
+
evmChainId?: number;
|
|
3252
3722
|
/**
|
|
3253
|
-
* The genesis data of the blockchain.
|
|
3723
|
+
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3254
3724
|
*/
|
|
3255
|
-
genesisData?:
|
|
3725
|
+
genesisData?: (EvmGenesisDto | string);
|
|
3256
3726
|
};
|
|
3257
3727
|
|
|
3258
3728
|
declare enum BlockchainIds {
|
|
@@ -4685,6 +5155,10 @@ type Utxo = {
|
|
|
4685
5155
|
* UTXO ID for this output.
|
|
4686
5156
|
*/
|
|
4687
5157
|
utxoId: string;
|
|
5158
|
+
/**
|
|
5159
|
+
* The bytes of the UTXO
|
|
5160
|
+
*/
|
|
5161
|
+
utxoBytes?: string;
|
|
4688
5162
|
/**
|
|
4689
5163
|
* Unix timestamp in seconds at which this output was consumed.
|
|
4690
5164
|
*/
|
|
@@ -4859,7 +5333,7 @@ type BlockchainInfo = {
|
|
|
4859
5333
|
/**
|
|
4860
5334
|
* 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
5335
|
*/
|
|
4862
|
-
genesisData?:
|
|
5336
|
+
genesisData?: (EvmGenesisDto | string);
|
|
4863
5337
|
};
|
|
4864
5338
|
|
|
4865
5339
|
type L1ValidatorDetailsTransaction = {
|
|
@@ -4942,6 +5416,10 @@ type PChainUtxo = {
|
|
|
4942
5416
|
* UTXO ID for this output.
|
|
4943
5417
|
*/
|
|
4944
5418
|
utxoId: string;
|
|
5419
|
+
/**
|
|
5420
|
+
* The bytes of the UTXO
|
|
5421
|
+
*/
|
|
5422
|
+
utxoBytes?: string;
|
|
4945
5423
|
/**
|
|
4946
5424
|
* @deprecated
|
|
4947
5425
|
*/
|
|
@@ -5000,7 +5478,7 @@ type PChainTransaction = {
|
|
|
5000
5478
|
txHash: string;
|
|
5001
5479
|
txType: PChainTransactionType;
|
|
5002
5480
|
/**
|
|
5003
|
-
* The block
|
|
5481
|
+
* The block creation (proposal) timestamp in seconds
|
|
5004
5482
|
*/
|
|
5005
5483
|
blockTimestamp: number;
|
|
5006
5484
|
/**
|
|
@@ -5446,6 +5924,36 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
5446
5924
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
5447
5925
|
}
|
|
5448
5926
|
|
|
5927
|
+
declare enum PrimaryNetworkType {
|
|
5928
|
+
MAINNET = "mainnet",
|
|
5929
|
+
FUJI = "fuji"
|
|
5930
|
+
}
|
|
5931
|
+
|
|
5932
|
+
type LastActivityTimestamp = {
|
|
5933
|
+
/**
|
|
5934
|
+
* Unix timestamp in seconds at which the last activity occurred.
|
|
5935
|
+
*/
|
|
5936
|
+
timestamp: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Block height at which the last activity occurred.
|
|
5939
|
+
*/
|
|
5940
|
+
blockNumber: string;
|
|
5941
|
+
/**
|
|
5942
|
+
* Transaction hash of the transaction that created or consumed the address' UTXOs.
|
|
5943
|
+
*/
|
|
5944
|
+
txHash: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* UTXO ID of the UTXO that was created or consumed.
|
|
5947
|
+
*/
|
|
5948
|
+
utxoId: string;
|
|
5949
|
+
/**
|
|
5950
|
+
* Whether the last activity was a consumption of an existing UTXO.
|
|
5951
|
+
*/
|
|
5952
|
+
isConsumed: boolean;
|
|
5953
|
+
chainName: PrimaryNetworkChainName;
|
|
5954
|
+
network: PrimaryNetworkType;
|
|
5955
|
+
};
|
|
5956
|
+
|
|
5449
5957
|
type ListPChainUtxosResponse = {
|
|
5450
5958
|
/**
|
|
5451
5959
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -5464,6 +5972,18 @@ type ListUtxosResponse = {
|
|
|
5464
5972
|
chainInfo: PrimaryNetworkChainInfo;
|
|
5465
5973
|
};
|
|
5466
5974
|
|
|
5975
|
+
type PrimaryNetworkAddressesBodyDto = {
|
|
5976
|
+
/**
|
|
5977
|
+
* Comma-separated list of primary network addresses
|
|
5978
|
+
*/
|
|
5979
|
+
addresses: string;
|
|
5980
|
+
};
|
|
5981
|
+
|
|
5982
|
+
declare enum UtxosSortByOption {
|
|
5983
|
+
TIMESTAMP = "timestamp",
|
|
5984
|
+
AMOUNT = "amount"
|
|
5985
|
+
}
|
|
5986
|
+
|
|
5467
5987
|
declare class PrimaryNetworkUtxOsService {
|
|
5468
5988
|
readonly httpRequest: BaseHttpRequest;
|
|
5469
5989
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -5473,7 +5993,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5473
5993
|
* @returns any Successful response
|
|
5474
5994
|
* @throws ApiError
|
|
5475
5995
|
*/
|
|
5476
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
5996
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
5477
5997
|
/**
|
|
5478
5998
|
* A primary network blockchain id or alias.
|
|
5479
5999
|
*/
|
|
@@ -5498,15 +6018,105 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
5498
6018
|
* Asset ID for any asset (only applicable X-Chain)
|
|
5499
6019
|
*/
|
|
5500
6020
|
assetId?: string;
|
|
6021
|
+
/**
|
|
6022
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6023
|
+
*/
|
|
6024
|
+
minUtxoAmount?: number;
|
|
5501
6025
|
/**
|
|
5502
6026
|
* Boolean filter to include spent UTXOs.
|
|
5503
6027
|
*/
|
|
5504
6028
|
includeSpent?: boolean;
|
|
6029
|
+
/**
|
|
6030
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6031
|
+
*/
|
|
6032
|
+
sortBy?: UtxosSortByOption;
|
|
5505
6033
|
/**
|
|
5506
6034
|
* 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
6035
|
*/
|
|
5508
6036
|
sortOrder?: SortOrder;
|
|
5509
6037
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6038
|
+
/**
|
|
6039
|
+
* List UTXOs v2 - Supports querying for more addresses
|
|
6040
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
|
|
6041
|
+
* @returns any Successful response
|
|
6042
|
+
* @throws ApiError
|
|
6043
|
+
*/
|
|
6044
|
+
getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
|
|
6045
|
+
/**
|
|
6046
|
+
* A primary network blockchain id or alias.
|
|
6047
|
+
*/
|
|
6048
|
+
blockchainId: BlockchainId;
|
|
6049
|
+
/**
|
|
6050
|
+
* Either mainnet or testnet/fuji.
|
|
6051
|
+
*/
|
|
6052
|
+
network: Network;
|
|
6053
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6054
|
+
/**
|
|
6055
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
6056
|
+
*/
|
|
6057
|
+
pageToken?: string;
|
|
6058
|
+
/**
|
|
6059
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
|
|
6060
|
+
*/
|
|
6061
|
+
pageSize?: number;
|
|
6062
|
+
/**
|
|
6063
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
6064
|
+
*/
|
|
6065
|
+
assetId?: string;
|
|
6066
|
+
/**
|
|
6067
|
+
* The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
|
|
6068
|
+
*/
|
|
6069
|
+
minUtxoAmount?: number;
|
|
6070
|
+
/**
|
|
6071
|
+
* Boolean filter to include spent UTXOs.
|
|
6072
|
+
*/
|
|
6073
|
+
includeSpent?: boolean;
|
|
6074
|
+
/**
|
|
6075
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
6076
|
+
*/
|
|
6077
|
+
sortBy?: UtxosSortByOption;
|
|
6078
|
+
/**
|
|
6079
|
+
* 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.
|
|
6080
|
+
*/
|
|
6081
|
+
sortOrder?: SortOrder;
|
|
6082
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
6083
|
+
/**
|
|
6084
|
+
* Get last activity timestamp by addresses
|
|
6085
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains.
|
|
6086
|
+
* @returns any Successful response
|
|
6087
|
+
* @throws ApiError
|
|
6088
|
+
*/
|
|
6089
|
+
getLastActivityTimestampByAddresses({ blockchainId, network, addresses, }: {
|
|
6090
|
+
/**
|
|
6091
|
+
* A primary network blockchain id or alias.
|
|
6092
|
+
*/
|
|
6093
|
+
blockchainId: BlockchainId;
|
|
6094
|
+
/**
|
|
6095
|
+
* Either mainnet or testnet/fuji.
|
|
6096
|
+
*/
|
|
6097
|
+
network: Network;
|
|
6098
|
+
/**
|
|
6099
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
6100
|
+
*/
|
|
6101
|
+
addresses?: string;
|
|
6102
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
6103
|
+
/**
|
|
6104
|
+
* Get last activity timestamp by addresses v2
|
|
6105
|
+
* Gets the last activity timestamp for the supplied addresses on one of the Primary Network chains. V2 route supports querying for more addresses.
|
|
6106
|
+
* @returns any Successful response
|
|
6107
|
+
* @throws ApiError
|
|
6108
|
+
*/
|
|
6109
|
+
getLastActivityTimestampByAddressesV2({ blockchainId, network, requestBody, }: {
|
|
6110
|
+
/**
|
|
6111
|
+
* A primary network blockchain id or alias.
|
|
6112
|
+
*/
|
|
6113
|
+
blockchainId: BlockchainId;
|
|
6114
|
+
/**
|
|
6115
|
+
* Either mainnet or testnet/fuji.
|
|
6116
|
+
*/
|
|
6117
|
+
network: Network;
|
|
6118
|
+
requestBody: PrimaryNetworkAddressesBodyDto;
|
|
6119
|
+
}): CancelablePromise<LastActivityTimestamp>;
|
|
5510
6120
|
}
|
|
5511
6121
|
|
|
5512
6122
|
type XChainVertex = {
|
|
@@ -5615,10 +6225,30 @@ type SignatureAggregationResponse = {
|
|
|
5615
6225
|
};
|
|
5616
6226
|
|
|
5617
6227
|
type SignatureAggregatorRequest = {
|
|
5618
|
-
|
|
6228
|
+
/**
|
|
6229
|
+
* Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
|
|
6230
|
+
*/
|
|
6231
|
+
message?: string;
|
|
6232
|
+
/**
|
|
6233
|
+
* Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
|
|
6234
|
+
*/
|
|
5619
6235
|
justification?: string;
|
|
6236
|
+
/**
|
|
6237
|
+
* Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
|
|
6238
|
+
*/
|
|
5620
6239
|
signingSubnetId?: string;
|
|
6240
|
+
/**
|
|
6241
|
+
* 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.
|
|
6242
|
+
*/
|
|
5621
6243
|
quorumPercentage?: number;
|
|
6244
|
+
/**
|
|
6245
|
+
* 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.
|
|
6246
|
+
*/
|
|
6247
|
+
quorumPercentageBuffer?: number;
|
|
6248
|
+
/**
|
|
6249
|
+
* 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.
|
|
6250
|
+
*/
|
|
6251
|
+
pChainHeight?: number;
|
|
5622
6252
|
};
|
|
5623
6253
|
|
|
5624
6254
|
declare class SignatureAggregatorService {
|
|
@@ -6101,11 +6731,6 @@ type ListWebhooksResponse = {
|
|
|
6101
6731
|
webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
|
|
6102
6732
|
};
|
|
6103
6733
|
|
|
6104
|
-
declare enum PrimaryNetworkType {
|
|
6105
|
-
MAINNET = "mainnet",
|
|
6106
|
-
FUJI = "fuji"
|
|
6107
|
-
}
|
|
6108
|
-
|
|
6109
6734
|
type PrimaryNetworkAddressActivityRequest = {
|
|
6110
6735
|
eventType: PrimaryNetworkAddressActivityRequest.eventType;
|
|
6111
6736
|
url: string;
|
|
@@ -6804,5 +7429,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
|
|
|
6804
7429
|
request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
6805
7430
|
}
|
|
6806
7431
|
|
|
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 };
|
|
7432
|
+
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, Erc20TokenV2, 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 };
|
|
7433
|
+
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, Erc20TransferDetailsV2, 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, LastActivityTimestamp, 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, ListTransactionDetailsResponseV2, 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, TransactionDetailsV2, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
|