@avalabs/glacier-sdk 2.8.0-canary.7d20f6a.0 → 2.8.0-canary.7ead472.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 +591 -300
- package/dist/index.js +232 -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 +53 -0
- package/esm/generated/services/DefaultService.js +42 -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,54 @@ 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>;
|
|
71
178
|
}
|
|
72
179
|
|
|
73
180
|
declare enum CurrencyCode {
|
|
@@ -345,7 +452,7 @@ declare class EvmBalancesService {
|
|
|
345
452
|
*/
|
|
346
453
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
347
454
|
/**
|
|
348
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
455
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
349
456
|
*/
|
|
350
457
|
chainId: string;
|
|
351
458
|
/**
|
|
@@ -371,9 +478,9 @@ declare class EvmBalancesService {
|
|
|
371
478
|
* @returns ListErc20BalancesResponse
|
|
372
479
|
* @throws ApiError
|
|
373
480
|
*/
|
|
374
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
481
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
375
482
|
/**
|
|
376
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
483
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
377
484
|
*/
|
|
378
485
|
chainId: string;
|
|
379
486
|
/**
|
|
@@ -384,14 +491,14 @@ declare class EvmBalancesService {
|
|
|
384
491
|
* The block number, if not defined the block number will be the latest block.
|
|
385
492
|
*/
|
|
386
493
|
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
494
|
/**
|
|
392
495
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
393
496
|
*/
|
|
394
497
|
pageToken?: string;
|
|
498
|
+
/**
|
|
499
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
500
|
+
*/
|
|
501
|
+
pageSize?: number;
|
|
395
502
|
/**
|
|
396
503
|
* A comma separated list of contract addresses to filter by.
|
|
397
504
|
*/
|
|
@@ -409,23 +516,23 @@ declare class EvmBalancesService {
|
|
|
409
516
|
* @returns ListErc721BalancesResponse
|
|
410
517
|
* @throws ApiError
|
|
411
518
|
*/
|
|
412
|
-
listErc721Balances({ chainId, address,
|
|
519
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
413
520
|
/**
|
|
414
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
521
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
415
522
|
*/
|
|
416
523
|
chainId: string;
|
|
417
524
|
/**
|
|
418
525
|
* A wallet address.
|
|
419
526
|
*/
|
|
420
527
|
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
528
|
/**
|
|
426
529
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
427
530
|
*/
|
|
428
531
|
pageToken?: string;
|
|
532
|
+
/**
|
|
533
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
534
|
+
*/
|
|
535
|
+
pageSize?: number;
|
|
429
536
|
/**
|
|
430
537
|
* A contract addresses to filter by.
|
|
431
538
|
*/
|
|
@@ -441,9 +548,9 @@ declare class EvmBalancesService {
|
|
|
441
548
|
* @returns ListErc1155BalancesResponse
|
|
442
549
|
* @throws ApiError
|
|
443
550
|
*/
|
|
444
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
551
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
445
552
|
/**
|
|
446
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
553
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
447
554
|
*/
|
|
448
555
|
chainId: string;
|
|
449
556
|
/**
|
|
@@ -454,14 +561,14 @@ declare class EvmBalancesService {
|
|
|
454
561
|
* The block number, if not defined the block number will be the latest block.
|
|
455
562
|
*/
|
|
456
563
|
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
564
|
/**
|
|
462
565
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
463
566
|
*/
|
|
464
567
|
pageToken?: string;
|
|
568
|
+
/**
|
|
569
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
570
|
+
*/
|
|
571
|
+
pageSize?: number;
|
|
465
572
|
/**
|
|
466
573
|
* A contract addresses to filter by.
|
|
467
574
|
*/
|
|
@@ -475,23 +582,23 @@ declare class EvmBalancesService {
|
|
|
475
582
|
* @returns ListCollectibleBalancesResponse
|
|
476
583
|
* @throws ApiError
|
|
477
584
|
*/
|
|
478
|
-
listCollectibleBalances({ chainId, address,
|
|
585
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
479
586
|
/**
|
|
480
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
481
588
|
*/
|
|
482
589
|
chainId: string;
|
|
483
590
|
/**
|
|
484
591
|
* A wallet address.
|
|
485
592
|
*/
|
|
486
593
|
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
594
|
/**
|
|
492
595
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
493
596
|
*/
|
|
494
597
|
pageToken?: string;
|
|
598
|
+
/**
|
|
599
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
600
|
+
*/
|
|
601
|
+
pageSize?: number;
|
|
495
602
|
/**
|
|
496
603
|
* A contract addresses to filter by.
|
|
497
604
|
*/
|
|
@@ -604,19 +711,19 @@ declare class EvmBlocksService {
|
|
|
604
711
|
* @returns ListEvmBlocksResponse
|
|
605
712
|
* @throws ApiError
|
|
606
713
|
*/
|
|
607
|
-
getLatestBlocks({ chainId,
|
|
714
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
608
715
|
/**
|
|
609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
610
717
|
*/
|
|
611
718
|
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
719
|
/**
|
|
617
720
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
618
721
|
*/
|
|
619
722
|
pageToken?: string;
|
|
723
|
+
/**
|
|
724
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
725
|
+
*/
|
|
726
|
+
pageSize?: number;
|
|
620
727
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
621
728
|
/**
|
|
622
729
|
* Get block
|
|
@@ -626,7 +733,7 @@ declare class EvmBlocksService {
|
|
|
626
733
|
*/
|
|
627
734
|
getBlock({ chainId, blockId, }: {
|
|
628
735
|
/**
|
|
629
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
736
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
630
737
|
*/
|
|
631
738
|
chainId: string;
|
|
632
739
|
/**
|
|
@@ -747,7 +854,7 @@ declare class EvmChainsService {
|
|
|
747
854
|
*/
|
|
748
855
|
getChainInfo({ chainId, }: {
|
|
749
856
|
/**
|
|
750
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
857
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
751
858
|
*/
|
|
752
859
|
chainId: string;
|
|
753
860
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1042,7 +1149,7 @@ declare class EvmContractsService {
|
|
|
1042
1149
|
*/
|
|
1043
1150
|
getContractMetadata({ chainId, address, }: {
|
|
1044
1151
|
/**
|
|
1045
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1152
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1046
1153
|
*/
|
|
1047
1154
|
chainId: string;
|
|
1048
1155
|
/**
|
|
@@ -1058,7 +1165,7 @@ declare class EvmContractsService {
|
|
|
1058
1165
|
*/
|
|
1059
1166
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1060
1167
|
/**
|
|
1061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1168
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1062
1169
|
*/
|
|
1063
1170
|
chainId: string;
|
|
1064
1171
|
/**
|
|
@@ -1586,7 +1693,7 @@ declare class EvmTransactionsService {
|
|
|
1586
1693
|
*/
|
|
1587
1694
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1588
1695
|
/**
|
|
1589
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1696
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1590
1697
|
*/
|
|
1591
1698
|
chainId: string;
|
|
1592
1699
|
/**
|
|
@@ -1604,23 +1711,23 @@ declare class EvmTransactionsService {
|
|
|
1604
1711
|
* @returns ListContractsResponse
|
|
1605
1712
|
* @throws ApiError
|
|
1606
1713
|
*/
|
|
1607
|
-
listContractDeployments({ chainId, address,
|
|
1714
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1608
1715
|
/**
|
|
1609
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1610
1717
|
*/
|
|
1611
1718
|
chainId: string;
|
|
1612
1719
|
/**
|
|
1613
1720
|
* A wallet address.
|
|
1614
1721
|
*/
|
|
1615
1722
|
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
1723
|
/**
|
|
1621
1724
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1622
1725
|
*/
|
|
1623
1726
|
pageToken?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1729
|
+
*/
|
|
1730
|
+
pageSize?: number;
|
|
1624
1731
|
}): CancelablePromise<ListContractsResponse>;
|
|
1625
1732
|
/**
|
|
1626
1733
|
* List ERC transfers
|
|
@@ -1628,25 +1735,31 @@ declare class EvmTransactionsService {
|
|
|
1628
1735
|
* @returns ListTransfersResponse
|
|
1629
1736
|
* @throws ApiError
|
|
1630
1737
|
*/
|
|
1631
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1738
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1632
1739
|
/**
|
|
1633
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1740
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1634
1741
|
*/
|
|
1635
1742
|
chainId: string;
|
|
1636
1743
|
/**
|
|
1637
1744
|
* A wallet address.
|
|
1638
1745
|
*/
|
|
1639
1746
|
address: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* 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.
|
|
1749
|
+
*/
|
|
1640
1750
|
startBlock?: number;
|
|
1641
|
-
endBlock?: number;
|
|
1642
1751
|
/**
|
|
1643
|
-
* The
|
|
1752
|
+
* 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
1753
|
*/
|
|
1645
|
-
|
|
1754
|
+
endBlock?: number;
|
|
1646
1755
|
/**
|
|
1647
1756
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1648
1757
|
*/
|
|
1649
1758
|
pageToken?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1761
|
+
*/
|
|
1762
|
+
pageSize?: number;
|
|
1650
1763
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1651
1764
|
/**
|
|
1652
1765
|
* List transactions
|
|
@@ -1656,24 +1769,30 @@ declare class EvmTransactionsService {
|
|
|
1656
1769
|
* @returns ListTransactionDetailsResponse
|
|
1657
1770
|
* @throws ApiError
|
|
1658
1771
|
*/
|
|
1659
|
-
listTransactions({ chainId, address,
|
|
1772
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1660
1773
|
/**
|
|
1661
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1774
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1662
1775
|
*/
|
|
1663
1776
|
chainId: string;
|
|
1664
1777
|
/**
|
|
1665
1778
|
* A wallet address.
|
|
1666
1779
|
*/
|
|
1667
1780
|
address: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1783
|
+
*/
|
|
1784
|
+
pageToken?: string;
|
|
1668
1785
|
/**
|
|
1669
1786
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1670
1787
|
*/
|
|
1671
1788
|
pageSize?: number;
|
|
1672
1789
|
/**
|
|
1673
|
-
*
|
|
1790
|
+
* 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
1791
|
*/
|
|
1675
|
-
pageToken?: string;
|
|
1676
1792
|
startBlock?: number;
|
|
1793
|
+
/**
|
|
1794
|
+
* 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.
|
|
1795
|
+
*/
|
|
1677
1796
|
endBlock?: number;
|
|
1678
1797
|
/**
|
|
1679
1798
|
* 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 +1805,31 @@ declare class EvmTransactionsService {
|
|
|
1686
1805
|
* @returns ListNativeTransactionsResponse
|
|
1687
1806
|
* @throws ApiError
|
|
1688
1807
|
*/
|
|
1689
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1808
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1690
1809
|
/**
|
|
1691
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1810
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1692
1811
|
*/
|
|
1693
1812
|
chainId: string;
|
|
1694
1813
|
/**
|
|
1695
1814
|
* A wallet address.
|
|
1696
1815
|
*/
|
|
1697
1816
|
address: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* 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.
|
|
1819
|
+
*/
|
|
1698
1820
|
startBlock?: number;
|
|
1699
|
-
endBlock?: number;
|
|
1700
1821
|
/**
|
|
1701
|
-
* The
|
|
1822
|
+
* 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
1823
|
*/
|
|
1703
|
-
|
|
1824
|
+
endBlock?: number;
|
|
1704
1825
|
/**
|
|
1705
1826
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1706
1827
|
*/
|
|
1707
1828
|
pageToken?: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1831
|
+
*/
|
|
1832
|
+
pageSize?: number;
|
|
1708
1833
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1709
1834
|
/**
|
|
1710
1835
|
* List ERC-20 transfers
|
|
@@ -1712,25 +1837,31 @@ declare class EvmTransactionsService {
|
|
|
1712
1837
|
* @returns ListErc20TransactionsResponse
|
|
1713
1838
|
* @throws ApiError
|
|
1714
1839
|
*/
|
|
1715
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1840
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1716
1841
|
/**
|
|
1717
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1842
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1718
1843
|
*/
|
|
1719
1844
|
chainId: string;
|
|
1720
1845
|
/**
|
|
1721
1846
|
* A wallet address.
|
|
1722
1847
|
*/
|
|
1723
1848
|
address: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* 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.
|
|
1851
|
+
*/
|
|
1724
1852
|
startBlock?: number;
|
|
1725
|
-
endBlock?: number;
|
|
1726
1853
|
/**
|
|
1727
|
-
* The
|
|
1854
|
+
* 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
1855
|
*/
|
|
1729
|
-
|
|
1856
|
+
endBlock?: number;
|
|
1730
1857
|
/**
|
|
1731
1858
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1732
1859
|
*/
|
|
1733
1860
|
pageToken?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1863
|
+
*/
|
|
1864
|
+
pageSize?: number;
|
|
1734
1865
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1735
1866
|
/**
|
|
1736
1867
|
* List ERC-721 transfers
|
|
@@ -1738,25 +1869,31 @@ declare class EvmTransactionsService {
|
|
|
1738
1869
|
* @returns ListErc721TransactionsResponse
|
|
1739
1870
|
* @throws ApiError
|
|
1740
1871
|
*/
|
|
1741
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1872
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1742
1873
|
/**
|
|
1743
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1874
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1744
1875
|
*/
|
|
1745
1876
|
chainId: string;
|
|
1746
1877
|
/**
|
|
1747
1878
|
* A wallet address.
|
|
1748
1879
|
*/
|
|
1749
1880
|
address: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* 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.
|
|
1883
|
+
*/
|
|
1750
1884
|
startBlock?: number;
|
|
1751
|
-
endBlock?: number;
|
|
1752
1885
|
/**
|
|
1753
|
-
* The
|
|
1886
|
+
* 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
1887
|
*/
|
|
1755
|
-
|
|
1888
|
+
endBlock?: number;
|
|
1756
1889
|
/**
|
|
1757
1890
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1758
1891
|
*/
|
|
1759
1892
|
pageToken?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1895
|
+
*/
|
|
1896
|
+
pageSize?: number;
|
|
1760
1897
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1761
1898
|
/**
|
|
1762
1899
|
* List ERC-1155 transfers
|
|
@@ -1764,25 +1901,31 @@ declare class EvmTransactionsService {
|
|
|
1764
1901
|
* @returns ListErc1155TransactionsResponse
|
|
1765
1902
|
* @throws ApiError
|
|
1766
1903
|
*/
|
|
1767
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1904
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1768
1905
|
/**
|
|
1769
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1906
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
1907
|
*/
|
|
1771
1908
|
chainId: string;
|
|
1772
1909
|
/**
|
|
1773
1910
|
* A wallet address.
|
|
1774
1911
|
*/
|
|
1775
1912
|
address: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* 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.
|
|
1915
|
+
*/
|
|
1776
1916
|
startBlock?: number;
|
|
1777
|
-
endBlock?: number;
|
|
1778
1917
|
/**
|
|
1779
|
-
* The
|
|
1918
|
+
* 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
1919
|
*/
|
|
1781
|
-
|
|
1920
|
+
endBlock?: number;
|
|
1782
1921
|
/**
|
|
1783
1922
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1784
1923
|
*/
|
|
1785
1924
|
pageToken?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1927
|
+
*/
|
|
1928
|
+
pageSize?: number;
|
|
1786
1929
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1787
1930
|
/**
|
|
1788
1931
|
* List internal transactions
|
|
@@ -1792,25 +1935,31 @@ declare class EvmTransactionsService {
|
|
|
1792
1935
|
* @returns ListInternalTransactionsResponse
|
|
1793
1936
|
* @throws ApiError
|
|
1794
1937
|
*/
|
|
1795
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1938
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1796
1939
|
/**
|
|
1797
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1940
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
1941
|
*/
|
|
1799
1942
|
chainId: string;
|
|
1800
1943
|
/**
|
|
1801
1944
|
* A wallet address.
|
|
1802
1945
|
*/
|
|
1803
1946
|
address: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* 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.
|
|
1949
|
+
*/
|
|
1804
1950
|
startBlock?: number;
|
|
1805
|
-
endBlock?: number;
|
|
1806
1951
|
/**
|
|
1807
|
-
* The
|
|
1952
|
+
* 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
1953
|
*/
|
|
1809
|
-
|
|
1954
|
+
endBlock?: number;
|
|
1810
1955
|
/**
|
|
1811
1956
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1812
1957
|
*/
|
|
1813
1958
|
pageToken?: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1961
|
+
*/
|
|
1962
|
+
pageSize?: number;
|
|
1814
1963
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1815
1964
|
/**
|
|
1816
1965
|
* Get transaction
|
|
@@ -1820,7 +1969,7 @@ declare class EvmTransactionsService {
|
|
|
1820
1969
|
*/
|
|
1821
1970
|
getTransaction({ chainId, txHash, }: {
|
|
1822
1971
|
/**
|
|
1823
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1972
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1824
1973
|
*/
|
|
1825
1974
|
chainId: string;
|
|
1826
1975
|
/**
|
|
@@ -1836,7 +1985,7 @@ declare class EvmTransactionsService {
|
|
|
1836
1985
|
*/
|
|
1837
1986
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1838
1987
|
/**
|
|
1839
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1988
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1840
1989
|
*/
|
|
1841
1990
|
chainId: string;
|
|
1842
1991
|
/**
|
|
@@ -1850,19 +1999,19 @@ declare class EvmTransactionsService {
|
|
|
1850
1999
|
* @returns ListNativeTransactionsResponse
|
|
1851
2000
|
* @throws ApiError
|
|
1852
2001
|
*/
|
|
1853
|
-
listLatestTransactions({ chainId,
|
|
2002
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1854
2003
|
/**
|
|
1855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2004
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1856
2005
|
*/
|
|
1857
2006
|
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
2007
|
/**
|
|
1863
2008
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1864
2009
|
*/
|
|
1865
2010
|
pageToken?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2013
|
+
*/
|
|
2014
|
+
pageSize?: number;
|
|
1866
2015
|
/**
|
|
1867
2016
|
* A status filter for listed transactions.
|
|
1868
2017
|
*/
|
|
@@ -1886,6 +2035,14 @@ declare class HealthCheckService {
|
|
|
1886
2035
|
}>;
|
|
1887
2036
|
}
|
|
1888
2037
|
|
|
2038
|
+
type ListNftTokens = {
|
|
2039
|
+
/**
|
|
2040
|
+
* 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.
|
|
2041
|
+
*/
|
|
2042
|
+
nextPageToken?: string;
|
|
2043
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2044
|
+
};
|
|
2045
|
+
|
|
1889
2046
|
declare class NfTsService {
|
|
1890
2047
|
readonly httpRequest: BaseHttpRequest;
|
|
1891
2048
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1897,7 +2054,7 @@ declare class NfTsService {
|
|
|
1897
2054
|
*/
|
|
1898
2055
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1899
2056
|
/**
|
|
1900
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2057
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1901
2058
|
*/
|
|
1902
2059
|
chainId: string;
|
|
1903
2060
|
/**
|
|
@@ -1909,6 +2066,30 @@ declare class NfTsService {
|
|
|
1909
2066
|
*/
|
|
1910
2067
|
tokenId: string;
|
|
1911
2068
|
}): CancelablePromise<any>;
|
|
2069
|
+
/**
|
|
2070
|
+
* List tokens
|
|
2071
|
+
* Lists tokens for an NFT contract.
|
|
2072
|
+
* @returns ListNftTokens
|
|
2073
|
+
* @throws ApiError
|
|
2074
|
+
*/
|
|
2075
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2076
|
+
/**
|
|
2077
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2078
|
+
*/
|
|
2079
|
+
chainId: string;
|
|
2080
|
+
/**
|
|
2081
|
+
* Contract address on the relevant chain.
|
|
2082
|
+
*/
|
|
2083
|
+
address: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2086
|
+
*/
|
|
2087
|
+
pageToken?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2090
|
+
*/
|
|
2091
|
+
pageSize?: number;
|
|
2092
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1912
2093
|
/**
|
|
1913
2094
|
* Get token details
|
|
1914
2095
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1917,7 +2098,7 @@ declare class NfTsService {
|
|
|
1917
2098
|
*/
|
|
1918
2099
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1919
2100
|
/**
|
|
1920
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2101
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1921
2102
|
*/
|
|
1922
2103
|
chainId: string;
|
|
1923
2104
|
/**
|
|
@@ -2025,17 +2206,6 @@ type OperationStatusResponse = {
|
|
|
2025
2206
|
declare class OperationsService {
|
|
2026
2207
|
readonly httpRequest: BaseHttpRequest;
|
|
2027
2208
|
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
2209
|
/**
|
|
2040
2210
|
* Get operation
|
|
2041
2211
|
* Gets operation details for the given operation id.
|
|
@@ -2048,6 +2218,17 @@ declare class OperationsService {
|
|
|
2048
2218
|
*/
|
|
2049
2219
|
operationId: string;
|
|
2050
2220
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2221
|
+
/**
|
|
2222
|
+
* Create transaction export operation
|
|
2223
|
+
* Trigger a transaction export operation with given parameters.
|
|
2224
|
+
*
|
|
2225
|
+
* 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.
|
|
2226
|
+
* @returns OperationStatusResponse
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2230
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2231
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
2051
2232
|
}
|
|
2052
2233
|
|
|
2053
2234
|
declare enum BlockchainIds {
|
|
@@ -2285,6 +2466,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2285
2466
|
}
|
|
2286
2467
|
}
|
|
2287
2468
|
|
|
2469
|
+
type RemovedValidatorDetails = {
|
|
2470
|
+
txHash: string;
|
|
2471
|
+
nodeId: string;
|
|
2472
|
+
subnetId: string;
|
|
2473
|
+
amountStaked: string;
|
|
2474
|
+
delegationFee?: string;
|
|
2475
|
+
startTimestamp: number;
|
|
2476
|
+
endTimestamp: number;
|
|
2477
|
+
removeTxHash: string;
|
|
2478
|
+
removeTimestamp: number;
|
|
2479
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2480
|
+
};
|
|
2481
|
+
declare namespace RemovedValidatorDetails {
|
|
2482
|
+
enum validationStatus {
|
|
2483
|
+
REMOVED = "removed"
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2288
2487
|
type ListValidatorDetailsResponse = {
|
|
2289
2488
|
/**
|
|
2290
2489
|
* 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 +2492,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2293
2492
|
/**
|
|
2294
2493
|
* The list of validator Details.
|
|
2295
2494
|
*/
|
|
2296
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2495
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2297
2496
|
};
|
|
2298
2497
|
|
|
2299
2498
|
declare enum Network {
|
|
@@ -2304,7 +2503,18 @@ declare enum Network {
|
|
|
2304
2503
|
declare enum ValidationStatusType {
|
|
2305
2504
|
COMPLETED = "completed",
|
|
2306
2505
|
ACTIVE = "active",
|
|
2307
|
-
PENDING = "pending"
|
|
2506
|
+
PENDING = "pending",
|
|
2507
|
+
REMOVED = "removed"
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2511
|
+
FIXED = "fixed",
|
|
2512
|
+
VARIABLE = "variable"
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
declare enum PrimaryNetworkAssetType {
|
|
2516
|
+
SECP256K1 = "secp256k1",
|
|
2517
|
+
NFT = "nft"
|
|
2308
2518
|
}
|
|
2309
2519
|
|
|
2310
2520
|
type XChainAssetDetails = {
|
|
@@ -2327,15 +2537,15 @@ type XChainAssetDetails = {
|
|
|
2327
2537
|
/**
|
|
2328
2538
|
* Type of asset like SECP256K1 or NFT.
|
|
2329
2539
|
*/
|
|
2330
|
-
type:
|
|
2540
|
+
type: PrimaryNetworkAssetType;
|
|
2331
2541
|
/**
|
|
2332
2542
|
* Timestamp in seconds this asset was created on.
|
|
2333
2543
|
*/
|
|
2334
2544
|
createdAtTimestamp: number;
|
|
2335
2545
|
/**
|
|
2336
|
-
* Cap represents if an asset
|
|
2546
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2337
2547
|
*/
|
|
2338
|
-
cap:
|
|
2548
|
+
cap: PrimaryNetworkAssetCap;
|
|
2339
2549
|
};
|
|
2340
2550
|
|
|
2341
2551
|
declare enum XChainId {
|
|
@@ -2401,19 +2611,19 @@ declare class PrimaryNetworkService {
|
|
|
2401
2611
|
* @returns ListBlockchainsResponse
|
|
2402
2612
|
* @throws ApiError
|
|
2403
2613
|
*/
|
|
2404
|
-
listBlockchains({ network,
|
|
2614
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2405
2615
|
/**
|
|
2406
2616
|
* Either mainnet or a testnet.
|
|
2407
2617
|
*/
|
|
2408
2618
|
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
2619
|
/**
|
|
2414
2620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2415
2621
|
*/
|
|
2416
2622
|
pageToken?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2625
|
+
*/
|
|
2626
|
+
pageSize?: number;
|
|
2417
2627
|
/**
|
|
2418
2628
|
* 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.
|
|
2419
2629
|
*/
|
|
@@ -2425,19 +2635,19 @@ declare class PrimaryNetworkService {
|
|
|
2425
2635
|
* @returns ListSubnetsResponse
|
|
2426
2636
|
* @throws ApiError
|
|
2427
2637
|
*/
|
|
2428
|
-
listSubnets({ network,
|
|
2638
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2429
2639
|
/**
|
|
2430
2640
|
* Either mainnet or a testnet.
|
|
2431
2641
|
*/
|
|
2432
2642
|
network: Network;
|
|
2433
2643
|
/**
|
|
2434
|
-
*
|
|
2644
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2435
2645
|
*/
|
|
2436
|
-
|
|
2646
|
+
pageToken?: string;
|
|
2437
2647
|
/**
|
|
2438
|
-
*
|
|
2648
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2439
2649
|
*/
|
|
2440
|
-
|
|
2650
|
+
pageSize?: number;
|
|
2441
2651
|
/**
|
|
2442
2652
|
* 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
2653
|
*/
|
|
@@ -2449,55 +2659,55 @@ declare class PrimaryNetworkService {
|
|
|
2449
2659
|
* @returns ListValidatorDetailsResponse
|
|
2450
2660
|
* @throws ApiError
|
|
2451
2661
|
*/
|
|
2452
|
-
listValidators({ network, pageSize,
|
|
2662
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2453
2663
|
/**
|
|
2454
2664
|
* Either mainnet or a testnet.
|
|
2455
2665
|
*/
|
|
2456
2666
|
network: Network;
|
|
2667
|
+
/**
|
|
2668
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2669
|
+
*/
|
|
2670
|
+
pageToken?: string;
|
|
2457
2671
|
/**
|
|
2458
2672
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2459
2673
|
*/
|
|
2460
2674
|
pageSize?: number;
|
|
2461
2675
|
/**
|
|
2462
|
-
* A
|
|
2676
|
+
* A comma separated list of node ids to filter by.
|
|
2463
2677
|
*/
|
|
2464
|
-
|
|
2678
|
+
nodeIds?: string;
|
|
2465
2679
|
/**
|
|
2466
|
-
* The
|
|
2680
|
+
* 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
2681
|
*/
|
|
2468
|
-
|
|
2682
|
+
sortOrder?: SortOrder;
|
|
2469
2683
|
/**
|
|
2470
|
-
*
|
|
2684
|
+
* Validation status of the node.
|
|
2471
2685
|
*/
|
|
2472
|
-
|
|
2686
|
+
validationStatus?: ValidationStatusType;
|
|
2473
2687
|
/**
|
|
2474
2688
|
* 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
2689
|
*/
|
|
2476
|
-
minDelegationCapacity?:
|
|
2690
|
+
minDelegationCapacity?: string;
|
|
2477
2691
|
/**
|
|
2478
2692
|
* 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
2693
|
*/
|
|
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;
|
|
2694
|
+
maxDelegationCapacity?: string;
|
|
2485
2695
|
/**
|
|
2486
|
-
* The
|
|
2696
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2487
2697
|
*/
|
|
2488
|
-
|
|
2698
|
+
minTimeRemaining?: number;
|
|
2489
2699
|
/**
|
|
2490
|
-
*
|
|
2700
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2491
2701
|
*/
|
|
2492
|
-
|
|
2702
|
+
maxTimeRemaining?: number;
|
|
2493
2703
|
/**
|
|
2494
|
-
* The
|
|
2704
|
+
* 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
2705
|
*/
|
|
2496
|
-
|
|
2706
|
+
minFeePercentage?: number;
|
|
2497
2707
|
/**
|
|
2498
|
-
*
|
|
2708
|
+
* 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
2709
|
*/
|
|
2500
|
-
|
|
2710
|
+
maxFeePercentage?: number;
|
|
2501
2711
|
/**
|
|
2502
2712
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2503
2713
|
*/
|
|
@@ -2509,7 +2719,7 @@ declare class PrimaryNetworkService {
|
|
|
2509
2719
|
* @returns ListValidatorDetailsResponse
|
|
2510
2720
|
* @throws ApiError
|
|
2511
2721
|
*/
|
|
2512
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2722
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2513
2723
|
/**
|
|
2514
2724
|
* Either mainnet or a testnet.
|
|
2515
2725
|
*/
|
|
@@ -2518,14 +2728,14 @@ declare class PrimaryNetworkService {
|
|
|
2518
2728
|
* A primary network (P or X chain) nodeId.
|
|
2519
2729
|
*/
|
|
2520
2730
|
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
2731
|
/**
|
|
2526
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2527
2733
|
*/
|
|
2528
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2529
2739
|
/**
|
|
2530
2740
|
* 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
2741
|
*/
|
|
@@ -2541,19 +2751,19 @@ declare class PrimaryNetworkService {
|
|
|
2541
2751
|
* @returns ListDelegatorDetailsResponse
|
|
2542
2752
|
* @throws ApiError
|
|
2543
2753
|
*/
|
|
2544
|
-
listDelegators({ network,
|
|
2754
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2545
2755
|
/**
|
|
2546
2756
|
* Either mainnet or a testnet.
|
|
2547
2757
|
*/
|
|
2548
2758
|
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
2759
|
/**
|
|
2554
2760
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2555
2761
|
*/
|
|
2556
2762
|
pageToken?: string;
|
|
2763
|
+
/**
|
|
2764
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2765
|
+
*/
|
|
2766
|
+
pageSize?: number;
|
|
2557
2767
|
/**
|
|
2558
2768
|
* A comma separated list of reward addresses to filter by.
|
|
2559
2769
|
*/
|
|
@@ -2604,7 +2814,7 @@ type CChainSharedAssetBalance = {
|
|
|
2604
2814
|
/**
|
|
2605
2815
|
* Type of asset like SECP256K1 or NFT.
|
|
2606
2816
|
*/
|
|
2607
|
-
type:
|
|
2817
|
+
type: PrimaryNetworkAssetType;
|
|
2608
2818
|
/**
|
|
2609
2819
|
* Amount of the asset.
|
|
2610
2820
|
*/
|
|
@@ -2639,13 +2849,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2639
2849
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2640
2850
|
};
|
|
2641
2851
|
|
|
2642
|
-
type
|
|
2852
|
+
type Asset = {
|
|
2853
|
+
/**
|
|
2854
|
+
* Unique ID for an asset.
|
|
2855
|
+
*/
|
|
2643
2856
|
assetId: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* Name of this asset.
|
|
2859
|
+
*/
|
|
2860
|
+
name: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Symbol for this asset (max 4 characters).
|
|
2863
|
+
*/
|
|
2864
|
+
symbol: string;
|
|
2865
|
+
/**
|
|
2866
|
+
* Denomination of this asset to represent fungibility.
|
|
2867
|
+
*/
|
|
2868
|
+
denomination: number;
|
|
2869
|
+
/**
|
|
2870
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2871
|
+
*/
|
|
2872
|
+
type: PrimaryNetworkAssetType;
|
|
2873
|
+
/**
|
|
2874
|
+
* Amount of the asset.
|
|
2875
|
+
*/
|
|
2644
2876
|
amount: string;
|
|
2645
2877
|
};
|
|
2646
2878
|
|
|
2647
2879
|
type PChainSharedAsset = {
|
|
2880
|
+
/**
|
|
2881
|
+
* Unique ID for an asset.
|
|
2882
|
+
*/
|
|
2648
2883
|
assetId: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Name of this asset.
|
|
2886
|
+
*/
|
|
2887
|
+
name: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Symbol for this asset (max 4 characters).
|
|
2890
|
+
*/
|
|
2891
|
+
symbol: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* Denomination of this asset to represent fungibility.
|
|
2894
|
+
*/
|
|
2895
|
+
denomination: number;
|
|
2896
|
+
/**
|
|
2897
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2898
|
+
*/
|
|
2899
|
+
type: PrimaryNetworkAssetType;
|
|
2900
|
+
/**
|
|
2901
|
+
* Amount of the asset.
|
|
2902
|
+
*/
|
|
2649
2903
|
amount: string;
|
|
2650
2904
|
sharedWithChainId: string;
|
|
2651
2905
|
status: string;
|
|
@@ -2655,27 +2909,27 @@ type PChainBalance = {
|
|
|
2655
2909
|
/**
|
|
2656
2910
|
* 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
2911
|
*/
|
|
2658
|
-
unlockedUnstaked: Array<
|
|
2912
|
+
unlockedUnstaked: Array<Asset>;
|
|
2659
2913
|
/**
|
|
2660
2914
|
* 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
2915
|
*/
|
|
2662
|
-
unlockedStaked: Array<
|
|
2916
|
+
unlockedStaked: Array<Asset>;
|
|
2663
2917
|
/**
|
|
2664
2918
|
* 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
2919
|
*/
|
|
2666
|
-
lockedPlatform: Array<
|
|
2920
|
+
lockedPlatform: Array<Asset>;
|
|
2667
2921
|
/**
|
|
2668
2922
|
* 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
2923
|
*/
|
|
2670
|
-
lockedStakeable: Array<
|
|
2924
|
+
lockedStakeable: Array<Asset>;
|
|
2671
2925
|
/**
|
|
2672
2926
|
* 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
2927
|
*/
|
|
2674
|
-
lockedStaked: Array<
|
|
2928
|
+
lockedStaked: Array<Asset>;
|
|
2675
2929
|
/**
|
|
2676
2930
|
* 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
2931
|
*/
|
|
2678
|
-
pendingStaked: Array<
|
|
2932
|
+
pendingStaked: Array<Asset>;
|
|
2679
2933
|
/**
|
|
2680
2934
|
* 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
2935
|
*/
|
|
@@ -2711,7 +2965,7 @@ type XChainAssetBalance = {
|
|
|
2711
2965
|
/**
|
|
2712
2966
|
* Type of asset like SECP256K1 or NFT.
|
|
2713
2967
|
*/
|
|
2714
|
-
type:
|
|
2968
|
+
type: PrimaryNetworkAssetType;
|
|
2715
2969
|
/**
|
|
2716
2970
|
* Amount of the asset.
|
|
2717
2971
|
*/
|
|
@@ -2739,7 +2993,7 @@ type XChainSharedAssetBalance = {
|
|
|
2739
2993
|
/**
|
|
2740
2994
|
* Type of asset like SECP256K1 or NFT.
|
|
2741
2995
|
*/
|
|
2742
|
-
type:
|
|
2996
|
+
type: PrimaryNetworkAssetType;
|
|
2743
2997
|
/**
|
|
2744
2998
|
* Amount of the asset.
|
|
2745
2999
|
*/
|
|
@@ -2814,6 +3068,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2814
3068
|
txCount: number;
|
|
2815
3069
|
transactions: Array<string>;
|
|
2816
3070
|
blockSizeBytes: number;
|
|
3071
|
+
currentSupply?: string;
|
|
2817
3072
|
proposerDetails?: ProposerDetails;
|
|
2818
3073
|
};
|
|
2819
3074
|
|
|
@@ -2826,6 +3081,7 @@ type PrimaryNetworkBlock = {
|
|
|
2826
3081
|
txCount: number;
|
|
2827
3082
|
transactions: Array<string>;
|
|
2828
3083
|
blockSizeBytes: number;
|
|
3084
|
+
currentSupply?: string;
|
|
2829
3085
|
proposerDetails?: ProposerDetails;
|
|
2830
3086
|
};
|
|
2831
3087
|
|
|
@@ -2867,7 +3123,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2867
3123
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2868
3124
|
* @throws ApiError
|
|
2869
3125
|
*/
|
|
2870
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3126
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2871
3127
|
/**
|
|
2872
3128
|
* A primary network blockchain id or alias.
|
|
2873
3129
|
*/
|
|
@@ -2880,14 +3136,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2880
3136
|
* A primary network (P or X chain) nodeId.
|
|
2881
3137
|
*/
|
|
2882
3138
|
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
3139
|
/**
|
|
2888
3140
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2889
3141
|
*/
|
|
2890
3142
|
pageToken?: string;
|
|
3143
|
+
/**
|
|
3144
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3145
|
+
*/
|
|
3146
|
+
pageSize?: number;
|
|
2891
3147
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2892
3148
|
/**
|
|
2893
3149
|
* List latest blocks
|
|
@@ -2895,7 +3151,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2895
3151
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2896
3152
|
* @throws ApiError
|
|
2897
3153
|
*/
|
|
2898
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3154
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2899
3155
|
/**
|
|
2900
3156
|
* A primary network blockchain id or alias.
|
|
2901
3157
|
*/
|
|
@@ -2904,17 +3160,48 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2904
3160
|
* Either mainnet or a testnet.
|
|
2905
3161
|
*/
|
|
2906
3162
|
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
3163
|
/**
|
|
2912
3164
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2913
3165
|
*/
|
|
2914
3166
|
pageToken?: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3169
|
+
*/
|
|
3170
|
+
pageSize?: number;
|
|
2915
3171
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2916
3172
|
}
|
|
2917
3173
|
|
|
3174
|
+
type AssetWithPriceInfo = {
|
|
3175
|
+
/**
|
|
3176
|
+
* Unique ID for an asset.
|
|
3177
|
+
*/
|
|
3178
|
+
assetId: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* Name of this asset.
|
|
3181
|
+
*/
|
|
3182
|
+
name: string;
|
|
3183
|
+
/**
|
|
3184
|
+
* Symbol for this asset (max 4 characters).
|
|
3185
|
+
*/
|
|
3186
|
+
symbol: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* Denomination of this asset to represent fungibility.
|
|
3189
|
+
*/
|
|
3190
|
+
denomination: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3193
|
+
*/
|
|
3194
|
+
type: PrimaryNetworkAssetType;
|
|
3195
|
+
/**
|
|
3196
|
+
* Amount of the asset.
|
|
3197
|
+
*/
|
|
3198
|
+
amount: string;
|
|
3199
|
+
/**
|
|
3200
|
+
* 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.
|
|
3201
|
+
*/
|
|
3202
|
+
historicalPrice?: Money;
|
|
3203
|
+
};
|
|
3204
|
+
|
|
2918
3205
|
declare enum RewardType {
|
|
2919
3206
|
VALIDATOR = "VALIDATOR",
|
|
2920
3207
|
DELEGATOR = "DELEGATOR",
|
|
@@ -2934,10 +3221,7 @@ type HistoricalReward = {
|
|
|
2934
3221
|
rewardType: RewardType;
|
|
2935
3222
|
utxoId: string;
|
|
2936
3223
|
outputIndex: number;
|
|
2937
|
-
|
|
2938
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2939
|
-
*/
|
|
2940
|
-
reward: PChainAsset;
|
|
3224
|
+
reward: AssetWithPriceInfo;
|
|
2941
3225
|
rewardTxHash: string;
|
|
2942
3226
|
};
|
|
2943
3227
|
|
|
@@ -2964,7 +3248,7 @@ type PendingReward = {
|
|
|
2964
3248
|
/**
|
|
2965
3249
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2966
3250
|
*/
|
|
2967
|
-
estimatedReward:
|
|
3251
|
+
estimatedReward: Asset;
|
|
2968
3252
|
};
|
|
2969
3253
|
|
|
2970
3254
|
type ListPendingRewardsResponse = {
|
|
@@ -2984,25 +3268,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2984
3268
|
* @returns ListPendingRewardsResponse
|
|
2985
3269
|
* @throws ApiError
|
|
2986
3270
|
*/
|
|
2987
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3271
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2988
3272
|
/**
|
|
2989
3273
|
* Either mainnet or a testnet.
|
|
2990
3274
|
*/
|
|
2991
3275
|
network: Network;
|
|
2992
3276
|
/**
|
|
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".
|
|
3277
|
+
* 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
3278
|
*/
|
|
2995
3279
|
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
3280
|
/**
|
|
3001
3281
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3002
3282
|
*/
|
|
3003
3283
|
pageToken?: string;
|
|
3004
3284
|
/**
|
|
3005
|
-
*
|
|
3285
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3286
|
+
*/
|
|
3287
|
+
pageSize?: number;
|
|
3288
|
+
/**
|
|
3289
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3006
3290
|
*/
|
|
3007
3291
|
nodeIds?: string;
|
|
3008
3292
|
/**
|
|
@@ -3016,68 +3300,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3016
3300
|
* @returns ListHistoricalRewardsResponse
|
|
3017
3301
|
* @throws ApiError
|
|
3018
3302
|
*/
|
|
3019
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3303
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3020
3304
|
/**
|
|
3021
3305
|
* Either mainnet or a testnet.
|
|
3022
3306
|
*/
|
|
3023
3307
|
network: Network;
|
|
3024
3308
|
/**
|
|
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".
|
|
3309
|
+
* 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
3310
|
*/
|
|
3027
3311
|
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
3312
|
/**
|
|
3033
3313
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3034
3314
|
*/
|
|
3035
3315
|
pageToken?: string;
|
|
3036
3316
|
/**
|
|
3037
|
-
*
|
|
3317
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3318
|
+
*/
|
|
3319
|
+
pageSize?: number;
|
|
3320
|
+
/**
|
|
3321
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3038
3322
|
*/
|
|
3039
3323
|
nodeIds?: string;
|
|
3040
3324
|
/**
|
|
3041
3325
|
* 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
3326
|
*/
|
|
3043
3327
|
sortOrder?: SortOrder;
|
|
3328
|
+
/**
|
|
3329
|
+
* The currency that return values should use. Defaults to USD.
|
|
3330
|
+
*/
|
|
3331
|
+
currency?: CurrencyCode;
|
|
3044
3332
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3045
3333
|
}
|
|
3046
3334
|
|
|
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
3335
|
type UtxoCredential = {
|
|
3075
3336
|
/**
|
|
3076
|
-
* Signature provided to consume the output
|
|
3337
|
+
* Signature provided to consume the output.
|
|
3077
3338
|
*/
|
|
3078
3339
|
signature?: string;
|
|
3079
3340
|
/**
|
|
3080
|
-
* Public key associated with the signature
|
|
3341
|
+
* Public key associated with the signature.
|
|
3081
3342
|
*/
|
|
3082
3343
|
publicKey?: string;
|
|
3083
3344
|
};
|
|
@@ -3099,66 +3360,66 @@ type EVMInput = {
|
|
|
3099
3360
|
|
|
3100
3361
|
type Utxo = {
|
|
3101
3362
|
/**
|
|
3102
|
-
*
|
|
3363
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3103
3364
|
*/
|
|
3104
|
-
|
|
3365
|
+
addresses: Array<string>;
|
|
3105
3366
|
asset: Asset;
|
|
3106
3367
|
/**
|
|
3107
|
-
*
|
|
3368
|
+
* Blockchain ID on which this output is consumed on.
|
|
3108
3369
|
*/
|
|
3109
|
-
|
|
3370
|
+
consumedOnChainId: string;
|
|
3110
3371
|
/**
|
|
3111
|
-
*
|
|
3372
|
+
* Transaction ID that consumed this output.
|
|
3112
3373
|
*/
|
|
3113
|
-
|
|
3374
|
+
consumingTxHash?: string;
|
|
3114
3375
|
/**
|
|
3115
|
-
* Blockchain ID on which this output is
|
|
3376
|
+
* Blockchain ID on which this output is created on.
|
|
3116
3377
|
*/
|
|
3117
|
-
|
|
3378
|
+
createdOnChainId: string;
|
|
3118
3379
|
/**
|
|
3119
|
-
*
|
|
3380
|
+
* UTXO ID for this output.
|
|
3120
3381
|
*/
|
|
3121
|
-
|
|
3382
|
+
utxoId: string;
|
|
3122
3383
|
/**
|
|
3123
|
-
*
|
|
3384
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3124
3385
|
*/
|
|
3125
|
-
|
|
3386
|
+
consumingTxTimestamp?: number;
|
|
3126
3387
|
/**
|
|
3127
|
-
*
|
|
3388
|
+
* Transaction ID that created this output.
|
|
3128
3389
|
*/
|
|
3129
|
-
|
|
3390
|
+
creationTxHash: string;
|
|
3130
3391
|
/**
|
|
3131
|
-
*
|
|
3392
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3132
3393
|
*/
|
|
3133
|
-
|
|
3394
|
+
credentials?: Array<UtxoCredential>;
|
|
3134
3395
|
/**
|
|
3135
|
-
*
|
|
3396
|
+
* Index representing the minting set for the NFT mint output.
|
|
3136
3397
|
*/
|
|
3137
|
-
|
|
3398
|
+
groupId?: number;
|
|
3138
3399
|
/**
|
|
3139
3400
|
* Locktime in seconds after which this output can be consumed.
|
|
3140
3401
|
*/
|
|
3141
3402
|
locktime: number;
|
|
3142
3403
|
/**
|
|
3143
|
-
*
|
|
3404
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3144
3405
|
*/
|
|
3145
|
-
|
|
3406
|
+
outputIndex: string;
|
|
3146
3407
|
/**
|
|
3147
|
-
*
|
|
3408
|
+
* Hex encoded data for NFT assets.
|
|
3148
3409
|
*/
|
|
3149
|
-
|
|
3410
|
+
payload?: string;
|
|
3150
3411
|
/**
|
|
3151
|
-
*
|
|
3412
|
+
* Minimum number of signatures required to consume this output.
|
|
3152
3413
|
*/
|
|
3153
|
-
|
|
3414
|
+
threshold: number;
|
|
3154
3415
|
/**
|
|
3155
|
-
*
|
|
3416
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3156
3417
|
*/
|
|
3157
|
-
|
|
3418
|
+
timestamp: number;
|
|
3158
3419
|
/**
|
|
3159
|
-
*
|
|
3420
|
+
* Type of output.
|
|
3160
3421
|
*/
|
|
3161
|
-
|
|
3422
|
+
utxoType: string;
|
|
3162
3423
|
};
|
|
3163
3424
|
|
|
3164
3425
|
type CChainExportTransaction = {
|
|
@@ -3289,17 +3550,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3289
3550
|
|
|
3290
3551
|
declare enum PChainTransactionType {
|
|
3291
3552
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3292
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3293
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3294
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3295
3553
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3296
|
-
|
|
3297
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3554
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3298
3555
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3299
3556
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3300
3557
|
IMPORT_TX = "ImportTx",
|
|
3301
3558
|
EXPORT_TX = "ExportTx",
|
|
3302
3559
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3560
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3562
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3563
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3303
3565
|
UNKNOWN = "UNKNOWN"
|
|
3304
3566
|
}
|
|
3305
3567
|
|
|
@@ -3310,29 +3572,48 @@ declare enum UtxoType {
|
|
|
3310
3572
|
|
|
3311
3573
|
type PChainUtxo = {
|
|
3312
3574
|
/**
|
|
3313
|
-
*
|
|
3575
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3314
3576
|
*/
|
|
3315
3577
|
addresses: Array<string>;
|
|
3578
|
+
asset: Asset;
|
|
3579
|
+
/**
|
|
3580
|
+
* Blockchain ID on which this output is consumed on.
|
|
3581
|
+
*/
|
|
3582
|
+
consumedOnChainId: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* Transaction ID that consumed this output.
|
|
3585
|
+
*/
|
|
3586
|
+
consumingTxHash?: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* Blockchain ID on which this output is created on.
|
|
3589
|
+
*/
|
|
3590
|
+
createdOnChainId: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* UTXO ID for this output.
|
|
3593
|
+
*/
|
|
3316
3594
|
utxoId: string;
|
|
3317
|
-
|
|
3318
|
-
|
|
3595
|
+
/**
|
|
3596
|
+
* @deprecated
|
|
3597
|
+
*/
|
|
3598
|
+
amount: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* @deprecated
|
|
3601
|
+
*/
|
|
3602
|
+
assetId: string;
|
|
3319
3603
|
blockNumber: string;
|
|
3320
3604
|
blockTimestamp: number;
|
|
3321
|
-
consumingTxHash?: string;
|
|
3322
|
-
consumingBlockTimestamp?: number;
|
|
3323
3605
|
consumingBlockNumber?: string;
|
|
3324
|
-
|
|
3325
|
-
utxoType: UtxoType;
|
|
3326
|
-
amount: string;
|
|
3327
|
-
stakeableLocktime?: number;
|
|
3606
|
+
consumingBlockTimestamp?: number;
|
|
3328
3607
|
platformLocktime?: number;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3608
|
+
outputIndex: number;
|
|
3609
|
+
rewardType?: RewardType;
|
|
3610
|
+
stakeableLocktime?: number;
|
|
3332
3611
|
staked?: boolean;
|
|
3333
|
-
|
|
3612
|
+
threshold?: number;
|
|
3613
|
+
txHash: string;
|
|
3334
3614
|
utxoEndTimestamp?: number;
|
|
3335
|
-
|
|
3615
|
+
utxoStartTimestamp?: number;
|
|
3616
|
+
utxoType: UtxoType;
|
|
3336
3617
|
};
|
|
3337
3618
|
|
|
3338
3619
|
type PChainTransaction = {
|
|
@@ -3360,15 +3641,15 @@ type PChainTransaction = {
|
|
|
3360
3641
|
/**
|
|
3361
3642
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3362
3643
|
*/
|
|
3363
|
-
value: Array<
|
|
3644
|
+
value: Array<Asset>;
|
|
3364
3645
|
/**
|
|
3365
3646
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3366
3647
|
*/
|
|
3367
|
-
amountBurned: Array<
|
|
3648
|
+
amountBurned: Array<Asset>;
|
|
3368
3649
|
/**
|
|
3369
3650
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3370
3651
|
*/
|
|
3371
|
-
amountStaked: Array<
|
|
3652
|
+
amountStaked: Array<Asset>;
|
|
3372
3653
|
/**
|
|
3373
3654
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3374
3655
|
*/
|
|
@@ -3411,6 +3692,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3411
3692
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3412
3693
|
};
|
|
3413
3694
|
|
|
3695
|
+
declare enum XChainTransactionType {
|
|
3696
|
+
BASE_TX = "BaseTx",
|
|
3697
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3698
|
+
OPERATION_TX = "OperationTx",
|
|
3699
|
+
IMPORT_TX = "ImportTx",
|
|
3700
|
+
EXPORT_TX = "ExportTx",
|
|
3701
|
+
UNKNOWN = "UNKNOWN"
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3414
3704
|
type XChainLinearTransaction = {
|
|
3415
3705
|
/**
|
|
3416
3706
|
* Unique ID for this transaction.
|
|
@@ -3427,7 +3717,7 @@ type XChainLinearTransaction = {
|
|
|
3427
3717
|
/**
|
|
3428
3718
|
* Type of transaction.
|
|
3429
3719
|
*/
|
|
3430
|
-
txType:
|
|
3720
|
+
txType: XChainTransactionType;
|
|
3431
3721
|
/**
|
|
3432
3722
|
* Hex encoded memo bytes for this transaction.
|
|
3433
3723
|
*/
|
|
@@ -3504,7 +3794,7 @@ type XChainNonLinearTransaction = {
|
|
|
3504
3794
|
/**
|
|
3505
3795
|
* Type of transaction.
|
|
3506
3796
|
*/
|
|
3507
|
-
txType:
|
|
3797
|
+
txType: XChainTransactionType;
|
|
3508
3798
|
/**
|
|
3509
3799
|
* Hex encoded memo bytes for this transaction.
|
|
3510
3800
|
*/
|
|
@@ -3562,17 +3852,18 @@ declare enum PChainId {
|
|
|
3562
3852
|
|
|
3563
3853
|
declare enum PrimaryNetworkTxType {
|
|
3564
3854
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3565
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3566
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3567
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3568
3855
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3569
|
-
|
|
3570
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3856
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3571
3857
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3572
3858
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3573
3859
|
IMPORT_TX = "ImportTx",
|
|
3574
3860
|
EXPORT_TX = "ExportTx",
|
|
3575
3861
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3862
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3864
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3865
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3866
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3576
3867
|
UNKNOWN = "UNKNOWN",
|
|
3577
3868
|
BASE_TX = "BaseTx",
|
|
3578
3869
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3606,13 +3897,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3606
3897
|
* List latest transactions
|
|
3607
3898
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3608
3899
|
*
|
|
3609
|
-
* Transactions are filterable by addresses.
|
|
3900
|
+
* 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
3901
|
*
|
|
3611
3902
|
* 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
3903
|
* @returns any
|
|
3613
3904
|
* @throws ApiError
|
|
3614
3905
|
*/
|
|
3615
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3616
3907
|
/**
|
|
3617
3908
|
* A primary network blockchain id or alias.
|
|
3618
3909
|
*/
|
|
@@ -3637,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3637
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3638
3929
|
*/
|
|
3639
3930
|
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
3931
|
/**
|
|
3645
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3646
3933
|
*/
|
|
3647
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3648
3939
|
/**
|
|
3649
3940
|
* 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
3941
|
*/
|
|
@@ -3656,7 +3947,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3656
3947
|
* @returns ListPChainTransactionsResponse
|
|
3657
3948
|
* @throws ApiError
|
|
3658
3949
|
*/
|
|
3659
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3950
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3660
3951
|
/**
|
|
3661
3952
|
* A primary network blockchain id or alias.
|
|
3662
3953
|
*/
|
|
@@ -3681,14 +3972,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3681
3972
|
* Query param for retrieving items before a specific timestamp.
|
|
3682
3973
|
*/
|
|
3683
3974
|
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
3975
|
/**
|
|
3689
3976
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3690
3977
|
*/
|
|
3691
3978
|
pageToken?: string;
|
|
3979
|
+
/**
|
|
3980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3981
|
+
*/
|
|
3982
|
+
pageSize?: number;
|
|
3692
3983
|
/**
|
|
3693
3984
|
* 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
3985
|
*/
|
|
@@ -3700,7 +3991,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3700
3991
|
* @returns ListXChainTransactionsResponse
|
|
3701
3992
|
* @throws ApiError
|
|
3702
3993
|
*/
|
|
3703
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3994
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3704
3995
|
/**
|
|
3705
3996
|
* A primary network blockchain id or alias.
|
|
3706
3997
|
*/
|
|
@@ -3725,14 +4016,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3725
4016
|
* Query param for retrieving items before a specific timestamp.
|
|
3726
4017
|
*/
|
|
3727
4018
|
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
4019
|
/**
|
|
3733
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3734
4021
|
*/
|
|
3735
4022
|
pageToken?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4025
|
+
*/
|
|
4026
|
+
pageSize?: number;
|
|
3736
4027
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3737
4028
|
}
|
|
3738
4029
|
|
|
@@ -3763,7 +4054,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3763
4054
|
* @returns any
|
|
3764
4055
|
* @throws ApiError
|
|
3765
4056
|
*/
|
|
3766
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4057
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3767
4058
|
/**
|
|
3768
4059
|
* A primary network blockchain id or alias.
|
|
3769
4060
|
*/
|
|
@@ -3776,14 +4067,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3776
4067
|
* 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
4068
|
*/
|
|
3778
4069
|
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
4070
|
/**
|
|
3784
4071
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3785
4072
|
*/
|
|
3786
4073
|
pageToken?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4076
|
+
*/
|
|
4077
|
+
pageSize?: number;
|
|
3787
4078
|
/**
|
|
3788
4079
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3789
4080
|
*/
|
|
@@ -3828,7 +4119,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3828
4119
|
* @returns ListXChainVerticesResponse
|
|
3829
4120
|
* @throws ApiError
|
|
3830
4121
|
*/
|
|
3831
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4122
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3832
4123
|
/**
|
|
3833
4124
|
* A primary network blockchain id or alias.
|
|
3834
4125
|
*/
|
|
@@ -3837,14 +4128,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3837
4128
|
* Either mainnet or a testnet.
|
|
3838
4129
|
*/
|
|
3839
4130
|
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
4131
|
/**
|
|
3845
4132
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3846
4133
|
*/
|
|
3847
4134
|
pageToken?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4137
|
+
*/
|
|
4138
|
+
pageSize?: number;
|
|
3848
4139
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3849
4140
|
/**
|
|
3850
4141
|
* Get vertex
|
|
@@ -3872,7 +4163,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3872
4163
|
* @returns ListXChainVerticesResponse
|
|
3873
4164
|
* @throws ApiError
|
|
3874
4165
|
*/
|
|
3875
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4166
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3876
4167
|
/**
|
|
3877
4168
|
* The height of a vertex.
|
|
3878
4169
|
*/
|
|
@@ -3885,14 +4176,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3885
4176
|
* Either mainnet or a testnet.
|
|
3886
4177
|
*/
|
|
3887
4178
|
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
4179
|
/**
|
|
3893
4180
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3894
4181
|
*/
|
|
3895
4182
|
pageToken?: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4185
|
+
*/
|
|
4186
|
+
pageSize?: number;
|
|
3896
4187
|
/**
|
|
3897
4188
|
* 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
4189
|
*/
|
|
@@ -3939,4 +4230,4 @@ declare class ApiError extends Error {
|
|
|
3939
4230
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3940
4231
|
}
|
|
3941
4232
|
|
|
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,
|
|
4233
|
+
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 };
|