@avalabs/glacier-sdk 2.8.0-canary.6e0a272.0 → 2.8.0-canary.6e7bb8e.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 +561 -295
- package/dist/index.js +213 -108
- 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/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- 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 +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- 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 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- 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/SharedSecretsResponse.d.ts +5 -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/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 +60 -0
- package/esm/generated/services/DefaultService.js +48 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +41 -41
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/index.d.ts +13 -1
- package/esm/index.js +7 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,65 @@ 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
|
+
|
|
63
122
|
declare class DefaultService {
|
|
64
123
|
readonly httpRequest: BaseHttpRequest;
|
|
65
124
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -68,6 +127,61 @@ declare class DefaultService {
|
|
|
68
127
|
* @throws ApiError
|
|
69
128
|
*/
|
|
70
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>;
|
|
71
185
|
}
|
|
72
186
|
|
|
73
187
|
declare enum CurrencyCode {
|
|
@@ -345,7 +459,7 @@ declare class EvmBalancesService {
|
|
|
345
459
|
*/
|
|
346
460
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
461
|
/**
|
|
348
|
-
* 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.
|
|
349
463
|
*/
|
|
350
464
|
chainId: string;
|
|
351
465
|
/**
|
|
@@ -371,9 +485,9 @@ declare class EvmBalancesService {
|
|
|
371
485
|
* @returns ListErc20BalancesResponse
|
|
372
486
|
* @throws ApiError
|
|
373
487
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
488
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
489
|
/**
|
|
376
|
-
* 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.
|
|
377
491
|
*/
|
|
378
492
|
chainId: string;
|
|
379
493
|
/**
|
|
@@ -384,14 +498,14 @@ declare class EvmBalancesService {
|
|
|
384
498
|
* The block number, if not defined the block number will be the latest block.
|
|
385
499
|
*/
|
|
386
500
|
blockNumber?: string;
|
|
387
|
-
/**
|
|
388
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
389
|
-
*/
|
|
390
|
-
pageSize?: number;
|
|
391
501
|
/**
|
|
392
502
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
503
|
*/
|
|
394
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;
|
|
395
509
|
/**
|
|
396
510
|
* A comma separated list of contract addresses to filter by.
|
|
397
511
|
*/
|
|
@@ -409,23 +523,23 @@ declare class EvmBalancesService {
|
|
|
409
523
|
* @returns ListErc721BalancesResponse
|
|
410
524
|
* @throws ApiError
|
|
411
525
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
526
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
527
|
/**
|
|
414
|
-
* 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.
|
|
415
529
|
*/
|
|
416
530
|
chainId: string;
|
|
417
531
|
/**
|
|
418
532
|
* A wallet address.
|
|
419
533
|
*/
|
|
420
534
|
address: string;
|
|
421
|
-
/**
|
|
422
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
423
|
-
*/
|
|
424
|
-
pageSize?: number;
|
|
425
535
|
/**
|
|
426
536
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
537
|
*/
|
|
428
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;
|
|
429
543
|
/**
|
|
430
544
|
* A contract addresses to filter by.
|
|
431
545
|
*/
|
|
@@ -441,9 +555,9 @@ declare class EvmBalancesService {
|
|
|
441
555
|
* @returns ListErc1155BalancesResponse
|
|
442
556
|
* @throws ApiError
|
|
443
557
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
558
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
559
|
/**
|
|
446
|
-
* 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.
|
|
447
561
|
*/
|
|
448
562
|
chainId: string;
|
|
449
563
|
/**
|
|
@@ -454,14 +568,14 @@ declare class EvmBalancesService {
|
|
|
454
568
|
* The block number, if not defined the block number will be the latest block.
|
|
455
569
|
*/
|
|
456
570
|
blockNumber?: string;
|
|
457
|
-
/**
|
|
458
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
459
|
-
*/
|
|
460
|
-
pageSize?: number;
|
|
461
571
|
/**
|
|
462
572
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
573
|
*/
|
|
464
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;
|
|
465
579
|
/**
|
|
466
580
|
* A contract addresses to filter by.
|
|
467
581
|
*/
|
|
@@ -475,23 +589,23 @@ declare class EvmBalancesService {
|
|
|
475
589
|
* @returns ListCollectibleBalancesResponse
|
|
476
590
|
* @throws ApiError
|
|
477
591
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
592
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
593
|
/**
|
|
480
|
-
* 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.
|
|
481
595
|
*/
|
|
482
596
|
chainId: string;
|
|
483
597
|
/**
|
|
484
598
|
* A wallet address.
|
|
485
599
|
*/
|
|
486
600
|
address: string;
|
|
487
|
-
/**
|
|
488
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
489
|
-
*/
|
|
490
|
-
pageSize?: number;
|
|
491
601
|
/**
|
|
492
602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
603
|
*/
|
|
494
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;
|
|
495
609
|
/**
|
|
496
610
|
* A contract addresses to filter by.
|
|
497
611
|
*/
|
|
@@ -604,19 +718,19 @@ declare class EvmBlocksService {
|
|
|
604
718
|
* @returns ListEvmBlocksResponse
|
|
605
719
|
* @throws ApiError
|
|
606
720
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
721
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
722
|
/**
|
|
609
|
-
* 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.
|
|
610
724
|
*/
|
|
611
725
|
chainId: string;
|
|
612
|
-
/**
|
|
613
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
614
|
-
*/
|
|
615
|
-
pageSize?: number;
|
|
616
726
|
/**
|
|
617
727
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
728
|
*/
|
|
619
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;
|
|
620
734
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
735
|
/**
|
|
622
736
|
* Get block
|
|
@@ -626,7 +740,7 @@ declare class EvmBlocksService {
|
|
|
626
740
|
*/
|
|
627
741
|
getBlock({ chainId, blockId, }: {
|
|
628
742
|
/**
|
|
629
|
-
* 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.
|
|
630
744
|
*/
|
|
631
745
|
chainId: string;
|
|
632
746
|
/**
|
|
@@ -747,7 +861,7 @@ declare class EvmChainsService {
|
|
|
747
861
|
*/
|
|
748
862
|
getChainInfo({ chainId, }: {
|
|
749
863
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
865
|
*/
|
|
752
866
|
chainId: string;
|
|
753
867
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1156,7 @@ declare class EvmContractsService {
|
|
|
1042
1156
|
*/
|
|
1043
1157
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1158
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1160
|
*/
|
|
1047
1161
|
chainId: string;
|
|
1048
1162
|
/**
|
|
@@ -1058,7 +1172,7 @@ declare class EvmContractsService {
|
|
|
1058
1172
|
*/
|
|
1059
1173
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1174
|
/**
|
|
1061
|
-
* 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.
|
|
1062
1176
|
*/
|
|
1063
1177
|
chainId: string;
|
|
1064
1178
|
/**
|
|
@@ -1586,7 +1700,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1700
|
*/
|
|
1587
1701
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1702
|
/**
|
|
1589
|
-
* 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.
|
|
1590
1704
|
*/
|
|
1591
1705
|
chainId: string;
|
|
1592
1706
|
/**
|
|
@@ -1604,23 +1718,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1718
|
* @returns ListContractsResponse
|
|
1605
1719
|
* @throws ApiError
|
|
1606
1720
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1721
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1722
|
/**
|
|
1609
|
-
* 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.
|
|
1610
1724
|
*/
|
|
1611
1725
|
chainId: string;
|
|
1612
1726
|
/**
|
|
1613
1727
|
* A wallet address.
|
|
1614
1728
|
*/
|
|
1615
1729
|
address: string;
|
|
1616
|
-
/**
|
|
1617
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1618
|
-
*/
|
|
1619
|
-
pageSize?: number;
|
|
1620
1730
|
/**
|
|
1621
1731
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1732
|
*/
|
|
1623
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;
|
|
1624
1738
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1739
|
/**
|
|
1626
1740
|
* List ERC transfers
|
|
@@ -1628,25 +1742,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1742
|
* @returns ListTransfersResponse
|
|
1629
1743
|
* @throws ApiError
|
|
1630
1744
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1745
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1746
|
/**
|
|
1633
|
-
* 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.
|
|
1634
1748
|
*/
|
|
1635
1749
|
chainId: string;
|
|
1636
1750
|
/**
|
|
1637
1751
|
* A wallet address.
|
|
1638
1752
|
*/
|
|
1639
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
|
+
*/
|
|
1640
1757
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1758
|
/**
|
|
1643
|
-
* 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.
|
|
1644
1760
|
*/
|
|
1645
|
-
|
|
1761
|
+
endBlock?: number;
|
|
1646
1762
|
/**
|
|
1647
1763
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1764
|
*/
|
|
1649
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;
|
|
1650
1770
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1771
|
/**
|
|
1652
1772
|
* List transactions
|
|
@@ -1656,24 +1776,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1776
|
* @returns ListTransactionDetailsResponse
|
|
1657
1777
|
* @throws ApiError
|
|
1658
1778
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1779
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1780
|
/**
|
|
1661
|
-
* 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.
|
|
1662
1782
|
*/
|
|
1663
1783
|
chainId: string;
|
|
1664
1784
|
/**
|
|
1665
1785
|
* A wallet address.
|
|
1666
1786
|
*/
|
|
1667
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;
|
|
1668
1792
|
/**
|
|
1669
1793
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1794
|
*/
|
|
1671
1795
|
pageSize?: number;
|
|
1672
1796
|
/**
|
|
1673
|
-
*
|
|
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.
|
|
1674
1798
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
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
|
+
*/
|
|
1677
1803
|
endBlock?: number;
|
|
1678
1804
|
/**
|
|
1679
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.
|
|
@@ -1686,25 +1812,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1812
|
* @returns ListNativeTransactionsResponse
|
|
1687
1813
|
* @throws ApiError
|
|
1688
1814
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1815
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1816
|
/**
|
|
1691
|
-
* 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.
|
|
1692
1818
|
*/
|
|
1693
1819
|
chainId: string;
|
|
1694
1820
|
/**
|
|
1695
1821
|
* A wallet address.
|
|
1696
1822
|
*/
|
|
1697
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
|
+
*/
|
|
1698
1827
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1828
|
/**
|
|
1701
|
-
* 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.
|
|
1702
1830
|
*/
|
|
1703
|
-
|
|
1831
|
+
endBlock?: number;
|
|
1704
1832
|
/**
|
|
1705
1833
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1834
|
*/
|
|
1707
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;
|
|
1708
1840
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1841
|
/**
|
|
1710
1842
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1844,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1844
|
* @returns ListErc20TransactionsResponse
|
|
1713
1845
|
* @throws ApiError
|
|
1714
1846
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1847
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1848
|
/**
|
|
1717
|
-
* 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.
|
|
1718
1850
|
*/
|
|
1719
1851
|
chainId: string;
|
|
1720
1852
|
/**
|
|
1721
1853
|
* A wallet address.
|
|
1722
1854
|
*/
|
|
1723
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
|
+
*/
|
|
1724
1859
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1860
|
/**
|
|
1727
|
-
* 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.
|
|
1728
1862
|
*/
|
|
1729
|
-
|
|
1863
|
+
endBlock?: number;
|
|
1730
1864
|
/**
|
|
1731
1865
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1866
|
*/
|
|
1733
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;
|
|
1734
1872
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1873
|
/**
|
|
1736
1874
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1876,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1876
|
* @returns ListErc721TransactionsResponse
|
|
1739
1877
|
* @throws ApiError
|
|
1740
1878
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1879
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1880
|
/**
|
|
1743
|
-
* 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.
|
|
1744
1882
|
*/
|
|
1745
1883
|
chainId: string;
|
|
1746
1884
|
/**
|
|
1747
1885
|
* A wallet address.
|
|
1748
1886
|
*/
|
|
1749
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
|
+
*/
|
|
1750
1891
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1892
|
/**
|
|
1753
|
-
* 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.
|
|
1754
1894
|
*/
|
|
1755
|
-
|
|
1895
|
+
endBlock?: number;
|
|
1756
1896
|
/**
|
|
1757
1897
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1898
|
*/
|
|
1759
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;
|
|
1760
1904
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1905
|
/**
|
|
1762
1906
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1908,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1908
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1909
|
* @throws ApiError
|
|
1766
1910
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1911
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1912
|
/**
|
|
1769
|
-
* 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.
|
|
1770
1914
|
*/
|
|
1771
1915
|
chainId: string;
|
|
1772
1916
|
/**
|
|
1773
1917
|
* A wallet address.
|
|
1774
1918
|
*/
|
|
1775
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
|
+
*/
|
|
1776
1923
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1924
|
/**
|
|
1779
|
-
* 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.
|
|
1780
1926
|
*/
|
|
1781
|
-
|
|
1927
|
+
endBlock?: number;
|
|
1782
1928
|
/**
|
|
1783
1929
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1930
|
*/
|
|
1785
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;
|
|
1786
1936
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1937
|
/**
|
|
1788
1938
|
* List internal transactions
|
|
@@ -1792,25 +1942,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1942
|
* @returns ListInternalTransactionsResponse
|
|
1793
1943
|
* @throws ApiError
|
|
1794
1944
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1945
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1946
|
/**
|
|
1797
|
-
* 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.
|
|
1798
1948
|
*/
|
|
1799
1949
|
chainId: string;
|
|
1800
1950
|
/**
|
|
1801
1951
|
* A wallet address.
|
|
1802
1952
|
*/
|
|
1803
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
|
+
*/
|
|
1804
1957
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1958
|
/**
|
|
1807
|
-
* 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.
|
|
1808
1960
|
*/
|
|
1809
|
-
|
|
1961
|
+
endBlock?: number;
|
|
1810
1962
|
/**
|
|
1811
1963
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1964
|
*/
|
|
1813
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;
|
|
1814
1970
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1971
|
/**
|
|
1816
1972
|
* Get transaction
|
|
@@ -1820,7 +1976,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1976
|
*/
|
|
1821
1977
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1978
|
/**
|
|
1823
|
-
* 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.
|
|
1824
1980
|
*/
|
|
1825
1981
|
chainId: string;
|
|
1826
1982
|
/**
|
|
@@ -1836,7 +1992,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1992
|
*/
|
|
1837
1993
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1994
|
/**
|
|
1839
|
-
* 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.
|
|
1840
1996
|
*/
|
|
1841
1997
|
chainId: string;
|
|
1842
1998
|
/**
|
|
@@ -1850,19 +2006,19 @@ declare class EvmTransactionsService {
|
|
|
1850
2006
|
* @returns ListNativeTransactionsResponse
|
|
1851
2007
|
* @throws ApiError
|
|
1852
2008
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
2009
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
2010
|
/**
|
|
1855
|
-
* 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.
|
|
1856
2012
|
*/
|
|
1857
2013
|
chainId: string;
|
|
1858
|
-
/**
|
|
1859
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1860
|
-
*/
|
|
1861
|
-
pageSize?: number;
|
|
1862
2014
|
/**
|
|
1863
2015
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
2016
|
*/
|
|
1865
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;
|
|
1866
2022
|
/**
|
|
1867
2023
|
* A status filter for listed transactions.
|
|
1868
2024
|
*/
|
|
@@ -1905,7 +2061,7 @@ declare class NfTsService {
|
|
|
1905
2061
|
*/
|
|
1906
2062
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1907
2063
|
/**
|
|
1908
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1909
2065
|
*/
|
|
1910
2066
|
chainId: string;
|
|
1911
2067
|
/**
|
|
@@ -1923,23 +2079,23 @@ declare class NfTsService {
|
|
|
1923
2079
|
* @returns ListNftTokens
|
|
1924
2080
|
* @throws ApiError
|
|
1925
2081
|
*/
|
|
1926
|
-
listTokens({ chainId, address,
|
|
2082
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1927
2083
|
/**
|
|
1928
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2084
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1929
2085
|
*/
|
|
1930
2086
|
chainId: string;
|
|
1931
2087
|
/**
|
|
1932
2088
|
* Contract address on the relevant chain.
|
|
1933
2089
|
*/
|
|
1934
2090
|
address: string;
|
|
1935
|
-
/**
|
|
1936
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1937
|
-
*/
|
|
1938
|
-
pageSize?: number;
|
|
1939
2091
|
/**
|
|
1940
2092
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1941
2093
|
*/
|
|
1942
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;
|
|
1943
2099
|
}): CancelablePromise<ListNftTokens>;
|
|
1944
2100
|
/**
|
|
1945
2101
|
* Get token details
|
|
@@ -1949,7 +2105,7 @@ declare class NfTsService {
|
|
|
1949
2105
|
*/
|
|
1950
2106
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1951
2107
|
/**
|
|
1952
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2108
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1953
2109
|
*/
|
|
1954
2110
|
chainId: string;
|
|
1955
2111
|
/**
|
|
@@ -2317,6 +2473,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2317
2473
|
}
|
|
2318
2474
|
}
|
|
2319
2475
|
|
|
2476
|
+
type RemovedValidatorDetails = {
|
|
2477
|
+
txHash: string;
|
|
2478
|
+
nodeId: string;
|
|
2479
|
+
subnetId: string;
|
|
2480
|
+
amountStaked: string;
|
|
2481
|
+
delegationFee?: string;
|
|
2482
|
+
startTimestamp: number;
|
|
2483
|
+
endTimestamp: number;
|
|
2484
|
+
removeTxHash: string;
|
|
2485
|
+
removeTimestamp: number;
|
|
2486
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2487
|
+
};
|
|
2488
|
+
declare namespace RemovedValidatorDetails {
|
|
2489
|
+
enum validationStatus {
|
|
2490
|
+
REMOVED = "removed"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2320
2494
|
type ListValidatorDetailsResponse = {
|
|
2321
2495
|
/**
|
|
2322
2496
|
* 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.
|
|
@@ -2325,7 +2499,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2325
2499
|
/**
|
|
2326
2500
|
* The list of validator Details.
|
|
2327
2501
|
*/
|
|
2328
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2502
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2329
2503
|
};
|
|
2330
2504
|
|
|
2331
2505
|
declare enum Network {
|
|
@@ -2336,7 +2510,18 @@ declare enum Network {
|
|
|
2336
2510
|
declare enum ValidationStatusType {
|
|
2337
2511
|
COMPLETED = "completed",
|
|
2338
2512
|
ACTIVE = "active",
|
|
2339
|
-
PENDING = "pending"
|
|
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"
|
|
2340
2525
|
}
|
|
2341
2526
|
|
|
2342
2527
|
type XChainAssetDetails = {
|
|
@@ -2359,15 +2544,15 @@ type XChainAssetDetails = {
|
|
|
2359
2544
|
/**
|
|
2360
2545
|
* Type of asset like SECP256K1 or NFT.
|
|
2361
2546
|
*/
|
|
2362
|
-
type:
|
|
2547
|
+
type: PrimaryNetworkAssetType;
|
|
2363
2548
|
/**
|
|
2364
2549
|
* Timestamp in seconds this asset was created on.
|
|
2365
2550
|
*/
|
|
2366
2551
|
createdAtTimestamp: number;
|
|
2367
2552
|
/**
|
|
2368
|
-
* Cap represents if an asset
|
|
2553
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2369
2554
|
*/
|
|
2370
|
-
cap:
|
|
2555
|
+
cap: PrimaryNetworkAssetCap;
|
|
2371
2556
|
};
|
|
2372
2557
|
|
|
2373
2558
|
declare enum XChainId {
|
|
@@ -2433,19 +2618,19 @@ declare class PrimaryNetworkService {
|
|
|
2433
2618
|
* @returns ListBlockchainsResponse
|
|
2434
2619
|
* @throws ApiError
|
|
2435
2620
|
*/
|
|
2436
|
-
listBlockchains({ network,
|
|
2621
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2437
2622
|
/**
|
|
2438
2623
|
* Either mainnet or a testnet.
|
|
2439
2624
|
*/
|
|
2440
2625
|
network: Network;
|
|
2441
|
-
/**
|
|
2442
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2443
|
-
*/
|
|
2444
|
-
pageSize?: number;
|
|
2445
2626
|
/**
|
|
2446
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2447
2628
|
*/
|
|
2448
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;
|
|
2449
2634
|
/**
|
|
2450
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.
|
|
2451
2636
|
*/
|
|
@@ -2457,19 +2642,19 @@ declare class PrimaryNetworkService {
|
|
|
2457
2642
|
* @returns ListSubnetsResponse
|
|
2458
2643
|
* @throws ApiError
|
|
2459
2644
|
*/
|
|
2460
|
-
listSubnets({ network,
|
|
2645
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2461
2646
|
/**
|
|
2462
2647
|
* Either mainnet or a testnet.
|
|
2463
2648
|
*/
|
|
2464
2649
|
network: Network;
|
|
2465
|
-
/**
|
|
2466
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2467
|
-
*/
|
|
2468
|
-
pageSize?: number;
|
|
2469
2650
|
/**
|
|
2470
2651
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2471
2652
|
*/
|
|
2472
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;
|
|
2473
2658
|
/**
|
|
2474
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.
|
|
2475
2660
|
*/
|
|
@@ -2481,55 +2666,55 @@ declare class PrimaryNetworkService {
|
|
|
2481
2666
|
* @returns ListValidatorDetailsResponse
|
|
2482
2667
|
* @throws ApiError
|
|
2483
2668
|
*/
|
|
2484
|
-
listValidators({ network, pageSize,
|
|
2669
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2485
2670
|
/**
|
|
2486
2671
|
* Either mainnet or a testnet.
|
|
2487
2672
|
*/
|
|
2488
2673
|
network: Network;
|
|
2674
|
+
/**
|
|
2675
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2676
|
+
*/
|
|
2677
|
+
pageToken?: string;
|
|
2489
2678
|
/**
|
|
2490
2679
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2491
2680
|
*/
|
|
2492
2681
|
pageSize?: number;
|
|
2493
2682
|
/**
|
|
2494
|
-
* A
|
|
2683
|
+
* A comma separated list of node ids to filter by.
|
|
2495
2684
|
*/
|
|
2496
|
-
|
|
2685
|
+
nodeIds?: string;
|
|
2497
2686
|
/**
|
|
2498
|
-
* The
|
|
2687
|
+
* 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.
|
|
2499
2688
|
*/
|
|
2500
|
-
|
|
2689
|
+
sortOrder?: SortOrder;
|
|
2501
2690
|
/**
|
|
2502
|
-
*
|
|
2691
|
+
* Validation status of the node.
|
|
2503
2692
|
*/
|
|
2504
|
-
|
|
2693
|
+
validationStatus?: ValidationStatusType;
|
|
2505
2694
|
/**
|
|
2506
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
|
|
2507
2696
|
*/
|
|
2508
|
-
minDelegationCapacity?:
|
|
2697
|
+
minDelegationCapacity?: string;
|
|
2509
2698
|
/**
|
|
2510
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.
|
|
2511
2700
|
*/
|
|
2512
|
-
maxDelegationCapacity?:
|
|
2513
|
-
/**
|
|
2514
|
-
* 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.
|
|
2515
|
-
*/
|
|
2516
|
-
minFeePercentage?: any;
|
|
2701
|
+
maxDelegationCapacity?: string;
|
|
2517
2702
|
/**
|
|
2518
|
-
* The
|
|
2703
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2519
2704
|
*/
|
|
2520
|
-
|
|
2705
|
+
minTimeRemaining?: number;
|
|
2521
2706
|
/**
|
|
2522
|
-
*
|
|
2707
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2523
2708
|
*/
|
|
2524
|
-
|
|
2709
|
+
maxTimeRemaining?: number;
|
|
2525
2710
|
/**
|
|
2526
|
-
* The
|
|
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.
|
|
2527
2712
|
*/
|
|
2528
|
-
|
|
2713
|
+
minFeePercentage?: number;
|
|
2529
2714
|
/**
|
|
2530
|
-
*
|
|
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.
|
|
2531
2716
|
*/
|
|
2532
|
-
|
|
2717
|
+
maxFeePercentage?: number;
|
|
2533
2718
|
/**
|
|
2534
2719
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2535
2720
|
*/
|
|
@@ -2541,7 +2726,7 @@ declare class PrimaryNetworkService {
|
|
|
2541
2726
|
* @returns ListValidatorDetailsResponse
|
|
2542
2727
|
* @throws ApiError
|
|
2543
2728
|
*/
|
|
2544
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2729
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2545
2730
|
/**
|
|
2546
2731
|
* Either mainnet or a testnet.
|
|
2547
2732
|
*/
|
|
@@ -2550,14 +2735,14 @@ declare class PrimaryNetworkService {
|
|
|
2550
2735
|
* A primary network (P or X chain) nodeId.
|
|
2551
2736
|
*/
|
|
2552
2737
|
nodeId: string;
|
|
2553
|
-
/**
|
|
2554
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2555
|
-
*/
|
|
2556
|
-
pageSize?: number;
|
|
2557
2738
|
/**
|
|
2558
2739
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2559
2740
|
*/
|
|
2560
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;
|
|
2561
2746
|
/**
|
|
2562
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.
|
|
2563
2748
|
*/
|
|
@@ -2573,19 +2758,19 @@ declare class PrimaryNetworkService {
|
|
|
2573
2758
|
* @returns ListDelegatorDetailsResponse
|
|
2574
2759
|
* @throws ApiError
|
|
2575
2760
|
*/
|
|
2576
|
-
listDelegators({ network,
|
|
2761
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2577
2762
|
/**
|
|
2578
2763
|
* Either mainnet or a testnet.
|
|
2579
2764
|
*/
|
|
2580
2765
|
network: Network;
|
|
2581
|
-
/**
|
|
2582
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2583
|
-
*/
|
|
2584
|
-
pageSize?: number;
|
|
2585
2766
|
/**
|
|
2586
2767
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2587
2768
|
*/
|
|
2588
2769
|
pageToken?: string;
|
|
2770
|
+
/**
|
|
2771
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2772
|
+
*/
|
|
2773
|
+
pageSize?: number;
|
|
2589
2774
|
/**
|
|
2590
2775
|
* A comma separated list of reward addresses to filter by.
|
|
2591
2776
|
*/
|
|
@@ -2636,7 +2821,7 @@ type CChainSharedAssetBalance = {
|
|
|
2636
2821
|
/**
|
|
2637
2822
|
* Type of asset like SECP256K1 or NFT.
|
|
2638
2823
|
*/
|
|
2639
|
-
type:
|
|
2824
|
+
type: PrimaryNetworkAssetType;
|
|
2640
2825
|
/**
|
|
2641
2826
|
* Amount of the asset.
|
|
2642
2827
|
*/
|
|
@@ -2671,13 +2856,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2671
2856
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2672
2857
|
};
|
|
2673
2858
|
|
|
2674
|
-
type
|
|
2859
|
+
type Asset = {
|
|
2860
|
+
/**
|
|
2861
|
+
* Unique ID for an asset.
|
|
2862
|
+
*/
|
|
2675
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
|
+
*/
|
|
2676
2883
|
amount: string;
|
|
2677
2884
|
};
|
|
2678
2885
|
|
|
2679
2886
|
type PChainSharedAsset = {
|
|
2887
|
+
/**
|
|
2888
|
+
* Unique ID for an asset.
|
|
2889
|
+
*/
|
|
2680
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
|
+
*/
|
|
2681
2910
|
amount: string;
|
|
2682
2911
|
sharedWithChainId: string;
|
|
2683
2912
|
status: string;
|
|
@@ -2687,27 +2916,27 @@ type PChainBalance = {
|
|
|
2687
2916
|
/**
|
|
2688
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.
|
|
2689
2918
|
*/
|
|
2690
|
-
unlockedUnstaked: Array<
|
|
2919
|
+
unlockedUnstaked: Array<Asset>;
|
|
2691
2920
|
/**
|
|
2692
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.
|
|
2693
2922
|
*/
|
|
2694
|
-
unlockedStaked: Array<
|
|
2923
|
+
unlockedStaked: Array<Asset>;
|
|
2695
2924
|
/**
|
|
2696
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.
|
|
2697
2926
|
*/
|
|
2698
|
-
lockedPlatform: Array<
|
|
2927
|
+
lockedPlatform: Array<Asset>;
|
|
2699
2928
|
/**
|
|
2700
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.
|
|
2701
2930
|
*/
|
|
2702
|
-
lockedStakeable: Array<
|
|
2931
|
+
lockedStakeable: Array<Asset>;
|
|
2703
2932
|
/**
|
|
2704
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.
|
|
2705
2934
|
*/
|
|
2706
|
-
lockedStaked: Array<
|
|
2935
|
+
lockedStaked: Array<Asset>;
|
|
2707
2936
|
/**
|
|
2708
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.
|
|
2709
2938
|
*/
|
|
2710
|
-
pendingStaked: Array<
|
|
2939
|
+
pendingStaked: Array<Asset>;
|
|
2711
2940
|
/**
|
|
2712
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.
|
|
2713
2942
|
*/
|
|
@@ -2743,7 +2972,7 @@ type XChainAssetBalance = {
|
|
|
2743
2972
|
/**
|
|
2744
2973
|
* Type of asset like SECP256K1 or NFT.
|
|
2745
2974
|
*/
|
|
2746
|
-
type:
|
|
2975
|
+
type: PrimaryNetworkAssetType;
|
|
2747
2976
|
/**
|
|
2748
2977
|
* Amount of the asset.
|
|
2749
2978
|
*/
|
|
@@ -2771,7 +3000,7 @@ type XChainSharedAssetBalance = {
|
|
|
2771
3000
|
/**
|
|
2772
3001
|
* Type of asset like SECP256K1 or NFT.
|
|
2773
3002
|
*/
|
|
2774
|
-
type:
|
|
3003
|
+
type: PrimaryNetworkAssetType;
|
|
2775
3004
|
/**
|
|
2776
3005
|
* Amount of the asset.
|
|
2777
3006
|
*/
|
|
@@ -2846,6 +3075,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2846
3075
|
txCount: number;
|
|
2847
3076
|
transactions: Array<string>;
|
|
2848
3077
|
blockSizeBytes: number;
|
|
3078
|
+
currentSupply?: string;
|
|
2849
3079
|
proposerDetails?: ProposerDetails;
|
|
2850
3080
|
};
|
|
2851
3081
|
|
|
@@ -2858,6 +3088,7 @@ type PrimaryNetworkBlock = {
|
|
|
2858
3088
|
txCount: number;
|
|
2859
3089
|
transactions: Array<string>;
|
|
2860
3090
|
blockSizeBytes: number;
|
|
3091
|
+
currentSupply?: string;
|
|
2861
3092
|
proposerDetails?: ProposerDetails;
|
|
2862
3093
|
};
|
|
2863
3094
|
|
|
@@ -2899,7 +3130,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2899
3130
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2900
3131
|
* @throws ApiError
|
|
2901
3132
|
*/
|
|
2902
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3133
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2903
3134
|
/**
|
|
2904
3135
|
* A primary network blockchain id or alias.
|
|
2905
3136
|
*/
|
|
@@ -2912,14 +3143,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2912
3143
|
* A primary network (P or X chain) nodeId.
|
|
2913
3144
|
*/
|
|
2914
3145
|
nodeId: string;
|
|
2915
|
-
/**
|
|
2916
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2917
|
-
*/
|
|
2918
|
-
pageSize?: number;
|
|
2919
3146
|
/**
|
|
2920
3147
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2921
3148
|
*/
|
|
2922
3149
|
pageToken?: string;
|
|
3150
|
+
/**
|
|
3151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3152
|
+
*/
|
|
3153
|
+
pageSize?: number;
|
|
2923
3154
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2924
3155
|
/**
|
|
2925
3156
|
* List latest blocks
|
|
@@ -2927,7 +3158,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2927
3158
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2928
3159
|
* @throws ApiError
|
|
2929
3160
|
*/
|
|
2930
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3161
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2931
3162
|
/**
|
|
2932
3163
|
* A primary network blockchain id or alias.
|
|
2933
3164
|
*/
|
|
@@ -2936,17 +3167,48 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2936
3167
|
* Either mainnet or a testnet.
|
|
2937
3168
|
*/
|
|
2938
3169
|
network: Network;
|
|
2939
|
-
/**
|
|
2940
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2941
|
-
*/
|
|
2942
|
-
pageSize?: number;
|
|
2943
3170
|
/**
|
|
2944
3171
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2945
3172
|
*/
|
|
2946
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;
|
|
2947
3178
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2948
3179
|
}
|
|
2949
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
|
+
|
|
2950
3212
|
declare enum RewardType {
|
|
2951
3213
|
VALIDATOR = "VALIDATOR",
|
|
2952
3214
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2966,10 +3228,7 @@ type HistoricalReward = {
|
|
|
2966
3228
|
rewardType: RewardType;
|
|
2967
3229
|
utxoId: string;
|
|
2968
3230
|
outputIndex: number;
|
|
2969
|
-
|
|
2970
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2971
|
-
*/
|
|
2972
|
-
reward: PChainAsset;
|
|
3231
|
+
reward: AssetWithPriceInfo;
|
|
2973
3232
|
rewardTxHash: string;
|
|
2974
3233
|
};
|
|
2975
3234
|
|
|
@@ -2996,7 +3255,7 @@ type PendingReward = {
|
|
|
2996
3255
|
/**
|
|
2997
3256
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2998
3257
|
*/
|
|
2999
|
-
estimatedReward:
|
|
3258
|
+
estimatedReward: Asset;
|
|
3000
3259
|
};
|
|
3001
3260
|
|
|
3002
3261
|
type ListPendingRewardsResponse = {
|
|
@@ -3016,25 +3275,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3275
|
* @returns ListPendingRewardsResponse
|
|
3017
3276
|
* @throws ApiError
|
|
3018
3277
|
*/
|
|
3019
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3278
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3020
3279
|
/**
|
|
3021
3280
|
* Either mainnet or a testnet.
|
|
3022
3281
|
*/
|
|
3023
3282
|
network: Network;
|
|
3024
3283
|
/**
|
|
3025
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
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.
|
|
3026
3285
|
*/
|
|
3027
3286
|
addresses?: string;
|
|
3028
|
-
/**
|
|
3029
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3030
|
-
*/
|
|
3031
|
-
pageSize?: number;
|
|
3032
3287
|
/**
|
|
3033
3288
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3289
|
*/
|
|
3035
3290
|
pageToken?: string;
|
|
3036
3291
|
/**
|
|
3037
|
-
*
|
|
3292
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3293
|
+
*/
|
|
3294
|
+
pageSize?: number;
|
|
3295
|
+
/**
|
|
3296
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3038
3297
|
*/
|
|
3039
3298
|
nodeIds?: string;
|
|
3040
3299
|
/**
|
|
@@ -3048,68 +3307,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3048
3307
|
* @returns ListHistoricalRewardsResponse
|
|
3049
3308
|
* @throws ApiError
|
|
3050
3309
|
*/
|
|
3051
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3310
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3052
3311
|
/**
|
|
3053
3312
|
* Either mainnet or a testnet.
|
|
3054
3313
|
*/
|
|
3055
3314
|
network: Network;
|
|
3056
3315
|
/**
|
|
3057
|
-
* 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.
|
|
3058
3317
|
*/
|
|
3059
3318
|
addresses?: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3062
|
-
*/
|
|
3063
|
-
pageSize?: number;
|
|
3064
3319
|
/**
|
|
3065
3320
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3066
3321
|
*/
|
|
3067
3322
|
pageToken?: string;
|
|
3068
3323
|
/**
|
|
3069
|
-
*
|
|
3324
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3325
|
+
*/
|
|
3326
|
+
pageSize?: number;
|
|
3327
|
+
/**
|
|
3328
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3070
3329
|
*/
|
|
3071
3330
|
nodeIds?: string;
|
|
3072
3331
|
/**
|
|
3073
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.
|
|
3074
3333
|
*/
|
|
3075
3334
|
sortOrder?: SortOrder;
|
|
3335
|
+
/**
|
|
3336
|
+
* The currency that return values should use. Defaults to USD.
|
|
3337
|
+
*/
|
|
3338
|
+
currency?: CurrencyCode;
|
|
3076
3339
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3077
3340
|
}
|
|
3078
3341
|
|
|
3079
|
-
type Asset = {
|
|
3080
|
-
/**
|
|
3081
|
-
* Unique ID for an asset.
|
|
3082
|
-
*/
|
|
3083
|
-
assetId: string;
|
|
3084
|
-
/**
|
|
3085
|
-
* Name of this asset.
|
|
3086
|
-
*/
|
|
3087
|
-
name: string;
|
|
3088
|
-
/**
|
|
3089
|
-
* Symbol for this asset (max 4 characters).
|
|
3090
|
-
*/
|
|
3091
|
-
symbol: string;
|
|
3092
|
-
/**
|
|
3093
|
-
* Denomination of this asset to represent fungibility.
|
|
3094
|
-
*/
|
|
3095
|
-
denomination: number;
|
|
3096
|
-
/**
|
|
3097
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3098
|
-
*/
|
|
3099
|
-
type: string;
|
|
3100
|
-
/**
|
|
3101
|
-
* Amount of the asset.
|
|
3102
|
-
*/
|
|
3103
|
-
amount: string;
|
|
3104
|
-
};
|
|
3105
|
-
|
|
3106
3342
|
type UtxoCredential = {
|
|
3107
3343
|
/**
|
|
3108
|
-
* Signature provided to consume the output
|
|
3344
|
+
* Signature provided to consume the output.
|
|
3109
3345
|
*/
|
|
3110
3346
|
signature?: string;
|
|
3111
3347
|
/**
|
|
3112
|
-
* Public key associated with the signature
|
|
3348
|
+
* Public key associated with the signature.
|
|
3113
3349
|
*/
|
|
3114
3350
|
publicKey?: string;
|
|
3115
3351
|
};
|
|
@@ -3131,66 +3367,66 @@ type EVMInput = {
|
|
|
3131
3367
|
|
|
3132
3368
|
type Utxo = {
|
|
3133
3369
|
/**
|
|
3134
|
-
*
|
|
3370
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3135
3371
|
*/
|
|
3136
|
-
|
|
3372
|
+
addresses: Array<string>;
|
|
3137
3373
|
asset: Asset;
|
|
3138
3374
|
/**
|
|
3139
|
-
*
|
|
3375
|
+
* Blockchain ID on which this output is consumed on.
|
|
3140
3376
|
*/
|
|
3141
|
-
|
|
3377
|
+
consumedOnChainId: string;
|
|
3142
3378
|
/**
|
|
3143
|
-
*
|
|
3379
|
+
* Transaction ID that consumed this output.
|
|
3144
3380
|
*/
|
|
3145
|
-
|
|
3381
|
+
consumingTxHash?: string;
|
|
3146
3382
|
/**
|
|
3147
|
-
* Blockchain ID on which this output is
|
|
3383
|
+
* Blockchain ID on which this output is created on.
|
|
3148
3384
|
*/
|
|
3149
|
-
|
|
3385
|
+
createdOnChainId: string;
|
|
3150
3386
|
/**
|
|
3151
|
-
*
|
|
3387
|
+
* UTXO ID for this output.
|
|
3152
3388
|
*/
|
|
3153
|
-
|
|
3389
|
+
utxoId: string;
|
|
3154
3390
|
/**
|
|
3155
|
-
*
|
|
3391
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3156
3392
|
*/
|
|
3157
|
-
|
|
3393
|
+
consumingTxTimestamp?: number;
|
|
3158
3394
|
/**
|
|
3159
|
-
*
|
|
3395
|
+
* Transaction ID that created this output.
|
|
3160
3396
|
*/
|
|
3161
|
-
|
|
3397
|
+
creationTxHash: string;
|
|
3162
3398
|
/**
|
|
3163
|
-
*
|
|
3399
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3164
3400
|
*/
|
|
3165
|
-
|
|
3401
|
+
credentials?: Array<UtxoCredential>;
|
|
3166
3402
|
/**
|
|
3167
|
-
*
|
|
3403
|
+
* Index representing the minting set for the NFT mint output.
|
|
3168
3404
|
*/
|
|
3169
|
-
|
|
3405
|
+
groupId?: number;
|
|
3170
3406
|
/**
|
|
3171
3407
|
* Locktime in seconds after which this output can be consumed.
|
|
3172
3408
|
*/
|
|
3173
3409
|
locktime: number;
|
|
3174
3410
|
/**
|
|
3175
|
-
*
|
|
3411
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3176
3412
|
*/
|
|
3177
|
-
|
|
3413
|
+
outputIndex: string;
|
|
3178
3414
|
/**
|
|
3179
|
-
*
|
|
3415
|
+
* Hex encoded data for NFT assets.
|
|
3180
3416
|
*/
|
|
3181
|
-
|
|
3417
|
+
payload?: string;
|
|
3182
3418
|
/**
|
|
3183
|
-
*
|
|
3419
|
+
* Minimum number of signatures required to consume this output.
|
|
3184
3420
|
*/
|
|
3185
|
-
|
|
3421
|
+
threshold: number;
|
|
3186
3422
|
/**
|
|
3187
|
-
*
|
|
3423
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3188
3424
|
*/
|
|
3189
|
-
|
|
3425
|
+
timestamp: number;
|
|
3190
3426
|
/**
|
|
3191
|
-
*
|
|
3427
|
+
* Type of output.
|
|
3192
3428
|
*/
|
|
3193
|
-
|
|
3429
|
+
utxoType: string;
|
|
3194
3430
|
};
|
|
3195
3431
|
|
|
3196
3432
|
type CChainExportTransaction = {
|
|
@@ -3321,17 +3557,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3321
3557
|
|
|
3322
3558
|
declare enum PChainTransactionType {
|
|
3323
3559
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3324
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3325
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3326
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3327
3560
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3328
|
-
|
|
3329
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
3562
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3331
3563
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3332
3564
|
IMPORT_TX = "ImportTx",
|
|
3333
3565
|
EXPORT_TX = "ExportTx",
|
|
3334
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",
|
|
3335
3572
|
UNKNOWN = "UNKNOWN"
|
|
3336
3573
|
}
|
|
3337
3574
|
|
|
@@ -3342,29 +3579,48 @@ declare enum UtxoType {
|
|
|
3342
3579
|
|
|
3343
3580
|
type PChainUtxo = {
|
|
3344
3581
|
/**
|
|
3345
|
-
*
|
|
3582
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3346
3583
|
*/
|
|
3347
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
|
+
*/
|
|
3348
3601
|
utxoId: string;
|
|
3349
|
-
|
|
3350
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* @deprecated
|
|
3604
|
+
*/
|
|
3605
|
+
amount: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* @deprecated
|
|
3608
|
+
*/
|
|
3609
|
+
assetId: string;
|
|
3351
3610
|
blockNumber: string;
|
|
3352
3611
|
blockTimestamp: number;
|
|
3353
|
-
consumingTxHash?: string;
|
|
3354
|
-
consumingBlockTimestamp?: number;
|
|
3355
3612
|
consumingBlockNumber?: string;
|
|
3356
|
-
|
|
3357
|
-
utxoType: UtxoType;
|
|
3358
|
-
amount: string;
|
|
3359
|
-
stakeableLocktime?: number;
|
|
3613
|
+
consumingBlockTimestamp?: number;
|
|
3360
3614
|
platformLocktime?: number;
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3615
|
+
outputIndex: number;
|
|
3616
|
+
rewardType?: RewardType;
|
|
3617
|
+
stakeableLocktime?: number;
|
|
3364
3618
|
staked?: boolean;
|
|
3365
|
-
|
|
3619
|
+
threshold?: number;
|
|
3620
|
+
txHash: string;
|
|
3366
3621
|
utxoEndTimestamp?: number;
|
|
3367
|
-
|
|
3622
|
+
utxoStartTimestamp?: number;
|
|
3623
|
+
utxoType: UtxoType;
|
|
3368
3624
|
};
|
|
3369
3625
|
|
|
3370
3626
|
type PChainTransaction = {
|
|
@@ -3392,15 +3648,15 @@ type PChainTransaction = {
|
|
|
3392
3648
|
/**
|
|
3393
3649
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3394
3650
|
*/
|
|
3395
|
-
value: Array<
|
|
3651
|
+
value: Array<Asset>;
|
|
3396
3652
|
/**
|
|
3397
3653
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3398
3654
|
*/
|
|
3399
|
-
amountBurned: Array<
|
|
3655
|
+
amountBurned: Array<Asset>;
|
|
3400
3656
|
/**
|
|
3401
3657
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3402
3658
|
*/
|
|
3403
|
-
amountStaked: Array<
|
|
3659
|
+
amountStaked: Array<Asset>;
|
|
3404
3660
|
/**
|
|
3405
3661
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3406
3662
|
*/
|
|
@@ -3443,6 +3699,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3443
3699
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3444
3700
|
};
|
|
3445
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
|
+
|
|
3446
3711
|
type XChainLinearTransaction = {
|
|
3447
3712
|
/**
|
|
3448
3713
|
* Unique ID for this transaction.
|
|
@@ -3459,7 +3724,7 @@ type XChainLinearTransaction = {
|
|
|
3459
3724
|
/**
|
|
3460
3725
|
* Type of transaction.
|
|
3461
3726
|
*/
|
|
3462
|
-
txType:
|
|
3727
|
+
txType: XChainTransactionType;
|
|
3463
3728
|
/**
|
|
3464
3729
|
* Hex encoded memo bytes for this transaction.
|
|
3465
3730
|
*/
|
|
@@ -3536,7 +3801,7 @@ type XChainNonLinearTransaction = {
|
|
|
3536
3801
|
/**
|
|
3537
3802
|
* Type of transaction.
|
|
3538
3803
|
*/
|
|
3539
|
-
txType:
|
|
3804
|
+
txType: XChainTransactionType;
|
|
3540
3805
|
/**
|
|
3541
3806
|
* Hex encoded memo bytes for this transaction.
|
|
3542
3807
|
*/
|
|
@@ -3594,17 +3859,18 @@ declare enum PChainId {
|
|
|
3594
3859
|
|
|
3595
3860
|
declare enum PrimaryNetworkTxType {
|
|
3596
3861
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3597
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3598
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3599
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3600
3862
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3601
|
-
|
|
3602
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3603
3864
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3604
3865
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3605
3866
|
IMPORT_TX = "ImportTx",
|
|
3606
3867
|
EXPORT_TX = "ExportTx",
|
|
3607
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",
|
|
3608
3874
|
UNKNOWN = "UNKNOWN",
|
|
3609
3875
|
BASE_TX = "BaseTx",
|
|
3610
3876
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3638,13 +3904,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3638
3904
|
* List latest transactions
|
|
3639
3905
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3640
3906
|
*
|
|
3641
|
-
* Transactions are filterable by addresses.
|
|
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.
|
|
3642
3908
|
*
|
|
3643
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.
|
|
3644
3910
|
* @returns any
|
|
3645
3911
|
* @throws ApiError
|
|
3646
3912
|
*/
|
|
3647
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3648
3914
|
/**
|
|
3649
3915
|
* A primary network blockchain id or alias.
|
|
3650
3916
|
*/
|
|
@@ -3669,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3669
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3670
3936
|
*/
|
|
3671
3937
|
endTimestamp?: number;
|
|
3672
|
-
/**
|
|
3673
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3674
|
-
*/
|
|
3675
|
-
pageSize?: number;
|
|
3676
3938
|
/**
|
|
3677
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3678
3940
|
*/
|
|
3679
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;
|
|
3680
3946
|
/**
|
|
3681
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.
|
|
3682
3948
|
*/
|
|
@@ -3688,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3688
3954
|
* @returns ListPChainTransactionsResponse
|
|
3689
3955
|
* @throws ApiError
|
|
3690
3956
|
*/
|
|
3691
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3692
3958
|
/**
|
|
3693
3959
|
* A primary network blockchain id or alias.
|
|
3694
3960
|
*/
|
|
@@ -3713,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3713
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3714
3980
|
*/
|
|
3715
3981
|
endTimestamp?: number;
|
|
3716
|
-
/**
|
|
3717
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3718
|
-
*/
|
|
3719
|
-
pageSize?: number;
|
|
3720
3982
|
/**
|
|
3721
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3722
3984
|
*/
|
|
3723
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;
|
|
3724
3990
|
/**
|
|
3725
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.
|
|
3726
3992
|
*/
|
|
@@ -3732,7 +3998,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3732
3998
|
* @returns ListXChainTransactionsResponse
|
|
3733
3999
|
* @throws ApiError
|
|
3734
4000
|
*/
|
|
3735
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4001
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3736
4002
|
/**
|
|
3737
4003
|
* A primary network blockchain id or alias.
|
|
3738
4004
|
*/
|
|
@@ -3757,14 +4023,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3757
4023
|
* Query param for retrieving items before a specific timestamp.
|
|
3758
4024
|
*/
|
|
3759
4025
|
endTimestamp?: number;
|
|
3760
|
-
/**
|
|
3761
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3762
|
-
*/
|
|
3763
|
-
pageSize?: number;
|
|
3764
4026
|
/**
|
|
3765
4027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3766
4028
|
*/
|
|
3767
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;
|
|
3768
4034
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3769
4035
|
}
|
|
3770
4036
|
|
|
@@ -3795,7 +4061,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3795
4061
|
* @returns any
|
|
3796
4062
|
* @throws ApiError
|
|
3797
4063
|
*/
|
|
3798
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4064
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3799
4065
|
/**
|
|
3800
4066
|
* A primary network blockchain id or alias.
|
|
3801
4067
|
*/
|
|
@@ -3808,14 +4074,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3808
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".
|
|
3809
4075
|
*/
|
|
3810
4076
|
addresses?: string;
|
|
3811
|
-
/**
|
|
3812
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3813
|
-
*/
|
|
3814
|
-
pageSize?: number;
|
|
3815
4077
|
/**
|
|
3816
4078
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3817
4079
|
*/
|
|
3818
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;
|
|
3819
4085
|
/**
|
|
3820
4086
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3821
4087
|
*/
|
|
@@ -3860,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3860
4126
|
* @returns ListXChainVerticesResponse
|
|
3861
4127
|
* @throws ApiError
|
|
3862
4128
|
*/
|
|
3863
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4129
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3864
4130
|
/**
|
|
3865
4131
|
* A primary network blockchain id or alias.
|
|
3866
4132
|
*/
|
|
@@ -3869,14 +4135,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3869
4135
|
* Either mainnet or a testnet.
|
|
3870
4136
|
*/
|
|
3871
4137
|
network: Network;
|
|
3872
|
-
/**
|
|
3873
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3874
|
-
*/
|
|
3875
|
-
pageSize?: number;
|
|
3876
4138
|
/**
|
|
3877
4139
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3878
4140
|
*/
|
|
3879
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;
|
|
3880
4146
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3881
4147
|
/**
|
|
3882
4148
|
* Get vertex
|
|
@@ -3904,7 +4170,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3904
4170
|
* @returns ListXChainVerticesResponse
|
|
3905
4171
|
* @throws ApiError
|
|
3906
4172
|
*/
|
|
3907
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4173
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3908
4174
|
/**
|
|
3909
4175
|
* The height of a vertex.
|
|
3910
4176
|
*/
|
|
@@ -3917,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3917
4183
|
* Either mainnet or a testnet.
|
|
3918
4184
|
*/
|
|
3919
4185
|
network: Network;
|
|
3920
|
-
/**
|
|
3921
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3922
|
-
*/
|
|
3923
|
-
pageSize?: number;
|
|
3924
4186
|
/**
|
|
3925
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3926
4188
|
*/
|
|
3927
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;
|
|
3928
4194
|
/**
|
|
3929
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.
|
|
3930
4196
|
*/
|
|
@@ -3971,4 +4237,4 @@ declare class ApiError extends Error {
|
|
|
3971
4237
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3972
4238
|
}
|
|
3973
4239
|
|
|
3974
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, 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, 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, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, 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 };
|