@avalabs/glacier-sdk 2.8.0-canary.fc6195f.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.
Files changed (45) hide show
  1. package/dist/index.d.ts +351 -126
  2. package/dist/index.js +124 -30
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  4. package/esm/generated/models/EventType.d.ts +5 -0
  5. package/esm/generated/models/EventType.js +6 -0
  6. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  7. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  8. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  9. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  10. package/esm/generated/models/PChainBalance.d.ts +7 -7
  11. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  12. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  13. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  14. package/esm/generated/models/PChainTransactionType.js +6 -5
  15. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  16. package/esm/generated/models/PendingReward.d.ts +2 -2
  17. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  18. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  19. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  20. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  21. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  22. package/esm/generated/models/Utxo.d.ts +28 -28
  23. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  24. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  25. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  26. package/esm/generated/models/WebhookStatus.js +7 -0
  27. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  28. package/esm/generated/models/WebhookStatusType.js +7 -0
  29. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  30. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  31. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  32. package/esm/generated/models/XChainTransactionType.js +11 -0
  33. package/esm/generated/services/DefaultService.d.ts +53 -0
  34. package/esm/generated/services/DefaultService.js +42 -0
  35. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  36. package/esm/generated/services/NfTsService.d.ts +25 -0
  37. package/esm/generated/services/NfTsService.js +19 -0
  38. package/esm/generated/services/OperationsService.d.ts +11 -11
  39. package/esm/generated/services/OperationsService.js +10 -10
  40. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  41. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  42. package/esm/index.d.ts +10 -1
  43. package/esm/index.js +4 -0
  44. package/package.json +2 -2
  45. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -3,66 +3,66 @@ import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
8
+ addresses: Array<string>;
9
9
  asset: Asset;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
41
+ groupId?: number;
42
42
  /**
43
43
  * Locktime in seconds after which this output can be consumed.
44
44
  */
45
45
  locktime: number;
46
46
  /**
47
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
65
+ utxoType: string;
66
66
  };
67
67
 
68
68
  export { Utxo };
@@ -1,10 +1,10 @@
1
1
  type UtxoCredential = {
2
2
  /**
3
- * Signature provided to consume the output
3
+ * Signature provided to consume the output.
4
4
  */
5
5
  signature?: string;
6
6
  /**
7
- * Public key associated with the signature
7
+ * Public key associated with the signature.
8
8
  */
9
9
  publicKey?: string;
10
10
  };
@@ -0,0 +1,15 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type WebhookResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ metadata: AddressActivityMetadata;
9
+ url: string;
10
+ chainId: string;
11
+ status: WebhookStatusType;
12
+ createdAt: number;
13
+ };
14
+
15
+ export { WebhookResponse };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatus };
@@ -0,0 +1,7 @@
1
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2
+ WebhookStatus2["ACTIVE"] = "active";
3
+ WebhookStatus2["INACTIVE"] = "inactive";
4
+ return WebhookStatus2;
5
+ })(WebhookStatus || {});
6
+
7
+ export { WebhookStatus };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatusType {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatusType };
@@ -0,0 +1,7 @@
1
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2
+ WebhookStatusType2["ACTIVE"] = "active";
3
+ WebhookStatusType2["INACTIVE"] = "inactive";
4
+ return WebhookStatusType2;
5
+ })(WebhookStatusType || {});
6
+
7
+ export { WebhookStatusType };
@@ -1,6 +1,7 @@
1
1
  import { Asset } from './Asset.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
4
5
 
5
6
  type XChainLinearTransaction = {
6
7
  /**
@@ -18,7 +19,7 @@ type XChainLinearTransaction = {
18
19
  /**
19
20
  * Type of transaction.
20
21
  */
21
- txType: string;
22
+ txType: XChainTransactionType;
22
23
  /**
23
24
  * Hex encoded memo bytes for this transaction.
24
25
  */
@@ -2,6 +2,7 @@ import { Asset } from './Asset.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
6
 
6
7
  type XChainNonLinearTransaction = {
7
8
  /**
@@ -19,7 +20,7 @@ type XChainNonLinearTransaction = {
19
20
  /**
20
21
  * Type of transaction.
21
22
  */
22
- txType: string;
23
+ txType: XChainTransactionType;
23
24
  /**
24
25
  * Hex encoded memo bytes for this transaction.
25
26
  */
@@ -0,0 +1,10 @@
1
+ declare enum XChainTransactionType {
2
+ BASE_TX = "BaseTx",
3
+ CREATE_ASSET_TX = "CreateAssetTx",
4
+ OPERATION_TX = "OperationTx",
5
+ IMPORT_TX = "ImportTx",
6
+ EXPORT_TX = "ExportTx",
7
+ UNKNOWN = "UNKNOWN"
8
+ }
9
+
10
+ export { XChainTransactionType };
@@ -0,0 +1,11 @@
1
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
3
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
+ return XChainTransactionType2;
9
+ })(XChainTransactionType || {});
10
+
11
+ export { XChainTransactionType };
@@ -1,3 +1,8 @@
1
+ import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
+ import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
+ import { WebhookResponse } from '../models/WebhookResponse.js';
5
+ import { WebhookStatus } from '../models/WebhookStatus.js';
1
6
  import { CancelablePromise } from '../core/CancelablePromise.js';
