@avalabs/glacier-sdk 3.1.0-alpha.68 → 3.1.0-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +67 -15
- package/esm/generated/models/AvaxSupplyResponse.d.ts +6 -2
- package/esm/generated/models/Blockchain.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +5 -1
- package/esm/generated/models/Erc20Transfer.d.ts +5 -1
- package/esm/generated/models/Erc721Transfer.d.ts +5 -1
- package/esm/generated/models/EvmBlock.d.ts +9 -1
- 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/NativeTransaction.d.ts +9 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -1
- 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/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -64,11 +64,11 @@ type AvaxSupplyResponse = {
|
|
|
64
64
|
*/
|
|
65
65
|
totalSupply: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
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
68
|
*/
|
|
69
69
|
totalPBurned: string;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
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
72
|
*/
|
|
73
73
|
totalCBurned: string;
|
|
74
74
|
/**
|
|
@@ -95,6 +95,10 @@ type AvaxSupplyResponse = {
|
|
|
95
95
|
* The genesis unlock amount of the AVAX supply.
|
|
96
96
|
*/
|
|
97
97
|
genesisUnlock: string;
|
|
98
|
+
/**
|
|
99
|
+
* The total L1 validator fees of AVAX.
|
|
100
|
+
*/
|
|
101
|
+
l1ValidatorFees: string;
|
|
98
102
|
};
|
|
99
103
|
|
|
100
104
|
declare class AvaxSupplyService {
|
|
@@ -1147,9 +1151,17 @@ type GetEvmBlockResponse = {
|
|
|
1147
1151
|
*/
|
|
1148
1152
|
blockNumber: string;
|
|
1149
1153
|
/**
|
|
1150
|
-
* The block
|
|
1154
|
+
* The block creation (proposal) timestamp in seconds
|
|
1151
1155
|
*/
|
|
1152
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;
|
|
1153
1165
|
/**
|
|
1154
1166
|
* The block hash identifier.
|
|
1155
1167
|
*/
|
|
@@ -1195,9 +1207,17 @@ type EvmBlock = {
|
|
|
1195
1207
|
*/
|
|
1196
1208
|
blockNumber: string;
|
|
1197
1209
|
/**
|
|
1198
|
-
* The block
|
|
1210
|
+
* The block creation (proposal) timestamp in seconds
|
|
1199
1211
|
*/
|
|
1200
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;
|
|
1201
1221
|
/**
|
|
1202
1222
|
* The block hash identifier.
|
|
1203
1223
|
*/
|
|
@@ -1246,7 +1266,7 @@ declare class EvmBlocksService {
|
|
|
1246
1266
|
constructor(httpRequest: BaseHttpRequest);
|
|
1247
1267
|
/**
|
|
1248
1268
|
* List latest blocks across all supported EVM chains
|
|
1249
|
-
* 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.
|
|
1250
1270
|
* @returns ListEvmBlocksResponse Successful response
|
|
1251
1271
|
* @throws ApiError
|
|
1252
1272
|
*/
|
|
@@ -1445,9 +1465,17 @@ type NativeTransaction = {
|
|
|
1445
1465
|
*/
|
|
1446
1466
|
blockNumber: string;
|
|
1447
1467
|
/**
|
|
1448
|
-
* The block
|
|
1468
|
+
* The block creation (proposal) timestamp in seconds
|
|
1449
1469
|
*/
|
|
1450
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;
|
|
1451
1479
|
/**
|
|
1452
1480
|
* The block hash identifier.
|
|
1453
1481
|
*/
|
|
@@ -1512,7 +1540,7 @@ declare class EvmChainsService {
|
|
|
1512
1540
|
constructor(httpRequest: BaseHttpRequest);
|
|
1513
1541
|
/**
|
|
1514
1542
|
* List all chains associated with a given address
|
|
1515
|
-
* 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.
|
|
1516
1544
|
* @returns ListAddressChainsResponse Successful response
|
|
1517
1545
|
* @throws ApiError
|
|
1518
1546
|
*/
|
|
@@ -2036,9 +2064,17 @@ type FullNativeTransactionDetails = {
|
|
|
2036
2064
|
*/
|
|
2037
2065
|
blockNumber: string;
|
|
2038
2066
|
/**
|
|
2039
|
-
* The block
|
|
2067
|
+
* The block creation (proposal) timestamp in seconds
|
|
2040
2068
|
*/
|
|
2041
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;
|
|
2042
2078
|
/**
|
|
2043
2079
|
* The block hash identifier.
|
|
2044
2080
|
*/
|
|
@@ -2185,9 +2221,13 @@ type Erc1155Transfer = {
|
|
|
2185
2221
|
*/
|
|
2186
2222
|
blockNumber: string;
|
|
2187
2223
|
/**
|
|
2188
|
-
* The block
|
|
2224
|
+
* The block creation (proposal) timestamp in seconds
|
|
2189
2225
|
*/
|
|
2190
2226
|
blockTimestamp: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2229
|
+
*/
|
|
2230
|
+
blockTimestampMilliseconds?: number;
|
|
2191
2231
|
/**
|
|
2192
2232
|
* The block hash identifier.
|
|
2193
2233
|
*/
|
|
@@ -2217,9 +2257,13 @@ type Erc20Transfer = {
|
|
|
2217
2257
|
*/
|
|
2218
2258
|
blockNumber: string;
|
|
2219
2259
|
/**
|
|
2220
|
-
* The block
|
|
2260
|
+
* The block creation (proposal) timestamp in seconds
|
|
2221
2261
|
*/
|
|
2222
2262
|
blockTimestamp: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2265
|
+
*/
|
|
2266
|
+
blockTimestampMilliseconds?: number;
|
|
2223
2267
|
/**
|
|
2224
2268
|
* The block hash identifier.
|
|
2225
2269
|
*/
|
|
@@ -2249,9 +2293,13 @@ type Erc721Transfer = {
|
|
|
2249
2293
|
*/
|
|
2250
2294
|
blockNumber: string;
|
|
2251
2295
|
/**
|
|
2252
|
-
* The block
|
|
2296
|
+
* The block creation (proposal) timestamp in seconds
|
|
2253
2297
|
*/
|
|
2254
2298
|
blockTimestamp: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2301
|
+
*/
|
|
2302
|
+
blockTimestampMilliseconds?: number;
|
|
2255
2303
|
/**
|
|
2256
2304
|
* The block hash identifier.
|
|
2257
2305
|
*/
|
|
@@ -2280,9 +2328,13 @@ type InternalTransaction = {
|
|
|
2280
2328
|
*/
|
|
2281
2329
|
blockNumber: string;
|
|
2282
2330
|
/**
|
|
2283
|
-
* The block
|
|
2331
|
+
* The block creation (proposal) timestamp in seconds
|
|
2284
2332
|
*/
|
|
2285
2333
|
blockTimestamp: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
2336
|
+
*/
|
|
2337
|
+
blockTimestampMilliseconds?: number;
|
|
2286
2338
|
/**
|
|
2287
2339
|
* The block hash identifier.
|
|
2288
2340
|
*/
|
|
@@ -2360,7 +2412,7 @@ declare class EvmTransactionsService {
|
|
|
2360
2412
|
constructor(httpRequest: BaseHttpRequest);
|
|
2361
2413
|
/**
|
|
2362
2414
|
* List the latest transactions across all supported EVM chains
|
|
2363
|
-
* Lists the most recent transactions from all supported EVM-compatible
|
|
2415
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2364
2416
|
* @returns ListNativeTransactionsResponse Successful response
|
|
2365
2417
|
* @throws ApiError
|
|
2366
2418
|
*/
|
|
@@ -3544,7 +3596,7 @@ type Blockchain = {
|
|
|
3544
3596
|
/**
|
|
3545
3597
|
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
3546
3598
|
*/
|
|
3547
|
-
evmChainId
|
|
3599
|
+
evmChainId?: number;
|
|
3548
3600
|
/**
|
|
3549
3601
|
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
3550
3602
|
*/
|
|
@@ -5304,7 +5356,7 @@ type PChainTransaction = {
|
|
|
5304
5356
|
txHash: string;
|
|
5305
5357
|
txType: PChainTransactionType;
|
|
5306
5358
|
/**
|
|
5307
|
-
* The block
|
|
5359
|
+
* The block creation (proposal) timestamp in seconds
|
|
5308
5360
|
*/
|
|
5309
5361
|
blockTimestamp: number;
|
|
5310
5362
|
/**
|
|
@@ -8,11 +8,11 @@ type AvaxSupplyResponse = {
|
|
|
8
8
|
*/
|
|
9
9
|
totalSupply: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
12
|
*/
|
|
13
13
|
totalPBurned: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
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
16
|
*/
|
|
17
17
|
totalCBurned: string;
|
|
18
18
|
/**
|
|
@@ -39,6 +39,10 @@ type AvaxSupplyResponse = {
|
|
|
39
39
|
* The genesis unlock amount of the AVAX supply.
|
|
40
40
|
*/
|
|
41
41
|
genesisUnlock: string;
|
|
42
|
+
/**
|
|
43
|
+
* The total L1 validator fees of AVAX.
|
|
44
|
+
*/
|
|
45
|
+
l1ValidatorFees: string;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
export type { AvaxSupplyResponse };
|
|
@@ -10,7 +10,7 @@ type Blockchain = {
|
|
|
10
10
|
/**
|
|
11
11
|
* EVM Chain ID for the EVM-based chains. This field is extracted from genesis data, and may be present for non-EVM chains as well.
|
|
12
12
|
*/
|
|
13
|
-
evmChainId
|
|
13
|
+
evmChainId?: number;
|
|
14
14
|
/**
|
|
15
15
|
* The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
|
|
16
16
|
*/
|
|
@@ -7,9 +7,13 @@ type Erc1155Transfer = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
13
17
|
/**
|
|
14
18
|
* The block hash identifier.
|
|
15
19
|
*/
|
|
@@ -7,9 +7,13 @@ type Erc20Transfer = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
13
17
|
/**
|
|
14
18
|
* The block hash identifier.
|
|
15
19
|
*/
|
|
@@ -7,9 +7,13 @@ type Erc721Transfer = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
13
17
|
/**
|
|
14
18
|
* The block hash identifier.
|
|
15
19
|
*/
|
|
@@ -8,9 +8,17 @@ type EvmBlock = {
|
|
|
8
8
|
*/
|
|
9
9
|
blockNumber: string;
|
|
10
10
|
/**
|
|
11
|
-
* The block
|
|
11
|
+
* The block creation (proposal) timestamp in seconds
|
|
12
12
|
*/
|
|
13
13
|
blockTimestamp: number;
|
|
14
|
+
/**
|
|
15
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
16
|
+
*/
|
|
17
|
+
blockTimestampMilliseconds?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
20
|
+
*/
|
|
21
|
+
blockMinDelayExcess?: number;
|
|
14
22
|
/**
|
|
15
23
|
* The block hash identifier.
|
|
16
24
|
*/
|
|
@@ -7,9 +7,17 @@ type FullNativeTransactionDetails = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
19
|
+
*/
|
|
20
|
+
blockMinDelayExcess?: number;
|
|
13
21
|
/**
|
|
14
22
|
* The block hash identifier.
|
|
15
23
|
*/
|
|
@@ -8,9 +8,17 @@ type GetEvmBlockResponse = {
|
|
|
8
8
|
*/
|
|
9
9
|
blockNumber: string;
|
|
10
10
|
/**
|
|
11
|
-
* The block
|
|
11
|
+
* The block creation (proposal) timestamp in seconds
|
|
12
12
|
*/
|
|
13
13
|
blockTimestamp: number;
|
|
14
|
+
/**
|
|
15
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
16
|
+
*/
|
|
17
|
+
blockTimestampMilliseconds?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
20
|
+
*/
|
|
21
|
+
blockMinDelayExcess?: number;
|
|
14
22
|
/**
|
|
15
23
|
* The block hash identifier.
|
|
16
24
|
*/
|
|
@@ -7,9 +7,13 @@ type InternalTransaction = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
13
17
|
/**
|
|
14
18
|
* The block hash identifier.
|
|
15
19
|
*/
|
|
@@ -7,9 +7,17 @@ type NativeTransaction = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
19
|
+
*/
|
|
20
|
+
blockMinDelayExcess?: number;
|
|
13
21
|
/**
|
|
14
22
|
* The block hash identifier.
|
|
15
23
|
*/
|
|
@@ -9,7 +9,7 @@ declare class EvmBlocksService {
|
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
10
|
/**
|
|
11
11
|
* List latest blocks across all supported EVM chains
|
|
12
|
-
* Lists the most recent blocks from all supported
|
|
12
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
13
13
|
* @returns ListEvmBlocksResponse Successful response
|
|
14
14
|
* @throws ApiError
|
|
15
15
|
*/
|
|
@@ -14,7 +14,7 @@ declare class EvmChainsService {
|
|
|
14
14
|
constructor(httpRequest: BaseHttpRequest);
|
|
15
15
|
/**
|
|
16
16
|
* List all chains associated with a given address
|
|
17
|
-
* Lists the chains where the specified address has
|
|
17
|
+
* 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.
|
|
18
18
|
* @returns ListAddressChainsResponse Successful response
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
@@ -19,7 +19,7 @@ declare class EvmTransactionsService {
|
|
|
19
19
|
constructor(httpRequest: BaseHttpRequest);
|
|
20
20
|
/**
|
|
21
21
|
* List the latest transactions across all supported EVM chains
|
|
22
|
-
* Lists the most recent transactions from all supported EVM-compatible
|
|
22
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
23
23
|
* @returns ListNativeTransactionsResponse Successful response
|
|
24
24
|
* @throws ApiError
|
|
25
25
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.69",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d82bc3cb16e23c20801ee53933f619163a76ae7e"
|
|
42
42
|
}
|