@avalabs/glacier-sdk 2.8.0-canary.f6c173d.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 +600 -302
- package/dist/index.js +238 -114
- 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/ListNftTokens.d.ts +12 -0
- 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 +27 -2
- package/esm/generated/services/NfTsService.js +19 -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 +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 +14 -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
|
*/
|
|
@@ -1886,6 +2042,14 @@ declare class HealthCheckService {
|
|
|
1886
2042
|
}>;
|
|
1887
2043
|
}
|
|
1888
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
|
+
|
|
1889
2053
|
declare class NfTsService {
|
|
1890
2054
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
2055
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +2061,7 @@ declare class NfTsService {
|
|
|
1897
2061
|
*/
|
|
1898
2062
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
2063
|
/**
|
|
1900
|
-
* 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.
|
|
1901
2065
|
*/
|
|
1902
2066
|
chainId: string;
|
|
1903
2067
|
/**
|
|
@@ -1909,6 +2073,30 @@ declare class NfTsService {
|
|
|
1909
2073
|
*/
|
|
1910
2074
|
tokenId: string;
|
|
1911
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>;
|
|
1912
2100
|
/**
|
|
1913
2101
|
* Get token details
|
|
1914
2102
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +2105,7 @@ declare class NfTsService {
|
|
|
1917
2105
|
*/
|
|
1918
2106
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
2107
|
/**
|
|
1920
|
-
* 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.
|
|
1921
2109
|
*/
|
|
1922
2110
|
chainId: string;
|
|
1923
2111
|
/**
|
|
@@ -2025,17 +2213,6 @@ type OperationStatusResponse = {
|
|
|
2025
2213
|
declare class OperationsService {
|
|
2026
2214
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2215
|
constructor(httpRequest: BaseHttpRequest);
|
|
2028
|
-
/**
|
|
2029
|
-
* Create transaction export operation
|
|
2030
|
-
* Trigger a transaction export operation with given parameters.
|
|
2031
|
-
*
|
|
2032
|
-
* 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.
|
|
2033
|
-
* @returns OperationStatusResponse
|
|
2034
|
-
* @throws ApiError
|
|
2035
|
-
*/
|
|
2036
|
-
postTransactionExportJob({ requestBody, }: {
|
|
2037
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2038
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
2039
2216
|
/**
|
|
2040
2217
|
* Get operation
|
|
2041
2218
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2225,17 @@ declare class OperationsService {
|
|
|
2048
2225
|
*/
|
|
2049
2226
|
operationId: string;
|
|
2050
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>;
|
|
2051
2239
|
}
|
|
2052
2240
|
|
|
2053
2241
|
declare enum BlockchainIds {
|
|
@@ -2285,6 +2473,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2473
|
}
|
|
2286
2474
|
}
|
|
2287
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
|
+
|
|
2288
2494
|
type ListValidatorDetailsResponse = {
|
|
2289
2495
|
/**
|
|
2290
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.
|
|
@@ -2293,7 +2499,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2499
|
/**
|
|
2294
2500
|
* The list of validator Details.
|
|
2295
2501
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2502
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2503
|
};
|
|
2298
2504
|
|
|
2299
2505
|
declare enum Network {
|
|
@@ -2304,7 +2510,18 @@ declare enum Network {
|
|
|
2304
2510
|
declare enum ValidationStatusType {
|
|
2305
2511
|
COMPLETED = "completed",
|
|
2306
2512
|
ACTIVE = "active",
|
|
2307
|
-
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"
|
|
2308
2525
|
}
|
|
2309
2526
|
|
|
2310
2527
|
type XChainAssetDetails = {
|
|
@@ -2327,15 +2544,15 @@ type XChainAssetDetails = {
|
|
|
2327
2544
|
/**
|
|
2328
2545
|
* Type of asset like SECP256K1 or NFT.
|
|
2329
2546
|
*/
|
|
2330
|
-
type:
|
|
2547
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2548
|
/**
|
|
2332
2549
|
* Timestamp in seconds this asset was created on.
|
|
2333
2550
|
*/
|
|
2334
2551
|
createdAtTimestamp: number;
|
|
2335
2552
|
/**
|
|
2336
|
-
* Cap represents if an asset
|
|
2553
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2337
2554
|
*/
|
|
2338
|
-
cap:
|
|
2555
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2556
|
};
|
|
2340
2557
|
|
|
2341
2558
|
declare enum XChainId {
|
|
@@ -2401,23 +2618,23 @@ declare class PrimaryNetworkService {
|
|
|
2401
2618
|
* @returns ListBlockchainsResponse
|
|
2402
2619
|
* @throws ApiError
|
|
2403
2620
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2621
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2622
|
/**
|
|
2406
2623
|
* Either mainnet or a testnet.
|
|
2407
2624
|
*/
|
|
2408
2625
|
network: Network;
|
|
2409
|
-
/**
|
|
2410
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2411
|
-
*/
|
|
2412
|
-
pageSize?: number;
|
|
2413
2626
|
/**
|
|
2414
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2628
|
*/
|
|
2416
2629
|
pageToken?: string;
|
|
2417
2630
|
/**
|
|
2418
|
-
* The
|
|
2631
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2419
2632
|
*/
|
|
2420
|
-
|
|
2633
|
+
pageSize?: number;
|
|
2634
|
+
/**
|
|
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.
|
|
2636
|
+
*/
|
|
2637
|
+
sortOrder?: SortOrder;
|
|
2421
2638
|
}): CancelablePromise<ListBlockchainsResponse>;
|
|
2422
2639
|
/**
|
|
2423
2640
|
* List subnets
|
|
@@ -2425,19 +2642,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2642
|
* @returns ListSubnetsResponse
|
|
2426
2643
|
* @throws ApiError
|
|
2427
2644
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2645
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2646
|
/**
|
|
2430
2647
|
* Either mainnet or a testnet.
|
|
2431
2648
|
*/
|
|
2432
2649
|
network: Network;
|
|
2433
|
-
/**
|
|
2434
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2435
|
-
*/
|
|
2436
|
-
pageSize?: number;
|
|
2437
2650
|
/**
|
|
2438
2651
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2439
2652
|
*/
|
|
2440
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;
|
|
2441
2658
|
/**
|
|
2442
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.
|
|
2443
2660
|
*/
|
|
@@ -2449,55 +2666,55 @@ declare class PrimaryNetworkService {
|
|
|
2449
2666
|
* @returns ListValidatorDetailsResponse
|
|
2450
2667
|
* @throws ApiError
|
|
2451
2668
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2669
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2670
|
/**
|
|
2454
2671
|
* Either mainnet or a testnet.
|
|
2455
2672
|
*/
|
|
2456
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;
|
|
2457
2678
|
/**
|
|
2458
2679
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
2680
|
*/
|
|
2460
2681
|
pageSize?: number;
|
|
2461
2682
|
/**
|
|
2462
|
-
* A
|
|
2683
|
+
* A comma separated list of node ids to filter by.
|
|
2463
2684
|
*/
|
|
2464
|
-
|
|
2685
|
+
nodeIds?: string;
|
|
2465
2686
|
/**
|
|
2466
|
-
* 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.
|
|
2467
2688
|
*/
|
|
2468
|
-
|
|
2689
|
+
sortOrder?: SortOrder;
|
|
2469
2690
|
/**
|
|
2470
|
-
*
|
|
2691
|
+
* Validation status of the node.
|
|
2471
2692
|
*/
|
|
2472
|
-
|
|
2693
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2694
|
/**
|
|
2474
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
|
|
2475
2696
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2697
|
+
minDelegationCapacity?: string;
|
|
2477
2698
|
/**
|
|
2478
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.
|
|
2479
2700
|
*/
|
|
2480
|
-
maxDelegationCapacity?:
|
|
2481
|
-
/**
|
|
2482
|
-
* 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.
|
|
2483
|
-
*/
|
|
2484
|
-
minFeePercentage?: any;
|
|
2701
|
+
maxDelegationCapacity?: string;
|
|
2485
2702
|
/**
|
|
2486
|
-
* The
|
|
2703
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2704
|
*/
|
|
2488
|
-
|
|
2705
|
+
minTimeRemaining?: number;
|
|
2489
2706
|
/**
|
|
2490
|
-
*
|
|
2707
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2708
|
*/
|
|
2492
|
-
|
|
2709
|
+
maxTimeRemaining?: number;
|
|
2493
2710
|
/**
|
|
2494
|
-
* 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.
|
|
2495
2712
|
*/
|
|
2496
|
-
|
|
2713
|
+
minFeePercentage?: number;
|
|
2497
2714
|
/**
|
|
2498
|
-
*
|
|
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.
|
|
2499
2716
|
*/
|
|
2500
|
-
|
|
2717
|
+
maxFeePercentage?: number;
|
|
2501
2718
|
/**
|
|
2502
2719
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2720
|
*/
|
|
@@ -2509,7 +2726,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2726
|
* @returns ListValidatorDetailsResponse
|
|
2510
2727
|
* @throws ApiError
|
|
2511
2728
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2729
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2730
|
/**
|
|
2514
2731
|
* Either mainnet or a testnet.
|
|
2515
2732
|
*/
|
|
@@ -2518,14 +2735,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2735
|
* A primary network (P or X chain) nodeId.
|
|
2519
2736
|
*/
|
|
2520
2737
|
nodeId: string;
|
|
2521
|
-
/**
|
|
2522
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2523
|
-
*/
|
|
2524
|
-
pageSize?: number;
|
|
2525
2738
|
/**
|
|
2526
2739
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2740
|
*/
|
|
2528
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;
|
|
2529
2746
|
/**
|
|
2530
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.
|
|
2531
2748
|
*/
|
|
@@ -2541,19 +2758,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2758
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2759
|
* @throws ApiError
|
|
2543
2760
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2761
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2762
|
/**
|
|
2546
2763
|
* Either mainnet or a testnet.
|
|
2547
2764
|
*/
|
|
2548
2765
|
network: Network;
|
|
2549
|
-
/**
|
|
2550
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2551
|
-
*/
|
|
2552
|
-
pageSize?: number;
|
|
2553
2766
|
/**
|
|
2554
2767
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2768
|
*/
|
|
2556
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;
|
|
2557
2774
|
/**
|
|
2558
2775
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2776
|
*/
|
|
@@ -2604,7 +2821,7 @@ type CChainSharedAssetBalance = {
|
|
|
2604
2821
|
/**
|
|
2605
2822
|
* Type of asset like SECP256K1 or NFT.
|
|
2606
2823
|
*/
|
|
2607
|
-
type:
|
|
2824
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2825
|
/**
|
|
2609
2826
|
* Amount of the asset.
|
|
2610
2827
|
*/
|
|
@@ -2639,13 +2856,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2856
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2857
|
};
|
|
2641
2858
|
|
|
2642
|
-
type
|
|
2859
|
+
type Asset = {
|
|
2860
|
+
/**
|
|
2861
|
+
* Unique ID for an asset.
|
|
2862
|
+
*/
|
|
2643
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
|
+
*/
|
|
2644
2883
|
amount: string;
|
|
2645
2884
|
};
|
|
2646
2885
|
|
|
2647
2886
|
type PChainSharedAsset = {
|
|
2887
|
+
/**
|
|
2888
|
+
* Unique ID for an asset.
|
|
2889
|
+
*/
|
|
2648
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
|
+
*/
|
|
2649
2910
|
amount: string;
|
|
2650
2911
|
sharedWithChainId: string;
|
|
2651
2912
|
status: string;
|
|
@@ -2655,27 +2916,27 @@ type PChainBalance = {
|
|
|
2655
2916
|
/**
|
|
2656
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.
|
|
2657
2918
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2919
|
+
unlockedUnstaked: Array<Asset>;
|
|
2659
2920
|
/**
|
|
2660
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.
|
|
2661
2922
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2923
|
+
unlockedStaked: Array<Asset>;
|
|
2663
2924
|
/**
|
|
2664
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.
|
|
2665
2926
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2927
|
+
lockedPlatform: Array<Asset>;
|
|
2667
2928
|
/**
|
|
2668
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.
|
|
2669
2930
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2931
|
+
lockedStakeable: Array<Asset>;
|
|
2671
2932
|
/**
|
|
2672
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.
|
|
2673
2934
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2935
|
+
lockedStaked: Array<Asset>;
|
|
2675
2936
|
/**
|
|
2676
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.
|
|
2677
2938
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2939
|
+
pendingStaked: Array<Asset>;
|
|
2679
2940
|
/**
|
|
2680
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.
|
|
2681
2942
|
*/
|
|
@@ -2711,7 +2972,7 @@ type XChainAssetBalance = {
|
|
|
2711
2972
|
/**
|
|
2712
2973
|
* Type of asset like SECP256K1 or NFT.
|
|
2713
2974
|
*/
|
|
2714
|
-
type:
|
|
2975
|
+
type: PrimaryNetworkAssetType;
|
|
2715
2976
|
/**
|
|
2716
2977
|
* Amount of the asset.
|
|
2717
2978
|
*/
|
|
@@ -2739,7 +3000,7 @@ type XChainSharedAssetBalance = {
|
|
|
2739
3000
|
/**
|
|
2740
3001
|
* Type of asset like SECP256K1 or NFT.
|
|
2741
3002
|
*/
|
|
2742
|
-
type:
|
|
3003
|
+
type: PrimaryNetworkAssetType;
|
|
2743
3004
|
/**
|
|
2744
3005
|
* Amount of the asset.
|
|
2745
3006
|
*/
|
|
@@ -2814,6 +3075,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
3075
|
txCount: number;
|
|
2815
3076
|
transactions: Array<string>;
|
|
2816
3077
|
blockSizeBytes: number;
|
|
3078
|
+
currentSupply?: string;
|
|
2817
3079
|
proposerDetails?: ProposerDetails;
|
|
2818
3080
|
};
|
|
2819
3081
|
|
|
@@ -2826,6 +3088,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3088
|
txCount: number;
|
|
2827
3089
|
transactions: Array<string>;
|
|
2828
3090
|
blockSizeBytes: number;
|
|
3091
|
+
currentSupply?: string;
|
|
2829
3092
|
proposerDetails?: ProposerDetails;
|
|
2830
3093
|
};
|
|
2831
3094
|
|
|
@@ -2867,7 +3130,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3130
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3131
|
* @throws ApiError
|
|
2869
3132
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3133
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3134
|
/**
|
|
2872
3135
|
* A primary network blockchain id or alias.
|
|
2873
3136
|
*/
|
|
@@ -2880,14 +3143,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3143
|
* A primary network (P or X chain) nodeId.
|
|
2881
3144
|
*/
|
|
2882
3145
|
nodeId: string;
|
|
2883
|
-
/**
|
|
2884
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2885
|
-
*/
|
|
2886
|
-
pageSize?: number;
|
|
2887
3146
|
/**
|
|
2888
3147
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3148
|
*/
|
|
2890
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;
|
|
2891
3154
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3155
|
/**
|
|
2893
3156
|
* List latest blocks
|
|
@@ -2895,7 +3158,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3158
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3159
|
* @throws ApiError
|
|
2897
3160
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3161
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3162
|
/**
|
|
2900
3163
|
* A primary network blockchain id or alias.
|
|
2901
3164
|
*/
|
|
@@ -2904,17 +3167,48 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3167
|
* Either mainnet or a testnet.
|
|
2905
3168
|
*/
|
|
2906
3169
|
network: Network;
|
|
2907
|
-
/**
|
|
2908
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2909
|
-
*/
|
|
2910
|
-
pageSize?: number;
|
|
2911
3170
|
/**
|
|
2912
3171
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3172
|
*/
|
|
2914
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;
|
|
2915
3178
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3179
|
}
|
|
2917
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
|
+
|
|
2918
3212
|
declare enum RewardType {
|
|
2919
3213
|
VALIDATOR = "VALIDATOR",
|
|
2920
3214
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3228,7 @@ type HistoricalReward = {
|
|
|
2934
3228
|
rewardType: RewardType;
|
|
2935
3229
|
utxoId: string;
|
|
2936
3230
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3231
|
+
reward: AssetWithPriceInfo;
|
|
2941
3232
|
rewardTxHash: string;
|
|
2942
3233
|
};
|
|
2943
3234
|
|
|
@@ -2964,7 +3255,7 @@ type PendingReward = {
|
|
|
2964
3255
|
/**
|
|
2965
3256
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2966
3257
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3258
|
+
estimatedReward: Asset;
|
|
2968
3259
|
};
|
|
2969
3260
|
|
|
2970
3261
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3275,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3275
|
* @returns ListPendingRewardsResponse
|
|
2985
3276
|
* @throws ApiError
|
|
2986
3277
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3278
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3279
|
/**
|
|
2989
3280
|
* Either mainnet or a testnet.
|
|
2990
3281
|
*/
|
|
2991
3282
|
network: Network;
|
|
2992
3283
|
/**
|
|
2993
|
-
* 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.
|
|
2994
3285
|
*/
|
|
2995
3286
|
addresses?: string;
|
|
2996
|
-
/**
|
|
2997
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2998
|
-
*/
|
|
2999
|
-
pageSize?: number;
|
|
3000
3287
|
/**
|
|
3001
3288
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3289
|
*/
|
|
3003
3290
|
pageToken?: string;
|
|
3004
3291
|
/**
|
|
3005
|
-
*
|
|
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.
|
|
3006
3297
|
*/
|
|
3007
3298
|
nodeIds?: string;
|
|
3008
3299
|
/**
|
|
@@ -3016,68 +3307,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3307
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3308
|
* @throws ApiError
|
|
3018
3309
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3310
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3311
|
/**
|
|
3021
3312
|
* Either mainnet or a testnet.
|
|
3022
3313
|
*/
|
|
3023
3314
|
network: Network;
|
|
3024
3315
|
/**
|
|
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".
|
|
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.
|
|
3026
3317
|
*/
|
|
3027
3318
|
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
3319
|
/**
|
|
3033
3320
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3321
|
*/
|
|
3035
3322
|
pageToken?: string;
|
|
3036
3323
|
/**
|
|
3037
|
-
*
|
|
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.
|
|
3038
3329
|
*/
|
|
3039
3330
|
nodeIds?: string;
|
|
3040
3331
|
/**
|
|
3041
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.
|
|
3042
3333
|
*/
|
|
3043
3334
|
sortOrder?: SortOrder;
|
|
3335
|
+
/**
|
|
3336
|
+
* The currency that return values should use. Defaults to USD.
|
|
3337
|
+
*/
|
|
3338
|
+
currency?: CurrencyCode;
|
|
3044
3339
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3340
|
}
|
|
3046
3341
|
|
|
3047
|
-
type Asset = {
|
|
3048
|
-
/**
|
|
3049
|
-
* Unique ID for an asset.
|
|
3050
|
-
*/
|
|
3051
|
-
assetId: string;
|
|
3052
|
-
/**
|
|
3053
|
-
* Name of this asset.
|
|
3054
|
-
*/
|
|
3055
|
-
name: string;
|
|
3056
|
-
/**
|
|
3057
|
-
* Symbol for this asset (max 4 characters).
|
|
3058
|
-
*/
|
|
3059
|
-
symbol: string;
|
|
3060
|
-
/**
|
|
3061
|
-
* Denomination of this asset to represent fungibility.
|
|
3062
|
-
*/
|
|
3063
|
-
denomination: number;
|
|
3064
|
-
/**
|
|
3065
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3066
|
-
*/
|
|
3067
|
-
type: string;
|
|
3068
|
-
/**
|
|
3069
|
-
* Amount of the asset.
|
|
3070
|
-
*/
|
|
3071
|
-
amount: string;
|
|
3072
|
-
};
|
|
3073
|
-
|
|
3074
3342
|
type UtxoCredential = {
|
|
3075
3343
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3344
|
+
* Signature provided to consume the output.
|
|
3077
3345
|
*/
|
|
3078
3346
|
signature?: string;
|
|
3079
3347
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3348
|
+
* Public key associated with the signature.
|
|
3081
3349
|
*/
|
|
3082
3350
|
publicKey?: string;
|
|
3083
3351
|
};
|
|
@@ -3099,66 +3367,66 @@ type EVMInput = {
|
|
|
3099
3367
|
|
|
3100
3368
|
type Utxo = {
|
|
3101
3369
|
/**
|
|
3102
|
-
*
|
|
3370
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3371
|
*/
|
|
3104
|
-
|
|
3372
|
+
addresses: Array<string>;
|
|
3105
3373
|
asset: Asset;
|
|
3106
3374
|
/**
|
|
3107
|
-
*
|
|
3375
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3376
|
*/
|
|
3109
|
-
|
|
3377
|
+
consumedOnChainId: string;
|
|
3110
3378
|
/**
|
|
3111
|
-
*
|
|
3379
|
+
* Transaction ID that consumed this output.
|
|
3112
3380
|
*/
|
|
3113
|
-
|
|
3381
|
+
consumingTxHash?: string;
|
|
3114
3382
|
/**
|
|
3115
|
-
* Blockchain ID on which this output is
|
|
3383
|
+
* Blockchain ID on which this output is created on.
|
|
3116
3384
|
*/
|
|
3117
|
-
|
|
3385
|
+
createdOnChainId: string;
|
|
3118
3386
|
/**
|
|
3119
|
-
*
|
|
3387
|
+
* UTXO ID for this output.
|
|
3120
3388
|
*/
|
|
3121
|
-
|
|
3389
|
+
utxoId: string;
|
|
3122
3390
|
/**
|
|
3123
|
-
*
|
|
3391
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3124
3392
|
*/
|
|
3125
|
-
|
|
3393
|
+
consumingTxTimestamp?: number;
|
|
3126
3394
|
/**
|
|
3127
|
-
*
|
|
3395
|
+
* Transaction ID that created this output.
|
|
3128
3396
|
*/
|
|
3129
|
-
|
|
3397
|
+
creationTxHash: string;
|
|
3130
3398
|
/**
|
|
3131
|
-
*
|
|
3399
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3132
3400
|
*/
|
|
3133
|
-
|
|
3401
|
+
credentials?: Array<UtxoCredential>;
|
|
3134
3402
|
/**
|
|
3135
|
-
*
|
|
3403
|
+
* Index representing the minting set for the NFT mint output.
|
|
3136
3404
|
*/
|
|
3137
|
-
|
|
3405
|
+
groupId?: number;
|
|
3138
3406
|
/**
|
|
3139
3407
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3408
|
*/
|
|
3141
3409
|
locktime: number;
|
|
3142
3410
|
/**
|
|
3143
|
-
*
|
|
3411
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3412
|
*/
|
|
3145
|
-
|
|
3413
|
+
outputIndex: string;
|
|
3146
3414
|
/**
|
|
3147
|
-
*
|
|
3415
|
+
* Hex encoded data for NFT assets.
|
|
3148
3416
|
*/
|
|
3149
|
-
|
|
3417
|
+
payload?: string;
|
|
3150
3418
|
/**
|
|
3151
|
-
*
|
|
3419
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3420
|
*/
|
|
3153
|
-
|
|
3421
|
+
threshold: number;
|
|
3154
3422
|
/**
|
|
3155
|
-
*
|
|
3423
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3424
|
*/
|
|
3157
|
-
|
|
3425
|
+
timestamp: number;
|
|
3158
3426
|
/**
|
|
3159
|
-
*
|
|
3427
|
+
* Type of output.
|
|
3160
3428
|
*/
|
|
3161
|
-
|
|
3429
|
+
utxoType: string;
|
|
3162
3430
|
};
|
|
3163
3431
|
|
|
3164
3432
|
type CChainExportTransaction = {
|
|
@@ -3289,17 +3557,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3557
|
|
|
3290
3558
|
declare enum PChainTransactionType {
|
|
3291
3559
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3560
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3562
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3563
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3564
|
IMPORT_TX = "ImportTx",
|
|
3301
3565
|
EXPORT_TX = "ExportTx",
|
|
3302
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",
|
|
3303
3572
|
UNKNOWN = "UNKNOWN"
|
|
3304
3573
|
}
|
|
3305
3574
|
|
|
@@ -3310,29 +3579,48 @@ declare enum UtxoType {
|
|
|
3310
3579
|
|
|
3311
3580
|
type PChainUtxo = {
|
|
3312
3581
|
/**
|
|
3313
|
-
*
|
|
3582
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3583
|
*/
|
|
3315
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
|
+
*/
|
|
3316
3601
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* @deprecated
|
|
3604
|
+
*/
|
|
3605
|
+
amount: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* @deprecated
|
|
3608
|
+
*/
|
|
3609
|
+
assetId: string;
|
|
3319
3610
|
blockNumber: string;
|
|
3320
3611
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3612
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3613
|
+
consumingBlockTimestamp?: number;
|
|
3328
3614
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3615
|
+
outputIndex: number;
|
|
3616
|
+
rewardType?: RewardType;
|
|
3617
|
+
stakeableLocktime?: number;
|
|
3332
3618
|
staked?: boolean;
|
|
3333
|
-
|
|
3619
|
+
threshold?: number;
|
|
3620
|
+
txHash: string;
|
|
3334
3621
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3622
|
+
utxoStartTimestamp?: number;
|
|
3623
|
+
utxoType: UtxoType;
|
|
3336
3624
|
};
|
|
3337
3625
|
|
|
3338
3626
|
type PChainTransaction = {
|
|
@@ -3360,15 +3648,15 @@ type PChainTransaction = {
|
|
|
3360
3648
|
/**
|
|
3361
3649
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3362
3650
|
*/
|
|
3363
|
-
value: Array<
|
|
3651
|
+
value: Array<Asset>;
|
|
3364
3652
|
/**
|
|
3365
3653
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3366
3654
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3655
|
+
amountBurned: Array<Asset>;
|
|
3368
3656
|
/**
|
|
3369
3657
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3658
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3659
|
+
amountStaked: Array<Asset>;
|
|
3372
3660
|
/**
|
|
3373
3661
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3662
|
*/
|
|
@@ -3411,6 +3699,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3699
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3700
|
};
|
|
3413
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
|
+
|
|
3414
3711
|
type XChainLinearTransaction = {
|
|
3415
3712
|
/**
|
|
3416
3713
|
* Unique ID for this transaction.
|
|
@@ -3427,7 +3724,7 @@ type XChainLinearTransaction = {
|
|
|
3427
3724
|
/**
|
|
3428
3725
|
* Type of transaction.
|
|
3429
3726
|
*/
|
|
3430
|
-
txType:
|
|
3727
|
+
txType: XChainTransactionType;
|
|
3431
3728
|
/**
|
|
3432
3729
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3730
|
*/
|
|
@@ -3504,7 +3801,7 @@ type XChainNonLinearTransaction = {
|
|
|
3504
3801
|
/**
|
|
3505
3802
|
* Type of transaction.
|
|
3506
3803
|
*/
|
|
3507
|
-
txType:
|
|
3804
|
+
txType: XChainTransactionType;
|
|
3508
3805
|
/**
|
|
3509
3806
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3807
|
*/
|
|
@@ -3562,17 +3859,18 @@ declare enum PChainId {
|
|
|
3562
3859
|
|
|
3563
3860
|
declare enum PrimaryNetworkTxType {
|
|
3564
3861
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3862
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3864
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3865
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3866
|
IMPORT_TX = "ImportTx",
|
|
3574
3867
|
EXPORT_TX = "ExportTx",
|
|
3575
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",
|
|
3576
3874
|
UNKNOWN = "UNKNOWN",
|
|
3577
3875
|
BASE_TX = "BaseTx",
|
|
3578
3876
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3606,13 +3904,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3904
|
* List latest transactions
|
|
3607
3905
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3906
|
*
|
|
3609
|
-
* 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.
|
|
3610
3908
|
*
|
|
3611
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.
|
|
3612
3910
|
* @returns any
|
|
3613
3911
|
* @throws ApiError
|
|
3614
3912
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3914
|
/**
|
|
3617
3915
|
* A primary network blockchain id or alias.
|
|
3618
3916
|
*/
|
|
@@ -3637,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3936
|
*/
|
|
3639
3937
|
endTimestamp?: number;
|
|
3640
|
-
/**
|
|
3641
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3642
|
-
*/
|
|
3643
|
-
pageSize?: number;
|
|
3644
3938
|
/**
|
|
3645
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3940
|
*/
|
|
3647
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;
|
|
3648
3946
|
/**
|
|
3649
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.
|
|
3650
3948
|
*/
|
|
@@ -3656,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3954
|
* @returns ListPChainTransactionsResponse
|
|
3657
3955
|
* @throws ApiError
|
|
3658
3956
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3958
|
/**
|
|
3661
3959
|
* A primary network blockchain id or alias.
|
|
3662
3960
|
*/
|
|
@@ -3681,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3980
|
*/
|
|
3683
3981
|
endTimestamp?: number;
|
|
3684
|
-
/**
|
|
3685
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3686
|
-
*/
|
|
3687
|
-
pageSize?: number;
|
|
3688
3982
|
/**
|
|
3689
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3984
|
*/
|
|
3691
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;
|
|
3692
3990
|
/**
|
|
3693
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.
|
|
3694
3992
|
*/
|
|
@@ -3700,7 +3998,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3998
|
* @returns ListXChainTransactionsResponse
|
|
3701
3999
|
* @throws ApiError
|
|
3702
4000
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4001
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
4002
|
/**
|
|
3705
4003
|
* A primary network blockchain id or alias.
|
|
3706
4004
|
*/
|
|
@@ -3725,14 +4023,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
4023
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
4024
|
*/
|
|
3727
4025
|
endTimestamp?: number;
|
|
3728
|
-
/**
|
|
3729
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3730
|
-
*/
|
|
3731
|
-
pageSize?: number;
|
|
3732
4026
|
/**
|
|
3733
4027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
4028
|
*/
|
|
3735
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;
|
|
3736
4034
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
4035
|
}
|
|
3738
4036
|
|
|
@@ -3763,7 +4061,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
4061
|
* @returns any
|
|
3764
4062
|
* @throws ApiError
|
|
3765
4063
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4064
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
4065
|
/**
|
|
3768
4066
|
* A primary network blockchain id or alias.
|
|
3769
4067
|
*/
|
|
@@ -3776,14 +4074,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
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".
|
|
3777
4075
|
*/
|
|
3778
4076
|
addresses?: string;
|
|
3779
|
-
/**
|
|
3780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3781
|
-
*/
|
|
3782
|
-
pageSize?: number;
|
|
3783
4077
|
/**
|
|
3784
4078
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4079
|
*/
|
|
3786
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;
|
|
3787
4085
|
/**
|
|
3788
4086
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4087
|
*/
|
|
@@ -3828,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4126
|
* @returns ListXChainVerticesResponse
|
|
3829
4127
|
* @throws ApiError
|
|
3830
4128
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4129
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4130
|
/**
|
|
3833
4131
|
* A primary network blockchain id or alias.
|
|
3834
4132
|
*/
|
|
@@ -3837,14 +4135,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4135
|
* Either mainnet or a testnet.
|
|
3838
4136
|
*/
|
|
3839
4137
|
network: Network;
|
|
3840
|
-
/**
|
|
3841
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3842
|
-
*/
|
|
3843
|
-
pageSize?: number;
|
|
3844
4138
|
/**
|
|
3845
4139
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4140
|
*/
|
|
3847
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;
|
|
3848
4146
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4147
|
/**
|
|
3850
4148
|
* Get vertex
|
|
@@ -3872,7 +4170,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4170
|
* @returns ListXChainVerticesResponse
|
|
3873
4171
|
* @throws ApiError
|
|
3874
4172
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4173
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4174
|
/**
|
|
3877
4175
|
* The height of a vertex.
|
|
3878
4176
|
*/
|
|
@@ -3885,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4183
|
* Either mainnet or a testnet.
|
|
3886
4184
|
*/
|
|
3887
4185
|
network: Network;
|
|
3888
|
-
/**
|
|
3889
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3890
|
-
*/
|
|
3891
|
-
pageSize?: number;
|
|
3892
4186
|
/**
|
|
3893
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4188
|
*/
|
|
3895
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;
|
|
3896
4194
|
/**
|
|
3897
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.
|
|
3898
4196
|
*/
|
|
@@ -3939,4 +4237,4 @@ declare class ApiError extends Error {
|
|
|
3939
4237
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4238
|
}
|
|
3941
4239
|
|
|
3942
|
-
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, 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 };
|