@avalabs/glacier-sdk 2.8.0-canary.b05020f.0 → 2.8.0-canary.b4769c9.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 +777 -476
- package/dist/index.js +360 -200
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -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/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
- 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/BlsCredentials.d.ts +6 -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/CompletedValidatorDetails.d.ts +5 -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 +7 -2
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +7 -2
- 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/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +17 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +7 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -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 +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -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/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +10 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/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 +27 -23
- package/esm/generated/services/EvmBalancesService.js +10 -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 +17 -12
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
- package/esm/generated/services/PrimaryNetworkService.js +20 -14
- 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 +22 -25
- package/esm/generated/services/TeleporterService.js +8 -10
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +125 -0
- package/esm/index.d.ts +22 -2
- package/esm/index.js +8 -2
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
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,63 +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
|
-
/**
|
|
69
|
-
* Array of hexadecimal strings of the event signatures.
|
|
70
|
-
*/
|
|
71
|
-
eventSignatures?: Array<string>;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
declare enum EventType {
|
|
75
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare enum WebhookStatusType {
|
|
79
|
-
ACTIVE = "active",
|
|
80
|
-
INACTIVE = "inactive"
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type WebhookResponse = {
|
|
84
|
-
id: string;
|
|
85
|
-
eventType: EventType;
|
|
86
|
-
metadata: AddressActivityMetadata;
|
|
87
|
-
url: string;
|
|
88
|
-
chainId: string;
|
|
89
|
-
status: WebhookStatusType;
|
|
90
|
-
createdAt: number;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
type ListWebhooksResponse = {
|
|
94
|
-
/**
|
|
95
|
-
* 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.
|
|
96
|
-
*/
|
|
97
|
-
nextPageToken?: string;
|
|
98
|
-
webhooks: Array<WebhookResponse>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
type RegisterWebhookRequest = {
|
|
102
|
-
url: string;
|
|
103
|
-
chainId: string;
|
|
104
|
-
/**
|
|
105
|
-
* The type of event for the webhook
|
|
106
|
-
*/
|
|
107
|
-
eventType: EventType;
|
|
108
|
-
metadata: AddressActivityMetadata;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
type SharedSecretsResponse = {
|
|
112
|
-
secret: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
declare enum WebhookStatus {
|
|
116
|
-
ACTIVE = "active",
|
|
117
|
-
INACTIVE = "inactive"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
57
|
declare class DefaultService {
|
|
121
58
|
readonly httpRequest: BaseHttpRequest;
|
|
122
59
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -125,56 +62,11 @@ declare class DefaultService {
|
|
|
125
62
|
* @throws ApiError
|
|
126
63
|
*/
|
|
127
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
128
|
-
/**
|
|
129
|
-
* Register a webhook
|
|
130
|
-
* Registers a new webhook.
|
|
131
|
-
* @returns WebhookResponse
|
|
132
|
-
* @throws ApiError
|
|
133
|
-
*/
|
|
134
|
-
registerWebhook({ requestBody, }: {
|
|
135
|
-
requestBody: RegisterWebhookRequest;
|
|
136
|
-
}): CancelablePromise<WebhookResponse>;
|
|
137
|
-
/**
|
|
138
|
-
* List webhooks
|
|
139
|
-
* Lists webhooks for the user.
|
|
140
|
-
* @returns ListWebhooksResponse
|
|
141
|
-
* @throws ApiError
|
|
142
|
-
*/
|
|
143
|
-
listWebhooks({ pageSize, pageToken, status, }: {
|
|
144
|
-
/**
|
|
145
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
-
*/
|
|
147
|
-
pageSize?: number;
|
|
148
|
-
/**
|
|
149
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
|
-
*/
|
|
151
|
-
pageToken?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
154
|
-
*/
|
|
155
|
-
status?: WebhookStatus;
|
|
156
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* Deactivate a webhook
|
|
159
|
-
* Deactivates a webhook by ID.
|
|
160
|
-
* @returns WebhookResponse
|
|
161
|
-
* @throws ApiError
|
|
162
|
-
*/
|
|
163
|
-
deactivateWebhook({ id, }: {
|
|
164
|
-
/**
|
|
165
|
-
* The webhook identifier.
|
|
166
|
-
*/
|
|
167
|
-
id: string;
|
|
168
|
-
}): CancelablePromise<WebhookResponse>;
|
|
169
|
-
/**
|
|
170
|
-
* Generate a shared secret
|
|
171
|
-
* Generates a new shared secret.
|
|
172
|
-
* @returns SharedSecretsResponse
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
176
65
|
}
|
|
177
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
178
70
|
declare enum CurrencyCode {
|
|
179
71
|
USD = "usd",
|
|
180
72
|
EUR = "eur",
|
|
@@ -193,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
193
85
|
}
|
|
194
86
|
|
|
195
87
|
type Money = {
|
|
196
|
-
/**
|
|
197
|
-
* ISO 4217 currency code.
|
|
198
|
-
*/
|
|
199
88
|
currencyCode: CurrencyCode;
|
|
200
89
|
/**
|
|
201
90
|
* Monetary value in base 10 decimals.
|
|
@@ -245,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
245
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
246
135
|
};
|
|
247
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
248
140
|
declare enum NftTokenMetadataStatus {
|
|
249
141
|
UNKNOWN = "UNKNOWN",
|
|
250
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -260,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
260
152
|
}
|
|
261
153
|
|
|
262
154
|
type Erc1155TokenMetadata = {
|
|
263
|
-
/**
|
|
264
|
-
* The metadata indexing status of the nft.
|
|
265
|
-
*/
|
|
266
155
|
indexStatus: NftTokenMetadataStatus;
|
|
267
156
|
metadataLastUpdatedTimestamp?: number;
|
|
268
157
|
name?: string;
|
|
@@ -301,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
301
190
|
}
|
|
302
191
|
|
|
303
192
|
type Erc721TokenMetadata = {
|
|
304
|
-
/**
|
|
305
|
-
* The metadata indexing status of the nft.
|
|
306
|
-
*/
|
|
307
193
|
indexStatus: NftTokenMetadataStatus;
|
|
308
194
|
metadataLastUpdatedTimestamp?: number;
|
|
309
195
|
name?: string;
|
|
@@ -450,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
450
336
|
*/
|
|
451
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
452
338
|
/**
|
|
453
|
-
* 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.
|
|
454
340
|
*/
|
|
455
341
|
chainId: string;
|
|
456
342
|
/**
|
|
@@ -476,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
476
362
|
* @returns ListErc20BalancesResponse
|
|
477
363
|
* @throws ApiError
|
|
478
364
|
*/
|
|
479
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
480
366
|
/**
|
|
481
|
-
* 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.
|
|
482
368
|
*/
|
|
483
369
|
chainId: string;
|
|
484
370
|
/**
|
|
@@ -489,14 +375,18 @@ declare class EvmBalancesService {
|
|
|
489
375
|
* The block number, if not defined the block number will be the latest block.
|
|
490
376
|
*/
|
|
491
377
|
blockNumber?: string;
|
|
378
|
+
/**
|
|
379
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
380
|
+
*/
|
|
381
|
+
pageToken?: string;
|
|
492
382
|
/**
|
|
493
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
494
384
|
*/
|
|
495
385
|
pageSize?: number;
|
|
496
386
|
/**
|
|
497
|
-
*
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
498
388
|
*/
|
|
499
|
-
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
500
390
|
/**
|
|
501
391
|
* A comma separated list of contract addresses to filter by.
|
|
502
392
|
*/
|
|
@@ -514,23 +404,23 @@ declare class EvmBalancesService {
|
|
|
514
404
|
* @returns ListErc721BalancesResponse
|
|
515
405
|
* @throws ApiError
|
|
516
406
|
*/
|
|
517
|
-
listErc721Balances({ chainId, address,
|
|
407
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
408
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
409
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
410
|
*/
|
|
521
411
|
chainId: string;
|
|
522
412
|
/**
|
|
523
413
|
* A wallet address.
|
|
524
414
|
*/
|
|
525
415
|
address: string;
|
|
526
|
-
/**
|
|
527
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
528
|
-
*/
|
|
529
|
-
pageSize?: number;
|
|
530
416
|
/**
|
|
531
417
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
532
418
|
*/
|
|
533
419
|
pageToken?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
422
|
+
*/
|
|
423
|
+
pageSize?: number;
|
|
534
424
|
/**
|
|
535
425
|
* A contract addresses to filter by.
|
|
536
426
|
*/
|
|
@@ -546,9 +436,9 @@ declare class EvmBalancesService {
|
|
|
546
436
|
* @returns ListErc1155BalancesResponse
|
|
547
437
|
* @throws ApiError
|
|
548
438
|
*/
|
|
549
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
439
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
440
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
441
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
442
|
*/
|
|
553
443
|
chainId: string;
|
|
554
444
|
/**
|
|
@@ -559,14 +449,14 @@ declare class EvmBalancesService {
|
|
|
559
449
|
* The block number, if not defined the block number will be the latest block.
|
|
560
450
|
*/
|
|
561
451
|
blockNumber?: string;
|
|
562
|
-
/**
|
|
563
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
564
|
-
*/
|
|
565
|
-
pageSize?: number;
|
|
566
452
|
/**
|
|
567
453
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
568
454
|
*/
|
|
569
455
|
pageToken?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
458
|
+
*/
|
|
459
|
+
pageSize?: number;
|
|
570
460
|
/**
|
|
571
461
|
* A contract addresses to filter by.
|
|
572
462
|
*/
|
|
@@ -580,23 +470,23 @@ declare class EvmBalancesService {
|
|
|
580
470
|
* @returns ListCollectibleBalancesResponse
|
|
581
471
|
* @throws ApiError
|
|
582
472
|
*/
|
|
583
|
-
listCollectibleBalances({ chainId, address,
|
|
473
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
474
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
475
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
476
|
*/
|
|
587
477
|
chainId: string;
|
|
588
478
|
/**
|
|
589
479
|
* A wallet address.
|
|
590
480
|
*/
|
|
591
481
|
address: string;
|
|
592
|
-
/**
|
|
593
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
594
|
-
*/
|
|
595
|
-
pageSize?: number;
|
|
596
482
|
/**
|
|
597
483
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
598
484
|
*/
|
|
599
485
|
pageToken?: string;
|
|
486
|
+
/**
|
|
487
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
488
|
+
*/
|
|
489
|
+
pageSize?: number;
|
|
600
490
|
/**
|
|
601
491
|
* A contract addresses to filter by.
|
|
602
492
|
*/
|
|
@@ -709,19 +599,19 @@ declare class EvmBlocksService {
|
|
|
709
599
|
* @returns ListEvmBlocksResponse
|
|
710
600
|
* @throws ApiError
|
|
711
601
|
*/
|
|
712
|
-
getLatestBlocks({ chainId,
|
|
602
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
603
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
604
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
605
|
*/
|
|
716
606
|
chainId: string;
|
|
717
|
-
/**
|
|
718
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
719
|
-
*/
|
|
720
|
-
pageSize?: number;
|
|
721
607
|
/**
|
|
722
608
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
723
609
|
*/
|
|
724
610
|
pageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
613
|
+
*/
|
|
614
|
+
pageSize?: number;
|
|
725
615
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
726
616
|
/**
|
|
727
617
|
* Get block
|
|
@@ -731,7 +621,7 @@ declare class EvmBlocksService {
|
|
|
731
621
|
*/
|
|
732
622
|
getBlock({ chainId, blockId, }: {
|
|
733
623
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
624
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
625
|
*/
|
|
736
626
|
chainId: string;
|
|
737
627
|
/**
|
|
@@ -741,6 +631,9 @@ declare class EvmBlocksService {
|
|
|
741
631
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
742
632
|
}
|
|
743
633
|
|
|
634
|
+
/**
|
|
635
|
+
* 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.
|
|
636
|
+
*/
|
|
744
637
|
declare enum ChainStatus {
|
|
745
638
|
OK = "OK",
|
|
746
639
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -778,9 +671,6 @@ declare enum VmName {
|
|
|
778
671
|
|
|
779
672
|
type GetChainResponse = {
|
|
780
673
|
chainId: string;
|
|
781
|
-
/**
|
|
782
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
783
|
-
*/
|
|
784
674
|
status: ChainStatus;
|
|
785
675
|
chainName: string;
|
|
786
676
|
description: string;
|
|
@@ -796,13 +686,16 @@ type GetChainResponse = {
|
|
|
796
686
|
networkToken: NetworkToken;
|
|
797
687
|
chainLogoUri?: string;
|
|
798
688
|
private?: boolean;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
799
690
|
};
|
|
800
691
|
|
|
692
|
+
declare enum GlacierApiFeature {
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
695
|
+
}
|
|
696
|
+
|
|
801
697
|
type ChainInfo = {
|
|
802
698
|
chainId: string;
|
|
803
|
-
/**
|
|
804
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
805
|
-
*/
|
|
806
699
|
status: ChainStatus;
|
|
807
700
|
chainName: string;
|
|
808
701
|
description: string;
|
|
@@ -818,6 +711,7 @@ type ChainInfo = {
|
|
|
818
711
|
networkToken: NetworkToken;
|
|
819
712
|
chainLogoUri?: string;
|
|
820
713
|
private?: boolean;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
821
715
|
};
|
|
822
716
|
|
|
823
717
|
type ListChainsResponse = {
|
|
@@ -838,11 +732,15 @@ declare class EvmChainsService {
|
|
|
838
732
|
* @returns ListChainsResponse
|
|
839
733
|
* @throws ApiError
|
|
840
734
|
*/
|
|
841
|
-
supportedChains({ network, }: {
|
|
735
|
+
supportedChains({ network, feature, }: {
|
|
842
736
|
/**
|
|
843
737
|
* mainnet or testnet.
|
|
844
738
|
*/
|
|
845
739
|
network?: NetworkType;
|
|
740
|
+
/**
|
|
741
|
+
* Filter by feature.
|
|
742
|
+
*/
|
|
743
|
+
feature?: GlacierApiFeature;
|
|
846
744
|
}): CancelablePromise<ListChainsResponse>;
|
|
847
745
|
/**
|
|
848
746
|
* Get chain information
|
|
@@ -852,7 +750,7 @@ declare class EvmChainsService {
|
|
|
852
750
|
*/
|
|
853
751
|
getChainInfo({ chainId, }: {
|
|
854
752
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
753
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
754
|
*/
|
|
857
755
|
chainId: string;
|
|
858
756
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1045,7 @@ declare class EvmContractsService {
|
|
|
1147
1045
|
*/
|
|
1148
1046
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1047
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1048
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1049
|
*/
|
|
1152
1050
|
chainId: string;
|
|
1153
1051
|
/**
|
|
@@ -1163,7 +1061,7 @@ declare class EvmContractsService {
|
|
|
1163
1061
|
*/
|
|
1164
1062
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1063
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1065
|
*/
|
|
1168
1066
|
chainId: string;
|
|
1169
1067
|
/**
|
|
@@ -1297,6 +1195,9 @@ type Erc721TransferDetails = {
|
|
|
1297
1195
|
erc721Token: Erc721Token;
|
|
1298
1196
|
};
|
|
1299
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* 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.
|
|
1200
|
+
*/
|
|
1300
1201
|
declare enum TransactionMethodType {
|
|
1301
1202
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
1203
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1304,9 +1205,6 @@ declare enum TransactionMethodType {
|
|
|
1304
1205
|
}
|
|
1305
1206
|
|
|
1306
1207
|
type Method = {
|
|
1307
|
-
/**
|
|
1308
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1309
|
-
*/
|
|
1310
1208
|
callType: TransactionMethodType;
|
|
1311
1209
|
/**
|
|
1312
1210
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1667,7 +1565,7 @@ type ListTransfersResponse = {
|
|
|
1667
1565
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1668
1566
|
*/
|
|
1669
1567
|
nextPageToken?: string;
|
|
1670
|
-
transfers:
|
|
1568
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1671
1569
|
};
|
|
1672
1570
|
|
|
1673
1571
|
declare enum SortOrder {
|
|
@@ -1691,7 +1589,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1589
|
*/
|
|
1692
1590
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1591
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1592
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1593
|
*/
|
|
1696
1594
|
chainId: string;
|
|
1697
1595
|
/**
|
|
@@ -1709,23 +1607,23 @@ declare class EvmTransactionsService {
|
|
|
1709
1607
|
* @returns ListContractsResponse
|
|
1710
1608
|
* @throws ApiError
|
|
1711
1609
|
*/
|
|
1712
|
-
listContractDeployments({ chainId, address,
|
|
1610
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1611
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1612
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1613
|
*/
|
|
1716
1614
|
chainId: string;
|
|
1717
1615
|
/**
|
|
1718
1616
|
* A wallet address.
|
|
1719
1617
|
*/
|
|
1720
1618
|
address: string;
|
|
1721
|
-
/**
|
|
1722
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
-
*/
|
|
1724
|
-
pageSize?: number;
|
|
1725
1619
|
/**
|
|
1726
1620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1727
1621
|
*/
|
|
1728
1622
|
pageToken?: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1625
|
+
*/
|
|
1626
|
+
pageSize?: number;
|
|
1729
1627
|
}): CancelablePromise<ListContractsResponse>;
|
|
1730
1628
|
/**
|
|
1731
1629
|
* List ERC transfers
|
|
@@ -1733,9 +1631,9 @@ declare class EvmTransactionsService {
|
|
|
1733
1631
|
* @returns ListTransfersResponse
|
|
1734
1632
|
* @throws ApiError
|
|
1735
1633
|
*/
|
|
1736
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1634
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1635
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1636
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1637
|
*/
|
|
1740
1638
|
chainId: string;
|
|
1741
1639
|
/**
|
|
@@ -1750,14 +1648,14 @@ declare class EvmTransactionsService {
|
|
|
1750
1648
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1751
1649
|
*/
|
|
1752
1650
|
endBlock?: number;
|
|
1753
|
-
/**
|
|
1754
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
-
*/
|
|
1756
|
-
pageSize?: number;
|
|
1757
1651
|
/**
|
|
1758
1652
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1759
1653
|
*/
|
|
1760
1654
|
pageToken?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1657
|
+
*/
|
|
1658
|
+
pageSize?: number;
|
|
1761
1659
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
1660
|
/**
|
|
1763
1661
|
* List transactions
|
|
@@ -1767,23 +1665,23 @@ declare class EvmTransactionsService {
|
|
|
1767
1665
|
* @returns ListTransactionDetailsResponse
|
|
1768
1666
|
* @throws ApiError
|
|
1769
1667
|
*/
|
|
1770
|
-
listTransactions({ chainId, address,
|
|
1668
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1669
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1670
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1671
|
*/
|
|
1774
1672
|
chainId: string;
|
|
1775
1673
|
/**
|
|
1776
1674
|
* A wallet address.
|
|
1777
1675
|
*/
|
|
1778
1676
|
address: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1781
|
-
*/
|
|
1782
|
-
pageSize?: number;
|
|
1783
1677
|
/**
|
|
1784
1678
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1785
1679
|
*/
|
|
1786
1680
|
pageToken?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1683
|
+
*/
|
|
1684
|
+
pageSize?: number;
|
|
1787
1685
|
/**
|
|
1788
1686
|
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1789
1687
|
*/
|
|
@@ -1803,9 +1701,9 @@ declare class EvmTransactionsService {
|
|
|
1803
1701
|
* @returns ListNativeTransactionsResponse
|
|
1804
1702
|
* @throws ApiError
|
|
1805
1703
|
*/
|
|
1806
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1704
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1705
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1706
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1707
|
*/
|
|
1810
1708
|
chainId: string;
|
|
1811
1709
|
/**
|
|
@@ -1820,14 +1718,14 @@ declare class EvmTransactionsService {
|
|
|
1820
1718
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1821
1719
|
*/
|
|
1822
1720
|
endBlock?: number;
|
|
1823
|
-
/**
|
|
1824
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1825
|
-
*/
|
|
1826
|
-
pageSize?: number;
|
|
1827
1721
|
/**
|
|
1828
1722
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1829
1723
|
*/
|
|
1830
1724
|
pageToken?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1727
|
+
*/
|
|
1728
|
+
pageSize?: number;
|
|
1831
1729
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1832
1730
|
/**
|
|
1833
1731
|
* List ERC-20 transfers
|
|
@@ -1835,9 +1733,9 @@ declare class EvmTransactionsService {
|
|
|
1835
1733
|
* @returns ListErc20TransactionsResponse
|
|
1836
1734
|
* @throws ApiError
|
|
1837
1735
|
*/
|
|
1838
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1736
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1737
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1738
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1739
|
*/
|
|
1842
1740
|
chainId: string;
|
|
1843
1741
|
/**
|
|
@@ -1852,14 +1750,14 @@ declare class EvmTransactionsService {
|
|
|
1852
1750
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1853
1751
|
*/
|
|
1854
1752
|
endBlock?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
-
*/
|
|
1858
|
-
pageSize?: number;
|
|
1859
1753
|
/**
|
|
1860
1754
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1861
1755
|
*/
|
|
1862
1756
|
pageToken?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1759
|
+
*/
|
|
1760
|
+
pageSize?: number;
|
|
1863
1761
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1864
1762
|
/**
|
|
1865
1763
|
* List ERC-721 transfers
|
|
@@ -1867,9 +1765,9 @@ declare class EvmTransactionsService {
|
|
|
1867
1765
|
* @returns ListErc721TransactionsResponse
|
|
1868
1766
|
* @throws ApiError
|
|
1869
1767
|
*/
|
|
1870
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1768
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1769
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1771
|
*/
|
|
1874
1772
|
chainId: string;
|
|
1875
1773
|
/**
|
|
@@ -1884,14 +1782,14 @@ declare class EvmTransactionsService {
|
|
|
1884
1782
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1885
1783
|
*/
|
|
1886
1784
|
endBlock?: number;
|
|
1887
|
-
/**
|
|
1888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1889
|
-
*/
|
|
1890
|
-
pageSize?: number;
|
|
1891
1785
|
/**
|
|
1892
1786
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1893
1787
|
*/
|
|
1894
1788
|
pageToken?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1791
|
+
*/
|
|
1792
|
+
pageSize?: number;
|
|
1895
1793
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1896
1794
|
/**
|
|
1897
1795
|
* List ERC-1155 transfers
|
|
@@ -1899,9 +1797,9 @@ declare class EvmTransactionsService {
|
|
|
1899
1797
|
* @returns ListErc1155TransactionsResponse
|
|
1900
1798
|
* @throws ApiError
|
|
1901
1799
|
*/
|
|
1902
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1800
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1801
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1802
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1803
|
*/
|
|
1906
1804
|
chainId: string;
|
|
1907
1805
|
/**
|
|
@@ -1916,14 +1814,14 @@ declare class EvmTransactionsService {
|
|
|
1916
1814
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1917
1815
|
*/
|
|
1918
1816
|
endBlock?: number;
|
|
1919
|
-
/**
|
|
1920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1921
|
-
*/
|
|
1922
|
-
pageSize?: number;
|
|
1923
1817
|
/**
|
|
1924
1818
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1925
1819
|
*/
|
|
1926
1820
|
pageToken?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1823
|
+
*/
|
|
1824
|
+
pageSize?: number;
|
|
1927
1825
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1928
1826
|
/**
|
|
1929
1827
|
* List internal transactions
|
|
@@ -1933,9 +1831,9 @@ declare class EvmTransactionsService {
|
|
|
1933
1831
|
* @returns ListInternalTransactionsResponse
|
|
1934
1832
|
* @throws ApiError
|
|
1935
1833
|
*/
|
|
1936
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1834
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1835
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1836
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1837
|
*/
|
|
1940
1838
|
chainId: string;
|
|
1941
1839
|
/**
|
|
@@ -1950,14 +1848,14 @@ declare class EvmTransactionsService {
|
|
|
1950
1848
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1951
1849
|
*/
|
|
1952
1850
|
endBlock?: number;
|
|
1953
|
-
/**
|
|
1954
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1955
|
-
*/
|
|
1956
|
-
pageSize?: number;
|
|
1957
1851
|
/**
|
|
1958
1852
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1959
1853
|
*/
|
|
1960
1854
|
pageToken?: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
+
*/
|
|
1858
|
+
pageSize?: number;
|
|
1961
1859
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1962
1860
|
/**
|
|
1963
1861
|
* Get transaction
|
|
@@ -1967,7 +1865,7 @@ declare class EvmTransactionsService {
|
|
|
1967
1865
|
*/
|
|
1968
1866
|
getTransaction({ chainId, txHash, }: {
|
|
1969
1867
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1868
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
1869
|
*/
|
|
1972
1870
|
chainId: string;
|
|
1973
1871
|
/**
|
|
@@ -1983,7 +1881,7 @@ declare class EvmTransactionsService {
|
|
|
1983
1881
|
*/
|
|
1984
1882
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
1883
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1884
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
1885
|
*/
|
|
1988
1886
|
chainId: string;
|
|
1989
1887
|
/**
|
|
@@ -1997,19 +1895,19 @@ declare class EvmTransactionsService {
|
|
|
1997
1895
|
* @returns ListNativeTransactionsResponse
|
|
1998
1896
|
* @throws ApiError
|
|
1999
1897
|
*/
|
|
2000
|
-
listLatestTransactions({ chainId,
|
|
1898
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
1899
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1900
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
1901
|
*/
|
|
2004
1902
|
chainId: string;
|
|
2005
|
-
/**
|
|
2006
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2007
|
-
*/
|
|
2008
|
-
pageSize?: number;
|
|
2009
1903
|
/**
|
|
2010
1904
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2011
1905
|
*/
|
|
2012
1906
|
pageToken?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1909
|
+
*/
|
|
1910
|
+
pageSize?: number;
|
|
2013
1911
|
/**
|
|
2014
1912
|
* A status filter for listed transactions.
|
|
2015
1913
|
*/
|
|
@@ -2038,7 +1936,7 @@ type ListNftTokens = {
|
|
|
2038
1936
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2039
1937
|
*/
|
|
2040
1938
|
nextPageToken?: string;
|
|
2041
|
-
tokens:
|
|
1939
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2042
1940
|
};
|
|
2043
1941
|
|
|
2044
1942
|
declare class NfTsService {
|
|
@@ -2052,7 +1950,7 @@ declare class NfTsService {
|
|
|
2052
1950
|
*/
|
|
2053
1951
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
1952
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1953
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
1954
|
*/
|
|
2057
1955
|
chainId: string;
|
|
2058
1956
|
/**
|
|
@@ -2070,23 +1968,23 @@ declare class NfTsService {
|
|
|
2070
1968
|
* @returns ListNftTokens
|
|
2071
1969
|
* @throws ApiError
|
|
2072
1970
|
*/
|
|
2073
|
-
listTokens({ chainId, address,
|
|
1971
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
1972
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1973
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
1974
|
*/
|
|
2077
1975
|
chainId: string;
|
|
2078
1976
|
/**
|
|
2079
1977
|
* Contract address on the relevant chain.
|
|
2080
1978
|
*/
|
|
2081
1979
|
address: string;
|
|
2082
|
-
/**
|
|
2083
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
-
*/
|
|
2085
|
-
pageSize?: number;
|
|
2086
1980
|
/**
|
|
2087
1981
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
1982
|
*/
|
|
2089
1983
|
pageToken?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1986
|
+
*/
|
|
1987
|
+
pageSize?: number;
|
|
2090
1988
|
}): CancelablePromise<ListNftTokens>;
|
|
2091
1989
|
/**
|
|
2092
1990
|
* Get token details
|
|
@@ -2096,7 +1994,7 @@ declare class NfTsService {
|
|
|
2096
1994
|
*/
|
|
2097
1995
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
1996
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1997
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
1998
|
*/
|
|
2101
1999
|
chainId: string;
|
|
2102
2000
|
/**
|
|
@@ -2115,8 +2013,12 @@ type EvmNetworkOptions = {
|
|
|
2115
2013
|
includeChains: Array<string>;
|
|
2116
2014
|
};
|
|
2117
2015
|
|
|
2016
|
+
declare enum EVMOperationType {
|
|
2017
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2118
2020
|
type CreateEvmTransactionExportRequest = {
|
|
2119
|
-
type:
|
|
2021
|
+
type: EVMOperationType;
|
|
2120
2022
|
firstDate: string;
|
|
2121
2023
|
lastDate: string;
|
|
2122
2024
|
/**
|
|
@@ -2129,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2129
2031
|
endDate: string;
|
|
2130
2032
|
options: EvmNetworkOptions;
|
|
2131
2033
|
};
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2034
|
+
|
|
2035
|
+
declare enum PrimaryNetworkOperationType {
|
|
2036
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2136
2039
|
}
|
|
2137
2040
|
|
|
2138
2041
|
type PrimaryNetworkOptions = {
|
|
2139
|
-
addresses
|
|
2042
|
+
addresses?: Array<string>;
|
|
2140
2043
|
cChainEvmAddresses?: Array<string>;
|
|
2141
2044
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2142
2045
|
};
|
|
2143
2046
|
|
|
2144
2047
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2145
|
-
type:
|
|
2048
|
+
type: PrimaryNetworkOperationType;
|
|
2146
2049
|
firstDate: string;
|
|
2147
2050
|
lastDate: string;
|
|
2148
2051
|
/**
|
|
@@ -2155,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2155
2058
|
endDate: string;
|
|
2156
2059
|
options: PrimaryNetworkOptions;
|
|
2157
2060
|
};
|
|
2158
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2159
|
-
enum type {
|
|
2160
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
2061
|
|
|
2164
2062
|
declare enum OperationStatus {
|
|
2165
2063
|
RUNNING = "RUNNING",
|
|
@@ -2169,8 +2067,10 @@ declare enum OperationStatus {
|
|
|
2169
2067
|
}
|
|
2170
2068
|
|
|
2171
2069
|
declare enum OperationType {
|
|
2172
|
-
|
|
2173
|
-
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2073
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2174
2074
|
}
|
|
2175
2075
|
|
|
2176
2076
|
declare enum OperationStatusCode {
|
|
@@ -2362,13 +2262,44 @@ type BlockchainInfo = {
|
|
|
2362
2262
|
blockchainId: string;
|
|
2363
2263
|
};
|
|
2364
2264
|
|
|
2265
|
+
type SubnetOwnershipInfo = {
|
|
2266
|
+
/**
|
|
2267
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2268
|
+
*/
|
|
2269
|
+
locktime: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
threshold: number;
|
|
2274
|
+
/**
|
|
2275
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2276
|
+
*/
|
|
2277
|
+
addresses: Array<string>;
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2365
2280
|
type Subnet = {
|
|
2366
2281
|
createBlockTimestamp: number;
|
|
2367
2282
|
createBlockIndex: string;
|
|
2368
2283
|
subnetId: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2369
2288
|
ownerAddresses: Array<string>;
|
|
2370
|
-
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2293
|
+
threshold: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2296
|
+
* @deprecated
|
|
2297
|
+
*/
|
|
2371
2298
|
locktime: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* Latest subnet owner details for this Subnet.
|
|
2301
|
+
*/
|
|
2302
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2372
2303
|
blockchains: Array<BlockchainInfo>;
|
|
2373
2304
|
};
|
|
2374
2305
|
|
|
@@ -2380,6 +2311,11 @@ type ListSubnetsResponse = {
|
|
|
2380
2311
|
subnets: Array<Subnet>;
|
|
2381
2312
|
};
|
|
2382
2313
|
|
|
2314
|
+
type BlsCredentials = {
|
|
2315
|
+
publicKey: string;
|
|
2316
|
+
proofOfPossession: string;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2383
2319
|
type Rewards = {
|
|
2384
2320
|
validationRewardAmount: string;
|
|
2385
2321
|
delegationRewardAmount: string;
|
|
@@ -2414,6 +2350,10 @@ type ActiveValidatorDetails = {
|
|
|
2414
2350
|
delegationFee?: string;
|
|
2415
2351
|
startTimestamp: number;
|
|
2416
2352
|
endTimestamp: number;
|
|
2353
|
+
/**
|
|
2354
|
+
* Present for AddPermissionlessValidatorTx
|
|
2355
|
+
*/
|
|
2356
|
+
blsCredentials?: BlsCredentials;
|
|
2417
2357
|
stakePercentage: number;
|
|
2418
2358
|
delegatorCount: number;
|
|
2419
2359
|
amountDelegated?: string;
|
|
@@ -2438,6 +2378,10 @@ type CompletedValidatorDetails = {
|
|
|
2438
2378
|
delegationFee?: string;
|
|
2439
2379
|
startTimestamp: number;
|
|
2440
2380
|
endTimestamp: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Present for AddPermissionlessValidatorTx
|
|
2383
|
+
*/
|
|
2384
|
+
blsCredentials?: BlsCredentials;
|
|
2441
2385
|
delegatorCount: number;
|
|
2442
2386
|
rewards: Rewards;
|
|
2443
2387
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
@@ -2456,6 +2400,10 @@ type PendingValidatorDetails = {
|
|
|
2456
2400
|
delegationFee?: string;
|
|
2457
2401
|
startTimestamp: number;
|
|
2458
2402
|
endTimestamp: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Present for AddPermissionlessValidatorTx
|
|
2405
|
+
*/
|
|
2406
|
+
blsCredentials?: BlsCredentials;
|
|
2459
2407
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2460
2408
|
};
|
|
2461
2409
|
declare namespace PendingValidatorDetails {
|
|
@@ -2472,6 +2420,10 @@ type RemovedValidatorDetails = {
|
|
|
2472
2420
|
delegationFee?: string;
|
|
2473
2421
|
startTimestamp: number;
|
|
2474
2422
|
endTimestamp: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Present for AddPermissionlessValidatorTx
|
|
2425
|
+
*/
|
|
2426
|
+
blsCredentials?: BlsCredentials;
|
|
2475
2427
|
removeTxHash: string;
|
|
2476
2428
|
removeTimestamp: number;
|
|
2477
2429
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
@@ -2498,6 +2450,14 @@ declare enum Network {
|
|
|
2498
2450
|
FUJI = "fuji"
|
|
2499
2451
|
}
|
|
2500
2452
|
|
|
2453
|
+
declare enum SortByOption {
|
|
2454
|
+
BLOCK_INDEX = "blockIndex",
|
|
2455
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2456
|
+
TIME_REMAINING = "timeRemaining",
|
|
2457
|
+
DELEGATION_FEE = "delegationFee",
|
|
2458
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2501
2461
|
declare enum ValidationStatusType {
|
|
2502
2462
|
COMPLETED = "completed",
|
|
2503
2463
|
ACTIVE = "active",
|
|
@@ -2505,6 +2465,22 @@ declare enum ValidationStatusType {
|
|
|
2505
2465
|
REMOVED = "removed"
|
|
2506
2466
|
}
|
|
2507
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2470
|
+
*/
|
|
2471
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2472
|
+
FIXED = "fixed",
|
|
2473
|
+
VARIABLE = "variable"
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2478
|
+
*/
|
|
2479
|
+
declare enum PrimaryNetworkAssetType {
|
|
2480
|
+
SECP256K1 = "secp256k1",
|
|
2481
|
+
NFT = "nft"
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2508
2484
|
type XChainAssetDetails = {
|
|
2509
2485
|
/**
|
|
2510
2486
|
* Unique ID for an asset.
|
|
@@ -2522,18 +2498,12 @@ type XChainAssetDetails = {
|
|
|
2522
2498
|
* Denomination of this asset to represent fungibility.
|
|
2523
2499
|
*/
|
|
2524
2500
|
denomination: number;
|
|
2525
|
-
|
|
2526
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2527
|
-
*/
|
|
2528
|
-
type: string;
|
|
2501
|
+
type: PrimaryNetworkAssetType;
|
|
2529
2502
|
/**
|
|
2530
2503
|
* Timestamp in seconds this asset was created on.
|
|
2531
2504
|
*/
|
|
2532
2505
|
createdAtTimestamp: number;
|
|
2533
|
-
|
|
2534
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2535
|
-
*/
|
|
2536
|
-
cap: string;
|
|
2506
|
+
cap: PrimaryNetworkAssetCap;
|
|
2537
2507
|
};
|
|
2538
2508
|
|
|
2539
2509
|
declare enum XChainId {
|
|
@@ -2599,19 +2569,19 @@ declare class PrimaryNetworkService {
|
|
|
2599
2569
|
* @returns ListBlockchainsResponse
|
|
2600
2570
|
* @throws ApiError
|
|
2601
2571
|
*/
|
|
2602
|
-
listBlockchains({ network,
|
|
2572
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2603
2573
|
/**
|
|
2604
2574
|
* Either mainnet or a testnet.
|
|
2605
2575
|
*/
|
|
2606
2576
|
network: Network;
|
|
2607
|
-
/**
|
|
2608
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2609
|
-
*/
|
|
2610
|
-
pageSize?: number;
|
|
2611
2577
|
/**
|
|
2612
2578
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2613
2579
|
*/
|
|
2614
2580
|
pageToken?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2583
|
+
*/
|
|
2584
|
+
pageSize?: number;
|
|
2615
2585
|
/**
|
|
2616
2586
|
* 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.
|
|
2617
2587
|
*/
|
|
@@ -2623,19 +2593,19 @@ declare class PrimaryNetworkService {
|
|
|
2623
2593
|
* @returns ListSubnetsResponse
|
|
2624
2594
|
* @throws ApiError
|
|
2625
2595
|
*/
|
|
2626
|
-
listSubnets({ network,
|
|
2596
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2627
2597
|
/**
|
|
2628
2598
|
* Either mainnet or a testnet.
|
|
2629
2599
|
*/
|
|
2630
2600
|
network: Network;
|
|
2631
|
-
/**
|
|
2632
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2633
|
-
*/
|
|
2634
|
-
pageSize?: number;
|
|
2635
2601
|
/**
|
|
2636
2602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2637
2603
|
*/
|
|
2638
2604
|
pageToken?: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2607
|
+
*/
|
|
2608
|
+
pageSize?: number;
|
|
2639
2609
|
/**
|
|
2640
2610
|
* 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.
|
|
2641
2611
|
*/
|
|
@@ -2647,23 +2617,29 @@ declare class PrimaryNetworkService {
|
|
|
2647
2617
|
* @returns ListValidatorDetailsResponse
|
|
2648
2618
|
* @throws ApiError
|
|
2649
2619
|
*/
|
|
2650
|
-
listValidators({ network,
|
|
2620
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2651
2621
|
/**
|
|
2652
2622
|
* Either mainnet or a testnet.
|
|
2653
2623
|
*/
|
|
2654
2624
|
network: Network;
|
|
2655
|
-
/**
|
|
2656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
-
*/
|
|
2658
|
-
pageSize?: number;
|
|
2659
2625
|
/**
|
|
2660
2626
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2661
2627
|
*/
|
|
2662
2628
|
pageToken?: string;
|
|
2629
|
+
/**
|
|
2630
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2631
|
+
*/
|
|
2632
|
+
pageSize?: number;
|
|
2663
2633
|
/**
|
|
2664
2634
|
* A comma separated list of node ids to filter by.
|
|
2665
2635
|
*/
|
|
2666
2636
|
nodeIds?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2639
|
+
*
|
|
2640
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2641
|
+
*/
|
|
2642
|
+
sortBy?: SortByOption;
|
|
2667
2643
|
/**
|
|
2668
2644
|
* 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.
|
|
2669
2645
|
*/
|
|
@@ -2675,31 +2651,39 @@ declare class PrimaryNetworkService {
|
|
|
2675
2651
|
/**
|
|
2676
2652
|
* 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
|
|
2677
2653
|
*/
|
|
2678
|
-
minDelegationCapacity?:
|
|
2654
|
+
minDelegationCapacity?: string;
|
|
2679
2655
|
/**
|
|
2680
2656
|
* 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.
|
|
2681
2657
|
*/
|
|
2682
|
-
maxDelegationCapacity?:
|
|
2658
|
+
maxDelegationCapacity?: string;
|
|
2683
2659
|
/**
|
|
2684
2660
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
2661
|
*/
|
|
2686
|
-
minTimeRemaining?:
|
|
2662
|
+
minTimeRemaining?: number;
|
|
2687
2663
|
/**
|
|
2688
2664
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
2665
|
*/
|
|
2690
|
-
maxTimeRemaining?:
|
|
2666
|
+
maxTimeRemaining?: number;
|
|
2691
2667
|
/**
|
|
2692
|
-
* 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.
|
|
2668
|
+
* 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.0, as per the Avalanche spec.
|
|
2693
2669
|
*/
|
|
2694
|
-
minFeePercentage?:
|
|
2670
|
+
minFeePercentage?: number;
|
|
2695
2671
|
/**
|
|
2696
|
-
* 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.
|
|
2672
|
+
* 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.0.
|
|
2697
2673
|
*/
|
|
2698
|
-
maxFeePercentage?:
|
|
2674
|
+
maxFeePercentage?: number;
|
|
2675
|
+
/**
|
|
2676
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2677
|
+
*/
|
|
2678
|
+
minUptimePerformance?: number;
|
|
2679
|
+
/**
|
|
2680
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2681
|
+
*/
|
|
2682
|
+
maxUptimePerformance?: number;
|
|
2699
2683
|
/**
|
|
2700
2684
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
2685
|
*/
|
|
2702
|
-
subnetId?:
|
|
2686
|
+
subnetId?: any;
|
|
2703
2687
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2704
2688
|
/**
|
|
2705
2689
|
* Get single validator details
|
|
@@ -2707,7 +2691,7 @@ declare class PrimaryNetworkService {
|
|
|
2707
2691
|
* @returns ListValidatorDetailsResponse
|
|
2708
2692
|
* @throws ApiError
|
|
2709
2693
|
*/
|
|
2710
|
-
getSingleValidatorDetails({ network, nodeId, pageSize,
|
|
2694
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2711
2695
|
/**
|
|
2712
2696
|
* Either mainnet or a testnet.
|
|
2713
2697
|
*/
|
|
@@ -2716,22 +2700,22 @@ declare class PrimaryNetworkService {
|
|
|
2716
2700
|
* A primary network (P or X chain) nodeId.
|
|
2717
2701
|
*/
|
|
2718
2702
|
nodeId: string;
|
|
2719
|
-
/**
|
|
2720
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2721
|
-
*/
|
|
2722
|
-
pageSize?: number;
|
|
2723
2703
|
/**
|
|
2724
2704
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2725
2705
|
*/
|
|
2726
2706
|
pageToken?: string;
|
|
2727
2707
|
/**
|
|
2728
|
-
* The
|
|
2708
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2729
2709
|
*/
|
|
2730
|
-
|
|
2710
|
+
pageSize?: number;
|
|
2731
2711
|
/**
|
|
2732
2712
|
* Validation status of the node.
|
|
2733
2713
|
*/
|
|
2734
2714
|
validationStatus?: ValidationStatusType;
|
|
2715
|
+
/**
|
|
2716
|
+
* 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.
|
|
2717
|
+
*/
|
|
2718
|
+
sortOrder?: SortOrder;
|
|
2735
2719
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2736
2720
|
/**
|
|
2737
2721
|
* List delegators
|
|
@@ -2739,19 +2723,19 @@ declare class PrimaryNetworkService {
|
|
|
2739
2723
|
* @returns ListDelegatorDetailsResponse
|
|
2740
2724
|
* @throws ApiError
|
|
2741
2725
|
*/
|
|
2742
|
-
listDelegators({ network,
|
|
2726
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
2727
|
/**
|
|
2744
2728
|
* Either mainnet or a testnet.
|
|
2745
2729
|
*/
|
|
2746
2730
|
network: Network;
|
|
2747
|
-
/**
|
|
2748
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2749
|
-
*/
|
|
2750
|
-
pageSize?: number;
|
|
2751
2731
|
/**
|
|
2752
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2753
2733
|
*/
|
|
2754
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2755
2739
|
/**
|
|
2756
2740
|
* A comma separated list of reward addresses to filter by.
|
|
2757
2741
|
*/
|
|
@@ -2799,10 +2783,7 @@ type CChainSharedAssetBalance = {
|
|
|
2799
2783
|
* Denomination of this asset to represent fungibility.
|
|
2800
2784
|
*/
|
|
2801
2785
|
denomination: number;
|
|
2802
|
-
|
|
2803
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2804
|
-
*/
|
|
2805
|
-
type: string;
|
|
2786
|
+
type: PrimaryNetworkAssetType;
|
|
2806
2787
|
/**
|
|
2807
2788
|
* Amount of the asset.
|
|
2808
2789
|
*/
|
|
@@ -2837,7 +2818,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2837
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2838
2819
|
};
|
|
2839
2820
|
|
|
2840
|
-
type
|
|
2821
|
+
type AggregatedAssetAmount = {
|
|
2841
2822
|
/**
|
|
2842
2823
|
* Unique ID for an asset.
|
|
2843
2824
|
*/
|
|
@@ -2854,14 +2835,12 @@ type Asset = {
|
|
|
2854
2835
|
* Denomination of this asset to represent fungibility.
|
|
2855
2836
|
*/
|
|
2856
2837
|
denomination: number;
|
|
2857
|
-
|
|
2858
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2859
|
-
*/
|
|
2860
|
-
type: string;
|
|
2838
|
+
type: PrimaryNetworkAssetType;
|
|
2861
2839
|
/**
|
|
2862
2840
|
* Amount of the asset.
|
|
2863
2841
|
*/
|
|
2864
2842
|
amount: string;
|
|
2843
|
+
utxoCount: number;
|
|
2865
2844
|
};
|
|
2866
2845
|
|
|
2867
2846
|
type PChainSharedAsset = {
|
|
@@ -2881,49 +2860,47 @@ type PChainSharedAsset = {
|
|
|
2881
2860
|
* Denomination of this asset to represent fungibility.
|
|
2882
2861
|
*/
|
|
2883
2862
|
denomination: number;
|
|
2884
|
-
|
|
2885
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2886
|
-
*/
|
|
2887
|
-
type: string;
|
|
2863
|
+
type: PrimaryNetworkAssetType;
|
|
2888
2864
|
/**
|
|
2889
2865
|
* Amount of the asset.
|
|
2890
2866
|
*/
|
|
2891
2867
|
amount: string;
|
|
2868
|
+
utxoCount: number;
|
|
2892
2869
|
sharedWithChainId: string;
|
|
2893
2870
|
status: string;
|
|
2894
2871
|
};
|
|
2895
2872
|
|
|
2896
2873
|
type PChainBalance = {
|
|
2897
2874
|
/**
|
|
2898
|
-
* A list of objects containing P-chain Asset
|
|
2875
|
+
* 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.
|
|
2899
2876
|
*/
|
|
2900
|
-
unlockedUnstaked: Array<
|
|
2877
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2901
2878
|
/**
|
|
2902
|
-
* A list of objects containing P-chain Asset
|
|
2879
|
+
* 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.
|
|
2903
2880
|
*/
|
|
2904
|
-
unlockedStaked: Array<
|
|
2881
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2905
2882
|
/**
|
|
2906
|
-
* A list of objects containing P-chain Asset
|
|
2883
|
+
* 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.
|
|
2907
2884
|
*/
|
|
2908
|
-
lockedPlatform: Array<
|
|
2885
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2909
2886
|
/**
|
|
2910
|
-
* A list of objects containing P-chain Asset
|
|
2887
|
+
* 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.
|
|
2911
2888
|
*/
|
|
2912
|
-
lockedStakeable: Array<
|
|
2889
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2913
2890
|
/**
|
|
2914
|
-
* A list of objects containing P-chain Asset
|
|
2891
|
+
* 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.
|
|
2915
2892
|
*/
|
|
2916
|
-
lockedStaked: Array<
|
|
2893
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2917
2894
|
/**
|
|
2918
|
-
* A list of objects containing P-chain Asset
|
|
2895
|
+
* 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.
|
|
2919
2896
|
*/
|
|
2920
|
-
pendingStaked: Array<
|
|
2897
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2921
2898
|
/**
|
|
2922
|
-
* A list of objects containing P-chain Asset
|
|
2899
|
+
* 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.
|
|
2923
2900
|
*/
|
|
2924
2901
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2925
2902
|
/**
|
|
2926
|
-
* A list of objects containing P-chain Asset
|
|
2903
|
+
* 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.
|
|
2927
2904
|
*/
|
|
2928
2905
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2929
2906
|
};
|
|
@@ -2933,34 +2910,6 @@ type ListPChainBalancesResponse = {
|
|
|
2933
2910
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2934
2911
|
};
|
|
2935
2912
|
|
|
2936
|
-
type XChainAssetBalance = {
|
|
2937
|
-
/**
|
|
2938
|
-
* Unique ID for an asset.
|
|
2939
|
-
*/
|
|
2940
|
-
assetId: string;
|
|
2941
|
-
/**
|
|
2942
|
-
* Name of this asset.
|
|
2943
|
-
*/
|
|
2944
|
-
name: string;
|
|
2945
|
-
/**
|
|
2946
|
-
* Symbol for this asset (max 4 characters).
|
|
2947
|
-
*/
|
|
2948
|
-
symbol: string;
|
|
2949
|
-
/**
|
|
2950
|
-
* Denomination of this asset to represent fungibility.
|
|
2951
|
-
*/
|
|
2952
|
-
denomination: number;
|
|
2953
|
-
/**
|
|
2954
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2955
|
-
*/
|
|
2956
|
-
type: string;
|
|
2957
|
-
/**
|
|
2958
|
-
* Amount of the asset.
|
|
2959
|
-
*/
|
|
2960
|
-
amount: string;
|
|
2961
|
-
utxoCount: number;
|
|
2962
|
-
};
|
|
2963
|
-
|
|
2964
2913
|
type XChainSharedAssetBalance = {
|
|
2965
2914
|
/**
|
|
2966
2915
|
* Unique ID for an asset.
|
|
@@ -2978,10 +2927,7 @@ type XChainSharedAssetBalance = {
|
|
|
2978
2927
|
* Denomination of this asset to represent fungibility.
|
|
2979
2928
|
*/
|
|
2980
2929
|
denomination: number;
|
|
2981
|
-
|
|
2982
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2983
|
-
*/
|
|
2984
|
-
type: string;
|
|
2930
|
+
type: PrimaryNetworkAssetType;
|
|
2985
2931
|
/**
|
|
2986
2932
|
* Amount of the asset.
|
|
2987
2933
|
*/
|
|
@@ -2994,11 +2940,11 @@ type XChainBalances = {
|
|
|
2994
2940
|
/**
|
|
2995
2941
|
* A list of objects containing X-chain Asset balance information.
|
|
2996
2942
|
*/
|
|
2997
|
-
locked: Array<
|
|
2943
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2998
2944
|
/**
|
|
2999
2945
|
* A list of objects containing X-chain Asset balance information.
|
|
3000
2946
|
*/
|
|
3001
|
-
unlocked: Array<
|
|
2947
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3002
2948
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3003
2949
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3004
2950
|
};
|
|
@@ -3111,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3111
3057
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3112
3058
|
* @throws ApiError
|
|
3113
3059
|
*/
|
|
3114
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3060
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3115
3061
|
/**
|
|
3116
3062
|
* A primary network blockchain id or alias.
|
|
3117
3063
|
*/
|
|
@@ -3124,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3124
3070
|
* A primary network (P or X chain) nodeId.
|
|
3125
3071
|
*/
|
|
3126
3072
|
nodeId: string;
|
|
3127
|
-
/**
|
|
3128
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3129
|
-
*/
|
|
3130
|
-
pageSize?: number;
|
|
3131
3073
|
/**
|
|
3132
3074
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3133
3075
|
*/
|
|
3134
3076
|
pageToken?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3079
|
+
*/
|
|
3080
|
+
pageSize?: number;
|
|
3135
3081
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3136
3082
|
/**
|
|
3137
3083
|
* List latest blocks
|
|
@@ -3139,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3139
3085
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3140
3086
|
* @throws ApiError
|
|
3141
3087
|
*/
|
|
3142
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3088
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3143
3089
|
/**
|
|
3144
3090
|
* A primary network blockchain id or alias.
|
|
3145
3091
|
*/
|
|
@@ -3148,17 +3094,45 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3148
3094
|
* Either mainnet or a testnet.
|
|
3149
3095
|
*/
|
|
3150
3096
|
network: Network;
|
|
3151
|
-
/**
|
|
3152
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3153
|
-
*/
|
|
3154
|
-
pageSize?: number;
|
|
3155
3097
|
/**
|
|
3156
3098
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3157
3099
|
*/
|
|
3158
3100
|
pageToken?: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3103
|
+
*/
|
|
3104
|
+
pageSize?: number;
|
|
3159
3105
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3160
3106
|
}
|
|
3161
3107
|
|
|
3108
|
+
type AssetWithPriceInfo = {
|
|
3109
|
+
/**
|
|
3110
|
+
* Unique ID for an asset.
|
|
3111
|
+
*/
|
|
3112
|
+
assetId: string;
|
|
3113
|
+
/**
|
|
3114
|
+
* Name of this asset.
|
|
3115
|
+
*/
|
|
3116
|
+
name: string;
|
|
3117
|
+
/**
|
|
3118
|
+
* Symbol for this asset (max 4 characters).
|
|
3119
|
+
*/
|
|
3120
|
+
symbol: string;
|
|
3121
|
+
/**
|
|
3122
|
+
* Denomination of this asset to represent fungibility.
|
|
3123
|
+
*/
|
|
3124
|
+
denomination: number;
|
|
3125
|
+
type: PrimaryNetworkAssetType;
|
|
3126
|
+
/**
|
|
3127
|
+
* Amount of the asset.
|
|
3128
|
+
*/
|
|
3129
|
+
amount: string;
|
|
3130
|
+
/**
|
|
3131
|
+
* 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.
|
|
3132
|
+
*/
|
|
3133
|
+
historicalPrice?: Money;
|
|
3134
|
+
};
|
|
3135
|
+
|
|
3162
3136
|
declare enum RewardType {
|
|
3163
3137
|
VALIDATOR = "VALIDATOR",
|
|
3164
3138
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3178,10 +3152,7 @@ type HistoricalReward = {
|
|
|
3178
3152
|
rewardType: RewardType;
|
|
3179
3153
|
utxoId: string;
|
|
3180
3154
|
outputIndex: number;
|
|
3181
|
-
|
|
3182
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3183
|
-
*/
|
|
3184
|
-
reward: Asset;
|
|
3155
|
+
reward: AssetWithPriceInfo;
|
|
3185
3156
|
rewardTxHash: string;
|
|
3186
3157
|
};
|
|
3187
3158
|
|
|
@@ -3193,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3193
3164
|
historicalRewards: Array<HistoricalReward>;
|
|
3194
3165
|
};
|
|
3195
3166
|
|
|
3167
|
+
type AssetAmount = {
|
|
3168
|
+
/**
|
|
3169
|
+
* Unique ID for an asset.
|
|
3170
|
+
*/
|
|
3171
|
+
assetId: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Name of this asset.
|
|
3174
|
+
*/
|
|
3175
|
+
name: string;
|
|
3176
|
+
/**
|
|
3177
|
+
* Symbol for this asset (max 4 characters).
|
|
3178
|
+
*/
|
|
3179
|
+
symbol: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* Denomination of this asset to represent fungibility.
|
|
3182
|
+
*/
|
|
3183
|
+
denomination: number;
|
|
3184
|
+
type: PrimaryNetworkAssetType;
|
|
3185
|
+
/**
|
|
3186
|
+
* Amount of the asset.
|
|
3187
|
+
*/
|
|
3188
|
+
amount: string;
|
|
3189
|
+
};
|
|
3190
|
+
|
|
3196
3191
|
type PendingReward = {
|
|
3197
3192
|
/**
|
|
3198
3193
|
* An array of P-Chain wallet addresses.
|
|
@@ -3206,9 +3201,9 @@ type PendingReward = {
|
|
|
3206
3201
|
rewardType: RewardType;
|
|
3207
3202
|
progress: number;
|
|
3208
3203
|
/**
|
|
3209
|
-
* An object containing P-chain Asset
|
|
3204
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3210
3205
|
*/
|
|
3211
|
-
estimatedReward:
|
|
3206
|
+
estimatedReward: AssetAmount;
|
|
3212
3207
|
};
|
|
3213
3208
|
|
|
3214
3209
|
type ListPendingRewardsResponse = {
|
|
@@ -3228,25 +3223,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3228
3223
|
* @returns ListPendingRewardsResponse
|
|
3229
3224
|
* @throws ApiError
|
|
3230
3225
|
*/
|
|
3231
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3226
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3232
3227
|
/**
|
|
3233
3228
|
* Either mainnet or a testnet.
|
|
3234
3229
|
*/
|
|
3235
3230
|
network: Network;
|
|
3236
3231
|
/**
|
|
3237
|
-
* 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".
|
|
3232
|
+
* 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.
|
|
3238
3233
|
*/
|
|
3239
3234
|
addresses?: string;
|
|
3240
|
-
/**
|
|
3241
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3242
|
-
*/
|
|
3243
|
-
pageSize?: number;
|
|
3244
3235
|
/**
|
|
3245
3236
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3246
3237
|
*/
|
|
3247
3238
|
pageToken?: string;
|
|
3248
3239
|
/**
|
|
3249
|
-
*
|
|
3240
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3241
|
+
*/
|
|
3242
|
+
pageSize?: number;
|
|
3243
|
+
/**
|
|
3244
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3250
3245
|
*/
|
|
3251
3246
|
nodeIds?: string;
|
|
3252
3247
|
/**
|
|
@@ -3260,7 +3255,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3260
3255
|
* @returns ListHistoricalRewardsResponse
|
|
3261
3256
|
* @throws ApiError
|
|
3262
3257
|
*/
|
|
3263
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3258
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3264
3259
|
/**
|
|
3265
3260
|
* Either mainnet or a testnet.
|
|
3266
3261
|
*/
|
|
@@ -3269,14 +3264,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3269
3264
|
* 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.
|
|
3270
3265
|
*/
|
|
3271
3266
|
addresses?: string;
|
|
3272
|
-
/**
|
|
3273
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3274
|
-
*/
|
|
3275
|
-
pageSize?: number;
|
|
3276
3267
|
/**
|
|
3277
3268
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3278
3269
|
*/
|
|
3279
3270
|
pageToken?: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3273
|
+
*/
|
|
3274
|
+
pageSize?: number;
|
|
3280
3275
|
/**
|
|
3281
3276
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3282
3277
|
*/
|
|
@@ -3285,6 +3280,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3285
3280
|
* 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.
|
|
3286
3281
|
*/
|
|
3287
3282
|
sortOrder?: SortOrder;
|
|
3283
|
+
/**
|
|
3284
|
+
* The currency that return values should use. Defaults to USD.
|
|
3285
|
+
*/
|
|
3286
|
+
currency?: CurrencyCode;
|
|
3288
3287
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3289
3288
|
}
|
|
3290
3289
|
|
|
@@ -3305,9 +3304,9 @@ type EVMInput = {
|
|
|
3305
3304
|
*/
|
|
3306
3305
|
fromAddress: string;
|
|
3307
3306
|
/**
|
|
3308
|
-
*
|
|
3307
|
+
* AssetAmount details for the asset being transferred.
|
|
3309
3308
|
*/
|
|
3310
|
-
asset:
|
|
3309
|
+
asset: AssetAmount;
|
|
3311
3310
|
/**
|
|
3312
3311
|
* Credentials that signed this transaction.
|
|
3313
3312
|
*/
|
|
@@ -3319,7 +3318,7 @@ type Utxo = {
|
|
|
3319
3318
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3320
3319
|
*/
|
|
3321
3320
|
addresses: Array<string>;
|
|
3322
|
-
asset:
|
|
3321
|
+
asset: AssetAmount;
|
|
3323
3322
|
/**
|
|
3324
3323
|
* Blockchain ID on which this output is consumed on.
|
|
3325
3324
|
*/
|
|
@@ -3402,11 +3401,11 @@ type CChainExportTransaction = {
|
|
|
3402
3401
|
/**
|
|
3403
3402
|
* Assets unlocked by inputs of this transaction.
|
|
3404
3403
|
*/
|
|
3405
|
-
amountUnlocked: Array<
|
|
3404
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3406
3405
|
/**
|
|
3407
3406
|
* Assets created by outputs of this transaction.
|
|
3408
3407
|
*/
|
|
3409
|
-
amountCreated: Array<
|
|
3408
|
+
amountCreated: Array<AssetAmount>;
|
|
3410
3409
|
/**
|
|
3411
3410
|
* Source chain for an atomic transaction.
|
|
3412
3411
|
*/
|
|
@@ -3437,9 +3436,9 @@ type EVMOutput = {
|
|
|
3437
3436
|
*/
|
|
3438
3437
|
toAddress: string;
|
|
3439
3438
|
/**
|
|
3440
|
-
*
|
|
3439
|
+
* AssetAmount details for the asset being transferred.
|
|
3441
3440
|
*/
|
|
3442
|
-
asset:
|
|
3441
|
+
asset: AssetAmount;
|
|
3443
3442
|
};
|
|
3444
3443
|
|
|
3445
3444
|
type CChainImportTransaction = {
|
|
@@ -3466,11 +3465,11 @@ type CChainImportTransaction = {
|
|
|
3466
3465
|
/**
|
|
3467
3466
|
* Assets unlocked by inputs of this transaction.
|
|
3468
3467
|
*/
|
|
3469
|
-
amountUnlocked: Array<
|
|
3468
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3470
3469
|
/**
|
|
3471
3470
|
* Assets created by outputs of this transaction.
|
|
3472
3471
|
*/
|
|
3473
|
-
amountCreated: Array<
|
|
3472
|
+
amountCreated: Array<AssetAmount>;
|
|
3474
3473
|
/**
|
|
3475
3474
|
* Source chain for an atomic transaction.
|
|
3476
3475
|
*/
|
|
@@ -3518,6 +3517,8 @@ declare enum PChainTransactionType {
|
|
|
3518
3517
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3519
3518
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3520
3519
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3520
|
+
BASE_TX = "BaseTx",
|
|
3521
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3521
3522
|
UNKNOWN = "UNKNOWN"
|
|
3522
3523
|
}
|
|
3523
3524
|
|
|
@@ -3531,7 +3532,7 @@ type PChainUtxo = {
|
|
|
3531
3532
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3532
3533
|
*/
|
|
3533
3534
|
addresses: Array<string>;
|
|
3534
|
-
asset:
|
|
3535
|
+
asset: AssetAmount;
|
|
3535
3536
|
/**
|
|
3536
3537
|
* Blockchain ID on which this output is consumed on.
|
|
3537
3538
|
*/
|
|
@@ -3595,17 +3596,17 @@ type PChainTransaction = {
|
|
|
3595
3596
|
*/
|
|
3596
3597
|
destinationChain?: string;
|
|
3597
3598
|
/**
|
|
3598
|
-
* A list of objects containing P-chain Asset
|
|
3599
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3599
3600
|
*/
|
|
3600
|
-
value: Array<
|
|
3601
|
+
value: Array<AssetAmount>;
|
|
3601
3602
|
/**
|
|
3602
|
-
* A list of objects containing P-chain Asset
|
|
3603
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3603
3604
|
*/
|
|
3604
|
-
amountBurned: Array<
|
|
3605
|
+
amountBurned: Array<AssetAmount>;
|
|
3605
3606
|
/**
|
|
3606
|
-
* A list of objects containing P-chain Asset
|
|
3607
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3607
3608
|
*/
|
|
3608
|
-
amountStaked: Array<
|
|
3609
|
+
amountStaked: Array<AssetAmount>;
|
|
3609
3610
|
/**
|
|
3610
3611
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3611
3612
|
*/
|
|
@@ -3637,6 +3638,14 @@ type PChainTransaction = {
|
|
|
3637
3638
|
* Present for RewardValidatorTx
|
|
3638
3639
|
*/
|
|
3639
3640
|
stakingTxHash?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3643
|
+
*/
|
|
3644
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3645
|
+
/**
|
|
3646
|
+
* Present for AddPermissionlessValidatorTx
|
|
3647
|
+
*/
|
|
3648
|
+
blsCredentials?: BlsCredentials;
|
|
3640
3649
|
};
|
|
3641
3650
|
|
|
3642
3651
|
type ListPChainTransactionsResponse = {
|
|
@@ -3648,6 +3657,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3648
3657
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3649
3658
|
};
|
|
3650
3659
|
|
|
3660
|
+
/**
|
|
3661
|
+
* Type of transaction.
|
|
3662
|
+
*/
|
|
3651
3663
|
declare enum XChainTransactionType {
|
|
3652
3664
|
BASE_TX = "BaseTx",
|
|
3653
3665
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3670,9 +3682,6 @@ type XChainLinearTransaction = {
|
|
|
3670
3682
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3671
3683
|
*/
|
|
3672
3684
|
timestamp: number;
|
|
3673
|
-
/**
|
|
3674
|
-
* Type of transaction.
|
|
3675
|
-
*/
|
|
3676
3685
|
txType: XChainTransactionType;
|
|
3677
3686
|
/**
|
|
3678
3687
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3683,11 +3692,11 @@ type XChainLinearTransaction = {
|
|
|
3683
3692
|
/**
|
|
3684
3693
|
* Assets unlocked by inputs of this transaction.
|
|
3685
3694
|
*/
|
|
3686
|
-
amountUnlocked: Array<
|
|
3695
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3687
3696
|
/**
|
|
3688
3697
|
* Assets created by outputs of this transaction.
|
|
3689
3698
|
*/
|
|
3690
|
-
amountCreated: Array<
|
|
3699
|
+
amountCreated: Array<AssetAmount>;
|
|
3691
3700
|
/**
|
|
3692
3701
|
* Source chain for an atomic transaction.
|
|
3693
3702
|
*/
|
|
@@ -3697,7 +3706,7 @@ type XChainLinearTransaction = {
|
|
|
3697
3706
|
*/
|
|
3698
3707
|
destinationChain?: string;
|
|
3699
3708
|
/**
|
|
3700
|
-
*
|
|
3709
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3701
3710
|
*/
|
|
3702
3711
|
assetCreated?: XChainAssetDetails;
|
|
3703
3712
|
/**
|
|
@@ -3747,9 +3756,6 @@ type XChainNonLinearTransaction = {
|
|
|
3747
3756
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3748
3757
|
*/
|
|
3749
3758
|
timestamp: number;
|
|
3750
|
-
/**
|
|
3751
|
-
* Type of transaction.
|
|
3752
|
-
*/
|
|
3753
3759
|
txType: XChainTransactionType;
|
|
3754
3760
|
/**
|
|
3755
3761
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3760,11 +3766,11 @@ type XChainNonLinearTransaction = {
|
|
|
3760
3766
|
/**
|
|
3761
3767
|
* Assets unlocked by inputs of this transaction.
|
|
3762
3768
|
*/
|
|
3763
|
-
amountUnlocked: Array<
|
|
3769
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3764
3770
|
/**
|
|
3765
3771
|
* Assets created by outputs of this transaction.
|
|
3766
3772
|
*/
|
|
3767
|
-
amountCreated: Array<
|
|
3773
|
+
amountCreated: Array<AssetAmount>;
|
|
3768
3774
|
/**
|
|
3769
3775
|
* Source chain for an atomic transaction.
|
|
3770
3776
|
*/
|
|
@@ -3774,7 +3780,7 @@ type XChainNonLinearTransaction = {
|
|
|
3774
3780
|
*/
|
|
3775
3781
|
destinationChain?: string;
|
|
3776
3782
|
/**
|
|
3777
|
-
*
|
|
3783
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3778
3784
|
*/
|
|
3779
3785
|
assetCreated?: XChainAssetDetails;
|
|
3780
3786
|
/**
|
|
@@ -3820,8 +3826,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3820
3826
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3821
3827
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3822
3828
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3823
|
-
UNKNOWN = "UNKNOWN",
|
|
3824
3829
|
BASE_TX = "BaseTx",
|
|
3830
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3831
|
+
UNKNOWN = "UNKNOWN",
|
|
3825
3832
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3826
3833
|
OPERATION_TX = "OperationTx"
|
|
3827
3834
|
}
|
|
@@ -3853,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3853
3860
|
* List latest transactions
|
|
3854
3861
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3855
3862
|
*
|
|
3856
|
-
* Transactions are filterable by addresses.
|
|
3863
|
+
* 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.
|
|
3857
3864
|
*
|
|
3858
3865
|
* 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.
|
|
3859
3866
|
* @returns any
|
|
3860
3867
|
* @throws ApiError
|
|
3861
3868
|
*/
|
|
3862
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3869
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3863
3870
|
/**
|
|
3864
3871
|
* A primary network blockchain id or alias.
|
|
3865
3872
|
*/
|
|
@@ -3884,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3884
3891
|
* Query param for retrieving items before a specific timestamp.
|
|
3885
3892
|
*/
|
|
3886
3893
|
endTimestamp?: number;
|
|
3887
|
-
/**
|
|
3888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3889
|
-
*/
|
|
3890
|
-
pageSize?: number;
|
|
3891
3894
|
/**
|
|
3892
3895
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3893
3896
|
*/
|
|
3894
3897
|
pageToken?: string;
|
|
3898
|
+
/**
|
|
3899
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3900
|
+
*/
|
|
3901
|
+
pageSize?: number;
|
|
3895
3902
|
/**
|
|
3896
3903
|
* 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.
|
|
3897
3904
|
*/
|
|
@@ -3903,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3903
3910
|
* @returns ListPChainTransactionsResponse
|
|
3904
3911
|
* @throws ApiError
|
|
3905
3912
|
*/
|
|
3906
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3907
3914
|
/**
|
|
3908
3915
|
* A primary network blockchain id or alias.
|
|
3909
3916
|
*/
|
|
@@ -3928,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3928
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3929
3936
|
*/
|
|
3930
3937
|
endTimestamp?: number;
|
|
3931
|
-
/**
|
|
3932
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3933
|
-
*/
|
|
3934
|
-
pageSize?: number;
|
|
3935
3938
|
/**
|
|
3936
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3937
3940
|
*/
|
|
3938
3941
|
pageToken?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3944
|
+
*/
|
|
3945
|
+
pageSize?: number;
|
|
3939
3946
|
/**
|
|
3940
3947
|
* 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.
|
|
3941
3948
|
*/
|
|
@@ -3947,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3947
3954
|
* @returns ListXChainTransactionsResponse
|
|
3948
3955
|
* @throws ApiError
|
|
3949
3956
|
*/
|
|
3950
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3951
3958
|
/**
|
|
3952
3959
|
* A primary network blockchain id or alias.
|
|
3953
3960
|
*/
|
|
@@ -3972,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3972
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3973
3980
|
*/
|
|
3974
3981
|
endTimestamp?: number;
|
|
3975
|
-
/**
|
|
3976
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3977
|
-
*/
|
|
3978
|
-
pageSize?: number;
|
|
3979
3982
|
/**
|
|
3980
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3981
3984
|
*/
|
|
3982
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;
|
|
3983
3990
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3984
3991
|
}
|
|
3985
3992
|
|
|
@@ -4010,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4010
4017
|
* @returns any
|
|
4011
4018
|
* @throws ApiError
|
|
4012
4019
|
*/
|
|
4013
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4020
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
4014
4021
|
/**
|
|
4015
4022
|
* A primary network blockchain id or alias.
|
|
4016
4023
|
*/
|
|
@@ -4023,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4023
4030
|
* 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".
|
|
4024
4031
|
*/
|
|
4025
4032
|
addresses?: string;
|
|
4026
|
-
/**
|
|
4027
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4028
|
-
*/
|
|
4029
|
-
pageSize?: number;
|
|
4030
4033
|
/**
|
|
4031
4034
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4032
4035
|
*/
|
|
4033
4036
|
pageToken?: string;
|
|
4037
|
+
/**
|
|
4038
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4039
|
+
*/
|
|
4040
|
+
pageSize?: number;
|
|
4034
4041
|
/**
|
|
4035
4042
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4036
4043
|
*/
|
|
@@ -4075,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4075
4082
|
* @returns ListXChainVerticesResponse
|
|
4076
4083
|
* @throws ApiError
|
|
4077
4084
|
*/
|
|
4078
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4085
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4079
4086
|
/**
|
|
4080
4087
|
* A primary network blockchain id or alias.
|
|
4081
4088
|
*/
|
|
@@ -4084,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4084
4091
|
* Either mainnet or a testnet.
|
|
4085
4092
|
*/
|
|
4086
4093
|
network: Network;
|
|
4087
|
-
/**
|
|
4088
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4089
|
-
*/
|
|
4090
|
-
pageSize?: number;
|
|
4091
4094
|
/**
|
|
4092
4095
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
4096
|
*/
|
|
4094
4097
|
pageToken?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4100
|
+
*/
|
|
4101
|
+
pageSize?: number;
|
|
4095
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4096
4103
|
/**
|
|
4097
4104
|
* Get vertex
|
|
@@ -4119,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4119
4126
|
* @returns ListXChainVerticesResponse
|
|
4120
4127
|
* @throws ApiError
|
|
4121
4128
|
*/
|
|
4122
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4129
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4123
4130
|
/**
|
|
4124
4131
|
* The height of a vertex.
|
|
4125
4132
|
*/
|
|
@@ -4132,14 +4139,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4132
4139
|
* Either mainnet or a testnet.
|
|
4133
4140
|
*/
|
|
4134
4141
|
network: Network;
|
|
4135
|
-
/**
|
|
4136
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4137
|
-
*/
|
|
4138
|
-
pageSize?: number;
|
|
4139
4142
|
/**
|
|
4140
4143
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4141
4144
|
*/
|
|
4142
4145
|
pageToken?: string;
|
|
4146
|
+
/**
|
|
4147
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4148
|
+
*/
|
|
4149
|
+
pageSize?: number;
|
|
4143
4150
|
/**
|
|
4144
4151
|
* 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.
|
|
4145
4152
|
*/
|
|
@@ -4147,6 +4154,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4147
4154
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4148
4155
|
}
|
|
4149
4156
|
|
|
4157
|
+
type RpcErrorDto = {
|
|
4158
|
+
code: number;
|
|
4159
|
+
message: string;
|
|
4160
|
+
data?: Record<string, any>;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
type RpcErrorResponseDto = {
|
|
4164
|
+
jsonrpc: string;
|
|
4165
|
+
id?: (string | number);
|
|
4166
|
+
error: RpcErrorDto;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
type RpcRequestBodyDto = {
|
|
4170
|
+
method: string;
|
|
4171
|
+
params?: Record<string, any>;
|
|
4172
|
+
id?: (string | number);
|
|
4173
|
+
jsonrpc?: string;
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4176
|
+
type RpcSuccessResponseDto = {
|
|
4177
|
+
jsonrpc: string;
|
|
4178
|
+
id?: (string | number);
|
|
4179
|
+
result: Record<string, any>;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
declare class RpcService {
|
|
4183
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4184
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4185
|
+
/**
|
|
4186
|
+
* Calls JSON-RPC method
|
|
4187
|
+
* Calls JSON-RPC method.
|
|
4188
|
+
* @returns any
|
|
4189
|
+
* @throws ApiError
|
|
4190
|
+
*/
|
|
4191
|
+
rpc({ chainId, requestBody, }: {
|
|
4192
|
+
/**
|
|
4193
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4194
|
+
*/
|
|
4195
|
+
chainId: string;
|
|
4196
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4197
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4150
4200
|
type TeleporterDestinationTransaction = {
|
|
4151
4201
|
txHash: string;
|
|
4152
4202
|
timestamp: number;
|
|
@@ -4155,6 +4205,11 @@ type TeleporterDestinationTransaction = {
|
|
|
4155
4205
|
delivererAddress: string;
|
|
4156
4206
|
};
|
|
4157
4207
|
|
|
4208
|
+
type TeleporterReceipt = {
|
|
4209
|
+
receivedMessageNonce: string;
|
|
4210
|
+
relayerRewardAddress: string;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4158
4213
|
type TeleporterRewardDetails = {
|
|
4159
4214
|
/**
|
|
4160
4215
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -4190,14 +4245,18 @@ declare namespace TeleporterRewardDetails {
|
|
|
4190
4245
|
}
|
|
4191
4246
|
|
|
4192
4247
|
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4248
|
+
messageId: string;
|
|
4249
|
+
teleporterContractAddress: string;
|
|
4193
4250
|
sourceBlockchainId: string;
|
|
4194
4251
|
destinationBlockchainId: string;
|
|
4195
|
-
|
|
4252
|
+
sourceEvmChainId: string;
|
|
4253
|
+
destinationEvmChainId: string;
|
|
4254
|
+
messageNonce: string;
|
|
4196
4255
|
from: string;
|
|
4197
4256
|
to: string;
|
|
4198
4257
|
data?: string;
|
|
4199
4258
|
messageExecuted: boolean;
|
|
4200
|
-
receipts: Array<
|
|
4259
|
+
receipts: Array<TeleporterReceipt>;
|
|
4201
4260
|
receiptDelivered: boolean;
|
|
4202
4261
|
rewardDetails: TeleporterRewardDetails;
|
|
4203
4262
|
destinationTransaction: TeleporterDestinationTransaction;
|
|
@@ -4216,14 +4275,18 @@ type TeleporterSourceTransaction = {
|
|
|
4216
4275
|
};
|
|
4217
4276
|
|
|
4218
4277
|
type DeliveredTeleporterMessage = {
|
|
4278
|
+
messageId: string;
|
|
4279
|
+
teleporterContractAddress: string;
|
|
4219
4280
|
sourceBlockchainId: string;
|
|
4220
4281
|
destinationBlockchainId: string;
|
|
4221
|
-
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4284
|
+
messageNonce: string;
|
|
4222
4285
|
from: string;
|
|
4223
4286
|
to: string;
|
|
4224
4287
|
data?: string;
|
|
4225
4288
|
messageExecuted: boolean;
|
|
4226
|
-
receipts: Array<
|
|
4289
|
+
receipts: Array<TeleporterReceipt>;
|
|
4227
4290
|
receiptDelivered: boolean;
|
|
4228
4291
|
rewardDetails: TeleporterRewardDetails;
|
|
4229
4292
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4236,22 +4299,19 @@ declare namespace DeliveredTeleporterMessage {
|
|
|
4236
4299
|
}
|
|
4237
4300
|
}
|
|
4238
4301
|
|
|
4239
|
-
type NextPageToken = {
|
|
4240
|
-
/**
|
|
4241
|
-
* 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.
|
|
4242
|
-
*/
|
|
4243
|
-
nextPageToken?: string;
|
|
4244
|
-
};
|
|
4245
|
-
|
|
4246
4302
|
type PendingTeleporterMessage = {
|
|
4303
|
+
messageId: string;
|
|
4304
|
+
teleporterContractAddress: string;
|
|
4247
4305
|
sourceBlockchainId: string;
|
|
4248
4306
|
destinationBlockchainId: string;
|
|
4249
|
-
|
|
4307
|
+
sourceEvmChainId: string;
|
|
4308
|
+
destinationEvmChainId: string;
|
|
4309
|
+
messageNonce: string;
|
|
4250
4310
|
from: string;
|
|
4251
4311
|
to: string;
|
|
4252
4312
|
data?: string;
|
|
4253
4313
|
messageExecuted: boolean;
|
|
4254
|
-
receipts: Array<
|
|
4314
|
+
receipts: Array<TeleporterReceipt>;
|
|
4255
4315
|
receiptDelivered: boolean;
|
|
4256
4316
|
rewardDetails: TeleporterRewardDetails;
|
|
4257
4317
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4263,61 +4323,293 @@ declare namespace PendingTeleporterMessage {
|
|
|
4263
4323
|
}
|
|
4264
4324
|
}
|
|
4265
4325
|
|
|
4326
|
+
type ListTeleporterMessagesResponse = {
|
|
4327
|
+
/**
|
|
4328
|
+
* 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.
|
|
4329
|
+
*/
|
|
4330
|
+
nextPageToken?: string;
|
|
4331
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4266
4334
|
declare class TeleporterService {
|
|
4267
4335
|
readonly httpRequest: BaseHttpRequest;
|
|
4268
4336
|
constructor(httpRequest: BaseHttpRequest);
|
|
4269
4337
|
/**
|
|
4270
4338
|
* Get a teleporter message
|
|
4271
|
-
* Gets a teleporter message by
|
|
4339
|
+
* Gets a teleporter message by message ID.
|
|
4272
4340
|
* @returns any
|
|
4273
4341
|
* @throws ApiError
|
|
4274
4342
|
*/
|
|
4275
|
-
getTeleporterMessage({
|
|
4276
|
-
/**
|
|
4277
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4278
|
-
*/
|
|
4279
|
-
sourceBlockchainId: any;
|
|
4280
|
-
/**
|
|
4281
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4282
|
-
*/
|
|
4283
|
-
destinationBlockchainId: any;
|
|
4343
|
+
getTeleporterMessage({ messageId, }: {
|
|
4284
4344
|
/**
|
|
4285
4345
|
* The message ID of the teleporter message.
|
|
4286
4346
|
*/
|
|
4287
|
-
messageId:
|
|
4347
|
+
messageId: string;
|
|
4288
4348
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4289
4349
|
/**
|
|
4290
4350
|
* List teleporter messages
|
|
4291
4351
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4292
|
-
* @returns
|
|
4352
|
+
* @returns ListTeleporterMessagesResponse
|
|
4293
4353
|
* @throws ApiError
|
|
4294
4354
|
*/
|
|
4295
|
-
listTeleporterMessages({
|
|
4355
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4356
|
+
/**
|
|
4357
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4358
|
+
*/
|
|
4359
|
+
pageToken?: string;
|
|
4296
4360
|
/**
|
|
4297
4361
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4298
4362
|
*/
|
|
4299
4363
|
pageSize?: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4366
|
+
*/
|
|
4367
|
+
sourceBlockchainId?: string;
|
|
4368
|
+
/**
|
|
4369
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4370
|
+
*/
|
|
4371
|
+
destinationBlockchainId?: string;
|
|
4372
|
+
/**
|
|
4373
|
+
* The address of the recipient of the teleporter message.
|
|
4374
|
+
*/
|
|
4375
|
+
to?: string;
|
|
4376
|
+
/**
|
|
4377
|
+
* The address of the sender of the teleporter message.
|
|
4378
|
+
*/
|
|
4379
|
+
from?: string;
|
|
4380
|
+
/**
|
|
4381
|
+
* mainnet or testnet.
|
|
4382
|
+
*/
|
|
4383
|
+
network?: NetworkType;
|
|
4384
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
type AddressesChangeRequest = {
|
|
4388
|
+
/**
|
|
4389
|
+
* Ethereum address(es) for the address_activity event type
|
|
4390
|
+
*/
|
|
4391
|
+
addresses: Array<any[]>;
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
type ListWebhookAddressesResponse = {
|
|
4395
|
+
/**
|
|
4396
|
+
* 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.
|
|
4397
|
+
*/
|
|
4398
|
+
nextPageToken?: string;
|
|
4399
|
+
addresses: Array<string>;
|
|
4400
|
+
totalAddresses: number;
|
|
4401
|
+
};
|
|
4402
|
+
|
|
4403
|
+
type AddressActivityMetadata = {
|
|
4404
|
+
/**
|
|
4405
|
+
* Ethereum address(es) for the address_activity event type
|
|
4406
|
+
*/
|
|
4407
|
+
addresses: Array<any[]>;
|
|
4408
|
+
/**
|
|
4409
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4410
|
+
*/
|
|
4411
|
+
eventSignatures?: Array<string>;
|
|
4412
|
+
};
|
|
4413
|
+
|
|
4414
|
+
declare enum EventType {
|
|
4415
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
declare enum WebhookStatusType {
|
|
4419
|
+
ACTIVE = "active",
|
|
4420
|
+
INACTIVE = "inactive"
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
type WebhookResponse = {
|
|
4424
|
+
id: string;
|
|
4425
|
+
eventType: EventType;
|
|
4426
|
+
metadata: AddressActivityMetadata;
|
|
4427
|
+
/**
|
|
4428
|
+
* Whether to include traces in the webhook payload.
|
|
4429
|
+
*/
|
|
4430
|
+
includeInternalTxs?: boolean;
|
|
4431
|
+
/**
|
|
4432
|
+
* Whether to include logs in the webhook payload.
|
|
4433
|
+
*/
|
|
4434
|
+
includeLogs?: boolean;
|
|
4435
|
+
url: string;
|
|
4436
|
+
chainId: string;
|
|
4437
|
+
status: WebhookStatusType;
|
|
4438
|
+
createdAt: number;
|
|
4439
|
+
name: string;
|
|
4440
|
+
description: string;
|
|
4441
|
+
};
|
|
4442
|
+
|
|
4443
|
+
type ListWebhooksResponse = {
|
|
4444
|
+
/**
|
|
4445
|
+
* 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.
|
|
4446
|
+
*/
|
|
4447
|
+
nextPageToken?: string;
|
|
4448
|
+
webhooks: Array<WebhookResponse>;
|
|
4449
|
+
};
|
|
4450
|
+
|
|
4451
|
+
type RegisterWebhookRequest = {
|
|
4452
|
+
url: string;
|
|
4453
|
+
chainId: string;
|
|
4454
|
+
eventType: EventType;
|
|
4455
|
+
metadata: AddressActivityMetadata;
|
|
4456
|
+
/**
|
|
4457
|
+
* Whether to include traces in the webhook payload.
|
|
4458
|
+
*/
|
|
4459
|
+
includeInternalTxs?: boolean;
|
|
4460
|
+
/**
|
|
4461
|
+
* Whether to include logs in the webhook payload.
|
|
4462
|
+
*/
|
|
4463
|
+
includeLogs?: boolean;
|
|
4464
|
+
};
|
|
4465
|
+
|
|
4466
|
+
type SharedSecretsResponse = {
|
|
4467
|
+
secret: string;
|
|
4468
|
+
};
|
|
4469
|
+
|
|
4470
|
+
type UpdateWebhookRequest = {
|
|
4471
|
+
name?: string;
|
|
4472
|
+
description?: string;
|
|
4473
|
+
url?: string;
|
|
4474
|
+
status?: WebhookStatusType;
|
|
4475
|
+
includeInternalTxs?: boolean;
|
|
4476
|
+
includeLogs?: boolean;
|
|
4477
|
+
};
|
|
4478
|
+
|
|
4479
|
+
declare enum WebhookStatus {
|
|
4480
|
+
ACTIVE = "active",
|
|
4481
|
+
INACTIVE = "inactive"
|
|
4482
|
+
}
|
|
4483
|
+
|
|
4484
|
+
declare class WebhooksService {
|
|
4485
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4486
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4487
|
+
/**
|
|
4488
|
+
* Create a webhook
|
|
4489
|
+
* Create a new webhook.
|
|
4490
|
+
* @returns WebhookResponse
|
|
4491
|
+
* @throws ApiError
|
|
4492
|
+
*/
|
|
4493
|
+
registerWebhook({ requestBody, }: {
|
|
4494
|
+
requestBody: RegisterWebhookRequest;
|
|
4495
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4496
|
+
/**
|
|
4497
|
+
* List webhooks
|
|
4498
|
+
* Lists webhooks for the user.
|
|
4499
|
+
* @returns ListWebhooksResponse
|
|
4500
|
+
* @throws ApiError
|
|
4501
|
+
*/
|
|
4502
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4300
4503
|
/**
|
|
4301
4504
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4302
4505
|
*/
|
|
4303
4506
|
pageToken?: string;
|
|
4304
4507
|
/**
|
|
4305
|
-
* The
|
|
4508
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4306
4509
|
*/
|
|
4307
|
-
|
|
4510
|
+
pageSize?: number;
|
|
4308
4511
|
/**
|
|
4309
|
-
*
|
|
4512
|
+
* 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.
|
|
4310
4513
|
*/
|
|
4311
|
-
|
|
4514
|
+
status?: WebhookStatus;
|
|
4515
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4516
|
+
/**
|
|
4517
|
+
* Get a webhook by ID
|
|
4518
|
+
* Retrieves a webhook by ID.
|
|
4519
|
+
* @returns WebhookResponse
|
|
4520
|
+
* @throws ApiError
|
|
4521
|
+
*/
|
|
4522
|
+
getWebhook({ id, }: {
|
|
4312
4523
|
/**
|
|
4313
|
-
* The
|
|
4524
|
+
* The webhook identifier.
|
|
4314
4525
|
*/
|
|
4315
|
-
|
|
4526
|
+
id: string;
|
|
4527
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Deactivate a webhook
|
|
4530
|
+
* Deactivates a webhook by ID.
|
|
4531
|
+
* @returns WebhookResponse
|
|
4532
|
+
* @throws ApiError
|
|
4533
|
+
*/
|
|
4534
|
+
deactivateWebhook({ id, }: {
|
|
4316
4535
|
/**
|
|
4317
|
-
* The
|
|
4536
|
+
* The webhook identifier.
|
|
4318
4537
|
*/
|
|
4319
|
-
|
|
4320
|
-
}): CancelablePromise<
|
|
4538
|
+
id: string;
|
|
4539
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4540
|
+
/**
|
|
4541
|
+
* Update a webhook
|
|
4542
|
+
* Updates an existing webhook.
|
|
4543
|
+
* @returns WebhookResponse
|
|
4544
|
+
* @throws ApiError
|
|
4545
|
+
*/
|
|
4546
|
+
updateWebhook({ id, requestBody, }: {
|
|
4547
|
+
/**
|
|
4548
|
+
* The webhook identifier.
|
|
4549
|
+
*/
|
|
4550
|
+
id: string;
|
|
4551
|
+
requestBody: UpdateWebhookRequest;
|
|
4552
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4553
|
+
/**
|
|
4554
|
+
* Generate a shared secret
|
|
4555
|
+
* Generates a new shared secret.
|
|
4556
|
+
* @returns SharedSecretsResponse
|
|
4557
|
+
* @throws ApiError
|
|
4558
|
+
*/
|
|
4559
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4560
|
+
/**
|
|
4561
|
+
* Get a shared secret
|
|
4562
|
+
* Get a previously generated shared secret.
|
|
4563
|
+
* @returns SharedSecretsResponse
|
|
4564
|
+
* @throws ApiError
|
|
4565
|
+
*/
|
|
4566
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4567
|
+
/**
|
|
4568
|
+
* Add addresses to webhook
|
|
4569
|
+
* Add addresses to webhook.
|
|
4570
|
+
* @returns WebhookResponse
|
|
4571
|
+
* @throws ApiError
|
|
4572
|
+
*/
|
|
4573
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4574
|
+
/**
|
|
4575
|
+
* The webhook identifier.
|
|
4576
|
+
*/
|
|
4577
|
+
id: string;
|
|
4578
|
+
requestBody: AddressesChangeRequest;
|
|
4579
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4580
|
+
/**
|
|
4581
|
+
* Remove addresses from webhook
|
|
4582
|
+
* Remove addresses from webhook.
|
|
4583
|
+
* @returns WebhookResponse
|
|
4584
|
+
* @throws ApiError
|
|
4585
|
+
*/
|
|
4586
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4587
|
+
/**
|
|
4588
|
+
* The webhook identifier.
|
|
4589
|
+
*/
|
|
4590
|
+
id: string;
|
|
4591
|
+
requestBody: AddressesChangeRequest;
|
|
4592
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4593
|
+
/**
|
|
4594
|
+
* List adresses by webhook
|
|
4595
|
+
* List adresses by webhook.
|
|
4596
|
+
* @returns ListWebhookAddressesResponse
|
|
4597
|
+
* @throws ApiError
|
|
4598
|
+
*/
|
|
4599
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4600
|
+
/**
|
|
4601
|
+
* The webhook identifier.
|
|
4602
|
+
*/
|
|
4603
|
+
id: string;
|
|
4604
|
+
/**
|
|
4605
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4606
|
+
*/
|
|
4607
|
+
pageToken?: string;
|
|
4608
|
+
/**
|
|
4609
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4610
|
+
*/
|
|
4611
|
+
pageSize?: number;
|
|
4612
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
4321
4613
|
}
|
|
4322
4614
|
|
|
4323
4615
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4338,7 +4630,9 @@ declare class Glacier {
|
|
|
4338
4630
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4339
4631
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4340
4632
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4633
|
+
readonly rpc: RpcService;
|
|
4341
4634
|
readonly teleporter: TeleporterService;
|
|
4635
|
+
readonly webhooks: WebhooksService;
|
|
4342
4636
|
readonly request: BaseHttpRequest;
|
|
4343
4637
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4344
4638
|
}
|
|
@@ -4360,4 +4654,11 @@ declare class ApiError extends Error {
|
|
|
4360
4654
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4361
4655
|
}
|
|
4362
4656
|
|
|
4363
|
-
|
|
4657
|
+
type NextPageToken = {
|
|
4658
|
+
/**
|
|
4659
|
+
* 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.
|
|
4660
|
+
*/
|
|
4661
|
+
nextPageToken?: string;
|
|
4662
|
+
};
|
|
4663
|
+
|
|
4664
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, 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, ListWebhookAddressesResponse, 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, SortByOption, 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 };
|