@avalabs/glacier-sdk 2.8.0-canary.97320c7.0 → 2.8.0-canary.9b9388d.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 +615 -478
- package/dist/index.js +308 -198
- 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 +41 -36
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +25 -9
- 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 +2 -4
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -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 +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- 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 +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
- 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/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/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 +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +12 -12
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -32
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +14 -22
- package/esm/generated/services/TeleporterService.js +4 -8
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +16 -2
- package/esm/index.js +7 -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>;
|
|
@@ -46,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
46
40
|
VERSION: string;
|
|
47
41
|
WITH_CREDENTIALS: boolean;
|
|
48
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
49
|
-
TOKEN?: string | Resolver<string
|
|
50
|
-
USERNAME?: string | Resolver<string
|
|
51
|
-
PASSWORD?: string | Resolver<string
|
|
52
|
-
HEADERS?: Headers | Resolver<Headers
|
|
53
|
-
ENCODE_PATH?: (path: string) => string;
|
|
43
|
+
TOKEN?: string | Resolver<string> | undefined;
|
|
44
|
+
USERNAME?: string | Resolver<string> | undefined;
|
|
45
|
+
PASSWORD?: string | Resolver<string> | undefined;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers> | undefined;
|
|
47
|
+
ENCODE_PATH?: ((path: string) => string) | undefined;
|
|
54
48
|
};
|
|
55
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
56
50
|
|
|
@@ -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,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, 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,14 @@ 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;
|
|
492
|
-
/**
|
|
493
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
494
|
-
*/
|
|
495
|
-
pageSize?: number;
|
|
496
378
|
/**
|
|
497
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
498
380
|
*/
|
|
499
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
500
386
|
/**
|
|
501
387
|
* A comma separated list of contract addresses to filter by.
|
|
502
388
|
*/
|
|
@@ -514,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
514
400
|
* @returns ListErc721BalancesResponse
|
|
515
401
|
* @throws ApiError
|
|
516
402
|
*/
|
|
517
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
404
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
406
|
*/
|
|
521
407
|
chainId: string;
|
|
522
408
|
/**
|
|
523
409
|
* A wallet address.
|
|
524
410
|
*/
|
|
525
411
|
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
412
|
/**
|
|
531
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
532
414
|
*/
|
|
533
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
534
420
|
/**
|
|
535
421
|
* A contract addresses to filter by.
|
|
536
422
|
*/
|
|
@@ -546,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
546
432
|
* @returns ListErc1155BalancesResponse
|
|
547
433
|
* @throws ApiError
|
|
548
434
|
*/
|
|
549
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
436
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
438
|
*/
|
|
553
439
|
chainId: string;
|
|
554
440
|
/**
|
|
@@ -559,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
559
445
|
* The block number, if not defined the block number will be the latest block.
|
|
560
446
|
*/
|
|
561
447
|
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
448
|
/**
|
|
567
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
568
450
|
*/
|
|
569
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
570
456
|
/**
|
|
571
457
|
* A contract addresses to filter by.
|
|
572
458
|
*/
|
|
@@ -580,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
580
466
|
* @returns ListCollectibleBalancesResponse
|
|
581
467
|
* @throws ApiError
|
|
582
468
|
*/
|
|
583
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
470
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
472
|
*/
|
|
587
473
|
chainId: string;
|
|
588
474
|
/**
|
|
589
475
|
* A wallet address.
|
|
590
476
|
*/
|
|
591
477
|
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
478
|
/**
|
|
597
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
598
480
|
*/
|
|
599
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
600
486
|
/**
|
|
601
487
|
* A contract addresses to filter by.
|
|
602
488
|
*/
|
|
@@ -709,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
709
595
|
* @returns ListEvmBlocksResponse
|
|
710
596
|
* @throws ApiError
|
|
711
597
|
*/
|
|
712
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
599
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
601
|
*/
|
|
716
602
|
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
603
|
/**
|
|
722
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
723
605
|
*/
|
|
724
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
725
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
726
612
|
/**
|
|
727
613
|
* Get block
|
|
@@ -731,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
731
617
|
*/
|
|
732
618
|
getBlock({ chainId, blockId, }: {
|
|
733
619
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
621
|
*/
|
|
736
622
|
chainId: string;
|
|
737
623
|
/**
|
|
@@ -741,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
741
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
742
628
|
}
|
|
743
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
632
|
+
*/
|
|
744
633
|
declare enum ChainStatus {
|
|
745
634
|
OK = "OK",
|
|
746
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -778,9 +667,6 @@ declare enum VmName {
|
|
|
778
667
|
|
|
779
668
|
type GetChainResponse = {
|
|
780
669
|
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
670
|
status: ChainStatus;
|
|
785
671
|
chainName: string;
|
|
786
672
|
description: string;
|
|
@@ -796,13 +682,15 @@ type GetChainResponse = {
|
|
|
796
682
|
networkToken: NetworkToken;
|
|
797
683
|
chainLogoUri?: string;
|
|
798
684
|
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
799
686
|
};
|
|
800
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing"
|
|
690
|
+
}
|
|
691
|
+
|
|
801
692
|
type ChainInfo = {
|
|
802
693
|
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
694
|
status: ChainStatus;
|
|
807
695
|
chainName: string;
|
|
808
696
|
description: string;
|
|
@@ -818,6 +706,7 @@ type ChainInfo = {
|
|
|
818
706
|
networkToken: NetworkToken;
|
|
819
707
|
chainLogoUri?: string;
|
|
820
708
|
private?: boolean;
|
|
709
|
+
enabledFeatures?: Array<'nftIndexing'>;
|
|
821
710
|
};
|
|
822
711
|
|
|
823
712
|
type ListChainsResponse = {
|
|
@@ -838,11 +727,15 @@ declare class EvmChainsService {
|
|
|
838
727
|
* @returns ListChainsResponse
|
|
839
728
|
* @throws ApiError
|
|
840
729
|
*/
|
|
841
|
-
supportedChains({ network, }: {
|
|
730
|
+
supportedChains({ network, feature, }: {
|
|
842
731
|
/**
|
|
843
732
|
* mainnet or testnet.
|
|
844
733
|
*/
|
|
845
734
|
network?: NetworkType;
|
|
735
|
+
/**
|
|
736
|
+
* Filter by feature.
|
|
737
|
+
*/
|
|
738
|
+
feature?: GlacierApiFeature;
|
|
846
739
|
}): CancelablePromise<ListChainsResponse>;
|
|
847
740
|
/**
|
|
848
741
|
* Get chain information
|
|
@@ -852,7 +745,7 @@ declare class EvmChainsService {
|
|
|
852
745
|
*/
|
|
853
746
|
getChainInfo({ chainId, }: {
|
|
854
747
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
748
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
749
|
*/
|
|
857
750
|
chainId: string;
|
|
858
751
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1040,7 @@ declare class EvmContractsService {
|
|
|
1147
1040
|
*/
|
|
1148
1041
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1042
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1043
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1044
|
*/
|
|
1152
1045
|
chainId: string;
|
|
1153
1046
|
/**
|
|
@@ -1163,7 +1056,7 @@ declare class EvmContractsService {
|
|
|
1163
1056
|
*/
|
|
1164
1057
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1058
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1059
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1060
|
*/
|
|
1168
1061
|
chainId: string;
|
|
1169
1062
|
/**
|
|
@@ -1297,6 +1190,9 @@ type Erc721TransferDetails = {
|
|
|
1297
1190
|
erc721Token: Erc721Token;
|
|
1298
1191
|
};
|
|
1299
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* 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.
|
|
1195
|
+
*/
|
|
1300
1196
|
declare enum TransactionMethodType {
|
|
1301
1197
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
1198
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1304,9 +1200,6 @@ declare enum TransactionMethodType {
|
|
|
1304
1200
|
}
|
|
1305
1201
|
|
|
1306
1202
|
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
1203
|
callType: TransactionMethodType;
|
|
1311
1204
|
/**
|
|
1312
1205
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1667,7 +1560,7 @@ type ListTransfersResponse = {
|
|
|
1667
1560
|
* 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
1561
|
*/
|
|
1669
1562
|
nextPageToken?: string;
|
|
1670
|
-
transfers:
|
|
1563
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1671
1564
|
};
|
|
1672
1565
|
|
|
1673
1566
|
declare enum SortOrder {
|
|
@@ -1691,7 +1584,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1584
|
*/
|
|
1692
1585
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1586
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1588
|
*/
|
|
1696
1589
|
chainId: string;
|
|
1697
1590
|
/**
|
|
@@ -1709,23 +1602,23 @@ declare class EvmTransactionsService {
|
|
|
1709
1602
|
* @returns ListContractsResponse
|
|
1710
1603
|
* @throws ApiError
|
|
1711
1604
|
*/
|
|
1712
|
-
listContractDeployments({ chainId, address,
|
|
1605
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1606
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1607
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1608
|
*/
|
|
1716
1609
|
chainId: string;
|
|
1717
1610
|
/**
|
|
1718
1611
|
* A wallet address.
|
|
1719
1612
|
*/
|
|
1720
1613
|
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
1614
|
/**
|
|
1726
1615
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1727
1616
|
*/
|
|
1728
1617
|
pageToken?: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1620
|
+
*/
|
|
1621
|
+
pageSize?: number;
|
|
1729
1622
|
}): CancelablePromise<ListContractsResponse>;
|
|
1730
1623
|
/**
|
|
1731
1624
|
* List ERC transfers
|
|
@@ -1733,9 +1626,9 @@ declare class EvmTransactionsService {
|
|
|
1733
1626
|
* @returns ListTransfersResponse
|
|
1734
1627
|
* @throws ApiError
|
|
1735
1628
|
*/
|
|
1736
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1629
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1630
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1631
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1632
|
*/
|
|
1740
1633
|
chainId: string;
|
|
1741
1634
|
/**
|
|
@@ -1750,14 +1643,14 @@ declare class EvmTransactionsService {
|
|
|
1750
1643
|
* 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
1644
|
*/
|
|
1752
1645
|
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
1646
|
/**
|
|
1758
1647
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1759
1648
|
*/
|
|
1760
1649
|
pageToken?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1652
|
+
*/
|
|
1653
|
+
pageSize?: number;
|
|
1761
1654
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
1655
|
/**
|
|
1763
1656
|
* List transactions
|
|
@@ -1767,23 +1660,23 @@ declare class EvmTransactionsService {
|
|
|
1767
1660
|
* @returns ListTransactionDetailsResponse
|
|
1768
1661
|
* @throws ApiError
|
|
1769
1662
|
*/
|
|
1770
|
-
listTransactions({ chainId, address,
|
|
1663
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1664
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1665
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1666
|
*/
|
|
1774
1667
|
chainId: string;
|
|
1775
1668
|
/**
|
|
1776
1669
|
* A wallet address.
|
|
1777
1670
|
*/
|
|
1778
1671
|
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
1672
|
/**
|
|
1784
1673
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1785
1674
|
*/
|
|
1786
1675
|
pageToken?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1678
|
+
*/
|
|
1679
|
+
pageSize?: number;
|
|
1787
1680
|
/**
|
|
1788
1681
|
* 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
1682
|
*/
|
|
@@ -1803,9 +1696,9 @@ declare class EvmTransactionsService {
|
|
|
1803
1696
|
* @returns ListNativeTransactionsResponse
|
|
1804
1697
|
* @throws ApiError
|
|
1805
1698
|
*/
|
|
1806
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1699
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1700
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1702
|
*/
|
|
1810
1703
|
chainId: string;
|
|
1811
1704
|
/**
|
|
@@ -1820,14 +1713,14 @@ declare class EvmTransactionsService {
|
|
|
1820
1713
|
* 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
1714
|
*/
|
|
1822
1715
|
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
1716
|
/**
|
|
1828
1717
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1829
1718
|
*/
|
|
1830
1719
|
pageToken?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1722
|
+
*/
|
|
1723
|
+
pageSize?: number;
|
|
1831
1724
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1832
1725
|
/**
|
|
1833
1726
|
* List ERC-20 transfers
|
|
@@ -1835,9 +1728,9 @@ declare class EvmTransactionsService {
|
|
|
1835
1728
|
* @returns ListErc20TransactionsResponse
|
|
1836
1729
|
* @throws ApiError
|
|
1837
1730
|
*/
|
|
1838
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1731
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1732
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1733
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1734
|
*/
|
|
1842
1735
|
chainId: string;
|
|
1843
1736
|
/**
|
|
@@ -1852,14 +1745,14 @@ declare class EvmTransactionsService {
|
|
|
1852
1745
|
* 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
1746
|
*/
|
|
1854
1747
|
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
1748
|
/**
|
|
1860
1749
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1861
1750
|
*/
|
|
1862
1751
|
pageToken?: string;
|
|
1752
|
+
/**
|
|
1753
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1754
|
+
*/
|
|
1755
|
+
pageSize?: number;
|
|
1863
1756
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1864
1757
|
/**
|
|
1865
1758
|
* List ERC-721 transfers
|
|
@@ -1867,9 +1760,9 @@ declare class EvmTransactionsService {
|
|
|
1867
1760
|
* @returns ListErc721TransactionsResponse
|
|
1868
1761
|
* @throws ApiError
|
|
1869
1762
|
*/
|
|
1870
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1763
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1764
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1766
|
*/
|
|
1874
1767
|
chainId: string;
|
|
1875
1768
|
/**
|
|
@@ -1884,14 +1777,14 @@ declare class EvmTransactionsService {
|
|
|
1884
1777
|
* 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
1778
|
*/
|
|
1886
1779
|
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
1780
|
/**
|
|
1892
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1893
1782
|
*/
|
|
1894
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1786
|
+
*/
|
|
1787
|
+
pageSize?: number;
|
|
1895
1788
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1896
1789
|
/**
|
|
1897
1790
|
* List ERC-1155 transfers
|
|
@@ -1899,9 +1792,9 @@ declare class EvmTransactionsService {
|
|
|
1899
1792
|
* @returns ListErc1155TransactionsResponse
|
|
1900
1793
|
* @throws ApiError
|
|
1901
1794
|
*/
|
|
1902
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1795
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1796
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1797
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1798
|
*/
|
|
1906
1799
|
chainId: string;
|
|
1907
1800
|
/**
|
|
@@ -1916,14 +1809,14 @@ declare class EvmTransactionsService {
|
|
|
1916
1809
|
* 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
1810
|
*/
|
|
1918
1811
|
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
1812
|
/**
|
|
1924
1813
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1925
1814
|
*/
|
|
1926
1815
|
pageToken?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1818
|
+
*/
|
|
1819
|
+
pageSize?: number;
|
|
1927
1820
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1928
1821
|
/**
|
|
1929
1822
|
* List internal transactions
|
|
@@ -1933,9 +1826,9 @@ declare class EvmTransactionsService {
|
|
|
1933
1826
|
* @returns ListInternalTransactionsResponse
|
|
1934
1827
|
* @throws ApiError
|
|
1935
1828
|
*/
|
|
1936
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1829
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1830
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1831
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1832
|
*/
|
|
1940
1833
|
chainId: string;
|
|
1941
1834
|
/**
|
|
@@ -1950,14 +1843,14 @@ declare class EvmTransactionsService {
|
|
|
1950
1843
|
* 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
1844
|
*/
|
|
1952
1845
|
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
1846
|
/**
|
|
1958
1847
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1959
1848
|
*/
|
|
1960
1849
|
pageToken?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1852
|
+
*/
|
|
1853
|
+
pageSize?: number;
|
|
1961
1854
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1962
1855
|
/**
|
|
1963
1856
|
* Get transaction
|
|
@@ -1967,7 +1860,7 @@ declare class EvmTransactionsService {
|
|
|
1967
1860
|
*/
|
|
1968
1861
|
getTransaction({ chainId, txHash, }: {
|
|
1969
1862
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1863
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
1864
|
*/
|
|
1972
1865
|
chainId: string;
|
|
1973
1866
|
/**
|
|
@@ -1983,7 +1876,7 @@ declare class EvmTransactionsService {
|
|
|
1983
1876
|
*/
|
|
1984
1877
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
1878
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1879
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
1880
|
*/
|
|
1988
1881
|
chainId: string;
|
|
1989
1882
|
/**
|
|
@@ -1997,19 +1890,19 @@ declare class EvmTransactionsService {
|
|
|
1997
1890
|
* @returns ListNativeTransactionsResponse
|
|
1998
1891
|
* @throws ApiError
|
|
1999
1892
|
*/
|
|
2000
|
-
listLatestTransactions({ chainId,
|
|
1893
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
1894
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1895
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
1896
|
*/
|
|
2004
1897
|
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
1898
|
/**
|
|
2010
1899
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2011
1900
|
*/
|
|
2012
1901
|
pageToken?: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1904
|
+
*/
|
|
1905
|
+
pageSize?: number;
|
|
2013
1906
|
/**
|
|
2014
1907
|
* A status filter for listed transactions.
|
|
2015
1908
|
*/
|
|
@@ -2038,7 +1931,7 @@ type ListNftTokens = {
|
|
|
2038
1931
|
* 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
1932
|
*/
|
|
2040
1933
|
nextPageToken?: string;
|
|
2041
|
-
tokens:
|
|
1934
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2042
1935
|
};
|
|
2043
1936
|
|
|
2044
1937
|
declare class NfTsService {
|
|
@@ -2052,7 +1945,7 @@ declare class NfTsService {
|
|
|
2052
1945
|
*/
|
|
2053
1946
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
1947
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1948
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
1949
|
*/
|
|
2057
1950
|
chainId: string;
|
|
2058
1951
|
/**
|
|
@@ -2070,23 +1963,23 @@ declare class NfTsService {
|
|
|
2070
1963
|
* @returns ListNftTokens
|
|
2071
1964
|
* @throws ApiError
|
|
2072
1965
|
*/
|
|
2073
|
-
listTokens({ chainId, address,
|
|
1966
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
1967
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1968
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
1969
|
*/
|
|
2077
1970
|
chainId: string;
|
|
2078
1971
|
/**
|
|
2079
1972
|
* Contract address on the relevant chain.
|
|
2080
1973
|
*/
|
|
2081
1974
|
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
1975
|
/**
|
|
2087
1976
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
1977
|
*/
|
|
2089
1978
|
pageToken?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1981
|
+
*/
|
|
1982
|
+
pageSize?: number;
|
|
2090
1983
|
}): CancelablePromise<ListNftTokens>;
|
|
2091
1984
|
/**
|
|
2092
1985
|
* Get token details
|
|
@@ -2096,7 +1989,7 @@ declare class NfTsService {
|
|
|
2096
1989
|
*/
|
|
2097
1990
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
1991
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1992
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
1993
|
*/
|
|
2101
1994
|
chainId: string;
|
|
2102
1995
|
/**
|
|
@@ -2115,8 +2008,12 @@ type EvmNetworkOptions = {
|
|
|
2115
2008
|
includeChains: Array<string>;
|
|
2116
2009
|
};
|
|
2117
2010
|
|
|
2011
|
+
declare enum EVMOperationType {
|
|
2012
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2118
2015
|
type CreateEvmTransactionExportRequest = {
|
|
2119
|
-
type:
|
|
2016
|
+
type: EVMOperationType;
|
|
2120
2017
|
firstDate: string;
|
|
2121
2018
|
lastDate: string;
|
|
2122
2019
|
/**
|
|
@@ -2129,20 +2026,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2129
2026
|
endDate: string;
|
|
2130
2027
|
options: EvmNetworkOptions;
|
|
2131
2028
|
};
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2029
|
+
|
|
2030
|
+
declare enum PrimaryNetworkOperationType {
|
|
2031
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2136
2034
|
}
|
|
2137
2035
|
|
|
2138
2036
|
type PrimaryNetworkOptions = {
|
|
2139
|
-
addresses
|
|
2037
|
+
addresses?: Array<string>;
|
|
2140
2038
|
cChainEvmAddresses?: Array<string>;
|
|
2141
2039
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2142
2040
|
};
|
|
2143
2041
|
|
|
2144
2042
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2145
|
-
type:
|
|
2043
|
+
type: PrimaryNetworkOperationType;
|
|
2146
2044
|
firstDate: string;
|
|
2147
2045
|
lastDate: string;
|
|
2148
2046
|
/**
|
|
@@ -2155,11 +2053,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2155
2053
|
endDate: string;
|
|
2156
2054
|
options: PrimaryNetworkOptions;
|
|
2157
2055
|
};
|
|
2158
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2159
|
-
enum type {
|
|
2160
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
2056
|
|
|
2164
2057
|
declare enum OperationStatus {
|
|
2165
2058
|
RUNNING = "RUNNING",
|
|
@@ -2169,8 +2062,10 @@ declare enum OperationStatus {
|
|
|
2169
2062
|
}
|
|
2170
2063
|
|
|
2171
2064
|
declare enum OperationType {
|
|
2172
|
-
|
|
2173
|
-
|
|
2065
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2068
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2174
2069
|
}
|
|
2175
2070
|
|
|
2176
2071
|
declare enum OperationStatusCode {
|
|
@@ -2362,15 +2257,46 @@ type BlockchainInfo = {
|
|
|
2362
2257
|
blockchainId: string;
|
|
2363
2258
|
};
|
|
2364
2259
|
|
|
2365
|
-
type
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
ownerAddresses: Array<string>;
|
|
2370
|
-
threshold: number;
|
|
2260
|
+
type SubnetOwnershipInfo = {
|
|
2261
|
+
/**
|
|
2262
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2263
|
+
*/
|
|
2371
2264
|
locktime: number;
|
|
2372
|
-
|
|
2373
|
-
|
|
2265
|
+
/**
|
|
2266
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2267
|
+
*/
|
|
2268
|
+
threshold: number;
|
|
2269
|
+
/**
|
|
2270
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2271
|
+
*/
|
|
2272
|
+
addresses: Array<string>;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
type Subnet = {
|
|
2276
|
+
createBlockTimestamp: number;
|
|
2277
|
+
createBlockIndex: string;
|
|
2278
|
+
subnetId: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2281
|
+
* @deprecated
|
|
2282
|
+
*/
|
|
2283
|
+
ownerAddresses: Array<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2288
|
+
threshold: number;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2293
|
+
locktime: number;
|
|
2294
|
+
/**
|
|
2295
|
+
* Latest subnet owner details for this Subnet.
|
|
2296
|
+
*/
|
|
2297
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2298
|
+
blockchains: Array<BlockchainInfo>;
|
|
2299
|
+
};
|
|
2374
2300
|
|
|
2375
2301
|
type ListSubnetsResponse = {
|
|
2376
2302
|
/**
|
|
@@ -2505,6 +2431,22 @@ declare enum ValidationStatusType {
|
|
|
2505
2431
|
REMOVED = "removed"
|
|
2506
2432
|
}
|
|
2507
2433
|
|
|
2434
|
+
/**
|
|
2435
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2436
|
+
*/
|
|
2437
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2438
|
+
FIXED = "fixed",
|
|
2439
|
+
VARIABLE = "variable"
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2444
|
+
*/
|
|
2445
|
+
declare enum PrimaryNetworkAssetType {
|
|
2446
|
+
SECP256K1 = "secp256k1",
|
|
2447
|
+
NFT = "nft"
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2508
2450
|
type XChainAssetDetails = {
|
|
2509
2451
|
/**
|
|
2510
2452
|
* Unique ID for an asset.
|
|
@@ -2522,18 +2464,12 @@ type XChainAssetDetails = {
|
|
|
2522
2464
|
* Denomination of this asset to represent fungibility.
|
|
2523
2465
|
*/
|
|
2524
2466
|
denomination: number;
|
|
2525
|
-
|
|
2526
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2527
|
-
*/
|
|
2528
|
-
type: string;
|
|
2467
|
+
type: PrimaryNetworkAssetType;
|
|
2529
2468
|
/**
|
|
2530
2469
|
* Timestamp in seconds this asset was created on.
|
|
2531
2470
|
*/
|
|
2532
2471
|
createdAtTimestamp: number;
|
|
2533
|
-
|
|
2534
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2535
|
-
*/
|
|
2536
|
-
cap: string;
|
|
2472
|
+
cap: PrimaryNetworkAssetCap;
|
|
2537
2473
|
};
|
|
2538
2474
|
|
|
2539
2475
|
declare enum XChainId {
|
|
@@ -2599,19 +2535,19 @@ declare class PrimaryNetworkService {
|
|
|
2599
2535
|
* @returns ListBlockchainsResponse
|
|
2600
2536
|
* @throws ApiError
|
|
2601
2537
|
*/
|
|
2602
|
-
listBlockchains({ network,
|
|
2538
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2603
2539
|
/**
|
|
2604
2540
|
* Either mainnet or a testnet.
|
|
2605
2541
|
*/
|
|
2606
2542
|
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
2543
|
/**
|
|
2612
2544
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2613
2545
|
*/
|
|
2614
2546
|
pageToken?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2549
|
+
*/
|
|
2550
|
+
pageSize?: number;
|
|
2615
2551
|
/**
|
|
2616
2552
|
* 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
2553
|
*/
|
|
@@ -2623,19 +2559,19 @@ declare class PrimaryNetworkService {
|
|
|
2623
2559
|
* @returns ListSubnetsResponse
|
|
2624
2560
|
* @throws ApiError
|
|
2625
2561
|
*/
|
|
2626
|
-
listSubnets({ network,
|
|
2562
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2627
2563
|
/**
|
|
2628
2564
|
* Either mainnet or a testnet.
|
|
2629
2565
|
*/
|
|
2630
2566
|
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
2567
|
/**
|
|
2636
2568
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2637
2569
|
*/
|
|
2638
2570
|
pageToken?: string;
|
|
2571
|
+
/**
|
|
2572
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2573
|
+
*/
|
|
2574
|
+
pageSize?: number;
|
|
2639
2575
|
/**
|
|
2640
2576
|
* 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
2577
|
*/
|
|
@@ -2647,19 +2583,19 @@ declare class PrimaryNetworkService {
|
|
|
2647
2583
|
* @returns ListValidatorDetailsResponse
|
|
2648
2584
|
* @throws ApiError
|
|
2649
2585
|
*/
|
|
2650
|
-
listValidators({ network,
|
|
2586
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2651
2587
|
/**
|
|
2652
2588
|
* Either mainnet or a testnet.
|
|
2653
2589
|
*/
|
|
2654
2590
|
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
2591
|
/**
|
|
2660
2592
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2661
2593
|
*/
|
|
2662
2594
|
pageToken?: string;
|
|
2595
|
+
/**
|
|
2596
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2597
|
+
*/
|
|
2598
|
+
pageSize?: number;
|
|
2663
2599
|
/**
|
|
2664
2600
|
* A comma separated list of node ids to filter by.
|
|
2665
2601
|
*/
|
|
@@ -2675,31 +2611,31 @@ declare class PrimaryNetworkService {
|
|
|
2675
2611
|
/**
|
|
2676
2612
|
* 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
2613
|
*/
|
|
2678
|
-
minDelegationCapacity?:
|
|
2614
|
+
minDelegationCapacity?: string;
|
|
2679
2615
|
/**
|
|
2680
2616
|
* 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
2617
|
*/
|
|
2682
|
-
maxDelegationCapacity?:
|
|
2618
|
+
maxDelegationCapacity?: string;
|
|
2683
2619
|
/**
|
|
2684
2620
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
2621
|
*/
|
|
2686
|
-
minTimeRemaining?:
|
|
2622
|
+
minTimeRemaining?: number;
|
|
2687
2623
|
/**
|
|
2688
2624
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
2625
|
*/
|
|
2690
|
-
maxTimeRemaining?:
|
|
2626
|
+
maxTimeRemaining?: number;
|
|
2691
2627
|
/**
|
|
2692
2628
|
* 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.
|
|
2693
2629
|
*/
|
|
2694
|
-
minFeePercentage?:
|
|
2630
|
+
minFeePercentage?: number;
|
|
2695
2631
|
/**
|
|
2696
2632
|
* 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.
|
|
2697
2633
|
*/
|
|
2698
|
-
maxFeePercentage?:
|
|
2634
|
+
maxFeePercentage?: number;
|
|
2699
2635
|
/**
|
|
2700
2636
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
2637
|
*/
|
|
2702
|
-
subnetId?:
|
|
2638
|
+
subnetId?: any;
|
|
2703
2639
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2704
2640
|
/**
|
|
2705
2641
|
* Get single validator details
|
|
@@ -2707,7 +2643,7 @@ declare class PrimaryNetworkService {
|
|
|
2707
2643
|
* @returns ListValidatorDetailsResponse
|
|
2708
2644
|
* @throws ApiError
|
|
2709
2645
|
*/
|
|
2710
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2646
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2711
2647
|
/**
|
|
2712
2648
|
* Either mainnet or a testnet.
|
|
2713
2649
|
*/
|
|
@@ -2716,14 +2652,14 @@ declare class PrimaryNetworkService {
|
|
|
2716
2652
|
* A primary network (P or X chain) nodeId.
|
|
2717
2653
|
*/
|
|
2718
2654
|
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
2655
|
/**
|
|
2724
2656
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2725
2657
|
*/
|
|
2726
2658
|
pageToken?: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2661
|
+
*/
|
|
2662
|
+
pageSize?: number;
|
|
2727
2663
|
/**
|
|
2728
2664
|
* 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.
|
|
2729
2665
|
*/
|
|
@@ -2739,19 +2675,19 @@ declare class PrimaryNetworkService {
|
|
|
2739
2675
|
* @returns ListDelegatorDetailsResponse
|
|
2740
2676
|
* @throws ApiError
|
|
2741
2677
|
*/
|
|
2742
|
-
listDelegators({ network,
|
|
2678
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
2679
|
/**
|
|
2744
2680
|
* Either mainnet or a testnet.
|
|
2745
2681
|
*/
|
|
2746
2682
|
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
2683
|
/**
|
|
2752
2684
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2753
2685
|
*/
|
|
2754
2686
|
pageToken?: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2689
|
+
*/
|
|
2690
|
+
pageSize?: number;
|
|
2755
2691
|
/**
|
|
2756
2692
|
* A comma separated list of reward addresses to filter by.
|
|
2757
2693
|
*/
|
|
@@ -2799,10 +2735,7 @@ type CChainSharedAssetBalance = {
|
|
|
2799
2735
|
* Denomination of this asset to represent fungibility.
|
|
2800
2736
|
*/
|
|
2801
2737
|
denomination: number;
|
|
2802
|
-
|
|
2803
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2804
|
-
*/
|
|
2805
|
-
type: string;
|
|
2738
|
+
type: PrimaryNetworkAssetType;
|
|
2806
2739
|
/**
|
|
2807
2740
|
* Amount of the asset.
|
|
2808
2741
|
*/
|
|
@@ -2837,7 +2770,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2837
2770
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2838
2771
|
};
|
|
2839
2772
|
|
|
2840
|
-
type
|
|
2773
|
+
type AggregatedAssetAmount = {
|
|
2841
2774
|
/**
|
|
2842
2775
|
* Unique ID for an asset.
|
|
2843
2776
|
*/
|
|
@@ -2854,14 +2787,12 @@ type Asset = {
|
|
|
2854
2787
|
* Denomination of this asset to represent fungibility.
|
|
2855
2788
|
*/
|
|
2856
2789
|
denomination: number;
|
|
2857
|
-
|
|
2858
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2859
|
-
*/
|
|
2860
|
-
type: string;
|
|
2790
|
+
type: PrimaryNetworkAssetType;
|
|
2861
2791
|
/**
|
|
2862
2792
|
* Amount of the asset.
|
|
2863
2793
|
*/
|
|
2864
2794
|
amount: string;
|
|
2795
|
+
utxoCount: number;
|
|
2865
2796
|
};
|
|
2866
2797
|
|
|
2867
2798
|
type PChainSharedAsset = {
|
|
@@ -2881,49 +2812,47 @@ type PChainSharedAsset = {
|
|
|
2881
2812
|
* Denomination of this asset to represent fungibility.
|
|
2882
2813
|
*/
|
|
2883
2814
|
denomination: number;
|
|
2884
|
-
|
|
2885
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2886
|
-
*/
|
|
2887
|
-
type: string;
|
|
2815
|
+
type: PrimaryNetworkAssetType;
|
|
2888
2816
|
/**
|
|
2889
2817
|
* Amount of the asset.
|
|
2890
2818
|
*/
|
|
2891
2819
|
amount: string;
|
|
2820
|
+
utxoCount: number;
|
|
2892
2821
|
sharedWithChainId: string;
|
|
2893
2822
|
status: string;
|
|
2894
2823
|
};
|
|
2895
2824
|
|
|
2896
2825
|
type PChainBalance = {
|
|
2897
2826
|
/**
|
|
2898
|
-
* A list of objects containing P-chain Asset
|
|
2827
|
+
* 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
2828
|
*/
|
|
2900
|
-
unlockedUnstaked: Array<
|
|
2829
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2901
2830
|
/**
|
|
2902
|
-
* A list of objects containing P-chain Asset
|
|
2831
|
+
* 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
2832
|
*/
|
|
2904
|
-
unlockedStaked: Array<
|
|
2833
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2905
2834
|
/**
|
|
2906
|
-
* A list of objects containing P-chain Asset
|
|
2835
|
+
* 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
2836
|
*/
|
|
2908
|
-
lockedPlatform: Array<
|
|
2837
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2909
2838
|
/**
|
|
2910
|
-
* A list of objects containing P-chain Asset
|
|
2839
|
+
* 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
2840
|
*/
|
|
2912
|
-
lockedStakeable: Array<
|
|
2841
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2913
2842
|
/**
|
|
2914
|
-
* A list of objects containing P-chain Asset
|
|
2843
|
+
* 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
2844
|
*/
|
|
2916
|
-
lockedStaked: Array<
|
|
2845
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2917
2846
|
/**
|
|
2918
|
-
* A list of objects containing P-chain Asset
|
|
2847
|
+
* 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
2848
|
*/
|
|
2920
|
-
pendingStaked: Array<
|
|
2849
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2921
2850
|
/**
|
|
2922
|
-
* A list of objects containing P-chain Asset
|
|
2851
|
+
* 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
2852
|
*/
|
|
2924
2853
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2925
2854
|
/**
|
|
2926
|
-
* A list of objects containing P-chain Asset
|
|
2855
|
+
* 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
2856
|
*/
|
|
2928
2857
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2929
2858
|
};
|
|
@@ -2933,34 +2862,6 @@ type ListPChainBalancesResponse = {
|
|
|
2933
2862
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2934
2863
|
};
|
|
2935
2864
|
|
|
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
2865
|
type XChainSharedAssetBalance = {
|
|
2965
2866
|
/**
|
|
2966
2867
|
* Unique ID for an asset.
|
|
@@ -2978,10 +2879,7 @@ type XChainSharedAssetBalance = {
|
|
|
2978
2879
|
* Denomination of this asset to represent fungibility.
|
|
2979
2880
|
*/
|
|
2980
2881
|
denomination: number;
|
|
2981
|
-
|
|
2982
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2983
|
-
*/
|
|
2984
|
-
type: string;
|
|
2882
|
+
type: PrimaryNetworkAssetType;
|
|
2985
2883
|
/**
|
|
2986
2884
|
* Amount of the asset.
|
|
2987
2885
|
*/
|
|
@@ -2994,11 +2892,11 @@ type XChainBalances = {
|
|
|
2994
2892
|
/**
|
|
2995
2893
|
* A list of objects containing X-chain Asset balance information.
|
|
2996
2894
|
*/
|
|
2997
|
-
locked: Array<
|
|
2895
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2998
2896
|
/**
|
|
2999
2897
|
* A list of objects containing X-chain Asset balance information.
|
|
3000
2898
|
*/
|
|
3001
|
-
unlocked: Array<
|
|
2899
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3002
2900
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3003
2901
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3004
2902
|
};
|
|
@@ -3111,7 +3009,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3111
3009
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3112
3010
|
* @throws ApiError
|
|
3113
3011
|
*/
|
|
3114
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3012
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3115
3013
|
/**
|
|
3116
3014
|
* A primary network blockchain id or alias.
|
|
3117
3015
|
*/
|
|
@@ -3124,14 +3022,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3124
3022
|
* A primary network (P or X chain) nodeId.
|
|
3125
3023
|
*/
|
|
3126
3024
|
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
3025
|
/**
|
|
3132
3026
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3133
3027
|
*/
|
|
3134
3028
|
pageToken?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3031
|
+
*/
|
|
3032
|
+
pageSize?: number;
|
|
3135
3033
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3136
3034
|
/**
|
|
3137
3035
|
* List latest blocks
|
|
@@ -3139,7 +3037,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3139
3037
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3140
3038
|
* @throws ApiError
|
|
3141
3039
|
*/
|
|
3142
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3040
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3143
3041
|
/**
|
|
3144
3042
|
* A primary network blockchain id or alias.
|
|
3145
3043
|
*/
|
|
@@ -3148,14 +3046,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3148
3046
|
* Either mainnet or a testnet.
|
|
3149
3047
|
*/
|
|
3150
3048
|
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
3049
|
/**
|
|
3156
3050
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3157
3051
|
*/
|
|
3158
3052
|
pageToken?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3055
|
+
*/
|
|
3056
|
+
pageSize?: number;
|
|
3159
3057
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3160
3058
|
}
|
|
3161
3059
|
|
|
@@ -3176,10 +3074,7 @@ type AssetWithPriceInfo = {
|
|
|
3176
3074
|
* Denomination of this asset to represent fungibility.
|
|
3177
3075
|
*/
|
|
3178
3076
|
denomination: number;
|
|
3179
|
-
|
|
3180
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3181
|
-
*/
|
|
3182
|
-
type: string;
|
|
3077
|
+
type: PrimaryNetworkAssetType;
|
|
3183
3078
|
/**
|
|
3184
3079
|
* Amount of the asset.
|
|
3185
3080
|
*/
|
|
@@ -3221,6 +3116,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3221
3116
|
historicalRewards: Array<HistoricalReward>;
|
|
3222
3117
|
};
|
|
3223
3118
|
|
|
3119
|
+
type AssetAmount = {
|
|
3120
|
+
/**
|
|
3121
|
+
* Unique ID for an asset.
|
|
3122
|
+
*/
|
|
3123
|
+
assetId: string;
|
|
3124
|
+
/**
|
|
3125
|
+
* Name of this asset.
|
|
3126
|
+
*/
|
|
3127
|
+
name: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Symbol for this asset (max 4 characters).
|
|
3130
|
+
*/
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Denomination of this asset to represent fungibility.
|
|
3134
|
+
*/
|
|
3135
|
+
denomination: number;
|
|
3136
|
+
type: PrimaryNetworkAssetType;
|
|
3137
|
+
/**
|
|
3138
|
+
* Amount of the asset.
|
|
3139
|
+
*/
|
|
3140
|
+
amount: string;
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3224
3143
|
type PendingReward = {
|
|
3225
3144
|
/**
|
|
3226
3145
|
* An array of P-Chain wallet addresses.
|
|
@@ -3234,9 +3153,9 @@ type PendingReward = {
|
|
|
3234
3153
|
rewardType: RewardType;
|
|
3235
3154
|
progress: number;
|
|
3236
3155
|
/**
|
|
3237
|
-
* An object containing P-chain Asset
|
|
3156
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3238
3157
|
*/
|
|
3239
|
-
estimatedReward:
|
|
3158
|
+
estimatedReward: AssetAmount;
|
|
3240
3159
|
};
|
|
3241
3160
|
|
|
3242
3161
|
type ListPendingRewardsResponse = {
|
|
@@ -3256,25 +3175,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3256
3175
|
* @returns ListPendingRewardsResponse
|
|
3257
3176
|
* @throws ApiError
|
|
3258
3177
|
*/
|
|
3259
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3178
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3260
3179
|
/**
|
|
3261
3180
|
* Either mainnet or a testnet.
|
|
3262
3181
|
*/
|
|
3263
3182
|
network: Network;
|
|
3264
3183
|
/**
|
|
3265
|
-
* 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".
|
|
3184
|
+
* 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.
|
|
3266
3185
|
*/
|
|
3267
3186
|
addresses?: string;
|
|
3268
|
-
/**
|
|
3269
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3270
|
-
*/
|
|
3271
|
-
pageSize?: number;
|
|
3272
3187
|
/**
|
|
3273
3188
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3274
3189
|
*/
|
|
3275
3190
|
pageToken?: string;
|
|
3276
3191
|
/**
|
|
3277
|
-
*
|
|
3192
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3193
|
+
*/
|
|
3194
|
+
pageSize?: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3278
3197
|
*/
|
|
3279
3198
|
nodeIds?: string;
|
|
3280
3199
|
/**
|
|
@@ -3288,7 +3207,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3288
3207
|
* @returns ListHistoricalRewardsResponse
|
|
3289
3208
|
* @throws ApiError
|
|
3290
3209
|
*/
|
|
3291
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3210
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3292
3211
|
/**
|
|
3293
3212
|
* Either mainnet or a testnet.
|
|
3294
3213
|
*/
|
|
@@ -3297,14 +3216,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3297
3216
|
* 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.
|
|
3298
3217
|
*/
|
|
3299
3218
|
addresses?: string;
|
|
3300
|
-
/**
|
|
3301
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3302
|
-
*/
|
|
3303
|
-
pageSize?: number;
|
|
3304
3219
|
/**
|
|
3305
3220
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3306
3221
|
*/
|
|
3307
3222
|
pageToken?: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3225
|
+
*/
|
|
3226
|
+
pageSize?: number;
|
|
3308
3227
|
/**
|
|
3309
3228
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3310
3229
|
*/
|
|
@@ -3337,9 +3256,9 @@ type EVMInput = {
|
|
|
3337
3256
|
*/
|
|
3338
3257
|
fromAddress: string;
|
|
3339
3258
|
/**
|
|
3340
|
-
*
|
|
3259
|
+
* AssetAmount details for the asset being transferred.
|
|
3341
3260
|
*/
|
|
3342
|
-
asset:
|
|
3261
|
+
asset: AssetAmount;
|
|
3343
3262
|
/**
|
|
3344
3263
|
* Credentials that signed this transaction.
|
|
3345
3264
|
*/
|
|
@@ -3351,7 +3270,7 @@ type Utxo = {
|
|
|
3351
3270
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3352
3271
|
*/
|
|
3353
3272
|
addresses: Array<string>;
|
|
3354
|
-
asset:
|
|
3273
|
+
asset: AssetAmount;
|
|
3355
3274
|
/**
|
|
3356
3275
|
* Blockchain ID on which this output is consumed on.
|
|
3357
3276
|
*/
|
|
@@ -3434,11 +3353,11 @@ type CChainExportTransaction = {
|
|
|
3434
3353
|
/**
|
|
3435
3354
|
* Assets unlocked by inputs of this transaction.
|
|
3436
3355
|
*/
|
|
3437
|
-
amountUnlocked: Array<
|
|
3356
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3438
3357
|
/**
|
|
3439
3358
|
* Assets created by outputs of this transaction.
|
|
3440
3359
|
*/
|
|
3441
|
-
amountCreated: Array<
|
|
3360
|
+
amountCreated: Array<AssetAmount>;
|
|
3442
3361
|
/**
|
|
3443
3362
|
* Source chain for an atomic transaction.
|
|
3444
3363
|
*/
|
|
@@ -3469,9 +3388,9 @@ type EVMOutput = {
|
|
|
3469
3388
|
*/
|
|
3470
3389
|
toAddress: string;
|
|
3471
3390
|
/**
|
|
3472
|
-
*
|
|
3391
|
+
* AssetAmount details for the asset being transferred.
|
|
3473
3392
|
*/
|
|
3474
|
-
asset:
|
|
3393
|
+
asset: AssetAmount;
|
|
3475
3394
|
};
|
|
3476
3395
|
|
|
3477
3396
|
type CChainImportTransaction = {
|
|
@@ -3498,11 +3417,11 @@ type CChainImportTransaction = {
|
|
|
3498
3417
|
/**
|
|
3499
3418
|
* Assets unlocked by inputs of this transaction.
|
|
3500
3419
|
*/
|
|
3501
|
-
amountUnlocked: Array<
|
|
3420
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3502
3421
|
/**
|
|
3503
3422
|
* Assets created by outputs of this transaction.
|
|
3504
3423
|
*/
|
|
3505
|
-
amountCreated: Array<
|
|
3424
|
+
amountCreated: Array<AssetAmount>;
|
|
3506
3425
|
/**
|
|
3507
3426
|
* Source chain for an atomic transaction.
|
|
3508
3427
|
*/
|
|
@@ -3550,6 +3469,8 @@ declare enum PChainTransactionType {
|
|
|
3550
3469
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3551
3470
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3552
3471
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3472
|
+
BASE_TX = "BaseTx",
|
|
3473
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3553
3474
|
UNKNOWN = "UNKNOWN"
|
|
3554
3475
|
}
|
|
3555
3476
|
|
|
@@ -3563,7 +3484,7 @@ type PChainUtxo = {
|
|
|
3563
3484
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3564
3485
|
*/
|
|
3565
3486
|
addresses: Array<string>;
|
|
3566
|
-
asset:
|
|
3487
|
+
asset: AssetAmount;
|
|
3567
3488
|
/**
|
|
3568
3489
|
* Blockchain ID on which this output is consumed on.
|
|
3569
3490
|
*/
|
|
@@ -3627,17 +3548,17 @@ type PChainTransaction = {
|
|
|
3627
3548
|
*/
|
|
3628
3549
|
destinationChain?: string;
|
|
3629
3550
|
/**
|
|
3630
|
-
* A list of objects containing P-chain Asset
|
|
3551
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3631
3552
|
*/
|
|
3632
|
-
value: Array<
|
|
3553
|
+
value: Array<AssetAmount>;
|
|
3633
3554
|
/**
|
|
3634
|
-
* A list of objects containing P-chain Asset
|
|
3555
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3635
3556
|
*/
|
|
3636
|
-
amountBurned: Array<
|
|
3557
|
+
amountBurned: Array<AssetAmount>;
|
|
3637
3558
|
/**
|
|
3638
|
-
* A list of objects containing P-chain Asset
|
|
3559
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3639
3560
|
*/
|
|
3640
|
-
amountStaked: Array<
|
|
3561
|
+
amountStaked: Array<AssetAmount>;
|
|
3641
3562
|
/**
|
|
3642
3563
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3643
3564
|
*/
|
|
@@ -3669,6 +3590,10 @@ type PChainTransaction = {
|
|
|
3669
3590
|
* Present for RewardValidatorTx
|
|
3670
3591
|
*/
|
|
3671
3592
|
stakingTxHash?: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3595
|
+
*/
|
|
3596
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3672
3597
|
};
|
|
3673
3598
|
|
|
3674
3599
|
type ListPChainTransactionsResponse = {
|
|
@@ -3680,6 +3605,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3680
3605
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3681
3606
|
};
|
|
3682
3607
|
|
|
3608
|
+
/**
|
|
3609
|
+
* Type of transaction.
|
|
3610
|
+
*/
|
|
3683
3611
|
declare enum XChainTransactionType {
|
|
3684
3612
|
BASE_TX = "BaseTx",
|
|
3685
3613
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3702,9 +3630,6 @@ type XChainLinearTransaction = {
|
|
|
3702
3630
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3703
3631
|
*/
|
|
3704
3632
|
timestamp: number;
|
|
3705
|
-
/**
|
|
3706
|
-
* Type of transaction.
|
|
3707
|
-
*/
|
|
3708
3633
|
txType: XChainTransactionType;
|
|
3709
3634
|
/**
|
|
3710
3635
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3715,11 +3640,11 @@ type XChainLinearTransaction = {
|
|
|
3715
3640
|
/**
|
|
3716
3641
|
* Assets unlocked by inputs of this transaction.
|
|
3717
3642
|
*/
|
|
3718
|
-
amountUnlocked: Array<
|
|
3643
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3719
3644
|
/**
|
|
3720
3645
|
* Assets created by outputs of this transaction.
|
|
3721
3646
|
*/
|
|
3722
|
-
amountCreated: Array<
|
|
3647
|
+
amountCreated: Array<AssetAmount>;
|
|
3723
3648
|
/**
|
|
3724
3649
|
* Source chain for an atomic transaction.
|
|
3725
3650
|
*/
|
|
@@ -3729,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3729
3654
|
*/
|
|
3730
3655
|
destinationChain?: string;
|
|
3731
3656
|
/**
|
|
3732
|
-
*
|
|
3657
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3733
3658
|
*/
|
|
3734
3659
|
assetCreated?: XChainAssetDetails;
|
|
3735
3660
|
/**
|
|
@@ -3779,9 +3704,6 @@ type XChainNonLinearTransaction = {
|
|
|
3779
3704
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3780
3705
|
*/
|
|
3781
3706
|
timestamp: number;
|
|
3782
|
-
/**
|
|
3783
|
-
* Type of transaction.
|
|
3784
|
-
*/
|
|
3785
3707
|
txType: XChainTransactionType;
|
|
3786
3708
|
/**
|
|
3787
3709
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3792,11 +3714,11 @@ type XChainNonLinearTransaction = {
|
|
|
3792
3714
|
/**
|
|
3793
3715
|
* Assets unlocked by inputs of this transaction.
|
|
3794
3716
|
*/
|
|
3795
|
-
amountUnlocked: Array<
|
|
3717
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3796
3718
|
/**
|
|
3797
3719
|
* Assets created by outputs of this transaction.
|
|
3798
3720
|
*/
|
|
3799
|
-
amountCreated: Array<
|
|
3721
|
+
amountCreated: Array<AssetAmount>;
|
|
3800
3722
|
/**
|
|
3801
3723
|
* Source chain for an atomic transaction.
|
|
3802
3724
|
*/
|
|
@@ -3806,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3806
3728
|
*/
|
|
3807
3729
|
destinationChain?: string;
|
|
3808
3730
|
/**
|
|
3809
|
-
*
|
|
3731
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3810
3732
|
*/
|
|
3811
3733
|
assetCreated?: XChainAssetDetails;
|
|
3812
3734
|
/**
|
|
@@ -3852,8 +3774,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3852
3774
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3853
3775
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3854
3776
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3855
|
-
UNKNOWN = "UNKNOWN",
|
|
3856
3777
|
BASE_TX = "BaseTx",
|
|
3778
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3779
|
+
UNKNOWN = "UNKNOWN",
|
|
3857
3780
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3858
3781
|
OPERATION_TX = "OperationTx"
|
|
3859
3782
|
}
|
|
@@ -3885,13 +3808,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3885
3808
|
* List latest transactions
|
|
3886
3809
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3887
3810
|
*
|
|
3888
|
-
* Transactions are filterable by addresses.
|
|
3811
|
+
* 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.
|
|
3889
3812
|
*
|
|
3890
3813
|
* 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.
|
|
3891
3814
|
* @returns any
|
|
3892
3815
|
* @throws ApiError
|
|
3893
3816
|
*/
|
|
3894
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3817
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3895
3818
|
/**
|
|
3896
3819
|
* A primary network blockchain id or alias.
|
|
3897
3820
|
*/
|
|
@@ -3916,14 +3839,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3916
3839
|
* Query param for retrieving items before a specific timestamp.
|
|
3917
3840
|
*/
|
|
3918
3841
|
endTimestamp?: number;
|
|
3919
|
-
/**
|
|
3920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3921
|
-
*/
|
|
3922
|
-
pageSize?: number;
|
|
3923
3842
|
/**
|
|
3924
3843
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3925
3844
|
*/
|
|
3926
3845
|
pageToken?: string;
|
|
3846
|
+
/**
|
|
3847
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3848
|
+
*/
|
|
3849
|
+
pageSize?: number;
|
|
3927
3850
|
/**
|
|
3928
3851
|
* 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.
|
|
3929
3852
|
*/
|
|
@@ -3935,7 +3858,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3935
3858
|
* @returns ListPChainTransactionsResponse
|
|
3936
3859
|
* @throws ApiError
|
|
3937
3860
|
*/
|
|
3938
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3861
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3939
3862
|
/**
|
|
3940
3863
|
* A primary network blockchain id or alias.
|
|
3941
3864
|
*/
|
|
@@ -3960,14 +3883,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3960
3883
|
* Query param for retrieving items before a specific timestamp.
|
|
3961
3884
|
*/
|
|
3962
3885
|
endTimestamp?: number;
|
|
3963
|
-
/**
|
|
3964
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3965
|
-
*/
|
|
3966
|
-
pageSize?: number;
|
|
3967
3886
|
/**
|
|
3968
3887
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3969
3888
|
*/
|
|
3970
3889
|
pageToken?: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3892
|
+
*/
|
|
3893
|
+
pageSize?: number;
|
|
3971
3894
|
/**
|
|
3972
3895
|
* 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.
|
|
3973
3896
|
*/
|
|
@@ -3979,7 +3902,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3979
3902
|
* @returns ListXChainTransactionsResponse
|
|
3980
3903
|
* @throws ApiError
|
|
3981
3904
|
*/
|
|
3982
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3905
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3983
3906
|
/**
|
|
3984
3907
|
* A primary network blockchain id or alias.
|
|
3985
3908
|
*/
|
|
@@ -4004,14 +3927,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4004
3927
|
* Query param for retrieving items before a specific timestamp.
|
|
4005
3928
|
*/
|
|
4006
3929
|
endTimestamp?: number;
|
|
4007
|
-
/**
|
|
4008
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4009
|
-
*/
|
|
4010
|
-
pageSize?: number;
|
|
4011
3930
|
/**
|
|
4012
3931
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4013
3932
|
*/
|
|
4014
3933
|
pageToken?: string;
|
|
3934
|
+
/**
|
|
3935
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3936
|
+
*/
|
|
3937
|
+
pageSize?: number;
|
|
4015
3938
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
4016
3939
|
}
|
|
4017
3940
|
|
|
@@ -4042,7 +3965,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4042
3965
|
* @returns any
|
|
4043
3966
|
* @throws ApiError
|
|
4044
3967
|
*/
|
|
4045
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3968
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
4046
3969
|
/**
|
|
4047
3970
|
* A primary network blockchain id or alias.
|
|
4048
3971
|
*/
|
|
@@ -4055,14 +3978,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4055
3978
|
* 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".
|
|
4056
3979
|
*/
|
|
4057
3980
|
addresses?: string;
|
|
4058
|
-
/**
|
|
4059
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4060
|
-
*/
|
|
4061
|
-
pageSize?: number;
|
|
4062
3981
|
/**
|
|
4063
3982
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4064
3983
|
*/
|
|
4065
3984
|
pageToken?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3987
|
+
*/
|
|
3988
|
+
pageSize?: number;
|
|
4066
3989
|
/**
|
|
4067
3990
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4068
3991
|
*/
|
|
@@ -4107,7 +4030,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4107
4030
|
* @returns ListXChainVerticesResponse
|
|
4108
4031
|
* @throws ApiError
|
|
4109
4032
|
*/
|
|
4110
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4033
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4111
4034
|
/**
|
|
4112
4035
|
* A primary network blockchain id or alias.
|
|
4113
4036
|
*/
|
|
@@ -4116,14 +4039,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4116
4039
|
* Either mainnet or a testnet.
|
|
4117
4040
|
*/
|
|
4118
4041
|
network: Network;
|
|
4119
|
-
/**
|
|
4120
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4121
|
-
*/
|
|
4122
|
-
pageSize?: number;
|
|
4123
4042
|
/**
|
|
4124
4043
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4125
4044
|
*/
|
|
4126
4045
|
pageToken?: string;
|
|
4046
|
+
/**
|
|
4047
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4048
|
+
*/
|
|
4049
|
+
pageSize?: number;
|
|
4127
4050
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4128
4051
|
/**
|
|
4129
4052
|
* Get vertex
|
|
@@ -4151,7 +4074,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4151
4074
|
* @returns ListXChainVerticesResponse
|
|
4152
4075
|
* @throws ApiError
|
|
4153
4076
|
*/
|
|
4154
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4077
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4155
4078
|
/**
|
|
4156
4079
|
* The height of a vertex.
|
|
4157
4080
|
*/
|
|
@@ -4164,14 +4087,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4164
4087
|
* Either mainnet or a testnet.
|
|
4165
4088
|
*/
|
|
4166
4089
|
network: Network;
|
|
4167
|
-
/**
|
|
4168
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4169
|
-
*/
|
|
4170
|
-
pageSize?: number;
|
|
4171
4090
|
/**
|
|
4172
4091
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4173
4092
|
*/
|
|
4174
4093
|
pageToken?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4096
|
+
*/
|
|
4097
|
+
pageSize?: number;
|
|
4175
4098
|
/**
|
|
4176
4099
|
* 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.
|
|
4177
4100
|
*/
|
|
@@ -4179,6 +4102,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4179
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4180
4103
|
}
|
|
4181
4104
|
|
|
4105
|
+
type RpcErrorDto = {
|
|
4106
|
+
code: number;
|
|
4107
|
+
message: string;
|
|
4108
|
+
data?: Record<string, any>;
|
|
4109
|
+
};
|
|
4110
|
+
|
|
4111
|
+
type RpcErrorResponseDto = {
|
|
4112
|
+
jsonrpc: string;
|
|
4113
|
+
id?: (string | number);
|
|
4114
|
+
error: RpcErrorDto;
|
|
4115
|
+
};
|
|
4116
|
+
|
|
4117
|
+
type RpcRequestBodyDto = {
|
|
4118
|
+
method: string;
|
|
4119
|
+
params?: Record<string, any>;
|
|
4120
|
+
id?: (string | number);
|
|
4121
|
+
jsonrpc?: string;
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
type RpcSuccessResponseDto = {
|
|
4125
|
+
jsonrpc: string;
|
|
4126
|
+
id?: (string | number);
|
|
4127
|
+
result: Record<string, any>;
|
|
4128
|
+
};
|
|
4129
|
+
|
|
4130
|
+
declare class RpcService {
|
|
4131
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4132
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4133
|
+
/**
|
|
4134
|
+
* Calls JSON-RPC method
|
|
4135
|
+
* Calls JSON-RPC method.
|
|
4136
|
+
* @returns any
|
|
4137
|
+
* @throws ApiError
|
|
4138
|
+
*/
|
|
4139
|
+
rpc({ chainId, requestBody, }: {
|
|
4140
|
+
/**
|
|
4141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4142
|
+
*/
|
|
4143
|
+
chainId: string;
|
|
4144
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4145
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4182
4148
|
type TeleporterDestinationTransaction = {
|
|
4183
4149
|
txHash: string;
|
|
4184
4150
|
timestamp: number;
|
|
@@ -4187,6 +4153,11 @@ type TeleporterDestinationTransaction = {
|
|
|
4187
4153
|
delivererAddress: string;
|
|
4188
4154
|
};
|
|
4189
4155
|
|
|
4156
|
+
type TeleporterReceipt = {
|
|
4157
|
+
receivedMessageNonce: string;
|
|
4158
|
+
relayerRewardAddress: string;
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4190
4161
|
type TeleporterRewardDetails = {
|
|
4191
4162
|
/**
|
|
4192
4163
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -4222,14 +4193,16 @@ declare namespace TeleporterRewardDetails {
|
|
|
4222
4193
|
}
|
|
4223
4194
|
|
|
4224
4195
|
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4196
|
+
messageId: string;
|
|
4197
|
+
teleporterContractAddress: string;
|
|
4225
4198
|
sourceBlockchainId: string;
|
|
4226
4199
|
destinationBlockchainId: string;
|
|
4227
|
-
|
|
4200
|
+
messageNonce: string;
|
|
4228
4201
|
from: string;
|
|
4229
4202
|
to: string;
|
|
4230
4203
|
data?: string;
|
|
4231
4204
|
messageExecuted: boolean;
|
|
4232
|
-
receipts: Array<
|
|
4205
|
+
receipts: Array<TeleporterReceipt>;
|
|
4233
4206
|
receiptDelivered: boolean;
|
|
4234
4207
|
rewardDetails: TeleporterRewardDetails;
|
|
4235
4208
|
destinationTransaction: TeleporterDestinationTransaction;
|
|
@@ -4248,14 +4221,16 @@ type TeleporterSourceTransaction = {
|
|
|
4248
4221
|
};
|
|
4249
4222
|
|
|
4250
4223
|
type DeliveredTeleporterMessage = {
|
|
4224
|
+
messageId: string;
|
|
4225
|
+
teleporterContractAddress: string;
|
|
4251
4226
|
sourceBlockchainId: string;
|
|
4252
4227
|
destinationBlockchainId: string;
|
|
4253
|
-
|
|
4228
|
+
messageNonce: string;
|
|
4254
4229
|
from: string;
|
|
4255
4230
|
to: string;
|
|
4256
4231
|
data?: string;
|
|
4257
4232
|
messageExecuted: boolean;
|
|
4258
|
-
receipts: Array<
|
|
4233
|
+
receipts: Array<TeleporterReceipt>;
|
|
4259
4234
|
receiptDelivered: boolean;
|
|
4260
4235
|
rewardDetails: TeleporterRewardDetails;
|
|
4261
4236
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4276,14 +4251,16 @@ type NextPageToken = {
|
|
|
4276
4251
|
};
|
|
4277
4252
|
|
|
4278
4253
|
type PendingTeleporterMessage = {
|
|
4254
|
+
messageId: string;
|
|
4255
|
+
teleporterContractAddress: string;
|
|
4279
4256
|
sourceBlockchainId: string;
|
|
4280
4257
|
destinationBlockchainId: string;
|
|
4281
|
-
|
|
4258
|
+
messageNonce: string;
|
|
4282
4259
|
from: string;
|
|
4283
4260
|
to: string;
|
|
4284
4261
|
data?: string;
|
|
4285
4262
|
messageExecuted: boolean;
|
|
4286
|
-
receipts: Array<
|
|
4263
|
+
receipts: Array<TeleporterReceipt>;
|
|
4287
4264
|
receiptDelivered: boolean;
|
|
4288
4265
|
rewardDetails: TeleporterRewardDetails;
|
|
4289
4266
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4300,23 +4277,15 @@ declare class TeleporterService {
|
|
|
4300
4277
|
constructor(httpRequest: BaseHttpRequest);
|
|
4301
4278
|
/**
|
|
4302
4279
|
* Get a teleporter message
|
|
4303
|
-
* Gets a teleporter message by
|
|
4280
|
+
* Gets a teleporter message by message ID.
|
|
4304
4281
|
* @returns any
|
|
4305
4282
|
* @throws ApiError
|
|
4306
4283
|
*/
|
|
4307
|
-
getTeleporterMessage({
|
|
4308
|
-
/**
|
|
4309
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4310
|
-
*/
|
|
4311
|
-
sourceBlockchainId: any;
|
|
4312
|
-
/**
|
|
4313
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4314
|
-
*/
|
|
4315
|
-
destinationBlockchainId: any;
|
|
4284
|
+
getTeleporterMessage({ messageId, }: {
|
|
4316
4285
|
/**
|
|
4317
4286
|
* The message ID of the teleporter message.
|
|
4318
4287
|
*/
|
|
4319
|
-
messageId:
|
|
4288
|
+
messageId: string;
|
|
4320
4289
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4321
4290
|
/**
|
|
4322
4291
|
* List teleporter messages
|
|
@@ -4324,32 +4293,198 @@ declare class TeleporterService {
|
|
|
4324
4293
|
* @returns any
|
|
4325
4294
|
* @throws ApiError
|
|
4326
4295
|
*/
|
|
4327
|
-
listTeleporterMessages({
|
|
4296
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4297
|
+
/**
|
|
4298
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
|
+
*/
|
|
4300
|
+
pageToken?: string;
|
|
4328
4301
|
/**
|
|
4329
4302
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4330
4303
|
*/
|
|
4331
4304
|
pageSize?: number;
|
|
4305
|
+
/**
|
|
4306
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4307
|
+
*/
|
|
4308
|
+
sourceBlockchainId?: string;
|
|
4309
|
+
/**
|
|
4310
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4311
|
+
*/
|
|
4312
|
+
destinationBlockchainId?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The address of the recipient of the teleporter message.
|
|
4315
|
+
*/
|
|
4316
|
+
to?: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The address of the sender of the teleporter message.
|
|
4319
|
+
*/
|
|
4320
|
+
from?: string;
|
|
4321
|
+
}): CancelablePromise<NextPageToken>;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
4324
|
+
type AddressActivityMetadata = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Ethereum address for the address_activity event type
|
|
4327
|
+
*/
|
|
4328
|
+
address: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4331
|
+
*/
|
|
4332
|
+
eventSignatures?: Array<string>;
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
declare enum EventType {
|
|
4336
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4339
|
+
declare enum WebhookStatusType {
|
|
4340
|
+
ACTIVE = "active",
|
|
4341
|
+
INACTIVE = "inactive"
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
type WebhookResponse = {
|
|
4345
|
+
id: string;
|
|
4346
|
+
eventType: EventType;
|
|
4347
|
+
metadata: AddressActivityMetadata;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to include traces in the webhook payload.
|
|
4350
|
+
*/
|
|
4351
|
+
includeInternalTxs?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to include logs in the webhook payload.
|
|
4354
|
+
*/
|
|
4355
|
+
includeLogs?: boolean;
|
|
4356
|
+
url: string;
|
|
4357
|
+
chainId: string;
|
|
4358
|
+
status: WebhookStatusType;
|
|
4359
|
+
createdAt: number;
|
|
4360
|
+
name: string;
|
|
4361
|
+
description: string;
|
|
4362
|
+
};
|
|
4363
|
+
|
|
4364
|
+
type ListWebhooksResponse = {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
nextPageToken?: string;
|
|
4369
|
+
webhooks: Array<WebhookResponse>;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type RegisterWebhookRequest = {
|
|
4373
|
+
url: string;
|
|
4374
|
+
chainId: string;
|
|
4375
|
+
eventType: EventType;
|
|
4376
|
+
metadata: AddressActivityMetadata;
|
|
4377
|
+
/**
|
|
4378
|
+
* Whether to include traces in the webhook payload.
|
|
4379
|
+
*/
|
|
4380
|
+
includeInternalTxs?: boolean;
|
|
4381
|
+
/**
|
|
4382
|
+
* Whether to include logs in the webhook payload.
|
|
4383
|
+
*/
|
|
4384
|
+
includeLogs?: boolean;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
type SharedSecretsResponse = {
|
|
4388
|
+
secret: string;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
type UpdateWebhookRequest = {
|
|
4392
|
+
name?: string;
|
|
4393
|
+
description?: string;
|
|
4394
|
+
url?: string;
|
|
4395
|
+
status?: WebhookStatusType;
|
|
4396
|
+
includeInternalTxs?: boolean;
|
|
4397
|
+
includeLogs?: boolean;
|
|
4398
|
+
};
|
|
4399
|
+
|
|
4400
|
+
declare enum WebhookStatus {
|
|
4401
|
+
ACTIVE = "active",
|
|
4402
|
+
INACTIVE = "inactive"
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
declare class WebhooksService {
|
|
4406
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4407
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4408
|
+
/**
|
|
4409
|
+
* Register a webhook
|
|
4410
|
+
* Registers a new webhook.
|
|
4411
|
+
* @returns WebhookResponse
|
|
4412
|
+
* @throws ApiError
|
|
4413
|
+
*/
|
|
4414
|
+
registerWebhook({ requestBody, }: {
|
|
4415
|
+
requestBody: RegisterWebhookRequest;
|
|
4416
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4417
|
+
/**
|
|
4418
|
+
* List webhooks
|
|
4419
|
+
* Lists webhooks for the user.
|
|
4420
|
+
* @returns ListWebhooksResponse
|
|
4421
|
+
* @throws ApiError
|
|
4422
|
+
*/
|
|
4423
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4332
4424
|
/**
|
|
4333
4425
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4334
4426
|
*/
|
|
4335
4427
|
pageToken?: string;
|
|
4336
4428
|
/**
|
|
4337
|
-
* The
|
|
4429
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4338
4430
|
*/
|
|
4339
|
-
|
|
4431
|
+
pageSize?: number;
|
|
4340
4432
|
/**
|
|
4341
|
-
*
|
|
4433
|
+
* 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.
|
|
4342
4434
|
*/
|
|
4343
|
-
|
|
4435
|
+
status?: WebhookStatus;
|
|
4436
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get a webhook by ID
|
|
4439
|
+
* Retrieves a webhook by ID.
|
|
4440
|
+
* @returns WebhookResponse
|
|
4441
|
+
* @throws ApiError
|
|
4442
|
+
*/
|
|
4443
|
+
getWebhook({ id, }: {
|
|
4344
4444
|
/**
|
|
4345
|
-
* The
|
|
4445
|
+
* The webhook identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
id: string;
|
|
4448
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4449
|
+
/**
|
|
4450
|
+
* Deactivate a webhook
|
|
4451
|
+
* Deactivates a webhook by ID.
|
|
4452
|
+
* @returns WebhookResponse
|
|
4453
|
+
* @throws ApiError
|
|
4454
|
+
*/
|
|
4455
|
+
deactivateWebhook({ id, }: {
|
|
4456
|
+
/**
|
|
4457
|
+
* The webhook identifier.
|
|
4346
4458
|
*/
|
|
4347
|
-
|
|
4459
|
+
id: string;
|
|
4460
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4461
|
+
/**
|
|
4462
|
+
* Update a webhook
|
|
4463
|
+
* Updates an existing webhook.
|
|
4464
|
+
* @returns WebhookResponse
|
|
4465
|
+
* @throws ApiError
|
|
4466
|
+
*/
|
|
4467
|
+
updateWebhook({ id, requestBody, }: {
|
|
4348
4468
|
/**
|
|
4349
|
-
* The
|
|
4469
|
+
* The webhook identifier.
|
|
4350
4470
|
*/
|
|
4351
|
-
|
|
4352
|
-
|
|
4471
|
+
id: string;
|
|
4472
|
+
requestBody: UpdateWebhookRequest;
|
|
4473
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4474
|
+
/**
|
|
4475
|
+
* Generate a shared secret
|
|
4476
|
+
* Generates a new shared secret.
|
|
4477
|
+
* @returns SharedSecretsResponse
|
|
4478
|
+
* @throws ApiError
|
|
4479
|
+
*/
|
|
4480
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4481
|
+
/**
|
|
4482
|
+
* Get a shared secret
|
|
4483
|
+
* Get a previously generated shared secret.
|
|
4484
|
+
* @returns SharedSecretsResponse
|
|
4485
|
+
* @throws ApiError
|
|
4486
|
+
*/
|
|
4487
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4353
4488
|
}
|
|
4354
4489
|
|
|
4355
4490
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4370,7 +4505,9 @@ declare class Glacier {
|
|
|
4370
4505
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4371
4506
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4372
4507
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4508
|
+
readonly rpc: RpcService;
|
|
4373
4509
|
readonly teleporter: TeleporterService;
|
|
4510
|
+
readonly webhooks: WebhooksService;
|
|
4374
4511
|
readonly request: BaseHttpRequest;
|
|
4375
4512
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4376
4513
|
}
|
|
@@ -4392,4 +4529,4 @@ declare class ApiError extends Error {
|
|
|
4392
4529
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4393
4530
|
}
|
|
4394
4531
|
|
|
4395
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4532
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|