@avalabs/glacier-sdk 2.8.0-canary.68a3b67.0 → 2.8.0-canary.69c602c.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 +626 -331
- package/dist/index.js +237 -108
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +0 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +0 -3
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +11 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +2 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +38 -5
- package/esm/generated/services/DefaultService.js +34 -3
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +17 -12
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -31
- package/esm/generated/services/PrimaryNetworkService.js +11 -11
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/index.d.ts +19 -2
- package/esm/index.js +10 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,10 @@ type AddressActivityMetadata = {
|
|
|
69
69
|
* Array of hexadecimal strings of the event signatures.
|
|
70
70
|
*/
|
|
71
71
|
eventSignatures?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to include traces in the webhook payload.
|
|
74
|
+
*/
|
|
75
|
+
includeTraces?: boolean;
|
|
72
76
|
};
|
|
73
77
|
|
|
74
78
|
declare enum EventType {
|
|
@@ -88,6 +92,8 @@ type WebhookResponse = {
|
|
|
88
92
|
chainId: string;
|
|
89
93
|
status: WebhookStatusType;
|
|
90
94
|
createdAt: number;
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
91
97
|
};
|
|
92
98
|
|
|
93
99
|
type ListWebhooksResponse = {
|
|
@@ -101,9 +107,6 @@ type ListWebhooksResponse = {
|
|
|
101
107
|
type RegisterWebhookRequest = {
|
|
102
108
|
url: string;
|
|
103
109
|
chainId: string;
|
|
104
|
-
/**
|
|
105
|
-
* The type of event for the webhook
|
|
106
|
-
*/
|
|
107
110
|
eventType: EventType;
|
|
108
111
|
metadata: AddressActivityMetadata;
|
|
109
112
|
};
|
|
@@ -112,6 +115,14 @@ type SharedSecretsResponse = {
|
|
|
112
115
|
secret: string;
|
|
113
116
|
};
|
|
114
117
|
|
|
118
|
+
type UpdateWebhookRequest = {
|
|
119
|
+
name?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
url?: string;
|
|
122
|
+
status?: WebhookStatusType;
|
|
123
|
+
includeTraces?: boolean;
|
|
124
|
+
};
|
|
125
|
+
|
|
115
126
|
declare enum WebhookStatus {
|
|
116
127
|
ACTIVE = "active",
|
|
117
128
|
INACTIVE = "inactive"
|
|
@@ -140,20 +151,32 @@ declare class DefaultService {
|
|
|
140
151
|
* @returns ListWebhooksResponse
|
|
141
152
|
* @throws ApiError
|
|
142
153
|
*/
|
|
143
|
-
listWebhooks({
|
|
144
|
-
/**
|
|
145
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
-
*/
|
|
147
|
-
pageSize?: number;
|
|
154
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
148
155
|
/**
|
|
149
156
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
157
|
*/
|
|
151
158
|
pageToken?: string;
|
|
159
|
+
/**
|
|
160
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
161
|
+
*/
|
|
162
|
+
pageSize?: number;
|
|
152
163
|
/**
|
|
153
164
|
* 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.
|
|
154
165
|
*/
|
|
155
166
|
status?: WebhookStatus;
|
|
156
167
|
}): CancelablePromise<ListWebhooksResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a webhook by ID
|
|
170
|
+
* Retrieves a webhook by ID.
|
|
171
|
+
* @returns WebhookResponse
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
getWebhook({ id, }: {
|
|
175
|
+
/**
|
|
176
|
+
* The webhook identifier.
|
|
177
|
+
*/
|
|
178
|
+
id: string;
|
|
179
|
+
}): CancelablePromise<WebhookResponse>;
|
|
157
180
|
/**
|
|
158
181
|
* Deactivate a webhook
|
|
159
182
|
* Deactivates a webhook by ID.
|
|
@@ -166,6 +189,19 @@ declare class DefaultService {
|
|
|
166
189
|
*/
|
|
167
190
|
id: string;
|
|
168
191
|
}): CancelablePromise<WebhookResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Update a webhook
|
|
194
|
+
* Updates an existing webhook.
|
|
195
|
+
* @returns WebhookResponse
|
|
196
|
+
* @throws ApiError
|
|
197
|
+
*/
|
|
198
|
+
updateWebhook({ id, requestBody, }: {
|
|
199
|
+
/**
|
|
200
|
+
* The webhook identifier.
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
203
|
+
requestBody: UpdateWebhookRequest;
|
|
204
|
+
}): CancelablePromise<WebhookResponse>;
|
|
169
205
|
/**
|
|
170
206
|
* Generate a shared secret
|
|
171
207
|
* Generates a new shared secret.
|
|
@@ -173,8 +209,18 @@ declare class DefaultService {
|
|
|
173
209
|
* @throws ApiError
|
|
174
210
|
*/
|
|
175
211
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* Get a shared secret
|
|
214
|
+
* Get a previously generated shared secret.
|
|
215
|
+
* @returns SharedSecretsResponse
|
|
216
|
+
* @throws ApiError
|
|
217
|
+
*/
|
|
218
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
176
219
|
}
|
|
177
220
|
|
|
221
|
+
/**
|
|
222
|
+
* ISO 4217 currency code.
|
|
223
|
+
*/
|
|
178
224
|
declare enum CurrencyCode {
|
|
179
225
|
USD = "usd",
|
|
180
226
|
EUR = "eur",
|
|
@@ -193,9 +239,6 @@ declare enum CurrencyCode {
|
|
|
193
239
|
}
|
|
194
240
|
|
|
195
241
|
type Money = {
|
|
196
|
-
/**
|
|
197
|
-
* ISO 4217 currency code.
|
|
198
|
-
*/
|
|
199
242
|
currencyCode: CurrencyCode;
|
|
200
243
|
/**
|
|
201
244
|
* Monetary value in base 10 decimals.
|
|
@@ -245,6 +288,9 @@ type GetNativeBalanceResponse = {
|
|
|
245
288
|
nativeTokenBalance: NativeTokenBalance;
|
|
246
289
|
};
|
|
247
290
|
|
|
291
|
+
/**
|
|
292
|
+
* The metadata indexing status of the nft.
|
|
293
|
+
*/
|
|
248
294
|
declare enum NftTokenMetadataStatus {
|
|
249
295
|
UNKNOWN = "UNKNOWN",
|
|
250
296
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -260,9 +306,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
260
306
|
}
|
|
261
307
|
|
|
262
308
|
type Erc1155TokenMetadata = {
|
|
263
|
-
/**
|
|
264
|
-
* The metadata indexing status of the nft.
|
|
265
|
-
*/
|
|
266
309
|
indexStatus: NftTokenMetadataStatus;
|
|
267
310
|
metadataLastUpdatedTimestamp?: number;
|
|
268
311
|
name?: string;
|
|
@@ -301,9 +344,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
301
344
|
}
|
|
302
345
|
|
|
303
346
|
type Erc721TokenMetadata = {
|
|
304
|
-
/**
|
|
305
|
-
* The metadata indexing status of the nft.
|
|
306
|
-
*/
|
|
307
347
|
indexStatus: NftTokenMetadataStatus;
|
|
308
348
|
metadataLastUpdatedTimestamp?: number;
|
|
309
349
|
name?: string;
|
|
@@ -450,7 +490,7 @@ declare class EvmBalancesService {
|
|
|
450
490
|
*/
|
|
451
491
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
452
492
|
/**
|
|
453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
493
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
454
494
|
*/
|
|
455
495
|
chainId: string;
|
|
456
496
|
/**
|
|
@@ -476,9 +516,9 @@ declare class EvmBalancesService {
|
|
|
476
516
|
* @returns ListErc20BalancesResponse
|
|
477
517
|
* @throws ApiError
|
|
478
518
|
*/
|
|
479
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
519
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
480
520
|
/**
|
|
481
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
521
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
482
522
|
*/
|
|
483
523
|
chainId: string;
|
|
484
524
|
/**
|
|
@@ -489,14 +529,14 @@ declare class EvmBalancesService {
|
|
|
489
529
|
* The block number, if not defined the block number will be the latest block.
|
|
490
530
|
*/
|
|
491
531
|
blockNumber?: string;
|
|
492
|
-
/**
|
|
493
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
494
|
-
*/
|
|
495
|
-
pageSize?: number;
|
|
496
532
|
/**
|
|
497
533
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
498
534
|
*/
|
|
499
535
|
pageToken?: string;
|
|
536
|
+
/**
|
|
537
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
538
|
+
*/
|
|
539
|
+
pageSize?: number;
|
|
500
540
|
/**
|
|
501
541
|
* A comma separated list of contract addresses to filter by.
|
|
502
542
|
*/
|
|
@@ -514,23 +554,23 @@ declare class EvmBalancesService {
|
|
|
514
554
|
* @returns ListErc721BalancesResponse
|
|
515
555
|
* @throws ApiError
|
|
516
556
|
*/
|
|
517
|
-
listErc721Balances({ chainId, address,
|
|
557
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
558
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
559
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
560
|
*/
|
|
521
561
|
chainId: string;
|
|
522
562
|
/**
|
|
523
563
|
* A wallet address.
|
|
524
564
|
*/
|
|
525
565
|
address: string;
|
|
526
|
-
/**
|
|
527
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
528
|
-
*/
|
|
529
|
-
pageSize?: number;
|
|
530
566
|
/**
|
|
531
567
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
532
568
|
*/
|
|
533
569
|
pageToken?: string;
|
|
570
|
+
/**
|
|
571
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
572
|
+
*/
|
|
573
|
+
pageSize?: number;
|
|
534
574
|
/**
|
|
535
575
|
* A contract addresses to filter by.
|
|
536
576
|
*/
|
|
@@ -546,9 +586,9 @@ declare class EvmBalancesService {
|
|
|
546
586
|
* @returns ListErc1155BalancesResponse
|
|
547
587
|
* @throws ApiError
|
|
548
588
|
*/
|
|
549
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
589
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
590
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
591
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
592
|
*/
|
|
553
593
|
chainId: string;
|
|
554
594
|
/**
|
|
@@ -559,14 +599,14 @@ declare class EvmBalancesService {
|
|
|
559
599
|
* The block number, if not defined the block number will be the latest block.
|
|
560
600
|
*/
|
|
561
601
|
blockNumber?: string;
|
|
562
|
-
/**
|
|
563
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
564
|
-
*/
|
|
565
|
-
pageSize?: number;
|
|
566
602
|
/**
|
|
567
603
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
568
604
|
*/
|
|
569
605
|
pageToken?: string;
|
|
606
|
+
/**
|
|
607
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
608
|
+
*/
|
|
609
|
+
pageSize?: number;
|
|
570
610
|
/**
|
|
571
611
|
* A contract addresses to filter by.
|
|
572
612
|
*/
|
|
@@ -580,23 +620,23 @@ declare class EvmBalancesService {
|
|
|
580
620
|
* @returns ListCollectibleBalancesResponse
|
|
581
621
|
* @throws ApiError
|
|
582
622
|
*/
|
|
583
|
-
listCollectibleBalances({ chainId, address,
|
|
623
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
624
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
626
|
*/
|
|
587
627
|
chainId: string;
|
|
588
628
|
/**
|
|
589
629
|
* A wallet address.
|
|
590
630
|
*/
|
|
591
631
|
address: string;
|
|
592
|
-
/**
|
|
593
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
594
|
-
*/
|
|
595
|
-
pageSize?: number;
|
|
596
632
|
/**
|
|
597
633
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
598
634
|
*/
|
|
599
635
|
pageToken?: string;
|
|
636
|
+
/**
|
|
637
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
638
|
+
*/
|
|
639
|
+
pageSize?: number;
|
|
600
640
|
/**
|
|
601
641
|
* A contract addresses to filter by.
|
|
602
642
|
*/
|
|
@@ -709,19 +749,19 @@ declare class EvmBlocksService {
|
|
|
709
749
|
* @returns ListEvmBlocksResponse
|
|
710
750
|
* @throws ApiError
|
|
711
751
|
*/
|
|
712
|
-
getLatestBlocks({ chainId,
|
|
752
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
753
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
754
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
755
|
*/
|
|
716
756
|
chainId: string;
|
|
717
|
-
/**
|
|
718
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
719
|
-
*/
|
|
720
|
-
pageSize?: number;
|
|
721
757
|
/**
|
|
722
758
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
723
759
|
*/
|
|
724
760
|
pageToken?: string;
|
|
761
|
+
/**
|
|
762
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
763
|
+
*/
|
|
764
|
+
pageSize?: number;
|
|
725
765
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
726
766
|
/**
|
|
727
767
|
* Get block
|
|
@@ -731,7 +771,7 @@ declare class EvmBlocksService {
|
|
|
731
771
|
*/
|
|
732
772
|
getBlock({ chainId, blockId, }: {
|
|
733
773
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
774
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
775
|
*/
|
|
736
776
|
chainId: string;
|
|
737
777
|
/**
|
|
@@ -741,6 +781,9 @@ declare class EvmBlocksService {
|
|
|
741
781
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
742
782
|
}
|
|
743
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
786
|
+
*/
|
|
744
787
|
declare enum ChainStatus {
|
|
745
788
|
OK = "OK",
|
|
746
789
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -778,9 +821,6 @@ declare enum VmName {
|
|
|
778
821
|
|
|
779
822
|
type GetChainResponse = {
|
|
780
823
|
chainId: string;
|
|
781
|
-
/**
|
|
782
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
783
|
-
*/
|
|
784
824
|
status: ChainStatus;
|
|
785
825
|
chainName: string;
|
|
786
826
|
description: string;
|
|
@@ -800,9 +840,6 @@ type GetChainResponse = {
|
|
|
800
840
|
|
|
801
841
|
type ChainInfo = {
|
|
802
842
|
chainId: string;
|
|
803
|
-
/**
|
|
804
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
805
|
-
*/
|
|
806
843
|
status: ChainStatus;
|
|
807
844
|
chainName: string;
|
|
808
845
|
description: string;
|
|
@@ -852,7 +889,7 @@ declare class EvmChainsService {
|
|
|
852
889
|
*/
|
|
853
890
|
getChainInfo({ chainId, }: {
|
|
854
891
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
892
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
893
|
*/
|
|
857
894
|
chainId: string;
|
|
858
895
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1184,7 @@ declare class EvmContractsService {
|
|
|
1147
1184
|
*/
|
|
1148
1185
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1186
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1187
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1188
|
*/
|
|
1152
1189
|
chainId: string;
|
|
1153
1190
|
/**
|
|
@@ -1163,7 +1200,7 @@ declare class EvmContractsService {
|
|
|
1163
1200
|
*/
|
|
1164
1201
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1202
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1203
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1204
|
*/
|
|
1168
1205
|
chainId: string;
|
|
1169
1206
|
/**
|
|
@@ -1297,6 +1334,9 @@ type Erc721TransferDetails = {
|
|
|
1297
1334
|
erc721Token: Erc721Token;
|
|
1298
1335
|
};
|
|
1299
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1339
|
+
*/
|
|
1300
1340
|
declare enum TransactionMethodType {
|
|
1301
1341
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
1342
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1304,9 +1344,6 @@ declare enum TransactionMethodType {
|
|
|
1304
1344
|
}
|
|
1305
1345
|
|
|
1306
1346
|
type Method = {
|
|
1307
|
-
/**
|
|
1308
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1309
|
-
*/
|
|
1310
1347
|
callType: TransactionMethodType;
|
|
1311
1348
|
/**
|
|
1312
1349
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1667,7 +1704,7 @@ type ListTransfersResponse = {
|
|
|
1667
1704
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1668
1705
|
*/
|
|
1669
1706
|
nextPageToken?: string;
|
|
1670
|
-
transfers:
|
|
1707
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1671
1708
|
};
|
|
1672
1709
|
|
|
1673
1710
|
declare enum SortOrder {
|
|
@@ -1691,7 +1728,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1728
|
*/
|
|
1692
1729
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1730
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1731
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1732
|
*/
|
|
1696
1733
|
chainId: string;
|
|
1697
1734
|
/**
|
|
@@ -1709,23 +1746,23 @@ declare class EvmTransactionsService {
|
|
|
1709
1746
|
* @returns ListContractsResponse
|
|
1710
1747
|
* @throws ApiError
|
|
1711
1748
|
*/
|
|
1712
|
-
listContractDeployments({ chainId, address,
|
|
1749
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1750
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1751
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1752
|
*/
|
|
1716
1753
|
chainId: string;
|
|
1717
1754
|
/**
|
|
1718
1755
|
* A wallet address.
|
|
1719
1756
|
*/
|
|
1720
1757
|
address: string;
|
|
1721
|
-
/**
|
|
1722
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
-
*/
|
|
1724
|
-
pageSize?: number;
|
|
1725
1758
|
/**
|
|
1726
1759
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1727
1760
|
*/
|
|
1728
1761
|
pageToken?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1764
|
+
*/
|
|
1765
|
+
pageSize?: number;
|
|
1729
1766
|
}): CancelablePromise<ListContractsResponse>;
|
|
1730
1767
|
/**
|
|
1731
1768
|
* List ERC transfers
|
|
@@ -1733,9 +1770,9 @@ declare class EvmTransactionsService {
|
|
|
1733
1770
|
* @returns ListTransfersResponse
|
|
1734
1771
|
* @throws ApiError
|
|
1735
1772
|
*/
|
|
1736
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1773
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1774
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1775
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1776
|
*/
|
|
1740
1777
|
chainId: string;
|
|
1741
1778
|
/**
|
|
@@ -1750,14 +1787,14 @@ declare class EvmTransactionsService {
|
|
|
1750
1787
|
* 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.
|
|
1751
1788
|
*/
|
|
1752
1789
|
endBlock?: number;
|
|
1753
|
-
/**
|
|
1754
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
-
*/
|
|
1756
|
-
pageSize?: number;
|
|
1757
1790
|
/**
|
|
1758
1791
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1759
1792
|
*/
|
|
1760
1793
|
pageToken?: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1796
|
+
*/
|
|
1797
|
+
pageSize?: number;
|
|
1761
1798
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
1799
|
/**
|
|
1763
1800
|
* List transactions
|
|
@@ -1767,23 +1804,23 @@ declare class EvmTransactionsService {
|
|
|
1767
1804
|
* @returns ListTransactionDetailsResponse
|
|
1768
1805
|
* @throws ApiError
|
|
1769
1806
|
*/
|
|
1770
|
-
listTransactions({ chainId, address,
|
|
1807
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1808
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1810
|
*/
|
|
1774
1811
|
chainId: string;
|
|
1775
1812
|
/**
|
|
1776
1813
|
* A wallet address.
|
|
1777
1814
|
*/
|
|
1778
1815
|
address: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1781
|
-
*/
|
|
1782
|
-
pageSize?: number;
|
|
1783
1816
|
/**
|
|
1784
1817
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1785
1818
|
*/
|
|
1786
1819
|
pageToken?: string;
|
|
1820
|
+
/**
|
|
1821
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1822
|
+
*/
|
|
1823
|
+
pageSize?: number;
|
|
1787
1824
|
/**
|
|
1788
1825
|
* 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.
|
|
1789
1826
|
*/
|
|
@@ -1803,9 +1840,9 @@ declare class EvmTransactionsService {
|
|
|
1803
1840
|
* @returns ListNativeTransactionsResponse
|
|
1804
1841
|
* @throws ApiError
|
|
1805
1842
|
*/
|
|
1806
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1843
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1844
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1845
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1846
|
*/
|
|
1810
1847
|
chainId: string;
|
|
1811
1848
|
/**
|
|
@@ -1820,14 +1857,14 @@ declare class EvmTransactionsService {
|
|
|
1820
1857
|
* 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.
|
|
1821
1858
|
*/
|
|
1822
1859
|
endBlock?: number;
|
|
1823
|
-
/**
|
|
1824
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1825
|
-
*/
|
|
1826
|
-
pageSize?: number;
|
|
1827
1860
|
/**
|
|
1828
1861
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1829
1862
|
*/
|
|
1830
1863
|
pageToken?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1866
|
+
*/
|
|
1867
|
+
pageSize?: number;
|
|
1831
1868
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1832
1869
|
/**
|
|
1833
1870
|
* List ERC-20 transfers
|
|
@@ -1835,9 +1872,9 @@ declare class EvmTransactionsService {
|
|
|
1835
1872
|
* @returns ListErc20TransactionsResponse
|
|
1836
1873
|
* @throws ApiError
|
|
1837
1874
|
*/
|
|
1838
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1875
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1876
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1877
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1878
|
*/
|
|
1842
1879
|
chainId: string;
|
|
1843
1880
|
/**
|
|
@@ -1852,14 +1889,14 @@ declare class EvmTransactionsService {
|
|
|
1852
1889
|
* 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.
|
|
1853
1890
|
*/
|
|
1854
1891
|
endBlock?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
-
*/
|
|
1858
|
-
pageSize?: number;
|
|
1859
1892
|
/**
|
|
1860
1893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1861
1894
|
*/
|
|
1862
1895
|
pageToken?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1898
|
+
*/
|
|
1899
|
+
pageSize?: number;
|
|
1863
1900
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1864
1901
|
/**
|
|
1865
1902
|
* List ERC-721 transfers
|
|
@@ -1867,9 +1904,9 @@ declare class EvmTransactionsService {
|
|
|
1867
1904
|
* @returns ListErc721TransactionsResponse
|
|
1868
1905
|
* @throws ApiError
|
|
1869
1906
|
*/
|
|
1870
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1907
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1908
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1909
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1910
|
*/
|
|
1874
1911
|
chainId: string;
|
|
1875
1912
|
/**
|
|
@@ -1884,14 +1921,14 @@ declare class EvmTransactionsService {
|
|
|
1884
1921
|
* 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.
|
|
1885
1922
|
*/
|
|
1886
1923
|
endBlock?: number;
|
|
1887
|
-
/**
|
|
1888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1889
|
-
*/
|
|
1890
|
-
pageSize?: number;
|
|
1891
1924
|
/**
|
|
1892
1925
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1893
1926
|
*/
|
|
1894
1927
|
pageToken?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1930
|
+
*/
|
|
1931
|
+
pageSize?: number;
|
|
1895
1932
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1896
1933
|
/**
|
|
1897
1934
|
* List ERC-1155 transfers
|
|
@@ -1899,9 +1936,9 @@ declare class EvmTransactionsService {
|
|
|
1899
1936
|
* @returns ListErc1155TransactionsResponse
|
|
1900
1937
|
* @throws ApiError
|
|
1901
1938
|
*/
|
|
1902
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1939
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1940
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1941
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1942
|
*/
|
|
1906
1943
|
chainId: string;
|
|
1907
1944
|
/**
|
|
@@ -1916,14 +1953,14 @@ declare class EvmTransactionsService {
|
|
|
1916
1953
|
* 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.
|
|
1917
1954
|
*/
|
|
1918
1955
|
endBlock?: number;
|
|
1919
|
-
/**
|
|
1920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1921
|
-
*/
|
|
1922
|
-
pageSize?: number;
|
|
1923
1956
|
/**
|
|
1924
1957
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1925
1958
|
*/
|
|
1926
1959
|
pageToken?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1962
|
+
*/
|
|
1963
|
+
pageSize?: number;
|
|
1927
1964
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1928
1965
|
/**
|
|
1929
1966
|
* List internal transactions
|
|
@@ -1933,9 +1970,9 @@ declare class EvmTransactionsService {
|
|
|
1933
1970
|
* @returns ListInternalTransactionsResponse
|
|
1934
1971
|
* @throws ApiError
|
|
1935
1972
|
*/
|
|
1936
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1973
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1974
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1975
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1976
|
*/
|
|
1940
1977
|
chainId: string;
|
|
1941
1978
|
/**
|
|
@@ -1950,14 +1987,14 @@ declare class EvmTransactionsService {
|
|
|
1950
1987
|
* 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.
|
|
1951
1988
|
*/
|
|
1952
1989
|
endBlock?: number;
|
|
1953
|
-
/**
|
|
1954
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1955
|
-
*/
|
|
1956
|
-
pageSize?: number;
|
|
1957
1990
|
/**
|
|
1958
1991
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1959
1992
|
*/
|
|
1960
1993
|
pageToken?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1996
|
+
*/
|
|
1997
|
+
pageSize?: number;
|
|
1961
1998
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1962
1999
|
/**
|
|
1963
2000
|
* Get transaction
|
|
@@ -1967,7 +2004,7 @@ declare class EvmTransactionsService {
|
|
|
1967
2004
|
*/
|
|
1968
2005
|
getTransaction({ chainId, txHash, }: {
|
|
1969
2006
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2007
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
2008
|
*/
|
|
1972
2009
|
chainId: string;
|
|
1973
2010
|
/**
|
|
@@ -1983,7 +2020,7 @@ declare class EvmTransactionsService {
|
|
|
1983
2020
|
*/
|
|
1984
2021
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
2022
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2023
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
2024
|
*/
|
|
1988
2025
|
chainId: string;
|
|
1989
2026
|
/**
|
|
@@ -1997,19 +2034,19 @@ declare class EvmTransactionsService {
|
|
|
1997
2034
|
* @returns ListNativeTransactionsResponse
|
|
1998
2035
|
* @throws ApiError
|
|
1999
2036
|
*/
|
|
2000
|
-
listLatestTransactions({ chainId,
|
|
2037
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
2038
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2039
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
2040
|
*/
|
|
2004
2041
|
chainId: string;
|
|
2005
|
-
/**
|
|
2006
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2007
|
-
*/
|
|
2008
|
-
pageSize?: number;
|
|
2009
2042
|
/**
|
|
2010
2043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2011
2044
|
*/
|
|
2012
2045
|
pageToken?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2048
|
+
*/
|
|
2049
|
+
pageSize?: number;
|
|
2013
2050
|
/**
|
|
2014
2051
|
* A status filter for listed transactions.
|
|
2015
2052
|
*/
|
|
@@ -2038,7 +2075,7 @@ type ListNftTokens = {
|
|
|
2038
2075
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2039
2076
|
*/
|
|
2040
2077
|
nextPageToken?: string;
|
|
2041
|
-
tokens:
|
|
2078
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2042
2079
|
};
|
|
2043
2080
|
|
|
2044
2081
|
declare class NfTsService {
|
|
@@ -2052,7 +2089,7 @@ declare class NfTsService {
|
|
|
2052
2089
|
*/
|
|
2053
2090
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
2091
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2092
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
2093
|
*/
|
|
2057
2094
|
chainId: string;
|
|
2058
2095
|
/**
|
|
@@ -2070,23 +2107,23 @@ declare class NfTsService {
|
|
|
2070
2107
|
* @returns ListNftTokens
|
|
2071
2108
|
* @throws ApiError
|
|
2072
2109
|
*/
|
|
2073
|
-
listTokens({ chainId, address,
|
|
2110
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
2111
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2112
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
2113
|
*/
|
|
2077
2114
|
chainId: string;
|
|
2078
2115
|
/**
|
|
2079
2116
|
* Contract address on the relevant chain.
|
|
2080
2117
|
*/
|
|
2081
2118
|
address: string;
|
|
2082
|
-
/**
|
|
2083
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
-
*/
|
|
2085
|
-
pageSize?: number;
|
|
2086
2119
|
/**
|
|
2087
2120
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
2121
|
*/
|
|
2089
2122
|
pageToken?: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2125
|
+
*/
|
|
2126
|
+
pageSize?: number;
|
|
2090
2127
|
}): CancelablePromise<ListNftTokens>;
|
|
2091
2128
|
/**
|
|
2092
2129
|
* Get token details
|
|
@@ -2096,7 +2133,7 @@ declare class NfTsService {
|
|
|
2096
2133
|
*/
|
|
2097
2134
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
2135
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2136
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
2137
|
*/
|
|
2101
2138
|
chainId: string;
|
|
2102
2139
|
/**
|
|
@@ -2115,8 +2152,12 @@ type EvmNetworkOptions = {
|
|
|
2115
2152
|
includeChains: Array<string>;
|
|
2116
2153
|
};
|
|
2117
2154
|
|
|
2155
|
+
declare enum EVMOperationType {
|
|
2156
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2118
2159
|
type CreateEvmTransactionExportRequest = {
|
|
2119
|
-
type:
|
|
2160
|
+
type: EVMOperationType;
|
|
2120
2161
|
firstDate: string;
|
|
2121
2162
|
lastDate: string;
|
|
2122
2163
|
/**
|
|
@@ -2129,10 +2170,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2129
2170
|
endDate: string;
|
|
2130
2171
|
options: EvmNetworkOptions;
|
|
2131
2172
|
};
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2173
|
+
|
|
2174
|
+
declare enum PrimaryNetworkOperationType {
|
|
2175
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2176
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2177
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2136
2178
|
}
|
|
2137
2179
|
|
|
2138
2180
|
type PrimaryNetworkOptions = {
|
|
@@ -2142,7 +2184,7 @@ type PrimaryNetworkOptions = {
|
|
|
2142
2184
|
};
|
|
2143
2185
|
|
|
2144
2186
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2145
|
-
type:
|
|
2187
|
+
type: PrimaryNetworkOperationType;
|
|
2146
2188
|
firstDate: string;
|
|
2147
2189
|
lastDate: string;
|
|
2148
2190
|
/**
|
|
@@ -2155,11 +2197,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2155
2197
|
endDate: string;
|
|
2156
2198
|
options: PrimaryNetworkOptions;
|
|
2157
2199
|
};
|
|
2158
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2159
|
-
enum type {
|
|
2160
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
2200
|
|
|
2164
2201
|
declare enum OperationStatus {
|
|
2165
2202
|
RUNNING = "RUNNING",
|
|
@@ -2169,8 +2206,10 @@ declare enum OperationStatus {
|
|
|
2169
2206
|
}
|
|
2170
2207
|
|
|
2171
2208
|
declare enum OperationType {
|
|
2172
|
-
|
|
2173
|
-
|
|
2209
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2210
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2211
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2212
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2174
2213
|
}
|
|
2175
2214
|
|
|
2176
2215
|
declare enum OperationStatusCode {
|
|
@@ -2362,13 +2401,44 @@ type BlockchainInfo = {
|
|
|
2362
2401
|
blockchainId: string;
|
|
2363
2402
|
};
|
|
2364
2403
|
|
|
2404
|
+
type SubnetOwnershipInfo = {
|
|
2405
|
+
/**
|
|
2406
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2407
|
+
*/
|
|
2408
|
+
locktime: number;
|
|
2409
|
+
/**
|
|
2410
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2411
|
+
*/
|
|
2412
|
+
threshold: number;
|
|
2413
|
+
/**
|
|
2414
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2415
|
+
*/
|
|
2416
|
+
addresses: Array<string>;
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2365
2419
|
type Subnet = {
|
|
2366
2420
|
createBlockTimestamp: number;
|
|
2367
2421
|
createBlockIndex: string;
|
|
2368
2422
|
subnetId: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2425
|
+
* @deprecated
|
|
2426
|
+
*/
|
|
2369
2427
|
ownerAddresses: Array<string>;
|
|
2428
|
+
/**
|
|
2429
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2430
|
+
* @deprecated
|
|
2431
|
+
*/
|
|
2370
2432
|
threshold: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2435
|
+
* @deprecated
|
|
2436
|
+
*/
|
|
2371
2437
|
locktime: number;
|
|
2438
|
+
/**
|
|
2439
|
+
* Latest subnet owner details for this Subnet.
|
|
2440
|
+
*/
|
|
2441
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2372
2442
|
blockchains: Array<BlockchainInfo>;
|
|
2373
2443
|
};
|
|
2374
2444
|
|
|
@@ -2464,6 +2534,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2464
2534
|
}
|
|
2465
2535
|
}
|
|
2466
2536
|
|
|
2537
|
+
type RemovedValidatorDetails = {
|
|
2538
|
+
txHash: string;
|
|
2539
|
+
nodeId: string;
|
|
2540
|
+
subnetId: string;
|
|
2541
|
+
amountStaked: string;
|
|
2542
|
+
delegationFee?: string;
|
|
2543
|
+
startTimestamp: number;
|
|
2544
|
+
endTimestamp: number;
|
|
2545
|
+
removeTxHash: string;
|
|
2546
|
+
removeTimestamp: number;
|
|
2547
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2548
|
+
};
|
|
2549
|
+
declare namespace RemovedValidatorDetails {
|
|
2550
|
+
enum validationStatus {
|
|
2551
|
+
REMOVED = "removed"
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2467
2555
|
type ListValidatorDetailsResponse = {
|
|
2468
2556
|
/**
|
|
2469
2557
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2472,7 +2560,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2472
2560
|
/**
|
|
2473
2561
|
* The list of validator Details.
|
|
2474
2562
|
*/
|
|
2475
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2563
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2476
2564
|
};
|
|
2477
2565
|
|
|
2478
2566
|
declare enum Network {
|
|
@@ -2483,7 +2571,24 @@ declare enum Network {
|
|
|
2483
2571
|
declare enum ValidationStatusType {
|
|
2484
2572
|
COMPLETED = "completed",
|
|
2485
2573
|
ACTIVE = "active",
|
|
2486
|
-
PENDING = "pending"
|
|
2574
|
+
PENDING = "pending",
|
|
2575
|
+
REMOVED = "removed"
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2580
|
+
*/
|
|
2581
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2582
|
+
FIXED = "fixed",
|
|
2583
|
+
VARIABLE = "variable"
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2588
|
+
*/
|
|
2589
|
+
declare enum PrimaryNetworkAssetType {
|
|
2590
|
+
SECP256K1 = "secp256k1",
|
|
2591
|
+
NFT = "nft"
|
|
2487
2592
|
}
|
|
2488
2593
|
|
|
2489
2594
|
type XChainAssetDetails = {
|
|
@@ -2503,18 +2608,12 @@ type XChainAssetDetails = {
|
|
|
2503
2608
|
* Denomination of this asset to represent fungibility.
|
|
2504
2609
|
*/
|
|
2505
2610
|
denomination: number;
|
|
2506
|
-
|
|
2507
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2508
|
-
*/
|
|
2509
|
-
type: string;
|
|
2611
|
+
type: PrimaryNetworkAssetType;
|
|
2510
2612
|
/**
|
|
2511
2613
|
* Timestamp in seconds this asset was created on.
|
|
2512
2614
|
*/
|
|
2513
2615
|
createdAtTimestamp: number;
|
|
2514
|
-
|
|
2515
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2516
|
-
*/
|
|
2517
|
-
cap: string;
|
|
2616
|
+
cap: PrimaryNetworkAssetCap;
|
|
2518
2617
|
};
|
|
2519
2618
|
|
|
2520
2619
|
declare enum XChainId {
|
|
@@ -2580,19 +2679,19 @@ declare class PrimaryNetworkService {
|
|
|
2580
2679
|
* @returns ListBlockchainsResponse
|
|
2581
2680
|
* @throws ApiError
|
|
2582
2681
|
*/
|
|
2583
|
-
listBlockchains({ network,
|
|
2682
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2584
2683
|
/**
|
|
2585
2684
|
* Either mainnet or a testnet.
|
|
2586
2685
|
*/
|
|
2587
2686
|
network: Network;
|
|
2588
|
-
/**
|
|
2589
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2590
|
-
*/
|
|
2591
|
-
pageSize?: number;
|
|
2592
2687
|
/**
|
|
2593
2688
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2594
2689
|
*/
|
|
2595
2690
|
pageToken?: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2693
|
+
*/
|
|
2694
|
+
pageSize?: number;
|
|
2596
2695
|
/**
|
|
2597
2696
|
* 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.
|
|
2598
2697
|
*/
|
|
@@ -2604,19 +2703,19 @@ declare class PrimaryNetworkService {
|
|
|
2604
2703
|
* @returns ListSubnetsResponse
|
|
2605
2704
|
* @throws ApiError
|
|
2606
2705
|
*/
|
|
2607
|
-
listSubnets({ network,
|
|
2706
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2608
2707
|
/**
|
|
2609
2708
|
* Either mainnet or a testnet.
|
|
2610
2709
|
*/
|
|
2611
2710
|
network: Network;
|
|
2612
|
-
/**
|
|
2613
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2614
|
-
*/
|
|
2615
|
-
pageSize?: number;
|
|
2616
2711
|
/**
|
|
2617
2712
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2618
2713
|
*/
|
|
2619
2714
|
pageToken?: string;
|
|
2715
|
+
/**
|
|
2716
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2717
|
+
*/
|
|
2718
|
+
pageSize?: number;
|
|
2620
2719
|
/**
|
|
2621
2720
|
* 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.
|
|
2622
2721
|
*/
|
|
@@ -2628,19 +2727,19 @@ declare class PrimaryNetworkService {
|
|
|
2628
2727
|
* @returns ListValidatorDetailsResponse
|
|
2629
2728
|
* @throws ApiError
|
|
2630
2729
|
*/
|
|
2631
|
-
listValidators({ network,
|
|
2730
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2632
2731
|
/**
|
|
2633
2732
|
* Either mainnet or a testnet.
|
|
2634
2733
|
*/
|
|
2635
2734
|
network: Network;
|
|
2636
|
-
/**
|
|
2637
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2638
|
-
*/
|
|
2639
|
-
pageSize?: number;
|
|
2640
2735
|
/**
|
|
2641
2736
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2642
2737
|
*/
|
|
2643
2738
|
pageToken?: string;
|
|
2739
|
+
/**
|
|
2740
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2741
|
+
*/
|
|
2742
|
+
pageSize?: number;
|
|
2644
2743
|
/**
|
|
2645
2744
|
* A comma separated list of node ids to filter by.
|
|
2646
2745
|
*/
|
|
@@ -2656,27 +2755,27 @@ declare class PrimaryNetworkService {
|
|
|
2656
2755
|
/**
|
|
2657
2756
|
* 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
|
|
2658
2757
|
*/
|
|
2659
|
-
minDelegationCapacity?:
|
|
2758
|
+
minDelegationCapacity?: string;
|
|
2660
2759
|
/**
|
|
2661
2760
|
* 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.
|
|
2662
2761
|
*/
|
|
2663
|
-
maxDelegationCapacity?:
|
|
2762
|
+
maxDelegationCapacity?: string;
|
|
2664
2763
|
/**
|
|
2665
2764
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2666
2765
|
*/
|
|
2667
|
-
minTimeRemaining?:
|
|
2766
|
+
minTimeRemaining?: number;
|
|
2668
2767
|
/**
|
|
2669
2768
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2670
2769
|
*/
|
|
2671
|
-
maxTimeRemaining?:
|
|
2770
|
+
maxTimeRemaining?: number;
|
|
2672
2771
|
/**
|
|
2673
2772
|
* 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.
|
|
2674
2773
|
*/
|
|
2675
|
-
minFeePercentage?:
|
|
2774
|
+
minFeePercentage?: number;
|
|
2676
2775
|
/**
|
|
2677
2776
|
* 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.
|
|
2678
2777
|
*/
|
|
2679
|
-
maxFeePercentage?:
|
|
2778
|
+
maxFeePercentage?: number;
|
|
2680
2779
|
/**
|
|
2681
2780
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2682
2781
|
*/
|
|
@@ -2688,7 +2787,7 @@ declare class PrimaryNetworkService {
|
|
|
2688
2787
|
* @returns ListValidatorDetailsResponse
|
|
2689
2788
|
* @throws ApiError
|
|
2690
2789
|
*/
|
|
2691
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2790
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2692
2791
|
/**
|
|
2693
2792
|
* Either mainnet or a testnet.
|
|
2694
2793
|
*/
|
|
@@ -2697,14 +2796,14 @@ declare class PrimaryNetworkService {
|
|
|
2697
2796
|
* A primary network (P or X chain) nodeId.
|
|
2698
2797
|
*/
|
|
2699
2798
|
nodeId: string;
|
|
2700
|
-
/**
|
|
2701
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2702
|
-
*/
|
|
2703
|
-
pageSize?: number;
|
|
2704
2799
|
/**
|
|
2705
2800
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2706
2801
|
*/
|
|
2707
2802
|
pageToken?: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2805
|
+
*/
|
|
2806
|
+
pageSize?: number;
|
|
2708
2807
|
/**
|
|
2709
2808
|
* 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.
|
|
2710
2809
|
*/
|
|
@@ -2720,19 +2819,19 @@ declare class PrimaryNetworkService {
|
|
|
2720
2819
|
* @returns ListDelegatorDetailsResponse
|
|
2721
2820
|
* @throws ApiError
|
|
2722
2821
|
*/
|
|
2723
|
-
listDelegators({ network,
|
|
2822
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2724
2823
|
/**
|
|
2725
2824
|
* Either mainnet or a testnet.
|
|
2726
2825
|
*/
|
|
2727
2826
|
network: Network;
|
|
2728
2827
|
/**
|
|
2729
|
-
*
|
|
2828
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2730
2829
|
*/
|
|
2731
|
-
|
|
2830
|
+
pageToken?: string;
|
|
2732
2831
|
/**
|
|
2733
|
-
*
|
|
2832
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2734
2833
|
*/
|
|
2735
|
-
|
|
2834
|
+
pageSize?: number;
|
|
2736
2835
|
/**
|
|
2737
2836
|
* A comma separated list of reward addresses to filter by.
|
|
2738
2837
|
*/
|
|
@@ -2780,10 +2879,7 @@ type CChainSharedAssetBalance = {
|
|
|
2780
2879
|
* Denomination of this asset to represent fungibility.
|
|
2781
2880
|
*/
|
|
2782
2881
|
denomination: number;
|
|
2783
|
-
|
|
2784
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2785
|
-
*/
|
|
2786
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2787
2883
|
/**
|
|
2788
2884
|
* Amount of the asset.
|
|
2789
2885
|
*/
|
|
@@ -2818,7 +2914,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2818
2914
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2819
2915
|
};
|
|
2820
2916
|
|
|
2821
|
-
type
|
|
2917
|
+
type AggregatedAssetAmount = {
|
|
2822
2918
|
/**
|
|
2823
2919
|
* Unique ID for an asset.
|
|
2824
2920
|
*/
|
|
@@ -2835,14 +2931,12 @@ type Asset = {
|
|
|
2835
2931
|
* Denomination of this asset to represent fungibility.
|
|
2836
2932
|
*/
|
|
2837
2933
|
denomination: number;
|
|
2838
|
-
|
|
2839
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2840
|
-
*/
|
|
2841
|
-
type: string;
|
|
2934
|
+
type: PrimaryNetworkAssetType;
|
|
2842
2935
|
/**
|
|
2843
2936
|
* Amount of the asset.
|
|
2844
2937
|
*/
|
|
2845
2938
|
amount: string;
|
|
2939
|
+
utxoCount: number;
|
|
2846
2940
|
};
|
|
2847
2941
|
|
|
2848
2942
|
type PChainSharedAsset = {
|
|
@@ -2862,49 +2956,47 @@ type PChainSharedAsset = {
|
|
|
2862
2956
|
* Denomination of this asset to represent fungibility.
|
|
2863
2957
|
*/
|
|
2864
2958
|
denomination: number;
|
|
2865
|
-
|
|
2866
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2867
|
-
*/
|
|
2868
|
-
type: string;
|
|
2959
|
+
type: PrimaryNetworkAssetType;
|
|
2869
2960
|
/**
|
|
2870
2961
|
* Amount of the asset.
|
|
2871
2962
|
*/
|
|
2872
2963
|
amount: string;
|
|
2964
|
+
utxoCount: number;
|
|
2873
2965
|
sharedWithChainId: string;
|
|
2874
2966
|
status: string;
|
|
2875
2967
|
};
|
|
2876
2968
|
|
|
2877
2969
|
type PChainBalance = {
|
|
2878
2970
|
/**
|
|
2879
|
-
* A list of objects containing P-chain Asset
|
|
2971
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2880
2972
|
*/
|
|
2881
|
-
unlockedUnstaked: Array<
|
|
2973
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2882
2974
|
/**
|
|
2883
|
-
* A list of objects containing P-chain Asset
|
|
2975
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2884
2976
|
*/
|
|
2885
|
-
unlockedStaked: Array<
|
|
2977
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2886
2978
|
/**
|
|
2887
|
-
* A list of objects containing P-chain Asset
|
|
2979
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2888
2980
|
*/
|
|
2889
|
-
lockedPlatform: Array<
|
|
2981
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2890
2982
|
/**
|
|
2891
|
-
* A list of objects containing P-chain Asset
|
|
2983
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2892
2984
|
*/
|
|
2893
|
-
lockedStakeable: Array<
|
|
2985
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2894
2986
|
/**
|
|
2895
|
-
* A list of objects containing P-chain Asset
|
|
2987
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2896
2988
|
*/
|
|
2897
|
-
lockedStaked: Array<
|
|
2989
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2898
2990
|
/**
|
|
2899
|
-
* A list of objects containing P-chain Asset
|
|
2991
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2900
2992
|
*/
|
|
2901
|
-
pendingStaked: Array<
|
|
2993
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2902
2994
|
/**
|
|
2903
|
-
* A list of objects containing P-chain Asset
|
|
2995
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2904
2996
|
*/
|
|
2905
2997
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2906
2998
|
/**
|
|
2907
|
-
* A list of objects containing P-chain Asset
|
|
2999
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2908
3000
|
*/
|
|
2909
3001
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2910
3002
|
};
|
|
@@ -2914,34 +3006,6 @@ type ListPChainBalancesResponse = {
|
|
|
2914
3006
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2915
3007
|
};
|
|
2916
3008
|
|
|
2917
|
-
type XChainAssetBalance = {
|
|
2918
|
-
/**
|
|
2919
|
-
* Unique ID for an asset.
|
|
2920
|
-
*/
|
|
2921
|
-
assetId: string;
|
|
2922
|
-
/**
|
|
2923
|
-
* Name of this asset.
|
|
2924
|
-
*/
|
|
2925
|
-
name: string;
|
|
2926
|
-
/**
|
|
2927
|
-
* Symbol for this asset (max 4 characters).
|
|
2928
|
-
*/
|
|
2929
|
-
symbol: string;
|
|
2930
|
-
/**
|
|
2931
|
-
* Denomination of this asset to represent fungibility.
|
|
2932
|
-
*/
|
|
2933
|
-
denomination: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2936
|
-
*/
|
|
2937
|
-
type: string;
|
|
2938
|
-
/**
|
|
2939
|
-
* Amount of the asset.
|
|
2940
|
-
*/
|
|
2941
|
-
amount: string;
|
|
2942
|
-
utxoCount: number;
|
|
2943
|
-
};
|
|
2944
|
-
|
|
2945
3009
|
type XChainSharedAssetBalance = {
|
|
2946
3010
|
/**
|
|
2947
3011
|
* Unique ID for an asset.
|
|
@@ -2959,10 +3023,7 @@ type XChainSharedAssetBalance = {
|
|
|
2959
3023
|
* Denomination of this asset to represent fungibility.
|
|
2960
3024
|
*/
|
|
2961
3025
|
denomination: number;
|
|
2962
|
-
|
|
2963
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2964
|
-
*/
|
|
2965
|
-
type: string;
|
|
3026
|
+
type: PrimaryNetworkAssetType;
|
|
2966
3027
|
/**
|
|
2967
3028
|
* Amount of the asset.
|
|
2968
3029
|
*/
|
|
@@ -2975,11 +3036,11 @@ type XChainBalances = {
|
|
|
2975
3036
|
/**
|
|
2976
3037
|
* A list of objects containing X-chain Asset balance information.
|
|
2977
3038
|
*/
|
|
2978
|
-
locked: Array<
|
|
3039
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2979
3040
|
/**
|
|
2980
3041
|
* A list of objects containing X-chain Asset balance information.
|
|
2981
3042
|
*/
|
|
2982
|
-
unlocked: Array<
|
|
3043
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2983
3044
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2984
3045
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2985
3046
|
};
|
|
@@ -3092,7 +3153,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3092
3153
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3093
3154
|
* @throws ApiError
|
|
3094
3155
|
*/
|
|
3095
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3156
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3096
3157
|
/**
|
|
3097
3158
|
* A primary network blockchain id or alias.
|
|
3098
3159
|
*/
|
|
@@ -3105,14 +3166,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3105
3166
|
* A primary network (P or X chain) nodeId.
|
|
3106
3167
|
*/
|
|
3107
3168
|
nodeId: string;
|
|
3108
|
-
/**
|
|
3109
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3110
|
-
*/
|
|
3111
|
-
pageSize?: number;
|
|
3112
3169
|
/**
|
|
3113
3170
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3114
3171
|
*/
|
|
3115
3172
|
pageToken?: string;
|
|
3173
|
+
/**
|
|
3174
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3175
|
+
*/
|
|
3176
|
+
pageSize?: number;
|
|
3116
3177
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3117
3178
|
/**
|
|
3118
3179
|
* List latest blocks
|
|
@@ -3120,7 +3181,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3120
3181
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3121
3182
|
* @throws ApiError
|
|
3122
3183
|
*/
|
|
3123
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3184
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3124
3185
|
/**
|
|
3125
3186
|
* A primary network blockchain id or alias.
|
|
3126
3187
|
*/
|
|
@@ -3129,17 +3190,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3129
3190
|
* Either mainnet or a testnet.
|
|
3130
3191
|
*/
|
|
3131
3192
|
network: Network;
|
|
3132
|
-
/**
|
|
3133
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3134
|
-
*/
|
|
3135
|
-
pageSize?: number;
|
|
3136
3193
|
/**
|
|
3137
3194
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3138
3195
|
*/
|
|
3139
3196
|
pageToken?: string;
|
|
3197
|
+
/**
|
|
3198
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3199
|
+
*/
|
|
3200
|
+
pageSize?: number;
|
|
3140
3201
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3141
3202
|
}
|
|
3142
3203
|
|
|
3204
|
+
type AssetWithPriceInfo = {
|
|
3205
|
+
/**
|
|
3206
|
+
* Unique ID for an asset.
|
|
3207
|
+
*/
|
|
3208
|
+
assetId: string;
|
|
3209
|
+
/**
|
|
3210
|
+
* Name of this asset.
|
|
3211
|
+
*/
|
|
3212
|
+
name: string;
|
|
3213
|
+
/**
|
|
3214
|
+
* Symbol for this asset (max 4 characters).
|
|
3215
|
+
*/
|
|
3216
|
+
symbol: string;
|
|
3217
|
+
/**
|
|
3218
|
+
* Denomination of this asset to represent fungibility.
|
|
3219
|
+
*/
|
|
3220
|
+
denomination: number;
|
|
3221
|
+
type: PrimaryNetworkAssetType;
|
|
3222
|
+
/**
|
|
3223
|
+
* Amount of the asset.
|
|
3224
|
+
*/
|
|
3225
|
+
amount: string;
|
|
3226
|
+
/**
|
|
3227
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3228
|
+
*/
|
|
3229
|
+
historicalPrice?: Money;
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3143
3232
|
declare enum RewardType {
|
|
3144
3233
|
VALIDATOR = "VALIDATOR",
|
|
3145
3234
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3159,10 +3248,7 @@ type HistoricalReward = {
|
|
|
3159
3248
|
rewardType: RewardType;
|
|
3160
3249
|
utxoId: string;
|
|
3161
3250
|
outputIndex: number;
|
|
3162
|
-
|
|
3163
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3164
|
-
*/
|
|
3165
|
-
reward: Asset;
|
|
3251
|
+
reward: AssetWithPriceInfo;
|
|
3166
3252
|
rewardTxHash: string;
|
|
3167
3253
|
};
|
|
3168
3254
|
|
|
@@ -3174,6 +3260,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3174
3260
|
historicalRewards: Array<HistoricalReward>;
|
|
3175
3261
|
};
|
|
3176
3262
|
|
|
3263
|
+
type AssetAmount = {
|
|
3264
|
+
/**
|
|
3265
|
+
* Unique ID for an asset.
|
|
3266
|
+
*/
|
|
3267
|
+
assetId: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* Name of this asset.
|
|
3270
|
+
*/
|
|
3271
|
+
name: string;
|
|
3272
|
+
/**
|
|
3273
|
+
* Symbol for this asset (max 4 characters).
|
|
3274
|
+
*/
|
|
3275
|
+
symbol: string;
|
|
3276
|
+
/**
|
|
3277
|
+
* Denomination of this asset to represent fungibility.
|
|
3278
|
+
*/
|
|
3279
|
+
denomination: number;
|
|
3280
|
+
type: PrimaryNetworkAssetType;
|
|
3281
|
+
/**
|
|
3282
|
+
* Amount of the asset.
|
|
3283
|
+
*/
|
|
3284
|
+
amount: string;
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3177
3287
|
type PendingReward = {
|
|
3178
3288
|
/**
|
|
3179
3289
|
* An array of P-Chain wallet addresses.
|
|
@@ -3187,9 +3297,9 @@ type PendingReward = {
|
|
|
3187
3297
|
rewardType: RewardType;
|
|
3188
3298
|
progress: number;
|
|
3189
3299
|
/**
|
|
3190
|
-
* An object containing P-chain Asset
|
|
3300
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3191
3301
|
*/
|
|
3192
|
-
estimatedReward:
|
|
3302
|
+
estimatedReward: AssetAmount;
|
|
3193
3303
|
};
|
|
3194
3304
|
|
|
3195
3305
|
type ListPendingRewardsResponse = {
|
|
@@ -3209,25 +3319,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3209
3319
|
* @returns ListPendingRewardsResponse
|
|
3210
3320
|
* @throws ApiError
|
|
3211
3321
|
*/
|
|
3212
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3322
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3213
3323
|
/**
|
|
3214
3324
|
* Either mainnet or a testnet.
|
|
3215
3325
|
*/
|
|
3216
3326
|
network: Network;
|
|
3217
3327
|
/**
|
|
3218
|
-
* 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".
|
|
3328
|
+
* 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". One of addresses or nodeIds is required.
|
|
3219
3329
|
*/
|
|
3220
3330
|
addresses?: string;
|
|
3221
|
-
/**
|
|
3222
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3223
|
-
*/
|
|
3224
|
-
pageSize?: number;
|
|
3225
3331
|
/**
|
|
3226
3332
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3227
3333
|
*/
|
|
3228
3334
|
pageToken?: string;
|
|
3229
3335
|
/**
|
|
3230
|
-
*
|
|
3336
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3337
|
+
*/
|
|
3338
|
+
pageSize?: number;
|
|
3339
|
+
/**
|
|
3340
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3231
3341
|
*/
|
|
3232
3342
|
nodeIds?: string;
|
|
3233
3343
|
/**
|
|
@@ -3241,7 +3351,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3241
3351
|
* @returns ListHistoricalRewardsResponse
|
|
3242
3352
|
* @throws ApiError
|
|
3243
3353
|
*/
|
|
3244
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3354
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3245
3355
|
/**
|
|
3246
3356
|
* Either mainnet or a testnet.
|
|
3247
3357
|
*/
|
|
@@ -3250,14 +3360,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3250
3360
|
* 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". Optional, but at least one of addresses or nodeIds is required.
|
|
3251
3361
|
*/
|
|
3252
3362
|
addresses?: string;
|
|
3253
|
-
/**
|
|
3254
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3255
|
-
*/
|
|
3256
|
-
pageSize?: number;
|
|
3257
3363
|
/**
|
|
3258
3364
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3259
3365
|
*/
|
|
3260
3366
|
pageToken?: string;
|
|
3367
|
+
/**
|
|
3368
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3369
|
+
*/
|
|
3370
|
+
pageSize?: number;
|
|
3261
3371
|
/**
|
|
3262
3372
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3263
3373
|
*/
|
|
@@ -3266,6 +3376,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3266
3376
|
* 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.
|
|
3267
3377
|
*/
|
|
3268
3378
|
sortOrder?: SortOrder;
|
|
3379
|
+
/**
|
|
3380
|
+
* The currency that return values should use. Defaults to USD.
|
|
3381
|
+
*/
|
|
3382
|
+
currency?: CurrencyCode;
|
|
3269
3383
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3270
3384
|
}
|
|
3271
3385
|
|
|
@@ -3286,9 +3400,9 @@ type EVMInput = {
|
|
|
3286
3400
|
*/
|
|
3287
3401
|
fromAddress: string;
|
|
3288
3402
|
/**
|
|
3289
|
-
*
|
|
3403
|
+
* AssetAmount details for the asset being transferred.
|
|
3290
3404
|
*/
|
|
3291
|
-
asset:
|
|
3405
|
+
asset: AssetAmount;
|
|
3292
3406
|
/**
|
|
3293
3407
|
* Credentials that signed this transaction.
|
|
3294
3408
|
*/
|
|
@@ -3300,7 +3414,7 @@ type Utxo = {
|
|
|
3300
3414
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3301
3415
|
*/
|
|
3302
3416
|
addresses: Array<string>;
|
|
3303
|
-
asset:
|
|
3417
|
+
asset: AssetAmount;
|
|
3304
3418
|
/**
|
|
3305
3419
|
* Blockchain ID on which this output is consumed on.
|
|
3306
3420
|
*/
|
|
@@ -3383,11 +3497,11 @@ type CChainExportTransaction = {
|
|
|
3383
3497
|
/**
|
|
3384
3498
|
* Assets unlocked by inputs of this transaction.
|
|
3385
3499
|
*/
|
|
3386
|
-
amountUnlocked: Array<
|
|
3500
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3387
3501
|
/**
|
|
3388
3502
|
* Assets created by outputs of this transaction.
|
|
3389
3503
|
*/
|
|
3390
|
-
amountCreated: Array<
|
|
3504
|
+
amountCreated: Array<AssetAmount>;
|
|
3391
3505
|
/**
|
|
3392
3506
|
* Source chain for an atomic transaction.
|
|
3393
3507
|
*/
|
|
@@ -3418,9 +3532,9 @@ type EVMOutput = {
|
|
|
3418
3532
|
*/
|
|
3419
3533
|
toAddress: string;
|
|
3420
3534
|
/**
|
|
3421
|
-
*
|
|
3535
|
+
* AssetAmount details for the asset being transferred.
|
|
3422
3536
|
*/
|
|
3423
|
-
asset:
|
|
3537
|
+
asset: AssetAmount;
|
|
3424
3538
|
};
|
|
3425
3539
|
|
|
3426
3540
|
type CChainImportTransaction = {
|
|
@@ -3447,11 +3561,11 @@ type CChainImportTransaction = {
|
|
|
3447
3561
|
/**
|
|
3448
3562
|
* Assets unlocked by inputs of this transaction.
|
|
3449
3563
|
*/
|
|
3450
|
-
amountUnlocked: Array<
|
|
3564
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3451
3565
|
/**
|
|
3452
3566
|
* Assets created by outputs of this transaction.
|
|
3453
3567
|
*/
|
|
3454
|
-
amountCreated: Array<
|
|
3568
|
+
amountCreated: Array<AssetAmount>;
|
|
3455
3569
|
/**
|
|
3456
3570
|
* Source chain for an atomic transaction.
|
|
3457
3571
|
*/
|
|
@@ -3499,6 +3613,8 @@ declare enum PChainTransactionType {
|
|
|
3499
3613
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3500
3614
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3501
3615
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3616
|
+
BASE_TX = "BaseTx",
|
|
3617
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3502
3618
|
UNKNOWN = "UNKNOWN"
|
|
3503
3619
|
}
|
|
3504
3620
|
|
|
@@ -3512,7 +3628,7 @@ type PChainUtxo = {
|
|
|
3512
3628
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3513
3629
|
*/
|
|
3514
3630
|
addresses: Array<string>;
|
|
3515
|
-
asset:
|
|
3631
|
+
asset: AssetAmount;
|
|
3516
3632
|
/**
|
|
3517
3633
|
* Blockchain ID on which this output is consumed on.
|
|
3518
3634
|
*/
|
|
@@ -3576,17 +3692,17 @@ type PChainTransaction = {
|
|
|
3576
3692
|
*/
|
|
3577
3693
|
destinationChain?: string;
|
|
3578
3694
|
/**
|
|
3579
|
-
* A list of objects containing P-chain Asset
|
|
3695
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3580
3696
|
*/
|
|
3581
|
-
value: Array<
|
|
3697
|
+
value: Array<AssetAmount>;
|
|
3582
3698
|
/**
|
|
3583
|
-
* A list of objects containing P-chain Asset
|
|
3699
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3584
3700
|
*/
|
|
3585
|
-
amountBurned: Array<
|
|
3701
|
+
amountBurned: Array<AssetAmount>;
|
|
3586
3702
|
/**
|
|
3587
|
-
* A list of objects containing P-chain Asset
|
|
3703
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3588
3704
|
*/
|
|
3589
|
-
amountStaked: Array<
|
|
3705
|
+
amountStaked: Array<AssetAmount>;
|
|
3590
3706
|
/**
|
|
3591
3707
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3592
3708
|
*/
|
|
@@ -3618,6 +3734,10 @@ type PChainTransaction = {
|
|
|
3618
3734
|
* Present for RewardValidatorTx
|
|
3619
3735
|
*/
|
|
3620
3736
|
stakingTxHash?: string;
|
|
3737
|
+
/**
|
|
3738
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3739
|
+
*/
|
|
3740
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3621
3741
|
};
|
|
3622
3742
|
|
|
3623
3743
|
type ListPChainTransactionsResponse = {
|
|
@@ -3629,6 +3749,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3629
3749
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3630
3750
|
};
|
|
3631
3751
|
|
|
3752
|
+
/**
|
|
3753
|
+
* Type of transaction.
|
|
3754
|
+
*/
|
|
3632
3755
|
declare enum XChainTransactionType {
|
|
3633
3756
|
BASE_TX = "BaseTx",
|
|
3634
3757
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3651,9 +3774,6 @@ type XChainLinearTransaction = {
|
|
|
3651
3774
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3652
3775
|
*/
|
|
3653
3776
|
timestamp: number;
|
|
3654
|
-
/**
|
|
3655
|
-
* Type of transaction.
|
|
3656
|
-
*/
|
|
3657
3777
|
txType: XChainTransactionType;
|
|
3658
3778
|
/**
|
|
3659
3779
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3664,11 +3784,11 @@ type XChainLinearTransaction = {
|
|
|
3664
3784
|
/**
|
|
3665
3785
|
* Assets unlocked by inputs of this transaction.
|
|
3666
3786
|
*/
|
|
3667
|
-
amountUnlocked: Array<
|
|
3787
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3668
3788
|
/**
|
|
3669
3789
|
* Assets created by outputs of this transaction.
|
|
3670
3790
|
*/
|
|
3671
|
-
amountCreated: Array<
|
|
3791
|
+
amountCreated: Array<AssetAmount>;
|
|
3672
3792
|
/**
|
|
3673
3793
|
* Source chain for an atomic transaction.
|
|
3674
3794
|
*/
|
|
@@ -3678,7 +3798,7 @@ type XChainLinearTransaction = {
|
|
|
3678
3798
|
*/
|
|
3679
3799
|
destinationChain?: string;
|
|
3680
3800
|
/**
|
|
3681
|
-
*
|
|
3801
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3682
3802
|
*/
|
|
3683
3803
|
assetCreated?: XChainAssetDetails;
|
|
3684
3804
|
/**
|
|
@@ -3728,9 +3848,6 @@ type XChainNonLinearTransaction = {
|
|
|
3728
3848
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3729
3849
|
*/
|
|
3730
3850
|
timestamp: number;
|
|
3731
|
-
/**
|
|
3732
|
-
* Type of transaction.
|
|
3733
|
-
*/
|
|
3734
3851
|
txType: XChainTransactionType;
|
|
3735
3852
|
/**
|
|
3736
3853
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3741,11 +3858,11 @@ type XChainNonLinearTransaction = {
|
|
|
3741
3858
|
/**
|
|
3742
3859
|
* Assets unlocked by inputs of this transaction.
|
|
3743
3860
|
*/
|
|
3744
|
-
amountUnlocked: Array<
|
|
3861
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3745
3862
|
/**
|
|
3746
3863
|
* Assets created by outputs of this transaction.
|
|
3747
3864
|
*/
|
|
3748
|
-
amountCreated: Array<
|
|
3865
|
+
amountCreated: Array<AssetAmount>;
|
|
3749
3866
|
/**
|
|
3750
3867
|
* Source chain for an atomic transaction.
|
|
3751
3868
|
*/
|
|
@@ -3755,7 +3872,7 @@ type XChainNonLinearTransaction = {
|
|
|
3755
3872
|
*/
|
|
3756
3873
|
destinationChain?: string;
|
|
3757
3874
|
/**
|
|
3758
|
-
*
|
|
3875
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3759
3876
|
*/
|
|
3760
3877
|
assetCreated?: XChainAssetDetails;
|
|
3761
3878
|
/**
|
|
@@ -3801,8 +3918,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3801
3918
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3802
3919
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3803
3920
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3804
|
-
UNKNOWN = "UNKNOWN",
|
|
3805
3921
|
BASE_TX = "BaseTx",
|
|
3922
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3923
|
+
UNKNOWN = "UNKNOWN",
|
|
3806
3924
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3807
3925
|
OPERATION_TX = "OperationTx"
|
|
3808
3926
|
}
|
|
@@ -3834,13 +3952,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3834
3952
|
* List latest transactions
|
|
3835
3953
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3836
3954
|
*
|
|
3837
|
-
* Transactions are filterable by addresses.
|
|
3955
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3838
3956
|
*
|
|
3839
3957
|
* 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.
|
|
3840
3958
|
* @returns any
|
|
3841
3959
|
* @throws ApiError
|
|
3842
3960
|
*/
|
|
3843
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3961
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3844
3962
|
/**
|
|
3845
3963
|
* A primary network blockchain id or alias.
|
|
3846
3964
|
*/
|
|
@@ -3865,14 +3983,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3865
3983
|
* Query param for retrieving items before a specific timestamp.
|
|
3866
3984
|
*/
|
|
3867
3985
|
endTimestamp?: number;
|
|
3868
|
-
/**
|
|
3869
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3870
|
-
*/
|
|
3871
|
-
pageSize?: number;
|
|
3872
3986
|
/**
|
|
3873
3987
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3874
3988
|
*/
|
|
3875
3989
|
pageToken?: string;
|
|
3990
|
+
/**
|
|
3991
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3992
|
+
*/
|
|
3993
|
+
pageSize?: number;
|
|
3876
3994
|
/**
|
|
3877
3995
|
* 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.
|
|
3878
3996
|
*/
|
|
@@ -3884,7 +4002,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3884
4002
|
* @returns ListPChainTransactionsResponse
|
|
3885
4003
|
* @throws ApiError
|
|
3886
4004
|
*/
|
|
3887
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
4005
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3888
4006
|
/**
|
|
3889
4007
|
* A primary network blockchain id or alias.
|
|
3890
4008
|
*/
|
|
@@ -3909,14 +4027,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3909
4027
|
* Query param for retrieving items before a specific timestamp.
|
|
3910
4028
|
*/
|
|
3911
4029
|
endTimestamp?: number;
|
|
3912
|
-
/**
|
|
3913
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3914
|
-
*/
|
|
3915
|
-
pageSize?: number;
|
|
3916
4030
|
/**
|
|
3917
4031
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3918
4032
|
*/
|
|
3919
4033
|
pageToken?: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4036
|
+
*/
|
|
4037
|
+
pageSize?: number;
|
|
3920
4038
|
/**
|
|
3921
4039
|
* 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.
|
|
3922
4040
|
*/
|
|
@@ -3928,7 +4046,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3928
4046
|
* @returns ListXChainTransactionsResponse
|
|
3929
4047
|
* @throws ApiError
|
|
3930
4048
|
*/
|
|
3931
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4049
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3932
4050
|
/**
|
|
3933
4051
|
* A primary network blockchain id or alias.
|
|
3934
4052
|
*/
|
|
@@ -3953,14 +4071,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3953
4071
|
* Query param for retrieving items before a specific timestamp.
|
|
3954
4072
|
*/
|
|
3955
4073
|
endTimestamp?: number;
|
|
3956
|
-
/**
|
|
3957
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3958
|
-
*/
|
|
3959
|
-
pageSize?: number;
|
|
3960
4074
|
/**
|
|
3961
4075
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3962
4076
|
*/
|
|
3963
4077
|
pageToken?: string;
|
|
4078
|
+
/**
|
|
4079
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4080
|
+
*/
|
|
4081
|
+
pageSize?: number;
|
|
3964
4082
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3965
4083
|
}
|
|
3966
4084
|
|
|
@@ -3991,7 +4109,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3991
4109
|
* @returns any
|
|
3992
4110
|
* @throws ApiError
|
|
3993
4111
|
*/
|
|
3994
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4112
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3995
4113
|
/**
|
|
3996
4114
|
* A primary network blockchain id or alias.
|
|
3997
4115
|
*/
|
|
@@ -4004,14 +4122,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4004
4122
|
* 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".
|
|
4005
4123
|
*/
|
|
4006
4124
|
addresses?: string;
|
|
4007
|
-
/**
|
|
4008
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4009
|
-
*/
|
|
4010
|
-
pageSize?: number;
|
|
4011
4125
|
/**
|
|
4012
4126
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4013
4127
|
*/
|
|
4014
4128
|
pageToken?: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4131
|
+
*/
|
|
4132
|
+
pageSize?: number;
|
|
4015
4133
|
/**
|
|
4016
4134
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4017
4135
|
*/
|
|
@@ -4056,7 +4174,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4056
4174
|
* @returns ListXChainVerticesResponse
|
|
4057
4175
|
* @throws ApiError
|
|
4058
4176
|
*/
|
|
4059
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4177
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4060
4178
|
/**
|
|
4061
4179
|
* A primary network blockchain id or alias.
|
|
4062
4180
|
*/
|
|
@@ -4065,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4065
4183
|
* Either mainnet or a testnet.
|
|
4066
4184
|
*/
|
|
4067
4185
|
network: Network;
|
|
4068
|
-
/**
|
|
4069
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4070
|
-
*/
|
|
4071
|
-
pageSize?: number;
|
|
4072
4186
|
/**
|
|
4073
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4074
4188
|
*/
|
|
4075
4189
|
pageToken?: string;
|
|
4190
|
+
/**
|
|
4191
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4192
|
+
*/
|
|
4193
|
+
pageSize?: number;
|
|
4076
4194
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4077
4195
|
/**
|
|
4078
4196
|
* Get vertex
|
|
@@ -4100,7 +4218,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4100
4218
|
* @returns ListXChainVerticesResponse
|
|
4101
4219
|
* @throws ApiError
|
|
4102
4220
|
*/
|
|
4103
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4221
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4104
4222
|
/**
|
|
4105
4223
|
* The height of a vertex.
|
|
4106
4224
|
*/
|
|
@@ -4113,19 +4231,195 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4113
4231
|
* Either mainnet or a testnet.
|
|
4114
4232
|
*/
|
|
4115
4233
|
network: Network;
|
|
4234
|
+
/**
|
|
4235
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4236
|
+
*/
|
|
4237
|
+
pageToken?: string;
|
|
4116
4238
|
/**
|
|
4117
4239
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4118
4240
|
*/
|
|
4119
4241
|
pageSize?: number;
|
|
4242
|
+
/**
|
|
4243
|
+
* 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.
|
|
4244
|
+
*/
|
|
4245
|
+
sortOrder?: SortOrder;
|
|
4246
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
type TeleporterDestinationTransaction = {
|
|
4250
|
+
txHash: string;
|
|
4251
|
+
timestamp: number;
|
|
4252
|
+
gasSpent: string;
|
|
4253
|
+
rewardRedeemer: string;
|
|
4254
|
+
delivererAddress: string;
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
type TeleporterReceipt = {
|
|
4258
|
+
receivedMessageNonce: string;
|
|
4259
|
+
relayerRewardAddress: string;
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
type TeleporterRewardDetails = {
|
|
4263
|
+
/**
|
|
4264
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4265
|
+
*/
|
|
4266
|
+
address: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* The contract name.
|
|
4269
|
+
*/
|
|
4270
|
+
name: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* The contract symbol.
|
|
4273
|
+
*/
|
|
4274
|
+
symbol: string;
|
|
4275
|
+
/**
|
|
4276
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4277
|
+
*/
|
|
4278
|
+
decimals: number;
|
|
4279
|
+
/**
|
|
4280
|
+
* The logo uri for the address.
|
|
4281
|
+
*/
|
|
4282
|
+
logoUri?: string;
|
|
4283
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4284
|
+
/**
|
|
4285
|
+
* The token price, if available.
|
|
4286
|
+
*/
|
|
4287
|
+
price?: Money;
|
|
4288
|
+
value: string;
|
|
4289
|
+
};
|
|
4290
|
+
declare namespace TeleporterRewardDetails {
|
|
4291
|
+
enum ercType {
|
|
4292
|
+
ERC_20 = "ERC-20"
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4297
|
+
messageId: string;
|
|
4298
|
+
teleporterContractAddress: string;
|
|
4299
|
+
sourceBlockchainId: string;
|
|
4300
|
+
destinationBlockchainId: string;
|
|
4301
|
+
messageNonce: string;
|
|
4302
|
+
from: string;
|
|
4303
|
+
to: string;
|
|
4304
|
+
data?: string;
|
|
4305
|
+
messageExecuted: boolean;
|
|
4306
|
+
receipts: Array<TeleporterReceipt>;
|
|
4307
|
+
receiptDelivered: boolean;
|
|
4308
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4309
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4310
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4311
|
+
};
|
|
4312
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4313
|
+
enum status {
|
|
4314
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
type TeleporterSourceTransaction = {
|
|
4319
|
+
txHash: string;
|
|
4320
|
+
timestamp: number;
|
|
4321
|
+
gasSpent: string;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
type DeliveredTeleporterMessage = {
|
|
4325
|
+
messageId: string;
|
|
4326
|
+
teleporterContractAddress: string;
|
|
4327
|
+
sourceBlockchainId: string;
|
|
4328
|
+
destinationBlockchainId: string;
|
|
4329
|
+
messageNonce: string;
|
|
4330
|
+
from: string;
|
|
4331
|
+
to: string;
|
|
4332
|
+
data?: string;
|
|
4333
|
+
messageExecuted: boolean;
|
|
4334
|
+
receipts: Array<TeleporterReceipt>;
|
|
4335
|
+
receiptDelivered: boolean;
|
|
4336
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4337
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4338
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4339
|
+
status: DeliveredTeleporterMessage.status;
|
|
4340
|
+
};
|
|
4341
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4342
|
+
enum status {
|
|
4343
|
+
DELIVERED = "delivered"
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
type NextPageToken = {
|
|
4348
|
+
/**
|
|
4349
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4350
|
+
*/
|
|
4351
|
+
nextPageToken?: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type PendingTeleporterMessage = {
|
|
4355
|
+
messageId: string;
|
|
4356
|
+
teleporterContractAddress: string;
|
|
4357
|
+
sourceBlockchainId: string;
|
|
4358
|
+
destinationBlockchainId: string;
|
|
4359
|
+
messageNonce: string;
|
|
4360
|
+
from: string;
|
|
4361
|
+
to: string;
|
|
4362
|
+
data?: string;
|
|
4363
|
+
messageExecuted: boolean;
|
|
4364
|
+
receipts: Array<TeleporterReceipt>;
|
|
4365
|
+
receiptDelivered: boolean;
|
|
4366
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4367
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4368
|
+
status: PendingTeleporterMessage.status;
|
|
4369
|
+
};
|
|
4370
|
+
declare namespace PendingTeleporterMessage {
|
|
4371
|
+
enum status {
|
|
4372
|
+
PENDING = "pending"
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
declare class TeleporterService {
|
|
4377
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4378
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4379
|
+
/**
|
|
4380
|
+
* Get a teleporter message
|
|
4381
|
+
* Gets a teleporter message by message ID.
|
|
4382
|
+
* @returns any
|
|
4383
|
+
* @throws ApiError
|
|
4384
|
+
*/
|
|
4385
|
+
getTeleporterMessage({ messageId, }: {
|
|
4386
|
+
/**
|
|
4387
|
+
* The message ID of the teleporter message.
|
|
4388
|
+
*/
|
|
4389
|
+
messageId: string;
|
|
4390
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4391
|
+
/**
|
|
4392
|
+
* List teleporter messages
|
|
4393
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4394
|
+
* @returns any
|
|
4395
|
+
* @throws ApiError
|
|
4396
|
+
*/
|
|
4397
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4120
4398
|
/**
|
|
4121
4399
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4122
4400
|
*/
|
|
4123
4401
|
pageToken?: string;
|
|
4124
4402
|
/**
|
|
4125
|
-
* The
|
|
4403
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4126
4404
|
*/
|
|
4127
|
-
|
|
4128
|
-
|
|
4405
|
+
pageSize?: number;
|
|
4406
|
+
/**
|
|
4407
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4408
|
+
*/
|
|
4409
|
+
sourceBlockchainId?: string;
|
|
4410
|
+
/**
|
|
4411
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4412
|
+
*/
|
|
4413
|
+
destinationBlockchainId?: string;
|
|
4414
|
+
/**
|
|
4415
|
+
* The address of the recipient of the teleporter message.
|
|
4416
|
+
*/
|
|
4417
|
+
to?: string;
|
|
4418
|
+
/**
|
|
4419
|
+
* The address of the sender of the teleporter message.
|
|
4420
|
+
*/
|
|
4421
|
+
from?: string;
|
|
4422
|
+
}): CancelablePromise<NextPageToken>;
|
|
4129
4423
|
}
|
|
4130
4424
|
|
|
4131
4425
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4146,6 +4440,7 @@ declare class Glacier {
|
|
|
4146
4440
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4147
4441
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4148
4442
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4443
|
+
readonly teleporter: TeleporterService;
|
|
4149
4444
|
readonly request: BaseHttpRequest;
|
|
4150
4445
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4151
4446
|
}
|
|
@@ -4167,4 +4462,4 @@ declare class ApiError extends Error {
|
|
|
4167
4462
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4168
4463
|
}
|
|
4169
4464
|
|
|
4170
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4465
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|