2
7
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
8
 
@@ -9,6 +14,54 @@ declare class DefaultService {
9
14
  * @throws ApiError
10
15
  */
11
16
  mediaControllerUploadImage(): CancelablePromise<any>;
17
+ /**
18
+ * Register a webhook
19
+ * Registers a new webhook.
20
+ * @returns WebhookResponse
21
+ * @throws ApiError
22
+ */
23
+ registerWebhook({ requestBody, }: {
24
+ requestBody: RegisterWebhookRequest;
25
+ }): CancelablePromise<WebhookResponse>;
26
+ /**
27
+ * List webhooks
28
+ * Lists webhooks for the user.
29
+ * @returns ListWebhooksResponse
30
+ * @throws ApiError
31
+ */
32
+ listWebhooks({ pageSize, pageToken, status, }: {
33
+ /**
34
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
35
+ */
36
+ pageSize?: number;
37
+ /**
38
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
39
+ */
40
+ pageToken?: string;
41
+ /**
42
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
+ */
44
+ status?: WebhookStatus;
45
+ }): CancelablePromise<ListWebhooksResponse>;
46
+ /**
47
+ * Deactivate a webhook
48
+ * Deactivates a webhook by ID.
49
+ * @returns WebhookResponse
50
+ * @throws ApiError
51
+ */
52
+ deactivateWebhook({ id, }: {
53
+ /**
54
+ * The webhook identifier.
55
+ */
56
+ id: string;
57
+ }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
12
65
  }
13
66
 
14
67
  export { DefaultService };
@@ -8,6 +8,48 @@ class DefaultService {
8
8
  url: "/v1/media/uploadImage"
9
9
  });
10
10
  }
11
+ registerWebhook({
12
+ requestBody
13
+ }) {
14
+ return this.httpRequest.request({
15
+ method: "POST",
16
+ url: "/v1/webhooks",
17
+ body: requestBody,
18
+ mediaType: "application/json"
19
+ });
20
+ }
21
+ listWebhooks({
22
+ pageSize = 10,
23
+ pageToken,
24
+ status
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/webhooks",
29
+ query: {
30
+ "pageSize": pageSize,
31
+ "pageToken": pageToken,
32
+ "status": status
33
+ }
34
+ });
35
+ }
36
+ deactivateWebhook({
37
+ id
38
+ }) {
39
+ return this.httpRequest.request({
40
+ method: "DELETE",
41
+ url: "/v1/webhooks/{id}",
42
+ path: {
43
+ "id": id
44
+ }
45
+ });
46
+ }
47
+ generateSharedSecret() {
48
+ return this.httpRequest.request({
49
+ method: "POST",
50
+ url: "/v1/webhooks:generateSharedSecret"
51
+ });
52
+ }
11
53
  }
12
54
 
13
55
  export { DefaultService };
@@ -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.
@@ -1,5 +1,6 @@
1
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
2
2
  import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { ListNftTokens } from '../models/ListNftTokens.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
@@ -26,6 +27,30 @@ declare class NfTsService {
26
27
  */
27
28
  tokenId: string;
28
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>;
29
54
  /**
30
55
  * Get token details
31
56
  * Gets token details for a specific token of an NFT contract.
@@ -17,6 +17,25 @@ class NfTsService {
17
17
  }
18
18
  });
19
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
+ }
20
39
  getTokenDetails({
21
40
  chainId,
22
41
  address,
@@ -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 };
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
118
118
  * @returns ListValidatorDetailsResponse
119
119
  * @throws ApiError
120
120
  */
121
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
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
  */
@@ -132,41 +132,41 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * A comma separated list of node ids to filter by.
136
136
  */
137
- minTimeRemaining?: any;
137
+ nodeIds?: string;
138
138
  /**
139
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * 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.
140
140
  */
141
- maxTimeRemaining?: any;
141
+ sortOrder?: SortOrder;
142
142
  /**
143
- * 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
143
+ * Validation status of the node.
144
144
  */
145
- minDelegationCapacity?: number;
145
+ validationStatus?: ValidationStatusType;
146
146
  /**
147
- * 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.
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
- maxDelegationCapacity?: number;
149
+ minDelegationCapacity?: any;
150
150
  /**
151
- * 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.
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
152
  */
153
- minFeePercentage?: any;
153
+ maxDelegationCapacity?: any;
154
154
  /**
155
- * 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.
155
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
156
156
  */
157
- maxFeePercentage?: any;
157
+ minTimeRemaining?: any;
158
158
  /**
159
- * A comma separated list of node ids to filter by.
159
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
160
160
  */
161
- nodeIds?: string;
161
+ maxTimeRemaining?: any;
162
162
  /**
163
- * 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.
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
164
  */
165
- sortOrder?: SortOrder;
165
+ minFeePercentage?: any;
166
166
  /**
167
- * Validation status of the node.
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
168
  */
169
- validationStatus?: ValidationStatusType;
169
+ maxFeePercentage?: any;
170
170
  /**
171
171
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
172
  */