@avalabs/glacier-sdk 2.8.0-canary.691c0ee.0 → 2.8.0-canary.69c602c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +931 -408
- package/dist/index.js +353 -130
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +16 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +0 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +0 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- 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 +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- 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/PrimaryNetworkBlock.d.ts +1 -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 +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- package/esm/generated/models/RegisterWebhookRequest.d.ts +11 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +11 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.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 +17 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +86 -0
- package/esm/generated/services/DefaultService.js +73 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- 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 +41 -41
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/index.d.ts +29 -3
- package/esm/index.js +14 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,74 @@ 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
|
+
/**
|
|
69
|
+
* Array of hexadecimal strings of the event signatures.
|
|
70
|
+
*/
|
|
71
|
+
eventSignatures?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to include traces in the webhook payload.
|
|
74
|
+
*/
|
|
75
|
+
includeTraces?: boolean;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
declare enum EventType {
|
|
79
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare enum WebhookStatusType {
|
|
83
|
+
ACTIVE = "active",
|
|
84
|
+
INACTIVE = "inactive"
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
type WebhookResponse = {
|
|
88
|
+
id: string;
|
|
89
|
+
eventType: EventType;
|
|
90
|
+
metadata: AddressActivityMetadata;
|
|
91
|
+
url: string;
|
|
92
|
+
chainId: string;
|
|
93
|
+
status: WebhookStatusType;
|
|
94
|
+
createdAt: number;
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
type ListWebhooksResponse = {
|
|
100
|
+
/**
|
|
101
|
+
* 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.
|
|
102
|
+
*/
|
|
103
|
+
nextPageToken?: string;
|
|
104
|
+
webhooks: Array<WebhookResponse>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
type RegisterWebhookRequest = {
|
|
108
|
+
url: string;
|
|
109
|
+
chainId: string;
|
|
110
|
+
eventType: EventType;
|
|
111
|
+
metadata: AddressActivityMetadata;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
type SharedSecretsResponse = {
|
|
115
|
+
secret: string;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
type UpdateWebhookRequest = {
|
|
119
|
+
name?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
url?: string;
|
|
122
|
+
status?: WebhookStatusType;
|
|
123
|
+
includeTraces?: boolean;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
declare enum WebhookStatus {
|
|
127
|
+
ACTIVE = "active",
|
|
128
|
+
INACTIVE = "inactive"
|
|
129
|
+
}
|
|
130
|
+
|
|
63
131
|
declare class DefaultService {
|
|
64
132
|
readonly httpRequest: BaseHttpRequest;
|
|
65
133
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -68,8 +136,91 @@ declare class DefaultService {
|
|
|
68
136
|
* @throws ApiError
|
|
69
137
|
*/
|
|
70
138
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
139
|
+
/**
|
|
140
|
+
* Register a webhook
|
|
141
|
+
* Registers a new webhook.
|
|
142
|
+
* @returns WebhookResponse
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
registerWebhook({ requestBody, }: {
|
|
146
|
+
requestBody: RegisterWebhookRequest;
|
|
147
|
+
}): CancelablePromise<WebhookResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* List webhooks
|
|
150
|
+
* Lists webhooks for the user.
|
|
151
|
+
* @returns ListWebhooksResponse
|
|
152
|
+
* @throws ApiError
|
|
153
|
+
*/
|
|
154
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
155
|
+
/**
|
|
156
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
157
|
+
*/
|
|
158
|
+
pageToken?: string;
|
|
159
|
+
/**
|
|
160
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
161
|
+
*/
|
|
162
|
+
pageSize?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
165
|
+
*/
|
|
166
|
+
status?: WebhookStatus;
|
|
167
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a webhook by ID
|
|
170
|
+
* Retrieves a webhook by ID.
|
|
171
|
+
* @returns WebhookResponse
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
getWebhook({ id, }: {
|
|
175
|
+
/**
|
|
176
|
+
* The webhook identifier.
|
|
177
|
+
*/
|
|
178
|
+
id: string;
|
|
179
|
+
}): CancelablePromise<WebhookResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Deactivate a webhook
|
|
182
|
+
* Deactivates a webhook by ID.
|
|
183
|
+
* @returns WebhookResponse
|
|
184
|
+
* @throws ApiError
|
|
185
|
+
*/
|
|
186
|
+
deactivateWebhook({ id, }: {
|
|
187
|
+
/**
|
|
188
|
+
* The webhook identifier.
|
|
189
|
+
*/
|
|
190
|
+
id: string;
|
|
191
|
+
}): CancelablePromise<WebhookResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Update a webhook
|
|
194
|
+
* Updates an existing webhook.
|
|
195
|
+
* @returns WebhookResponse
|
|
196
|
+
* @throws ApiError
|
|
197
|
+
*/
|
|
198
|
+
updateWebhook({ id, requestBody, }: {
|
|
199
|
+
/**
|
|
200
|
+
* The webhook identifier.
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
203
|
+
requestBody: UpdateWebhookRequest;
|
|
204
|
+
}): CancelablePromise<WebhookResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* Generate a shared secret
|
|
207
|
+
* Generates a new shared secret.
|
|
208
|
+
* @returns SharedSecretsResponse
|
|
209
|
+
* @throws ApiError
|
|
210
|
+
*/
|
|
211
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* Get a shared secret
|
|
214
|
+
* Get a previously generated shared secret.
|
|
215
|
+
* @returns SharedSecretsResponse
|
|
216
|
+
* @throws ApiError
|
|
217
|
+
*/
|
|
218
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
71
219
|
}
|
|
72
220
|
|
|
221
|
+
/**
|
|
222
|
+
* ISO 4217 currency code.
|
|
223
|
+
*/
|
|
73
224
|
declare enum CurrencyCode {
|
|
74
225
|
USD = "usd",
|
|
75
226
|
EUR = "eur",
|
|
@@ -88,9 +239,6 @@ declare enum CurrencyCode {
|
|
|
88
239
|
}
|
|
89
240
|
|
|
90
241
|
type Money = {
|
|
91
|
-
/**
|
|
92
|
-
* ISO 4217 currency code.
|
|
93
|
-
*/
|
|
94
242
|
currencyCode: CurrencyCode;
|
|
95
243
|
/**
|
|
96
244
|
* Monetary value in base 10 decimals.
|
|
@@ -140,6 +288,9 @@ type GetNativeBalanceResponse = {
|
|
|
140
288
|
nativeTokenBalance: NativeTokenBalance;
|
|
141
289
|
};
|
|
142
290
|
|
|
291
|
+
/**
|
|
292
|
+
* The metadata indexing status of the nft.
|
|
293
|
+
*/
|
|
143
294
|
declare enum NftTokenMetadataStatus {
|
|
144
295
|
UNKNOWN = "UNKNOWN",
|
|
145
296
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -155,9 +306,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
155
306
|
}
|
|
156
307
|
|
|
157
308
|
type Erc1155TokenMetadata = {
|
|
158
|
-
/**
|
|
159
|
-
* The metadata indexing status of the nft.
|
|
160
|
-
*/
|
|
161
309
|
indexStatus: NftTokenMetadataStatus;
|
|
162
310
|
metadataLastUpdatedTimestamp?: number;
|
|
163
311
|
name?: string;
|
|
@@ -196,9 +344,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
196
344
|
}
|
|
197
345
|
|
|
198
346
|
type Erc721TokenMetadata = {
|
|
199
|
-
/**
|
|
200
|
-
* The metadata indexing status of the nft.
|
|
201
|
-
*/
|
|
202
347
|
indexStatus: NftTokenMetadataStatus;
|
|
203
348
|
metadataLastUpdatedTimestamp?: number;
|
|
204
349
|
name?: string;
|
|
@@ -345,7 +490,7 @@ declare class EvmBalancesService {
|
|
|
345
490
|
*/
|
|
346
491
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
492
|
/**
|
|
348
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
493
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
349
494
|
*/
|
|
350
495
|
chainId: string;
|
|
351
496
|
/**
|
|
@@ -371,9 +516,9 @@ declare class EvmBalancesService {
|
|
|
371
516
|
* @returns ListErc20BalancesResponse
|
|
372
517
|
* @throws ApiError
|
|
373
518
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
519
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
520
|
/**
|
|
376
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
521
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
522
|
*/
|
|
378
523
|
chainId: string;
|
|
379
524
|
/**
|
|
@@ -384,14 +529,14 @@ declare class EvmBalancesService {
|
|
|
384
529
|
* The block number, if not defined the block number will be the latest block.
|
|
385
530
|
*/
|
|
386
531
|
blockNumber?: string;
|
|
387
|
-
/**
|
|
388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
389
|
-
*/
|
|
390
|
-
pageSize?: number;
|
|
391
532
|
/**
|
|
392
533
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
534
|
*/
|
|
394
535
|
pageToken?: string;
|
|
536
|
+
/**
|
|
537
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
538
|
+
*/
|
|
539
|
+
pageSize?: number;
|
|
395
540
|
/**
|
|
396
541
|
* A comma separated list of contract addresses to filter by.
|
|
397
542
|
*/
|
|
@@ -409,23 +554,23 @@ declare class EvmBalancesService {
|
|
|
409
554
|
* @returns ListErc721BalancesResponse
|
|
410
555
|
* @throws ApiError
|
|
411
556
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
557
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
558
|
/**
|
|
414
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
559
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
415
560
|
*/
|
|
416
561
|
chainId: string;
|
|
417
562
|
/**
|
|
418
563
|
* A wallet address.
|
|
419
564
|
*/
|
|
420
565
|
address: string;
|
|
421
|
-
/**
|
|
422
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
423
|
-
*/
|
|
424
|
-
pageSize?: number;
|
|
425
566
|
/**
|
|
426
567
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
568
|
*/
|
|
428
569
|
pageToken?: string;
|
|
570
|
+
/**
|
|
571
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
572
|
+
*/
|
|
573
|
+
pageSize?: number;
|
|
429
574
|
/**
|
|
430
575
|
* A contract addresses to filter by.
|
|
431
576
|
*/
|
|
@@ -441,9 +586,9 @@ declare class EvmBalancesService {
|
|
|
441
586
|
* @returns ListErc1155BalancesResponse
|
|
442
587
|
* @throws ApiError
|
|
443
588
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
589
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
590
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
591
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
592
|
*/
|
|
448
593
|
chainId: string;
|
|
449
594
|
/**
|
|
@@ -454,14 +599,14 @@ declare class EvmBalancesService {
|
|
|
454
599
|
* The block number, if not defined the block number will be the latest block.
|
|
455
600
|
*/
|
|
456
601
|
blockNumber?: string;
|
|
457
|
-
/**
|
|
458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
459
|
-
*/
|
|
460
|
-
pageSize?: number;
|
|
461
602
|
/**
|
|
462
603
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
604
|
*/
|
|
464
605
|
pageToken?: string;
|
|
606
|
+
/**
|
|
607
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
608
|
+
*/
|
|
609
|
+
pageSize?: number;
|
|
465
610
|
/**
|
|
466
611
|
* A contract addresses to filter by.
|
|
467
612
|
*/
|
|
@@ -475,23 +620,23 @@ declare class EvmBalancesService {
|
|
|
475
620
|
* @returns ListCollectibleBalancesResponse
|
|
476
621
|
* @throws ApiError
|
|
477
622
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
623
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
624
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
625
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
626
|
*/
|
|
482
627
|
chainId: string;
|
|
483
628
|
/**
|
|
484
629
|
* A wallet address.
|
|
485
630
|
*/
|
|
486
631
|
address: string;
|
|
487
|
-
/**
|
|
488
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
489
|
-
*/
|
|
490
|
-
pageSize?: number;
|
|
491
632
|
/**
|
|
492
633
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
634
|
*/
|
|
494
635
|
pageToken?: string;
|
|
636
|
+
/**
|
|
637
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
638
|
+
*/
|
|
639
|
+
pageSize?: number;
|
|
495
640
|
/**
|
|
496
641
|
* A contract addresses to filter by.
|
|
497
642
|
*/
|
|
@@ -604,19 +749,19 @@ declare class EvmBlocksService {
|
|
|
604
749
|
* @returns ListEvmBlocksResponse
|
|
605
750
|
* @throws ApiError
|
|
606
751
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
752
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
753
|
/**
|
|
609
|
-
* 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.
|
|
610
755
|
*/
|
|
611
756
|
chainId: string;
|
|
612
|
-
/**
|
|
613
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
614
|
-
*/
|
|
615
|
-
pageSize?: number;
|
|
616
757
|
/**
|
|
617
758
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
759
|
*/
|
|
619
760
|
pageToken?: string;
|
|
761
|
+
/**
|
|
762
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
763
|
+
*/
|
|
764
|
+
pageSize?: number;
|
|
620
765
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
766
|
/**
|
|
622
767
|
* Get block
|
|
@@ -626,7 +771,7 @@ declare class EvmBlocksService {
|
|
|
626
771
|
*/
|
|
627
772
|
getBlock({ chainId, blockId, }: {
|
|
628
773
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
774
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
775
|
*/
|
|
631
776
|
chainId: string;
|
|
632
777
|
/**
|
|
@@ -636,6 +781,9 @@ declare class EvmBlocksService {
|
|
|
636
781
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
637
782
|
}
|
|
638
783
|
|
|
784
|
+
/**
|
|
785
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
786
|
+
*/
|
|
639
787
|
declare enum ChainStatus {
|
|
640
788
|
OK = "OK",
|
|
641
789
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -673,9 +821,6 @@ declare enum VmName {
|
|
|
673
821
|
|
|
674
822
|
type GetChainResponse = {
|
|
675
823
|
chainId: string;
|
|
676
|
-
/**
|
|
677
|
-
* 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.
|
|
678
|
-
*/
|
|
679
824
|
status: ChainStatus;
|
|
680
825
|
chainName: string;
|
|
681
826
|
description: string;
|
|
@@ -695,9 +840,6 @@ type GetChainResponse = {
|
|
|
695
840
|
|
|
696
841
|
type ChainInfo = {
|
|
697
842
|
chainId: string;
|
|
698
|
-
/**
|
|
699
|
-
* 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.
|
|
700
|
-
*/
|
|
701
843
|
status: ChainStatus;
|
|
702
844
|
chainName: string;
|
|
703
845
|
description: string;
|
|
@@ -747,7 +889,7 @@ declare class EvmChainsService {
|
|
|
747
889
|
*/
|
|
748
890
|
getChainInfo({ chainId, }: {
|
|
749
891
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
892
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
893
|
*/
|
|
752
894
|
chainId: string;
|
|
753
895
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1184,7 @@ declare class EvmContractsService {
|
|
|
1042
1184
|
*/
|
|
1043
1185
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1186
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1187
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1188
|
*/
|
|
1047
1189
|
chainId: string;
|
|
1048
1190
|
/**
|
|
@@ -1058,7 +1200,7 @@ declare class EvmContractsService {
|
|
|
1058
1200
|
*/
|
|
1059
1201
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1202
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1203
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1204
|
*/
|
|
1063
1205
|
chainId: string;
|
|
1064
1206
|
/**
|
|
@@ -1192,6 +1334,9 @@ type Erc721TransferDetails = {
|
|
|
1192
1334
|
erc721Token: Erc721Token;
|
|
1193
1335
|
};
|
|
1194
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1339
|
+
*/
|
|
1195
1340
|
declare enum TransactionMethodType {
|
|
1196
1341
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1197
1342
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1199,9 +1344,6 @@ declare enum TransactionMethodType {
|
|
|
1199
1344
|
}
|
|
1200
1345
|
|
|
1201
1346
|
type Method = {
|
|
1202
|
-
/**
|
|
1203
|
-
* 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.
|
|
1204
|
-
*/
|
|
1205
1347
|
callType: TransactionMethodType;
|
|
1206
1348
|
/**
|
|
1207
1349
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1562,7 +1704,7 @@ type ListTransfersResponse = {
|
|
|
1562
1704
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1563
1705
|
*/
|
|
1564
1706
|
nextPageToken?: string;
|
|
1565
|
-
transfers:
|
|
1707
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1566
1708
|
};
|
|
1567
1709
|
|
|
1568
1710
|
declare enum SortOrder {
|
|
@@ -1586,7 +1728,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1728
|
*/
|
|
1587
1729
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1730
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1731
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1732
|
*/
|
|
1591
1733
|
chainId: string;
|
|
1592
1734
|
/**
|
|
@@ -1604,23 +1746,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1746
|
* @returns ListContractsResponse
|
|
1605
1747
|
* @throws ApiError
|
|
1606
1748
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1749
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1750
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1751
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1752
|
*/
|
|
1611
1753
|
chainId: string;
|
|
1612
1754
|
/**
|
|
1613
1755
|
* A wallet address.
|
|
1614
1756
|
*/
|
|
1615
1757
|
address: string;
|
|
1616
|
-
/**
|
|
1617
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1618
|
-
*/
|
|
1619
|
-
pageSize?: number;
|
|
1620
1758
|
/**
|
|
1621
1759
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1760
|
*/
|
|
1623
1761
|
pageToken?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1764
|
+
*/
|
|
1765
|
+
pageSize?: number;
|
|
1624
1766
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1767
|
/**
|
|
1626
1768
|
* List ERC transfers
|
|
@@ -1628,25 +1770,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1770
|
* @returns ListTransfersResponse
|
|
1629
1771
|
* @throws ApiError
|
|
1630
1772
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1773
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1774
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1775
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1776
|
*/
|
|
1635
1777
|
chainId: string;
|
|
1636
1778
|
/**
|
|
1637
1779
|
* A wallet address.
|
|
1638
1780
|
*/
|
|
1639
1781
|
address: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* 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.
|
|
1784
|
+
*/
|
|
1640
1785
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1786
|
/**
|
|
1643
|
-
* The
|
|
1787
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1644
1788
|
*/
|
|
1645
|
-
|
|
1789
|
+
endBlock?: number;
|
|
1646
1790
|
/**
|
|
1647
1791
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1792
|
*/
|
|
1649
1793
|
pageToken?: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1796
|
+
*/
|
|
1797
|
+
pageSize?: number;
|
|
1650
1798
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1799
|
/**
|
|
1652
1800
|
* List transactions
|
|
@@ -1656,24 +1804,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1804
|
* @returns ListTransactionDetailsResponse
|
|
1657
1805
|
* @throws ApiError
|
|
1658
1806
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1807
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1808
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1810
|
*/
|
|
1663
1811
|
chainId: string;
|
|
1664
1812
|
/**
|
|
1665
1813
|
* A wallet address.
|
|
1666
1814
|
*/
|
|
1667
1815
|
address: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1818
|
+
*/
|
|
1819
|
+
pageToken?: string;
|
|
1668
1820
|
/**
|
|
1669
1821
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1822
|
*/
|
|
1671
1823
|
pageSize?: number;
|
|
1672
1824
|
/**
|
|
1673
|
-
*
|
|
1825
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1674
1826
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1827
|
startBlock?: number;
|
|
1828
|
+
/**
|
|
1829
|
+
* 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.
|
|
1830
|
+
*/
|
|
1677
1831
|
endBlock?: number;
|
|
1678
1832
|
/**
|
|
1679
1833
|
* 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.
|
|
@@ -1686,25 +1840,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1840
|
* @returns ListNativeTransactionsResponse
|
|
1687
1841
|
* @throws ApiError
|
|
1688
1842
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1843
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1844
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1845
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1846
|
*/
|
|
1693
1847
|
chainId: string;
|
|
1694
1848
|
/**
|
|
1695
1849
|
* A wallet address.
|
|
1696
1850
|
*/
|
|
1697
1851
|
address: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* 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.
|
|
1854
|
+
*/
|
|
1698
1855
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1856
|
/**
|
|
1701
|
-
* The
|
|
1857
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1702
1858
|
*/
|
|
1703
|
-
|
|
1859
|
+
endBlock?: number;
|
|
1704
1860
|
/**
|
|
1705
1861
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1862
|
*/
|
|
1707
1863
|
pageToken?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1866
|
+
*/
|
|
1867
|
+
pageSize?: number;
|
|
1708
1868
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1869
|
/**
|
|
1710
1870
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1872,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1872
|
* @returns ListErc20TransactionsResponse
|
|
1713
1873
|
* @throws ApiError
|
|
1714
1874
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1875
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1876
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1877
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1878
|
*/
|
|
1719
1879
|
chainId: string;
|
|
1720
1880
|
/**
|
|
1721
1881
|
* A wallet address.
|
|
1722
1882
|
*/
|
|
1723
1883
|
address: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* 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.
|
|
1886
|
+
*/
|
|
1724
1887
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1888
|
/**
|
|
1727
|
-
* The
|
|
1889
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1728
1890
|
*/
|
|
1729
|
-
|
|
1891
|
+
endBlock?: number;
|
|
1730
1892
|
/**
|
|
1731
1893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1894
|
*/
|
|
1733
1895
|
pageToken?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1898
|
+
*/
|
|
1899
|
+
pageSize?: number;
|
|
1734
1900
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1901
|
/**
|
|
1736
1902
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1904,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1904
|
* @returns ListErc721TransactionsResponse
|
|
1739
1905
|
* @throws ApiError
|
|
1740
1906
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1907
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1908
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1909
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1910
|
*/
|
|
1745
1911
|
chainId: string;
|
|
1746
1912
|
/**
|
|
1747
1913
|
* A wallet address.
|
|
1748
1914
|
*/
|
|
1749
1915
|
address: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* 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.
|
|
1918
|
+
*/
|
|
1750
1919
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1920
|
/**
|
|
1753
|
-
* The
|
|
1921
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1754
1922
|
*/
|
|
1755
|
-
|
|
1923
|
+
endBlock?: number;
|
|
1756
1924
|
/**
|
|
1757
1925
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1926
|
*/
|
|
1759
1927
|
pageToken?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1930
|
+
*/
|
|
1931
|
+
pageSize?: number;
|
|
1760
1932
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1933
|
/**
|
|
1762
1934
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1936,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1936
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1937
|
* @throws ApiError
|
|
1766
1938
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1939
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1940
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1941
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1942
|
*/
|
|
1771
1943
|
chainId: string;
|
|
1772
1944
|
/**
|
|
1773
1945
|
* A wallet address.
|
|
1774
1946
|
*/
|
|
1775
1947
|
address: string;
|
|
1948
|
+
/**
|
|
1949
|
+
* 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.
|
|
1950
|
+
*/
|
|
1776
1951
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1952
|
/**
|
|
1779
|
-
* The
|
|
1953
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1780
1954
|
*/
|
|
1781
|
-
|
|
1955
|
+
endBlock?: number;
|
|
1782
1956
|
/**
|
|
1783
1957
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1958
|
*/
|
|
1785
1959
|
pageToken?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1962
|
+
*/
|
|
1963
|
+
pageSize?: number;
|
|
1786
1964
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1965
|
/**
|
|
1788
1966
|
* List internal transactions
|
|
@@ -1792,25 +1970,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1970
|
* @returns ListInternalTransactionsResponse
|
|
1793
1971
|
* @throws ApiError
|
|
1794
1972
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1973
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1974
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1975
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1976
|
*/
|
|
1799
1977
|
chainId: string;
|
|
1800
1978
|
/**
|
|
1801
1979
|
* A wallet address.
|
|
1802
1980
|
*/
|
|
1803
1981
|
address: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* 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.
|
|
1984
|
+
*/
|
|
1804
1985
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1986
|
/**
|
|
1807
|
-
* The
|
|
1987
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1808
1988
|
*/
|
|
1809
|
-
|
|
1989
|
+
endBlock?: number;
|
|
1810
1990
|
/**
|
|
1811
1991
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1992
|
*/
|
|
1813
1993
|
pageToken?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1996
|
+
*/
|
|
1997
|
+
pageSize?: number;
|
|
1814
1998
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1999
|
/**
|
|
1816
2000
|
* Get transaction
|
|
@@ -1820,7 +2004,7 @@ declare class EvmTransactionsService {
|
|
|
1820
2004
|
*/
|
|
1821
2005
|
getTransaction({ chainId, txHash, }: {
|
|
1822
2006
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2007
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
2008
|
*/
|
|
1825
2009
|
chainId: string;
|
|
1826
2010
|
/**
|
|
@@ -1836,7 +2020,7 @@ declare class EvmTransactionsService {
|
|
|
1836
2020
|
*/
|
|
1837
2021
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
2022
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2023
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
2024
|
*/
|
|
1841
2025
|
chainId: string;
|
|
1842
2026
|
/**
|
|
@@ -1850,19 +2034,19 @@ declare class EvmTransactionsService {
|
|
|
1850
2034
|
* @returns ListNativeTransactionsResponse
|
|
1851
2035
|
* @throws ApiError
|
|
1852
2036
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
2037
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
2038
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2039
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
2040
|
*/
|
|
1857
2041
|
chainId: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1860
|
-
*/
|
|
1861
|
-
pageSize?: number;
|
|
1862
2042
|
/**
|
|
1863
2043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
2044
|
*/
|
|
1865
2045
|
pageToken?: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2048
|
+
*/
|
|
2049
|
+
pageSize?: number;
|
|
1866
2050
|
/**
|
|
1867
2051
|
* A status filter for listed transactions.
|
|
1868
2052
|
*/
|
|
@@ -1886,6 +2070,14 @@ declare class HealthCheckService {
|
|
|
1886
2070
|
}>;
|
|
1887
2071
|
}
|
|
1888
2072
|
|
|
2073
|
+
type ListNftTokens = {
|
|
2074
|
+
/**
|
|
2075
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2076
|
+
*/
|
|
2077
|
+
nextPageToken?: string;
|
|
2078
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2079
|
+
};
|
|
2080
|
+
|
|
1889
2081
|
declare class NfTsService {
|
|
1890
2082
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
2083
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +2089,7 @@ declare class NfTsService {
|
|
|
1897
2089
|
*/
|
|
1898
2090
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
2091
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2092
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2093
|
*/
|
|
1902
2094
|
chainId: string;
|
|
1903
2095
|
/**
|
|
@@ -1909,6 +2101,30 @@ declare class NfTsService {
|
|
|
1909
2101
|
*/
|
|
1910
2102
|
tokenId: string;
|
|
1911
2103
|
}): CancelablePromise<any>;
|
|
2104
|
+
/**
|
|
2105
|
+
* List tokens
|
|
2106
|
+
* Lists tokens for an NFT contract.
|
|
2107
|
+
* @returns ListNftTokens
|
|
2108
|
+
* @throws ApiError
|
|
2109
|
+
*/
|
|
2110
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2111
|
+
/**
|
|
2112
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2113
|
+
*/
|
|
2114
|
+
chainId: string;
|
|
2115
|
+
/**
|
|
2116
|
+
* Contract address on the relevant chain.
|
|
2117
|
+
*/
|
|
2118
|
+
address: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2121
|
+
*/
|
|
2122
|
+
pageToken?: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2125
|
+
*/
|
|
2126
|
+
pageSize?: number;
|
|
2127
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
2128
|
/**
|
|
1913
2129
|
* Get token details
|
|
1914
2130
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +2133,7 @@ declare class NfTsService {
|
|
|
1917
2133
|
*/
|
|
1918
2134
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
2135
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2136
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
2137
|
*/
|
|
1922
2138
|
chainId: string;
|
|
1923
2139
|
/**
|
|
@@ -1936,8 +2152,12 @@ type EvmNetworkOptions = {
|
|
|
1936
2152
|
includeChains: Array<string>;
|
|
1937
2153
|
};
|
|
1938
2154
|
|
|
2155
|
+
declare enum EVMOperationType {
|
|
2156
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2157
|
+
}
|
|
2158
|
+
|
|
1939
2159
|
type CreateEvmTransactionExportRequest = {
|
|
1940
|
-
type:
|
|
2160
|
+
type: EVMOperationType;
|
|
1941
2161
|
firstDate: string;
|
|
1942
2162
|
lastDate: string;
|
|
1943
2163
|
/**
|
|
@@ -1950,10 +2170,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1950
2170
|
endDate: string;
|
|
1951
2171
|
options: EvmNetworkOptions;
|
|
1952
2172
|
};
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2173
|
+
|
|
2174
|
+
declare enum PrimaryNetworkOperationType {
|
|
2175
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2176
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2177
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1957
2178
|
}
|
|
1958
2179
|
|
|
1959
2180
|
type PrimaryNetworkOptions = {
|
|
@@ -1963,7 +2184,7 @@ type PrimaryNetworkOptions = {
|
|
|
1963
2184
|
};
|
|
1964
2185
|
|
|
1965
2186
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1966
|
-
type:
|
|
2187
|
+
type: PrimaryNetworkOperationType;
|
|
1967
2188
|
firstDate: string;
|
|
1968
2189
|
lastDate: string;
|
|
1969
2190
|
/**
|
|
@@ -1976,11 +2197,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1976
2197
|
endDate: string;
|
|
1977
2198
|
options: PrimaryNetworkOptions;
|
|
1978
2199
|
};
|
|
1979
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1980
|
-
enum type {
|
|
1981
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
2200
|
|
|
1985
2201
|
declare enum OperationStatus {
|
|
1986
2202
|
RUNNING = "RUNNING",
|
|
@@ -1990,8 +2206,10 @@ declare enum OperationStatus {
|
|
|
1990
2206
|
}
|
|
1991
2207
|
|
|
1992
2208
|
declare enum OperationType {
|
|
1993
|
-
|
|
1994
|
-
|
|
2209
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2210
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2211
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2212
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1995
2213
|
}
|
|
1996
2214
|
|
|
1997
2215
|
declare enum OperationStatusCode {
|
|
@@ -2025,17 +2243,6 @@ type OperationStatusResponse = {
|
|
|
2025
2243
|
declare class OperationsService {
|
|
2026
2244
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2245
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2246
|
/**
|
|
2040
2247
|
* Get operation
|
|
2041
2248
|
* Gets operation details for the given operation id.
|
|
@@ -2048,9 +2255,20 @@ declare class OperationsService {
|
|
|
2048
2255
|
*/
|
|
2049
2256
|
operationId: string;
|
|
2050
2257
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2258
|
+
/**
|
|
2259
|
+
* Create transaction export operation
|
|
2260
|
+
* Trigger a transaction export operation with given parameters.
|
|
2261
|
+
*
|
|
2262
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2263
|
+
* @returns OperationStatusResponse
|
|
2264
|
+
* @throws ApiError
|
|
2265
|
+
*/
|
|
2266
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2267
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2268
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
declare enum BlockchainIds {
|
|
2054
2272
|
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
2055
2273
|
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
2056
2274
|
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
@@ -2183,13 +2401,44 @@ type BlockchainInfo = {
|
|
|
2183
2401
|
blockchainId: string;
|
|
2184
2402
|
};
|
|
2185
2403
|
|
|
2404
|
+
type SubnetOwnershipInfo = {
|
|
2405
|
+
/**
|
|
2406
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2407
|
+
*/
|
|
2408
|
+
locktime: number;
|
|
2409
|
+
/**
|
|
2410
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2411
|
+
*/
|
|
2412
|
+
threshold: number;
|
|
2413
|
+
/**
|
|
2414
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2415
|
+
*/
|
|
2416
|
+
addresses: Array<string>;
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2186
2419
|
type Subnet = {
|
|
2187
2420
|
createBlockTimestamp: number;
|
|
2188
2421
|
createBlockIndex: string;
|
|
2189
2422
|
subnetId: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2425
|
+
* @deprecated
|
|
2426
|
+
*/
|
|
2190
2427
|
ownerAddresses: Array<string>;
|
|
2428
|
+
/**
|
|
2429
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2430
|
+
* @deprecated
|
|
2431
|
+
*/
|
|
2191
2432
|
threshold: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2435
|
+
* @deprecated
|
|
2436
|
+
*/
|
|
2192
2437
|
locktime: number;
|
|
2438
|
+
/**
|
|
2439
|
+
* Latest subnet owner details for this Subnet.
|
|
2440
|
+
*/
|
|
2441
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2193
2442
|
blockchains: Array<BlockchainInfo>;
|
|
2194
2443
|
};
|
|
2195
2444
|
|
|
@@ -2285,6 +2534,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2534
|
}
|
|
2286
2535
|
}
|
|
2287
2536
|
|
|
2537
|
+
type RemovedValidatorDetails = {
|
|
2538
|
+
txHash: string;
|
|
2539
|
+
nodeId: string;
|
|
2540
|
+
subnetId: string;
|
|
2541
|
+
amountStaked: string;
|
|
2542
|
+
delegationFee?: string;
|
|
2543
|
+
startTimestamp: number;
|
|
2544
|
+
endTimestamp: number;
|
|
2545
|
+
removeTxHash: string;
|
|
2546
|
+
removeTimestamp: number;
|
|
2547
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2548
|
+
};
|
|
2549
|
+
declare namespace RemovedValidatorDetails {
|
|
2550
|
+
enum validationStatus {
|
|
2551
|
+
REMOVED = "removed"
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2288
2555
|
type ListValidatorDetailsResponse = {
|
|
2289
2556
|
/**
|
|
2290
2557
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2293,7 +2560,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2560
|
/**
|
|
2294
2561
|
* The list of validator Details.
|
|
2295
2562
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2563
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2564
|
};
|
|
2298
2565
|
|
|
2299
2566
|
declare enum Network {
|
|
@@ -2304,7 +2571,24 @@ declare enum Network {
|
|
|
2304
2571
|
declare enum ValidationStatusType {
|
|
2305
2572
|
COMPLETED = "completed",
|
|
2306
2573
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2574
|
+
PENDING = "pending",
|
|
2575
|
+
REMOVED = "removed"
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2580
|
+
*/
|
|
2581
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2582
|
+
FIXED = "fixed",
|
|
2583
|
+
VARIABLE = "variable"
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/**
|
|
2587
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2588
|
+
*/
|
|
2589
|
+
declare enum PrimaryNetworkAssetType {
|
|
2590
|
+
SECP256K1 = "secp256k1",
|
|
2591
|
+
NFT = "nft"
|
|
2308
2592
|
}
|
|
2309
2593
|
|
|
2310
2594
|
type XChainAssetDetails = {
|
|
@@ -2324,18 +2608,12 @@ type XChainAssetDetails = {
|
|
|
2324
2608
|
* Denomination of this asset to represent fungibility.
|
|
2325
2609
|
*/
|
|
2326
2610
|
denomination: number;
|
|
2327
|
-
|
|
2328
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2329
|
-
*/
|
|
2330
|
-
type: string;
|
|
2611
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2612
|
/**
|
|
2332
2613
|
* Timestamp in seconds this asset was created on.
|
|
2333
2614
|
*/
|
|
2334
2615
|
createdAtTimestamp: number;
|
|
2335
|
-
|
|
2336
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2337
|
-
*/
|
|
2338
|
-
cap: string;
|
|
2616
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2617
|
};
|
|
2340
2618
|
|
|
2341
2619
|
declare enum XChainId {
|
|
@@ -2401,19 +2679,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2679
|
* @returns ListBlockchainsResponse
|
|
2402
2680
|
* @throws ApiError
|
|
2403
2681
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2682
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2683
|
/**
|
|
2406
2684
|
* Either mainnet or a testnet.
|
|
2407
2685
|
*/
|
|
2408
2686
|
network: Network;
|
|
2409
|
-
/**
|
|
2410
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2411
|
-
*/
|
|
2412
|
-
pageSize?: number;
|
|
2413
2687
|
/**
|
|
2414
2688
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2689
|
*/
|
|
2416
2690
|
pageToken?: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2693
|
+
*/
|
|
2694
|
+
pageSize?: number;
|
|
2417
2695
|
/**
|
|
2418
2696
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2419
2697
|
*/
|
|
@@ -2425,19 +2703,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2703
|
* @returns ListSubnetsResponse
|
|
2426
2704
|
* @throws ApiError
|
|
2427
2705
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2706
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2707
|
/**
|
|
2430
2708
|
* Either mainnet or a testnet.
|
|
2431
2709
|
*/
|
|
2432
2710
|
network: Network;
|
|
2433
|
-
/**
|
|
2434
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2435
|
-
*/
|
|
2436
|
-
pageSize?: number;
|
|
2437
2711
|
/**
|
|
2438
2712
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2713
|
*/
|
|
2440
2714
|
pageToken?: string;
|
|
2715
|
+
/**
|
|
2716
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2717
|
+
*/
|
|
2718
|
+
pageSize?: number;
|
|
2441
2719
|
/**
|
|
2442
2720
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2443
2721
|
*/
|
|
@@ -2449,55 +2727,55 @@ declare class PrimaryNetworkService {
|
|
|
2449
2727
|
* @returns ListValidatorDetailsResponse
|
|
2450
2728
|
* @throws ApiError
|
|
2451
2729
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2730
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2731
|
/**
|
|
2454
2732
|
* Either mainnet or a testnet.
|
|
2455
2733
|
*/
|
|
2456
2734
|
network: Network;
|
|
2735
|
+
/**
|
|
2736
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2737
|
+
*/
|
|
2738
|
+
pageToken?: string;
|
|
2457
2739
|
/**
|
|
2458
2740
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
2741
|
*/
|
|
2460
2742
|
pageSize?: number;
|
|
2461
2743
|
/**
|
|
2462
|
-
* A
|
|
2744
|
+
* A comma separated list of node ids to filter by.
|
|
2463
2745
|
*/
|
|
2464
|
-
|
|
2746
|
+
nodeIds?: string;
|
|
2465
2747
|
/**
|
|
2466
|
-
* The
|
|
2748
|
+
* 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.
|
|
2467
2749
|
*/
|
|
2468
|
-
|
|
2750
|
+
sortOrder?: SortOrder;
|
|
2469
2751
|
/**
|
|
2470
|
-
*
|
|
2752
|
+
* Validation status of the node.
|
|
2471
2753
|
*/
|
|
2472
|
-
|
|
2754
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2755
|
/**
|
|
2474
2756
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2475
2757
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2758
|
+
minDelegationCapacity?: string;
|
|
2477
2759
|
/**
|
|
2478
2760
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2479
2761
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2481
|
-
/**
|
|
2482
|
-
* 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.
|
|
2483
|
-
*/
|
|
2484
|
-
minFeePercentage?: any;
|
|
2762
|
+
maxDelegationCapacity?: string;
|
|
2485
2763
|
/**
|
|
2486
|
-
* The
|
|
2764
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2765
|
*/
|
|
2488
|
-
|
|
2766
|
+
minTimeRemaining?: number;
|
|
2489
2767
|
/**
|
|
2490
|
-
*
|
|
2768
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2769
|
*/
|
|
2492
|
-
|
|
2770
|
+
maxTimeRemaining?: number;
|
|
2493
2771
|
/**
|
|
2494
|
-
* The
|
|
2772
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2495
2773
|
*/
|
|
2496
|
-
|
|
2774
|
+
minFeePercentage?: number;
|
|
2497
2775
|
/**
|
|
2498
|
-
*
|
|
2776
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2499
2777
|
*/
|
|
2500
|
-
|
|
2778
|
+
maxFeePercentage?: number;
|
|
2501
2779
|
/**
|
|
2502
2780
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2781
|
*/
|
|
@@ -2509,7 +2787,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2787
|
* @returns ListValidatorDetailsResponse
|
|
2510
2788
|
* @throws ApiError
|
|
2511
2789
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2790
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2791
|
/**
|
|
2514
2792
|
* Either mainnet or a testnet.
|
|
2515
2793
|
*/
|
|
@@ -2518,14 +2796,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2796
|
* A primary network (P or X chain) nodeId.
|
|
2519
2797
|
*/
|
|
2520
2798
|
nodeId: string;
|
|
2521
|
-
/**
|
|
2522
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2523
|
-
*/
|
|
2524
|
-
pageSize?: number;
|
|
2525
2799
|
/**
|
|
2526
2800
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2801
|
*/
|
|
2528
2802
|
pageToken?: string;
|
|
2803
|
+
/**
|
|
2804
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2805
|
+
*/
|
|
2806
|
+
pageSize?: number;
|
|
2529
2807
|
/**
|
|
2530
2808
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2531
2809
|
*/
|
|
@@ -2541,19 +2819,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2819
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2820
|
* @throws ApiError
|
|
2543
2821
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2822
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2823
|
/**
|
|
2546
2824
|
* Either mainnet or a testnet.
|
|
2547
2825
|
*/
|
|
2548
2826
|
network: Network;
|
|
2549
|
-
/**
|
|
2550
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2551
|
-
*/
|
|
2552
|
-
pageSize?: number;
|
|
2553
2827
|
/**
|
|
2554
2828
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2829
|
*/
|
|
2556
2830
|
pageToken?: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2833
|
+
*/
|
|
2834
|
+
pageSize?: number;
|
|
2557
2835
|
/**
|
|
2558
2836
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2837
|
*/
|
|
@@ -2601,10 +2879,7 @@ type CChainSharedAssetBalance = {
|
|
|
2601
2879
|
* Denomination of this asset to represent fungibility.
|
|
2602
2880
|
*/
|
|
2603
2881
|
denomination: number;
|
|
2604
|
-
|
|
2605
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2606
|
-
*/
|
|
2607
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2883
|
/**
|
|
2609
2884
|
* Amount of the asset.
|
|
2610
2885
|
*/
|
|
@@ -2639,49 +2914,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2914
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2915
|
};
|
|
2641
2916
|
|
|
2642
|
-
type
|
|
2917
|
+
type AggregatedAssetAmount = {
|
|
2918
|
+
/**
|
|
2919
|
+
* Unique ID for an asset.
|
|
2920
|
+
*/
|
|
2643
2921
|
assetId: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* Name of this asset.
|
|
2924
|
+
*/
|
|
2925
|
+
name: string;
|
|
2926
|
+
/**
|
|
2927
|
+
* Symbol for this asset (max 4 characters).
|
|
2928
|
+
*/
|
|
2929
|
+
symbol: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Denomination of this asset to represent fungibility.
|
|
2932
|
+
*/
|
|
2933
|
+
denomination: number;
|
|
2934
|
+
type: PrimaryNetworkAssetType;
|
|
2935
|
+
/**
|
|
2936
|
+
* Amount of the asset.
|
|
2937
|
+
*/
|
|
2644
2938
|
amount: string;
|
|
2939
|
+
utxoCount: number;
|
|
2645
2940
|
};
|
|
2646
2941
|
|
|
2647
2942
|
type PChainSharedAsset = {
|
|
2943
|
+
/**
|
|
2944
|
+
* Unique ID for an asset.
|
|
2945
|
+
*/
|
|
2648
2946
|
assetId: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* Name of this asset.
|
|
2949
|
+
*/
|
|
2950
|
+
name: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Symbol for this asset (max 4 characters).
|
|
2953
|
+
*/
|
|
2954
|
+
symbol: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* Denomination of this asset to represent fungibility.
|
|
2957
|
+
*/
|
|
2958
|
+
denomination: number;
|
|
2959
|
+
type: PrimaryNetworkAssetType;
|
|
2960
|
+
/**
|
|
2961
|
+
* Amount of the asset.
|
|
2962
|
+
*/
|
|
2649
2963
|
amount: string;
|
|
2964
|
+
utxoCount: number;
|
|
2650
2965
|
sharedWithChainId: string;
|
|
2651
2966
|
status: string;
|
|
2652
2967
|
};
|
|
2653
2968
|
|
|
2654
2969
|
type PChainBalance = {
|
|
2655
2970
|
/**
|
|
2656
|
-
* A list of objects containing P-chain Asset
|
|
2971
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2657
2972
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2973
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2659
2974
|
/**
|
|
2660
|
-
* A list of objects containing P-chain Asset
|
|
2975
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2661
2976
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2977
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2663
2978
|
/**
|
|
2664
|
-
* A list of objects containing P-chain Asset
|
|
2979
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2665
2980
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2981
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2667
2982
|
/**
|
|
2668
|
-
* A list of objects containing P-chain Asset
|
|
2983
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2669
2984
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2985
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2671
2986
|
/**
|
|
2672
|
-
* A list of objects containing P-chain Asset
|
|
2987
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2673
2988
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2989
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2675
2990
|
/**
|
|
2676
|
-
* A list of objects containing P-chain Asset
|
|
2991
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2677
2992
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2993
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2679
2994
|
/**
|
|
2680
|
-
* A list of objects containing P-chain Asset
|
|
2995
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2681
2996
|
*/
|
|
2682
2997
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2683
2998
|
/**
|
|
2684
|
-
* A list of objects containing P-chain Asset
|
|
2999
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2685
3000
|
*/
|
|
2686
3001
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2687
3002
|
};
|
|
@@ -2691,34 +3006,6 @@ type ListPChainBalancesResponse = {
|
|
|
2691
3006
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2692
3007
|
};
|
|
2693
3008
|
|
|
2694
|
-
type XChainAssetBalance = {
|
|
2695
|
-
/**
|
|
2696
|
-
* Unique ID for an asset.
|
|
2697
|
-
*/
|
|
2698
|
-
assetId: string;
|
|
2699
|
-
/**
|
|
2700
|
-
* Name of this asset.
|
|
2701
|
-
*/
|
|
2702
|
-
name: string;
|
|
2703
|
-
/**
|
|
2704
|
-
* Symbol for this asset (max 4 characters).
|
|
2705
|
-
*/
|
|
2706
|
-
symbol: string;
|
|
2707
|
-
/**
|
|
2708
|
-
* Denomination of this asset to represent fungibility.
|
|
2709
|
-
*/
|
|
2710
|
-
denomination: number;
|
|
2711
|
-
/**
|
|
2712
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2713
|
-
*/
|
|
2714
|
-
type: string;
|
|
2715
|
-
/**
|
|
2716
|
-
* Amount of the asset.
|
|
2717
|
-
*/
|
|
2718
|
-
amount: string;
|
|
2719
|
-
utxoCount: number;
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
3009
|
type XChainSharedAssetBalance = {
|
|
2723
3010
|
/**
|
|
2724
3011
|
* Unique ID for an asset.
|
|
@@ -2736,10 +3023,7 @@ type XChainSharedAssetBalance = {
|
|
|
2736
3023
|
* Denomination of this asset to represent fungibility.
|
|
2737
3024
|
*/
|
|
2738
3025
|
denomination: number;
|
|
2739
|
-
|
|
2740
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2741
|
-
*/
|
|
2742
|
-
type: string;
|
|
3026
|
+
type: PrimaryNetworkAssetType;
|
|
2743
3027
|
/**
|
|
2744
3028
|
* Amount of the asset.
|
|
2745
3029
|
*/
|
|
@@ -2752,11 +3036,11 @@ type XChainBalances = {
|
|
|
2752
3036
|
/**
|
|
2753
3037
|
* A list of objects containing X-chain Asset balance information.
|
|
2754
3038
|
*/
|
|
2755
|
-
locked: Array<
|
|
3039
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2756
3040
|
/**
|
|
2757
3041
|
* A list of objects containing X-chain Asset balance information.
|
|
2758
3042
|
*/
|
|
2759
|
-
unlocked: Array<
|
|
3043
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2760
3044
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2761
3045
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2762
3046
|
};
|
|
@@ -2814,6 +3098,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
3098
|
txCount: number;
|
|
2815
3099
|
transactions: Array<string>;
|
|
2816
3100
|
blockSizeBytes: number;
|
|
3101
|
+
currentSupply?: string;
|
|
2817
3102
|
proposerDetails?: ProposerDetails;
|
|
2818
3103
|
};
|
|
2819
3104
|
|
|
@@ -2826,6 +3111,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3111
|
txCount: number;
|
|
2827
3112
|
transactions: Array<string>;
|
|
2828
3113
|
blockSizeBytes: number;
|
|
3114
|
+
currentSupply?: string;
|
|
2829
3115
|
proposerDetails?: ProposerDetails;
|
|
2830
3116
|
};
|
|
2831
3117
|
|
|
@@ -2867,7 +3153,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3153
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3154
|
* @throws ApiError
|
|
2869
3155
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3156
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3157
|
/**
|
|
2872
3158
|
* A primary network blockchain id or alias.
|
|
2873
3159
|
*/
|
|
@@ -2880,14 +3166,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3166
|
* A primary network (P or X chain) nodeId.
|
|
2881
3167
|
*/
|
|
2882
3168
|
nodeId: string;
|
|
2883
|
-
/**
|
|
2884
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2885
|
-
*/
|
|
2886
|
-
pageSize?: number;
|
|
2887
3169
|
/**
|
|
2888
3170
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3171
|
*/
|
|
2890
3172
|
pageToken?: string;
|
|
3173
|
+
/**
|
|
3174
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3175
|
+
*/
|
|
3176
|
+
pageSize?: number;
|
|
2891
3177
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3178
|
/**
|
|
2893
3179
|
* List latest blocks
|
|
@@ -2895,7 +3181,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3181
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3182
|
* @throws ApiError
|
|
2897
3183
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3184
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3185
|
/**
|
|
2900
3186
|
* A primary network blockchain id or alias.
|
|
2901
3187
|
*/
|
|
@@ -2904,17 +3190,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3190
|
* Either mainnet or a testnet.
|
|
2905
3191
|
*/
|
|
2906
3192
|
network: Network;
|
|
2907
|
-
/**
|
|
2908
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2909
|
-
*/
|
|
2910
|
-
pageSize?: number;
|
|
2911
3193
|
/**
|
|
2912
3194
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3195
|
*/
|
|
2914
3196
|
pageToken?: string;
|
|
3197
|
+
/**
|
|
3198
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3199
|
+
*/
|
|
3200
|
+
pageSize?: number;
|
|
2915
3201
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3202
|
}
|
|
2917
3203
|
|
|
3204
|
+
type AssetWithPriceInfo = {
|
|
3205
|
+
/**
|
|
3206
|
+
* Unique ID for an asset.
|
|
3207
|
+
*/
|
|
3208
|
+
assetId: string;
|
|
3209
|
+
/**
|
|
3210
|
+
* Name of this asset.
|
|
3211
|
+
*/
|
|
3212
|
+
name: string;
|
|
3213
|
+
/**
|
|
3214
|
+
* Symbol for this asset (max 4 characters).
|
|
3215
|
+
*/
|
|
3216
|
+
symbol: string;
|
|
3217
|
+
/**
|
|
3218
|
+
* Denomination of this asset to represent fungibility.
|
|
3219
|
+
*/
|
|
3220
|
+
denomination: number;
|
|
3221
|
+
type: PrimaryNetworkAssetType;
|
|
3222
|
+
/**
|
|
3223
|
+
* Amount of the asset.
|
|
3224
|
+
*/
|
|
3225
|
+
amount: string;
|
|
3226
|
+
/**
|
|
3227
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3228
|
+
*/
|
|
3229
|
+
historicalPrice?: Money;
|
|
3230
|
+
};
|
|
3231
|
+
|
|
2918
3232
|
declare enum RewardType {
|
|
2919
3233
|
VALIDATOR = "VALIDATOR",
|
|
2920
3234
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3248,7 @@ type HistoricalReward = {
|
|
|
2934
3248
|
rewardType: RewardType;
|
|
2935
3249
|
utxoId: string;
|
|
2936
3250
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3251
|
+
reward: AssetWithPriceInfo;
|
|
2941
3252
|
rewardTxHash: string;
|
|
2942
3253
|
};
|
|
2943
3254
|
|
|
@@ -2949,6 +3260,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2949
3260
|
historicalRewards: Array<HistoricalReward>;
|
|
2950
3261
|
};
|
|
2951
3262
|
|
|
3263
|
+
type AssetAmount = {
|
|
3264
|
+
/**
|
|
3265
|
+
* Unique ID for an asset.
|
|
3266
|
+
*/
|
|
3267
|
+
assetId: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* Name of this asset.
|
|
3270
|
+
*/
|
|
3271
|
+
name: string;
|
|
3272
|
+
/**
|
|
3273
|
+
* Symbol for this asset (max 4 characters).
|
|
3274
|
+
*/
|
|
3275
|
+
symbol: string;
|
|
3276
|
+
/**
|
|
3277
|
+
* Denomination of this asset to represent fungibility.
|
|
3278
|
+
*/
|
|
3279
|
+
denomination: number;
|
|
3280
|
+
type: PrimaryNetworkAssetType;
|
|
3281
|
+
/**
|
|
3282
|
+
* Amount of the asset.
|
|
3283
|
+
*/
|
|
3284
|
+
amount: string;
|
|
3285
|
+
};
|
|
3286
|
+
|
|
2952
3287
|
type PendingReward = {
|
|
2953
3288
|
/**
|
|
2954
3289
|
* An array of P-Chain wallet addresses.
|
|
@@ -2962,9 +3297,9 @@ type PendingReward = {
|
|
|
2962
3297
|
rewardType: RewardType;
|
|
2963
3298
|
progress: number;
|
|
2964
3299
|
/**
|
|
2965
|
-
* An object containing P-chain Asset
|
|
3300
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2966
3301
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3302
|
+
estimatedReward: AssetAmount;
|
|
2968
3303
|
};
|
|
2969
3304
|
|
|
2970
3305
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3319,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3319
|
* @returns ListPendingRewardsResponse
|
|
2985
3320
|
* @throws ApiError
|
|
2986
3321
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3322
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3323
|
/**
|
|
2989
3324
|
* Either mainnet or a testnet.
|
|
2990
3325
|
*/
|
|
2991
3326
|
network: Network;
|
|
2992
3327
|
/**
|
|
2993
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3328
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
|
|
2994
3329
|
*/
|
|
2995
3330
|
addresses?: string;
|
|
2996
|
-
/**
|
|
2997
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2998
|
-
*/
|
|
2999
|
-
pageSize?: number;
|
|
3000
3331
|
/**
|
|
3001
3332
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3333
|
*/
|
|
3003
3334
|
pageToken?: string;
|
|
3004
3335
|
/**
|
|
3005
|
-
*
|
|
3336
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3337
|
+
*/
|
|
3338
|
+
pageSize?: number;
|
|
3339
|
+
/**
|
|
3340
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3341
|
*/
|
|
3007
3342
|
nodeIds?: string;
|
|
3008
3343
|
/**
|
|
@@ -3016,68 +3351,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3351
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3352
|
* @throws ApiError
|
|
3018
3353
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3354
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3355
|
/**
|
|
3021
3356
|
* Either mainnet or a testnet.
|
|
3022
3357
|
*/
|
|
3023
3358
|
network: Network;
|
|
3024
3359
|
/**
|
|
3025
|
-
* 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".
|
|
3360
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3026
3361
|
*/
|
|
3027
3362
|
addresses?: string;
|
|
3028
|
-
/**
|
|
3029
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3030
|
-
*/
|
|
3031
|
-
pageSize?: number;
|
|
3032
3363
|
/**
|
|
3033
3364
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3365
|
*/
|
|
3035
3366
|
pageToken?: string;
|
|
3036
3367
|
/**
|
|
3037
|
-
*
|
|
3368
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3369
|
+
*/
|
|
3370
|
+
pageSize?: number;
|
|
3371
|
+
/**
|
|
3372
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3373
|
*/
|
|
3039
3374
|
nodeIds?: string;
|
|
3040
3375
|
/**
|
|
3041
3376
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3042
3377
|
*/
|
|
3043
3378
|
sortOrder?: SortOrder;
|
|
3379
|
+
/**
|
|
3380
|
+
* The currency that return values should use. Defaults to USD.
|
|
3381
|
+
*/
|
|
3382
|
+
currency?: CurrencyCode;
|
|
3044
3383
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3384
|
}
|
|
3046
3385
|
|
|
3047
|
-
type Asset = {
|
|
3048
|
-
/**
|
|
3049
|
-
* Unique ID for an asset.
|
|
3050
|
-
*/
|
|
3051
|
-
assetId: string;
|
|
3052
|
-
/**
|
|
3053
|
-
* Name of this asset.
|
|
3054
|
-
*/
|
|
3055
|
-
name: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Symbol for this asset (max 4 characters).
|
|
3058
|
-
*/
|
|
3059
|
-
symbol: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* Denomination of this asset to represent fungibility.
|
|
3062
|
-
*/
|
|
3063
|
-
denomination: number;
|
|
3064
|
-
/**
|
|
3065
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3066
|
-
*/
|
|
3067
|
-
type: string;
|
|
3068
|
-
/**
|
|
3069
|
-
* Amount of the asset.
|
|
3070
|
-
*/
|
|
3071
|
-
amount: string;
|
|
3072
|
-
};
|
|
3073
|
-
|
|
3074
3386
|
type UtxoCredential = {
|
|
3075
3387
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3388
|
+
* Signature provided to consume the output.
|
|
3077
3389
|
*/
|
|
3078
3390
|
signature?: string;
|
|
3079
3391
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3392
|
+
* Public key associated with the signature.
|
|
3081
3393
|
*/
|
|
3082
3394
|
publicKey?: string;
|
|
3083
3395
|
};
|
|
@@ -3088,9 +3400,9 @@ type EVMInput = {
|
|
|
3088
3400
|
*/
|
|
3089
3401
|
fromAddress: string;
|
|
3090
3402
|
/**
|
|
3091
|
-
*
|
|
3403
|
+
* AssetAmount details for the asset being transferred.
|
|
3092
3404
|
*/
|
|
3093
|
-
asset:
|
|
3405
|
+
asset: AssetAmount;
|
|
3094
3406
|
/**
|
|
3095
3407
|
* Credentials that signed this transaction.
|
|
3096
3408
|
*/
|
|
@@ -3099,66 +3411,66 @@ type EVMInput = {
|
|
|
3099
3411
|
|
|
3100
3412
|
type Utxo = {
|
|
3101
3413
|
/**
|
|
3102
|
-
*
|
|
3414
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3415
|
*/
|
|
3104
|
-
|
|
3105
|
-
asset:
|
|
3416
|
+
addresses: Array<string>;
|
|
3417
|
+
asset: AssetAmount;
|
|
3106
3418
|
/**
|
|
3107
|
-
*
|
|
3419
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3420
|
*/
|
|
3109
|
-
|
|
3421
|
+
consumedOnChainId: string;
|
|
3110
3422
|
/**
|
|
3111
|
-
*
|
|
3423
|
+
* Transaction ID that consumed this output.
|
|
3112
3424
|
*/
|
|
3113
|
-
|
|
3425
|
+
consumingTxHash?: string;
|
|
3114
3426
|
/**
|
|
3115
|
-
* Blockchain ID on which this output is
|
|
3427
|
+
* Blockchain ID on which this output is created on.
|
|
3116
3428
|
*/
|
|
3117
|
-
|
|
3429
|
+
createdOnChainId: string;
|
|
3118
3430
|
/**
|
|
3119
|
-
*
|
|
3431
|
+
* UTXO ID for this output.
|
|
3120
3432
|
*/
|
|
3121
|
-
|
|
3433
|
+
utxoId: string;
|
|
3122
3434
|
/**
|
|
3123
|
-
*
|
|
3435
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3124
3436
|
*/
|
|
3125
|
-
|
|
3437
|
+
consumingTxTimestamp?: number;
|
|
3126
3438
|
/**
|
|
3127
|
-
*
|
|
3439
|
+
* Transaction ID that created this output.
|
|
3128
3440
|
*/
|
|
3129
|
-
|
|
3441
|
+
creationTxHash: string;
|
|
3130
3442
|
/**
|
|
3131
|
-
*
|
|
3443
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3132
3444
|
*/
|
|
3133
|
-
|
|
3445
|
+
credentials?: Array<UtxoCredential>;
|
|
3134
3446
|
/**
|
|
3135
|
-
*
|
|
3447
|
+
* Index representing the minting set for the NFT mint output.
|
|
3136
3448
|
*/
|
|
3137
|
-
|
|
3449
|
+
groupId?: number;
|
|
3138
3450
|
/**
|
|
3139
3451
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3452
|
*/
|
|
3141
3453
|
locktime: number;
|
|
3142
3454
|
/**
|
|
3143
|
-
*
|
|
3455
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3456
|
*/
|
|
3145
|
-
|
|
3457
|
+
outputIndex: string;
|
|
3146
3458
|
/**
|
|
3147
|
-
*
|
|
3459
|
+
* Hex encoded data for NFT assets.
|
|
3148
3460
|
*/
|
|
3149
|
-
|
|
3461
|
+
payload?: string;
|
|
3150
3462
|
/**
|
|
3151
|
-
*
|
|
3463
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3464
|
*/
|
|
3153
|
-
|
|
3465
|
+
threshold: number;
|
|
3154
3466
|
/**
|
|
3155
|
-
*
|
|
3467
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3468
|
*/
|
|
3157
|
-
|
|
3469
|
+
timestamp: number;
|
|
3158
3470
|
/**
|
|
3159
|
-
*
|
|
3471
|
+
* Type of output.
|
|
3160
3472
|
*/
|
|
3161
|
-
|
|
3473
|
+
utxoType: string;
|
|
3162
3474
|
};
|
|
3163
3475
|
|
|
3164
3476
|
type CChainExportTransaction = {
|
|
@@ -3185,11 +3497,11 @@ type CChainExportTransaction = {
|
|
|
3185
3497
|
/**
|
|
3186
3498
|
* Assets unlocked by inputs of this transaction.
|
|
3187
3499
|
*/
|
|
3188
|
-
amountUnlocked: Array<
|
|
3500
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3189
3501
|
/**
|
|
3190
3502
|
* Assets created by outputs of this transaction.
|
|
3191
3503
|
*/
|
|
3192
|
-
amountCreated: Array<
|
|
3504
|
+
amountCreated: Array<AssetAmount>;
|
|
3193
3505
|
/**
|
|
3194
3506
|
* Source chain for an atomic transaction.
|
|
3195
3507
|
*/
|
|
@@ -3220,9 +3532,9 @@ type EVMOutput = {
|
|
|
3220
3532
|
*/
|
|
3221
3533
|
toAddress: string;
|
|
3222
3534
|
/**
|
|
3223
|
-
*
|
|
3535
|
+
* AssetAmount details for the asset being transferred.
|
|
3224
3536
|
*/
|
|
3225
|
-
asset:
|
|
3537
|
+
asset: AssetAmount;
|
|
3226
3538
|
};
|
|
3227
3539
|
|
|
3228
3540
|
type CChainImportTransaction = {
|
|
@@ -3249,11 +3561,11 @@ type CChainImportTransaction = {
|
|
|
3249
3561
|
/**
|
|
3250
3562
|
* Assets unlocked by inputs of this transaction.
|
|
3251
3563
|
*/
|
|
3252
|
-
amountUnlocked: Array<
|
|
3564
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3253
3565
|
/**
|
|
3254
3566
|
* Assets created by outputs of this transaction.
|
|
3255
3567
|
*/
|
|
3256
|
-
amountCreated: Array<
|
|
3568
|
+
amountCreated: Array<AssetAmount>;
|
|
3257
3569
|
/**
|
|
3258
3570
|
* Source chain for an atomic transaction.
|
|
3259
3571
|
*/
|
|
@@ -3289,17 +3601,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3601
|
|
|
3290
3602
|
declare enum PChainTransactionType {
|
|
3291
3603
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3604
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3605
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3606
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3607
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3608
|
IMPORT_TX = "ImportTx",
|
|
3301
3609
|
EXPORT_TX = "ExportTx",
|
|
3302
3610
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3611
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3612
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3613
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3614
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3615
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3616
|
+
BASE_TX = "BaseTx",
|
|
3617
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3303
3618
|
UNKNOWN = "UNKNOWN"
|
|
3304
3619
|
}
|
|
3305
3620
|
|
|
@@ -3310,29 +3625,48 @@ declare enum UtxoType {
|
|
|
3310
3625
|
|
|
3311
3626
|
type PChainUtxo = {
|
|
3312
3627
|
/**
|
|
3313
|
-
*
|
|
3628
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3629
|
*/
|
|
3315
3630
|
addresses: Array<string>;
|
|
3631
|
+
asset: AssetAmount;
|
|
3632
|
+
/**
|
|
3633
|
+
* Blockchain ID on which this output is consumed on.
|
|
3634
|
+
*/
|
|
3635
|
+
consumedOnChainId: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Transaction ID that consumed this output.
|
|
3638
|
+
*/
|
|
3639
|
+
consumingTxHash?: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* Blockchain ID on which this output is created on.
|
|
3642
|
+
*/
|
|
3643
|
+
createdOnChainId: string;
|
|
3644
|
+
/**
|
|
3645
|
+
* UTXO ID for this output.
|
|
3646
|
+
*/
|
|
3316
3647
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3648
|
+
/**
|
|
3649
|
+
* @deprecated
|
|
3650
|
+
*/
|
|
3651
|
+
amount: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* @deprecated
|
|
3654
|
+
*/
|
|
3655
|
+
assetId: string;
|
|
3319
3656
|
blockNumber: string;
|
|
3320
3657
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3658
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3659
|
+
consumingBlockTimestamp?: number;
|
|
3328
3660
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3661
|
+
outputIndex: number;
|
|
3662
|
+
rewardType?: RewardType;
|
|
3663
|
+
stakeableLocktime?: number;
|
|
3332
3664
|
staked?: boolean;
|
|
3333
|
-
|
|
3665
|
+
threshold?: number;
|
|
3666
|
+
txHash: string;
|
|
3334
3667
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3668
|
+
utxoStartTimestamp?: number;
|
|
3669
|
+
utxoType: UtxoType;
|
|
3336
3670
|
};
|
|
3337
3671
|
|
|
3338
3672
|
type PChainTransaction = {
|
|
@@ -3358,17 +3692,17 @@ type PChainTransaction = {
|
|
|
3358
3692
|
*/
|
|
3359
3693
|
destinationChain?: string;
|
|
3360
3694
|
/**
|
|
3361
|
-
* A list of objects containing P-chain Asset
|
|
3695
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3362
3696
|
*/
|
|
3363
|
-
value: Array<
|
|
3697
|
+
value: Array<AssetAmount>;
|
|
3364
3698
|
/**
|
|
3365
|
-
* A list of objects containing P-chain Asset
|
|
3699
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3366
3700
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3701
|
+
amountBurned: Array<AssetAmount>;
|
|
3368
3702
|
/**
|
|
3369
|
-
* A list of objects containing P-chain Asset
|
|
3703
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3704
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3705
|
+
amountStaked: Array<AssetAmount>;
|
|
3372
3706
|
/**
|
|
3373
3707
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3708
|
*/
|
|
@@ -3400,6 +3734,10 @@ type PChainTransaction = {
|
|
|
3400
3734
|
* Present for RewardValidatorTx
|
|
3401
3735
|
*/
|
|
3402
3736
|
stakingTxHash?: string;
|
|
3737
|
+
/**
|
|
3738
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3739
|
+
*/
|
|
3740
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3403
3741
|
};
|
|
3404
3742
|
|
|
3405
3743
|
type ListPChainTransactionsResponse = {
|
|
@@ -3411,6 +3749,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3749
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3750
|
};
|
|
3413
3751
|
|
|
3752
|
+
/**
|
|
3753
|
+
* Type of transaction.
|
|
3754
|
+
*/
|
|
3755
|
+
declare enum XChainTransactionType {
|
|
3756
|
+
BASE_TX = "BaseTx",
|
|
3757
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3758
|
+
OPERATION_TX = "OperationTx",
|
|
3759
|
+
IMPORT_TX = "ImportTx",
|
|
3760
|
+
EXPORT_TX = "ExportTx",
|
|
3761
|
+
UNKNOWN = "UNKNOWN"
|
|
3762
|
+
}
|
|
3763
|
+
|
|
3414
3764
|
type XChainLinearTransaction = {
|
|
3415
3765
|
/**
|
|
3416
3766
|
* Unique ID for this transaction.
|
|
@@ -3424,10 +3774,7 @@ type XChainLinearTransaction = {
|
|
|
3424
3774
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3425
3775
|
*/
|
|
3426
3776
|
timestamp: number;
|
|
3427
|
-
|
|
3428
|
-
* Type of transaction.
|
|
3429
|
-
*/
|
|
3430
|
-
txType: string;
|
|
3777
|
+
txType: XChainTransactionType;
|
|
3431
3778
|
/**
|
|
3432
3779
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3780
|
*/
|
|
@@ -3437,11 +3784,11 @@ type XChainLinearTransaction = {
|
|
|
3437
3784
|
/**
|
|
3438
3785
|
* Assets unlocked by inputs of this transaction.
|
|
3439
3786
|
*/
|
|
3440
|
-
amountUnlocked: Array<
|
|
3787
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3441
3788
|
/**
|
|
3442
3789
|
* Assets created by outputs of this transaction.
|
|
3443
3790
|
*/
|
|
3444
|
-
amountCreated: Array<
|
|
3791
|
+
amountCreated: Array<AssetAmount>;
|
|
3445
3792
|
/**
|
|
3446
3793
|
* Source chain for an atomic transaction.
|
|
3447
3794
|
*/
|
|
@@ -3451,7 +3798,7 @@ type XChainLinearTransaction = {
|
|
|
3451
3798
|
*/
|
|
3452
3799
|
destinationChain?: string;
|
|
3453
3800
|
/**
|
|
3454
|
-
*
|
|
3801
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3455
3802
|
*/
|
|
3456
3803
|
assetCreated?: XChainAssetDetails;
|
|
3457
3804
|
/**
|
|
@@ -3501,10 +3848,7 @@ type XChainNonLinearTransaction = {
|
|
|
3501
3848
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3502
3849
|
*/
|
|
3503
3850
|
timestamp: number;
|
|
3504
|
-
|
|
3505
|
-
* Type of transaction.
|
|
3506
|
-
*/
|
|
3507
|
-
txType: string;
|
|
3851
|
+
txType: XChainTransactionType;
|
|
3508
3852
|
/**
|
|
3509
3853
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3854
|
*/
|
|
@@ -3514,11 +3858,11 @@ type XChainNonLinearTransaction = {
|
|
|
3514
3858
|
/**
|
|
3515
3859
|
* Assets unlocked by inputs of this transaction.
|
|
3516
3860
|
*/
|
|
3517
|
-
amountUnlocked: Array<
|
|
3861
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3518
3862
|
/**
|
|
3519
3863
|
* Assets created by outputs of this transaction.
|
|
3520
3864
|
*/
|
|
3521
|
-
amountCreated: Array<
|
|
3865
|
+
amountCreated: Array<AssetAmount>;
|
|
3522
3866
|
/**
|
|
3523
3867
|
* Source chain for an atomic transaction.
|
|
3524
3868
|
*/
|
|
@@ -3528,7 +3872,7 @@ type XChainNonLinearTransaction = {
|
|
|
3528
3872
|
*/
|
|
3529
3873
|
destinationChain?: string;
|
|
3530
3874
|
/**
|
|
3531
|
-
*
|
|
3875
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3532
3876
|
*/
|
|
3533
3877
|
assetCreated?: XChainAssetDetails;
|
|
3534
3878
|
/**
|
|
@@ -3562,19 +3906,21 @@ declare enum PChainId {
|
|
|
3562
3906
|
|
|
3563
3907
|
declare enum PrimaryNetworkTxType {
|
|
3564
3908
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3909
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3910
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3911
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3912
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3913
|
IMPORT_TX = "ImportTx",
|
|
3574
3914
|
EXPORT_TX = "ExportTx",
|
|
3575
3915
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3576
|
-
|
|
3916
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3917
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3918
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3919
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3920
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3577
3921
|
BASE_TX = "BaseTx",
|
|
3922
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3923
|
+
UNKNOWN = "UNKNOWN",
|
|
3578
3924
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3579
3925
|
OPERATION_TX = "OperationTx"
|
|
3580
3926
|
}
|
|
@@ -3606,13 +3952,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3952
|
* List latest transactions
|
|
3607
3953
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3954
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3955
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3610
3956
|
*
|
|
3611
3957
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3612
3958
|
* @returns any
|
|
3613
3959
|
* @throws ApiError
|
|
3614
3960
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3961
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3962
|
/**
|
|
3617
3963
|
* A primary network blockchain id or alias.
|
|
3618
3964
|
*/
|
|
@@ -3637,14 +3983,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3983
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3984
|
*/
|
|
3639
3985
|
endTimestamp?: number;
|
|
3640
|
-
/**
|
|
3641
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3642
|
-
*/
|
|
3643
|
-
pageSize?: number;
|
|
3644
3986
|
/**
|
|
3645
3987
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3988
|
*/
|
|
3647
3989
|
pageToken?: string;
|
|
3990
|
+
/**
|
|
3991
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3992
|
+
*/
|
|
3993
|
+
pageSize?: number;
|
|
3648
3994
|
/**
|
|
3649
3995
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3650
3996
|
*/
|
|
@@ -3656,7 +4002,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
4002
|
* @returns ListPChainTransactionsResponse
|
|
3657
4003
|
* @throws ApiError
|
|
3658
4004
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
4005
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
4006
|
/**
|
|
3661
4007
|
* A primary network blockchain id or alias.
|
|
3662
4008
|
*/
|
|
@@ -3681,14 +4027,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
4027
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
4028
|
*/
|
|
3683
4029
|
endTimestamp?: number;
|
|
3684
|
-
/**
|
|
3685
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3686
|
-
*/
|
|
3687
|
-
pageSize?: number;
|
|
3688
4030
|
/**
|
|
3689
4031
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
4032
|
*/
|
|
3691
4033
|
pageToken?: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4036
|
+
*/
|
|
4037
|
+
pageSize?: number;
|
|
3692
4038
|
/**
|
|
3693
4039
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3694
4040
|
*/
|
|
@@ -3700,7 +4046,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
4046
|
* @returns ListXChainTransactionsResponse
|
|
3701
4047
|
* @throws ApiError
|
|
3702
4048
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4049
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
4050
|
/**
|
|
3705
4051
|
* A primary network blockchain id or alias.
|
|
3706
4052
|
*/
|
|
@@ -3725,14 +4071,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
4071
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
4072
|
*/
|
|
3727
4073
|
endTimestamp?: number;
|
|
3728
|
-
/**
|
|
3729
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3730
|
-
*/
|
|
3731
|
-
pageSize?: number;
|
|
3732
4074
|
/**
|
|
3733
4075
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
4076
|
*/
|
|
3735
4077
|
pageToken?: string;
|
|
4078
|
+
/**
|
|
4079
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4080
|
+
*/
|
|
4081
|
+
pageSize?: number;
|
|
3736
4082
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
4083
|
}
|
|
3738
4084
|
|
|
@@ -3763,7 +4109,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
4109
|
* @returns any
|
|
3764
4110
|
* @throws ApiError
|
|
3765
4111
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4112
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
4113
|
/**
|
|
3768
4114
|
* A primary network blockchain id or alias.
|
|
3769
4115
|
*/
|
|
@@ -3776,14 +4122,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
4122
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3777
4123
|
*/
|
|
3778
4124
|
addresses?: string;
|
|
3779
|
-
/**
|
|
3780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3781
|
-
*/
|
|
3782
|
-
pageSize?: number;
|
|
3783
4125
|
/**
|
|
3784
4126
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4127
|
*/
|
|
3786
4128
|
pageToken?: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4131
|
+
*/
|
|
4132
|
+
pageSize?: number;
|
|
3787
4133
|
/**
|
|
3788
4134
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4135
|
*/
|
|
@@ -3828,7 +4174,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4174
|
* @returns ListXChainVerticesResponse
|
|
3829
4175
|
* @throws ApiError
|
|
3830
4176
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4177
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4178
|
/**
|
|
3833
4179
|
* A primary network blockchain id or alias.
|
|
3834
4180
|
*/
|
|
@@ -3837,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4183
|
* Either mainnet or a testnet.
|
|
3838
4184
|
*/
|
|
3839
4185
|
network: Network;
|
|
3840
|
-
/**
|
|
3841
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3842
|
-
*/
|
|
3843
|
-
pageSize?: number;
|
|
3844
4186
|
/**
|
|
3845
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4188
|
*/
|
|
3847
4189
|
pageToken?: string;
|
|
4190
|
+
/**
|
|
4191
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4192
|
+
*/
|
|
4193
|
+
pageSize?: number;
|
|
3848
4194
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4195
|
/**
|
|
3850
4196
|
* Get vertex
|
|
@@ -3872,7 +4218,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4218
|
* @returns ListXChainVerticesResponse
|
|
3873
4219
|
* @throws ApiError
|
|
3874
4220
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4221
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4222
|
/**
|
|
3877
4223
|
* The height of a vertex.
|
|
3878
4224
|
*/
|
|
@@ -3885,19 +4231,195 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4231
|
* Either mainnet or a testnet.
|
|
3886
4232
|
*/
|
|
3887
4233
|
network: Network;
|
|
4234
|
+
/**
|
|
4235
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4236
|
+
*/
|
|
4237
|
+
pageToken?: string;
|
|
3888
4238
|
/**
|
|
3889
4239
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
4240
|
*/
|
|
3891
4241
|
pageSize?: number;
|
|
4242
|
+
/**
|
|
4243
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
4244
|
+
*/
|
|
4245
|
+
sortOrder?: SortOrder;
|
|
4246
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
type TeleporterDestinationTransaction = {
|
|
4250
|
+
txHash: string;
|
|
4251
|
+
timestamp: number;
|
|
4252
|
+
gasSpent: string;
|
|
4253
|
+
rewardRedeemer: string;
|
|
4254
|
+
delivererAddress: string;
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
type TeleporterReceipt = {
|
|
4258
|
+
receivedMessageNonce: string;
|
|
4259
|
+
relayerRewardAddress: string;
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
type TeleporterRewardDetails = {
|
|
4263
|
+
/**
|
|
4264
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4265
|
+
*/
|
|
4266
|
+
address: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* The contract name.
|
|
4269
|
+
*/
|
|
4270
|
+
name: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* The contract symbol.
|
|
4273
|
+
*/
|
|
4274
|
+
symbol: string;
|
|
4275
|
+
/**
|
|
4276
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4277
|
+
*/
|
|
4278
|
+
decimals: number;
|
|
4279
|
+
/**
|
|
4280
|
+
* The logo uri for the address.
|
|
4281
|
+
*/
|
|
4282
|
+
logoUri?: string;
|
|
4283
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4284
|
+
/**
|
|
4285
|
+
* The token price, if available.
|
|
4286
|
+
*/
|
|
4287
|
+
price?: Money;
|
|
4288
|
+
value: string;
|
|
4289
|
+
};
|
|
4290
|
+
declare namespace TeleporterRewardDetails {
|
|
4291
|
+
enum ercType {
|
|
4292
|
+
ERC_20 = "ERC-20"
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4297
|
+
messageId: string;
|
|
4298
|
+
teleporterContractAddress: string;
|
|
4299
|
+
sourceBlockchainId: string;
|
|
4300
|
+
destinationBlockchainId: string;
|
|
4301
|
+
messageNonce: string;
|
|
4302
|
+
from: string;
|
|
4303
|
+
to: string;
|
|
4304
|
+
data?: string;
|
|
4305
|
+
messageExecuted: boolean;
|
|
4306
|
+
receipts: Array<TeleporterReceipt>;
|
|
4307
|
+
receiptDelivered: boolean;
|
|
4308
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4309
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4310
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4311
|
+
};
|
|
4312
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4313
|
+
enum status {
|
|
4314
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
type TeleporterSourceTransaction = {
|
|
4319
|
+
txHash: string;
|
|
4320
|
+
timestamp: number;
|
|
4321
|
+
gasSpent: string;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
type DeliveredTeleporterMessage = {
|
|
4325
|
+
messageId: string;
|
|
4326
|
+
teleporterContractAddress: string;
|
|
4327
|
+
sourceBlockchainId: string;
|
|
4328
|
+
destinationBlockchainId: string;
|
|
4329
|
+
messageNonce: string;
|
|
4330
|
+
from: string;
|
|
4331
|
+
to: string;
|
|
4332
|
+
data?: string;
|
|
4333
|
+
messageExecuted: boolean;
|
|
4334
|
+
receipts: Array<TeleporterReceipt>;
|
|
4335
|
+
receiptDelivered: boolean;
|
|
4336
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4337
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4338
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4339
|
+
status: DeliveredTeleporterMessage.status;
|
|
4340
|
+
};
|
|
4341
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4342
|
+
enum status {
|
|
4343
|
+
DELIVERED = "delivered"
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
type NextPageToken = {
|
|
4348
|
+
/**
|
|
4349
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4350
|
+
*/
|
|
4351
|
+
nextPageToken?: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type PendingTeleporterMessage = {
|
|
4355
|
+
messageId: string;
|
|
4356
|
+
teleporterContractAddress: string;
|
|
4357
|
+
sourceBlockchainId: string;
|
|
4358
|
+
destinationBlockchainId: string;
|
|
4359
|
+
messageNonce: string;
|
|
4360
|
+
from: string;
|
|
4361
|
+
to: string;
|
|
4362
|
+
data?: string;
|
|
4363
|
+
messageExecuted: boolean;
|
|
4364
|
+
receipts: Array<TeleporterReceipt>;
|
|
4365
|
+
receiptDelivered: boolean;
|
|
4366
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4367
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4368
|
+
status: PendingTeleporterMessage.status;
|
|
4369
|
+
};
|
|
4370
|
+
declare namespace PendingTeleporterMessage {
|
|
4371
|
+
enum status {
|
|
4372
|
+
PENDING = "pending"
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
declare class TeleporterService {
|
|
4377
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4378
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4379
|
+
/**
|
|
4380
|
+
* Get a teleporter message
|
|
4381
|
+
* Gets a teleporter message by message ID.
|
|
4382
|
+
* @returns any
|
|
4383
|
+
* @throws ApiError
|
|
4384
|
+
*/
|
|
4385
|
+
getTeleporterMessage({ messageId, }: {
|
|
4386
|
+
/**
|
|
4387
|
+
* The message ID of the teleporter message.
|
|
4388
|
+
*/
|
|
4389
|
+
messageId: string;
|
|
4390
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4391
|
+
/**
|
|
4392
|
+
* List teleporter messages
|
|
4393
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4394
|
+
* @returns any
|
|
4395
|
+
* @throws ApiError
|
|
4396
|
+
*/
|
|
4397
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
3892
4398
|
/**
|
|
3893
4399
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4400
|
*/
|
|
3895
4401
|
pageToken?: string;
|
|
3896
4402
|
/**
|
|
3897
|
-
* The
|
|
4403
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3898
4404
|
*/
|
|
3899
|
-
|
|
3900
|
-
|
|
4405
|
+
pageSize?: number;
|
|
4406
|
+
/**
|
|
4407
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4408
|
+
*/
|
|
4409
|
+
sourceBlockchainId?: string;
|
|
4410
|
+
/**
|
|
4411
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4412
|
+
*/
|
|
4413
|
+
destinationBlockchainId?: string;
|
|
4414
|
+
/**
|
|
4415
|
+
* The address of the recipient of the teleporter message.
|
|
4416
|
+
*/
|
|
4417
|
+
to?: string;
|
|
4418
|
+
/**
|
|
4419
|
+
* The address of the sender of the teleporter message.
|
|
4420
|
+
*/
|
|
4421
|
+
from?: string;
|
|
4422
|
+
}): CancelablePromise<NextPageToken>;
|
|
3901
4423
|
}
|
|
3902
4424
|
|
|
3903
4425
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -3918,6 +4440,7 @@ declare class Glacier {
|
|
|
3918
4440
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3919
4441
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3920
4442
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4443
|
+
readonly teleporter: TeleporterService;
|
|
3921
4444
|
readonly request: BaseHttpRequest;
|
|
3922
4445
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3923
4446
|
}
|
|
@@ -3939,4 +4462,4 @@ declare class ApiError extends Error {
|
|
|
3939
4462
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4463
|
}
|
|
3941
4464
|
|
|
3942
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4465
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|