@avalabs/glacier-sdk 2.8.0-canary.cfb38f5.0 → 2.8.0-canary.d096f01.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 +972 -527
- package/dist/index.js +412 -206
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -36
- package/esm/generated/core/request.js +3 -2
- package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -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 +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.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/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/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +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 +10 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +0 -42
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
- 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/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +122 -0
- package/esm/generated/services/WebhooksService.js +108 -0
- package/esm/index.d.ts +28 -3
- package/esm/index.js +13 -2
- package/package.json +3 -3
- 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
|
@@ -23,15 +23,9 @@ interface OnCancel {
|
|
|
23
23
|
(cancelHandler: () => void): void;
|
|
24
24
|
}
|
|
25
25
|
declare class CancelablePromise<T> implements Promise<T> {
|
|
26
|
-
|
|
27
|
-
private _isResolved;
|
|
28
|
-
private _isRejected;
|
|
29
|
-
private _isCancelled;
|
|
30
|
-
private readonly _cancelHandlers;
|
|
31
|
-
private readonly _promise;
|
|
32
|
-
private _resolve?;
|
|
33
|
-
private _reject?;
|
|
26
|
+
#private;
|
|
34
27
|
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
35
29
|
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
36
30
|
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
37
31
|
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
@@ -60,60 +54,6 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
type AddressActivityMetadata = {
|
|
64
|
-
/**
|
|
65
|
-
* Ethereum address for the address_activity event type
|
|
66
|
-
*/
|
|
67
|
-
address: string;
|
|
68
|
-
topic0?: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
declare enum EventType {
|
|
72
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare enum WebhookStatusType {
|
|
76
|
-
ACTIVE = "active",
|
|
77
|
-
INACTIVE = "inactive"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
type WebhookResponse = {
|
|
81
|
-
id: string;
|
|
82
|
-
eventType: EventType;
|
|
83
|
-
metadata: AddressActivityMetadata;
|
|
84
|
-
url: string;
|
|
85
|
-
chainId: string;
|
|
86
|
-
status: WebhookStatusType;
|
|
87
|
-
createdAt: number;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
type ListWebhooksResponse = {
|
|
91
|
-
/**
|
|
92
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
93
|
-
*/
|
|
94
|
-
nextPageToken?: string;
|
|
95
|
-
webhooks: Array<WebhookResponse>;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
type RegisterWebhookRequest = {
|
|
99
|
-
url: string;
|
|
100
|
-
chainId: string;
|
|
101
|
-
/**
|
|
102
|
-
* The type of event for the webhook
|
|
103
|
-
*/
|
|
104
|
-
eventType: EventType;
|
|
105
|
-
metadata: AddressActivityMetadata;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
type SharedSecretsResponse = {
|
|
109
|
-
secret: string;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
declare enum WebhookStatus {
|
|
113
|
-
ACTIVE = "active",
|
|
114
|
-
INACTIVE = "inactive"
|
|
115
|
-
}
|
|
116
|
-
|
|
117
57
|
declare class DefaultService {
|
|
118
58
|
readonly httpRequest: BaseHttpRequest;
|
|
119
59
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -122,56 +62,11 @@ declare class DefaultService {
|
|
|
122
62
|
* @throws ApiError
|
|
123
63
|
*/
|
|
124
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
125
|
-
/**
|
|
126
|
-
* Register a webhook
|
|
127
|
-
* Registers a new webhook.
|
|
128
|
-
* @returns WebhookResponse
|
|
129
|
-
* @throws ApiError
|
|
130
|
-
*/
|
|
131
|
-
registerWebhook({ requestBody, }: {
|
|
132
|
-
requestBody: RegisterWebhookRequest;
|
|
133
|
-
}): CancelablePromise<WebhookResponse>;
|
|
134
|
-
/**
|
|
135
|
-
* List webhooks
|
|
136
|
-
* Lists webhooks for the user.
|
|
137
|
-
* @returns ListWebhooksResponse
|
|
138
|
-
* @throws ApiError
|
|
139
|
-
*/
|
|
140
|
-
listWebhooks({ pageSize, pageToken, status, }: {
|
|
141
|
-
/**
|
|
142
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
143
|
-
*/
|
|
144
|
-
pageSize?: number;
|
|
145
|
-
/**
|
|
146
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
147
|
-
*/
|
|
148
|
-
pageToken?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
151
|
-
*/
|
|
152
|
-
status?: WebhookStatus;
|
|
153
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
154
|
-
/**
|
|
155
|
-
* Deactivate a webhook
|
|
156
|
-
* Deactivates a webhook by ID.
|
|
157
|
-
* @returns WebhookResponse
|
|
158
|
-
* @throws ApiError
|
|
159
|
-
*/
|
|
160
|
-
deactivateWebhook({ id, }: {
|
|
161
|
-
/**
|
|
162
|
-
* The webhook identifier.
|
|
163
|
-
*/
|
|
164
|
-
id: string;
|
|
165
|
-
}): CancelablePromise<WebhookResponse>;
|
|
166
|
-
/**
|
|
167
|
-
* Generate a shared secret
|
|
168
|
-
* Generates a new shared secret.
|
|
169
|
-
* @returns SharedSecretsResponse
|
|
170
|
-
* @throws ApiError
|
|
171
|
-
*/
|
|
172
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
173
65
|
}
|
|
174
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
175
70
|
declare enum CurrencyCode {
|
|
176
71
|
USD = "usd",
|
|
177
72
|
EUR = "eur",
|
|
@@ -190,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
190
85
|
}
|
|
191
86
|
|
|
192
87
|
type Money = {
|
|
193
|
-
/**
|
|
194
|
-
* ISO 4217 currency code.
|
|
195
|
-
*/
|
|
196
88
|
currencyCode: CurrencyCode;
|
|
197
89
|
/**
|
|
198
90
|
* Monetary value in base 10 decimals.
|
|
@@ -242,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
242
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
243
135
|
};
|
|
244
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
245
140
|
declare enum NftTokenMetadataStatus {
|
|
246
141
|
UNKNOWN = "UNKNOWN",
|
|
247
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -257,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
257
152
|
}
|
|
258
153
|
|
|
259
154
|
type Erc1155TokenMetadata = {
|
|
260
|
-
/**
|
|
261
|
-
* The metadata indexing status of the nft.
|
|
262
|
-
*/
|
|
263
155
|
indexStatus: NftTokenMetadataStatus;
|
|
264
156
|
metadataLastUpdatedTimestamp?: number;
|
|
265
157
|
name?: string;
|
|
@@ -298,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
298
190
|
}
|
|
299
191
|
|
|
300
192
|
type Erc721TokenMetadata = {
|
|
301
|
-
/**
|
|
302
|
-
* The metadata indexing status of the nft.
|
|
303
|
-
*/
|
|
304
193
|
indexStatus: NftTokenMetadataStatus;
|
|
305
194
|
metadataLastUpdatedTimestamp?: number;
|
|
306
195
|
name?: string;
|
|
@@ -447,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
447
336
|
*/
|
|
448
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
449
338
|
/**
|
|
450
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
451
340
|
*/
|
|
452
341
|
chainId: string;
|
|
453
342
|
/**
|
|
@@ -473,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
473
362
|
* @returns ListErc20BalancesResponse
|
|
474
363
|
* @throws ApiError
|
|
475
364
|
*/
|
|
476
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
477
366
|
/**
|
|
478
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
479
368
|
*/
|
|
480
369
|
chainId: string;
|
|
481
370
|
/**
|
|
@@ -486,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
486
375
|
* The block number, if not defined the block number will be the latest block.
|
|
487
376
|
*/
|
|
488
377
|
blockNumber?: string;
|
|
489
|
-
/**
|
|
490
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
491
|
-
*/
|
|
492
|
-
pageSize?: number;
|
|
493
378
|
/**
|
|
494
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
495
380
|
*/
|
|
496
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
497
386
|
/**
|
|
498
387
|
* A comma separated list of contract addresses to filter by.
|
|
499
388
|
*/
|
|
@@ -511,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
511
400
|
* @returns ListErc721BalancesResponse
|
|
512
401
|
* @throws ApiError
|
|
513
402
|
*/
|
|
514
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
515
404
|
/**
|
|
516
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
517
406
|
*/
|
|
518
407
|
chainId: string;
|
|
519
408
|
/**
|
|
520
409
|
* A wallet address.
|
|
521
410
|
*/
|
|
522
411
|
address: string;
|
|
523
|
-
/**
|
|
524
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
525
|
-
*/
|
|
526
|
-
pageSize?: number;
|
|
527
412
|
/**
|
|
528
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
529
414
|
*/
|
|
530
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
531
420
|
/**
|
|
532
421
|
* A contract addresses to filter by.
|
|
533
422
|
*/
|
|
@@ -543,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
543
432
|
* @returns ListErc1155BalancesResponse
|
|
544
433
|
* @throws ApiError
|
|
545
434
|
*/
|
|
546
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
547
436
|
/**
|
|
548
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
549
438
|
*/
|
|
550
439
|
chainId: string;
|
|
551
440
|
/**
|
|
@@ -556,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
556
445
|
* The block number, if not defined the block number will be the latest block.
|
|
557
446
|
*/
|
|
558
447
|
blockNumber?: string;
|
|
559
|
-
/**
|
|
560
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
561
|
-
*/
|
|
562
|
-
pageSize?: number;
|
|
563
448
|
/**
|
|
564
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
565
450
|
*/
|
|
566
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
567
456
|
/**
|
|
568
457
|
* A contract addresses to filter by.
|
|
569
458
|
*/
|
|
@@ -577,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
577
466
|
* @returns ListCollectibleBalancesResponse
|
|
578
467
|
* @throws ApiError
|
|
579
468
|
*/
|
|
580
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
581
470
|
/**
|
|
582
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
583
472
|
*/
|
|
584
473
|
chainId: string;
|
|
585
474
|
/**
|
|
586
475
|
* A wallet address.
|
|
587
476
|
*/
|
|
588
477
|
address: string;
|
|
589
|
-
/**
|
|
590
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
591
|
-
*/
|
|
592
|
-
pageSize?: number;
|
|
593
478
|
/**
|
|
594
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
595
480
|
*/
|
|
596
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
597
486
|
/**
|
|
598
487
|
* A contract addresses to filter by.
|
|
599
488
|
*/
|
|
@@ -706,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
706
595
|
* @returns ListEvmBlocksResponse
|
|
707
596
|
* @throws ApiError
|
|
708
597
|
*/
|
|
709
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
710
599
|
/**
|
|
711
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
712
601
|
*/
|
|
713
602
|
chainId: string;
|
|
714
|
-
/**
|
|
715
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
716
|
-
*/
|
|
717
|
-
pageSize?: number;
|
|
718
603
|
/**
|
|
719
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
720
605
|
*/
|
|
721
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
722
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
723
612
|
/**
|
|
724
613
|
* Get block
|
|
@@ -728,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
728
617
|
*/
|
|
729
618
|
getBlock({ chainId, blockId, }: {
|
|
730
619
|
/**
|
|
731
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
732
621
|
*/
|
|
733
622
|
chainId: string;
|
|
734
623
|
/**
|
|
@@ -738,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
738
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
739
628
|
}
|
|
740
629
|
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
741
633
|
declare enum ChainStatus {
|
|
742
634
|
OK = "OK",
|
|
743
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -775,9 +667,6 @@ declare enum VmName {
|
|
|
775
667
|
|
|
776
668
|
type GetChainResponse = {
|
|
777
669
|
chainId: string;
|
|
778
|
-
/**
|
|
779
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
780
|
-
*/
|
|
781
670
|
status: ChainStatus;
|
|
782
671
|
chainName: string;
|
|
783
672
|
description: string;
|
|
@@ -793,13 +682,16 @@ type GetChainResponse = {
|
|
|
793
682
|
networkToken: NetworkToken;
|
|
794
683
|
chainLogoUri?: string;
|
|
795
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
796
686
|
};
|
|
797
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
798
693
|
type ChainInfo = {
|
|
799
694
|
chainId: string;
|
|
800
|
-
/**
|
|
801
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
802
|
-
*/
|
|
803
695
|
status: ChainStatus;
|
|
804
696
|
chainName: string;
|
|
805
697
|
description: string;
|
|
@@ -815,6 +707,7 @@ type ChainInfo = {
|
|
|
815
707
|
networkToken: NetworkToken;
|
|
816
708
|
chainLogoUri?: string;
|
|
817
709
|
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
818
711
|
};
|
|
819
712
|
|
|
820
713
|
type ListChainsResponse = {
|
|
@@ -835,11 +728,15 @@ declare class EvmChainsService {
|
|
|
835
728
|
* @returns ListChainsResponse
|
|
836
729
|
* @throws ApiError
|
|
837
730
|
*/
|
|
838
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
839
732
|
/**
|
|
840
733
|
* mainnet or testnet.
|
|
841
734
|
*/
|
|
842
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
843
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
844
741
|
/**
|
|
845
742
|
* Get chain information
|
|
@@ -849,7 +746,7 @@ declare class EvmChainsService {
|
|
|
849
746
|
*/
|
|
850
747
|
getChainInfo({ chainId, }: {
|
|
851
748
|
/**
|
|
852
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
749
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
853
750
|
*/
|
|
854
751
|
chainId: string;
|
|
855
752
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1144,7 +1041,7 @@ declare class EvmContractsService {
|
|
|
1144
1041
|
*/
|
|
1145
1042
|
getContractMetadata({ chainId, address, }: {
|
|
1146
1043
|
/**
|
|
1147
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1044
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1148
1045
|
*/
|
|
1149
1046
|
chainId: string;
|
|
1150
1047
|
/**
|
|
@@ -1160,7 +1057,7 @@ declare class EvmContractsService {
|
|
|
1160
1057
|
*/
|
|
1161
1058
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1162
1059
|
/**
|
|
1163
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1060
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1164
1061
|
*/
|
|
1165
1062
|
chainId: string;
|
|
1166
1063
|
/**
|
|
@@ -1294,6 +1191,9 @@ type Erc721TransferDetails = {
|
|
|
1294
1191
|
erc721Token: Erc721Token;
|
|
1295
1192
|
};
|
|
1296
1193
|
|
|
1194
|
+
/**
|
|
1195
|
+
* 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.
|
|
1196
|
+
*/
|
|
1297
1197
|
declare enum TransactionMethodType {
|
|
1298
1198
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1299
1199
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1301,9 +1201,6 @@ declare enum TransactionMethodType {
|
|
|
1301
1201
|
}
|
|
1302
1202
|
|
|
1303
1203
|
type Method = {
|
|
1304
|
-
/**
|
|
1305
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1306
|
-
*/
|
|
1307
1204
|
callType: TransactionMethodType;
|
|
1308
1205
|
/**
|
|
1309
1206
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1664,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1664
1561
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1665
1562
|
*/
|
|
1666
1563
|
nextPageToken?: string;
|
|
1667
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1668
1565
|
};
|
|
1669
1566
|
|
|
1670
1567
|
declare enum SortOrder {
|
|
@@ -1688,7 +1585,7 @@ declare class EvmTransactionsService {
|
|
|
1688
1585
|
*/
|
|
1689
1586
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1690
1587
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1589
|
*/
|
|
1693
1590
|
chainId: string;
|
|
1694
1591
|
/**
|
|
@@ -1706,23 +1603,23 @@ declare class EvmTransactionsService {
|
|
|
1706
1603
|
* @returns ListContractsResponse
|
|
1707
1604
|
* @throws ApiError
|
|
1708
1605
|
*/
|
|
1709
|
-
listContractDeployments({ chainId, address,
|
|
1606
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1710
1607
|
/**
|
|
1711
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1608
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1712
1609
|
*/
|
|
1713
1610
|
chainId: string;
|
|
1714
1611
|
/**
|
|
1715
1612
|
* A wallet address.
|
|
1716
1613
|
*/
|
|
1717
1614
|
address: string;
|
|
1718
|
-
/**
|
|
1719
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1720
|
-
*/
|
|
1721
|
-
pageSize?: number;
|
|
1722
1615
|
/**
|
|
1723
1616
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1724
1617
|
*/
|
|
1725
1618
|
pageToken?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1621
|
+
*/
|
|
1622
|
+
pageSize?: number;
|
|
1726
1623
|
}): CancelablePromise<ListContractsResponse>;
|
|
1727
1624
|
/**
|
|
1728
1625
|
* List ERC transfers
|
|
@@ -1730,9 +1627,9 @@ declare class EvmTransactionsService {
|
|
|
1730
1627
|
* @returns ListTransfersResponse
|
|
1731
1628
|
* @throws ApiError
|
|
1732
1629
|
*/
|
|
1733
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1630
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1734
1631
|
/**
|
|
1735
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1632
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1736
1633
|
*/
|
|
1737
1634
|
chainId: string;
|
|
1738
1635
|
/**
|
|
@@ -1747,14 +1644,14 @@ declare class EvmTransactionsService {
|
|
|
1747
1644
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1748
1645
|
*/
|
|
1749
1646
|
endBlock?: number;
|
|
1750
|
-
/**
|
|
1751
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1752
|
-
*/
|
|
1753
|
-
pageSize?: number;
|
|
1754
1647
|
/**
|
|
1755
1648
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1756
1649
|
*/
|
|
1757
1650
|
pageToken?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1653
|
+
*/
|
|
1654
|
+
pageSize?: number;
|
|
1758
1655
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1759
1656
|
/**
|
|
1760
1657
|
* List transactions
|
|
@@ -1764,23 +1661,23 @@ declare class EvmTransactionsService {
|
|
|
1764
1661
|
* @returns ListTransactionDetailsResponse
|
|
1765
1662
|
* @throws ApiError
|
|
1766
1663
|
*/
|
|
1767
|
-
listTransactions({ chainId, address,
|
|
1664
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1768
1665
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1666
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1667
|
*/
|
|
1771
1668
|
chainId: string;
|
|
1772
1669
|
/**
|
|
1773
1670
|
* A wallet address.
|
|
1774
1671
|
*/
|
|
1775
1672
|
address: string;
|
|
1776
|
-
/**
|
|
1777
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1778
|
-
*/
|
|
1779
|
-
pageSize?: number;
|
|
1780
1673
|
/**
|
|
1781
1674
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1782
1675
|
*/
|
|
1783
1676
|
pageToken?: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1679
|
+
*/
|
|
1680
|
+
pageSize?: number;
|
|
1784
1681
|
/**
|
|
1785
1682
|
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1786
1683
|
*/
|
|
@@ -1800,9 +1697,9 @@ declare class EvmTransactionsService {
|
|
|
1800
1697
|
* @returns ListNativeTransactionsResponse
|
|
1801
1698
|
* @throws ApiError
|
|
1802
1699
|
*/
|
|
1803
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1700
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1804
1701
|
/**
|
|
1805
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1702
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1806
1703
|
*/
|
|
1807
1704
|
chainId: string;
|
|
1808
1705
|
/**
|
|
@@ -1817,14 +1714,14 @@ declare class EvmTransactionsService {
|
|
|
1817
1714
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1818
1715
|
*/
|
|
1819
1716
|
endBlock?: number;
|
|
1820
|
-
/**
|
|
1821
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1822
|
-
*/
|
|
1823
|
-
pageSize?: number;
|
|
1824
1717
|
/**
|
|
1825
1718
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1826
1719
|
*/
|
|
1827
1720
|
pageToken?: string;
|
|
1721
|
+
/**
|
|
1722
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
+
*/
|
|
1724
|
+
pageSize?: number;
|
|
1828
1725
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1829
1726
|
/**
|
|
1830
1727
|
* List ERC-20 transfers
|
|
@@ -1832,9 +1729,9 @@ declare class EvmTransactionsService {
|
|
|
1832
1729
|
* @returns ListErc20TransactionsResponse
|
|
1833
1730
|
* @throws ApiError
|
|
1834
1731
|
*/
|
|
1835
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1732
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1836
1733
|
/**
|
|
1837
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1734
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1838
1735
|
*/
|
|
1839
1736
|
chainId: string;
|
|
1840
1737
|
/**
|
|
@@ -1849,14 +1746,14 @@ declare class EvmTransactionsService {
|
|
|
1849
1746
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1850
1747
|
*/
|
|
1851
1748
|
endBlock?: number;
|
|
1852
|
-
/**
|
|
1853
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1854
|
-
*/
|
|
1855
|
-
pageSize?: number;
|
|
1856
1749
|
/**
|
|
1857
1750
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1858
1751
|
*/
|
|
1859
1752
|
pageToken?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
+
*/
|
|
1756
|
+
pageSize?: number;
|
|
1860
1757
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1861
1758
|
/**
|
|
1862
1759
|
* List ERC-721 transfers
|
|
@@ -1864,9 +1761,9 @@ declare class EvmTransactionsService {
|
|
|
1864
1761
|
* @returns ListErc721TransactionsResponse
|
|
1865
1762
|
* @throws ApiError
|
|
1866
1763
|
*/
|
|
1867
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1764
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1868
1765
|
/**
|
|
1869
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1766
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1870
1767
|
*/
|
|
1871
1768
|
chainId: string;
|
|
1872
1769
|
/**
|
|
@@ -1881,14 +1778,14 @@ declare class EvmTransactionsService {
|
|
|
1881
1778
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1882
1779
|
*/
|
|
1883
1780
|
endBlock?: number;
|
|
1884
|
-
/**
|
|
1885
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1886
|
-
*/
|
|
1887
|
-
pageSize?: number;
|
|
1888
1781
|
/**
|
|
1889
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1890
1783
|
*/
|
|
1891
1784
|
pageToken?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1787
|
+
*/
|
|
1788
|
+
pageSize?: number;
|
|
1892
1789
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1893
1790
|
/**
|
|
1894
1791
|
* List ERC-1155 transfers
|
|
@@ -1896,9 +1793,9 @@ declare class EvmTransactionsService {
|
|
|
1896
1793
|
* @returns ListErc1155TransactionsResponse
|
|
1897
1794
|
* @throws ApiError
|
|
1898
1795
|
*/
|
|
1899
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1796
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1900
1797
|
/**
|
|
1901
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1902
1799
|
*/
|
|
1903
1800
|
chainId: string;
|
|
1904
1801
|
/**
|
|
@@ -1913,14 +1810,14 @@ declare class EvmTransactionsService {
|
|
|
1913
1810
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1914
1811
|
*/
|
|
1915
1812
|
endBlock?: number;
|
|
1916
|
-
/**
|
|
1917
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1918
|
-
*/
|
|
1919
|
-
pageSize?: number;
|
|
1920
1813
|
/**
|
|
1921
1814
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1922
1815
|
*/
|
|
1923
1816
|
pageToken?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1819
|
+
*/
|
|
1820
|
+
pageSize?: number;
|
|
1924
1821
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1925
1822
|
/**
|
|
1926
1823
|
* List internal transactions
|
|
@@ -1930,9 +1827,9 @@ declare class EvmTransactionsService {
|
|
|
1930
1827
|
* @returns ListInternalTransactionsResponse
|
|
1931
1828
|
* @throws ApiError
|
|
1932
1829
|
*/
|
|
1933
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1830
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1934
1831
|
/**
|
|
1935
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1832
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1936
1833
|
*/
|
|
1937
1834
|
chainId: string;
|
|
1938
1835
|
/**
|
|
@@ -1947,14 +1844,14 @@ declare class EvmTransactionsService {
|
|
|
1947
1844
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1948
1845
|
*/
|
|
1949
1846
|
endBlock?: number;
|
|
1950
|
-
/**
|
|
1951
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1952
|
-
*/
|
|
1953
|
-
pageSize?: number;
|
|
1954
1847
|
/**
|
|
1955
1848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1956
1849
|
*/
|
|
1957
1850
|
pageToken?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1853
|
+
*/
|
|
1854
|
+
pageSize?: number;
|
|
1958
1855
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1959
1856
|
/**
|
|
1960
1857
|
* Get transaction
|
|
@@ -1964,7 +1861,7 @@ declare class EvmTransactionsService {
|
|
|
1964
1861
|
*/
|
|
1965
1862
|
getTransaction({ chainId, txHash, }: {
|
|
1966
1863
|
/**
|
|
1967
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1968
1865
|
*/
|
|
1969
1866
|
chainId: string;
|
|
1970
1867
|
/**
|
|
@@ -1980,7 +1877,7 @@ declare class EvmTransactionsService {
|
|
|
1980
1877
|
*/
|
|
1981
1878
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1982
1879
|
/**
|
|
1983
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1880
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1984
1881
|
*/
|
|
1985
1882
|
chainId: string;
|
|
1986
1883
|
/**
|
|
@@ -1994,19 +1891,19 @@ declare class EvmTransactionsService {
|
|
|
1994
1891
|
* @returns ListNativeTransactionsResponse
|
|
1995
1892
|
* @throws ApiError
|
|
1996
1893
|
*/
|
|
1997
|
-
listLatestTransactions({ chainId,
|
|
1894
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1998
1895
|
/**
|
|
1999
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1896
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2000
1897
|
*/
|
|
2001
1898
|
chainId: string;
|
|
2002
|
-
/**
|
|
2003
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2004
|
-
*/
|
|
2005
|
-
pageSize?: number;
|
|
2006
1899
|
/**
|
|
2007
1900
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2008
1901
|
*/
|
|
2009
1902
|
pageToken?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1905
|
+
*/
|
|
1906
|
+
pageSize?: number;
|
|
2010
1907
|
/**
|
|
2011
1908
|
* A status filter for listed transactions.
|
|
2012
1909
|
*/
|
|
@@ -2035,7 +1932,7 @@ type ListNftTokens = {
|
|
|
2035
1932
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2036
1933
|
*/
|
|
2037
1934
|
nextPageToken?: string;
|
|
2038
|
-
tokens:
|
|
1935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2039
1936
|
};
|
|
2040
1937
|
|
|
2041
1938
|
declare class NfTsService {
|
|
@@ -2049,7 +1946,7 @@ declare class NfTsService {
|
|
|
2049
1946
|
*/
|
|
2050
1947
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2051
1948
|
/**
|
|
2052
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2053
1950
|
*/
|
|
2054
1951
|
chainId: string;
|
|
2055
1952
|
/**
|
|
@@ -2067,23 +1964,23 @@ declare class NfTsService {
|
|
|
2067
1964
|
* @returns ListNftTokens
|
|
2068
1965
|
* @throws ApiError
|
|
2069
1966
|
*/
|
|
2070
|
-
listTokens({ chainId, address,
|
|
1967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2071
1968
|
/**
|
|
2072
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1969
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2073
1970
|
*/
|
|
2074
1971
|
chainId: string;
|
|
2075
1972
|
/**
|
|
2076
1973
|
* Contract address on the relevant chain.
|
|
2077
1974
|
*/
|
|
2078
1975
|
address: string;
|
|
2079
|
-
/**
|
|
2080
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2081
|
-
*/
|
|
2082
|
-
pageSize?: number;
|
|
2083
1976
|
/**
|
|
2084
1977
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2085
1978
|
*/
|
|
2086
1979
|
pageToken?: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1982
|
+
*/
|
|
1983
|
+
pageSize?: number;
|
|
2087
1984
|
}): CancelablePromise<ListNftTokens>;
|
|
2088
1985
|
/**
|
|
2089
1986
|
* Get token details
|
|
@@ -2093,7 +1990,7 @@ declare class NfTsService {
|
|
|
2093
1990
|
*/
|
|
2094
1991
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2095
1992
|
/**
|
|
2096
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1993
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2097
1994
|
*/
|
|
2098
1995
|
chainId: string;
|
|
2099
1996
|
/**
|
|
@@ -2112,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
2112
2009
|
includeChains: Array<string>;
|
|
2113
2010
|
};
|
|
2114
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2115
2016
|
type CreateEvmTransactionExportRequest = {
|
|
2116
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
2117
2018
|
firstDate: string;
|
|
2118
2019
|
lastDate: string;
|
|
2119
2020
|
/**
|
|
@@ -2126,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2126
2027
|
endDate: string;
|
|
2127
2028
|
options: EvmNetworkOptions;
|
|
2128
2029
|
};
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2030
|
+
|
|
2031
|
+
declare enum PrimaryNetworkOperationType {
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2034
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2133
2035
|
}
|
|
2134
2036
|
|
|
2135
2037
|
type PrimaryNetworkOptions = {
|
|
2136
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
2137
2039
|
cChainEvmAddresses?: Array<string>;
|
|
2138
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2139
2041
|
};
|
|
2140
2042
|
|
|
2141
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2142
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
2143
2045
|
firstDate: string;
|
|
2144
2046
|
lastDate: string;
|
|
2145
2047
|
/**
|
|
@@ -2152,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2152
2054
|
endDate: string;
|
|
2153
2055
|
options: PrimaryNetworkOptions;
|
|
2154
2056
|
};
|
|
2155
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2156
|
-
enum type {
|
|
2157
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
2057
|
|
|
2161
2058
|
declare enum OperationStatus {
|
|
2162
2059
|
RUNNING = "RUNNING",
|
|
@@ -2166,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
2166
2063
|
}
|
|
2167
2064
|
|
|
2168
2065
|
declare enum OperationType {
|
|
2169
|
-
|
|
2170
|
-
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2068
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2069
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2171
2070
|
}
|
|
2172
2071
|
|
|
2173
2072
|
declare enum OperationStatusCode {
|
|
@@ -2359,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
2359
2258
|
blockchainId: string;
|
|
2360
2259
|
};
|
|
2361
2260
|
|
|
2261
|
+
type SubnetOwnershipInfo = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2264
|
+
*/
|
|
2265
|
+
locktime: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2268
|
+
*/
|
|
2269
|
+
threshold: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
addresses: Array<string>;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2362
2276
|
type Subnet = {
|
|
2363
2277
|
createBlockTimestamp: number;
|
|
2364
2278
|
createBlockIndex: string;
|
|
2365
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
2366
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2367
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2368
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2369
2299
|
blockchains: Array<BlockchainInfo>;
|
|
2370
2300
|
};
|
|
2371
2301
|
|
|
@@ -2461,6 +2391,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2461
2391
|
}
|
|
2462
2392
|
}
|
|
2463
2393
|
|
|
2394
|
+
type RemovedValidatorDetails = {
|
|
2395
|
+
txHash: string;
|
|
2396
|
+
nodeId: string;
|
|
2397
|
+
subnetId: string;
|
|
2398
|
+
amountStaked: string;
|
|
2399
|
+
delegationFee?: string;
|
|
2400
|
+
startTimestamp: number;
|
|
2401
|
+
endTimestamp: number;
|
|
2402
|
+
removeTxHash: string;
|
|
2403
|
+
removeTimestamp: number;
|
|
2404
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2405
|
+
};
|
|
2406
|
+
declare namespace RemovedValidatorDetails {
|
|
2407
|
+
enum validationStatus {
|
|
2408
|
+
REMOVED = "removed"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2464
2412
|
type ListValidatorDetailsResponse = {
|
|
2465
2413
|
/**
|
|
2466
2414
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
@@ -2469,7 +2417,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2469
2417
|
/**
|
|
2470
2418
|
* The list of validator Details.
|
|
2471
2419
|
*/
|
|
2472
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2420
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2473
2421
|
};
|
|
2474
2422
|
|
|
2475
2423
|
declare enum Network {
|
|
@@ -2480,7 +2428,24 @@ declare enum Network {
|
|
|
2480
2428
|
declare enum ValidationStatusType {
|
|
2481
2429
|
COMPLETED = "completed",
|
|
2482
2430
|
ACTIVE = "active",
|
|
2483
|
-
PENDING = "pending"
|
|
2431
|
+
PENDING = "pending",
|
|
2432
|
+
REMOVED = "removed"
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2437
|
+
*/
|
|
2438
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2439
|
+
FIXED = "fixed",
|
|
2440
|
+
VARIABLE = "variable"
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2445
|
+
*/
|
|
2446
|
+
declare enum PrimaryNetworkAssetType {
|
|
2447
|
+
SECP256K1 = "secp256k1",
|
|
2448
|
+
NFT = "nft"
|
|
2484
2449
|
}
|
|
2485
2450
|
|
|
2486
2451
|
type XChainAssetDetails = {
|
|
@@ -2500,18 +2465,12 @@ type XChainAssetDetails = {
|
|
|
2500
2465
|
* Denomination of this asset to represent fungibility.
|
|
2501
2466
|
*/
|
|
2502
2467
|
denomination: number;
|
|
2503
|
-
|
|
2504
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2505
|
-
*/
|
|
2506
|
-
type: string;
|
|
2468
|
+
type: PrimaryNetworkAssetType;
|
|
2507
2469
|
/**
|
|
2508
2470
|
* Timestamp in seconds this asset was created on.
|
|
2509
2471
|
*/
|
|
2510
2472
|
createdAtTimestamp: number;
|
|
2511
|
-
|
|
2512
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2513
|
-
*/
|
|
2514
|
-
cap: string;
|
|
2473
|
+
cap: PrimaryNetworkAssetCap;
|
|
2515
2474
|
};
|
|
2516
2475
|
|
|
2517
2476
|
declare enum XChainId {
|
|
@@ -2577,19 +2536,19 @@ declare class PrimaryNetworkService {
|
|
|
2577
2536
|
* @returns ListBlockchainsResponse
|
|
2578
2537
|
* @throws ApiError
|
|
2579
2538
|
*/
|
|
2580
|
-
listBlockchains({ network,
|
|
2539
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2581
2540
|
/**
|
|
2582
2541
|
* Either mainnet or a testnet.
|
|
2583
2542
|
*/
|
|
2584
2543
|
network: Network;
|
|
2585
|
-
/**
|
|
2586
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2587
|
-
*/
|
|
2588
|
-
pageSize?: number;
|
|
2589
2544
|
/**
|
|
2590
2545
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2591
2546
|
*/
|
|
2592
2547
|
pageToken?: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2550
|
+
*/
|
|
2551
|
+
pageSize?: number;
|
|
2593
2552
|
/**
|
|
2594
2553
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2595
2554
|
*/
|
|
@@ -2601,19 +2560,19 @@ declare class PrimaryNetworkService {
|
|
|
2601
2560
|
* @returns ListSubnetsResponse
|
|
2602
2561
|
* @throws ApiError
|
|
2603
2562
|
*/
|
|
2604
|
-
listSubnets({ network,
|
|
2563
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2605
2564
|
/**
|
|
2606
2565
|
* Either mainnet or a testnet.
|
|
2607
2566
|
*/
|
|
2608
2567
|
network: Network;
|
|
2609
|
-
/**
|
|
2610
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2611
|
-
*/
|
|
2612
|
-
pageSize?: number;
|
|
2613
2568
|
/**
|
|
2614
2569
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2615
2570
|
*/
|
|
2616
2571
|
pageToken?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2574
|
+
*/
|
|
2575
|
+
pageSize?: number;
|
|
2617
2576
|
/**
|
|
2618
2577
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2619
2578
|
*/
|
|
@@ -2625,59 +2584,59 @@ declare class PrimaryNetworkService {
|
|
|
2625
2584
|
* @returns ListValidatorDetailsResponse
|
|
2626
2585
|
* @throws ApiError
|
|
2627
2586
|
*/
|
|
2628
|
-
listValidators({ network, pageSize,
|
|
2587
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2629
2588
|
/**
|
|
2630
2589
|
* Either mainnet or a testnet.
|
|
2631
2590
|
*/
|
|
2632
2591
|
network: Network;
|
|
2592
|
+
/**
|
|
2593
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2594
|
+
*/
|
|
2595
|
+
pageToken?: string;
|
|
2633
2596
|
/**
|
|
2634
2597
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2635
2598
|
*/
|
|
2636
2599
|
pageSize?: number;
|
|
2637
2600
|
/**
|
|
2638
|
-
* A
|
|
2601
|
+
* A comma separated list of node ids to filter by.
|
|
2639
2602
|
*/
|
|
2640
|
-
|
|
2603
|
+
nodeIds?: string;
|
|
2641
2604
|
/**
|
|
2642
|
-
* The
|
|
2605
|
+
* 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.
|
|
2643
2606
|
*/
|
|
2644
|
-
|
|
2607
|
+
sortOrder?: SortOrder;
|
|
2645
2608
|
/**
|
|
2646
|
-
*
|
|
2609
|
+
* Validation status of the node.
|
|
2647
2610
|
*/
|
|
2648
|
-
|
|
2611
|
+
validationStatus?: ValidationStatusType;
|
|
2649
2612
|
/**
|
|
2650
2613
|
* 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
|
|
2651
2614
|
*/
|
|
2652
|
-
minDelegationCapacity?:
|
|
2615
|
+
minDelegationCapacity?: string;
|
|
2653
2616
|
/**
|
|
2654
2617
|
* 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.
|
|
2655
2618
|
*/
|
|
2656
|
-
maxDelegationCapacity?:
|
|
2619
|
+
maxDelegationCapacity?: string;
|
|
2657
2620
|
/**
|
|
2658
|
-
* The minimum
|
|
2659
|
-
*/
|
|
2660
|
-
minFeePercentage?: any;
|
|
2661
|
-
/**
|
|
2662
|
-
* 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.
|
|
2621
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2663
2622
|
*/
|
|
2664
|
-
|
|
2623
|
+
minTimeRemaining?: number;
|
|
2665
2624
|
/**
|
|
2666
|
-
*
|
|
2625
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2667
2626
|
*/
|
|
2668
|
-
|
|
2627
|
+
maxTimeRemaining?: number;
|
|
2669
2628
|
/**
|
|
2670
|
-
* The
|
|
2629
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2671
2630
|
*/
|
|
2672
|
-
|
|
2631
|
+
minFeePercentage?: number;
|
|
2673
2632
|
/**
|
|
2674
|
-
*
|
|
2633
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2675
2634
|
*/
|
|
2676
|
-
|
|
2635
|
+
maxFeePercentage?: number;
|
|
2677
2636
|
/**
|
|
2678
2637
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2679
2638
|
*/
|
|
2680
|
-
subnetId?:
|
|
2639
|
+
subnetId?: any;
|
|
2681
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2682
2641
|
/**
|
|
2683
2642
|
* Get single validator details
|
|
@@ -2685,7 +2644,7 @@ declare class PrimaryNetworkService {
|
|
|
2685
2644
|
* @returns ListValidatorDetailsResponse
|
|
2686
2645
|
* @throws ApiError
|
|
2687
2646
|
*/
|
|
2688
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2647
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2689
2648
|
/**
|
|
2690
2649
|
* Either mainnet or a testnet.
|
|
2691
2650
|
*/
|
|
@@ -2694,14 +2653,14 @@ declare class PrimaryNetworkService {
|
|
|
2694
2653
|
* A primary network (P or X chain) nodeId.
|
|
2695
2654
|
*/
|
|
2696
2655
|
nodeId: string;
|
|
2697
|
-
/**
|
|
2698
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2699
|
-
*/
|
|
2700
|
-
pageSize?: number;
|
|
2701
2656
|
/**
|
|
2702
2657
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2703
2658
|
*/
|
|
2704
2659
|
pageToken?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2662
|
+
*/
|
|
2663
|
+
pageSize?: number;
|
|
2705
2664
|
/**
|
|
2706
2665
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2707
2666
|
*/
|
|
@@ -2717,19 +2676,19 @@ declare class PrimaryNetworkService {
|
|
|
2717
2676
|
* @returns ListDelegatorDetailsResponse
|
|
2718
2677
|
* @throws ApiError
|
|
2719
2678
|
*/
|
|
2720
|
-
listDelegators({ network,
|
|
2679
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2721
2680
|
/**
|
|
2722
2681
|
* Either mainnet or a testnet.
|
|
2723
2682
|
*/
|
|
2724
2683
|
network: Network;
|
|
2725
|
-
/**
|
|
2726
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2727
|
-
*/
|
|
2728
|
-
pageSize?: number;
|
|
2729
2684
|
/**
|
|
2730
2685
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2731
2686
|
*/
|
|
2732
2687
|
pageToken?: string;
|
|
2688
|
+
/**
|
|
2689
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2690
|
+
*/
|
|
2691
|
+
pageSize?: number;
|
|
2733
2692
|
/**
|
|
2734
2693
|
* A comma separated list of reward addresses to filter by.
|
|
2735
2694
|
*/
|
|
@@ -2777,10 +2736,7 @@ type CChainSharedAssetBalance = {
|
|
|
2777
2736
|
* Denomination of this asset to represent fungibility.
|
|
2778
2737
|
*/
|
|
2779
2738
|
denomination: number;
|
|
2780
|
-
|
|
2781
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2782
|
-
*/
|
|
2783
|
-
type: string;
|
|
2739
|
+
type: PrimaryNetworkAssetType;
|
|
2784
2740
|
/**
|
|
2785
2741
|
* Amount of the asset.
|
|
2786
2742
|
*/
|
|
@@ -2815,49 +2771,89 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2815
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2816
2772
|
};
|
|
2817
2773
|
|
|
2818
|
-
type
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2775
|
+
/**
|
|
2776
|
+
* Unique ID for an asset.
|
|
2777
|
+
*/
|
|
2819
2778
|
assetId: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* Name of this asset.
|
|
2781
|
+
*/
|
|
2782
|
+
name: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Symbol for this asset (max 4 characters).
|
|
2785
|
+
*/
|
|
2786
|
+
symbol: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Denomination of this asset to represent fungibility.
|
|
2789
|
+
*/
|
|
2790
|
+
denomination: number;
|
|
2791
|
+
type: PrimaryNetworkAssetType;
|
|
2792
|
+
/**
|
|
2793
|
+
* Amount of the asset.
|
|
2794
|
+
*/
|
|
2820
2795
|
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2821
2797
|
};
|
|
2822
2798
|
|
|
2823
2799
|
type PChainSharedAsset = {
|
|
2800
|
+
/**
|
|
2801
|
+
* Unique ID for an asset.
|
|
2802
|
+
*/
|
|
2824
2803
|
assetId: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* Name of this asset.
|
|
2806
|
+
*/
|
|
2807
|
+
name: string;
|
|
2808
|
+
/**
|
|
2809
|
+
* Symbol for this asset (max 4 characters).
|
|
2810
|
+
*/
|
|
2811
|
+
symbol: string;
|
|
2812
|
+
/**
|
|
2813
|
+
* Denomination of this asset to represent fungibility.
|
|
2814
|
+
*/
|
|
2815
|
+
denomination: number;
|
|
2816
|
+
type: PrimaryNetworkAssetType;
|
|
2817
|
+
/**
|
|
2818
|
+
* Amount of the asset.
|
|
2819
|
+
*/
|
|
2825
2820
|
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2826
2822
|
sharedWithChainId: string;
|
|
2827
2823
|
status: string;
|
|
2828
2824
|
};
|
|
2829
2825
|
|
|
2830
2826
|
type PChainBalance = {
|
|
2831
2827
|
/**
|
|
2832
|
-
* A list of objects containing P-chain Asset
|
|
2828
|
+
* 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.
|
|
2833
2829
|
*/
|
|
2834
|
-
unlockedUnstaked: Array<
|
|
2830
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2835
2831
|
/**
|
|
2836
|
-
* A list of objects containing P-chain Asset
|
|
2832
|
+
* 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.
|
|
2837
2833
|
*/
|
|
2838
|
-
unlockedStaked: Array<
|
|
2834
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2839
2835
|
/**
|
|
2840
|
-
* A list of objects containing P-chain Asset
|
|
2836
|
+
* 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.
|
|
2841
2837
|
*/
|
|
2842
|
-
lockedPlatform: Array<
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2843
2839
|
/**
|
|
2844
|
-
* A list of objects containing P-chain Asset
|
|
2840
|
+
* 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.
|
|
2845
2841
|
*/
|
|
2846
|
-
lockedStakeable: Array<
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2847
2843
|
/**
|
|
2848
|
-
* A list of objects containing P-chain Asset
|
|
2844
|
+
* 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.
|
|
2849
2845
|
*/
|
|
2850
|
-
lockedStaked: Array<
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2851
2847
|
/**
|
|
2852
|
-
* A list of objects containing P-chain Asset
|
|
2848
|
+
* 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.
|
|
2853
2849
|
*/
|
|
2854
|
-
pendingStaked: Array<
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2855
2851
|
/**
|
|
2856
|
-
* A list of objects containing P-chain Asset
|
|
2852
|
+
* 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.
|
|
2857
2853
|
*/
|
|
2858
2854
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2859
2855
|
/**
|
|
2860
|
-
* A list of objects containing P-chain Asset
|
|
2856
|
+
* 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.
|
|
2861
2857
|
*/
|
|
2862
2858
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2863
2859
|
};
|
|
@@ -2867,34 +2863,6 @@ type ListPChainBalancesResponse = {
|
|
|
2867
2863
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2868
2864
|
};
|
|
2869
2865
|
|
|
2870
|
-
type XChainAssetBalance = {
|
|
2871
|
-
/**
|
|
2872
|
-
* Unique ID for an asset.
|
|
2873
|
-
*/
|
|
2874
|
-
assetId: string;
|
|
2875
|
-
/**
|
|
2876
|
-
* Name of this asset.
|
|
2877
|
-
*/
|
|
2878
|
-
name: string;
|
|
2879
|
-
/**
|
|
2880
|
-
* Symbol for this asset (max 4 characters).
|
|
2881
|
-
*/
|
|
2882
|
-
symbol: string;
|
|
2883
|
-
/**
|
|
2884
|
-
* Denomination of this asset to represent fungibility.
|
|
2885
|
-
*/
|
|
2886
|
-
denomination: number;
|
|
2887
|
-
/**
|
|
2888
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2889
|
-
*/
|
|
2890
|
-
type: string;
|
|
2891
|
-
/**
|
|
2892
|
-
* Amount of the asset.
|
|
2893
|
-
*/
|
|
2894
|
-
amount: string;
|
|
2895
|
-
utxoCount: number;
|
|
2896
|
-
};
|
|
2897
|
-
|
|
2898
2866
|
type XChainSharedAssetBalance = {
|
|
2899
2867
|
/**
|
|
2900
2868
|
* Unique ID for an asset.
|
|
@@ -2912,10 +2880,7 @@ type XChainSharedAssetBalance = {
|
|
|
2912
2880
|
* Denomination of this asset to represent fungibility.
|
|
2913
2881
|
*/
|
|
2914
2882
|
denomination: number;
|
|
2915
|
-
|
|
2916
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2917
|
-
*/
|
|
2918
|
-
type: string;
|
|
2883
|
+
type: PrimaryNetworkAssetType;
|
|
2919
2884
|
/**
|
|
2920
2885
|
* Amount of the asset.
|
|
2921
2886
|
*/
|
|
@@ -2928,11 +2893,11 @@ type XChainBalances = {
|
|
|
2928
2893
|
/**
|
|
2929
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
2930
2895
|
*/
|
|
2931
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2932
2897
|
/**
|
|
2933
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
2934
2899
|
*/
|
|
2935
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2936
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2937
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2938
2903
|
};
|
|
@@ -3045,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3045
3010
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3046
3011
|
* @throws ApiError
|
|
3047
3012
|
*/
|
|
3048
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3013
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3049
3014
|
/**
|
|
3050
3015
|
* A primary network blockchain id or alias.
|
|
3051
3016
|
*/
|
|
@@ -3058,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3058
3023
|
* A primary network (P or X chain) nodeId.
|
|
3059
3024
|
*/
|
|
3060
3025
|
nodeId: string;
|
|
3061
|
-
/**
|
|
3062
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3063
|
-
*/
|
|
3064
|
-
pageSize?: number;
|
|
3065
3026
|
/**
|
|
3066
3027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3067
3028
|
*/
|
|
3068
3029
|
pageToken?: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3032
|
+
*/
|
|
3033
|
+
pageSize?: number;
|
|
3069
3034
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3070
3035
|
/**
|
|
3071
3036
|
* List latest blocks
|
|
@@ -3073,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3073
3038
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3074
3039
|
* @throws ApiError
|
|
3075
3040
|
*/
|
|
3076
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3041
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3077
3042
|
/**
|
|
3078
3043
|
* A primary network blockchain id or alias.
|
|
3079
3044
|
*/
|
|
@@ -3082,17 +3047,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3082
3047
|
* Either mainnet or a testnet.
|
|
3083
3048
|
*/
|
|
3084
3049
|
network: Network;
|
|
3085
|
-
/**
|
|
3086
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3087
|
-
*/
|
|
3088
|
-
pageSize?: number;
|
|
3089
3050
|
/**
|
|
3090
3051
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3091
3052
|
*/
|
|
3092
3053
|
pageToken?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3056
|
+
*/
|
|
3057
|
+
pageSize?: number;
|
|
3093
3058
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3094
3059
|
}
|
|
3095
3060
|
|
|
3061
|
+
type AssetWithPriceInfo = {
|
|
3062
|
+
/**
|
|
3063
|
+
* Unique ID for an asset.
|
|
3064
|
+
*/
|
|
3065
|
+
assetId: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Name of this asset.
|
|
3068
|
+
*/
|
|
3069
|
+
name: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* Symbol for this asset (max 4 characters).
|
|
3072
|
+
*/
|
|
3073
|
+
symbol: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* Denomination of this asset to represent fungibility.
|
|
3076
|
+
*/
|
|
3077
|
+
denomination: number;
|
|
3078
|
+
type: PrimaryNetworkAssetType;
|
|
3079
|
+
/**
|
|
3080
|
+
* Amount of the asset.
|
|
3081
|
+
*/
|
|
3082
|
+
amount: string;
|
|
3083
|
+
/**
|
|
3084
|
+
* 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.
|
|
3085
|
+
*/
|
|
3086
|
+
historicalPrice?: Money;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3096
3089
|
declare enum RewardType {
|
|
3097
3090
|
VALIDATOR = "VALIDATOR",
|
|
3098
3091
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3112,10 +3105,7 @@ type HistoricalReward = {
|
|
|
3112
3105
|
rewardType: RewardType;
|
|
3113
3106
|
utxoId: string;
|
|
3114
3107
|
outputIndex: number;
|
|
3115
|
-
|
|
3116
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3117
|
-
*/
|
|
3118
|
-
reward: PChainAsset;
|
|
3108
|
+
reward: AssetWithPriceInfo;
|
|
3119
3109
|
rewardTxHash: string;
|
|
3120
3110
|
};
|
|
3121
3111
|
|
|
@@ -3127,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3127
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
3128
3118
|
};
|
|
3129
3119
|
|
|
3120
|
+
type AssetAmount = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Unique ID for an asset.
|
|
3123
|
+
*/
|
|
3124
|
+
assetId: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Name of this asset.
|
|
3127
|
+
*/
|
|
3128
|
+
name: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Symbol for this asset (max 4 characters).
|
|
3131
|
+
*/
|
|
3132
|
+
symbol: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Denomination of this asset to represent fungibility.
|
|
3135
|
+
*/
|
|
3136
|
+
denomination: number;
|
|
3137
|
+
type: PrimaryNetworkAssetType;
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount of the asset.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3130
3144
|
type PendingReward = {
|
|
3131
3145
|
/**
|
|
3132
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -3140,9 +3154,9 @@ type PendingReward = {
|
|
|
3140
3154
|
rewardType: RewardType;
|
|
3141
3155
|
progress: number;
|
|
3142
3156
|
/**
|
|
3143
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3144
3158
|
*/
|
|
3145
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
3146
3160
|
};
|
|
3147
3161
|
|
|
3148
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -3162,25 +3176,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3162
3176
|
* @returns ListPendingRewardsResponse
|
|
3163
3177
|
* @throws ApiError
|
|
3164
3178
|
*/
|
|
3165
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3179
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3166
3180
|
/**
|
|
3167
3181
|
* Either mainnet or a testnet.
|
|
3168
3182
|
*/
|
|
3169
3183
|
network: Network;
|
|
3170
3184
|
/**
|
|
3171
|
-
* 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".
|
|
3185
|
+
* 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.
|
|
3172
3186
|
*/
|
|
3173
3187
|
addresses?: string;
|
|
3174
|
-
/**
|
|
3175
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3176
|
-
*/
|
|
3177
|
-
pageSize?: number;
|
|
3178
3188
|
/**
|
|
3179
3189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3180
3190
|
*/
|
|
3181
3191
|
pageToken?: string;
|
|
3182
3192
|
/**
|
|
3183
|
-
*
|
|
3193
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3194
|
+
*/
|
|
3195
|
+
pageSize?: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3184
3198
|
*/
|
|
3185
3199
|
nodeIds?: string;
|
|
3186
3200
|
/**
|
|
@@ -3194,149 +3208,126 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3194
3208
|
* @returns ListHistoricalRewardsResponse
|
|
3195
3209
|
* @throws ApiError
|
|
3196
3210
|
*/
|
|
3197
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3211
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3198
3212
|
/**
|
|
3199
3213
|
* Either mainnet or a testnet.
|
|
3200
3214
|
*/
|
|
3201
3215
|
network: Network;
|
|
3202
3216
|
/**
|
|
3203
|
-
* 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".
|
|
3217
|
+
* 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.
|
|
3204
3218
|
*/
|
|
3205
3219
|
addresses?: string;
|
|
3206
|
-
/**
|
|
3207
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3208
|
-
*/
|
|
3209
|
-
pageSize?: number;
|
|
3210
3220
|
/**
|
|
3211
3221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3212
3222
|
*/
|
|
3213
3223
|
pageToken?: string;
|
|
3214
3224
|
/**
|
|
3215
|
-
*
|
|
3225
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3226
|
+
*/
|
|
3227
|
+
pageSize?: number;
|
|
3228
|
+
/**
|
|
3229
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3216
3230
|
*/
|
|
3217
3231
|
nodeIds?: string;
|
|
3218
3232
|
/**
|
|
3219
3233
|
* 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.
|
|
3220
3234
|
*/
|
|
3221
3235
|
sortOrder?: SortOrder;
|
|
3236
|
+
/**
|
|
3237
|
+
* The currency that return values should use. Defaults to USD.
|
|
3238
|
+
*/
|
|
3239
|
+
currency?: CurrencyCode;
|
|
3222
3240
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3223
3241
|
}
|
|
3224
3242
|
|
|
3225
|
-
type
|
|
3243
|
+
type UtxoCredential = {
|
|
3226
3244
|
/**
|
|
3227
|
-
*
|
|
3245
|
+
* Signature provided to consume the output.
|
|
3228
3246
|
*/
|
|
3229
|
-
|
|
3247
|
+
signature?: string;
|
|
3230
3248
|
/**
|
|
3231
|
-
*
|
|
3249
|
+
* Public key associated with the signature.
|
|
3232
3250
|
*/
|
|
3233
|
-
|
|
3251
|
+
publicKey?: string;
|
|
3252
|
+
};
|
|
3253
|
+
|
|
3254
|
+
type EVMInput = {
|
|
3234
3255
|
/**
|
|
3235
|
-
*
|
|
3256
|
+
* EVM address from which the asset is exported in ExportTx.
|
|
3236
3257
|
*/
|
|
3237
|
-
|
|
3258
|
+
fromAddress: string;
|
|
3238
3259
|
/**
|
|
3239
|
-
*
|
|
3240
|
-
*/
|
|
3241
|
-
denomination: number;
|
|
3242
|
-
/**
|
|
3243
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
3244
3261
|
*/
|
|
3245
|
-
|
|
3262
|
+
asset: AssetAmount;
|
|
3246
3263
|
/**
|
|
3247
|
-
*
|
|
3264
|
+
* Credentials that signed this transaction.
|
|
3248
3265
|
*/
|
|
3249
|
-
|
|
3266
|
+
credentials: Array<UtxoCredential>;
|
|
3250
3267
|
};
|
|
3251
3268
|
|
|
3252
|
-
type
|
|
3253
|
-
/**
|
|
3254
|
-
* Signature provided to consume the output
|
|
3255
|
-
*/
|
|
3256
|
-
signature?: string;
|
|
3269
|
+
type Utxo = {
|
|
3257
3270
|
/**
|
|
3258
|
-
*
|
|
3271
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3259
3272
|
*/
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
type EVMInput = {
|
|
3273
|
+
addresses: Array<string>;
|
|
3274
|
+
asset: AssetAmount;
|
|
3264
3275
|
/**
|
|
3265
|
-
*
|
|
3276
|
+
* Blockchain ID on which this output is consumed on.
|
|
3266
3277
|
*/
|
|
3267
|
-
|
|
3278
|
+
consumedOnChainId: string;
|
|
3268
3279
|
/**
|
|
3269
|
-
*
|
|
3280
|
+
* Transaction ID that consumed this output.
|
|
3270
3281
|
*/
|
|
3271
|
-
|
|
3282
|
+
consumingTxHash?: string;
|
|
3272
3283
|
/**
|
|
3273
|
-
*
|
|
3284
|
+
* Blockchain ID on which this output is created on.
|
|
3274
3285
|
*/
|
|
3275
|
-
|
|
3276
|
-
};
|
|
3277
|
-
|
|
3278
|
-
type Utxo = {
|
|
3286
|
+
createdOnChainId: string;
|
|
3279
3287
|
/**
|
|
3280
3288
|
* UTXO ID for this output.
|
|
3281
3289
|
*/
|
|
3282
3290
|
utxoId: string;
|
|
3283
|
-
asset: Asset;
|
|
3284
|
-
/**
|
|
3285
|
-
* Type of output.
|
|
3286
|
-
*/
|
|
3287
|
-
utxoType: string;
|
|
3288
3291
|
/**
|
|
3289
|
-
*
|
|
3292
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3290
3293
|
*/
|
|
3291
|
-
|
|
3292
|
-
/**
|
|
3293
|
-
* Blockchain ID on which this output is consumed on.
|
|
3294
|
-
*/
|
|
3295
|
-
consumedOnChainId: string;
|
|
3294
|
+
consumingTxTimestamp?: number;
|
|
3296
3295
|
/**
|
|
3297
3296
|
* Transaction ID that created this output.
|
|
3298
3297
|
*/
|
|
3299
3298
|
creationTxHash: string;
|
|
3300
3299
|
/**
|
|
3301
|
-
*
|
|
3302
|
-
*/
|
|
3303
|
-
consumingTxHash?: string;
|
|
3304
|
-
/**
|
|
3305
|
-
* Timestamp in seconds this output is consumed.
|
|
3306
|
-
*/
|
|
3307
|
-
consumingTxTimestamp?: number;
|
|
3308
|
-
/**
|
|
3309
|
-
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3300
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3310
3301
|
*/
|
|
3311
|
-
|
|
3302
|
+
credentials?: Array<UtxoCredential>;
|
|
3312
3303
|
/**
|
|
3313
|
-
*
|
|
3304
|
+
* Index representing the minting set for the NFT mint output.
|
|
3314
3305
|
*/
|
|
3315
|
-
|
|
3306
|
+
groupId?: number;
|
|
3316
3307
|
/**
|
|
3317
3308
|
* Locktime in seconds after which this output can be consumed.
|
|
3318
3309
|
*/
|
|
3319
3310
|
locktime: number;
|
|
3320
3311
|
/**
|
|
3321
|
-
*
|
|
3312
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3322
3313
|
*/
|
|
3323
|
-
|
|
3314
|
+
outputIndex: string;
|
|
3324
3315
|
/**
|
|
3325
|
-
*
|
|
3316
|
+
* Hex encoded data for NFT assets.
|
|
3326
3317
|
*/
|
|
3327
|
-
|
|
3318
|
+
payload?: string;
|
|
3328
3319
|
/**
|
|
3329
|
-
*
|
|
3320
|
+
* Minimum number of signatures required to consume this output.
|
|
3330
3321
|
*/
|
|
3331
|
-
|
|
3322
|
+
threshold: number;
|
|
3332
3323
|
/**
|
|
3333
|
-
*
|
|
3324
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3334
3325
|
*/
|
|
3335
|
-
|
|
3326
|
+
timestamp: number;
|
|
3336
3327
|
/**
|
|
3337
|
-
*
|
|
3328
|
+
* Type of output.
|
|
3338
3329
|
*/
|
|
3339
|
-
|
|
3330
|
+
utxoType: string;
|
|
3340
3331
|
};
|
|
3341
3332
|
|
|
3342
3333
|
type CChainExportTransaction = {
|
|
@@ -3363,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
3363
3354
|
/**
|
|
3364
3355
|
* Assets unlocked by inputs of this transaction.
|
|
3365
3356
|
*/
|
|
3366
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3367
3358
|
/**
|
|
3368
3359
|
* Assets created by outputs of this transaction.
|
|
3369
3360
|
*/
|
|
3370
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
3371
3362
|
/**
|
|
3372
3363
|
* Source chain for an atomic transaction.
|
|
3373
3364
|
*/
|
|
@@ -3398,9 +3389,9 @@ type EVMOutput = {
|
|
|
3398
3389
|
*/
|
|
3399
3390
|
toAddress: string;
|
|
3400
3391
|
/**
|
|
3401
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
3402
3393
|
*/
|
|
3403
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
3404
3395
|
};
|
|
3405
3396
|
|
|
3406
3397
|
type CChainImportTransaction = {
|
|
@@ -3427,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
3427
3418
|
/**
|
|
3428
3419
|
* Assets unlocked by inputs of this transaction.
|
|
3429
3420
|
*/
|
|
3430
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3431
3422
|
/**
|
|
3432
3423
|
* Assets created by outputs of this transaction.
|
|
3433
3424
|
*/
|
|
3434
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
3435
3426
|
/**
|
|
3436
3427
|
* Source chain for an atomic transaction.
|
|
3437
3428
|
*/
|
|
@@ -3467,17 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3467
3458
|
|
|
3468
3459
|
declare enum PChainTransactionType {
|
|
3469
3460
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3470
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3471
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
3461
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3474
|
-
|
|
3475
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3462
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3476
3463
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3477
3464
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3478
3465
|
IMPORT_TX = "ImportTx",
|
|
3479
3466
|
EXPORT_TX = "ExportTx",
|
|
3480
3467
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3468
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3469
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3470
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
|
+
BASE_TX = "BaseTx",
|
|
3474
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3481
3475
|
UNKNOWN = "UNKNOWN"
|
|
3482
3476
|
}
|
|
3483
3477
|
|
|
@@ -3488,29 +3482,48 @@ declare enum UtxoType {
|
|
|
3488
3482
|
|
|
3489
3483
|
type PChainUtxo = {
|
|
3490
3484
|
/**
|
|
3491
|
-
*
|
|
3485
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3492
3486
|
*/
|
|
3493
3487
|
addresses: Array<string>;
|
|
3488
|
+
asset: AssetAmount;
|
|
3489
|
+
/**
|
|
3490
|
+
* Blockchain ID on which this output is consumed on.
|
|
3491
|
+
*/
|
|
3492
|
+
consumedOnChainId: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* Transaction ID that consumed this output.
|
|
3495
|
+
*/
|
|
3496
|
+
consumingTxHash?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* Blockchain ID on which this output is created on.
|
|
3499
|
+
*/
|
|
3500
|
+
createdOnChainId: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* UTXO ID for this output.
|
|
3503
|
+
*/
|
|
3494
3504
|
utxoId: string;
|
|
3495
|
-
|
|
3496
|
-
|
|
3505
|
+
/**
|
|
3506
|
+
* @deprecated
|
|
3507
|
+
*/
|
|
3508
|
+
amount: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* @deprecated
|
|
3511
|
+
*/
|
|
3512
|
+
assetId: string;
|
|
3497
3513
|
blockNumber: string;
|
|
3498
3514
|
blockTimestamp: number;
|
|
3499
|
-
consumingTxHash?: string;
|
|
3500
|
-
consumingBlockTimestamp?: number;
|
|
3501
3515
|
consumingBlockNumber?: string;
|
|
3502
|
-
|
|
3503
|
-
utxoType: UtxoType;
|
|
3504
|
-
amount: string;
|
|
3505
|
-
stakeableLocktime?: number;
|
|
3516
|
+
consumingBlockTimestamp?: number;
|
|
3506
3517
|
platformLocktime?: number;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3518
|
+
outputIndex: number;
|
|
3519
|
+
rewardType?: RewardType;
|
|
3520
|
+
stakeableLocktime?: number;
|
|
3510
3521
|
staked?: boolean;
|
|
3511
|
-
|
|
3522
|
+
threshold?: number;
|
|
3523
|
+
txHash: string;
|
|
3512
3524
|
utxoEndTimestamp?: number;
|
|
3513
|
-
|
|
3525
|
+
utxoStartTimestamp?: number;
|
|
3526
|
+
utxoType: UtxoType;
|
|
3514
3527
|
};
|
|
3515
3528
|
|
|
3516
3529
|
type PChainTransaction = {
|
|
@@ -3536,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3536
3549
|
*/
|
|
3537
3550
|
destinationChain?: string;
|
|
3538
3551
|
/**
|
|
3539
|
-
* A list of objects containing P-chain Asset
|
|
3552
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3540
3553
|
*/
|
|
3541
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3542
3555
|
/**
|
|
3543
|
-
* A list of objects containing P-chain Asset
|
|
3556
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3544
3557
|
*/
|
|
3545
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3546
3559
|
/**
|
|
3547
|
-
* A list of objects containing P-chain Asset
|
|
3560
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3548
3561
|
*/
|
|
3549
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3550
3563
|
/**
|
|
3551
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3552
3565
|
*/
|
|
@@ -3578,6 +3591,10 @@ type PChainTransaction = {
|
|
|
3578
3591
|
* Present for RewardValidatorTx
|
|
3579
3592
|
*/
|
|
3580
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3581
3598
|
};
|
|
3582
3599
|
|
|
3583
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3589,6 +3606,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3589
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3590
3607
|
};
|
|
3591
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Type of transaction.
|
|
3611
|
+
*/
|
|
3592
3612
|
declare enum XChainTransactionType {
|
|
3593
3613
|
BASE_TX = "BaseTx",
|
|
3594
3614
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3611,9 +3631,6 @@ type XChainLinearTransaction = {
|
|
|
3611
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3612
3632
|
*/
|
|
3613
3633
|
timestamp: number;
|
|
3614
|
-
/**
|
|
3615
|
-
* Type of transaction.
|
|
3616
|
-
*/
|
|
3617
3634
|
txType: XChainTransactionType;
|
|
3618
3635
|
/**
|
|
3619
3636
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3624,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3624
3641
|
/**
|
|
3625
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3626
3643
|
*/
|
|
3627
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3628
3645
|
/**
|
|
3629
3646
|
* Assets created by outputs of this transaction.
|
|
3630
3647
|
*/
|
|
3631
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3632
3649
|
/**
|
|
3633
3650
|
* Source chain for an atomic transaction.
|
|
3634
3651
|
*/
|
|
@@ -3638,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3638
3655
|
*/
|
|
3639
3656
|
destinationChain?: string;
|
|
3640
3657
|
/**
|
|
3641
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3642
3659
|
*/
|
|
3643
3660
|
assetCreated?: XChainAssetDetails;
|
|
3644
3661
|
/**
|
|
@@ -3688,9 +3705,6 @@ type XChainNonLinearTransaction = {
|
|
|
3688
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3689
3706
|
*/
|
|
3690
3707
|
timestamp: number;
|
|
3691
|
-
/**
|
|
3692
|
-
* Type of transaction.
|
|
3693
|
-
*/
|
|
3694
3708
|
txType: XChainTransactionType;
|
|
3695
3709
|
/**
|
|
3696
3710
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3701,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3701
3715
|
/**
|
|
3702
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3703
3717
|
*/
|
|
3704
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3705
3719
|
/**
|
|
3706
3720
|
* Assets created by outputs of this transaction.
|
|
3707
3721
|
*/
|
|
3708
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3709
3723
|
/**
|
|
3710
3724
|
* Source chain for an atomic transaction.
|
|
3711
3725
|
*/
|
|
@@ -3715,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3715
3729
|
*/
|
|
3716
3730
|
destinationChain?: string;
|
|
3717
3731
|
/**
|
|
3718
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3719
3733
|
*/
|
|
3720
3734
|
assetCreated?: XChainAssetDetails;
|
|
3721
3735
|
/**
|
|
@@ -3749,19 +3763,21 @@ declare enum PChainId {
|
|
|
3749
3763
|
|
|
3750
3764
|
declare enum PrimaryNetworkTxType {
|
|
3751
3765
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3752
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3753
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3754
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3755
3766
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3756
|
-
|
|
3757
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3767
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3758
3768
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3759
3769
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3760
3770
|
IMPORT_TX = "ImportTx",
|
|
3761
3771
|
EXPORT_TX = "ExportTx",
|
|
3762
3772
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3763
|
-
|
|
3773
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3774
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3775
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3777
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3764
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3765
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3766
3782
|
OPERATION_TX = "OperationTx"
|
|
3767
3783
|
}
|
|
@@ -3793,13 +3809,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3793
3809
|
* List latest transactions
|
|
3794
3810
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3795
3811
|
*
|
|
3796
|
-
* Transactions are filterable by addresses.
|
|
3812
|
+
* 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.
|
|
3797
3813
|
*
|
|
3798
3814
|
* 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.
|
|
3799
3815
|
* @returns any
|
|
3800
3816
|
* @throws ApiError
|
|
3801
3817
|
*/
|
|
3802
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3818
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3803
3819
|
/**
|
|
3804
3820
|
* A primary network blockchain id or alias.
|
|
3805
3821
|
*/
|
|
@@ -3824,14 +3840,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3824
3840
|
* Query param for retrieving items before a specific timestamp.
|
|
3825
3841
|
*/
|
|
3826
3842
|
endTimestamp?: number;
|
|
3827
|
-
/**
|
|
3828
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3829
|
-
*/
|
|
3830
|
-
pageSize?: number;
|
|
3831
3843
|
/**
|
|
3832
3844
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3833
3845
|
*/
|
|
3834
3846
|
pageToken?: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3849
|
+
*/
|
|
3850
|
+
pageSize?: number;
|
|
3835
3851
|
/**
|
|
3836
3852
|
* 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.
|
|
3837
3853
|
*/
|
|
@@ -3843,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3843
3859
|
* @returns ListPChainTransactionsResponse
|
|
3844
3860
|
* @throws ApiError
|
|
3845
3861
|
*/
|
|
3846
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3862
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3847
3863
|
/**
|
|
3848
3864
|
* A primary network blockchain id or alias.
|
|
3849
3865
|
*/
|
|
@@ -3868,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3868
3884
|
* Query param for retrieving items before a specific timestamp.
|
|
3869
3885
|
*/
|
|
3870
3886
|
endTimestamp?: number;
|
|
3871
|
-
/**
|
|
3872
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3873
|
-
*/
|
|
3874
|
-
pageSize?: number;
|
|
3875
3887
|
/**
|
|
3876
3888
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3877
3889
|
*/
|
|
3878
3890
|
pageToken?: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3893
|
+
*/
|
|
3894
|
+
pageSize?: number;
|
|
3879
3895
|
/**
|
|
3880
3896
|
* 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.
|
|
3881
3897
|
*/
|
|
@@ -3887,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3887
3903
|
* @returns ListXChainTransactionsResponse
|
|
3888
3904
|
* @throws ApiError
|
|
3889
3905
|
*/
|
|
3890
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3891
3907
|
/**
|
|
3892
3908
|
* A primary network blockchain id or alias.
|
|
3893
3909
|
*/
|
|
@@ -3912,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3912
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3913
3929
|
*/
|
|
3914
3930
|
endTimestamp?: number;
|
|
3915
|
-
/**
|
|
3916
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3917
|
-
*/
|
|
3918
|
-
pageSize?: number;
|
|
3919
3931
|
/**
|
|
3920
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3921
3933
|
*/
|
|
3922
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3923
3939
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3924
3940
|
}
|
|
3925
3941
|
|
|
@@ -3950,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3950
3966
|
* @returns any
|
|
3951
3967
|
* @throws ApiError
|
|
3952
3968
|
*/
|
|
3953
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3969
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3954
3970
|
/**
|
|
3955
3971
|
* A primary network blockchain id or alias.
|
|
3956
3972
|
*/
|
|
@@ -3963,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3963
3979
|
* 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".
|
|
3964
3980
|
*/
|
|
3965
3981
|
addresses?: string;
|
|
3966
|
-
/**
|
|
3967
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3968
|
-
*/
|
|
3969
|
-
pageSize?: number;
|
|
3970
3982
|
/**
|
|
3971
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3972
3984
|
*/
|
|
3973
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3974
3990
|
/**
|
|
3975
3991
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3976
3992
|
*/
|
|
@@ -4015,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4015
4031
|
* @returns ListXChainVerticesResponse
|
|
4016
4032
|
* @throws ApiError
|
|
4017
4033
|
*/
|
|
4018
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4034
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4019
4035
|
/**
|
|
4020
4036
|
* A primary network blockchain id or alias.
|
|
4021
4037
|
*/
|
|
@@ -4024,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4024
4040
|
* Either mainnet or a testnet.
|
|
4025
4041
|
*/
|
|
4026
4042
|
network: Network;
|
|
4027
|
-
/**
|
|
4028
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4029
|
-
*/
|
|
4030
|
-
pageSize?: number;
|
|
4031
4043
|
/**
|
|
4032
4044
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4033
4045
|
*/
|
|
4034
4046
|
pageToken?: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4049
|
+
*/
|
|
4050
|
+
pageSize?: number;
|
|
4035
4051
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4036
4052
|
/**
|
|
4037
4053
|
* Get vertex
|
|
@@ -4059,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4059
4075
|
* @returns ListXChainVerticesResponse
|
|
4060
4076
|
* @throws ApiError
|
|
4061
4077
|
*/
|
|
4062
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4078
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4063
4079
|
/**
|
|
4064
4080
|
* The height of a vertex.
|
|
4065
4081
|
*/
|
|
@@ -4072,19 +4088,438 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4072
4088
|
* Either mainnet or a testnet.
|
|
4073
4089
|
*/
|
|
4074
4090
|
network: Network;
|
|
4091
|
+
/**
|
|
4092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
|
+
*/
|
|
4094
|
+
pageToken?: string;
|
|
4075
4095
|
/**
|
|
4076
4096
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4077
4097
|
*/
|
|
4078
4098
|
pageSize?: number;
|
|
4099
|
+
/**
|
|
4100
|
+
* 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.
|
|
4101
|
+
*/
|
|
4102
|
+
sortOrder?: SortOrder;
|
|
4103
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
type RpcErrorDto = {
|
|
4107
|
+
code: number;
|
|
4108
|
+
message: string;
|
|
4109
|
+
data?: Record<string, any>;
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
type RpcErrorResponseDto = {
|
|
4113
|
+
jsonrpc: string;
|
|
4114
|
+
id?: (string | number);
|
|
4115
|
+
error: RpcErrorDto;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
type RpcRequestBodyDto = {
|
|
4119
|
+
method: string;
|
|
4120
|
+
params?: Record<string, any>;
|
|
4121
|
+
id?: (string | number);
|
|
4122
|
+
jsonrpc?: string;
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
type RpcSuccessResponseDto = {
|
|
4126
|
+
jsonrpc: string;
|
|
4127
|
+
id?: (string | number);
|
|
4128
|
+
result: Record<string, any>;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
declare class RpcService {
|
|
4132
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4133
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4134
|
+
/**
|
|
4135
|
+
* Calls JSON-RPC method
|
|
4136
|
+
* Calls JSON-RPC method.
|
|
4137
|
+
* @returns any
|
|
4138
|
+
* @throws ApiError
|
|
4139
|
+
*/
|
|
4140
|
+
rpc({ chainId, requestBody, }: {
|
|
4141
|
+
/**
|
|
4142
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4143
|
+
*/
|
|
4144
|
+
chainId: string;
|
|
4145
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4146
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
type TeleporterDestinationTransaction = {
|
|
4150
|
+
txHash: string;
|
|
4151
|
+
timestamp: number;
|
|
4152
|
+
gasSpent: string;
|
|
4153
|
+
rewardRedeemer: string;
|
|
4154
|
+
delivererAddress: string;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
type TeleporterReceipt = {
|
|
4158
|
+
receivedMessageNonce: string;
|
|
4159
|
+
relayerRewardAddress: string;
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
type TeleporterRewardDetails = {
|
|
4163
|
+
/**
|
|
4164
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4165
|
+
*/
|
|
4166
|
+
address: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract name.
|
|
4169
|
+
*/
|
|
4170
|
+
name: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The contract symbol.
|
|
4173
|
+
*/
|
|
4174
|
+
symbol: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4177
|
+
*/
|
|
4178
|
+
decimals: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* The logo uri for the address.
|
|
4181
|
+
*/
|
|
4182
|
+
logoUri?: string;
|
|
4183
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4184
|
+
/**
|
|
4185
|
+
* The token price, if available.
|
|
4186
|
+
*/
|
|
4187
|
+
price?: Money;
|
|
4188
|
+
value: string;
|
|
4189
|
+
};
|
|
4190
|
+
declare namespace TeleporterRewardDetails {
|
|
4191
|
+
enum ercType {
|
|
4192
|
+
ERC_20 = "ERC-20"
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4197
|
+
messageId: string;
|
|
4198
|
+
teleporterContractAddress: string;
|
|
4199
|
+
sourceBlockchainId: string;
|
|
4200
|
+
destinationBlockchainId: string;
|
|
4201
|
+
messageNonce: string;
|
|
4202
|
+
from: string;
|
|
4203
|
+
to: string;
|
|
4204
|
+
data?: string;
|
|
4205
|
+
messageExecuted: boolean;
|
|
4206
|
+
receipts: Array<TeleporterReceipt>;
|
|
4207
|
+
receiptDelivered: boolean;
|
|
4208
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4209
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4210
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4211
|
+
};
|
|
4212
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4213
|
+
enum status {
|
|
4214
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
type TeleporterSourceTransaction = {
|
|
4219
|
+
txHash: string;
|
|
4220
|
+
timestamp: number;
|
|
4221
|
+
gasSpent: string;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
type DeliveredTeleporterMessage = {
|
|
4225
|
+
messageId: string;
|
|
4226
|
+
teleporterContractAddress: string;
|
|
4227
|
+
sourceBlockchainId: string;
|
|
4228
|
+
destinationBlockchainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4238
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4239
|
+
status: DeliveredTeleporterMessage.status;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4242
|
+
enum status {
|
|
4243
|
+
DELIVERED = "delivered"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type PendingTeleporterMessage = {
|
|
4248
|
+
messageId: string;
|
|
4249
|
+
teleporterContractAddress: string;
|
|
4250
|
+
sourceBlockchainId: string;
|
|
4251
|
+
destinationBlockchainId: string;
|
|
4252
|
+
messageNonce: string;
|
|
4253
|
+
from: string;
|
|
4254
|
+
to: string;
|
|
4255
|
+
data?: string;
|
|
4256
|
+
messageExecuted: boolean;
|
|
4257
|
+
receipts: Array<TeleporterReceipt>;
|
|
4258
|
+
receiptDelivered: boolean;
|
|
4259
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4260
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4261
|
+
status: PendingTeleporterMessage.status;
|
|
4262
|
+
};
|
|
4263
|
+
declare namespace PendingTeleporterMessage {
|
|
4264
|
+
enum status {
|
|
4265
|
+
PENDING = "pending"
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
type ListTeleporterMessagesResponse = {
|
|
4270
|
+
/**
|
|
4271
|
+
* 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.
|
|
4272
|
+
*/
|
|
4273
|
+
nextPageToken?: string;
|
|
4274
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4275
|
+
};
|
|
4276
|
+
|
|
4277
|
+
declare class TeleporterService {
|
|
4278
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4279
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4280
|
+
/**
|
|
4281
|
+
* Get a teleporter message
|
|
4282
|
+
* Gets a teleporter message by message ID.
|
|
4283
|
+
* @returns any
|
|
4284
|
+
* @throws ApiError
|
|
4285
|
+
*/
|
|
4286
|
+
getTeleporterMessage({ messageId, }: {
|
|
4287
|
+
/**
|
|
4288
|
+
* The message ID of the teleporter message.
|
|
4289
|
+
*/
|
|
4290
|
+
messageId: string;
|
|
4291
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4292
|
+
/**
|
|
4293
|
+
* List teleporter messages
|
|
4294
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4295
|
+
* @returns ListTeleporterMessagesResponse
|
|
4296
|
+
* @throws ApiError
|
|
4297
|
+
*/
|
|
4298
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4079
4299
|
/**
|
|
4080
4300
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4081
4301
|
*/
|
|
4082
4302
|
pageToken?: string;
|
|
4083
4303
|
/**
|
|
4084
|
-
* The
|
|
4304
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4085
4305
|
*/
|
|
4086
|
-
|
|
4087
|
-
|
|
4306
|
+
pageSize?: number;
|
|
4307
|
+
/**
|
|
4308
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4309
|
+
*/
|
|
4310
|
+
sourceBlockchainId?: string;
|
|
4311
|
+
/**
|
|
4312
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4313
|
+
*/
|
|
4314
|
+
destinationBlockchainId?: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* The address of the recipient of the teleporter message.
|
|
4317
|
+
*/
|
|
4318
|
+
to?: string;
|
|
4319
|
+
/**
|
|
4320
|
+
* The address of the sender of the teleporter message.
|
|
4321
|
+
*/
|
|
4322
|
+
from?: string;
|
|
4323
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
type AddressesChangeRequest = {
|
|
4327
|
+
/**
|
|
4328
|
+
* Ethereum address(es) for the address_activity event type
|
|
4329
|
+
*/
|
|
4330
|
+
addresses: Array<any[]>;
|
|
4331
|
+
};
|
|
4332
|
+
|
|
4333
|
+
type AddressActivityMetadata = {
|
|
4334
|
+
/**
|
|
4335
|
+
* Ethereum address(es) for the address_activity event type
|
|
4336
|
+
*/
|
|
4337
|
+
addresses: Array<any[]>;
|
|
4338
|
+
/**
|
|
4339
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4340
|
+
*/
|
|
4341
|
+
eventSignatures?: Array<string>;
|
|
4342
|
+
};
|
|
4343
|
+
|
|
4344
|
+
declare enum EventType {
|
|
4345
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4346
|
+
}
|
|
4347
|
+
|
|
4348
|
+
declare enum WebhookStatusType {
|
|
4349
|
+
ACTIVE = "active",
|
|
4350
|
+
INACTIVE = "inactive"
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4353
|
+
type WebhookResponse = {
|
|
4354
|
+
id: string;
|
|
4355
|
+
eventType: EventType;
|
|
4356
|
+
metadata: AddressActivityMetadata;
|
|
4357
|
+
/**
|
|
4358
|
+
* Whether to include traces in the webhook payload.
|
|
4359
|
+
*/
|
|
4360
|
+
includeInternalTxs?: boolean;
|
|
4361
|
+
/**
|
|
4362
|
+
* Whether to include logs in the webhook payload.
|
|
4363
|
+
*/
|
|
4364
|
+
includeLogs?: boolean;
|
|
4365
|
+
url: string;
|
|
4366
|
+
chainId: string;
|
|
4367
|
+
status: WebhookStatusType;
|
|
4368
|
+
createdAt: number;
|
|
4369
|
+
name: string;
|
|
4370
|
+
description: string;
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
type ListWebhooksResponse = {
|
|
4374
|
+
/**
|
|
4375
|
+
* 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.
|
|
4376
|
+
*/
|
|
4377
|
+
nextPageToken?: string;
|
|
4378
|
+
webhooks: Array<WebhookResponse>;
|
|
4379
|
+
};
|
|
4380
|
+
|
|
4381
|
+
type RegisterWebhookRequest = {
|
|
4382
|
+
url: string;
|
|
4383
|
+
chainId: string;
|
|
4384
|
+
eventType: EventType;
|
|
4385
|
+
metadata: AddressActivityMetadata;
|
|
4386
|
+
/**
|
|
4387
|
+
* Whether to include traces in the webhook payload.
|
|
4388
|
+
*/
|
|
4389
|
+
includeInternalTxs?: boolean;
|
|
4390
|
+
/**
|
|
4391
|
+
* Whether to include logs in the webhook payload.
|
|
4392
|
+
*/
|
|
4393
|
+
includeLogs?: boolean;
|
|
4394
|
+
};
|
|
4395
|
+
|
|
4396
|
+
type SharedSecretsResponse = {
|
|
4397
|
+
secret: string;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
type UpdateWebhookRequest = {
|
|
4401
|
+
name?: string;
|
|
4402
|
+
description?: string;
|
|
4403
|
+
url?: string;
|
|
4404
|
+
status?: WebhookStatusType;
|
|
4405
|
+
includeInternalTxs?: boolean;
|
|
4406
|
+
includeLogs?: boolean;
|
|
4407
|
+
};
|
|
4408
|
+
|
|
4409
|
+
declare enum WebhookStatus {
|
|
4410
|
+
ACTIVE = "active",
|
|
4411
|
+
INACTIVE = "inactive"
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
declare class WebhooksService {
|
|
4415
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4416
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4417
|
+
/**
|
|
4418
|
+
* Create a webhook
|
|
4419
|
+
* Create a new webhook.
|
|
4420
|
+
* @returns WebhookResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
registerWebhook({ requestBody, }: {
|
|
4424
|
+
requestBody: RegisterWebhookRequest;
|
|
4425
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4426
|
+
/**
|
|
4427
|
+
* List webhooks
|
|
4428
|
+
* Lists webhooks for the user.
|
|
4429
|
+
* @returns ListWebhooksResponse
|
|
4430
|
+
* @throws ApiError
|
|
4431
|
+
*/
|
|
4432
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4433
|
+
/**
|
|
4434
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4435
|
+
*/
|
|
4436
|
+
pageToken?: string;
|
|
4437
|
+
/**
|
|
4438
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4439
|
+
*/
|
|
4440
|
+
pageSize?: number;
|
|
4441
|
+
/**
|
|
4442
|
+
* 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.
|
|
4443
|
+
*/
|
|
4444
|
+
status?: WebhookStatus;
|
|
4445
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4446
|
+
/**
|
|
4447
|
+
* Get a webhook by ID
|
|
4448
|
+
* Retrieves a webhook by ID.
|
|
4449
|
+
* @returns WebhookResponse
|
|
4450
|
+
* @throws ApiError
|
|
4451
|
+
*/
|
|
4452
|
+
getWebhook({ id, }: {
|
|
4453
|
+
/**
|
|
4454
|
+
* The webhook identifier.
|
|
4455
|
+
*/
|
|
4456
|
+
id: string;
|
|
4457
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4458
|
+
/**
|
|
4459
|
+
* Deactivate a webhook
|
|
4460
|
+
* Deactivates a webhook by ID.
|
|
4461
|
+
* @returns WebhookResponse
|
|
4462
|
+
* @throws ApiError
|
|
4463
|
+
*/
|
|
4464
|
+
deactivateWebhook({ id, }: {
|
|
4465
|
+
/**
|
|
4466
|
+
* The webhook identifier.
|
|
4467
|
+
*/
|
|
4468
|
+
id: string;
|
|
4469
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4470
|
+
/**
|
|
4471
|
+
* Update a webhook
|
|
4472
|
+
* Updates an existing webhook.
|
|
4473
|
+
* @returns WebhookResponse
|
|
4474
|
+
* @throws ApiError
|
|
4475
|
+
*/
|
|
4476
|
+
updateWebhook({ id, requestBody, }: {
|
|
4477
|
+
/**
|
|
4478
|
+
* The webhook identifier.
|
|
4479
|
+
*/
|
|
4480
|
+
id: string;
|
|
4481
|
+
requestBody: UpdateWebhookRequest;
|
|
4482
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4483
|
+
/**
|
|
4484
|
+
* Generate a shared secret
|
|
4485
|
+
* Generates a new shared secret.
|
|
4486
|
+
* @returns SharedSecretsResponse
|
|
4487
|
+
* @throws ApiError
|
|
4488
|
+
*/
|
|
4489
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4490
|
+
/**
|
|
4491
|
+
* Get a shared secret
|
|
4492
|
+
* Get a previously generated shared secret.
|
|
4493
|
+
* @returns SharedSecretsResponse
|
|
4494
|
+
* @throws ApiError
|
|
4495
|
+
*/
|
|
4496
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4497
|
+
/**
|
|
4498
|
+
* Add address(es) to a webhook
|
|
4499
|
+
* Adding address(es) to a given webhook.
|
|
4500
|
+
* @returns WebhookResponse
|
|
4501
|
+
* @throws ApiError
|
|
4502
|
+
*/
|
|
4503
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4504
|
+
/**
|
|
4505
|
+
* The webhook identifier.
|
|
4506
|
+
*/
|
|
4507
|
+
id: string;
|
|
4508
|
+
requestBody: AddressesChangeRequest;
|
|
4509
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4510
|
+
/**
|
|
4511
|
+
* Remove address(es) from a webhook
|
|
4512
|
+
* Removing address(es) from a given webhook.
|
|
4513
|
+
* @returns WebhookResponse
|
|
4514
|
+
* @throws ApiError
|
|
4515
|
+
*/
|
|
4516
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4517
|
+
/**
|
|
4518
|
+
* The webhook identifier.
|
|
4519
|
+
*/
|
|
4520
|
+
id: string;
|
|
4521
|
+
requestBody: AddressesChangeRequest;
|
|
4522
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4088
4523
|
}
|
|
4089
4524
|
|
|
4090
4525
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4105,6 +4540,9 @@ declare class Glacier {
|
|
|
4105
4540
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4106
4541
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4107
4542
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4543
|
+
readonly rpc: RpcService;
|
|
4544
|
+
readonly teleporter: TeleporterService;
|
|
4545
|
+
readonly webhooks: WebhooksService;
|
|
4108
4546
|
readonly request: BaseHttpRequest;
|
|
4109
4547
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4110
4548
|
}
|
|
@@ -4126,4 +4564,11 @@ declare class ApiError extends Error {
|
|
|
4126
4564
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4127
4565
|
}
|
|
4128
4566
|
|
|
4129
|
-
|
|
4567
|
+
type NextPageToken = {
|
|
4568
|
+
/**
|
|
4569
|
+
* 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.
|
|
4570
|
+
*/
|
|
4571
|
+
nextPageToken?: string;
|
|
4572
|
+
};
|
|
4573
|
+
|
|
4574
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, 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, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|