@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.dae32a1.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 +757 -430
- package/dist/index.js +294 -148
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- 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 +1 -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 +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- 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 +8 -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 +12 -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 +10 -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 +0 -53
- package/esm/generated/services/DefaultService.js +0 -42
- 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 +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- 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 +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -32
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- 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/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +21 -2
- package/esm/index.js +12 -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
|
@@ -60,60 +60,6 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
type AddressActivityMetadata = {
|
|
64
|
-
/**
|
|
65
|
-
* Ethereum address for the address_activity event type
|
|
66
|
-
*/
|
|
67
|
-
address: string;
|
|
68
|
-
topic0?: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
declare enum EventType {
|
|
72
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare enum WebhookStatusType {
|
|
76
|
-
ACTIVE = "active",
|
|
77
|
-
INACTIVE = "inactive"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type WebhookResponse = {
|
|
81
|
-
id: string;
|
|
82
|
-
eventType: EventType;
|
|
83
|
-
metadata: AddressActivityMetadata;
|
|
84
|
-
url: string;
|
|
85
|
-
chainId: string;
|
|
86
|
-
status: WebhookStatusType;
|
|
87
|
-
createdAt: number;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
type ListWebhooksResponse = {
|
|
91
|
-
/**
|
|
92
|
-
* 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.
|
|
93
|
-
*/
|
|
94
|
-
nextPageToken?: string;
|
|
95
|
-
webhooks: Array<WebhookResponse>;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
type RegisterWebhookRequest = {
|
|
99
|
-
url: string;
|
|
100
|
-
chainId: string;
|
|
101
|
-
/**
|
|
102
|
-
* The type of event for the webhook
|
|
103
|
-
*/
|
|
104
|
-
eventType: EventType;
|
|
105
|
-
metadata: AddressActivityMetadata;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
type SharedSecretsResponse = {
|
|
109
|
-
secret: string;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
declare enum WebhookStatus {
|
|
113
|
-
ACTIVE = "active",
|
|
114
|
-
INACTIVE = "inactive"
|
|
115
|
-
}
|
|
116
|
-
|
|
117
63
|
declare class DefaultService {
|
|
118
64
|
readonly httpRequest: BaseHttpRequest;
|
|
119
65
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -122,56 +68,11 @@ declare class DefaultService {
|
|
|
122
68
|
* @throws ApiError
|
|
123
69
|
*/
|
|
124
70
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
125
|
-
/**
|
|
126
|
-
* Register a webhook
|
|
127
|
-
* Registers a new webhook.
|
|
128
|
-
* @returns WebhookResponse
|
|
129
|
-
* @throws ApiError
|
|
130
|
-
*/
|
|
131
|
-
registerWebhook({ requestBody, }: {
|
|
132
|
-
requestBody: RegisterWebhookRequest;
|
|
133
|
-
}): CancelablePromise<WebhookResponse>;
|
|
134
|
-
/**
|
|
135
|
-
* List webhooks
|
|
136
|
-
* Lists webhooks for the user.
|
|
137
|
-
* @returns ListWebhooksResponse
|
|
138
|
-
* @throws ApiError
|
|
139
|
-
*/
|
|
140
|
-
listWebhooks({ pageSize, pageToken, status, }: {
|
|
141
|
-
/**
|
|
142
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
143
|
-
*/
|
|
144
|
-
pageSize?: number;
|
|
145
|
-
/**
|
|
146
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
147
|
-
*/
|
|
148
|
-
pageToken?: string;
|
|
149
|
-
/**
|
|
150
|
-
* 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.
|
|
151
|
-
*/
|
|
152
|
-
status?: WebhookStatus;
|
|
153
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
154
|
-
/**
|
|
155
|
-
* Deactivate a webhook
|
|
156
|
-
* Deactivates a webhook by ID.
|
|
157
|
-
* @returns WebhookResponse
|
|
158
|
-
* @throws ApiError
|
|
159
|
-
*/
|
|
160
|
-
deactivateWebhook({ id, }: {
|
|
161
|
-
/**
|
|
162
|
-
* The webhook identifier.
|
|
163
|
-
*/
|
|
164
|
-
id: string;
|
|
165
|
-
}): CancelablePromise<WebhookResponse>;
|
|
166
|
-
/**
|
|
167
|
-
* Generate a shared secret
|
|
168
|
-
* Generates a new shared secret.
|
|
169
|
-
* @returns SharedSecretsResponse
|
|
170
|
-
* @throws ApiError
|
|
171
|
-
*/
|
|
172
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
173
71
|
}
|
|
174
72
|
|
|
73
|
+
/**
|
|
74
|
+
* ISO 4217 currency code.
|
|
75
|
+
*/
|
|
175
76
|
declare enum CurrencyCode {
|
|
176
77
|
USD = "usd",
|
|
177
78
|
EUR = "eur",
|
|
@@ -190,9 +91,6 @@ declare enum CurrencyCode {
|
|
|
190
91
|
}
|
|
191
92
|
|
|
192
93
|
type Money = {
|
|
193
|
-
/**
|
|
194
|
-
* ISO 4217 currency code.
|
|
195
|
-
*/
|
|
196
94
|
currencyCode: CurrencyCode;
|
|
197
95
|
/**
|
|
198
96
|
* Monetary value in base 10 decimals.
|
|
@@ -242,6 +140,9 @@ type GetNativeBalanceResponse = {
|
|
|
242
140
|
nativeTokenBalance: NativeTokenBalance;
|
|
243
141
|
};
|
|
244
142
|
|
|
143
|
+
/**
|
|
144
|
+
* The metadata indexing status of the nft.
|
|
145
|
+
*/
|
|
245
146
|
declare enum NftTokenMetadataStatus {
|
|
246
147
|
UNKNOWN = "UNKNOWN",
|
|
247
148
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -257,9 +158,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
257
158
|
}
|
|
258
159
|
|
|
259
160
|
type Erc1155TokenMetadata = {
|
|
260
|
-
/**
|
|
261
|
-
* The metadata indexing status of the nft.
|
|
262
|
-
*/
|
|
263
161
|
indexStatus: NftTokenMetadataStatus;
|
|
264
162
|
metadataLastUpdatedTimestamp?: number;
|
|
265
163
|
name?: string;
|
|
@@ -298,9 +196,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
298
196
|
}
|
|
299
197
|
|
|
300
198
|
type Erc721TokenMetadata = {
|
|
301
|
-
/**
|
|
302
|
-
* The metadata indexing status of the nft.
|
|
303
|
-
*/
|
|
304
199
|
indexStatus: NftTokenMetadataStatus;
|
|
305
200
|
metadataLastUpdatedTimestamp?: number;
|
|
306
201
|
name?: string;
|
|
@@ -447,7 +342,7 @@ declare class EvmBalancesService {
|
|
|
447
342
|
*/
|
|
448
343
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
449
344
|
/**
|
|
450
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
345
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
451
346
|
*/
|
|
452
347
|
chainId: string;
|
|
453
348
|
/**
|
|
@@ -473,9 +368,9 @@ declare class EvmBalancesService {
|
|
|
473
368
|
* @returns ListErc20BalancesResponse
|
|
474
369
|
* @throws ApiError
|
|
475
370
|
*/
|
|
476
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
371
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
477
372
|
/**
|
|
478
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
373
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
479
374
|
*/
|
|
480
375
|
chainId: string;
|
|
481
376
|
/**
|
|
@@ -486,14 +381,14 @@ declare class EvmBalancesService {
|
|
|
486
381
|
* The block number, if not defined the block number will be the latest block.
|
|
487
382
|
*/
|
|
488
383
|
blockNumber?: string;
|
|
489
|
-
/**
|
|
490
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
491
|
-
*/
|
|
492
|
-
pageSize?: number;
|
|
493
384
|
/**
|
|
494
385
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
495
386
|
*/
|
|
496
387
|
pageToken?: string;
|
|
388
|
+
/**
|
|
389
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
390
|
+
*/
|
|
391
|
+
pageSize?: number;
|
|
497
392
|
/**
|
|
498
393
|
* A comma separated list of contract addresses to filter by.
|
|
499
394
|
*/
|
|
@@ -511,23 +406,23 @@ declare class EvmBalancesService {
|
|
|
511
406
|
* @returns ListErc721BalancesResponse
|
|
512
407
|
* @throws ApiError
|
|
513
408
|
*/
|
|
514
|
-
listErc721Balances({ chainId, address,
|
|
409
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
515
410
|
/**
|
|
516
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
411
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
517
412
|
*/
|
|
518
413
|
chainId: string;
|
|
519
414
|
/**
|
|
520
415
|
* A wallet address.
|
|
521
416
|
*/
|
|
522
417
|
address: string;
|
|
523
|
-
/**
|
|
524
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
525
|
-
*/
|
|
526
|
-
pageSize?: number;
|
|
527
418
|
/**
|
|
528
419
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
529
420
|
*/
|
|
530
421
|
pageToken?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
424
|
+
*/
|
|
425
|
+
pageSize?: number;
|
|
531
426
|
/**
|
|
532
427
|
* A contract addresses to filter by.
|
|
533
428
|
*/
|
|
@@ -543,9 +438,9 @@ declare class EvmBalancesService {
|
|
|
543
438
|
* @returns ListErc1155BalancesResponse
|
|
544
439
|
* @throws ApiError
|
|
545
440
|
*/
|
|
546
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
441
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
547
442
|
/**
|
|
548
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
443
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
549
444
|
*/
|
|
550
445
|
chainId: string;
|
|
551
446
|
/**
|
|
@@ -556,14 +451,14 @@ declare class EvmBalancesService {
|
|
|
556
451
|
* The block number, if not defined the block number will be the latest block.
|
|
557
452
|
*/
|
|
558
453
|
blockNumber?: string;
|
|
559
|
-
/**
|
|
560
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
561
|
-
*/
|
|
562
|
-
pageSize?: number;
|
|
563
454
|
/**
|
|
564
455
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
565
456
|
*/
|
|
566
457
|
pageToken?: string;
|
|
458
|
+
/**
|
|
459
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
460
|
+
*/
|
|
461
|
+
pageSize?: number;
|
|
567
462
|
/**
|
|
568
463
|
* A contract addresses to filter by.
|
|
569
464
|
*/
|
|
@@ -577,23 +472,23 @@ declare class EvmBalancesService {
|
|
|
577
472
|
* @returns ListCollectibleBalancesResponse
|
|
578
473
|
* @throws ApiError
|
|
579
474
|
*/
|
|
580
|
-
listCollectibleBalances({ chainId, address,
|
|
475
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
581
476
|
/**
|
|
582
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
477
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
583
478
|
*/
|
|
584
479
|
chainId: string;
|
|
585
480
|
/**
|
|
586
481
|
* A wallet address.
|
|
587
482
|
*/
|
|
588
483
|
address: string;
|
|
589
|
-
/**
|
|
590
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
591
|
-
*/
|
|
592
|
-
pageSize?: number;
|
|
593
484
|
/**
|
|
594
485
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
595
486
|
*/
|
|
596
487
|
pageToken?: string;
|
|
488
|
+
/**
|
|
489
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
490
|
+
*/
|
|
491
|
+
pageSize?: number;
|
|
597
492
|
/**
|
|
598
493
|
* A contract addresses to filter by.
|
|
599
494
|
*/
|
|
@@ -706,19 +601,19 @@ declare class EvmBlocksService {
|
|
|
706
601
|
* @returns ListEvmBlocksResponse
|
|
707
602
|
* @throws ApiError
|
|
708
603
|
*/
|
|
709
|
-
getLatestBlocks({ chainId,
|
|
604
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
710
605
|
/**
|
|
711
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
606
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
712
607
|
*/
|
|
713
608
|
chainId: string;
|
|
714
|
-
/**
|
|
715
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
716
|
-
*/
|
|
717
|
-
pageSize?: number;
|
|
718
609
|
/**
|
|
719
610
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
720
611
|
*/
|
|
721
612
|
pageToken?: string;
|
|
613
|
+
/**
|
|
614
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
615
|
+
*/
|
|
616
|
+
pageSize?: number;
|
|
722
617
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
723
618
|
/**
|
|
724
619
|
* Get block
|
|
@@ -728,7 +623,7 @@ declare class EvmBlocksService {
|
|
|
728
623
|
*/
|
|
729
624
|
getBlock({ chainId, blockId, }: {
|
|
730
625
|
/**
|
|
731
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
626
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
732
627
|
*/
|
|
733
628
|
chainId: string;
|
|
734
629
|
/**
|
|
@@ -738,6 +633,9 @@ declare class EvmBlocksService {
|
|
|
738
633
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
739
634
|
}
|
|
740
635
|
|
|
636
|
+
/**
|
|
637
|
+
* 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.
|
|
638
|
+
*/
|
|
741
639
|
declare enum ChainStatus {
|
|
742
640
|
OK = "OK",
|
|
743
641
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -775,9 +673,6 @@ declare enum VmName {
|
|
|
775
673
|
|
|
776
674
|
type GetChainResponse = {
|
|
777
675
|
chainId: string;
|
|
778
|
-
/**
|
|
779
|
-
* 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.
|
|
780
|
-
*/
|
|
781
676
|
status: ChainStatus;
|
|
782
677
|
chainName: string;
|
|
783
678
|
description: string;
|
|
@@ -793,13 +688,15 @@ type GetChainResponse = {
|
|
|
793
688
|
networkToken: NetworkToken;
|
|
794
689
|
chainLogoUri?: string;
|
|
795
690
|
private?: boolean;
|
|
691
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
796
692
|
};
|
|
797
693
|
|
|
694
|
+
declare enum GlacierApiFeature {
|
|
695
|
+
NFT_INDEXING = "nftIndexing"
|
|
696
|
+
}
|
|
697
|
+
|
|
798
698
|
type ChainInfo = {
|
|
799
699
|
chainId: string;
|
|
800
|
-
/**
|
|
801
|
-
* 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.
|
|
802
|
-
*/
|
|
803
700
|
status: ChainStatus;
|
|
804
701
|
chainName: string;
|
|
805
702
|
description: string;
|
|
@@ -815,6 +712,7 @@ type ChainInfo = {
|
|
|
815
712
|
networkToken: NetworkToken;
|
|
816
713
|
chainLogoUri?: string;
|
|
817
714
|
private?: boolean;
|
|
715
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
818
716
|
};
|
|
819
717
|
|
|
820
718
|
type ListChainsResponse = {
|
|
@@ -835,11 +733,15 @@ declare class EvmChainsService {
|
|
|
835
733
|
* @returns ListChainsResponse
|
|
836
734
|
* @throws ApiError
|
|
837
735
|
*/
|
|
838
|
-
supportedChains({ network, }: {
|
|
736
|
+
supportedChains({ network, feature, }: {
|
|
839
737
|
/**
|
|
840
738
|
* mainnet or testnet.
|
|
841
739
|
*/
|
|
842
740
|
network?: NetworkType;
|
|
741
|
+
/**
|
|
742
|
+
* Filter by feature.
|
|
743
|
+
*/
|
|
744
|
+
feature?: GlacierApiFeature;
|
|
843
745
|
}): CancelablePromise<ListChainsResponse>;
|
|
844
746
|
/**
|
|
845
747
|
* Get chain information
|
|
@@ -849,7 +751,7 @@ declare class EvmChainsService {
|
|
|
849
751
|
*/
|
|
850
752
|
getChainInfo({ chainId, }: {
|
|
851
753
|
/**
|
|
852
|
-
* 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.
|
|
853
755
|
*/
|
|
854
756
|
chainId: string;
|
|
855
757
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1144,7 +1046,7 @@ declare class EvmContractsService {
|
|
|
1144
1046
|
*/
|
|
1145
1047
|
getContractMetadata({ chainId, address, }: {
|
|
1146
1048
|
/**
|
|
1147
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1049
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1148
1050
|
*/
|
|
1149
1051
|
chainId: string;
|
|
1150
1052
|
/**
|
|
@@ -1160,7 +1062,7 @@ declare class EvmContractsService {
|
|
|
1160
1062
|
*/
|
|
1161
1063
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1162
1064
|
/**
|
|
1163
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1065
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1164
1066
|
*/
|
|
1165
1067
|
chainId: string;
|
|
1166
1068
|
/**
|
|
@@ -1294,6 +1196,9 @@ type Erc721TransferDetails = {
|
|
|
1294
1196
|
erc721Token: Erc721Token;
|
|
1295
1197
|
};
|
|
1296
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
* 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.
|
|
1201
|
+
*/
|
|
1297
1202
|
declare enum TransactionMethodType {
|
|
1298
1203
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1299
1204
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1301,9 +1206,6 @@ declare enum TransactionMethodType {
|
|
|
1301
1206
|
}
|
|
1302
1207
|
|
|
1303
1208
|
type Method = {
|
|
1304
|
-
/**
|
|
1305
|
-
* 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.
|
|
1306
|
-
*/
|
|
1307
1209
|
callType: TransactionMethodType;
|
|
1308
1210
|
/**
|
|
1309
1211
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1664,7 +1566,7 @@ type ListTransfersResponse = {
|
|
|
1664
1566
|
* 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.
|
|
1665
1567
|
*/
|
|
1666
1568
|
nextPageToken?: string;
|
|
1667
|
-
transfers:
|
|
1569
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1668
1570
|
};
|
|
1669
1571
|
|
|
1670
1572
|
declare enum SortOrder {
|
|
@@ -1688,7 +1590,7 @@ declare class EvmTransactionsService {
|
|
|
1688
1590
|
*/
|
|
1689
1591
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1690
1592
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1593
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1594
|
*/
|
|
1693
1595
|
chainId: string;
|
|
1694
1596
|
/**
|
|
@@ -1706,23 +1608,23 @@ declare class EvmTransactionsService {
|
|
|
1706
1608
|
* @returns ListContractsResponse
|
|
1707
1609
|
* @throws ApiError
|
|
1708
1610
|
*/
|
|
1709
|
-
listContractDeployments({ chainId, address,
|
|
1611
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1710
1612
|
/**
|
|
1711
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1613
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1712
1614
|
*/
|
|
1713
1615
|
chainId: string;
|
|
1714
1616
|
/**
|
|
1715
1617
|
* A wallet address.
|
|
1716
1618
|
*/
|
|
1717
1619
|
address: string;
|
|
1718
|
-
/**
|
|
1719
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1720
|
-
*/
|
|
1721
|
-
pageSize?: number;
|
|
1722
1620
|
/**
|
|
1723
1621
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1724
1622
|
*/
|
|
1725
1623
|
pageToken?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1626
|
+
*/
|
|
1627
|
+
pageSize?: number;
|
|
1726
1628
|
}): CancelablePromise<ListContractsResponse>;
|
|
1727
1629
|
/**
|
|
1728
1630
|
* List ERC transfers
|
|
@@ -1730,9 +1632,9 @@ declare class EvmTransactionsService {
|
|
|
1730
1632
|
* @returns ListTransfersResponse
|
|
1731
1633
|
* @throws ApiError
|
|
1732
1634
|
*/
|
|
1733
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1635
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1734
1636
|
/**
|
|
1735
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1637
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1736
1638
|
*/
|
|
1737
1639
|
chainId: string;
|
|
1738
1640
|
/**
|
|
@@ -1747,14 +1649,14 @@ declare class EvmTransactionsService {
|
|
|
1747
1649
|
* 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.
|
|
1748
1650
|
*/
|
|
1749
1651
|
endBlock?: number;
|
|
1750
|
-
/**
|
|
1751
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1752
|
-
*/
|
|
1753
|
-
pageSize?: number;
|
|
1754
1652
|
/**
|
|
1755
1653
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1756
1654
|
*/
|
|
1757
1655
|
pageToken?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1658
|
+
*/
|
|
1659
|
+
pageSize?: number;
|
|
1758
1660
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1759
1661
|
/**
|
|
1760
1662
|
* List transactions
|
|
@@ -1764,23 +1666,23 @@ declare class EvmTransactionsService {
|
|
|
1764
1666
|
* @returns ListTransactionDetailsResponse
|
|
1765
1667
|
* @throws ApiError
|
|
1766
1668
|
*/
|
|
1767
|
-
listTransactions({ chainId, address,
|
|
1669
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1768
1670
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1671
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1672
|
*/
|
|
1771
1673
|
chainId: string;
|
|
1772
1674
|
/**
|
|
1773
1675
|
* A wallet address.
|
|
1774
1676
|
*/
|
|
1775
1677
|
address: string;
|
|
1776
|
-
/**
|
|
1777
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1778
|
-
*/
|
|
1779
|
-
pageSize?: number;
|
|
1780
1678
|
/**
|
|
1781
1679
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1782
1680
|
*/
|
|
1783
1681
|
pageToken?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1684
|
+
*/
|
|
1685
|
+
pageSize?: number;
|
|
1784
1686
|
/**
|
|
1785
1687
|
* 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.
|
|
1786
1688
|
*/
|
|
@@ -1800,9 +1702,9 @@ declare class EvmTransactionsService {
|
|
|
1800
1702
|
* @returns ListNativeTransactionsResponse
|
|
1801
1703
|
* @throws ApiError
|
|
1802
1704
|
*/
|
|
1803
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1705
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1804
1706
|
/**
|
|
1805
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1707
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1806
1708
|
*/
|
|
1807
1709
|
chainId: string;
|
|
1808
1710
|
/**
|
|
@@ -1817,14 +1719,14 @@ declare class EvmTransactionsService {
|
|
|
1817
1719
|
* 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.
|
|
1818
1720
|
*/
|
|
1819
1721
|
endBlock?: number;
|
|
1820
|
-
/**
|
|
1821
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1822
|
-
*/
|
|
1823
|
-
pageSize?: number;
|
|
1824
1722
|
/**
|
|
1825
1723
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1826
1724
|
*/
|
|
1827
1725
|
pageToken?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1728
|
+
*/
|
|
1729
|
+
pageSize?: number;
|
|
1828
1730
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1829
1731
|
/**
|
|
1830
1732
|
* List ERC-20 transfers
|
|
@@ -1832,9 +1734,9 @@ declare class EvmTransactionsService {
|
|
|
1832
1734
|
* @returns ListErc20TransactionsResponse
|
|
1833
1735
|
* @throws ApiError
|
|
1834
1736
|
*/
|
|
1835
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1737
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1836
1738
|
/**
|
|
1837
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1838
1740
|
*/
|
|
1839
1741
|
chainId: string;
|
|
1840
1742
|
/**
|
|
@@ -1849,14 +1751,14 @@ declare class EvmTransactionsService {
|
|
|
1849
1751
|
* 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.
|
|
1850
1752
|
*/
|
|
1851
1753
|
endBlock?: number;
|
|
1852
|
-
/**
|
|
1853
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1854
|
-
*/
|
|
1855
|
-
pageSize?: number;
|
|
1856
1754
|
/**
|
|
1857
1755
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1858
1756
|
*/
|
|
1859
1757
|
pageToken?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1760
|
+
*/
|
|
1761
|
+
pageSize?: number;
|
|
1860
1762
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1861
1763
|
/**
|
|
1862
1764
|
* List ERC-721 transfers
|
|
@@ -1864,9 +1766,9 @@ declare class EvmTransactionsService {
|
|
|
1864
1766
|
* @returns ListErc721TransactionsResponse
|
|
1865
1767
|
* @throws ApiError
|
|
1866
1768
|
*/
|
|
1867
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1769
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1868
1770
|
/**
|
|
1869
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1771
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1870
1772
|
*/
|
|
1871
1773
|
chainId: string;
|
|
1872
1774
|
/**
|
|
@@ -1881,14 +1783,14 @@ declare class EvmTransactionsService {
|
|
|
1881
1783
|
* 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.
|
|
1882
1784
|
*/
|
|
1883
1785
|
endBlock?: number;
|
|
1884
|
-
/**
|
|
1885
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1886
|
-
*/
|
|
1887
|
-
pageSize?: number;
|
|
1888
1786
|
/**
|
|
1889
1787
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1890
1788
|
*/
|
|
1891
1789
|
pageToken?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1792
|
+
*/
|
|
1793
|
+
pageSize?: number;
|
|
1892
1794
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1893
1795
|
/**
|
|
1894
1796
|
* List ERC-1155 transfers
|
|
@@ -1896,9 +1798,9 @@ declare class EvmTransactionsService {
|
|
|
1896
1798
|
* @returns ListErc1155TransactionsResponse
|
|
1897
1799
|
* @throws ApiError
|
|
1898
1800
|
*/
|
|
1899
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1801
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1900
1802
|
/**
|
|
1901
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1803
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1902
1804
|
*/
|
|
1903
1805
|
chainId: string;
|
|
1904
1806
|
/**
|
|
@@ -1913,14 +1815,14 @@ declare class EvmTransactionsService {
|
|
|
1913
1815
|
* 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.
|
|
1914
1816
|
*/
|
|
1915
1817
|
endBlock?: number;
|
|
1916
|
-
/**
|
|
1917
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1918
|
-
*/
|
|
1919
|
-
pageSize?: number;
|
|
1920
1818
|
/**
|
|
1921
1819
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1922
1820
|
*/
|
|
1923
1821
|
pageToken?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1824
|
+
*/
|
|
1825
|
+
pageSize?: number;
|
|
1924
1826
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1925
1827
|
/**
|
|
1926
1828
|
* List internal transactions
|
|
@@ -1930,9 +1832,9 @@ declare class EvmTransactionsService {
|
|
|
1930
1832
|
* @returns ListInternalTransactionsResponse
|
|
1931
1833
|
* @throws ApiError
|
|
1932
1834
|
*/
|
|
1933
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1835
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1934
1836
|
/**
|
|
1935
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1837
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1936
1838
|
*/
|
|
1937
1839
|
chainId: string;
|
|
1938
1840
|
/**
|
|
@@ -1947,14 +1849,14 @@ declare class EvmTransactionsService {
|
|
|
1947
1849
|
* 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.
|
|
1948
1850
|
*/
|
|
1949
1851
|
endBlock?: number;
|
|
1950
|
-
/**
|
|
1951
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1952
|
-
*/
|
|
1953
|
-
pageSize?: number;
|
|
1954
1852
|
/**
|
|
1955
1853
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1956
1854
|
*/
|
|
1957
1855
|
pageToken?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1858
|
+
*/
|
|
1859
|
+
pageSize?: number;
|
|
1958
1860
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1959
1861
|
/**
|
|
1960
1862
|
* Get transaction
|
|
@@ -1964,7 +1866,7 @@ declare class EvmTransactionsService {
|
|
|
1964
1866
|
*/
|
|
1965
1867
|
getTransaction({ chainId, txHash, }: {
|
|
1966
1868
|
/**
|
|
1967
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1869
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1968
1870
|
*/
|
|
1969
1871
|
chainId: string;
|
|
1970
1872
|
/**
|
|
@@ -1980,7 +1882,7 @@ declare class EvmTransactionsService {
|
|
|
1980
1882
|
*/
|
|
1981
1883
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1982
1884
|
/**
|
|
1983
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1885
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1984
1886
|
*/
|
|
1985
1887
|
chainId: string;
|
|
1986
1888
|
/**
|
|
@@ -1994,19 +1896,19 @@ declare class EvmTransactionsService {
|
|
|
1994
1896
|
* @returns ListNativeTransactionsResponse
|
|
1995
1897
|
* @throws ApiError
|
|
1996
1898
|
*/
|
|
1997
|
-
listLatestTransactions({ chainId,
|
|
1899
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1998
1900
|
/**
|
|
1999
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2000
1902
|
*/
|
|
2001
1903
|
chainId: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2004
|
-
*/
|
|
2005
|
-
pageSize?: number;
|
|
2006
1904
|
/**
|
|
2007
1905
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2008
1906
|
*/
|
|
2009
1907
|
pageToken?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1910
|
+
*/
|
|
1911
|
+
pageSize?: number;
|
|
2010
1912
|
/**
|
|
2011
1913
|
* A status filter for listed transactions.
|
|
2012
1914
|
*/
|
|
@@ -2035,7 +1937,7 @@ type ListNftTokens = {
|
|
|
2035
1937
|
* 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.
|
|
2036
1938
|
*/
|
|
2037
1939
|
nextPageToken?: string;
|
|
2038
|
-
tokens:
|
|
1940
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2039
1941
|
};
|
|
2040
1942
|
|
|
2041
1943
|
declare class NfTsService {
|
|
@@ -2049,7 +1951,7 @@ declare class NfTsService {
|
|
|
2049
1951
|
*/
|
|
2050
1952
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2051
1953
|
/**
|
|
2052
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1954
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2053
1955
|
*/
|
|
2054
1956
|
chainId: string;
|
|
2055
1957
|
/**
|
|
@@ -2067,23 +1969,23 @@ declare class NfTsService {
|
|
|
2067
1969
|
* @returns ListNftTokens
|
|
2068
1970
|
* @throws ApiError
|
|
2069
1971
|
*/
|
|
2070
|
-
listTokens({ chainId, address,
|
|
1972
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2071
1973
|
/**
|
|
2072
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1974
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2073
1975
|
*/
|
|
2074
1976
|
chainId: string;
|
|
2075
1977
|
/**
|
|
2076
1978
|
* Contract address on the relevant chain.
|
|
2077
1979
|
*/
|
|
2078
1980
|
address: string;
|
|
2079
|
-
/**
|
|
2080
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2081
|
-
*/
|
|
2082
|
-
pageSize?: number;
|
|
2083
1981
|
/**
|
|
2084
1982
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2085
1983
|
*/
|
|
2086
1984
|
pageToken?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1987
|
+
*/
|
|
1988
|
+
pageSize?: number;
|
|
2087
1989
|
}): CancelablePromise<ListNftTokens>;
|
|
2088
1990
|
/**
|
|
2089
1991
|
* Get token details
|
|
@@ -2093,7 +1995,7 @@ declare class NfTsService {
|
|
|
2093
1995
|
*/
|
|
2094
1996
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2095
1997
|
/**
|
|
2096
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1998
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2097
1999
|
*/
|
|
2098
2000
|
chainId: string;
|
|
2099
2001
|
/**
|
|
@@ -2112,8 +2014,12 @@ type EvmNetworkOptions = {
|
|
|
2112
2014
|
includeChains: Array<string>;
|
|
2113
2015
|
};
|
|
2114
2016
|
|
|
2017
|
+
declare enum EVMOperationType {
|
|
2018
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2115
2021
|
type CreateEvmTransactionExportRequest = {
|
|
2116
|
-
type:
|
|
2022
|
+
type: EVMOperationType;
|
|
2117
2023
|
firstDate: string;
|
|
2118
2024
|
lastDate: string;
|
|
2119
2025
|
/**
|
|
@@ -2126,10 +2032,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2126
2032
|
endDate: string;
|
|
2127
2033
|
options: EvmNetworkOptions;
|
|
2128
2034
|
};
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2035
|
+
|
|
2036
|
+
declare enum PrimaryNetworkOperationType {
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2039
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2133
2040
|
}
|
|
2134
2041
|
|
|
2135
2042
|
type PrimaryNetworkOptions = {
|
|
@@ -2139,7 +2046,7 @@ type PrimaryNetworkOptions = {
|
|
|
2139
2046
|
};
|
|
2140
2047
|
|
|
2141
2048
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2142
|
-
type:
|
|
2049
|
+
type: PrimaryNetworkOperationType;
|
|
2143
2050
|
firstDate: string;
|
|
2144
2051
|
lastDate: string;
|
|
2145
2052
|
/**
|
|
@@ -2152,11 +2059,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2152
2059
|
endDate: string;
|
|
2153
2060
|
options: PrimaryNetworkOptions;
|
|
2154
2061
|
};
|
|
2155
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2156
|
-
enum type {
|
|
2157
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
2062
|
|
|
2161
2063
|
declare enum OperationStatus {
|
|
2162
2064
|
RUNNING = "RUNNING",
|
|
@@ -2166,8 +2068,10 @@ declare enum OperationStatus {
|
|
|
2166
2068
|
}
|
|
2167
2069
|
|
|
2168
2070
|
declare enum OperationType {
|
|
2169
|
-
|
|
2170
|
-
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2073
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2074
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2171
2075
|
}
|
|
2172
2076
|
|
|
2173
2077
|
declare enum OperationStatusCode {
|
|
@@ -2359,13 +2263,44 @@ type BlockchainInfo = {
|
|
|
2359
2263
|
blockchainId: string;
|
|
2360
2264
|
};
|
|
2361
2265
|
|
|
2266
|
+
type SubnetOwnershipInfo = {
|
|
2267
|
+
/**
|
|
2268
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2269
|
+
*/
|
|
2270
|
+
locktime: number;
|
|
2271
|
+
/**
|
|
2272
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2273
|
+
*/
|
|
2274
|
+
threshold: number;
|
|
2275
|
+
/**
|
|
2276
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2277
|
+
*/
|
|
2278
|
+
addresses: Array<string>;
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2362
2281
|
type Subnet = {
|
|
2363
2282
|
createBlockTimestamp: number;
|
|
2364
2283
|
createBlockIndex: string;
|
|
2365
2284
|
subnetId: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2366
2289
|
ownerAddresses: Array<string>;
|
|
2367
|
-
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2294
|
+
threshold: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2297
|
+
* @deprecated
|
|
2298
|
+
*/
|
|
2368
2299
|
locktime: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Latest subnet owner details for this Subnet.
|
|
2302
|
+
*/
|
|
2303
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2369
2304
|
blockchains: Array<BlockchainInfo>;
|
|
2370
2305
|
};
|
|
2371
2306
|
|
|
@@ -2461,6 +2396,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2461
2396
|
}
|
|
2462
2397
|
}
|
|
2463
2398
|
|
|
2399
|
+
type RemovedValidatorDetails = {
|
|
2400
|
+
txHash: string;
|
|
2401
|
+
nodeId: string;
|
|
2402
|
+
subnetId: string;
|
|
2403
|
+
amountStaked: string;
|
|
2404
|
+
delegationFee?: string;
|
|
2405
|
+
startTimestamp: number;
|
|
2406
|
+
endTimestamp: number;
|
|
2407
|
+
removeTxHash: string;
|
|
2408
|
+
removeTimestamp: number;
|
|
2409
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2410
|
+
};
|
|
2411
|
+
declare namespace RemovedValidatorDetails {
|
|
2412
|
+
enum validationStatus {
|
|
2413
|
+
REMOVED = "removed"
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2464
2417
|
type ListValidatorDetailsResponse = {
|
|
2465
2418
|
/**
|
|
2466
2419
|
* 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.
|
|
@@ -2469,7 +2422,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2469
2422
|
/**
|
|
2470
2423
|
* The list of validator Details.
|
|
2471
2424
|
*/
|
|
2472
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2425
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2473
2426
|
};
|
|
2474
2427
|
|
|
2475
2428
|
declare enum Network {
|
|
@@ -2480,7 +2433,24 @@ declare enum Network {
|
|
|
2480
2433
|
declare enum ValidationStatusType {
|
|
2481
2434
|
COMPLETED = "completed",
|
|
2482
2435
|
ACTIVE = "active",
|
|
2483
|
-
PENDING = "pending"
|
|
2436
|
+
PENDING = "pending",
|
|
2437
|
+
REMOVED = "removed"
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2442
|
+
*/
|
|
2443
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2444
|
+
FIXED = "fixed",
|
|
2445
|
+
VARIABLE = "variable"
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2450
|
+
*/
|
|
2451
|
+
declare enum PrimaryNetworkAssetType {
|
|
2452
|
+
SECP256K1 = "secp256k1",
|
|
2453
|
+
NFT = "nft"
|
|
2484
2454
|
}
|
|
2485
2455
|
|
|
2486
2456
|
type XChainAssetDetails = {
|
|
@@ -2500,18 +2470,12 @@ type XChainAssetDetails = {
|
|
|
2500
2470
|
* Denomination of this asset to represent fungibility.
|
|
2501
2471
|
*/
|
|
2502
2472
|
denomination: number;
|
|
2503
|
-
|
|
2504
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2505
|
-
*/
|
|
2506
|
-
type: string;
|
|
2473
|
+
type: PrimaryNetworkAssetType;
|
|
2507
2474
|
/**
|
|
2508
2475
|
* Timestamp in seconds this asset was created on.
|
|
2509
2476
|
*/
|
|
2510
2477
|
createdAtTimestamp: number;
|
|
2511
|
-
|
|
2512
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2513
|
-
*/
|
|
2514
|
-
cap: string;
|
|
2478
|
+
cap: PrimaryNetworkAssetCap;
|
|
2515
2479
|
};
|
|
2516
2480
|
|
|
2517
2481
|
declare enum XChainId {
|
|
@@ -2577,19 +2541,19 @@ declare class PrimaryNetworkService {
|
|
|
2577
2541
|
* @returns ListBlockchainsResponse
|
|
2578
2542
|
* @throws ApiError
|
|
2579
2543
|
*/
|
|
2580
|
-
listBlockchains({ network,
|
|
2544
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2581
2545
|
/**
|
|
2582
2546
|
* Either mainnet or a testnet.
|
|
2583
2547
|
*/
|
|
2584
2548
|
network: Network;
|
|
2585
|
-
/**
|
|
2586
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2587
|
-
*/
|
|
2588
|
-
pageSize?: number;
|
|
2589
2549
|
/**
|
|
2590
2550
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2591
2551
|
*/
|
|
2592
2552
|
pageToken?: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2555
|
+
*/
|
|
2556
|
+
pageSize?: number;
|
|
2593
2557
|
/**
|
|
2594
2558
|
* 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.
|
|
2595
2559
|
*/
|
|
@@ -2601,19 +2565,19 @@ declare class PrimaryNetworkService {
|
|
|
2601
2565
|
* @returns ListSubnetsResponse
|
|
2602
2566
|
* @throws ApiError
|
|
2603
2567
|
*/
|
|
2604
|
-
listSubnets({ network,
|
|
2568
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2605
2569
|
/**
|
|
2606
2570
|
* Either mainnet or a testnet.
|
|
2607
2571
|
*/
|
|
2608
2572
|
network: Network;
|
|
2609
|
-
/**
|
|
2610
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2611
|
-
*/
|
|
2612
|
-
pageSize?: number;
|
|
2613
2573
|
/**
|
|
2614
2574
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2615
2575
|
*/
|
|
2616
2576
|
pageToken?: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2579
|
+
*/
|
|
2580
|
+
pageSize?: number;
|
|
2617
2581
|
/**
|
|
2618
2582
|
* 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.
|
|
2619
2583
|
*/
|
|
@@ -2625,19 +2589,19 @@ declare class PrimaryNetworkService {
|
|
|
2625
2589
|
* @returns ListValidatorDetailsResponse
|
|
2626
2590
|
* @throws ApiError
|
|
2627
2591
|
*/
|
|
2628
|
-
listValidators({ network,
|
|
2592
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2629
2593
|
/**
|
|
2630
2594
|
* Either mainnet or a testnet.
|
|
2631
2595
|
*/
|
|
2632
2596
|
network: Network;
|
|
2633
|
-
/**
|
|
2634
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2635
|
-
*/
|
|
2636
|
-
pageSize?: number;
|
|
2637
2597
|
/**
|
|
2638
2598
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2639
2599
|
*/
|
|
2640
2600
|
pageToken?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2603
|
+
*/
|
|
2604
|
+
pageSize?: number;
|
|
2641
2605
|
/**
|
|
2642
2606
|
* A comma separated list of node ids to filter by.
|
|
2643
2607
|
*/
|
|
@@ -2653,31 +2617,31 @@ declare class PrimaryNetworkService {
|
|
|
2653
2617
|
/**
|
|
2654
2618
|
* 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
|
|
2655
2619
|
*/
|
|
2656
|
-
minDelegationCapacity?:
|
|
2620
|
+
minDelegationCapacity?: string;
|
|
2657
2621
|
/**
|
|
2658
2622
|
* 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.
|
|
2659
2623
|
*/
|
|
2660
|
-
maxDelegationCapacity?:
|
|
2624
|
+
maxDelegationCapacity?: string;
|
|
2661
2625
|
/**
|
|
2662
2626
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2663
2627
|
*/
|
|
2664
|
-
minTimeRemaining?:
|
|
2628
|
+
minTimeRemaining?: number;
|
|
2665
2629
|
/**
|
|
2666
2630
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2667
2631
|
*/
|
|
2668
|
-
maxTimeRemaining?:
|
|
2632
|
+
maxTimeRemaining?: number;
|
|
2669
2633
|
/**
|
|
2670
2634
|
* 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.
|
|
2671
2635
|
*/
|
|
2672
|
-
minFeePercentage?:
|
|
2636
|
+
minFeePercentage?: number;
|
|
2673
2637
|
/**
|
|
2674
2638
|
* 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.
|
|
2675
2639
|
*/
|
|
2676
|
-
maxFeePercentage?:
|
|
2640
|
+
maxFeePercentage?: number;
|
|
2677
2641
|
/**
|
|
2678
2642
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2679
2643
|
*/
|
|
2680
|
-
subnetId?:
|
|
2644
|
+
subnetId?: any;
|
|
2681
2645
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2682
2646
|
/**
|
|
2683
2647
|
* Get single validator details
|
|
@@ -2685,7 +2649,7 @@ declare class PrimaryNetworkService {
|
|
|
2685
2649
|
* @returns ListValidatorDetailsResponse
|
|
2686
2650
|
* @throws ApiError
|
|
2687
2651
|
*/
|
|
2688
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2652
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2689
2653
|
/**
|
|
2690
2654
|
* Either mainnet or a testnet.
|
|
2691
2655
|
*/
|
|
@@ -2694,14 +2658,14 @@ declare class PrimaryNetworkService {
|
|
|
2694
2658
|
* A primary network (P or X chain) nodeId.
|
|
2695
2659
|
*/
|
|
2696
2660
|
nodeId: string;
|
|
2697
|
-
/**
|
|
2698
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2699
|
-
*/
|
|
2700
|
-
pageSize?: number;
|
|
2701
2661
|
/**
|
|
2702
2662
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2703
2663
|
*/
|
|
2704
2664
|
pageToken?: string;
|
|
2665
|
+
/**
|
|
2666
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2667
|
+
*/
|
|
2668
|
+
pageSize?: number;
|
|
2705
2669
|
/**
|
|
2706
2670
|
* 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.
|
|
2707
2671
|
*/
|
|
@@ -2717,19 +2681,19 @@ declare class PrimaryNetworkService {
|
|
|
2717
2681
|
* @returns ListDelegatorDetailsResponse
|
|
2718
2682
|
* @throws ApiError
|
|
2719
2683
|
*/
|
|
2720
|
-
listDelegators({ network,
|
|
2684
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2721
2685
|
/**
|
|
2722
2686
|
* Either mainnet or a testnet.
|
|
2723
2687
|
*/
|
|
2724
2688
|
network: Network;
|
|
2725
|
-
/**
|
|
2726
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2727
|
-
*/
|
|
2728
|
-
pageSize?: number;
|
|
2729
2689
|
/**
|
|
2730
2690
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2731
2691
|
*/
|
|
2732
2692
|
pageToken?: string;
|
|
2693
|
+
/**
|
|
2694
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2695
|
+
*/
|
|
2696
|
+
pageSize?: number;
|
|
2733
2697
|
/**
|
|
2734
2698
|
* A comma separated list of reward addresses to filter by.
|
|
2735
2699
|
*/
|
|
@@ -2777,10 +2741,7 @@ type CChainSharedAssetBalance = {
|
|
|
2777
2741
|
* Denomination of this asset to represent fungibility.
|
|
2778
2742
|
*/
|
|
2779
2743
|
denomination: number;
|
|
2780
|
-
|
|
2781
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2782
|
-
*/
|
|
2783
|
-
type: string;
|
|
2744
|
+
type: PrimaryNetworkAssetType;
|
|
2784
2745
|
/**
|
|
2785
2746
|
* Amount of the asset.
|
|
2786
2747
|
*/
|
|
@@ -2815,7 +2776,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2815
2776
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2816
2777
|
};
|
|
2817
2778
|
|
|
2818
|
-
type
|
|
2779
|
+
type AggregatedAssetAmount = {
|
|
2819
2780
|
/**
|
|
2820
2781
|
* Unique ID for an asset.
|
|
2821
2782
|
*/
|
|
@@ -2832,14 +2793,12 @@ type Asset = {
|
|
|
2832
2793
|
* Denomination of this asset to represent fungibility.
|
|
2833
2794
|
*/
|
|
2834
2795
|
denomination: number;
|
|
2835
|
-
|
|
2836
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2837
|
-
*/
|
|
2838
|
-
type: string;
|
|
2796
|
+
type: PrimaryNetworkAssetType;
|
|
2839
2797
|
/**
|
|
2840
2798
|
* Amount of the asset.
|
|
2841
2799
|
*/
|
|
2842
2800
|
amount: string;
|
|
2801
|
+
utxoCount: number;
|
|
2843
2802
|
};
|
|
2844
2803
|
|
|
2845
2804
|
type PChainSharedAsset = {
|
|
@@ -2859,49 +2818,47 @@ type PChainSharedAsset = {
|
|
|
2859
2818
|
* Denomination of this asset to represent fungibility.
|
|
2860
2819
|
*/
|
|
2861
2820
|
denomination: number;
|
|
2862
|
-
|
|
2863
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2864
|
-
*/
|
|
2865
|
-
type: string;
|
|
2821
|
+
type: PrimaryNetworkAssetType;
|
|
2866
2822
|
/**
|
|
2867
2823
|
* Amount of the asset.
|
|
2868
2824
|
*/
|
|
2869
2825
|
amount: string;
|
|
2826
|
+
utxoCount: number;
|
|
2870
2827
|
sharedWithChainId: string;
|
|
2871
2828
|
status: string;
|
|
2872
2829
|
};
|
|
2873
2830
|
|
|
2874
2831
|
type PChainBalance = {
|
|
2875
2832
|
/**
|
|
2876
|
-
* A list of objects containing P-chain Asset
|
|
2833
|
+
* 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.
|
|
2877
2834
|
*/
|
|
2878
|
-
unlockedUnstaked: Array<
|
|
2835
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2879
2836
|
/**
|
|
2880
|
-
* A list of objects containing P-chain Asset
|
|
2837
|
+
* 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.
|
|
2881
2838
|
*/
|
|
2882
|
-
unlockedStaked: Array<
|
|
2839
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2883
2840
|
/**
|
|
2884
|
-
* A list of objects containing P-chain Asset
|
|
2841
|
+
* 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.
|
|
2885
2842
|
*/
|
|
2886
|
-
lockedPlatform: Array<
|
|
2843
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2887
2844
|
/**
|
|
2888
|
-
* A list of objects containing P-chain Asset
|
|
2845
|
+
* 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.
|
|
2889
2846
|
*/
|
|
2890
|
-
lockedStakeable: Array<
|
|
2847
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2891
2848
|
/**
|
|
2892
|
-
* A list of objects containing P-chain Asset
|
|
2849
|
+
* 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.
|
|
2893
2850
|
*/
|
|
2894
|
-
lockedStaked: Array<
|
|
2851
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2895
2852
|
/**
|
|
2896
|
-
* A list of objects containing P-chain Asset
|
|
2853
|
+
* 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.
|
|
2897
2854
|
*/
|
|
2898
|
-
pendingStaked: Array<
|
|
2855
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2899
2856
|
/**
|
|
2900
|
-
* A list of objects containing P-chain Asset
|
|
2857
|
+
* 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.
|
|
2901
2858
|
*/
|
|
2902
2859
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2903
2860
|
/**
|
|
2904
|
-
* A list of objects containing P-chain Asset
|
|
2861
|
+
* 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.
|
|
2905
2862
|
*/
|
|
2906
2863
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2907
2864
|
};
|
|
@@ -2911,34 +2868,6 @@ type ListPChainBalancesResponse = {
|
|
|
2911
2868
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2912
2869
|
};
|
|
2913
2870
|
|
|
2914
|
-
type XChainAssetBalance = {
|
|
2915
|
-
/**
|
|
2916
|
-
* Unique ID for an asset.
|
|
2917
|
-
*/
|
|
2918
|
-
assetId: string;
|
|
2919
|
-
/**
|
|
2920
|
-
* Name of this asset.
|
|
2921
|
-
*/
|
|
2922
|
-
name: string;
|
|
2923
|
-
/**
|
|
2924
|
-
* Symbol for this asset (max 4 characters).
|
|
2925
|
-
*/
|
|
2926
|
-
symbol: string;
|
|
2927
|
-
/**
|
|
2928
|
-
* Denomination of this asset to represent fungibility.
|
|
2929
|
-
*/
|
|
2930
|
-
denomination: number;
|
|
2931
|
-
/**
|
|
2932
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2933
|
-
*/
|
|
2934
|
-
type: string;
|
|
2935
|
-
/**
|
|
2936
|
-
* Amount of the asset.
|
|
2937
|
-
*/
|
|
2938
|
-
amount: string;
|
|
2939
|
-
utxoCount: number;
|
|
2940
|
-
};
|
|
2941
|
-
|
|
2942
2871
|
type XChainSharedAssetBalance = {
|
|
2943
2872
|
/**
|
|
2944
2873
|
* Unique ID for an asset.
|
|
@@ -2956,10 +2885,7 @@ type XChainSharedAssetBalance = {
|
|
|
2956
2885
|
* Denomination of this asset to represent fungibility.
|
|
2957
2886
|
*/
|
|
2958
2887
|
denomination: number;
|
|
2959
|
-
|
|
2960
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2961
|
-
*/
|
|
2962
|
-
type: string;
|
|
2888
|
+
type: PrimaryNetworkAssetType;
|
|
2963
2889
|
/**
|
|
2964
2890
|
* Amount of the asset.
|
|
2965
2891
|
*/
|
|
@@ -2972,11 +2898,11 @@ type XChainBalances = {
|
|
|
2972
2898
|
/**
|
|
2973
2899
|
* A list of objects containing X-chain Asset balance information.
|
|
2974
2900
|
*/
|
|
2975
|
-
locked: Array<
|
|
2901
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2976
2902
|
/**
|
|
2977
2903
|
* A list of objects containing X-chain Asset balance information.
|
|
2978
2904
|
*/
|
|
2979
|
-
unlocked: Array<
|
|
2905
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2980
2906
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2981
2907
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2982
2908
|
};
|
|
@@ -3089,7 +3015,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3089
3015
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3090
3016
|
* @throws ApiError
|
|
3091
3017
|
*/
|
|
3092
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3018
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3093
3019
|
/**
|
|
3094
3020
|
* A primary network blockchain id or alias.
|
|
3095
3021
|
*/
|
|
@@ -3102,14 +3028,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3102
3028
|
* A primary network (P or X chain) nodeId.
|
|
3103
3029
|
*/
|
|
3104
3030
|
nodeId: string;
|
|
3105
|
-
/**
|
|
3106
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3107
|
-
*/
|
|
3108
|
-
pageSize?: number;
|
|
3109
3031
|
/**
|
|
3110
3032
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3111
3033
|
*/
|
|
3112
3034
|
pageToken?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3037
|
+
*/
|
|
3038
|
+
pageSize?: number;
|
|
3113
3039
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3114
3040
|
/**
|
|
3115
3041
|
* List latest blocks
|
|
@@ -3117,7 +3043,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3117
3043
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3118
3044
|
* @throws ApiError
|
|
3119
3045
|
*/
|
|
3120
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3046
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3121
3047
|
/**
|
|
3122
3048
|
* A primary network blockchain id or alias.
|
|
3123
3049
|
*/
|
|
@@ -3126,17 +3052,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3126
3052
|
* Either mainnet or a testnet.
|
|
3127
3053
|
*/
|
|
3128
3054
|
network: Network;
|
|
3129
|
-
/**
|
|
3130
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3131
|
-
*/
|
|
3132
|
-
pageSize?: number;
|
|
3133
3055
|
/**
|
|
3134
3056
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3135
3057
|
*/
|
|
3136
3058
|
pageToken?: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3061
|
+
*/
|
|
3062
|
+
pageSize?: number;
|
|
3137
3063
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3138
3064
|
}
|
|
3139
3065
|
|
|
3066
|
+
type AssetWithPriceInfo = {
|
|
3067
|
+
/**
|
|
3068
|
+
* Unique ID for an asset.
|
|
3069
|
+
*/
|
|
3070
|
+
assetId: string;
|
|
3071
|
+
/**
|
|
3072
|
+
* Name of this asset.
|
|
3073
|
+
*/
|
|
3074
|
+
name: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Symbol for this asset (max 4 characters).
|
|
3077
|
+
*/
|
|
3078
|
+
symbol: string;
|
|
3079
|
+
/**
|
|
3080
|
+
* Denomination of this asset to represent fungibility.
|
|
3081
|
+
*/
|
|
3082
|
+
denomination: number;
|
|
3083
|
+
type: PrimaryNetworkAssetType;
|
|
3084
|
+
/**
|
|
3085
|
+
* Amount of the asset.
|
|
3086
|
+
*/
|
|
3087
|
+
amount: string;
|
|
3088
|
+
/**
|
|
3089
|
+
* 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.
|
|
3090
|
+
*/
|
|
3091
|
+
historicalPrice?: Money;
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3140
3094
|
declare enum RewardType {
|
|
3141
3095
|
VALIDATOR = "VALIDATOR",
|
|
3142
3096
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3156,10 +3110,7 @@ type HistoricalReward = {
|
|
|
3156
3110
|
rewardType: RewardType;
|
|
3157
3111
|
utxoId: string;
|
|
3158
3112
|
outputIndex: number;
|
|
3159
|
-
|
|
3160
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3161
|
-
*/
|
|
3162
|
-
reward: Asset;
|
|
3113
|
+
reward: AssetWithPriceInfo;
|
|
3163
3114
|
rewardTxHash: string;
|
|
3164
3115
|
};
|
|
3165
3116
|
|
|
@@ -3171,6 +3122,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3171
3122
|
historicalRewards: Array<HistoricalReward>;
|
|
3172
3123
|
};
|
|
3173
3124
|
|
|
3125
|
+
type AssetAmount = {
|
|
3126
|
+
/**
|
|
3127
|
+
* Unique ID for an asset.
|
|
3128
|
+
*/
|
|
3129
|
+
assetId: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* Name of this asset.
|
|
3132
|
+
*/
|
|
3133
|
+
name: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* Symbol for this asset (max 4 characters).
|
|
3136
|
+
*/
|
|
3137
|
+
symbol: string;
|
|
3138
|
+
/**
|
|
3139
|
+
* Denomination of this asset to represent fungibility.
|
|
3140
|
+
*/
|
|
3141
|
+
denomination: number;
|
|
3142
|
+
type: PrimaryNetworkAssetType;
|
|
3143
|
+
/**
|
|
3144
|
+
* Amount of the asset.
|
|
3145
|
+
*/
|
|
3146
|
+
amount: string;
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3174
3149
|
type PendingReward = {
|
|
3175
3150
|
/**
|
|
3176
3151
|
* An array of P-Chain wallet addresses.
|
|
@@ -3184,9 +3159,9 @@ type PendingReward = {
|
|
|
3184
3159
|
rewardType: RewardType;
|
|
3185
3160
|
progress: number;
|
|
3186
3161
|
/**
|
|
3187
|
-
* An object containing P-chain Asset
|
|
3162
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3188
3163
|
*/
|
|
3189
|
-
estimatedReward:
|
|
3164
|
+
estimatedReward: AssetAmount;
|
|
3190
3165
|
};
|
|
3191
3166
|
|
|
3192
3167
|
type ListPendingRewardsResponse = {
|
|
@@ -3206,25 +3181,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3206
3181
|
* @returns ListPendingRewardsResponse
|
|
3207
3182
|
* @throws ApiError
|
|
3208
3183
|
*/
|
|
3209
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3184
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3210
3185
|
/**
|
|
3211
3186
|
* Either mainnet or a testnet.
|
|
3212
3187
|
*/
|
|
3213
3188
|
network: Network;
|
|
3214
3189
|
/**
|
|
3215
|
-
* 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".
|
|
3190
|
+
* 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.
|
|
3216
3191
|
*/
|
|
3217
3192
|
addresses?: string;
|
|
3218
|
-
/**
|
|
3219
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3220
|
-
*/
|
|
3221
|
-
pageSize?: number;
|
|
3222
3193
|
/**
|
|
3223
3194
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3224
3195
|
*/
|
|
3225
3196
|
pageToken?: string;
|
|
3226
3197
|
/**
|
|
3227
|
-
*
|
|
3198
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3199
|
+
*/
|
|
3200
|
+
pageSize?: number;
|
|
3201
|
+
/**
|
|
3202
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3228
3203
|
*/
|
|
3229
3204
|
nodeIds?: string;
|
|
3230
3205
|
/**
|
|
@@ -3238,31 +3213,35 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3238
3213
|
* @returns ListHistoricalRewardsResponse
|
|
3239
3214
|
* @throws ApiError
|
|
3240
3215
|
*/
|
|
3241
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3216
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3242
3217
|
/**
|
|
3243
3218
|
* Either mainnet or a testnet.
|
|
3244
3219
|
*/
|
|
3245
3220
|
network: Network;
|
|
3246
3221
|
/**
|
|
3247
|
-
* 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".
|
|
3222
|
+
* 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.
|
|
3248
3223
|
*/
|
|
3249
3224
|
addresses?: string;
|
|
3250
|
-
/**
|
|
3251
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3252
|
-
*/
|
|
3253
|
-
pageSize?: number;
|
|
3254
3225
|
/**
|
|
3255
3226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3256
3227
|
*/
|
|
3257
3228
|
pageToken?: string;
|
|
3258
3229
|
/**
|
|
3259
|
-
*
|
|
3230
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3231
|
+
*/
|
|
3232
|
+
pageSize?: number;
|
|
3233
|
+
/**
|
|
3234
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3260
3235
|
*/
|
|
3261
3236
|
nodeIds?: string;
|
|
3262
3237
|
/**
|
|
3263
3238
|
* 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.
|
|
3264
3239
|
*/
|
|
3265
3240
|
sortOrder?: SortOrder;
|
|
3241
|
+
/**
|
|
3242
|
+
* The currency that return values should use. Defaults to USD.
|
|
3243
|
+
*/
|
|
3244
|
+
currency?: CurrencyCode;
|
|
3266
3245
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3267
3246
|
}
|
|
3268
3247
|
|
|
@@ -3283,9 +3262,9 @@ type EVMInput = {
|
|
|
3283
3262
|
*/
|
|
3284
3263
|
fromAddress: string;
|
|
3285
3264
|
/**
|
|
3286
|
-
*
|
|
3265
|
+
* AssetAmount details for the asset being transferred.
|
|
3287
3266
|
*/
|
|
3288
|
-
asset:
|
|
3267
|
+
asset: AssetAmount;
|
|
3289
3268
|
/**
|
|
3290
3269
|
* Credentials that signed this transaction.
|
|
3291
3270
|
*/
|
|
@@ -3297,7 +3276,7 @@ type Utxo = {
|
|
|
3297
3276
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3298
3277
|
*/
|
|
3299
3278
|
addresses: Array<string>;
|
|
3300
|
-
asset:
|
|
3279
|
+
asset: AssetAmount;
|
|
3301
3280
|
/**
|
|
3302
3281
|
* Blockchain ID on which this output is consumed on.
|
|
3303
3282
|
*/
|
|
@@ -3380,11 +3359,11 @@ type CChainExportTransaction = {
|
|
|
3380
3359
|
/**
|
|
3381
3360
|
* Assets unlocked by inputs of this transaction.
|
|
3382
3361
|
*/
|
|
3383
|
-
amountUnlocked: Array<
|
|
3362
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3384
3363
|
/**
|
|
3385
3364
|
* Assets created by outputs of this transaction.
|
|
3386
3365
|
*/
|
|
3387
|
-
amountCreated: Array<
|
|
3366
|
+
amountCreated: Array<AssetAmount>;
|
|
3388
3367
|
/**
|
|
3389
3368
|
* Source chain for an atomic transaction.
|
|
3390
3369
|
*/
|
|
@@ -3415,9 +3394,9 @@ type EVMOutput = {
|
|
|
3415
3394
|
*/
|
|
3416
3395
|
toAddress: string;
|
|
3417
3396
|
/**
|
|
3418
|
-
*
|
|
3397
|
+
* AssetAmount details for the asset being transferred.
|
|
3419
3398
|
*/
|
|
3420
|
-
asset:
|
|
3399
|
+
asset: AssetAmount;
|
|
3421
3400
|
};
|
|
3422
3401
|
|
|
3423
3402
|
type CChainImportTransaction = {
|
|
@@ -3444,11 +3423,11 @@ type CChainImportTransaction = {
|
|
|
3444
3423
|
/**
|
|
3445
3424
|
* Assets unlocked by inputs of this transaction.
|
|
3446
3425
|
*/
|
|
3447
|
-
amountUnlocked: Array<
|
|
3426
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3448
3427
|
/**
|
|
3449
3428
|
* Assets created by outputs of this transaction.
|
|
3450
3429
|
*/
|
|
3451
|
-
amountCreated: Array<
|
|
3430
|
+
amountCreated: Array<AssetAmount>;
|
|
3452
3431
|
/**
|
|
3453
3432
|
* Source chain for an atomic transaction.
|
|
3454
3433
|
*/
|
|
@@ -3496,6 +3475,8 @@ declare enum PChainTransactionType {
|
|
|
3496
3475
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3497
3476
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3498
3477
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3478
|
+
BASE_TX = "BaseTx",
|
|
3479
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3499
3480
|
UNKNOWN = "UNKNOWN"
|
|
3500
3481
|
}
|
|
3501
3482
|
|
|
@@ -3509,7 +3490,7 @@ type PChainUtxo = {
|
|
|
3509
3490
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3510
3491
|
*/
|
|
3511
3492
|
addresses: Array<string>;
|
|
3512
|
-
asset:
|
|
3493
|
+
asset: AssetAmount;
|
|
3513
3494
|
/**
|
|
3514
3495
|
* Blockchain ID on which this output is consumed on.
|
|
3515
3496
|
*/
|
|
@@ -3573,17 +3554,17 @@ type PChainTransaction = {
|
|
|
3573
3554
|
*/
|
|
3574
3555
|
destinationChain?: string;
|
|
3575
3556
|
/**
|
|
3576
|
-
* A list of objects containing P-chain Asset
|
|
3557
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3577
3558
|
*/
|
|
3578
|
-
value: Array<
|
|
3559
|
+
value: Array<AssetAmount>;
|
|
3579
3560
|
/**
|
|
3580
|
-
* A list of objects containing P-chain Asset
|
|
3561
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3581
3562
|
*/
|
|
3582
|
-
amountBurned: Array<
|
|
3563
|
+
amountBurned: Array<AssetAmount>;
|
|
3583
3564
|
/**
|
|
3584
|
-
* A list of objects containing P-chain Asset
|
|
3565
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3585
3566
|
*/
|
|
3586
|
-
amountStaked: Array<
|
|
3567
|
+
amountStaked: Array<AssetAmount>;
|
|
3587
3568
|
/**
|
|
3588
3569
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3589
3570
|
*/
|
|
@@ -3615,6 +3596,10 @@ type PChainTransaction = {
|
|
|
3615
3596
|
* Present for RewardValidatorTx
|
|
3616
3597
|
*/
|
|
3617
3598
|
stakingTxHash?: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3601
|
+
*/
|
|
3602
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3618
3603
|
};
|
|
3619
3604
|
|
|
3620
3605
|
type ListPChainTransactionsResponse = {
|
|
@@ -3626,6 +3611,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3626
3611
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3627
3612
|
};
|
|
3628
3613
|
|
|
3614
|
+
/**
|
|
3615
|
+
* Type of transaction.
|
|
3616
|
+
*/
|
|
3629
3617
|
declare enum XChainTransactionType {
|
|
3630
3618
|
BASE_TX = "BaseTx",
|
|
3631
3619
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3648,9 +3636,6 @@ type XChainLinearTransaction = {
|
|
|
3648
3636
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3649
3637
|
*/
|
|
3650
3638
|
timestamp: number;
|
|
3651
|
-
/**
|
|
3652
|
-
* Type of transaction.
|
|
3653
|
-
*/
|
|
3654
3639
|
txType: XChainTransactionType;
|
|
3655
3640
|
/**
|
|
3656
3641
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3661,11 +3646,11 @@ type XChainLinearTransaction = {
|
|
|
3661
3646
|
/**
|
|
3662
3647
|
* Assets unlocked by inputs of this transaction.
|
|
3663
3648
|
*/
|
|
3664
|
-
amountUnlocked: Array<
|
|
3649
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3665
3650
|
/**
|
|
3666
3651
|
* Assets created by outputs of this transaction.
|
|
3667
3652
|
*/
|
|
3668
|
-
amountCreated: Array<
|
|
3653
|
+
amountCreated: Array<AssetAmount>;
|
|
3669
3654
|
/**
|
|
3670
3655
|
* Source chain for an atomic transaction.
|
|
3671
3656
|
*/
|
|
@@ -3675,7 +3660,7 @@ type XChainLinearTransaction = {
|
|
|
3675
3660
|
*/
|
|
3676
3661
|
destinationChain?: string;
|
|
3677
3662
|
/**
|
|
3678
|
-
*
|
|
3663
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3679
3664
|
*/
|
|
3680
3665
|
assetCreated?: XChainAssetDetails;
|
|
3681
3666
|
/**
|
|
@@ -3725,9 +3710,6 @@ type XChainNonLinearTransaction = {
|
|
|
3725
3710
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3726
3711
|
*/
|
|
3727
3712
|
timestamp: number;
|
|
3728
|
-
/**
|
|
3729
|
-
* Type of transaction.
|
|
3730
|
-
*/
|
|
3731
3713
|
txType: XChainTransactionType;
|
|
3732
3714
|
/**
|
|
3733
3715
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3738,11 +3720,11 @@ type XChainNonLinearTransaction = {
|
|
|
3738
3720
|
/**
|
|
3739
3721
|
* Assets unlocked by inputs of this transaction.
|
|
3740
3722
|
*/
|
|
3741
|
-
amountUnlocked: Array<
|
|
3723
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3742
3724
|
/**
|
|
3743
3725
|
* Assets created by outputs of this transaction.
|
|
3744
3726
|
*/
|
|
3745
|
-
amountCreated: Array<
|
|
3727
|
+
amountCreated: Array<AssetAmount>;
|
|
3746
3728
|
/**
|
|
3747
3729
|
* Source chain for an atomic transaction.
|
|
3748
3730
|
*/
|
|
@@ -3752,7 +3734,7 @@ type XChainNonLinearTransaction = {
|
|
|
3752
3734
|
*/
|
|
3753
3735
|
destinationChain?: string;
|
|
3754
3736
|
/**
|
|
3755
|
-
*
|
|
3737
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3756
3738
|
*/
|
|
3757
3739
|
assetCreated?: XChainAssetDetails;
|
|
3758
3740
|
/**
|
|
@@ -3798,8 +3780,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3798
3780
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3799
3781
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3800
3782
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3801
|
-
UNKNOWN = "UNKNOWN",
|
|
3802
3783
|
BASE_TX = "BaseTx",
|
|
3784
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3785
|
+
UNKNOWN = "UNKNOWN",
|
|
3803
3786
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3804
3787
|
OPERATION_TX = "OperationTx"
|
|
3805
3788
|
}
|
|
@@ -3831,13 +3814,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3831
3814
|
* List latest transactions
|
|
3832
3815
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3833
3816
|
*
|
|
3834
|
-
* Transactions are filterable by addresses.
|
|
3817
|
+
* 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.
|
|
3835
3818
|
*
|
|
3836
3819
|
* 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.
|
|
3837
3820
|
* @returns any
|
|
3838
3821
|
* @throws ApiError
|
|
3839
3822
|
*/
|
|
3840
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3823
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3841
3824
|
/**
|
|
3842
3825
|
* A primary network blockchain id or alias.
|
|
3843
3826
|
*/
|
|
@@ -3862,14 +3845,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3862
3845
|
* Query param for retrieving items before a specific timestamp.
|
|
3863
3846
|
*/
|
|
3864
3847
|
endTimestamp?: number;
|
|
3865
|
-
/**
|
|
3866
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3867
|
-
*/
|
|
3868
|
-
pageSize?: number;
|
|
3869
3848
|
/**
|
|
3870
3849
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3871
3850
|
*/
|
|
3872
3851
|
pageToken?: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3854
|
+
*/
|
|
3855
|
+
pageSize?: number;
|
|
3873
3856
|
/**
|
|
3874
3857
|
* 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.
|
|
3875
3858
|
*/
|
|
@@ -3881,7 +3864,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3881
3864
|
* @returns ListPChainTransactionsResponse
|
|
3882
3865
|
* @throws ApiError
|
|
3883
3866
|
*/
|
|
3884
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3867
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3885
3868
|
/**
|
|
3886
3869
|
* A primary network blockchain id or alias.
|
|
3887
3870
|
*/
|
|
@@ -3906,14 +3889,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3906
3889
|
* Query param for retrieving items before a specific timestamp.
|
|
3907
3890
|
*/
|
|
3908
3891
|
endTimestamp?: number;
|
|
3909
|
-
/**
|
|
3910
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3911
|
-
*/
|
|
3912
|
-
pageSize?: number;
|
|
3913
3892
|
/**
|
|
3914
3893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3915
3894
|
*/
|
|
3916
3895
|
pageToken?: string;
|
|
3896
|
+
/**
|
|
3897
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
|
+
*/
|
|
3899
|
+
pageSize?: number;
|
|
3917
3900
|
/**
|
|
3918
3901
|
* 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.
|
|
3919
3902
|
*/
|
|
@@ -3925,7 +3908,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3925
3908
|
* @returns ListXChainTransactionsResponse
|
|
3926
3909
|
* @throws ApiError
|
|
3927
3910
|
*/
|
|
3928
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3911
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3929
3912
|
/**
|
|
3930
3913
|
* A primary network blockchain id or alias.
|
|
3931
3914
|
*/
|
|
@@ -3950,14 +3933,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3950
3933
|
* Query param for retrieving items before a specific timestamp.
|
|
3951
3934
|
*/
|
|
3952
3935
|
endTimestamp?: number;
|
|
3953
|
-
/**
|
|
3954
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3955
|
-
*/
|
|
3956
|
-
pageSize?: number;
|
|
3957
3936
|
/**
|
|
3958
3937
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3959
3938
|
*/
|
|
3960
3939
|
pageToken?: string;
|
|
3940
|
+
/**
|
|
3941
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3942
|
+
*/
|
|
3943
|
+
pageSize?: number;
|
|
3961
3944
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3962
3945
|
}
|
|
3963
3946
|
|
|
@@ -3988,7 +3971,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3988
3971
|
* @returns any
|
|
3989
3972
|
* @throws ApiError
|
|
3990
3973
|
*/
|
|
3991
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3974
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3992
3975
|
/**
|
|
3993
3976
|
* A primary network blockchain id or alias.
|
|
3994
3977
|
*/
|
|
@@ -4001,14 +3984,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4001
3984
|
* 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".
|
|
4002
3985
|
*/
|
|
4003
3986
|
addresses?: string;
|
|
4004
|
-
/**
|
|
4005
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4006
|
-
*/
|
|
4007
|
-
pageSize?: number;
|
|
4008
3987
|
/**
|
|
4009
3988
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4010
3989
|
*/
|
|
4011
3990
|
pageToken?: string;
|
|
3991
|
+
/**
|
|
3992
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3993
|
+
*/
|
|
3994
|
+
pageSize?: number;
|
|
4012
3995
|
/**
|
|
4013
3996
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4014
3997
|
*/
|
|
@@ -4053,7 +4036,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4053
4036
|
* @returns ListXChainVerticesResponse
|
|
4054
4037
|
* @throws ApiError
|
|
4055
4038
|
*/
|
|
4056
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4039
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4057
4040
|
/**
|
|
4058
4041
|
* A primary network blockchain id or alias.
|
|
4059
4042
|
*/
|
|
@@ -4062,14 +4045,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4062
4045
|
* Either mainnet or a testnet.
|
|
4063
4046
|
*/
|
|
4064
4047
|
network: Network;
|
|
4065
|
-
/**
|
|
4066
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4067
|
-
*/
|
|
4068
|
-
pageSize?: number;
|
|
4069
4048
|
/**
|
|
4070
4049
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4071
4050
|
*/
|
|
4072
4051
|
pageToken?: string;
|
|
4052
|
+
/**
|
|
4053
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4054
|
+
*/
|
|
4055
|
+
pageSize?: number;
|
|
4073
4056
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4074
4057
|
/**
|
|
4075
4058
|
* Get vertex
|
|
@@ -4097,7 +4080,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4097
4080
|
* @returns ListXChainVerticesResponse
|
|
4098
4081
|
* @throws ApiError
|
|
4099
4082
|
*/
|
|
4100
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4083
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4101
4084
|
/**
|
|
4102
4085
|
* The height of a vertex.
|
|
4103
4086
|
*/
|
|
@@ -4110,19 +4093,361 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4110
4093
|
* Either mainnet or a testnet.
|
|
4111
4094
|
*/
|
|
4112
4095
|
network: Network;
|
|
4096
|
+
/**
|
|
4097
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4098
|
+
*/
|
|
4099
|
+
pageToken?: string;
|
|
4113
4100
|
/**
|
|
4114
4101
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4115
4102
|
*/
|
|
4116
4103
|
pageSize?: number;
|
|
4104
|
+
/**
|
|
4105
|
+
* 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.
|
|
4106
|
+
*/
|
|
4107
|
+
sortOrder?: SortOrder;
|
|
4108
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
type TeleporterDestinationTransaction = {
|
|
4112
|
+
txHash: string;
|
|
4113
|
+
timestamp: number;
|
|
4114
|
+
gasSpent: string;
|
|
4115
|
+
rewardRedeemer: string;
|
|
4116
|
+
delivererAddress: string;
|
|
4117
|
+
};
|
|
4118
|
+
|
|
4119
|
+
type TeleporterReceipt = {
|
|
4120
|
+
receivedMessageNonce: string;
|
|
4121
|
+
relayerRewardAddress: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type TeleporterRewardDetails = {
|
|
4125
|
+
/**
|
|
4126
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4127
|
+
*/
|
|
4128
|
+
address: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* The contract name.
|
|
4131
|
+
*/
|
|
4132
|
+
name: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* The contract symbol.
|
|
4135
|
+
*/
|
|
4136
|
+
symbol: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4139
|
+
*/
|
|
4140
|
+
decimals: number;
|
|
4141
|
+
/**
|
|
4142
|
+
* The logo uri for the address.
|
|
4143
|
+
*/
|
|
4144
|
+
logoUri?: string;
|
|
4145
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4146
|
+
/**
|
|
4147
|
+
* The token price, if available.
|
|
4148
|
+
*/
|
|
4149
|
+
price?: Money;
|
|
4150
|
+
value: string;
|
|
4151
|
+
};
|
|
4152
|
+
declare namespace TeleporterRewardDetails {
|
|
4153
|
+
enum ercType {
|
|
4154
|
+
ERC_20 = "ERC-20"
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4159
|
+
messageId: string;
|
|
4160
|
+
teleporterContractAddress: string;
|
|
4161
|
+
sourceBlockchainId: string;
|
|
4162
|
+
destinationBlockchainId: string;
|
|
4163
|
+
messageNonce: string;
|
|
4164
|
+
from: string;
|
|
4165
|
+
to: string;
|
|
4166
|
+
data?: string;
|
|
4167
|
+
messageExecuted: boolean;
|
|
4168
|
+
receipts: Array<TeleporterReceipt>;
|
|
4169
|
+
receiptDelivered: boolean;
|
|
4170
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4171
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4172
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4173
|
+
};
|
|
4174
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4175
|
+
enum status {
|
|
4176
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
type TeleporterSourceTransaction = {
|
|
4181
|
+
txHash: string;
|
|
4182
|
+
timestamp: number;
|
|
4183
|
+
gasSpent: string;
|
|
4184
|
+
};
|
|
4185
|
+
|
|
4186
|
+
type DeliveredTeleporterMessage = {
|
|
4187
|
+
messageId: string;
|
|
4188
|
+
teleporterContractAddress: string;
|
|
4189
|
+
sourceBlockchainId: string;
|
|
4190
|
+
destinationBlockchainId: string;
|
|
4191
|
+
messageNonce: string;
|
|
4192
|
+
from: string;
|
|
4193
|
+
to: string;
|
|
4194
|
+
data?: string;
|
|
4195
|
+
messageExecuted: boolean;
|
|
4196
|
+
receipts: Array<TeleporterReceipt>;
|
|
4197
|
+
receiptDelivered: boolean;
|
|
4198
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4199
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4200
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4201
|
+
status: DeliveredTeleporterMessage.status;
|
|
4202
|
+
};
|
|
4203
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4204
|
+
enum status {
|
|
4205
|
+
DELIVERED = "delivered"
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
type NextPageToken = {
|
|
4210
|
+
/**
|
|
4211
|
+
* 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.
|
|
4212
|
+
*/
|
|
4213
|
+
nextPageToken?: string;
|
|
4214
|
+
};
|
|
4215
|
+
|
|
4216
|
+
type PendingTeleporterMessage = {
|
|
4217
|
+
messageId: string;
|
|
4218
|
+
teleporterContractAddress: string;
|
|
4219
|
+
sourceBlockchainId: string;
|
|
4220
|
+
destinationBlockchainId: string;
|
|
4221
|
+
messageNonce: string;
|
|
4222
|
+
from: string;
|
|
4223
|
+
to: string;
|
|
4224
|
+
data?: string;
|
|
4225
|
+
messageExecuted: boolean;
|
|
4226
|
+
receipts: Array<TeleporterReceipt>;
|
|
4227
|
+
receiptDelivered: boolean;
|
|
4228
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4229
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4230
|
+
status: PendingTeleporterMessage.status;
|
|
4231
|
+
};
|
|
4232
|
+
declare namespace PendingTeleporterMessage {
|
|
4233
|
+
enum status {
|
|
4234
|
+
PENDING = "pending"
|
|
4235
|
+
}
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
declare class TeleporterService {
|
|
4239
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4240
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4241
|
+
/**
|
|
4242
|
+
* Get a teleporter message
|
|
4243
|
+
* Gets a teleporter message by message ID.
|
|
4244
|
+
* @returns any
|
|
4245
|
+
* @throws ApiError
|
|
4246
|
+
*/
|
|
4247
|
+
getTeleporterMessage({ messageId, }: {
|
|
4248
|
+
/**
|
|
4249
|
+
* The message ID of the teleporter message.
|
|
4250
|
+
*/
|
|
4251
|
+
messageId: string;
|
|
4252
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4253
|
+
/**
|
|
4254
|
+
* List teleporter messages
|
|
4255
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4256
|
+
* @returns any
|
|
4257
|
+
* @throws ApiError
|
|
4258
|
+
*/
|
|
4259
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4117
4260
|
/**
|
|
4118
4261
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4119
4262
|
*/
|
|
4120
4263
|
pageToken?: string;
|
|
4121
4264
|
/**
|
|
4122
|
-
* The
|
|
4265
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4123
4266
|
*/
|
|
4124
|
-
|
|
4125
|
-
|
|
4267
|
+
pageSize?: number;
|
|
4268
|
+
/**
|
|
4269
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4270
|
+
*/
|
|
4271
|
+
sourceBlockchainId?: string;
|
|
4272
|
+
/**
|
|
4273
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4274
|
+
*/
|
|
4275
|
+
destinationBlockchainId?: string;
|
|
4276
|
+
/**
|
|
4277
|
+
* The address of the recipient of the teleporter message.
|
|
4278
|
+
*/
|
|
4279
|
+
to?: string;
|
|
4280
|
+
/**
|
|
4281
|
+
* The address of the sender of the teleporter message.
|
|
4282
|
+
*/
|
|
4283
|
+
from?: string;
|
|
4284
|
+
}): CancelablePromise<NextPageToken>;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
type AddressActivityMetadata = {
|
|
4288
|
+
/**
|
|
4289
|
+
* Ethereum address for the address_activity event type
|
|
4290
|
+
*/
|
|
4291
|
+
address: string;
|
|
4292
|
+
/**
|
|
4293
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4294
|
+
*/
|
|
4295
|
+
eventSignatures?: Array<string>;
|
|
4296
|
+
};
|
|
4297
|
+
|
|
4298
|
+
declare enum EventType {
|
|
4299
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
declare enum WebhookStatusType {
|
|
4303
|
+
ACTIVE = "active",
|
|
4304
|
+
INACTIVE = "inactive"
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
type WebhookResponse = {
|
|
4308
|
+
id: string;
|
|
4309
|
+
eventType: EventType;
|
|
4310
|
+
metadata: AddressActivityMetadata;
|
|
4311
|
+
/**
|
|
4312
|
+
* Whether to include traces in the webhook payload.
|
|
4313
|
+
*/
|
|
4314
|
+
includeTraces?: boolean;
|
|
4315
|
+
/**
|
|
4316
|
+
* Whether to include logs in the webhook payload.
|
|
4317
|
+
*/
|
|
4318
|
+
includeLogs?: boolean;
|
|
4319
|
+
url: string;
|
|
4320
|
+
chainId: string;
|
|
4321
|
+
status: WebhookStatusType;
|
|
4322
|
+
createdAt: number;
|
|
4323
|
+
name: string;
|
|
4324
|
+
description: string;
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4327
|
+
type ListWebhooksResponse = {
|
|
4328
|
+
/**
|
|
4329
|
+
* 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.
|
|
4330
|
+
*/
|
|
4331
|
+
nextPageToken?: string;
|
|
4332
|
+
webhooks: Array<WebhookResponse>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
type RegisterWebhookRequest = {
|
|
4336
|
+
url: string;
|
|
4337
|
+
chainId: string;
|
|
4338
|
+
eventType: EventType;
|
|
4339
|
+
metadata: AddressActivityMetadata;
|
|
4340
|
+
/**
|
|
4341
|
+
* Whether to include traces in the webhook payload.
|
|
4342
|
+
*/
|
|
4343
|
+
includeTraces?: boolean;
|
|
4344
|
+
/**
|
|
4345
|
+
* Whether to include logs in the webhook payload.
|
|
4346
|
+
*/
|
|
4347
|
+
includeLogs?: boolean;
|
|
4348
|
+
};
|
|
4349
|
+
|
|
4350
|
+
type SharedSecretsResponse = {
|
|
4351
|
+
secret: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type UpdateWebhookRequest = {
|
|
4355
|
+
name?: string;
|
|
4356
|
+
description?: string;
|
|
4357
|
+
url?: string;
|
|
4358
|
+
status?: WebhookStatusType;
|
|
4359
|
+
includeTraces?: boolean;
|
|
4360
|
+
includeLogs?: boolean;
|
|
4361
|
+
};
|
|
4362
|
+
|
|
4363
|
+
declare enum WebhookStatus {
|
|
4364
|
+
ACTIVE = "active",
|
|
4365
|
+
INACTIVE = "inactive"
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
declare class WebhooksService {
|
|
4369
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4370
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4371
|
+
/**
|
|
4372
|
+
* Register a webhook
|
|
4373
|
+
* Registers a new webhook.
|
|
4374
|
+
* @returns WebhookResponse
|
|
4375
|
+
* @throws ApiError
|
|
4376
|
+
*/
|
|
4377
|
+
registerWebhook({ requestBody, }: {
|
|
4378
|
+
requestBody: RegisterWebhookRequest;
|
|
4379
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4380
|
+
/**
|
|
4381
|
+
* List webhooks
|
|
4382
|
+
* Lists webhooks for the user.
|
|
4383
|
+
* @returns ListWebhooksResponse
|
|
4384
|
+
* @throws ApiError
|
|
4385
|
+
*/
|
|
4386
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4387
|
+
/**
|
|
4388
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4389
|
+
*/
|
|
4390
|
+
pageToken?: string;
|
|
4391
|
+
/**
|
|
4392
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4393
|
+
*/
|
|
4394
|
+
pageSize?: number;
|
|
4395
|
+
/**
|
|
4396
|
+
* 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.
|
|
4397
|
+
*/
|
|
4398
|
+
status?: WebhookStatus;
|
|
4399
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4400
|
+
/**
|
|
4401
|
+
* Get a webhook by ID
|
|
4402
|
+
* Retrieves a webhook by ID.
|
|
4403
|
+
* @returns WebhookResponse
|
|
4404
|
+
* @throws ApiError
|
|
4405
|
+
*/
|
|
4406
|
+
getWebhook({ id, }: {
|
|
4407
|
+
/**
|
|
4408
|
+
* The webhook identifier.
|
|
4409
|
+
*/
|
|
4410
|
+
id: string;
|
|
4411
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4412
|
+
/**
|
|
4413
|
+
* Deactivate a webhook
|
|
4414
|
+
* Deactivates a webhook by ID.
|
|
4415
|
+
* @returns WebhookResponse
|
|
4416
|
+
* @throws ApiError
|
|
4417
|
+
*/
|
|
4418
|
+
deactivateWebhook({ id, }: {
|
|
4419
|
+
/**
|
|
4420
|
+
* The webhook identifier.
|
|
4421
|
+
*/
|
|
4422
|
+
id: string;
|
|
4423
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4424
|
+
/**
|
|
4425
|
+
* Update a webhook
|
|
4426
|
+
* Updates an existing webhook.
|
|
4427
|
+
* @returns WebhookResponse
|
|
4428
|
+
* @throws ApiError
|
|
4429
|
+
*/
|
|
4430
|
+
updateWebhook({ id, requestBody, }: {
|
|
4431
|
+
/**
|
|
4432
|
+
* The webhook identifier.
|
|
4433
|
+
*/
|
|
4434
|
+
id: string;
|
|
4435
|
+
requestBody: UpdateWebhookRequest;
|
|
4436
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Generate a shared secret
|
|
4439
|
+
* Generates a new shared secret.
|
|
4440
|
+
* @returns SharedSecretsResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4444
|
+
/**
|
|
4445
|
+
* Get a shared secret
|
|
4446
|
+
* Get a previously generated shared secret.
|
|
4447
|
+
* @returns SharedSecretsResponse
|
|
4448
|
+
* @throws ApiError
|
|
4449
|
+
*/
|
|
4450
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4126
4451
|
}
|
|
4127
4452
|
|
|
4128
4453
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4143,6 +4468,8 @@ declare class Glacier {
|
|
|
4143
4468
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4144
4469
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4145
4470
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4471
|
+
readonly teleporter: TeleporterService;
|
|
4472
|
+
readonly webhooks: WebhooksService;
|
|
4146
4473
|
readonly request: BaseHttpRequest;
|
|
4147
4474
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4148
4475
|
}
|
|
@@ -4164,4 +4491,4 @@ declare class ApiError extends Error {
|
|
|
4164
4491
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4165
4492
|
}
|
|
4166
4493
|
|
|
4167
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4494
|
+
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, GlacierApiFeature, 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, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|