@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.fabddf7.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 +1077 -479
- package/dist/index.js +462 -153
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +32 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/UnknownContract.d.ts +0 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +17 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +74 -0
- package/esm/generated/services/DefaultService.js +61 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -31
- package/esm/generated/services/PrimaryNetworkService.js +27 -17
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -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/index.d.ts +25 -1
- package/esm/index.js +20 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,130 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
type AddressActivityMetadata = {
|
|
64
|
+
/**
|
|
65
|
+
* Ethereum address for the address_activity event type
|
|
66
|
+
*/
|
|
67
|
+
address: string;
|
|
68
|
+
/**
|
|
69
|
+
* Array of hexadecimal strings of the event signatures.
|
|
70
|
+
*/
|
|
71
|
+
eventSignatures?: Array<string>;
|
|
72
|
+
};
|
|
73
|
+
|
|
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
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
type ListWebhooksResponse = {
|
|
96
|
+
/**
|
|
97
|
+
* 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.
|
|
98
|
+
*/
|
|
99
|
+
nextPageToken?: string;
|
|
100
|
+
webhooks: Array<WebhookResponse>;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
type RegisterWebhookRequest = {
|
|
104
|
+
url: string;
|
|
105
|
+
chainId: string;
|
|
106
|
+
/**
|
|
107
|
+
* The type of event for the webhook
|
|
108
|
+
*/
|
|
109
|
+
eventType: EventType;
|
|
110
|
+
metadata: AddressActivityMetadata;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
type SharedSecretsResponse = {
|
|
114
|
+
secret: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare enum WebhookStatus {
|
|
118
|
+
ACTIVE = "active",
|
|
119
|
+
INACTIVE = "inactive"
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class DefaultService {
|
|
123
|
+
readonly httpRequest: BaseHttpRequest;
|
|
124
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
125
|
+
/**
|
|
126
|
+
* @returns any
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* Register a webhook
|
|
132
|
+
* Registers a new webhook.
|
|
133
|
+
* @returns WebhookResponse
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
registerWebhook({ requestBody, }: {
|
|
137
|
+
requestBody: RegisterWebhookRequest;
|
|
138
|
+
}): CancelablePromise<WebhookResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* List webhooks
|
|
141
|
+
* Lists webhooks for the user.
|
|
142
|
+
* @returns ListWebhooksResponse
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
146
|
+
/**
|
|
147
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
148
|
+
*/
|
|
149
|
+
pageToken?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
152
|
+
*/
|
|
153
|
+
pageSize?: number;
|
|
154
|
+
/**
|
|
155
|
+
* 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.
|
|
156
|
+
*/
|
|
157
|
+
status?: WebhookStatus;
|
|
158
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Deactivate a webhook
|
|
161
|
+
* Deactivates a webhook by ID.
|
|
162
|
+
* @returns WebhookResponse
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
deactivateWebhook({ id, }: {
|
|
166
|
+
/**
|
|
167
|
+
* The webhook identifier.
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
}): CancelablePromise<WebhookResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Generate a shared secret
|
|
173
|
+
* Generates a new shared secret.
|
|
174
|
+
* @returns SharedSecretsResponse
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Get a shared secret
|
|
180
|
+
* Get a previously generated shared secret.
|
|
181
|
+
* @returns SharedSecretsResponse
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
185
|
+
}
|
|
186
|
+
|
|
63
187
|
declare enum CurrencyCode {
|
|
64
188
|
USD = "usd",
|
|
65
189
|
EUR = "eur",
|
|
@@ -335,7 +459,7 @@ declare class EvmBalancesService {
|
|
|
335
459
|
*/
|
|
336
460
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
461
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
462
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
463
|
*/
|
|
340
464
|
chainId: string;
|
|
341
465
|
/**
|
|
@@ -361,9 +485,9 @@ declare class EvmBalancesService {
|
|
|
361
485
|
* @returns ListErc20BalancesResponse
|
|
362
486
|
* @throws ApiError
|
|
363
487
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
488
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
489
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
490
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
491
|
*/
|
|
368
492
|
chainId: string;
|
|
369
493
|
/**
|
|
@@ -374,14 +498,14 @@ declare class EvmBalancesService {
|
|
|
374
498
|
* The block number, if not defined the block number will be the latest block.
|
|
375
499
|
*/
|
|
376
500
|
blockNumber?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
379
|
-
*/
|
|
380
|
-
pageSize?: number;
|
|
381
501
|
/**
|
|
382
502
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
503
|
*/
|
|
384
504
|
pageToken?: string;
|
|
505
|
+
/**
|
|
506
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
507
|
+
*/
|
|
508
|
+
pageSize?: number;
|
|
385
509
|
/**
|
|
386
510
|
* A comma separated list of contract addresses to filter by.
|
|
387
511
|
*/
|
|
@@ -399,23 +523,23 @@ declare class EvmBalancesService {
|
|
|
399
523
|
* @returns ListErc721BalancesResponse
|
|
400
524
|
* @throws ApiError
|
|
401
525
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
526
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
527
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
528
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
529
|
*/
|
|
406
530
|
chainId: string;
|
|
407
531
|
/**
|
|
408
532
|
* A wallet address.
|
|
409
533
|
*/
|
|
410
534
|
address: string;
|
|
411
|
-
/**
|
|
412
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
413
|
-
*/
|
|
414
|
-
pageSize?: number;
|
|
415
535
|
/**
|
|
416
536
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
537
|
*/
|
|
418
538
|
pageToken?: string;
|
|
539
|
+
/**
|
|
540
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
541
|
+
*/
|
|
542
|
+
pageSize?: number;
|
|
419
543
|
/**
|
|
420
544
|
* A contract addresses to filter by.
|
|
421
545
|
*/
|
|
@@ -431,9 +555,9 @@ declare class EvmBalancesService {
|
|
|
431
555
|
* @returns ListErc1155BalancesResponse
|
|
432
556
|
* @throws ApiError
|
|
433
557
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
558
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
559
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
560
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
561
|
*/
|
|
438
562
|
chainId: string;
|
|
439
563
|
/**
|
|
@@ -444,14 +568,14 @@ declare class EvmBalancesService {
|
|
|
444
568
|
* The block number, if not defined the block number will be the latest block.
|
|
445
569
|
*/
|
|
446
570
|
blockNumber?: string;
|
|
447
|
-
/**
|
|
448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
449
|
-
*/
|
|
450
|
-
pageSize?: number;
|
|
451
571
|
/**
|
|
452
572
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
573
|
*/
|
|
454
574
|
pageToken?: string;
|
|
575
|
+
/**
|
|
576
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
577
|
+
*/
|
|
578
|
+
pageSize?: number;
|
|
455
579
|
/**
|
|
456
580
|
* A contract addresses to filter by.
|
|
457
581
|
*/
|
|
@@ -465,23 +589,23 @@ declare class EvmBalancesService {
|
|
|
465
589
|
* @returns ListCollectibleBalancesResponse
|
|
466
590
|
* @throws ApiError
|
|
467
591
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
592
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
593
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
594
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
595
|
*/
|
|
472
596
|
chainId: string;
|
|
473
597
|
/**
|
|
474
598
|
* A wallet address.
|
|
475
599
|
*/
|
|
476
600
|
address: string;
|
|
477
|
-
/**
|
|
478
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
479
|
-
*/
|
|
480
|
-
pageSize?: number;
|
|
481
601
|
/**
|
|
482
602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
603
|
*/
|
|
484
604
|
pageToken?: string;
|
|
605
|
+
/**
|
|
606
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
607
|
+
*/
|
|
608
|
+
pageSize?: number;
|
|
485
609
|
/**
|
|
486
610
|
* A contract addresses to filter by.
|
|
487
611
|
*/
|
|
@@ -594,19 +718,19 @@ declare class EvmBlocksService {
|
|
|
594
718
|
* @returns ListEvmBlocksResponse
|
|
595
719
|
* @throws ApiError
|
|
596
720
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
721
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
722
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
723
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
724
|
*/
|
|
601
725
|
chainId: string;
|
|
602
|
-
/**
|
|
603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
604
|
-
*/
|
|
605
|
-
pageSize?: number;
|
|
606
726
|
/**
|
|
607
727
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
728
|
*/
|
|
609
729
|
pageToken?: string;
|
|
730
|
+
/**
|
|
731
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
732
|
+
*/
|
|
733
|
+
pageSize?: number;
|
|
610
734
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
735
|
/**
|
|
612
736
|
* Get block
|
|
@@ -616,7 +740,7 @@ declare class EvmBlocksService {
|
|
|
616
740
|
*/
|
|
617
741
|
getBlock({ chainId, blockId, }: {
|
|
618
742
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
743
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
744
|
*/
|
|
621
745
|
chainId: string;
|
|
622
746
|
/**
|
|
@@ -680,6 +804,7 @@ type GetChainResponse = {
|
|
|
680
804
|
utilityAddresses?: UtilityAddresses;
|
|
681
805
|
networkToken: NetworkToken;
|
|
682
806
|
chainLogoUri?: string;
|
|
807
|
+
private?: boolean;
|
|
683
808
|
};
|
|
684
809
|
|
|
685
810
|
type ChainInfo = {
|
|
@@ -701,6 +826,7 @@ type ChainInfo = {
|
|
|
701
826
|
utilityAddresses?: UtilityAddresses;
|
|
702
827
|
networkToken: NetworkToken;
|
|
703
828
|
chainLogoUri?: string;
|
|
829
|
+
private?: boolean;
|
|
704
830
|
};
|
|
705
831
|
|
|
706
832
|
type ListChainsResponse = {
|
|
@@ -723,22 +849,338 @@ declare class EvmChainsService {
|
|
|
723
849
|
*/
|
|
724
850
|
supportedChains({ network, }: {
|
|
725
851
|
/**
|
|
726
|
-
* mainnet or testnet.
|
|
852
|
+
* mainnet or testnet.
|
|
853
|
+
*/
|
|
854
|
+
network?: NetworkType;
|
|
855
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
856
|
+
/**
|
|
857
|
+
* Get chain information
|
|
858
|
+
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
859
|
+
* @returns GetChainResponse
|
|
860
|
+
* @throws ApiError
|
|
861
|
+
*/
|
|
862
|
+
getChainInfo({ chainId, }: {
|
|
863
|
+
/**
|
|
864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
865
|
+
*/
|
|
866
|
+
chainId: string;
|
|
867
|
+
}): CancelablePromise<GetChainResponse>;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
type ImageAsset = {
|
|
871
|
+
assetId?: string;
|
|
872
|
+
/**
|
|
873
|
+
* OUTPUT ONLY
|
|
874
|
+
*/
|
|
875
|
+
imageUri?: string;
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
type PricingProviders = {
|
|
879
|
+
coingeckoCoinId?: string;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
declare enum ResourceLinkType {
|
|
883
|
+
BLOG = "Blog",
|
|
884
|
+
COIN_GECKO = "CoinGecko",
|
|
885
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
886
|
+
DISCORD = "Discord",
|
|
887
|
+
DOCUMENTATION = "Documentation",
|
|
888
|
+
FACEBOOK = "Facebook",
|
|
889
|
+
GITHUB = "Github",
|
|
890
|
+
INSTAGRAM = "Instagram",
|
|
891
|
+
LINKED_IN = "LinkedIn",
|
|
892
|
+
MEDIUM = "Medium",
|
|
893
|
+
REDDIT = "Reddit",
|
|
894
|
+
SUPPORT = "Support",
|
|
895
|
+
TELEGRAM = "Telegram",
|
|
896
|
+
TIK_TOK = "TikTok",
|
|
897
|
+
TWITTER = "Twitter",
|
|
898
|
+
WEBSITE = "Website",
|
|
899
|
+
WHITEPAPER = "Whitepaper",
|
|
900
|
+
YOUTUBE = "Youtube"
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
type ResourceLink = {
|
|
904
|
+
type: ResourceLinkType;
|
|
905
|
+
url: string;
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
type ContractSubmissionErc1155 = {
|
|
909
|
+
description?: string;
|
|
910
|
+
officialSite?: string;
|
|
911
|
+
email?: string;
|
|
912
|
+
logoAsset?: ImageAsset;
|
|
913
|
+
bannerAsset?: ImageAsset;
|
|
914
|
+
color?: string;
|
|
915
|
+
resourceLinks?: Array<ResourceLink>;
|
|
916
|
+
tags?: Array<string>;
|
|
917
|
+
/**
|
|
918
|
+
* The contract name.
|
|
919
|
+
*/
|
|
920
|
+
name: string;
|
|
921
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
922
|
+
/**
|
|
923
|
+
* The contract symbol.
|
|
924
|
+
*/
|
|
925
|
+
symbol: string;
|
|
926
|
+
pricingProviders?: PricingProviders;
|
|
927
|
+
};
|
|
928
|
+
declare namespace ContractSubmissionErc1155 {
|
|
929
|
+
enum ercType {
|
|
930
|
+
ERC_1155 = "ERC-1155"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
type ContractSubmissionErc20 = {
|
|
935
|
+
description?: string;
|
|
936
|
+
officialSite?: string;
|
|
937
|
+
email?: string;
|
|
938
|
+
logoAsset?: ImageAsset;
|
|
939
|
+
bannerAsset?: ImageAsset;
|
|
940
|
+
color?: string;
|
|
941
|
+
resourceLinks?: Array<ResourceLink>;
|
|
942
|
+
tags?: Array<string>;
|
|
943
|
+
/**
|
|
944
|
+
* The contract name.
|
|
945
|
+
*/
|
|
946
|
+
name: string;
|
|
947
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
948
|
+
/**
|
|
949
|
+
* The contract symbol.
|
|
950
|
+
*/
|
|
951
|
+
symbol: string;
|
|
952
|
+
pricingProviders?: PricingProviders;
|
|
953
|
+
};
|
|
954
|
+
declare namespace ContractSubmissionErc20 {
|
|
955
|
+
enum ercType {
|
|
956
|
+
ERC_20 = "ERC-20"
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
type ContractSubmissionErc721 = {
|
|
961
|
+
description?: string;
|
|
962
|
+
officialSite?: string;
|
|
963
|
+
email?: string;
|
|
964
|
+
logoAsset?: ImageAsset;
|
|
965
|
+
bannerAsset?: ImageAsset;
|
|
966
|
+
color?: string;
|
|
967
|
+
resourceLinks?: Array<ResourceLink>;
|
|
968
|
+
tags?: Array<string>;
|
|
969
|
+
/**
|
|
970
|
+
* The contract name.
|
|
971
|
+
*/
|
|
972
|
+
name: string;
|
|
973
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
974
|
+
/**
|
|
975
|
+
* The contract symbol.
|
|
976
|
+
*/
|
|
977
|
+
symbol: string;
|
|
978
|
+
};
|
|
979
|
+
declare namespace ContractSubmissionErc721 {
|
|
980
|
+
enum ercType {
|
|
981
|
+
ERC_721 = "ERC-721"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
type ContractSubmissionUnknown = {
|
|
986
|
+
description?: string;
|
|
987
|
+
officialSite?: string;
|
|
988
|
+
email?: string;
|
|
989
|
+
logoAsset?: ImageAsset;
|
|
990
|
+
bannerAsset?: ImageAsset;
|
|
991
|
+
color?: string;
|
|
992
|
+
resourceLinks?: Array<ResourceLink>;
|
|
993
|
+
tags?: Array<string>;
|
|
994
|
+
/**
|
|
995
|
+
* The contract name.
|
|
996
|
+
*/
|
|
997
|
+
name: string;
|
|
998
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
999
|
+
};
|
|
1000
|
+
declare namespace ContractSubmissionUnknown {
|
|
1001
|
+
enum ercType {
|
|
1002
|
+
UNKNOWN = "UNKNOWN"
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
type ContractSubmissionBody = {
|
|
1007
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
type ContractDeploymentDetails = {
|
|
1011
|
+
txHash: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1014
|
+
*/
|
|
1015
|
+
deployerAddress: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1018
|
+
*/
|
|
1019
|
+
deployerContractAddress?: string;
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
type Erc1155Contract = {
|
|
1023
|
+
/**
|
|
1024
|
+
* The contract name.
|
|
1025
|
+
*/
|
|
1026
|
+
name?: string;
|
|
1027
|
+
description?: string;
|
|
1028
|
+
officialSite?: string;
|
|
1029
|
+
email?: string;
|
|
1030
|
+
logoAsset?: ImageAsset;
|
|
1031
|
+
bannerAsset?: ImageAsset;
|
|
1032
|
+
color?: string;
|
|
1033
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1034
|
+
tags?: Array<string>;
|
|
1035
|
+
/**
|
|
1036
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1037
|
+
*/
|
|
1038
|
+
address: string;
|
|
1039
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1040
|
+
ercType: Erc1155Contract.ercType;
|
|
1041
|
+
/**
|
|
1042
|
+
* The contract symbol.
|
|
1043
|
+
*/
|
|
1044
|
+
symbol?: string;
|
|
1045
|
+
pricingProviders?: PricingProviders;
|
|
1046
|
+
};
|
|
1047
|
+
declare namespace Erc1155Contract {
|
|
1048
|
+
enum ercType {
|
|
1049
|
+
ERC_1155 = "ERC-1155"
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
type Erc20Contract = {
|
|
1054
|
+
/**
|
|
1055
|
+
* The contract name.
|
|
1056
|
+
*/
|
|
1057
|
+
name?: string;
|
|
1058
|
+
description?: string;
|
|
1059
|
+
officialSite?: string;
|
|
1060
|
+
email?: string;
|
|
1061
|
+
logoAsset?: ImageAsset;
|
|
1062
|
+
bannerAsset?: ImageAsset;
|
|
1063
|
+
color?: string;
|
|
1064
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1065
|
+
tags?: Array<string>;
|
|
1066
|
+
/**
|
|
1067
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1068
|
+
*/
|
|
1069
|
+
address: string;
|
|
1070
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1071
|
+
ercType: Erc20Contract.ercType;
|
|
1072
|
+
/**
|
|
1073
|
+
* The contract symbol.
|
|
1074
|
+
*/
|
|
1075
|
+
symbol?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1078
|
+
*/
|
|
1079
|
+
decimals: number;
|
|
1080
|
+
pricingProviders?: PricingProviders;
|
|
1081
|
+
};
|
|
1082
|
+
declare namespace Erc20Contract {
|
|
1083
|
+
enum ercType {
|
|
1084
|
+
ERC_20 = "ERC-20"
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
type Erc721Contract = {
|
|
1089
|
+
/**
|
|
1090
|
+
* The contract name.
|
|
1091
|
+
*/
|
|
1092
|
+
name?: string;
|
|
1093
|
+
description?: string;
|
|
1094
|
+
officialSite?: string;
|
|
1095
|
+
email?: string;
|
|
1096
|
+
logoAsset?: ImageAsset;
|
|
1097
|
+
bannerAsset?: ImageAsset;
|
|
1098
|
+
color?: string;
|
|
1099
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1100
|
+
tags?: Array<string>;
|
|
1101
|
+
/**
|
|
1102
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1103
|
+
*/
|
|
1104
|
+
address: string;
|
|
1105
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1106
|
+
ercType: Erc721Contract.ercType;
|
|
1107
|
+
/**
|
|
1108
|
+
* The contract symbol.
|
|
1109
|
+
*/
|
|
1110
|
+
symbol?: string;
|
|
1111
|
+
};
|
|
1112
|
+
declare namespace Erc721Contract {
|
|
1113
|
+
enum ercType {
|
|
1114
|
+
ERC_721 = "ERC-721"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
type UnknownContract = {
|
|
1119
|
+
/**
|
|
1120
|
+
* The contract name.
|
|
1121
|
+
*/
|
|
1122
|
+
name?: string;
|
|
1123
|
+
description?: string;
|
|
1124
|
+
officialSite?: string;
|
|
1125
|
+
email?: string;
|
|
1126
|
+
logoAsset?: ImageAsset;
|
|
1127
|
+
bannerAsset?: ImageAsset;
|
|
1128
|
+
color?: string;
|
|
1129
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
+
tags?: Array<string>;
|
|
1131
|
+
/**
|
|
1132
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
+
*/
|
|
1134
|
+
address: string;
|
|
1135
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
+
ercType: UnknownContract.ercType;
|
|
1137
|
+
};
|
|
1138
|
+
declare namespace UnknownContract {
|
|
1139
|
+
enum ercType {
|
|
1140
|
+
UNKNOWN = "UNKNOWN"
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
type UpdateContractResponse = {
|
|
1145
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
declare class EvmContractsService {
|
|
1149
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1150
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1151
|
+
/**
|
|
1152
|
+
* Get contract metadata
|
|
1153
|
+
* Gets metadata about the contract at the given address.
|
|
1154
|
+
* @returns any
|
|
1155
|
+
* @throws ApiError
|
|
1156
|
+
*/
|
|
1157
|
+
getContractMetadata({ chainId, address, }: {
|
|
1158
|
+
/**
|
|
1159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1160
|
+
*/
|
|
1161
|
+
chainId: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Contract address on the relevant chain.
|
|
727
1164
|
*/
|
|
728
|
-
|
|
729
|
-
}): CancelablePromise<
|
|
1165
|
+
address: string;
|
|
1166
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
730
1167
|
/**
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
* @returns
|
|
1168
|
+
* Update contract information
|
|
1169
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1170
|
+
* @returns UpdateContractResponse
|
|
734
1171
|
* @throws ApiError
|
|
735
1172
|
*/
|
|
736
|
-
|
|
1173
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
737
1174
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1175
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
1176
|
*/
|
|
740
1177
|
chainId: string;
|
|
741
|
-
|
|
1178
|
+
/**
|
|
1179
|
+
* Contract address on the relevant chain.
|
|
1180
|
+
*/
|
|
1181
|
+
address: string;
|
|
1182
|
+
requestBody: ContractSubmissionBody;
|
|
1183
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
742
1184
|
}
|
|
743
1185
|
|
|
744
1186
|
type Erc1155Token = {
|
|
@@ -999,185 +1441,12 @@ type GetTransactionResponse = {
|
|
|
999
1441
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1442
|
};
|
|
1001
1443
|
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
/**
|
|
1016
|
-
* INPUT ONLY
|
|
1017
|
-
*/
|
|
1018
|
-
assetId?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* OUTPUT ONLY
|
|
1021
|
-
*/
|
|
1022
|
-
imageUri?: string;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
declare enum ResourceLinkType {
|
|
1026
|
-
BLOG = "Blog",
|
|
1027
|
-
COIN_GECKO = "CoinGecko",
|
|
1028
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1029
|
-
DISCORD = "Discord",
|
|
1030
|
-
DOCUMENTATION = "Documentation",
|
|
1031
|
-
FACEBOOK = "Facebook",
|
|
1032
|
-
GITHUB = "Github",
|
|
1033
|
-
INSTAGRAM = "Instagram",
|
|
1034
|
-
LINKED_IN = "LinkedIn",
|
|
1035
|
-
MEDIUM = "Medium",
|
|
1036
|
-
REDDIT = "Reddit",
|
|
1037
|
-
SUPPORT = "Support",
|
|
1038
|
-
TELEGRAM = "Telegram",
|
|
1039
|
-
TIK_TOK = "TikTok",
|
|
1040
|
-
TWITTER = "Twitter",
|
|
1041
|
-
WEBSITE = "Website",
|
|
1042
|
-
WHITEPAPER = "Whitepaper",
|
|
1043
|
-
YOUTUBE = "Youtube"
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
type ResourceLink = {
|
|
1047
|
-
type: ResourceLinkType;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
type Erc1155Contract = {
|
|
1052
|
-
/**
|
|
1053
|
-
* The contract name.
|
|
1054
|
-
*/
|
|
1055
|
-
name?: string;
|
|
1056
|
-
description?: string;
|
|
1057
|
-
officialSite?: string;
|
|
1058
|
-
email?: string;
|
|
1059
|
-
logoAsset?: ImageAsset;
|
|
1060
|
-
bannerAsset?: ImageAsset;
|
|
1061
|
-
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1083
|
-
/**
|
|
1084
|
-
* The contract name.
|
|
1085
|
-
*/
|
|
1086
|
-
name?: string;
|
|
1087
|
-
description?: string;
|
|
1088
|
-
officialSite?: string;
|
|
1089
|
-
email?: string;
|
|
1090
|
-
logoAsset?: ImageAsset;
|
|
1091
|
-
bannerAsset?: ImageAsset;
|
|
1092
|
-
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1096
|
-
/**
|
|
1097
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1098
|
-
*/
|
|
1099
|
-
address: string;
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1102
|
-
/**
|
|
1103
|
-
* The contract symbol.
|
|
1104
|
-
*/
|
|
1105
|
-
symbol?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
|
-
*/
|
|
1109
|
-
decimals: number;
|
|
1110
|
-
};
|
|
1111
|
-
declare namespace Erc20Contract {
|
|
1112
|
-
enum ercType {
|
|
1113
|
-
ERC_20 = "ERC-20"
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
type Erc721Contract = {
|
|
1118
|
-
/**
|
|
1119
|
-
* The contract name.
|
|
1120
|
-
*/
|
|
1121
|
-
name?: string;
|
|
1122
|
-
description?: string;
|
|
1123
|
-
officialSite?: string;
|
|
1124
|
-
email?: string;
|
|
1125
|
-
logoAsset?: ImageAsset;
|
|
1126
|
-
bannerAsset?: ImageAsset;
|
|
1127
|
-
color?: string;
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
-
*/
|
|
1134
|
-
address: string;
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1137
|
-
/**
|
|
1138
|
-
* The contract symbol.
|
|
1139
|
-
*/
|
|
1140
|
-
symbol?: string;
|
|
1141
|
-
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type UnknownContract = {
|
|
1149
|
-
/**
|
|
1150
|
-
* The contract name.
|
|
1151
|
-
*/
|
|
1152
|
-
name?: string;
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1162
|
-
/**
|
|
1163
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1164
|
-
*/
|
|
1165
|
-
address: string;
|
|
1166
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1167
|
-
ercType: UnknownContract.ercType;
|
|
1168
|
-
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1444
|
type ListContractsResponse = {
|
|
1176
1445
|
/**
|
|
1177
1446
|
* 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.
|
|
1178
1447
|
*/
|
|
1179
1448
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1449
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1450
|
};
|
|
1182
1451
|
|
|
1183
1452
|
type Erc1155Transfer = {
|
|
@@ -1431,7 +1700,7 @@ declare class EvmTransactionsService {
|
|
|
1431
1700
|
*/
|
|
1432
1701
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1433
1702
|
/**
|
|
1434
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1703
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1435
1704
|
*/
|
|
1436
1705
|
chainId: string;
|
|
1437
1706
|
/**
|
|
@@ -1449,23 +1718,23 @@ declare class EvmTransactionsService {
|
|
|
1449
1718
|
* @returns ListContractsResponse
|
|
1450
1719
|
* @throws ApiError
|
|
1451
1720
|
*/
|
|
1452
|
-
listContractDeployments({ chainId, address,
|
|
1721
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1453
1722
|
/**
|
|
1454
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1723
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1455
1724
|
*/
|
|
1456
1725
|
chainId: string;
|
|
1457
1726
|
/**
|
|
1458
1727
|
* A wallet address.
|
|
1459
1728
|
*/
|
|
1460
1729
|
address: string;
|
|
1461
|
-
/**
|
|
1462
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1463
|
-
*/
|
|
1464
|
-
pageSize?: number;
|
|
1465
1730
|
/**
|
|
1466
1731
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1467
1732
|
*/
|
|
1468
1733
|
pageToken?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1736
|
+
*/
|
|
1737
|
+
pageSize?: number;
|
|
1469
1738
|
}): CancelablePromise<ListContractsResponse>;
|
|
1470
1739
|
/**
|
|
1471
1740
|
* List ERC transfers
|
|
@@ -1473,25 +1742,31 @@ declare class EvmTransactionsService {
|
|
|
1473
1742
|
* @returns ListTransfersResponse
|
|
1474
1743
|
* @throws ApiError
|
|
1475
1744
|
*/
|
|
1476
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1745
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1477
1746
|
/**
|
|
1478
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1747
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1479
1748
|
*/
|
|
1480
1749
|
chainId: string;
|
|
1481
1750
|
/**
|
|
1482
1751
|
* A wallet address.
|
|
1483
1752
|
*/
|
|
1484
1753
|
address: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* 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.
|
|
1756
|
+
*/
|
|
1485
1757
|
startBlock?: number;
|
|
1486
|
-
endBlock?: number;
|
|
1487
1758
|
/**
|
|
1488
|
-
* The
|
|
1759
|
+
* 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.
|
|
1489
1760
|
*/
|
|
1490
|
-
|
|
1761
|
+
endBlock?: number;
|
|
1491
1762
|
/**
|
|
1492
1763
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1493
1764
|
*/
|
|
1494
1765
|
pageToken?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1768
|
+
*/
|
|
1769
|
+
pageSize?: number;
|
|
1495
1770
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1496
1771
|
/**
|
|
1497
1772
|
* List transactions
|
|
@@ -1501,24 +1776,30 @@ declare class EvmTransactionsService {
|
|
|
1501
1776
|
* @returns ListTransactionDetailsResponse
|
|
1502
1777
|
* @throws ApiError
|
|
1503
1778
|
*/
|
|
1504
|
-
listTransactions({ chainId, address,
|
|
1779
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1505
1780
|
/**
|
|
1506
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1781
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1507
1782
|
*/
|
|
1508
1783
|
chainId: string;
|
|
1509
1784
|
/**
|
|
1510
1785
|
* A wallet address.
|
|
1511
1786
|
*/
|
|
1512
1787
|
address: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1790
|
+
*/
|
|
1791
|
+
pageToken?: string;
|
|
1513
1792
|
/**
|
|
1514
1793
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1515
1794
|
*/
|
|
1516
1795
|
pageSize?: number;
|
|
1517
1796
|
/**
|
|
1518
|
-
*
|
|
1797
|
+
* 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.
|
|
1519
1798
|
*/
|
|
1520
|
-
pageToken?: string;
|
|
1521
1799
|
startBlock?: number;
|
|
1800
|
+
/**
|
|
1801
|
+
* 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.
|
|
1802
|
+
*/
|
|
1522
1803
|
endBlock?: number;
|
|
1523
1804
|
/**
|
|
1524
1805
|
* 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.
|
|
@@ -1531,25 +1812,31 @@ declare class EvmTransactionsService {
|
|
|
1531
1812
|
* @returns ListNativeTransactionsResponse
|
|
1532
1813
|
* @throws ApiError
|
|
1533
1814
|
*/
|
|
1534
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1815
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1535
1816
|
/**
|
|
1536
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1817
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1537
1818
|
*/
|
|
1538
1819
|
chainId: string;
|
|
1539
1820
|
/**
|
|
1540
1821
|
* A wallet address.
|
|
1541
1822
|
*/
|
|
1542
1823
|
address: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1826
|
+
*/
|
|
1543
1827
|
startBlock?: number;
|
|
1544
|
-
endBlock?: number;
|
|
1545
1828
|
/**
|
|
1546
|
-
* The
|
|
1829
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1547
1830
|
*/
|
|
1548
|
-
|
|
1831
|
+
endBlock?: number;
|
|
1549
1832
|
/**
|
|
1550
1833
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1551
1834
|
*/
|
|
1552
1835
|
pageToken?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1838
|
+
*/
|
|
1839
|
+
pageSize?: number;
|
|
1553
1840
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1554
1841
|
/**
|
|
1555
1842
|
* List ERC-20 transfers
|
|
@@ -1557,25 +1844,31 @@ declare class EvmTransactionsService {
|
|
|
1557
1844
|
* @returns ListErc20TransactionsResponse
|
|
1558
1845
|
* @throws ApiError
|
|
1559
1846
|
*/
|
|
1560
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1847
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1561
1848
|
/**
|
|
1562
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1849
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1563
1850
|
*/
|
|
1564
1851
|
chainId: string;
|
|
1565
1852
|
/**
|
|
1566
1853
|
* A wallet address.
|
|
1567
1854
|
*/
|
|
1568
1855
|
address: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* 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.
|
|
1858
|
+
*/
|
|
1569
1859
|
startBlock?: number;
|
|
1570
|
-
endBlock?: number;
|
|
1571
1860
|
/**
|
|
1572
|
-
* The
|
|
1861
|
+
* 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.
|
|
1573
1862
|
*/
|
|
1574
|
-
|
|
1863
|
+
endBlock?: number;
|
|
1575
1864
|
/**
|
|
1576
1865
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1577
1866
|
*/
|
|
1578
1867
|
pageToken?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1870
|
+
*/
|
|
1871
|
+
pageSize?: number;
|
|
1579
1872
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1580
1873
|
/**
|
|
1581
1874
|
* List ERC-721 transfers
|
|
@@ -1583,25 +1876,31 @@ declare class EvmTransactionsService {
|
|
|
1583
1876
|
* @returns ListErc721TransactionsResponse
|
|
1584
1877
|
* @throws ApiError
|
|
1585
1878
|
*/
|
|
1586
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1879
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1587
1880
|
/**
|
|
1588
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1881
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1589
1882
|
*/
|
|
1590
1883
|
chainId: string;
|
|
1591
1884
|
/**
|
|
1592
1885
|
* A wallet address.
|
|
1593
1886
|
*/
|
|
1594
1887
|
address: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* 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.
|
|
1890
|
+
*/
|
|
1595
1891
|
startBlock?: number;
|
|
1596
|
-
endBlock?: number;
|
|
1597
1892
|
/**
|
|
1598
|
-
* The
|
|
1893
|
+
* 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.
|
|
1599
1894
|
*/
|
|
1600
|
-
|
|
1895
|
+
endBlock?: number;
|
|
1601
1896
|
/**
|
|
1602
1897
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1603
1898
|
*/
|
|
1604
1899
|
pageToken?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1902
|
+
*/
|
|
1903
|
+
pageSize?: number;
|
|
1605
1904
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1606
1905
|
/**
|
|
1607
1906
|
* List ERC-1155 transfers
|
|
@@ -1609,25 +1908,31 @@ declare class EvmTransactionsService {
|
|
|
1609
1908
|
* @returns ListErc1155TransactionsResponse
|
|
1610
1909
|
* @throws ApiError
|
|
1611
1910
|
*/
|
|
1612
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1911
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1613
1912
|
/**
|
|
1614
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1913
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1615
1914
|
*/
|
|
1616
1915
|
chainId: string;
|
|
1617
1916
|
/**
|
|
1618
1917
|
* A wallet address.
|
|
1619
1918
|
*/
|
|
1620
1919
|
address: string;
|
|
1920
|
+
/**
|
|
1921
|
+
* 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.
|
|
1922
|
+
*/
|
|
1621
1923
|
startBlock?: number;
|
|
1622
|
-
endBlock?: number;
|
|
1623
1924
|
/**
|
|
1624
|
-
* The
|
|
1925
|
+
* 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.
|
|
1625
1926
|
*/
|
|
1626
|
-
|
|
1927
|
+
endBlock?: number;
|
|
1627
1928
|
/**
|
|
1628
1929
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1629
1930
|
*/
|
|
1630
1931
|
pageToken?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1934
|
+
*/
|
|
1935
|
+
pageSize?: number;
|
|
1631
1936
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1632
1937
|
/**
|
|
1633
1938
|
* List internal transactions
|
|
@@ -1637,25 +1942,31 @@ declare class EvmTransactionsService {
|
|
|
1637
1942
|
* @returns ListInternalTransactionsResponse
|
|
1638
1943
|
* @throws ApiError
|
|
1639
1944
|
*/
|
|
1640
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1945
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1641
1946
|
/**
|
|
1642
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1947
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1643
1948
|
*/
|
|
1644
1949
|
chainId: string;
|
|
1645
1950
|
/**
|
|
1646
1951
|
* A wallet address.
|
|
1647
1952
|
*/
|
|
1648
|
-
address: string;
|
|
1953
|
+
address: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* 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.
|
|
1956
|
+
*/
|
|
1649
1957
|
startBlock?: number;
|
|
1650
|
-
endBlock?: number;
|
|
1651
1958
|
/**
|
|
1652
|
-
* The
|
|
1959
|
+
* 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.
|
|
1653
1960
|
*/
|
|
1654
|
-
|
|
1961
|
+
endBlock?: number;
|
|
1655
1962
|
/**
|
|
1656
1963
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1657
1964
|
*/
|
|
1658
1965
|
pageToken?: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1968
|
+
*/
|
|
1969
|
+
pageSize?: number;
|
|
1659
1970
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1660
1971
|
/**
|
|
1661
1972
|
* Get transaction
|
|
@@ -1665,7 +1976,7 @@ declare class EvmTransactionsService {
|
|
|
1665
1976
|
*/
|
|
1666
1977
|
getTransaction({ chainId, txHash, }: {
|
|
1667
1978
|
/**
|
|
1668
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1979
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1669
1980
|
*/
|
|
1670
1981
|
chainId: string;
|
|
1671
1982
|
/**
|
|
@@ -1681,7 +1992,7 @@ declare class EvmTransactionsService {
|
|
|
1681
1992
|
*/
|
|
1682
1993
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1683
1994
|
/**
|
|
1684
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1995
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1685
1996
|
*/
|
|
1686
1997
|
chainId: string;
|
|
1687
1998
|
/**
|
|
@@ -1695,19 +2006,19 @@ declare class EvmTransactionsService {
|
|
|
1695
2006
|
* @returns ListNativeTransactionsResponse
|
|
1696
2007
|
* @throws ApiError
|
|
1697
2008
|
*/
|
|
1698
|
-
listLatestTransactions({ chainId,
|
|
2009
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1699
2010
|
/**
|
|
1700
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2011
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1701
2012
|
*/
|
|
1702
2013
|
chainId: string;
|
|
1703
|
-
/**
|
|
1704
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1705
|
-
*/
|
|
1706
|
-
pageSize?: number;
|
|
1707
2014
|
/**
|
|
1708
2015
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1709
2016
|
*/
|
|
1710
2017
|
pageToken?: string;
|
|
2018
|
+
/**
|
|
2019
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2020
|
+
*/
|
|
2021
|
+
pageSize?: number;
|
|
1711
2022
|
/**
|
|
1712
2023
|
* A status filter for listed transactions.
|
|
1713
2024
|
*/
|
|
@@ -1731,6 +2042,83 @@ declare class HealthCheckService {
|
|
|
1731
2042
|
}>;
|
|
1732
2043
|
}
|
|
1733
2044
|
|
|
2045
|
+
type ListNftTokens = {
|
|
2046
|
+
/**
|
|
2047
|
+
* 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.
|
|
2048
|
+
*/
|
|
2049
|
+
nextPageToken?: string;
|
|
2050
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
declare class NfTsService {
|
|
2054
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2055
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2056
|
+
/**
|
|
2057
|
+
* Reindex NFT metadata
|
|
2058
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2059
|
+
* @returns any
|
|
2060
|
+
* @throws ApiError
|
|
2061
|
+
*/
|
|
2062
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2063
|
+
/**
|
|
2064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2065
|
+
*/
|
|
2066
|
+
chainId: string;
|
|
2067
|
+
/**
|
|
2068
|
+
* Contract address on the relevant chain.
|
|
2069
|
+
*/
|
|
2070
|
+
address: string;
|
|
2071
|
+
/**
|
|
2072
|
+
* TokenId on the contract
|
|
2073
|
+
*/
|
|
2074
|
+
tokenId: string;
|
|
2075
|
+
}): CancelablePromise<any>;
|
|
2076
|
+
/**
|
|
2077
|
+
* List tokens
|
|
2078
|
+
* Lists tokens for an NFT contract.
|
|
2079
|
+
* @returns ListNftTokens
|
|
2080
|
+
* @throws ApiError
|
|
2081
|
+
*/
|
|
2082
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2083
|
+
/**
|
|
2084
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2085
|
+
*/
|
|
2086
|
+
chainId: string;
|
|
2087
|
+
/**
|
|
2088
|
+
* Contract address on the relevant chain.
|
|
2089
|
+
*/
|
|
2090
|
+
address: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2093
|
+
*/
|
|
2094
|
+
pageToken?: string;
|
|
2095
|
+
/**
|
|
2096
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2097
|
+
*/
|
|
2098
|
+
pageSize?: number;
|
|
2099
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2100
|
+
/**
|
|
2101
|
+
* Get token details
|
|
2102
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2103
|
+
* @returns any
|
|
2104
|
+
* @throws ApiError
|
|
2105
|
+
*/
|
|
2106
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2107
|
+
/**
|
|
2108
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2109
|
+
*/
|
|
2110
|
+
chainId: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* Contract address on the relevant chain.
|
|
2113
|
+
*/
|
|
2114
|
+
address: string;
|
|
2115
|
+
/**
|
|
2116
|
+
* TokenId on the contract
|
|
2117
|
+
*/
|
|
2118
|
+
tokenId: string;
|
|
2119
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
1734
2122
|
type EvmNetworkOptions = {
|
|
1735
2123
|
addresses: Array<string>;
|
|
1736
2124
|
includeChains: Array<string>;
|
|
@@ -1825,17 +2213,6 @@ type OperationStatusResponse = {
|
|
|
1825
2213
|
declare class OperationsService {
|
|
1826
2214
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2215
|
constructor(httpRequest: BaseHttpRequest);
|
|
1828
|
-
/**
|
|
1829
|
-
* Create transaction export operation
|
|
1830
|
-
* Trigger a transaction export operation with given parameters.
|
|
1831
|
-
*
|
|
1832
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
1833
|
-
* @returns OperationStatusResponse
|
|
1834
|
-
* @throws ApiError
|
|
1835
|
-
*/
|
|
1836
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1837
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1838
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1839
2216
|
/**
|
|
1840
2217
|
* Get operation
|
|
1841
2218
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2225,17 @@ declare class OperationsService {
|
|
|
1848
2225
|
*/
|
|
1849
2226
|
operationId: string;
|
|
1850
2227
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Create transaction export operation
|
|
2230
|
+
* Trigger a transaction export operation with given parameters.
|
|
2231
|
+
*
|
|
2232
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2233
|
+
* @returns OperationStatusResponse
|
|
2234
|
+
* @throws ApiError
|
|
2235
|
+
*/
|
|
2236
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2237
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2238
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1851
2239
|
}
|
|
1852
2240
|
|
|
1853
2241
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2304,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2304
|
|
|
1917
2305
|
type ActiveDelegatorDetails = {
|
|
1918
2306
|
txHash: string;
|
|
2307
|
+
nodeId: string;
|
|
1919
2308
|
rewardAddresses: Array<string>;
|
|
1920
2309
|
amountDelegated: string;
|
|
1921
2310
|
delegationFee: string;
|
|
1922
2311
|
startTimestamp: number;
|
|
1923
2312
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2313
|
estimatedGrossReward: string;
|
|
1926
2314
|
estimatedNetReward: string;
|
|
2315
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2316
|
};
|
|
2317
|
+
declare namespace ActiveDelegatorDetails {
|
|
2318
|
+
enum delegationStatus {
|
|
2319
|
+
ACTIVE = "active"
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
1928
2322
|
|
|
1929
2323
|
type CompletedDelegatorDetails = {
|
|
1930
2324
|
txHash: string;
|
|
2325
|
+
nodeId: string;
|
|
1931
2326
|
rewardAddresses: Array<string>;
|
|
1932
2327
|
amountDelegated: string;
|
|
1933
2328
|
delegationFee: string;
|
|
1934
2329
|
startTimestamp: number;
|
|
1935
2330
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2331
|
grossReward: string;
|
|
1938
2332
|
netReward: string;
|
|
2333
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2334
|
};
|
|
2335
|
+
declare namespace CompletedDelegatorDetails {
|
|
2336
|
+
enum delegationStatus {
|
|
2337
|
+
COMPLETED = "completed"
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
1940
2340
|
|
|
1941
2341
|
type PendingDelegatorDetails = {
|
|
1942
2342
|
txHash: string;
|
|
2343
|
+
nodeId: string;
|
|
1943
2344
|
rewardAddresses: Array<string>;
|
|
1944
2345
|
amountDelegated: string;
|
|
1945
2346
|
delegationFee: string;
|
|
1946
2347
|
startTimestamp: number;
|
|
1947
2348
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2349
|
estimatedGrossReward: string;
|
|
1950
2350
|
estimatedNetReward: string;
|
|
2351
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2352
|
};
|
|
2353
|
+
declare namespace PendingDelegatorDetails {
|
|
2354
|
+
enum delegationStatus {
|
|
2355
|
+
PENDING = "pending"
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
1952
2358
|
|
|
1953
2359
|
type ListDelegatorDetailsResponse = {
|
|
1954
2360
|
/**
|
|
@@ -1986,49 +2392,104 @@ type ListSubnetsResponse = {
|
|
|
1986
2392
|
type Rewards = {
|
|
1987
2393
|
validationRewardAmount: string;
|
|
1988
2394
|
delegationRewardAmount: string;
|
|
2395
|
+
rewardAddresses?: Array<string>;
|
|
2396
|
+
rewardTxHash?: string;
|
|
1989
2397
|
};
|
|
1990
2398
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2399
|
+
type ValidatorHealthDetails = {
|
|
2400
|
+
/**
|
|
2401
|
+
* Percent of requests responded to in last polling.
|
|
2402
|
+
*/
|
|
2403
|
+
reachabilityPercent: number;
|
|
2404
|
+
/**
|
|
2405
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2406
|
+
*/
|
|
2407
|
+
benchedPChainRequestsPercent: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2410
|
+
*/
|
|
2411
|
+
benchedXChainRequestsPercent: number;
|
|
2412
|
+
/**
|
|
2413
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2414
|
+
*/
|
|
2415
|
+
benchedCChainRequestsPercent: number;
|
|
2416
|
+
};
|
|
1996
2417
|
|
|
1997
2418
|
type ActiveValidatorDetails = {
|
|
2419
|
+
txHash: string;
|
|
1998
2420
|
nodeId: string;
|
|
2421
|
+
subnetId: string;
|
|
1999
2422
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2423
|
+
delegationFee?: string;
|
|
2001
2424
|
startTimestamp: number;
|
|
2002
2425
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2426
|
stakePercentage: number;
|
|
2005
2427
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2428
|
+
amountDelegated?: string;
|
|
2007
2429
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2430
|
+
avalancheGoVersion?: string;
|
|
2431
|
+
delegationCapacity?: string;
|
|
2010
2432
|
potentialRewards: Rewards;
|
|
2433
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2434
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2435
|
};
|
|
2436
|
+
declare namespace ActiveValidatorDetails {
|
|
2437
|
+
enum validationStatus {
|
|
2438
|
+
ACTIVE = "active"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2012
2441
|
|
|
2013
2442
|
type CompletedValidatorDetails = {
|
|
2443
|
+
txHash: string;
|
|
2014
2444
|
nodeId: string;
|
|
2445
|
+
subnetId: string;
|
|
2015
2446
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2447
|
+
delegationFee?: string;
|
|
2017
2448
|
startTimestamp: number;
|
|
2018
2449
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2450
|
delegatorCount: number;
|
|
2021
2451
|
rewards: Rewards;
|
|
2452
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2453
|
};
|
|
2454
|
+
declare namespace CompletedValidatorDetails {
|
|
2455
|
+
enum validationStatus {
|
|
2456
|
+
COMPLETED = "completed"
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2023
2459
|
|
|
2024
2460
|
type PendingValidatorDetails = {
|
|
2461
|
+
txHash: string;
|
|
2025
2462
|
nodeId: string;
|
|
2463
|
+
subnetId: string;
|
|
2026
2464
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2465
|
+
delegationFee?: string;
|
|
2466
|
+
startTimestamp: number;
|
|
2467
|
+
endTimestamp: number;
|
|
2468
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2469
|
+
};
|
|
2470
|
+
declare namespace PendingValidatorDetails {
|
|
2471
|
+
enum validationStatus {
|
|
2472
|
+
PENDING = "pending"
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
type RemovedValidatorDetails = {
|
|
2477
|
+
txHash: string;
|
|
2478
|
+
nodeId: string;
|
|
2479
|
+
subnetId: string;
|
|
2480
|
+
amountStaked: string;
|
|
2481
|
+
delegationFee?: string;
|
|
2028
2482
|
startTimestamp: number;
|
|
2029
2483
|
endTimestamp: number;
|
|
2030
|
-
|
|
2484
|
+
removeTxHash: string;
|
|
2485
|
+
removeTimestamp: number;
|
|
2486
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2031
2487
|
};
|
|
2488
|
+
declare namespace RemovedValidatorDetails {
|
|
2489
|
+
enum validationStatus {
|
|
2490
|
+
REMOVED = "removed"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2032
2493
|
|
|
2033
2494
|
type ListValidatorDetailsResponse = {
|
|
2034
2495
|
/**
|
|
@@ -2036,9 +2497,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2497
|
*/
|
|
2037
2498
|
nextPageToken?: string;
|
|
2038
2499
|
/**
|
|
2039
|
-
* The list of
|
|
2500
|
+
* The list of validator Details.
|
|
2040
2501
|
*/
|
|
2041
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2502
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2042
2503
|
};
|
|
2043
2504
|
|
|
2044
2505
|
declare enum Network {
|
|
@@ -2046,6 +2507,23 @@ declare enum Network {
|
|
|
2046
2507
|
FUJI = "fuji"
|
|
2047
2508
|
}
|
|
2048
2509
|
|
|
2510
|
+
declare enum ValidationStatusType {
|
|
2511
|
+
COMPLETED = "completed",
|
|
2512
|
+
ACTIVE = "active",
|
|
2513
|
+
PENDING = "pending",
|
|
2514
|
+
REMOVED = "removed"
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2518
|
+
FIXED = "fixed",
|
|
2519
|
+
VARIABLE = "variable"
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
declare enum PrimaryNetworkAssetType {
|
|
2523
|
+
SECP256K1 = "secp256k1",
|
|
2524
|
+
NFT = "nft"
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2049
2527
|
type XChainAssetDetails = {
|
|
2050
2528
|
/**
|
|
2051
2529
|
* Unique ID for an asset.
|
|
@@ -2066,15 +2544,15 @@ type XChainAssetDetails = {
|
|
|
2066
2544
|
/**
|
|
2067
2545
|
* Type of asset like SECP256K1 or NFT.
|
|
2068
2546
|
*/
|
|
2069
|
-
type:
|
|
2547
|
+
type: PrimaryNetworkAssetType;
|
|
2070
2548
|
/**
|
|
2071
2549
|
* Timestamp in seconds this asset was created on.
|
|
2072
2550
|
*/
|
|
2073
2551
|
createdAtTimestamp: number;
|
|
2074
2552
|
/**
|
|
2075
|
-
* Cap represents if an asset
|
|
2553
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2076
2554
|
*/
|
|
2077
|
-
cap:
|
|
2555
|
+
cap: PrimaryNetworkAssetCap;
|
|
2078
2556
|
};
|
|
2079
2557
|
|
|
2080
2558
|
declare enum XChainId {
|
|
@@ -2140,19 +2618,19 @@ declare class PrimaryNetworkService {
|
|
|
2140
2618
|
* @returns ListBlockchainsResponse
|
|
2141
2619
|
* @throws ApiError
|
|
2142
2620
|
*/
|
|
2143
|
-
listBlockchains({ network,
|
|
2621
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2144
2622
|
/**
|
|
2145
2623
|
* Either mainnet or a testnet.
|
|
2146
2624
|
*/
|
|
2147
2625
|
network: Network;
|
|
2148
|
-
/**
|
|
2149
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2150
|
-
*/
|
|
2151
|
-
pageSize?: number;
|
|
2152
2626
|
/**
|
|
2153
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2154
2628
|
*/
|
|
2155
2629
|
pageToken?: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2632
|
+
*/
|
|
2633
|
+
pageSize?: number;
|
|
2156
2634
|
/**
|
|
2157
2635
|
* 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.
|
|
2158
2636
|
*/
|
|
@@ -2164,19 +2642,19 @@ declare class PrimaryNetworkService {
|
|
|
2164
2642
|
* @returns ListSubnetsResponse
|
|
2165
2643
|
* @throws ApiError
|
|
2166
2644
|
*/
|
|
2167
|
-
listSubnets({ network,
|
|
2645
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2168
2646
|
/**
|
|
2169
2647
|
* Either mainnet or a testnet.
|
|
2170
2648
|
*/
|
|
2171
2649
|
network: Network;
|
|
2172
|
-
/**
|
|
2173
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2174
|
-
*/
|
|
2175
|
-
pageSize?: number;
|
|
2176
2650
|
/**
|
|
2177
2651
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2178
2652
|
*/
|
|
2179
2653
|
pageToken?: string;
|
|
2654
|
+
/**
|
|
2655
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2656
|
+
*/
|
|
2657
|
+
pageSize?: number;
|
|
2180
2658
|
/**
|
|
2181
2659
|
* 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.
|
|
2182
2660
|
*/
|
|
@@ -2188,19 +2666,19 @@ declare class PrimaryNetworkService {
|
|
|
2188
2666
|
* @returns ListValidatorDetailsResponse
|
|
2189
2667
|
* @throws ApiError
|
|
2190
2668
|
*/
|
|
2191
|
-
listValidators({ network,
|
|
2669
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2670
|
/**
|
|
2193
2671
|
* Either mainnet or a testnet.
|
|
2194
2672
|
*/
|
|
2195
2673
|
network: Network;
|
|
2196
|
-
/**
|
|
2197
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2198
|
-
*/
|
|
2199
|
-
pageSize?: number;
|
|
2200
2674
|
/**
|
|
2201
2675
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2202
2676
|
*/
|
|
2203
2677
|
pageToken?: string;
|
|
2678
|
+
/**
|
|
2679
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2680
|
+
*/
|
|
2681
|
+
pageSize?: number;
|
|
2204
2682
|
/**
|
|
2205
2683
|
* A comma separated list of node ids to filter by.
|
|
2206
2684
|
*/
|
|
@@ -2214,9 +2692,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2692
|
*/
|
|
2215
2693
|
validationStatus?: ValidationStatusType;
|
|
2216
2694
|
/**
|
|
2217
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2695
|
+
* 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
|
|
2218
2696
|
*/
|
|
2219
|
-
minDelegationCapacity?:
|
|
2697
|
+
minDelegationCapacity?: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* 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.
|
|
2700
|
+
*/
|
|
2701
|
+
maxDelegationCapacity?: string;
|
|
2702
|
+
/**
|
|
2703
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2704
|
+
*/
|
|
2705
|
+
minTimeRemaining?: number;
|
|
2706
|
+
/**
|
|
2707
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2708
|
+
*/
|
|
2709
|
+
maxTimeRemaining?: number;
|
|
2710
|
+
/**
|
|
2711
|
+
* 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.
|
|
2712
|
+
*/
|
|
2713
|
+
minFeePercentage?: number;
|
|
2714
|
+
/**
|
|
2715
|
+
* 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.
|
|
2716
|
+
*/
|
|
2717
|
+
maxFeePercentage?: number;
|
|
2718
|
+
/**
|
|
2719
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2720
|
+
*/
|
|
2721
|
+
subnetId?: string;
|
|
2220
2722
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2723
|
/**
|
|
2222
2724
|
* Get single validator details
|
|
@@ -2224,7 +2726,7 @@ declare class PrimaryNetworkService {
|
|
|
2224
2726
|
* @returns ListValidatorDetailsResponse
|
|
2225
2727
|
* @throws ApiError
|
|
2226
2728
|
*/
|
|
2227
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2729
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2228
2730
|
/**
|
|
2229
2731
|
* Either mainnet or a testnet.
|
|
2230
2732
|
*/
|
|
@@ -2233,14 +2735,14 @@ declare class PrimaryNetworkService {
|
|
|
2233
2735
|
* A primary network (P or X chain) nodeId.
|
|
2234
2736
|
*/
|
|
2235
2737
|
nodeId: string;
|
|
2236
|
-
/**
|
|
2237
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2238
|
-
*/
|
|
2239
|
-
pageSize?: number;
|
|
2240
2738
|
/**
|
|
2241
2739
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2242
2740
|
*/
|
|
2243
2741
|
pageToken?: string;
|
|
2742
|
+
/**
|
|
2743
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
|
+
*/
|
|
2745
|
+
pageSize?: number;
|
|
2244
2746
|
/**
|
|
2245
2747
|
* 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.
|
|
2246
2748
|
*/
|
|
@@ -2256,23 +2758,23 @@ declare class PrimaryNetworkService {
|
|
|
2256
2758
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2759
|
* @throws ApiError
|
|
2258
2760
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2761
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2762
|
/**
|
|
2261
2763
|
* Either mainnet or a testnet.
|
|
2262
2764
|
*/
|
|
2263
2765
|
network: Network;
|
|
2264
2766
|
/**
|
|
2265
|
-
* A
|
|
2767
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2266
2768
|
*/
|
|
2267
|
-
|
|
2769
|
+
pageToken?: string;
|
|
2268
2770
|
/**
|
|
2269
2771
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2772
|
*/
|
|
2271
2773
|
pageSize?: number;
|
|
2272
2774
|
/**
|
|
2273
|
-
* A
|
|
2775
|
+
* A comma separated list of reward addresses to filter by.
|
|
2274
2776
|
*/
|
|
2275
|
-
|
|
2777
|
+
rewardAddresses?: string;
|
|
2276
2778
|
/**
|
|
2277
2779
|
* 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.
|
|
2278
2780
|
*/
|
|
@@ -2281,10 +2783,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2783
|
* Delegation status of the node.
|
|
2282
2784
|
*/
|
|
2283
2785
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2786
|
/**
|
|
2289
2787
|
* A comma separated list of node ids to filter by.
|
|
2290
2788
|
*/
|
|
@@ -2323,7 +2821,7 @@ type CChainSharedAssetBalance = {
|
|
|
2323
2821
|
/**
|
|
2324
2822
|
* Type of asset like SECP256K1 or NFT.
|
|
2325
2823
|
*/
|
|
2326
|
-
type:
|
|
2824
|
+
type: PrimaryNetworkAssetType;
|
|
2327
2825
|
/**
|
|
2328
2826
|
* Amount of the asset.
|
|
2329
2827
|
*/
|
|
@@ -2358,13 +2856,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2856
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2857
|
};
|
|
2360
2858
|
|
|
2361
|
-
type
|
|
2859
|
+
type Asset = {
|
|
2860
|
+
/**
|
|
2861
|
+
* Unique ID for an asset.
|
|
2862
|
+
*/
|
|
2362
2863
|
assetId: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* Name of this asset.
|
|
2866
|
+
*/
|
|
2867
|
+
name: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* Symbol for this asset (max 4 characters).
|
|
2870
|
+
*/
|
|
2871
|
+
symbol: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Denomination of this asset to represent fungibility.
|
|
2874
|
+
*/
|
|
2875
|
+
denomination: number;
|
|
2876
|
+
/**
|
|
2877
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2878
|
+
*/
|
|
2879
|
+
type: PrimaryNetworkAssetType;
|
|
2880
|
+
/**
|
|
2881
|
+
* Amount of the asset.
|
|
2882
|
+
*/
|
|
2363
2883
|
amount: string;
|
|
2364
2884
|
};
|
|
2365
2885
|
|
|
2366
2886
|
type PChainSharedAsset = {
|
|
2887
|
+
/**
|
|
2888
|
+
* Unique ID for an asset.
|
|
2889
|
+
*/
|
|
2367
2890
|
assetId: string;
|
|
2891
|
+
/**
|
|
2892
|
+
* Name of this asset.
|
|
2893
|
+
*/
|
|
2894
|
+
name: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Symbol for this asset (max 4 characters).
|
|
2897
|
+
*/
|
|
2898
|
+
symbol: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Denomination of this asset to represent fungibility.
|
|
2901
|
+
*/
|
|
2902
|
+
denomination: number;
|
|
2903
|
+
/**
|
|
2904
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2905
|
+
*/
|
|
2906
|
+
type: PrimaryNetworkAssetType;
|
|
2907
|
+
/**
|
|
2908
|
+
* Amount of the asset.
|
|
2909
|
+
*/
|
|
2368
2910
|
amount: string;
|
|
2369
2911
|
sharedWithChainId: string;
|
|
2370
2912
|
status: string;
|
|
@@ -2374,27 +2916,27 @@ type PChainBalance = {
|
|
|
2374
2916
|
/**
|
|
2375
2917
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2376
2918
|
*/
|
|
2377
|
-
unlockedUnstaked: Array<
|
|
2919
|
+
unlockedUnstaked: Array<Asset>;
|
|
2378
2920
|
/**
|
|
2379
2921
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2380
2922
|
*/
|
|
2381
|
-
unlockedStaked: Array<
|
|
2923
|
+
unlockedStaked: Array<Asset>;
|
|
2382
2924
|
/**
|
|
2383
2925
|
* A list of objects containing P-chain Asset ID and the amount 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.
|
|
2384
2926
|
*/
|
|
2385
|
-
lockedPlatform: Array<
|
|
2927
|
+
lockedPlatform: Array<Asset>;
|
|
2386
2928
|
/**
|
|
2387
2929
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2388
2930
|
*/
|
|
2389
|
-
lockedStakeable: Array<
|
|
2931
|
+
lockedStakeable: Array<Asset>;
|
|
2390
2932
|
/**
|
|
2391
2933
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2392
2934
|
*/
|
|
2393
|
-
lockedStaked: Array<
|
|
2935
|
+
lockedStaked: Array<Asset>;
|
|
2394
2936
|
/**
|
|
2395
2937
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2396
2938
|
*/
|
|
2397
|
-
pendingStaked: Array<
|
|
2939
|
+
pendingStaked: Array<Asset>;
|
|
2398
2940
|
/**
|
|
2399
2941
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2400
2942
|
*/
|
|
@@ -2430,7 +2972,7 @@ type XChainAssetBalance = {
|
|
|
2430
2972
|
/**
|
|
2431
2973
|
* Type of asset like SECP256K1 or NFT.
|
|
2432
2974
|
*/
|
|
2433
|
-
type:
|
|
2975
|
+
type: PrimaryNetworkAssetType;
|
|
2434
2976
|
/**
|
|
2435
2977
|
* Amount of the asset.
|
|
2436
2978
|
*/
|
|
@@ -2458,7 +3000,7 @@ type XChainSharedAssetBalance = {
|
|
|
2458
3000
|
/**
|
|
2459
3001
|
* Type of asset like SECP256K1 or NFT.
|
|
2460
3002
|
*/
|
|
2461
|
-
type:
|
|
3003
|
+
type: PrimaryNetworkAssetType;
|
|
2462
3004
|
/**
|
|
2463
3005
|
* Amount of the asset.
|
|
2464
3006
|
*/
|
|
@@ -2533,6 +3075,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
3075
|
txCount: number;
|
|
2534
3076
|
transactions: Array<string>;
|
|
2535
3077
|
blockSizeBytes: number;
|
|
3078
|
+
currentSupply?: string;
|
|
2536
3079
|
proposerDetails?: ProposerDetails;
|
|
2537
3080
|
};
|
|
2538
3081
|
|
|
@@ -2545,6 +3088,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
3088
|
txCount: number;
|
|
2546
3089
|
transactions: Array<string>;
|
|
2547
3090
|
blockSizeBytes: number;
|
|
3091
|
+
currentSupply?: string;
|
|
2548
3092
|
proposerDetails?: ProposerDetails;
|
|
2549
3093
|
};
|
|
2550
3094
|
|
|
@@ -2586,7 +3130,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2586
3130
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2587
3131
|
* @throws ApiError
|
|
2588
3132
|
*/
|
|
2589
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3133
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2590
3134
|
/**
|
|
2591
3135
|
* A primary network blockchain id or alias.
|
|
2592
3136
|
*/
|
|
@@ -2600,13 +3144,13 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2600
3144
|
*/
|
|
2601
3145
|
nodeId: string;
|
|
2602
3146
|
/**
|
|
2603
|
-
*
|
|
3147
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2604
3148
|
*/
|
|
2605
|
-
|
|
3149
|
+
pageToken?: string;
|
|
2606
3150
|
/**
|
|
2607
|
-
*
|
|
3151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2608
3152
|
*/
|
|
2609
|
-
|
|
3153
|
+
pageSize?: number;
|
|
2610
3154
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2611
3155
|
/**
|
|
2612
3156
|
* List latest blocks
|
|
@@ -2614,7 +3158,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2614
3158
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2615
3159
|
* @throws ApiError
|
|
2616
3160
|
*/
|
|
2617
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3161
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2618
3162
|
/**
|
|
2619
3163
|
* A primary network blockchain id or alias.
|
|
2620
3164
|
*/
|
|
@@ -2623,20 +3167,52 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2623
3167
|
* Either mainnet or a testnet.
|
|
2624
3168
|
*/
|
|
2625
3169
|
network: Network;
|
|
2626
|
-
/**
|
|
2627
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2628
|
-
*/
|
|
2629
|
-
pageSize?: number;
|
|
2630
3170
|
/**
|
|
2631
3171
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2632
3172
|
*/
|
|
2633
3173
|
pageToken?: string;
|
|
3174
|
+
/**
|
|
3175
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3176
|
+
*/
|
|
3177
|
+
pageSize?: number;
|
|
2634
3178
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2635
3179
|
}
|
|
2636
3180
|
|
|
3181
|
+
type AssetWithPriceInfo = {
|
|
3182
|
+
/**
|
|
3183
|
+
* Unique ID for an asset.
|
|
3184
|
+
*/
|
|
3185
|
+
assetId: string;
|
|
3186
|
+
/**
|
|
3187
|
+
* Name of this asset.
|
|
3188
|
+
*/
|
|
3189
|
+
name: string;
|
|
3190
|
+
/**
|
|
3191
|
+
* Symbol for this asset (max 4 characters).
|
|
3192
|
+
*/
|
|
3193
|
+
symbol: string;
|
|
3194
|
+
/**
|
|
3195
|
+
* Denomination of this asset to represent fungibility.
|
|
3196
|
+
*/
|
|
3197
|
+
denomination: number;
|
|
3198
|
+
/**
|
|
3199
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3200
|
+
*/
|
|
3201
|
+
type: PrimaryNetworkAssetType;
|
|
3202
|
+
/**
|
|
3203
|
+
* Amount of the asset.
|
|
3204
|
+
*/
|
|
3205
|
+
amount: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3208
|
+
*/
|
|
3209
|
+
historicalPrice?: Money;
|
|
3210
|
+
};
|
|
3211
|
+
|
|
2637
3212
|
declare enum RewardType {
|
|
2638
3213
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3214
|
+
DELEGATOR = "DELEGATOR",
|
|
3215
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3216
|
}
|
|
2641
3217
|
|
|
2642
3218
|
type HistoricalReward = {
|
|
@@ -2652,10 +3228,7 @@ type HistoricalReward = {
|
|
|
2652
3228
|
rewardType: RewardType;
|
|
2653
3229
|
utxoId: string;
|
|
2654
3230
|
outputIndex: number;
|
|
2655
|
-
|
|
2656
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
|
-
*/
|
|
2658
|
-
reward: PChainAsset;
|
|
3231
|
+
reward: AssetWithPriceInfo;
|
|
2659
3232
|
rewardTxHash: string;
|
|
2660
3233
|
};
|
|
2661
3234
|
|
|
@@ -2682,7 +3255,7 @@ type PendingReward = {
|
|
|
2682
3255
|
/**
|
|
2683
3256
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2684
3257
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3258
|
+
estimatedReward: Asset;
|
|
2686
3259
|
};
|
|
2687
3260
|
|
|
2688
3261
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,23 +3275,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3275
|
* @returns ListPendingRewardsResponse
|
|
2703
3276
|
* @throws ApiError
|
|
2704
3277
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3278
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2706
3279
|
/**
|
|
2707
3280
|
* Either mainnet or a testnet.
|
|
2708
3281
|
*/
|
|
2709
3282
|
network: Network;
|
|
2710
3283
|
/**
|
|
2711
|
-
* 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".
|
|
3284
|
+
* 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.
|
|
2712
3285
|
*/
|
|
2713
3286
|
addresses?: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3289
|
+
*/
|
|
3290
|
+
pageToken?: string;
|
|
2714
3291
|
/**
|
|
2715
3292
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
3293
|
*/
|
|
2717
3294
|
pageSize?: number;
|
|
2718
3295
|
/**
|
|
2719
|
-
* A
|
|
3296
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2720
3297
|
*/
|
|
2721
|
-
|
|
3298
|
+
nodeIds?: string;
|
|
2722
3299
|
/**
|
|
2723
3300
|
* 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.
|
|
2724
3301
|
*/
|
|
@@ -2730,64 +3307,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3307
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3308
|
* @throws ApiError
|
|
2732
3309
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3310
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2734
3311
|
/**
|
|
2735
3312
|
* Either mainnet or a testnet.
|
|
2736
3313
|
*/
|
|
2737
3314
|
network: Network;
|
|
2738
3315
|
/**
|
|
2739
|
-
* 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".
|
|
3316
|
+
* 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.
|
|
2740
3317
|
*/
|
|
2741
3318
|
addresses?: string;
|
|
3319
|
+
/**
|
|
3320
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3321
|
+
*/
|
|
3322
|
+
pageToken?: string;
|
|
2742
3323
|
/**
|
|
2743
3324
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
3325
|
*/
|
|
2745
3326
|
pageSize?: number;
|
|
2746
3327
|
/**
|
|
2747
|
-
* A
|
|
3328
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2748
3329
|
*/
|
|
2749
|
-
|
|
3330
|
+
nodeIds?: string;
|
|
2750
3331
|
/**
|
|
2751
3332
|
* 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.
|
|
2752
3333
|
*/
|
|
2753
3334
|
sortOrder?: SortOrder;
|
|
3335
|
+
/**
|
|
3336
|
+
* The currency that return values should use. Defaults to USD.
|
|
3337
|
+
*/
|
|
3338
|
+
currency?: CurrencyCode;
|
|
2754
3339
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3340
|
}
|
|
2756
3341
|
|
|
2757
|
-
type Asset = {
|
|
2758
|
-
/**
|
|
2759
|
-
* Unique ID for an asset.
|
|
2760
|
-
*/
|
|
2761
|
-
assetId: string;
|
|
2762
|
-
/**
|
|
2763
|
-
* Name of this asset.
|
|
2764
|
-
*/
|
|
2765
|
-
name: string;
|
|
2766
|
-
/**
|
|
2767
|
-
* Symbol for this asset (max 4 characters).
|
|
2768
|
-
*/
|
|
2769
|
-
symbol: string;
|
|
2770
|
-
/**
|
|
2771
|
-
* Denomination of this asset to represent fungibility.
|
|
2772
|
-
*/
|
|
2773
|
-
denomination: number;
|
|
2774
|
-
/**
|
|
2775
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2776
|
-
*/
|
|
2777
|
-
type: string;
|
|
2778
|
-
/**
|
|
2779
|
-
* Amount of the asset.
|
|
2780
|
-
*/
|
|
2781
|
-
amount: string;
|
|
2782
|
-
};
|
|
2783
|
-
|
|
2784
3342
|
type UtxoCredential = {
|
|
2785
3343
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3344
|
+
* Signature provided to consume the output.
|
|
2787
3345
|
*/
|
|
2788
3346
|
signature?: string;
|
|
2789
3347
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3348
|
+
* Public key associated with the signature.
|
|
2791
3349
|
*/
|
|
2792
3350
|
publicKey?: string;
|
|
2793
3351
|
};
|
|
@@ -2809,66 +3367,66 @@ type EVMInput = {
|
|
|
2809
3367
|
|
|
2810
3368
|
type Utxo = {
|
|
2811
3369
|
/**
|
|
2812
|
-
*
|
|
3370
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3371
|
*/
|
|
2814
|
-
|
|
3372
|
+
addresses: Array<string>;
|
|
2815
3373
|
asset: Asset;
|
|
2816
3374
|
/**
|
|
2817
|
-
*
|
|
3375
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3376
|
*/
|
|
2819
|
-
|
|
3377
|
+
consumedOnChainId: string;
|
|
2820
3378
|
/**
|
|
2821
|
-
*
|
|
3379
|
+
* Transaction ID that consumed this output.
|
|
2822
3380
|
*/
|
|
2823
|
-
|
|
3381
|
+
consumingTxHash?: string;
|
|
2824
3382
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3383
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3384
|
*/
|
|
2827
|
-
|
|
3385
|
+
createdOnChainId: string;
|
|
2828
3386
|
/**
|
|
2829
|
-
*
|
|
3387
|
+
* UTXO ID for this output.
|
|
2830
3388
|
*/
|
|
2831
|
-
|
|
3389
|
+
utxoId: string;
|
|
2832
3390
|
/**
|
|
2833
|
-
*
|
|
3391
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3392
|
*/
|
|
2835
|
-
|
|
3393
|
+
consumingTxTimestamp?: number;
|
|
2836
3394
|
/**
|
|
2837
|
-
*
|
|
3395
|
+
* Transaction ID that created this output.
|
|
2838
3396
|
*/
|
|
2839
|
-
|
|
3397
|
+
creationTxHash: string;
|
|
2840
3398
|
/**
|
|
2841
|
-
*
|
|
3399
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3400
|
*/
|
|
2843
|
-
|
|
3401
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3402
|
/**
|
|
2845
|
-
*
|
|
3403
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3404
|
*/
|
|
2847
|
-
|
|
3405
|
+
groupId?: number;
|
|
2848
3406
|
/**
|
|
2849
3407
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3408
|
*/
|
|
2851
3409
|
locktime: number;
|
|
2852
3410
|
/**
|
|
2853
|
-
*
|
|
3411
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3412
|
*/
|
|
2855
|
-
|
|
3413
|
+
outputIndex: string;
|
|
2856
3414
|
/**
|
|
2857
|
-
*
|
|
3415
|
+
* Hex encoded data for NFT assets.
|
|
2858
3416
|
*/
|
|
2859
|
-
|
|
3417
|
+
payload?: string;
|
|
2860
3418
|
/**
|
|
2861
|
-
*
|
|
3419
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3420
|
*/
|
|
2863
|
-
|
|
3421
|
+
threshold: number;
|
|
2864
3422
|
/**
|
|
2865
|
-
*
|
|
3423
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3424
|
*/
|
|
2867
|
-
|
|
3425
|
+
timestamp: number;
|
|
2868
3426
|
/**
|
|
2869
|
-
*
|
|
3427
|
+
* Type of output.
|
|
2870
3428
|
*/
|
|
2871
|
-
|
|
3429
|
+
utxoType: string;
|
|
2872
3430
|
};
|
|
2873
3431
|
|
|
2874
3432
|
type CChainExportTransaction = {
|
|
@@ -2999,16 +3557,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3557
|
|
|
3000
3558
|
declare enum PChainTransactionType {
|
|
3001
3559
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3560
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3562
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3563
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3564
|
IMPORT_TX = "ImportTx",
|
|
3010
3565
|
EXPORT_TX = "ExportTx",
|
|
3011
3566
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3567
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3568
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3569
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3570
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3571
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3012
3572
|
UNKNOWN = "UNKNOWN"
|
|
3013
3573
|
}
|
|
3014
3574
|
|
|
@@ -3019,29 +3579,48 @@ declare enum UtxoType {
|
|
|
3019
3579
|
|
|
3020
3580
|
type PChainUtxo = {
|
|
3021
3581
|
/**
|
|
3022
|
-
*
|
|
3582
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3583
|
*/
|
|
3024
3584
|
addresses: Array<string>;
|
|
3585
|
+
asset: Asset;
|
|
3586
|
+
/**
|
|
3587
|
+
* Blockchain ID on which this output is consumed on.
|
|
3588
|
+
*/
|
|
3589
|
+
consumedOnChainId: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* Transaction ID that consumed this output.
|
|
3592
|
+
*/
|
|
3593
|
+
consumingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Blockchain ID on which this output is created on.
|
|
3596
|
+
*/
|
|
3597
|
+
createdOnChainId: string;
|
|
3598
|
+
/**
|
|
3599
|
+
* UTXO ID for this output.
|
|
3600
|
+
*/
|
|
3025
3601
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* @deprecated
|
|
3604
|
+
*/
|
|
3605
|
+
amount: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* @deprecated
|
|
3608
|
+
*/
|
|
3609
|
+
assetId: string;
|
|
3028
3610
|
blockNumber: string;
|
|
3029
3611
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3612
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3613
|
+
consumingBlockTimestamp?: number;
|
|
3037
3614
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3615
|
+
outputIndex: number;
|
|
3616
|
+
rewardType?: RewardType;
|
|
3617
|
+
stakeableLocktime?: number;
|
|
3041
3618
|
staked?: boolean;
|
|
3042
|
-
|
|
3619
|
+
threshold?: number;
|
|
3620
|
+
txHash: string;
|
|
3043
3621
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3622
|
+
utxoStartTimestamp?: number;
|
|
3623
|
+
utxoType: UtxoType;
|
|
3045
3624
|
};
|
|
3046
3625
|
|
|
3047
3626
|
type PChainTransaction = {
|
|
@@ -3069,15 +3648,15 @@ type PChainTransaction = {
|
|
|
3069
3648
|
/**
|
|
3070
3649
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3071
3650
|
*/
|
|
3072
|
-
value: Array<
|
|
3651
|
+
value: Array<Asset>;
|
|
3073
3652
|
/**
|
|
3074
3653
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3075
3654
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3655
|
+
amountBurned: Array<Asset>;
|
|
3077
3656
|
/**
|
|
3078
3657
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3079
3658
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3659
|
+
amountStaked: Array<Asset>;
|
|
3081
3660
|
/**
|
|
3082
3661
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3662
|
*/
|
|
@@ -3103,6 +3682,7 @@ type PChainTransaction = {
|
|
|
3103
3682
|
*/
|
|
3104
3683
|
estimatedReward?: string;
|
|
3105
3684
|
rewardTxHash?: string;
|
|
3685
|
+
rewardAddresses?: Array<string>;
|
|
3106
3686
|
memo?: string;
|
|
3107
3687
|
/**
|
|
3108
3688
|
* Present for RewardValidatorTx
|
|
@@ -3119,6 +3699,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3699
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3700
|
};
|
|
3121
3701
|
|
|
3702
|
+
declare enum XChainTransactionType {
|
|
3703
|
+
BASE_TX = "BaseTx",
|
|
3704
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3705
|
+
OPERATION_TX = "OperationTx",
|
|
3706
|
+
IMPORT_TX = "ImportTx",
|
|
3707
|
+
EXPORT_TX = "ExportTx",
|
|
3708
|
+
UNKNOWN = "UNKNOWN"
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3122
3711
|
type XChainLinearTransaction = {
|
|
3123
3712
|
/**
|
|
3124
3713
|
* Unique ID for this transaction.
|
|
@@ -3135,7 +3724,7 @@ type XChainLinearTransaction = {
|
|
|
3135
3724
|
/**
|
|
3136
3725
|
* Type of transaction.
|
|
3137
3726
|
*/
|
|
3138
|
-
txType:
|
|
3727
|
+
txType: XChainTransactionType;
|
|
3139
3728
|
/**
|
|
3140
3729
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3730
|
*/
|
|
@@ -3212,7 +3801,7 @@ type XChainNonLinearTransaction = {
|
|
|
3212
3801
|
/**
|
|
3213
3802
|
* Type of transaction.
|
|
3214
3803
|
*/
|
|
3215
|
-
txType:
|
|
3804
|
+
txType: XChainTransactionType;
|
|
3216
3805
|
/**
|
|
3217
3806
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3807
|
*/
|
|
@@ -3270,16 +3859,18 @@ declare enum PChainId {
|
|
|
3270
3859
|
|
|
3271
3860
|
declare enum PrimaryNetworkTxType {
|
|
3272
3861
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3862
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3864
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3865
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3866
|
IMPORT_TX = "ImportTx",
|
|
3281
3867
|
EXPORT_TX = "ExportTx",
|
|
3282
3868
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3869
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3870
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3871
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3872
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3873
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3283
3874
|
UNKNOWN = "UNKNOWN",
|
|
3284
3875
|
BASE_TX = "BaseTx",
|
|
3285
3876
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3311,11 +3902,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3902
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3903
|
/**
|
|
3313
3904
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3905
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3906
|
+
*
|
|
3907
|
+
* 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.
|
|
3908
|
+
*
|
|
3909
|
+
* 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.
|
|
3315
3910
|
* @returns any
|
|
3316
3911
|
* @throws ApiError
|
|
3317
3912
|
*/
|
|
3318
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3319
3914
|
/**
|
|
3320
3915
|
* A primary network blockchain id or alias.
|
|
3321
3916
|
*/
|
|
@@ -3340,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3340
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3341
3936
|
*/
|
|
3342
3937
|
endTimestamp?: number;
|
|
3343
|
-
/**
|
|
3344
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3345
|
-
*/
|
|
3346
|
-
pageSize?: number;
|
|
3347
3938
|
/**
|
|
3348
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3349
3940
|
*/
|
|
3350
3941
|
pageToken?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3944
|
+
*/
|
|
3945
|
+
pageSize?: number;
|
|
3351
3946
|
/**
|
|
3352
3947
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3353
3948
|
*/
|
|
@@ -3359,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3359
3954
|
* @returns ListPChainTransactionsResponse
|
|
3360
3955
|
* @throws ApiError
|
|
3361
3956
|
*/
|
|
3362
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3363
3958
|
/**
|
|
3364
3959
|
* A primary network blockchain id or alias.
|
|
3365
3960
|
*/
|
|
@@ -3384,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3384
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3385
3980
|
*/
|
|
3386
3981
|
endTimestamp?: number;
|
|
3387
|
-
/**
|
|
3388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3389
|
-
*/
|
|
3390
|
-
pageSize?: number;
|
|
3391
3982
|
/**
|
|
3392
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3393
3984
|
*/
|
|
3394
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3395
3990
|
/**
|
|
3396
3991
|
* 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.
|
|
3397
3992
|
*/
|
|
@@ -3403,7 +3998,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3403
3998
|
* @returns ListXChainTransactionsResponse
|
|
3404
3999
|
* @throws ApiError
|
|
3405
4000
|
*/
|
|
3406
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4001
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3407
4002
|
/**
|
|
3408
4003
|
* A primary network blockchain id or alias.
|
|
3409
4004
|
*/
|
|
@@ -3428,14 +4023,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3428
4023
|
* Query param for retrieving items before a specific timestamp.
|
|
3429
4024
|
*/
|
|
3430
4025
|
endTimestamp?: number;
|
|
3431
|
-
/**
|
|
3432
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3433
|
-
*/
|
|
3434
|
-
pageSize?: number;
|
|
3435
4026
|
/**
|
|
3436
4027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3437
4028
|
*/
|
|
3438
4029
|
pageToken?: string;
|
|
4030
|
+
/**
|
|
4031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4032
|
+
*/
|
|
4033
|
+
pageSize?: number;
|
|
3439
4034
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3440
4035
|
}
|
|
3441
4036
|
|
|
@@ -3466,7 +4061,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3466
4061
|
* @returns any
|
|
3467
4062
|
* @throws ApiError
|
|
3468
4063
|
*/
|
|
3469
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4064
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3470
4065
|
/**
|
|
3471
4066
|
* A primary network blockchain id or alias.
|
|
3472
4067
|
*/
|
|
@@ -3479,14 +4074,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3479
4074
|
* 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".
|
|
3480
4075
|
*/
|
|
3481
4076
|
addresses?: string;
|
|
3482
|
-
/**
|
|
3483
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3484
|
-
*/
|
|
3485
|
-
pageSize?: number;
|
|
3486
4077
|
/**
|
|
3487
4078
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3488
4079
|
*/
|
|
3489
4080
|
pageToken?: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4083
|
+
*/
|
|
4084
|
+
pageSize?: number;
|
|
3490
4085
|
/**
|
|
3491
4086
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3492
4087
|
*/
|
|
@@ -3531,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3531
4126
|
* @returns ListXChainVerticesResponse
|
|
3532
4127
|
* @throws ApiError
|
|
3533
4128
|
*/
|
|
3534
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4129
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3535
4130
|
/**
|
|
3536
4131
|
* A primary network blockchain id or alias.
|
|
3537
4132
|
*/
|
|
@@ -3540,14 +4135,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3540
4135
|
* Either mainnet or a testnet.
|
|
3541
4136
|
*/
|
|
3542
4137
|
network: Network;
|
|
3543
|
-
/**
|
|
3544
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3545
|
-
*/
|
|
3546
|
-
pageSize?: number;
|
|
3547
4138
|
/**
|
|
3548
4139
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3549
4140
|
*/
|
|
3550
4141
|
pageToken?: string;
|
|
4142
|
+
/**
|
|
4143
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4144
|
+
*/
|
|
4145
|
+
pageSize?: number;
|
|
3551
4146
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3552
4147
|
/**
|
|
3553
4148
|
* Get vertex
|
|
@@ -3575,7 +4170,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3575
4170
|
* @returns ListXChainVerticesResponse
|
|
3576
4171
|
* @throws ApiError
|
|
3577
4172
|
*/
|
|
3578
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4173
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3579
4174
|
/**
|
|
3580
4175
|
* The height of a vertex.
|
|
3581
4176
|
*/
|
|
@@ -3588,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3588
4183
|
* Either mainnet or a testnet.
|
|
3589
4184
|
*/
|
|
3590
4185
|
network: Network;
|
|
3591
|
-
/**
|
|
3592
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3593
|
-
*/
|
|
3594
|
-
pageSize?: number;
|
|
3595
4186
|
/**
|
|
3596
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3597
4188
|
*/
|
|
3598
4189
|
pageToken?: string;
|
|
4190
|
+
/**
|
|
4191
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4192
|
+
*/
|
|
4193
|
+
pageSize?: number;
|
|
3599
4194
|
/**
|
|
3600
4195
|
* 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.
|
|
3601
4196
|
*/
|
|
@@ -3605,11 +4200,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3605
4200
|
|
|
3606
4201
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4202
|
declare class Glacier {
|
|
4203
|
+
readonly default: DefaultService;
|
|
3608
4204
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4205
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4206
|
readonly evmChains: EvmChainsService;
|
|
4207
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4208
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4209
|
readonly healthCheck: HealthCheckService;
|
|
4210
|
+
readonly nfTs: NfTsService;
|
|
3613
4211
|
readonly operations: OperationsService;
|
|
3614
4212
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4213
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3639,4 +4237,4 @@ declare class ApiError extends Error {
|
|
|
3639
4237
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4238
|
}
|
|
3641
4239
|
|
|
3642
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService,
|
|
4240
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|