@avalabs/glacier-sdk 2.8.0-canary.fdc2483.0 → 2.8.0-canary.ff11880.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.d.ts +895 -370
- package/dist/index.js +295 -22
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -11
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +21 -1
- package/esm/index.js +17 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -75,7 +75,13 @@ declare class EvmTransactionsService {
|
|
|
75
75
|
* A wallet address.
|
|
76
76
|
*/
|
|
77
77
|
address: string;
|
|
78
|
+
/**
|
|
79
|
+
* 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.
|
|
80
|
+
*/
|
|
78
81
|
startBlock?: number;
|
|
82
|
+
/**
|
|
83
|
+
* 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.
|
|
84
|
+
*/
|
|
79
85
|
endBlock?: number;
|
|
80
86
|
/**
|
|
81
87
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -111,7 +117,13 @@ declare class EvmTransactionsService {
|
|
|
111
117
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
112
118
|
*/
|
|
113
119
|
pageToken?: string;
|
|
120
|
+
/**
|
|
121
|
+
* 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.
|
|
122
|
+
*/
|
|
114
123
|
startBlock?: number;
|
|
124
|
+
/**
|
|
125
|
+
* 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.
|
|
126
|
+
*/
|
|
115
127
|
endBlock?: number;
|
|
116
128
|
/**
|
|
117
129
|
* 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.
|
|
@@ -133,7 +145,13 @@ declare class EvmTransactionsService {
|
|
|
133
145
|
* A wallet address.
|
|
134
146
|
*/
|
|
135
147
|
address: string;
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
*/
|
|
136
151
|
startBlock?: number;
|
|
152
|
+
/**
|
|
153
|
+
* 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.
|
|
154
|
+
*/
|
|
137
155
|
endBlock?: number;
|
|
138
156
|
/**
|
|
139
157
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -159,7 +177,13 @@ declare class EvmTransactionsService {
|
|
|
159
177
|
* A wallet address.
|
|
160
178
|
*/
|
|
161
179
|
address: string;
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
*/
|
|
162
183
|
startBlock?: number;
|
|
184
|
+
/**
|
|
185
|
+
* 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.
|
|
186
|
+
*/
|
|
163
187
|
endBlock?: number;
|
|
164
188
|
/**
|
|
165
189
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -185,7 +209,13 @@ declare class EvmTransactionsService {
|
|
|
185
209
|
* A wallet address.
|
|
186
210
|
*/
|
|
187
211
|
address: string;
|
|
212
|
+
/**
|
|
213
|
+
* 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.
|
|
214
|
+
*/
|
|
188
215
|
startBlock?: number;
|
|
216
|
+
/**
|
|
217
|
+
* 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.
|
|
218
|
+
*/
|
|
189
219
|
endBlock?: number;
|
|
190
220
|
/**
|
|
191
221
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -211,7 +241,13 @@ declare class EvmTransactionsService {
|
|
|
211
241
|
* A wallet address.
|
|
212
242
|
*/
|
|
213
243
|
address: string;
|
|
244
|
+
/**
|
|
245
|
+
* 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.
|
|
246
|
+
*/
|
|
214
247
|
startBlock?: number;
|
|
248
|
+
/**
|
|
249
|
+
* 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.
|
|
250
|
+
*/
|
|
215
251
|
endBlock?: number;
|
|
216
252
|
/**
|
|
217
253
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -239,7 +275,13 @@ declare class EvmTransactionsService {
|
|
|
239
275
|
* A wallet address.
|
|
240
276
|
*/
|
|
241
277
|
address: string;
|
|
278
|
+
/**
|
|
279
|
+
* 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.
|
|
280
|
+
*/
|
|
242
281
|
startBlock?: number;
|
|
282
|
+
/**
|
|
283
|
+
* 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.
|
|
284
|
+
*/
|
|
243
285
|
endBlock?: number;
|
|
244
286
|
/**
|
|
245
287
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -27,7 +27,7 @@ class EvmTransactionsService {
|
|
|
27
27
|
}) {
|
|
28
28
|
return this.httpRequest.request({
|
|
29
29
|
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/
|
|
30
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
31
|
path: {
|
|
32
32
|
"chainId": chainId,
|
|
33
33
|
"address": address
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
2
|
+
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { ListNftTokens } from '../models/ListNftTokens.js';
|
|
4
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
6
|
+
|
|
7
|
+
declare class NfTsService {
|
|
8
|
+
readonly httpRequest: BaseHttpRequest;
|
|
9
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
+
/**
|
|
11
|
+
* Reindex NFT metadata
|
|
12
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
17
|
+
/**
|
|
18
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
|
+
*/
|
|
20
|
+
chainId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Contract address on the relevant chain.
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
/**
|
|
26
|
+
* TokenId on the contract
|
|
27
|
+
*/
|
|
28
|
+
tokenId: string;
|
|
29
|
+
}): CancelablePromise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* List tokens
|
|
32
|
+
* Lists tokens for an NFT contract.
|
|
33
|
+
* @returns ListNftTokens
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
37
|
+
/**
|
|
38
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
|
+
*/
|
|
40
|
+
chainId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Contract address on the relevant chain.
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
47
|
+
*/
|
|
48
|
+
pageSize?: number;
|
|
49
|
+
/**
|
|
50
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
51
|
+
*/
|
|
52
|
+
pageToken?: string;
|
|
53
|
+
}): CancelablePromise<ListNftTokens>;
|
|
54
|
+
/**
|
|
55
|
+
* Get token details
|
|
56
|
+
* Gets token details for a specific token of an NFT contract.
|
|
57
|
+
* @returns any
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
|
+
/**
|
|
62
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
|
+
*/
|
|
64
|
+
chainId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Contract address on the relevant chain.
|
|
67
|
+
*/
|
|
68
|
+
address: string;
|
|
69
|
+
/**
|
|
70
|
+
* TokenId on the contract
|
|
71
|
+
*/
|
|
72
|
+
tokenId: string;
|
|
73
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { NfTsService };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
class NfTsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
reindexNft({
|
|
6
|
+
chainId,
|
|
7
|
+
address,
|
|
8
|
+
tokenId
|
|
9
|
+
}) {
|
|
10
|
+
return this.httpRequest.request({
|
|
11
|
+
method: "POST",
|
|
12
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
+
path: {
|
|
14
|
+
"chainId": chainId,
|
|
15
|
+
"address": address,
|
|
16
|
+
"tokenId": tokenId
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
listTokens({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
pageSize = 10,
|
|
24
|
+
pageToken
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
+
path: {
|
|
30
|
+
"chainId": chainId,
|
|
31
|
+
"address": address
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
"pageSize": pageSize,
|
|
35
|
+
"pageToken": pageToken
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
getTokenDetails({
|
|
40
|
+
chainId,
|
|
41
|
+
address,
|
|
42
|
+
tokenId
|
|
43
|
+
}) {
|
|
44
|
+
return this.httpRequest.request({
|
|
45
|
+
method: "GET",
|
|
46
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
47
|
+
path: {
|
|
48
|
+
"chainId": chainId,
|
|
49
|
+
"address": address,
|
|
50
|
+
"tokenId": tokenId
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { NfTsService };
|
|
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
|
7
7
|
declare class OperationsService {
|
|
8
8
|
readonly httpRequest: BaseHttpRequest;
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* Create transaction export operation
|
|
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.
|
|
15
|
-
* @returns OperationStatusResponse
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
postTransactionExportJob({ requestBody, }: {
|
|
19
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
20
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
21
10
|
/**
|
|
22
11
|
* Get operation
|
|
23
12
|
* Gets operation details for the given operation id.
|
|
@@ -30,6 +19,17 @@ declare class OperationsService {
|
|
|
30
19
|
*/
|
|
31
20
|
operationId: string;
|
|
32
21
|
}): CancelablePromise<OperationStatusResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create transaction export operation
|
|
24
|
+
* Trigger a transaction export operation with given parameters.
|
|
25
|
+
*
|
|
26
|
+
* 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.
|
|
27
|
+
* @returns OperationStatusResponse
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
postTransactionExportJob({ requestBody, }: {
|
|
31
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
32
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { OperationsService };
|
|
@@ -2,16 +2,6 @@ class OperationsService {
|
|
|
2
2
|
constructor(httpRequest) {
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
|
-
postTransactionExportJob({
|
|
6
|
-
requestBody
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "POST",
|
|
10
|
-
url: "/v1/operations/transactions:export",
|
|
11
|
-
body: requestBody,
|
|
12
|
-
mediaType: "application/json"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
5
|
getOperationResult({
|
|
16
6
|
operationId
|
|
17
7
|
}) {
|
|
@@ -23,6 +13,16 @@ class OperationsService {
|
|
|
23
13
|
}
|
|
24
14
|
});
|
|
25
15
|
}
|
|
16
|
+
postTransactionExportJob({
|
|
17
|
+
requestBody
|
|
18
|
+
}) {
|
|
19
|
+
return this.httpRequest.request({
|
|
20
|
+
method: "POST",
|
|
21
|
+
url: "/v1/operations/transactions:export",
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { OperationsService };
|
|
@@ -14,7 +14,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
14
14
|
* @returns ListPendingRewardsResponse
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
17
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
18
18
|
/**
|
|
19
19
|
* Either mainnet or a testnet.
|
|
20
20
|
*/
|
|
@@ -31,6 +31,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
31
31
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
32
|
*/
|
|
33
33
|
pageToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
* A comma separated list of node ids to filter by.
|
|
36
|
+
*/
|
|
37
|
+
nodeIds?: string;
|
|
34
38
|
/**
|
|
35
39
|
* 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.
|
|
36
40
|
*/
|
|
@@ -42,7 +46,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
42
46
|
* @returns ListHistoricalRewardsResponse
|
|
43
47
|
* @throws ApiError
|
|
44
48
|
*/
|
|
45
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
49
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
46
50
|
/**
|
|
47
51
|
* Either mainnet or a testnet.
|
|
48
52
|
*/
|
|
@@ -59,6 +63,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
59
63
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
64
|
*/
|
|
61
65
|
pageToken?: string;
|
|
66
|
+
/**
|
|
67
|
+
* A comma separated list of node ids to filter by.
|
|
68
|
+
*/
|
|
69
|
+
nodeIds?: string;
|
|
62
70
|
/**
|
|
63
71
|
* 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.
|
|
64
72
|
*/
|
|
@@ -7,6 +7,7 @@ class PrimaryNetworkRewardsService {
|
|
|
7
7
|
addresses,
|
|
8
8
|
pageSize = 10,
|
|
9
9
|
pageToken,
|
|
10
|
+
nodeIds,
|
|
10
11
|
sortOrder
|
|
11
12
|
}) {
|
|
12
13
|
return this.httpRequest.request({
|
|
@@ -19,6 +20,7 @@ class PrimaryNetworkRewardsService {
|
|
|
19
20
|
"addresses": addresses,
|
|
20
21
|
"pageSize": pageSize,
|
|
21
22
|
"pageToken": pageToken,
|
|
23
|
+
"nodeIds": nodeIds,
|
|
22
24
|
"sortOrder": sortOrder
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -28,6 +30,7 @@ class PrimaryNetworkRewardsService {
|
|
|
28
30
|
addresses,
|
|
29
31
|
pageSize = 10,
|
|
30
32
|
pageToken,
|
|
33
|
+
nodeIds,
|
|
31
34
|
sortOrder
|
|
32
35
|
}) {
|
|
33
36
|
return this.httpRequest.request({
|
|
@@ -40,6 +43,7 @@ class PrimaryNetworkRewardsService {
|
|
|
40
43
|
"addresses": addresses,
|
|
41
44
|
"pageSize": pageSize,
|
|
42
45
|
"pageToken": pageToken,
|
|
46
|
+
"nodeIds": nodeIds,
|
|
43
47
|
"sortOrder": sortOrder
|
|
44
48
|
}
|
|
45
49
|
});
|
|
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
|
|
|
118
118
|
* @returns ListValidatorDetailsResponse
|
|
119
119
|
* @throws ApiError
|
|
120
120
|
*/
|
|
121
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
121
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
122
122
|
/**
|
|
123
123
|
* Either mainnet or a testnet.
|
|
124
124
|
*/
|
|
@@ -144,9 +144,33 @@ declare class PrimaryNetworkService {
|
|
|
144
144
|
*/
|
|
145
145
|
validationStatus?: ValidationStatusType;
|
|
146
146
|
/**
|
|
147
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
147
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
148
148
|
*/
|
|
149
149
|
minDelegationCapacity?: any;
|
|
150
|
+
/**
|
|
151
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
152
|
+
*/
|
|
153
|
+
maxDelegationCapacity?: any;
|
|
154
|
+
/**
|
|
155
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
156
|
+
*/
|
|
157
|
+
minTimeRemaining?: any;
|
|
158
|
+
/**
|
|
159
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
160
|
+
*/
|
|
161
|
+
maxTimeRemaining?: any;
|
|
162
|
+
/**
|
|
163
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
164
|
+
*/
|
|
165
|
+
minFeePercentage?: any;
|
|
166
|
+
/**
|
|
167
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
168
|
+
*/
|
|
169
|
+
maxFeePercentage?: any;
|
|
170
|
+
/**
|
|
171
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
|
+
*/
|
|
173
|
+
subnetId?: string;
|
|
150
174
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
151
175
|
/**
|
|
152
176
|
* Get single validator details
|
|
@@ -186,15 +210,11 @@ declare class PrimaryNetworkService {
|
|
|
186
210
|
* @returns ListDelegatorDetailsResponse
|
|
187
211
|
* @throws ApiError
|
|
188
212
|
*/
|
|
189
|
-
listDelegators({ network,
|
|
213
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
190
214
|
/**
|
|
191
215
|
* Either mainnet or a testnet.
|
|
192
216
|
*/
|
|
193
217
|
network: Network;
|
|
194
|
-
/**
|
|
195
|
-
* A primary network (P or X chain) nodeId.
|
|
196
|
-
*/
|
|
197
|
-
nodeId: string;
|
|
198
218
|
/**
|
|
199
219
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
200
220
|
*/
|
|
@@ -203,6 +223,10 @@ declare class PrimaryNetworkService {
|
|
|
203
223
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
204
224
|
*/
|
|
205
225
|
pageToken?: string;
|
|
226
|
+
/**
|
|
227
|
+
* A comma separated list of reward addresses to filter by.
|
|
228
|
+
*/
|
|
229
|
+
rewardAddresses?: string;
|
|
206
230
|
/**
|
|
207
231
|
* 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.
|
|
208
232
|
*/
|
|
@@ -211,10 +235,6 @@ declare class PrimaryNetworkService {
|
|
|
211
235
|
* Delegation status of the node.
|
|
212
236
|
*/
|
|
213
237
|
delegationStatus?: DelegationStatusType;
|
|
214
|
-
/**
|
|
215
|
-
* A comma separated list of reward addresses to filter by.
|
|
216
|
-
*/
|
|
217
|
-
rewardAddresses?: string;
|
|
218
238
|
/**
|
|
219
239
|
* A comma separated list of node ids to filter by.
|
|
220
240
|
*/
|
|
@@ -88,7 +88,13 @@ class PrimaryNetworkService {
|
|
|
88
88
|
nodeIds,
|
|
89
89
|
sortOrder,
|
|
90
90
|
validationStatus,
|
|
91
|
-
minDelegationCapacity
|
|
91
|
+
minDelegationCapacity,
|
|
92
|
+
maxDelegationCapacity,
|
|
93
|
+
minTimeRemaining,
|
|
94
|
+
maxTimeRemaining,
|
|
95
|
+
minFeePercentage,
|
|
96
|
+
maxFeePercentage,
|
|
97
|
+
subnetId
|
|
92
98
|
}) {
|
|
93
99
|
return this.httpRequest.request({
|
|
94
100
|
method: "GET",
|
|
@@ -102,7 +108,13 @@ class PrimaryNetworkService {
|
|
|
102
108
|
"nodeIds": nodeIds,
|
|
103
109
|
"sortOrder": sortOrder,
|
|
104
110
|
"validationStatus": validationStatus,
|
|
105
|
-
"minDelegationCapacity": minDelegationCapacity
|
|
111
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
112
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
113
|
+
"minTimeRemaining": minTimeRemaining,
|
|
114
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
115
|
+
"minFeePercentage": minFeePercentage,
|
|
116
|
+
"maxFeePercentage": maxFeePercentage,
|
|
117
|
+
"subnetId": subnetId
|
|
106
118
|
}
|
|
107
119
|
});
|
|
108
120
|
}
|
|
@@ -131,27 +143,25 @@ class PrimaryNetworkService {
|
|
|
131
143
|
}
|
|
132
144
|
listDelegators({
|
|
133
145
|
network,
|
|
134
|
-
nodeId,
|
|
135
146
|
pageSize = 10,
|
|
136
147
|
pageToken,
|
|
148
|
+
rewardAddresses,
|
|
137
149
|
sortOrder,
|
|
138
150
|
delegationStatus,
|
|
139
|
-
rewardAddresses,
|
|
140
151
|
nodeIds
|
|
141
152
|
}) {
|
|
142
153
|
return this.httpRequest.request({
|
|
143
154
|
method: "GET",
|
|
144
155
|
url: "/v1/networks/{network}/delegators",
|
|
145
156
|
path: {
|
|
146
|
-
"network": network
|
|
147
|
-
"nodeId": nodeId
|
|
157
|
+
"network": network
|
|
148
158
|
},
|
|
149
159
|
query: {
|
|
150
160
|
"pageSize": pageSize,
|
|
151
161
|
"pageToken": pageToken,
|
|
162
|
+
"rewardAddresses": rewardAddresses,
|
|
152
163
|
"sortOrder": sortOrder,
|
|
153
164
|
"delegationStatus": delegationStatus,
|
|
154
|
-
"rewardAddresses": rewardAddresses,
|
|
155
165
|
"nodeIds": nodeIds
|
|
156
166
|
}
|
|
157
167
|
});
|
|
@@ -40,7 +40,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
40
40
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
41
41
|
/**
|
|
42
42
|
* List latest transactions
|
|
43
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
43
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
44
|
+
*
|
|
45
|
+
* Transactions are filterable by addresses.
|
|
46
|
+
*
|
|
47
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
44
48
|
* @returns any
|
|
45
49
|
* @throws ApiError
|
|
46
50
|
*/
|
package/esm/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { CancelError, CancelablePromise } from './generated/core/CancelablePromi
|
|
|
5
5
|
export { OpenAPI, OpenAPIConfig } from './generated/core/OpenAPI.js';
|
|
6
6
|
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
7
7
|
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
8
|
+
export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
|
|
8
9
|
export { Asset } from './generated/models/Asset.js';
|
|
9
10
|
export { Blockchain } from './generated/models/Blockchain.js';
|
|
10
11
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
@@ -21,6 +22,11 @@ export { ChainStatus } from './generated/models/ChainStatus.js';
|
|
|
21
22
|
export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
|
|
22
23
|
export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
|
|
23
24
|
export { ContractDeploymentDetails } from './generated/models/ContractDeploymentDetails.js';
|
|
25
|
+
export { ContractSubmissionBody } from './generated/models/ContractSubmissionBody.js';
|
|
26
|
+
export { ContractSubmissionErc1155 } from './generated/models/ContractSubmissionErc1155.js';
|
|
27
|
+
export { ContractSubmissionErc20 } from './generated/models/ContractSubmissionErc20.js';
|
|
28
|
+
export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionErc721.js';
|
|
29
|
+
export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
|
|
24
30
|
export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
|
|
25
31
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
26
32
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
@@ -43,6 +49,7 @@ export { Erc721TokenBalance } from './generated/models/Erc721TokenBalance.js';
|
|
|
43
49
|
export { Erc721TokenMetadata } from './generated/models/Erc721TokenMetadata.js';
|
|
44
50
|
export { Erc721Transfer } from './generated/models/Erc721Transfer.js';
|
|
45
51
|
export { Erc721TransferDetails } from './generated/models/Erc721TransferDetails.js';
|
|
52
|
+
export { EventType } from './generated/models/EventType.js';
|
|
46
53
|
export { EvmBlock } from './generated/models/EvmBlock.js';
|
|
47
54
|
export { EVMInput } from './generated/models/EVMInput.js';
|
|
48
55
|
export { EvmNetworkOptions } from './generated/models/EvmNetworkOptions.js';
|
|
@@ -76,6 +83,7 @@ export { ListEvmBlocksResponse } from './generated/models/ListEvmBlocksResponse.
|
|
|
76
83
|
export { ListHistoricalRewardsResponse } from './generated/models/ListHistoricalRewardsResponse.js';
|
|
77
84
|
export { ListInternalTransactionsResponse } from './generated/models/ListInternalTransactionsResponse.js';
|
|
78
85
|
export { ListNativeTransactionsResponse } from './generated/models/ListNativeTransactionsResponse.js';
|
|
86
|
+
export { ListNftTokens } from './generated/models/ListNftTokens.js';
|
|
79
87
|
export { ListPChainBalancesResponse } from './generated/models/ListPChainBalancesResponse.js';
|
|
80
88
|
export { ListPChainTransactionsResponse } from './generated/models/ListPChainTransactionsResponse.js';
|
|
81
89
|
export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosResponse.js';
|
|
@@ -86,6 +94,7 @@ export { ListTransactionDetailsResponse } from './generated/models/ListTransacti
|
|
|
86
94
|
export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
|
|
87
95
|
export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
|
|
88
96
|
export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
|
|
97
|
+
export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
|
|
89
98
|
export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
|
|
90
99
|
export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
|
|
91
100
|
export { ListXChainVerticesResponse } from './generated/models/ListXChainVerticesResponse.js';
|
|
@@ -102,7 +111,6 @@ export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
|
102
111
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
103
112
|
export { OperationStatusResponse } from './generated/models/OperationStatusResponse.js';
|
|
104
113
|
export { OperationType } from './generated/models/OperationType.js';
|
|
105
|
-
export { PChainAsset } from './generated/models/PChainAsset.js';
|
|
106
114
|
export { PChainBalance } from './generated/models/PChainBalance.js';
|
|
107
115
|
export { PChainId } from './generated/models/PChainId.js';
|
|
108
116
|
export { PChainSharedAsset } from './generated/models/PChainSharedAsset.js';
|
|
@@ -112,6 +120,7 @@ export { PChainUtxo } from './generated/models/PChainUtxo.js';
|
|
|
112
120
|
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
113
121
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
114
122
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
123
|
+
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
115
124
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
116
125
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
117
126
|
export { PrimaryNetworkChainInfo } from './generated/models/PrimaryNetworkChainInfo.js';
|
|
@@ -119,11 +128,13 @@ export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainN
|
|
|
119
128
|
export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
|
|
120
129
|
export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
|
|
121
130
|
export { ProposerDetails } from './generated/models/ProposerDetails.js';
|
|
131
|
+
export { RegisterWebhookRequest } from './generated/models/RegisterWebhookRequest.js';
|
|
122
132
|
export { ResourceLink } from './generated/models/ResourceLink.js';
|
|
123
133
|
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
124
134
|
export { Rewards } from './generated/models/Rewards.js';
|
|
125
135
|
export { RewardType } from './generated/models/RewardType.js';
|
|
126
136
|
export { RichAddress } from './generated/models/RichAddress.js';
|
|
137
|
+
export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
|
|
127
138
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
128
139
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
129
140
|
export { Subnet } from './generated/models/Subnet.js';
|
|
@@ -133,13 +144,18 @@ export { TransactionMethodType } from './generated/models/TransactionMethodType.
|
|
|
133
144
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
134
145
|
export { TransactionVertexDetail } from './generated/models/TransactionVertexDetail.js';
|
|
135
146
|
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
147
|
+
export { UpdateContractResponse } from './generated/models/UpdateContractResponse.js';
|
|
136
148
|
export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
|
|
137
149
|
export { Utxo } from './generated/models/Utxo.js';
|
|
138
150
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
139
151
|
export { UtxoType } from './generated/models/UtxoType.js';
|
|
140
152
|
export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
|
|
153
|
+
export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
|
|
141
154
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
142
155
|
export { VmName } from './generated/models/VmName.js';
|
|
156
|
+
export { WebhookResponse } from './generated/models/WebhookResponse.js';
|
|
157
|
+
export { WebhookStatus } from './generated/models/WebhookStatus.js';
|
|
158
|
+
export { WebhookStatusType } from './generated/models/WebhookStatusType.js';
|
|
143
159
|
export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
|
|
144
160
|
export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
|
|
145
161
|
export { XChainBalances } from './generated/models/XChainBalances.js';
|
|
@@ -147,12 +163,16 @@ export { XChainId } from './generated/models/XChainId.js';
|
|
|
147
163
|
export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
|
|
148
164
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
149
165
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
166
|
+
export { XChainTransactionType } from './generated/models/XChainTransactionType.js';
|
|
150
167
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
168
|
+
export { DefaultService } from './generated/services/DefaultService.js';
|
|
151
169
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
152
170
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
153
171
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
172
|
+
export { EvmContractsService } from './generated/services/EvmContractsService.js';
|
|
154
173
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
155
174
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
175
|
+
export { NfTsService } from './generated/services/NfTsService.js';
|
|
156
176
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
157
177
|
export { PrimaryNetworkService } from './generated/services/PrimaryNetworkService.js';
|
|
158
178
|
export { PrimaryNetworkBalancesService } from './generated/services/PrimaryNetworkBalancesService.js';
|