@avalabs/glacier-sdk 2.8.0-alpha.120 → 2.8.0-alpha.121
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 +547 -589
- package/dist/index.js +137 -145
- package/esm/generated/models/ChainInfo.d.ts +1 -4
- package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/GetChainResponse.d.ts +1 -4
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +2 -2
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListPendingRewardsResponse.d.ts} +4 -4
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/PChainBalance.d.ts +13 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -5
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/Rewards.d.ts +6 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +1 -1
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -4
- package/esm/generated/models/ValidationStatusType.d.ts +5 -0
- package/esm/generated/models/ValidationStatusType.js +6 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/services/EvmService.d.ts +105 -259
- package/esm/generated/services/EvmService.js +1 -92
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/OperationsService.d.ts +5 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +222 -62
- package/esm/generated/services/PrimaryNetworkService.js +111 -3
- package/esm/index.d.ts +10 -18
- package/esm/index.js +2 -7
- package/package.json +2 -2
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/PrimaryNetwork.js +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +0 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +0 -8
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
|
@@ -212,83 +212,6 @@ class EvmService {
|
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
listListingsByCollectionTokenId({
|
|
216
|
-
chainId,
|
|
217
|
-
address,
|
|
218
|
-
tokenId,
|
|
219
|
-
pageSize = 10,
|
|
220
|
-
pageToken,
|
|
221
|
-
sortBy,
|
|
222
|
-
sortOrder,
|
|
223
|
-
currency,
|
|
224
|
-
includeHistory = false
|
|
225
|
-
}) {
|
|
226
|
-
return this.httpRequest.request({
|
|
227
|
-
method: "GET",
|
|
228
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}/listings",
|
|
229
|
-
path: {
|
|
230
|
-
"chainId": chainId,
|
|
231
|
-
"address": address,
|
|
232
|
-
"tokenId": tokenId
|
|
233
|
-
},
|
|
234
|
-
query: {
|
|
235
|
-
"pageSize": pageSize,
|
|
236
|
-
"pageToken": pageToken,
|
|
237
|
-
"sortBy": sortBy,
|
|
238
|
-
"sortOrder": sortOrder,
|
|
239
|
-
"currency": currency,
|
|
240
|
-
"includeHistory": includeHistory
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
listListingsByCollection({
|
|
245
|
-
chainId,
|
|
246
|
-
address,
|
|
247
|
-
pageSize = 10,
|
|
248
|
-
pageToken,
|
|
249
|
-
sortBy,
|
|
250
|
-
sortOrder,
|
|
251
|
-
currency,
|
|
252
|
-
includeHistory = false
|
|
253
|
-
}) {
|
|
254
|
-
return this.httpRequest.request({
|
|
255
|
-
method: "GET",
|
|
256
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/listings",
|
|
257
|
-
path: {
|
|
258
|
-
"chainId": chainId,
|
|
259
|
-
"address": address
|
|
260
|
-
},
|
|
261
|
-
query: {
|
|
262
|
-
"pageSize": pageSize,
|
|
263
|
-
"pageToken": pageToken,
|
|
264
|
-
"sortBy": sortBy,
|
|
265
|
-
"sortOrder": sortOrder,
|
|
266
|
-
"currency": currency,
|
|
267
|
-
"includeHistory": includeHistory
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
listRecentListings({
|
|
272
|
-
chainId,
|
|
273
|
-
pageSize = 10,
|
|
274
|
-
pageToken,
|
|
275
|
-
eventType,
|
|
276
|
-
currency
|
|
277
|
-
}) {
|
|
278
|
-
return this.httpRequest.request({
|
|
279
|
-
method: "GET",
|
|
280
|
-
url: "/v1/chains/{chainId}/nfts/listings",
|
|
281
|
-
path: {
|
|
282
|
-
"chainId": chainId
|
|
283
|
-
},
|
|
284
|
-
query: {
|
|
285
|
-
"pageSize": pageSize,
|
|
286
|
-
"pageToken": pageToken,
|
|
287
|
-
"eventType": eventType,
|
|
288
|
-
"currency": currency
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
215
|
listCollections({
|
|
293
216
|
chainId,
|
|
294
217
|
pageSize = 10,
|
|
@@ -312,21 +235,7 @@ class EvmService {
|
|
|
312
235
|
}
|
|
313
236
|
});
|
|
314
237
|
}
|
|
315
|
-
|
|
316
|
-
chainId,
|
|
317
|
-
requestBody
|
|
318
|
-
}) {
|
|
319
|
-
return this.httpRequest.request({
|
|
320
|
-
method: "POST",
|
|
321
|
-
url: "/v1/chains/{chainId}/nfts/search",
|
|
322
|
-
path: {
|
|
323
|
-
"chainId": chainId
|
|
324
|
-
},
|
|
325
|
-
body: requestBody,
|
|
326
|
-
mediaType: "application/json"
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
getTokenMetadata({
|
|
238
|
+
getTokenDetails({
|
|
330
239
|
chainId,
|
|
331
240
|
address,
|
|
332
241
|
tokenId
|
|
@@ -5,7 +5,7 @@ declare class HealthCheckService {
|
|
|
5
5
|
readonly httpRequest: BaseHttpRequest;
|
|
6
6
|
constructor(httpRequest: BaseHttpRequest);
|
|
7
7
|
/**
|
|
8
|
-
* Get the health of the service
|
|
8
|
+
* Get the health of the service
|
|
9
9
|
* @returns any The Health Check is successful
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
@@ -8,7 +8,10 @@ declare class OperationsService {
|
|
|
8
8
|
readonly httpRequest: BaseHttpRequest;
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
10
|
/**
|
|
11
|
+
* Create transaction export operation
|
|
11
12
|
* Trigger a transaction export operation with given parameters.
|
|
13
|
+
*
|
|
14
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
12
15
|
* @returns OperationStatusResponse
|
|
13
16
|
* @throws ApiError
|
|
14
17
|
*/
|
|
@@ -16,7 +19,8 @@ declare class OperationsService {
|
|
|
16
19
|
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
17
20
|
}): CancelablePromise<OperationStatusResponse>;
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* Get operation
|
|
23
|
+
* Gets operation details for the given operation id.
|
|
20
24
|
* @returns OperationStatusResponse
|
|
21
25
|
* @throws ApiError
|
|
22
26
|
*/
|
|
@@ -7,18 +7,22 @@ import { GetPrimaryNetworkBlockResponse } from '../models/GetPrimaryNetworkBlock
|
|
|
7
7
|
import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
|
|
8
8
|
import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
|
|
9
9
|
import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
|
|
10
|
+
import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
|
|
10
11
|
import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
|
|
11
12
|
import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
|
|
12
13
|
import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
|
|
14
|
+
import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
|
|
13
15
|
import { ListPrimaryNetworkBlocksResponse } from '../models/ListPrimaryNetworkBlocksResponse.js';
|
|
14
16
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
15
17
|
import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
|
|
18
|
+
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
16
19
|
import { ListXChainBalancesResponse } from '../models/ListXChainBalancesResponse.js';
|
|
17
20
|
import { ListXChainTransactionsResponse } from '../models/ListXChainTransactionsResponse.js';
|
|
18
21
|
import { ListXChainVerticesResponse } from '../models/ListXChainVerticesResponse.js';
|
|
19
22
|
import { Network } from '../models/Network.js';
|
|
20
23
|
import { PChainId } from '../models/PChainId.js';
|
|
21
24
|
import { PChainTransaction } from '../models/PChainTransaction.js';
|
|
25
|
+
import { PrimaryNetworkTxType } from '../models/PrimaryNetworkTxType.js';
|
|
22
26
|
import { SortOrder } from '../models/SortOrder.js';
|
|
23
27
|
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
24
28
|
import { XChainId } from '../models/XChainId.js';
|
|
@@ -32,7 +36,8 @@ declare class PrimaryNetworkService {
|
|
|
32
36
|
readonly httpRequest: BaseHttpRequest;
|
|
33
37
|
constructor(httpRequest: BaseHttpRequest);
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* Get transaction
|
|
40
|
+
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
36
41
|
* @returns any
|
|
37
42
|
* @throws ApiError
|
|
38
43
|
*/
|
|
@@ -51,11 +56,12 @@ declare class PrimaryNetworkService {
|
|
|
51
56
|
txHash: string;
|
|
52
57
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
59
|
+
* List latest transactions
|
|
60
|
+
* Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
|
|
55
61
|
* @returns any
|
|
56
62
|
* @throws ApiError
|
|
57
63
|
*/
|
|
58
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
64
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
59
65
|
/**
|
|
60
66
|
* A primary network blockchain id or alias.
|
|
61
67
|
*/
|
|
@@ -69,8 +75,19 @@ declare class PrimaryNetworkService {
|
|
|
69
75
|
*/
|
|
70
76
|
addresses?: string;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
73
|
-
|
|
78
|
+
* Query param for filtering items based on transaction types.
|
|
79
|
+
*/
|
|
80
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
81
|
+
/**
|
|
82
|
+
* Query param for retrieving items after a specific timestamp.
|
|
83
|
+
*/
|
|
84
|
+
startTimestamp?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Query param for retrieving items before a specific timestamp.
|
|
87
|
+
*/
|
|
88
|
+
endTimestamp?: number;
|
|
89
|
+
/**
|
|
90
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
74
91
|
*/
|
|
75
92
|
pageSize?: number;
|
|
76
93
|
/**
|
|
@@ -78,18 +95,17 @@ declare class PrimaryNetworkService {
|
|
|
78
95
|
*/
|
|
79
96
|
pageToken?: string;
|
|
80
97
|
/**
|
|
81
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
82
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
83
|
-
* query parameter, if provided.
|
|
98
|
+
* 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.
|
|
84
99
|
*/
|
|
85
100
|
sortOrder?: SortOrder;
|
|
86
101
|
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
|
|
87
102
|
/**
|
|
88
|
-
*
|
|
103
|
+
* List staking transactions
|
|
104
|
+
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
89
105
|
* @returns ListPChainTransactionsResponse
|
|
90
106
|
* @throws ApiError
|
|
91
107
|
*/
|
|
92
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
108
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
93
109
|
/**
|
|
94
110
|
* A primary network blockchain id or alias.
|
|
95
111
|
*/
|
|
@@ -103,8 +119,19 @@ declare class PrimaryNetworkService {
|
|
|
103
119
|
*/
|
|
104
120
|
addresses?: string;
|
|
105
121
|
/**
|
|
106
|
-
*
|
|
107
|
-
|
|
122
|
+
* Query param for filtering items based on transaction types.
|
|
123
|
+
*/
|
|
124
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
125
|
+
/**
|
|
126
|
+
* Query param for retrieving items after a specific timestamp.
|
|
127
|
+
*/
|
|
128
|
+
startTimestamp?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Query param for retrieving items before a specific timestamp.
|
|
131
|
+
*/
|
|
132
|
+
endTimestamp?: number;
|
|
133
|
+
/**
|
|
134
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
108
135
|
*/
|
|
109
136
|
pageSize?: number;
|
|
110
137
|
/**
|
|
@@ -112,14 +139,69 @@ declare class PrimaryNetworkService {
|
|
|
112
139
|
*/
|
|
113
140
|
pageToken?: string;
|
|
114
141
|
/**
|
|
115
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
116
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
117
|
-
* query parameter, if provided.
|
|
142
|
+
* 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.
|
|
118
143
|
*/
|
|
119
144
|
sortOrder?: SortOrder;
|
|
120
145
|
}): CancelablePromise<ListPChainTransactionsResponse>;
|
|
121
146
|
/**
|
|
122
|
-
*
|
|
147
|
+
* List pending rewards
|
|
148
|
+
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
149
|
+
* @returns ListPendingRewardsResponse
|
|
150
|
+
* @throws ApiError
|
|
151
|
+
*/
|
|
152
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
153
|
+
/**
|
|
154
|
+
* Either mainnet or a testnet.
|
|
155
|
+
*/
|
|
156
|
+
network: Network;
|
|
157
|
+
/**
|
|
158
|
+
* 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".
|
|
159
|
+
*/
|
|
160
|
+
addresses?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
163
|
+
*/
|
|
164
|
+
pageSize?: number;
|
|
165
|
+
/**
|
|
166
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
167
|
+
*/
|
|
168
|
+
pageToken?: string;
|
|
169
|
+
/**
|
|
170
|
+
* 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.
|
|
171
|
+
*/
|
|
172
|
+
sortOrder?: SortOrder;
|
|
173
|
+
}): CancelablePromise<ListPendingRewardsResponse>;
|
|
174
|
+
/**
|
|
175
|
+
* List historical rewards
|
|
176
|
+
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
177
|
+
* @returns ListHistoricalRewardsResponse
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
181
|
+
/**
|
|
182
|
+
* Either mainnet or a testnet.
|
|
183
|
+
*/
|
|
184
|
+
network: Network;
|
|
185
|
+
/**
|
|
186
|
+
* 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".
|
|
187
|
+
*/
|
|
188
|
+
addresses?: string;
|
|
189
|
+
/**
|
|
190
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
191
|
+
*/
|
|
192
|
+
pageSize?: number;
|
|
193
|
+
/**
|
|
194
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
195
|
+
*/
|
|
196
|
+
pageToken?: string;
|
|
197
|
+
/**
|
|
198
|
+
* 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.
|
|
199
|
+
*/
|
|
200
|
+
sortOrder?: SortOrder;
|
|
201
|
+
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* List UTXOs
|
|
204
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
123
205
|
* @returns any
|
|
124
206
|
* @throws ApiError
|
|
125
207
|
*/
|
|
@@ -137,8 +219,7 @@ declare class PrimaryNetworkService {
|
|
|
137
219
|
*/
|
|
138
220
|
addresses?: string;
|
|
139
221
|
/**
|
|
140
|
-
* The maximum number of items to return. The minimum page size
|
|
141
|
-
* is 1. The maximum pageSize is 100.
|
|
222
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
142
223
|
*/
|
|
143
224
|
pageSize?: number;
|
|
144
225
|
/**
|
|
@@ -150,14 +231,15 @@ declare class PrimaryNetworkService {
|
|
|
150
231
|
*/
|
|
151
232
|
assetId?: string;
|
|
152
233
|
/**
|
|
153
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
154
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
155
|
-
* query parameter, if provided.
|
|
234
|
+
* 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.
|
|
156
235
|
*/
|
|
157
236
|
sortOrder?: SortOrder;
|
|
158
237
|
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
159
238
|
/**
|
|
160
|
-
*
|
|
239
|
+
* Get balances
|
|
240
|
+
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
241
|
+
*
|
|
242
|
+
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
161
243
|
* @returns any
|
|
162
244
|
* @throws ApiError
|
|
163
245
|
*/
|
|
@@ -171,8 +253,7 @@ declare class PrimaryNetworkService {
|
|
|
171
253
|
*/
|
|
172
254
|
network: Network;
|
|
173
255
|
/**
|
|
174
|
-
* An epoch timestamp in seconds.
|
|
175
|
-
* Balance will be calculated as of this timestamp.
|
|
256
|
+
* An epoch timestamp in seconds. Balance will be calculated at this timestamp.
|
|
176
257
|
*/
|
|
177
258
|
blockTimestamp?: number;
|
|
178
259
|
/**
|
|
@@ -181,7 +262,8 @@ declare class PrimaryNetworkService {
|
|
|
181
262
|
addresses?: string;
|
|
182
263
|
}): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
|
|
183
264
|
/**
|
|
184
|
-
*
|
|
265
|
+
* Get block
|
|
266
|
+
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
185
267
|
* @returns GetPrimaryNetworkBlockResponse
|
|
186
268
|
* @throws ApiError
|
|
187
269
|
*/
|
|
@@ -200,7 +282,8 @@ declare class PrimaryNetworkService {
|
|
|
200
282
|
blockId: string;
|
|
201
283
|
}): CancelablePromise<GetPrimaryNetworkBlockResponse>;
|
|
202
284
|
/**
|
|
203
|
-
*
|
|
285
|
+
* List blocks proposed by node
|
|
286
|
+
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
204
287
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
205
288
|
* @throws ApiError
|
|
206
289
|
*/
|
|
@@ -218,8 +301,7 @@ declare class PrimaryNetworkService {
|
|
|
218
301
|
*/
|
|
219
302
|
nodeId: string;
|
|
220
303
|
/**
|
|
221
|
-
* The maximum number of items to return. The minimum page size
|
|
222
|
-
* is 1. The maximum pageSize is 100.
|
|
304
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
223
305
|
*/
|
|
224
306
|
pageSize?: number;
|
|
225
307
|
/**
|
|
@@ -228,7 +310,8 @@ declare class PrimaryNetworkService {
|
|
|
228
310
|
pageToken?: string;
|
|
229
311
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
230
312
|
/**
|
|
231
|
-
*
|
|
313
|
+
* List latest blocks
|
|
314
|
+
* Lists latest blocks on one of the Primary Network chains.
|
|
232
315
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
233
316
|
* @throws ApiError
|
|
234
317
|
*/
|
|
@@ -242,8 +325,7 @@ declare class PrimaryNetworkService {
|
|
|
242
325
|
*/
|
|
243
326
|
network: Network;
|
|
244
327
|
/**
|
|
245
|
-
* The maximum number of items to return. The minimum page size
|
|
246
|
-
* is 1. The maximum pageSize is 100.
|
|
328
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
247
329
|
*/
|
|
248
330
|
pageSize?: number;
|
|
249
331
|
/**
|
|
@@ -252,7 +334,8 @@ declare class PrimaryNetworkService {
|
|
|
252
334
|
pageToken?: string;
|
|
253
335
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
254
336
|
/**
|
|
255
|
-
*
|
|
337
|
+
* List vertices
|
|
338
|
+
* Lists latest vertices on the X-Chain.
|
|
256
339
|
* @returns ListXChainVerticesResponse
|
|
257
340
|
* @throws ApiError
|
|
258
341
|
*/
|
|
@@ -266,8 +349,7 @@ declare class PrimaryNetworkService {
|
|
|
266
349
|
*/
|
|
267
350
|
network: Network;
|
|
268
351
|
/**
|
|
269
|
-
* The maximum number of items to return. The minimum page size
|
|
270
|
-
* is 1. The maximum pageSize is 100.
|
|
352
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
271
353
|
*/
|
|
272
354
|
pageSize?: number;
|
|
273
355
|
/**
|
|
@@ -276,7 +358,8 @@ declare class PrimaryNetworkService {
|
|
|
276
358
|
pageToken?: string;
|
|
277
359
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
278
360
|
/**
|
|
279
|
-
*
|
|
361
|
+
* Get vertex
|
|
362
|
+
* Gets a single vertex on the X-Chain.
|
|
280
363
|
* @returns XChainVertex
|
|
281
364
|
* @throws ApiError
|
|
282
365
|
*/
|
|
@@ -295,7 +378,8 @@ declare class PrimaryNetworkService {
|
|
|
295
378
|
network: Network;
|
|
296
379
|
}): CancelablePromise<XChainVertex>;
|
|
297
380
|
/**
|
|
298
|
-
*
|
|
381
|
+
* List vertices by height
|
|
382
|
+
* Lists vertices at the given vertex height on the X-Chain.
|
|
299
383
|
* @returns ListXChainVerticesResponse
|
|
300
384
|
* @throws ApiError
|
|
301
385
|
*/
|
|
@@ -313,8 +397,7 @@ declare class PrimaryNetworkService {
|
|
|
313
397
|
*/
|
|
314
398
|
network: Network;
|
|
315
399
|
/**
|
|
316
|
-
* The maximum number of items to return. The minimum page size
|
|
317
|
-
* is 1. The maximum pageSize is 100.
|
|
400
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
318
401
|
*/
|
|
319
402
|
pageSize?: number;
|
|
320
403
|
/**
|
|
@@ -322,14 +405,13 @@ declare class PrimaryNetworkService {
|
|
|
322
405
|
*/
|
|
323
406
|
pageToken?: string;
|
|
324
407
|
/**
|
|
325
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
326
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
327
|
-
* query parameter, if provided.
|
|
408
|
+
* 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.
|
|
328
409
|
*/
|
|
329
410
|
sortOrder?: SortOrder;
|
|
330
411
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
331
412
|
/**
|
|
332
|
-
*
|
|
413
|
+
* Get asset details
|
|
414
|
+
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
333
415
|
* @returns XChainAssetDetails
|
|
334
416
|
* @throws ApiError
|
|
335
417
|
*/
|
|
@@ -348,11 +430,12 @@ declare class PrimaryNetworkService {
|
|
|
348
430
|
assetId: string;
|
|
349
431
|
}): CancelablePromise<XChainAssetDetails>;
|
|
350
432
|
/**
|
|
351
|
-
*
|
|
433
|
+
* List asset transactions
|
|
434
|
+
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
352
435
|
* @returns ListXChainTransactionsResponse
|
|
353
436
|
* @throws ApiError
|
|
354
437
|
*/
|
|
355
|
-
|
|
438
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
|
|
356
439
|
/**
|
|
357
440
|
* A primary network blockchain id or alias.
|
|
358
441
|
*/
|
|
@@ -366,8 +449,19 @@ declare class PrimaryNetworkService {
|
|
|
366
449
|
*/
|
|
367
450
|
assetId: string;
|
|
368
451
|
/**
|
|
369
|
-
*
|
|
370
|
-
|
|
452
|
+
* Query param for filtering items based on transaction types.
|
|
453
|
+
*/
|
|
454
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
455
|
+
/**
|
|
456
|
+
* Query param for retrieving items after a specific timestamp.
|
|
457
|
+
*/
|
|
458
|
+
startTimestamp?: number;
|
|
459
|
+
/**
|
|
460
|
+
* Query param for retrieving items before a specific timestamp.
|
|
461
|
+
*/
|
|
462
|
+
endTimestamp?: number;
|
|
463
|
+
/**
|
|
464
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
371
465
|
*/
|
|
372
466
|
pageSize?: number;
|
|
373
467
|
/**
|
|
@@ -376,11 +470,12 @@ declare class PrimaryNetworkService {
|
|
|
376
470
|
pageToken?: string;
|
|
377
471
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
378
472
|
/**
|
|
379
|
-
*
|
|
473
|
+
* Get chain interactions for addresses
|
|
474
|
+
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
380
475
|
* @returns ChainAddressChainIdMapListResponse
|
|
381
476
|
* @throws ApiError
|
|
382
477
|
*/
|
|
383
|
-
|
|
478
|
+
getChainIdsForAddresses({ addresses, network, }: {
|
|
384
479
|
/**
|
|
385
480
|
* 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".
|
|
386
481
|
*/
|
|
@@ -391,18 +486,20 @@ declare class PrimaryNetworkService {
|
|
|
391
486
|
network: Network;
|
|
392
487
|
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
393
488
|
/**
|
|
394
|
-
* Get
|
|
489
|
+
* Get network details
|
|
490
|
+
* Gets network details such as validator and delegator stats.
|
|
395
491
|
* @returns GetNetworkDetailsResponse
|
|
396
492
|
* @throws ApiError
|
|
397
493
|
*/
|
|
398
|
-
|
|
494
|
+
getNetworkDetails({ network, }: {
|
|
399
495
|
/**
|
|
400
496
|
* Either mainnet or a testnet.
|
|
401
497
|
*/
|
|
402
498
|
network: Network;
|
|
403
499
|
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
404
500
|
/**
|
|
405
|
-
*
|
|
501
|
+
* List blockchains
|
|
502
|
+
* Lists all blockchains registered on the network.
|
|
406
503
|
* @returns ListBlockchainsResponse
|
|
407
504
|
* @throws ApiError
|
|
408
505
|
*/
|
|
@@ -412,8 +509,7 @@ declare class PrimaryNetworkService {
|
|
|
412
509
|
*/
|
|
413
510
|
network: Network;
|
|
414
511
|
/**
|
|
415
|
-
* The maximum number of items to return. The minimum page size
|
|
416
|
-
* is 1. The maximum pageSize is 100.
|
|
512
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
417
513
|
*/
|
|
418
514
|
pageSize?: number;
|
|
419
515
|
/**
|
|
@@ -421,14 +517,13 @@ declare class PrimaryNetworkService {
|
|
|
421
517
|
*/
|
|
422
518
|
pageToken?: string;
|
|
423
519
|
/**
|
|
424
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
425
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
426
|
-
* query parameter, if provided.
|
|
520
|
+
* 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.
|
|
427
521
|
*/
|
|
428
522
|
sortOrder?: SortOrder;
|
|
429
523
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
430
524
|
/**
|
|
431
|
-
*
|
|
525
|
+
* List subnets
|
|
526
|
+
* Lists all subnets registered on the network.
|
|
432
527
|
* @returns ListSubnetsResponse
|
|
433
528
|
* @throws ApiError
|
|
434
529
|
*/
|
|
@@ -438,8 +533,7 @@ declare class PrimaryNetworkService {
|
|
|
438
533
|
*/
|
|
439
534
|
network: Network;
|
|
440
535
|
/**
|
|
441
|
-
* The maximum number of items to return. The minimum page size
|
|
442
|
-
* is 1. The maximum pageSize is 100.
|
|
536
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
443
537
|
*/
|
|
444
538
|
pageSize?: number;
|
|
445
539
|
/**
|
|
@@ -447,12 +541,78 @@ declare class PrimaryNetworkService {
|
|
|
447
541
|
*/
|
|
448
542
|
pageToken?: string;
|
|
449
543
|
/**
|
|
450
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
451
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
452
|
-
* query parameter, if provided.
|
|
544
|
+
* 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.
|
|
453
545
|
*/
|
|
454
546
|
sortOrder?: SortOrder;
|
|
455
547
|
}): CancelablePromise<ListSubnetsResponse>;
|
|
548
|
+
/**
|
|
549
|
+
* List validators
|
|
550
|
+
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
551
|
+
* @returns ListValidatorDetailsResponse
|
|
552
|
+
* @throws ApiError
|
|
553
|
+
*/
|
|
554
|
+
listValidators({ network, validationStatus, pageSize, pageToken, nodeIds, sortOrder, minDelegationCapacity, }: {
|
|
555
|
+
/**
|
|
556
|
+
* Either mainnet or a testnet.
|
|
557
|
+
*/
|
|
558
|
+
network: Network;
|
|
559
|
+
/**
|
|
560
|
+
* Validation status of the node.
|
|
561
|
+
*/
|
|
562
|
+
validationStatus: 'completed' | 'active' | 'pending';
|
|
563
|
+
/**
|
|
564
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
565
|
+
*/
|
|
566
|
+
pageSize?: number;
|
|
567
|
+
/**
|
|
568
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
569
|
+
*/
|
|
570
|
+
pageToken?: string;
|
|
571
|
+
/**
|
|
572
|
+
* A comma separated list of node ids to filter by.
|
|
573
|
+
*/
|
|
574
|
+
nodeIds?: string;
|
|
575
|
+
/**
|
|
576
|
+
* 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.
|
|
577
|
+
*/
|
|
578
|
+
sortOrder?: SortOrder;
|
|
579
|
+
/**
|
|
580
|
+
* The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
|
|
581
|
+
*/
|
|
582
|
+
minDelegationCapacity?: any;
|
|
583
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
584
|
+
/**
|
|
585
|
+
* Get single validator details
|
|
586
|
+
* List validator details for a single validator. Filterable by validation status.
|
|
587
|
+
* @returns ListValidatorDetailsResponse
|
|
588
|
+
* @throws ApiError
|
|
589
|
+
*/
|
|
590
|
+
getSingleValidatorDetails({ network, nodeId, validationStatus, pageSize, pageToken, sortOrder, }: {
|
|
591
|
+
/**
|
|
592
|
+
* Either mainnet or a testnet.
|
|
593
|
+
*/
|
|
594
|
+
network: Network;
|
|
595
|
+
/**
|
|
596
|
+
* A primary network (P or X chain) nodeId.
|
|
597
|
+
*/
|
|
598
|
+
nodeId: string;
|
|
599
|
+
/**
|
|
600
|
+
* Validation status of the node.
|
|
601
|
+
*/
|
|
602
|
+
validationStatus: 'completed' | 'active' | 'pending';
|
|
603
|
+
/**
|
|
604
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
605
|
+
*/
|
|
606
|
+
pageSize?: number;
|
|
607
|
+
/**
|
|
608
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
609
|
+
*/
|
|
610
|
+
pageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* 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.
|
|
613
|
+
*/
|
|
614
|
+
sortOrder?: SortOrder;
|
|
615
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
456
616
|
}
|
|
457
617
|
|
|
458
618
|
export { PrimaryNetworkService };
|