@avalabs/glacier-sdk 2.8.0-canary.6c62b23.0 → 2.8.0-canary.6d241b5.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 +482 -322
- package/dist/index.js +152 -111
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- 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/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- 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 +9 -4
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -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/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- 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/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -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 +2 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/services/DefaultService.d.ts +20 -5
- package/esm/generated/services/DefaultService.js +14 -2
- 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 +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +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 +6 -1
- package/esm/index.js +3 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,10 @@ type AddressActivityMetadata = {
|
|
|
65
65
|
* Ethereum address for the address_activity event type
|
|
66
66
|
*/
|
|
67
67
|
address: string;
|
|
68
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Array of hexadecimal strings of the event signatures.
|
|
70
|
+
*/
|
|
71
|
+
eventSignatures?: Array<string>;
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
declare enum EventType {
|
|
@@ -85,6 +88,8 @@ type WebhookResponse = {
|
|
|
85
88
|
chainId: string;
|
|
86
89
|
status: WebhookStatusType;
|
|
87
90
|
createdAt: number;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
88
93
|
};
|
|
89
94
|
|
|
90
95
|
type ListWebhooksResponse = {
|
|
@@ -105,6 +110,10 @@ type RegisterWebhookRequest = {
|
|
|
105
110
|
metadata: AddressActivityMetadata;
|
|
106
111
|
};
|
|
107
112
|
|
|
113
|
+
type SharedSecretsResponse = {
|
|
114
|
+
secret: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
108
117
|
declare enum WebhookStatus {
|
|
109
118
|
ACTIVE = "active",
|
|
110
119
|
INACTIVE = "inactive"
|
|
@@ -133,15 +142,15 @@ declare class DefaultService {
|
|
|
133
142
|
* @returns ListWebhooksResponse
|
|
134
143
|
* @throws ApiError
|
|
135
144
|
*/
|
|
136
|
-
listWebhooks({
|
|
137
|
-
/**
|
|
138
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
139
|
-
*/
|
|
140
|
-
pageSize?: number;
|
|
145
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
141
146
|
/**
|
|
142
147
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
143
148
|
*/
|
|
144
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;
|
|
145
154
|
/**
|
|
146
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.
|
|
147
156
|
*/
|
|
@@ -159,6 +168,20 @@ declare class DefaultService {
|
|
|
159
168
|
*/
|
|
160
169
|
id: string;
|
|
161
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>;
|
|
162
185
|
}
|
|
163
186
|
|
|
164
187
|
declare enum CurrencyCode {
|
|
@@ -436,7 +459,7 @@ declare class EvmBalancesService {
|
|
|
436
459
|
*/
|
|
437
460
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
438
461
|
/**
|
|
439
|
-
* 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.
|
|
440
463
|
*/
|
|
441
464
|
chainId: string;
|
|
442
465
|
/**
|
|
@@ -462,9 +485,9 @@ declare class EvmBalancesService {
|
|
|
462
485
|
* @returns ListErc20BalancesResponse
|
|
463
486
|
* @throws ApiError
|
|
464
487
|
*/
|
|
465
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
488
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
466
489
|
/**
|
|
467
|
-
* 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.
|
|
468
491
|
*/
|
|
469
492
|
chainId: string;
|
|
470
493
|
/**
|
|
@@ -475,14 +498,14 @@ declare class EvmBalancesService {
|
|
|
475
498
|
* The block number, if not defined the block number will be the latest block.
|
|
476
499
|
*/
|
|
477
500
|
blockNumber?: string;
|
|
478
|
-
/**
|
|
479
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
480
|
-
*/
|
|
481
|
-
pageSize?: number;
|
|
482
501
|
/**
|
|
483
502
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
484
503
|
*/
|
|
485
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;
|
|
486
509
|
/**
|
|
487
510
|
* A comma separated list of contract addresses to filter by.
|
|
488
511
|
*/
|
|
@@ -500,23 +523,23 @@ declare class EvmBalancesService {
|
|
|
500
523
|
* @returns ListErc721BalancesResponse
|
|
501
524
|
* @throws ApiError
|
|
502
525
|
*/
|
|
503
|
-
listErc721Balances({ chainId, address,
|
|
526
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
504
527
|
/**
|
|
505
|
-
* 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.
|
|
506
529
|
*/
|
|
507
530
|
chainId: string;
|
|
508
531
|
/**
|
|
509
532
|
* A wallet address.
|
|
510
533
|
*/
|
|
511
534
|
address: string;
|
|
512
|
-
/**
|
|
513
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
514
|
-
*/
|
|
515
|
-
pageSize?: number;
|
|
516
535
|
/**
|
|
517
536
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
518
537
|
*/
|
|
519
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;
|
|
520
543
|
/**
|
|
521
544
|
* A contract addresses to filter by.
|
|
522
545
|
*/
|
|
@@ -532,9 +555,9 @@ declare class EvmBalancesService {
|
|
|
532
555
|
* @returns ListErc1155BalancesResponse
|
|
533
556
|
* @throws ApiError
|
|
534
557
|
*/
|
|
535
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
558
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
536
559
|
/**
|
|
537
|
-
* 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.
|
|
538
561
|
*/
|
|
539
562
|
chainId: string;
|
|
540
563
|
/**
|
|
@@ -545,14 +568,14 @@ declare class EvmBalancesService {
|
|
|
545
568
|
* The block number, if not defined the block number will be the latest block.
|
|
546
569
|
*/
|
|
547
570
|
blockNumber?: string;
|
|
548
|
-
/**
|
|
549
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
550
|
-
*/
|
|
551
|
-
pageSize?: number;
|
|
552
571
|
/**
|
|
553
572
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
554
573
|
*/
|
|
555
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;
|
|
556
579
|
/**
|
|
557
580
|
* A contract addresses to filter by.
|
|
558
581
|
*/
|
|
@@ -566,23 +589,23 @@ declare class EvmBalancesService {
|
|
|
566
589
|
* @returns ListCollectibleBalancesResponse
|
|
567
590
|
* @throws ApiError
|
|
568
591
|
*/
|
|
569
|
-
listCollectibleBalances({ chainId, address,
|
|
592
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
570
593
|
/**
|
|
571
|
-
* 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.
|
|
572
595
|
*/
|
|
573
596
|
chainId: string;
|
|
574
597
|
/**
|
|
575
598
|
* A wallet address.
|
|
576
599
|
*/
|
|
577
600
|
address: string;
|
|
578
|
-
/**
|
|
579
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
580
|
-
*/
|
|
581
|
-
pageSize?: number;
|
|
582
601
|
/**
|
|
583
602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
584
603
|
*/
|
|
585
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;
|
|
586
609
|
/**
|
|
587
610
|
* A contract addresses to filter by.
|
|
588
611
|
*/
|
|
@@ -695,19 +718,19 @@ declare class EvmBlocksService {
|
|
|
695
718
|
* @returns ListEvmBlocksResponse
|
|
696
719
|
* @throws ApiError
|
|
697
720
|
*/
|
|
698
|
-
getLatestBlocks({ chainId,
|
|
721
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
699
722
|
/**
|
|
700
|
-
* 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.
|
|
701
724
|
*/
|
|
702
725
|
chainId: string;
|
|
703
|
-
/**
|
|
704
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
705
|
-
*/
|
|
706
|
-
pageSize?: number;
|
|
707
726
|
/**
|
|
708
727
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
709
728
|
*/
|
|
710
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;
|
|
711
734
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
712
735
|
/**
|
|
713
736
|
* Get block
|
|
@@ -717,7 +740,7 @@ declare class EvmBlocksService {
|
|
|
717
740
|
*/
|
|
718
741
|
getBlock({ chainId, blockId, }: {
|
|
719
742
|
/**
|
|
720
|
-
* 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.
|
|
721
744
|
*/
|
|
722
745
|
chainId: string;
|
|
723
746
|
/**
|
|
@@ -838,7 +861,7 @@ declare class EvmChainsService {
|
|
|
838
861
|
*/
|
|
839
862
|
getChainInfo({ chainId, }: {
|
|
840
863
|
/**
|
|
841
|
-
* 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.
|
|
842
865
|
*/
|
|
843
866
|
chainId: string;
|
|
844
867
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1133,7 +1156,7 @@ declare class EvmContractsService {
|
|
|
1133
1156
|
*/
|
|
1134
1157
|
getContractMetadata({ chainId, address, }: {
|
|
1135
1158
|
/**
|
|
1136
|
-
* 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.
|
|
1137
1160
|
*/
|
|
1138
1161
|
chainId: string;
|
|
1139
1162
|
/**
|
|
@@ -1149,7 +1172,7 @@ declare class EvmContractsService {
|
|
|
1149
1172
|
*/
|
|
1150
1173
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1151
1174
|
/**
|
|
1152
|
-
* 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.
|
|
1153
1176
|
*/
|
|
1154
1177
|
chainId: string;
|
|
1155
1178
|
/**
|
|
@@ -1677,7 +1700,7 @@ declare class EvmTransactionsService {
|
|
|
1677
1700
|
*/
|
|
1678
1701
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1679
1702
|
/**
|
|
1680
|
-
* 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.
|
|
1681
1704
|
*/
|
|
1682
1705
|
chainId: string;
|
|
1683
1706
|
/**
|
|
@@ -1695,23 +1718,23 @@ declare class EvmTransactionsService {
|
|
|
1695
1718
|
* @returns ListContractsResponse
|
|
1696
1719
|
* @throws ApiError
|
|
1697
1720
|
*/
|
|
1698
|
-
listContractDeployments({ chainId, address,
|
|
1721
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1699
1722
|
/**
|
|
1700
|
-
* 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.
|
|
1701
1724
|
*/
|
|
1702
1725
|
chainId: string;
|
|
1703
1726
|
/**
|
|
1704
1727
|
* A wallet address.
|
|
1705
1728
|
*/
|
|
1706
1729
|
address: string;
|
|
1707
|
-
/**
|
|
1708
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1709
|
-
*/
|
|
1710
|
-
pageSize?: number;
|
|
1711
1730
|
/**
|
|
1712
1731
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1713
1732
|
*/
|
|
1714
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;
|
|
1715
1738
|
}): CancelablePromise<ListContractsResponse>;
|
|
1716
1739
|
/**
|
|
1717
1740
|
* List ERC transfers
|
|
@@ -1719,9 +1742,9 @@ declare class EvmTransactionsService {
|
|
|
1719
1742
|
* @returns ListTransfersResponse
|
|
1720
1743
|
* @throws ApiError
|
|
1721
1744
|
*/
|
|
1722
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1745
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1723
1746
|
/**
|
|
1724
|
-
* 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.
|
|
1725
1748
|
*/
|
|
1726
1749
|
chainId: string;
|
|
1727
1750
|
/**
|
|
@@ -1736,14 +1759,14 @@ declare class EvmTransactionsService {
|
|
|
1736
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.
|
|
1737
1760
|
*/
|
|
1738
1761
|
endBlock?: number;
|
|
1739
|
-
/**
|
|
1740
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1741
|
-
*/
|
|
1742
|
-
pageSize?: number;
|
|
1743
1762
|
/**
|
|
1744
1763
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1745
1764
|
*/
|
|
1746
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;
|
|
1747
1770
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1748
1771
|
/**
|
|
1749
1772
|
* List transactions
|
|
@@ -1753,23 +1776,23 @@ declare class EvmTransactionsService {
|
|
|
1753
1776
|
* @returns ListTransactionDetailsResponse
|
|
1754
1777
|
* @throws ApiError
|
|
1755
1778
|
*/
|
|
1756
|
-
listTransactions({ chainId, address,
|
|
1779
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1757
1780
|
/**
|
|
1758
|
-
* 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.
|
|
1759
1782
|
*/
|
|
1760
1783
|
chainId: string;
|
|
1761
1784
|
/**
|
|
1762
1785
|
* A wallet address.
|
|
1763
1786
|
*/
|
|
1764
1787
|
address: string;
|
|
1765
|
-
/**
|
|
1766
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1767
|
-
*/
|
|
1768
|
-
pageSize?: number;
|
|
1769
1788
|
/**
|
|
1770
1789
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1771
1790
|
*/
|
|
1772
1791
|
pageToken?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1794
|
+
*/
|
|
1795
|
+
pageSize?: number;
|
|
1773
1796
|
/**
|
|
1774
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.
|
|
1775
1798
|
*/
|
|
@@ -1789,9 +1812,9 @@ declare class EvmTransactionsService {
|
|
|
1789
1812
|
* @returns ListNativeTransactionsResponse
|
|
1790
1813
|
* @throws ApiError
|
|
1791
1814
|
*/
|
|
1792
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1815
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1793
1816
|
/**
|
|
1794
|
-
* 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.
|
|
1795
1818
|
*/
|
|
1796
1819
|
chainId: string;
|
|
1797
1820
|
/**
|
|
@@ -1806,14 +1829,14 @@ declare class EvmTransactionsService {
|
|
|
1806
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.
|
|
1807
1830
|
*/
|
|
1808
1831
|
endBlock?: number;
|
|
1809
|
-
/**
|
|
1810
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1811
|
-
*/
|
|
1812
|
-
pageSize?: number;
|
|
1813
1832
|
/**
|
|
1814
1833
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1815
1834
|
*/
|
|
1816
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;
|
|
1817
1840
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1818
1841
|
/**
|
|
1819
1842
|
* List ERC-20 transfers
|
|
@@ -1821,9 +1844,9 @@ declare class EvmTransactionsService {
|
|
|
1821
1844
|
* @returns ListErc20TransactionsResponse
|
|
1822
1845
|
* @throws ApiError
|
|
1823
1846
|
*/
|
|
1824
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1847
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1825
1848
|
/**
|
|
1826
|
-
* 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.
|
|
1827
1850
|
*/
|
|
1828
1851
|
chainId: string;
|
|
1829
1852
|
/**
|
|
@@ -1838,14 +1861,14 @@ declare class EvmTransactionsService {
|
|
|
1838
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.
|
|
1839
1862
|
*/
|
|
1840
1863
|
endBlock?: number;
|
|
1841
|
-
/**
|
|
1842
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1843
|
-
*/
|
|
1844
|
-
pageSize?: number;
|
|
1845
1864
|
/**
|
|
1846
1865
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1847
1866
|
*/
|
|
1848
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;
|
|
1849
1872
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1850
1873
|
/**
|
|
1851
1874
|
* List ERC-721 transfers
|
|
@@ -1853,9 +1876,9 @@ declare class EvmTransactionsService {
|
|
|
1853
1876
|
* @returns ListErc721TransactionsResponse
|
|
1854
1877
|
* @throws ApiError
|
|
1855
1878
|
*/
|
|
1856
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1879
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1857
1880
|
/**
|
|
1858
|
-
* 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.
|
|
1859
1882
|
*/
|
|
1860
1883
|
chainId: string;
|
|
1861
1884
|
/**
|
|
@@ -1870,14 +1893,14 @@ declare class EvmTransactionsService {
|
|
|
1870
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.
|
|
1871
1894
|
*/
|
|
1872
1895
|
endBlock?: number;
|
|
1873
|
-
/**
|
|
1874
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1875
|
-
*/
|
|
1876
|
-
pageSize?: number;
|
|
1877
1896
|
/**
|
|
1878
1897
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1879
1898
|
*/
|
|
1880
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;
|
|
1881
1904
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1882
1905
|
/**
|
|
1883
1906
|
* List ERC-1155 transfers
|
|
@@ -1885,9 +1908,9 @@ declare class EvmTransactionsService {
|
|
|
1885
1908
|
* @returns ListErc1155TransactionsResponse
|
|
1886
1909
|
* @throws ApiError
|
|
1887
1910
|
*/
|
|
1888
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1911
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1889
1912
|
/**
|
|
1890
|
-
* 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.
|
|
1891
1914
|
*/
|
|
1892
1915
|
chainId: string;
|
|
1893
1916
|
/**
|
|
@@ -1902,14 +1925,14 @@ declare class EvmTransactionsService {
|
|
|
1902
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.
|
|
1903
1926
|
*/
|
|
1904
1927
|
endBlock?: number;
|
|
1905
|
-
/**
|
|
1906
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1907
|
-
*/
|
|
1908
|
-
pageSize?: number;
|
|
1909
1928
|
/**
|
|
1910
1929
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1911
1930
|
*/
|
|
1912
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;
|
|
1913
1936
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1914
1937
|
/**
|
|
1915
1938
|
* List internal transactions
|
|
@@ -1919,9 +1942,9 @@ declare class EvmTransactionsService {
|
|
|
1919
1942
|
* @returns ListInternalTransactionsResponse
|
|
1920
1943
|
* @throws ApiError
|
|
1921
1944
|
*/
|
|
1922
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1945
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1923
1946
|
/**
|
|
1924
|
-
* 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.
|
|
1925
1948
|
*/
|
|
1926
1949
|
chainId: string;
|
|
1927
1950
|
/**
|
|
@@ -1936,14 +1959,14 @@ declare class EvmTransactionsService {
|
|
|
1936
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.
|
|
1937
1960
|
*/
|
|
1938
1961
|
endBlock?: number;
|
|
1939
|
-
/**
|
|
1940
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1941
|
-
*/
|
|
1942
|
-
pageSize?: number;
|
|
1943
1962
|
/**
|
|
1944
1963
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1945
1964
|
*/
|
|
1946
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;
|
|
1947
1970
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1948
1971
|
/**
|
|
1949
1972
|
* Get transaction
|
|
@@ -1953,7 +1976,7 @@ declare class EvmTransactionsService {
|
|
|
1953
1976
|
*/
|
|
1954
1977
|
getTransaction({ chainId, txHash, }: {
|
|
1955
1978
|
/**
|
|
1956
|
-
* 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.
|
|
1957
1980
|
*/
|
|
1958
1981
|
chainId: string;
|
|
1959
1982
|
/**
|
|
@@ -1969,7 +1992,7 @@ declare class EvmTransactionsService {
|
|
|
1969
1992
|
*/
|
|
1970
1993
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1971
1994
|
/**
|
|
1972
|
-
* 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.
|
|
1973
1996
|
*/
|
|
1974
1997
|
chainId: string;
|
|
1975
1998
|
/**
|
|
@@ -1983,19 +2006,19 @@ declare class EvmTransactionsService {
|
|
|
1983
2006
|
* @returns ListNativeTransactionsResponse
|
|
1984
2007
|
* @throws ApiError
|
|
1985
2008
|
*/
|
|
1986
|
-
listLatestTransactions({ chainId,
|
|
2009
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1987
2010
|
/**
|
|
1988
|
-
* 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.
|
|
1989
2012
|
*/
|
|
1990
2013
|
chainId: string;
|
|
1991
|
-
/**
|
|
1992
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1993
|
-
*/
|
|
1994
|
-
pageSize?: number;
|
|
1995
2014
|
/**
|
|
1996
2015
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1997
2016
|
*/
|
|
1998
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;
|
|
1999
2022
|
/**
|
|
2000
2023
|
* A status filter for listed transactions.
|
|
2001
2024
|
*/
|
|
@@ -2038,7 +2061,7 @@ declare class NfTsService {
|
|
|
2038
2061
|
*/
|
|
2039
2062
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2040
2063
|
/**
|
|
2041
|
-
* 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.
|
|
2042
2065
|
*/
|
|
2043
2066
|
chainId: string;
|
|
2044
2067
|
/**
|
|
@@ -2056,23 +2079,23 @@ declare class NfTsService {
|
|
|
2056
2079
|
* @returns ListNftTokens
|
|
2057
2080
|
* @throws ApiError
|
|
2058
2081
|
*/
|
|
2059
|
-
listTokens({ chainId, address,
|
|
2082
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2060
2083
|
/**
|
|
2061
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2084
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2062
2085
|
*/
|
|
2063
2086
|
chainId: string;
|
|
2064
2087
|
/**
|
|
2065
2088
|
* Contract address on the relevant chain.
|
|
2066
2089
|
*/
|
|
2067
2090
|
address: string;
|
|
2068
|
-
/**
|
|
2069
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2070
|
-
*/
|
|
2071
|
-
pageSize?: number;
|
|
2072
2091
|
/**
|
|
2073
2092
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2074
2093
|
*/
|
|
2075
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;
|
|
2076
2099
|
}): CancelablePromise<ListNftTokens>;
|
|
2077
2100
|
/**
|
|
2078
2101
|
* Get token details
|
|
@@ -2082,7 +2105,7 @@ declare class NfTsService {
|
|
|
2082
2105
|
*/
|
|
2083
2106
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2084
2107
|
/**
|
|
2085
|
-
* 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.
|
|
2086
2109
|
*/
|
|
2087
2110
|
chainId: string;
|
|
2088
2111
|
/**
|
|
@@ -2348,13 +2371,44 @@ type BlockchainInfo = {
|
|
|
2348
2371
|
blockchainId: string;
|
|
2349
2372
|
};
|
|
2350
2373
|
|
|
2374
|
+
type SubnetOwnershipInfo = {
|
|
2375
|
+
/**
|
|
2376
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2377
|
+
*/
|
|
2378
|
+
locktime: number;
|
|
2379
|
+
/**
|
|
2380
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2381
|
+
*/
|
|
2382
|
+
threshold: number;
|
|
2383
|
+
/**
|
|
2384
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2385
|
+
*/
|
|
2386
|
+
addresses: Array<string>;
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2351
2389
|
type Subnet = {
|
|
2352
2390
|
createBlockTimestamp: number;
|
|
2353
2391
|
createBlockIndex: string;
|
|
2354
2392
|
subnetId: string;
|
|
2393
|
+
/**
|
|
2394
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2395
|
+
* @deprecated
|
|
2396
|
+
*/
|
|
2355
2397
|
ownerAddresses: Array<string>;
|
|
2398
|
+
/**
|
|
2399
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2400
|
+
* @deprecated
|
|
2401
|
+
*/
|
|
2356
2402
|
threshold: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2405
|
+
* @deprecated
|
|
2406
|
+
*/
|
|
2357
2407
|
locktime: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Latest subnet owner details for this Subnet.
|
|
2410
|
+
*/
|
|
2411
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2358
2412
|
blockchains: Array<BlockchainInfo>;
|
|
2359
2413
|
};
|
|
2360
2414
|
|
|
@@ -2450,6 +2504,24 @@ declare namespace PendingValidatorDetails {
|
|
|
2450
2504
|
}
|
|
2451
2505
|
}
|
|
2452
2506
|
|
|
2507
|
+
type RemovedValidatorDetails = {
|
|
2508
|
+
txHash: string;
|
|
2509
|
+
nodeId: string;
|
|
2510
|
+
subnetId: string;
|
|
2511
|
+
amountStaked: string;
|
|
2512
|
+
delegationFee?: string;
|
|
2513
|
+
startTimestamp: number;
|
|
2514
|
+
endTimestamp: number;
|
|
2515
|
+
removeTxHash: string;
|
|
2516
|
+
removeTimestamp: number;
|
|
2517
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2518
|
+
};
|
|
2519
|
+
declare namespace RemovedValidatorDetails {
|
|
2520
|
+
enum validationStatus {
|
|
2521
|
+
REMOVED = "removed"
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2453
2525
|
type ListValidatorDetailsResponse = {
|
|
2454
2526
|
/**
|
|
2455
2527
|
* 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.
|
|
@@ -2458,7 +2530,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2458
2530
|
/**
|
|
2459
2531
|
* The list of validator Details.
|
|
2460
2532
|
*/
|
|
2461
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2533
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2462
2534
|
};
|
|
2463
2535
|
|
|
2464
2536
|
declare enum Network {
|
|
@@ -2469,7 +2541,18 @@ declare enum Network {
|
|
|
2469
2541
|
declare enum ValidationStatusType {
|
|
2470
2542
|
COMPLETED = "completed",
|
|
2471
2543
|
ACTIVE = "active",
|
|
2472
|
-
PENDING = "pending"
|
|
2544
|
+
PENDING = "pending",
|
|
2545
|
+
REMOVED = "removed"
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2549
|
+
FIXED = "fixed",
|
|
2550
|
+
VARIABLE = "variable"
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
declare enum PrimaryNetworkAssetType {
|
|
2554
|
+
SECP256K1 = "secp256k1",
|
|
2555
|
+
NFT = "nft"
|
|
2473
2556
|
}
|
|
2474
2557
|
|
|
2475
2558
|
type XChainAssetDetails = {
|
|
@@ -2492,15 +2575,15 @@ type XChainAssetDetails = {
|
|
|
2492
2575
|
/**
|
|
2493
2576
|
* Type of asset like SECP256K1 or NFT.
|
|
2494
2577
|
*/
|
|
2495
|
-
type:
|
|
2578
|
+
type: PrimaryNetworkAssetType;
|
|
2496
2579
|
/**
|
|
2497
2580
|
* Timestamp in seconds this asset was created on.
|
|
2498
2581
|
*/
|
|
2499
2582
|
createdAtTimestamp: number;
|
|
2500
2583
|
/**
|
|
2501
|
-
* Cap represents if an asset
|
|
2584
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2502
2585
|
*/
|
|
2503
|
-
cap:
|
|
2586
|
+
cap: PrimaryNetworkAssetCap;
|
|
2504
2587
|
};
|
|
2505
2588
|
|
|
2506
2589
|
declare enum XChainId {
|
|
@@ -2566,19 +2649,19 @@ declare class PrimaryNetworkService {
|
|
|
2566
2649
|
* @returns ListBlockchainsResponse
|
|
2567
2650
|
* @throws ApiError
|
|
2568
2651
|
*/
|
|
2569
|
-
listBlockchains({ network,
|
|
2652
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2570
2653
|
/**
|
|
2571
2654
|
* Either mainnet or a testnet.
|
|
2572
2655
|
*/
|
|
2573
2656
|
network: Network;
|
|
2574
|
-
/**
|
|
2575
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2576
|
-
*/
|
|
2577
|
-
pageSize?: number;
|
|
2578
2657
|
/**
|
|
2579
2658
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2580
2659
|
*/
|
|
2581
2660
|
pageToken?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2663
|
+
*/
|
|
2664
|
+
pageSize?: number;
|
|
2582
2665
|
/**
|
|
2583
2666
|
* 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.
|
|
2584
2667
|
*/
|
|
@@ -2590,19 +2673,19 @@ declare class PrimaryNetworkService {
|
|
|
2590
2673
|
* @returns ListSubnetsResponse
|
|
2591
2674
|
* @throws ApiError
|
|
2592
2675
|
*/
|
|
2593
|
-
listSubnets({ network,
|
|
2676
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2594
2677
|
/**
|
|
2595
2678
|
* Either mainnet or a testnet.
|
|
2596
2679
|
*/
|
|
2597
2680
|
network: Network;
|
|
2598
|
-
/**
|
|
2599
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2600
|
-
*/
|
|
2601
|
-
pageSize?: number;
|
|
2602
2681
|
/**
|
|
2603
2682
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2604
2683
|
*/
|
|
2605
2684
|
pageToken?: string;
|
|
2685
|
+
/**
|
|
2686
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2687
|
+
*/
|
|
2688
|
+
pageSize?: number;
|
|
2606
2689
|
/**
|
|
2607
2690
|
* 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.
|
|
2608
2691
|
*/
|
|
@@ -2614,55 +2697,55 @@ declare class PrimaryNetworkService {
|
|
|
2614
2697
|
* @returns ListValidatorDetailsResponse
|
|
2615
2698
|
* @throws ApiError
|
|
2616
2699
|
*/
|
|
2617
|
-
listValidators({ network, pageSize,
|
|
2700
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2618
2701
|
/**
|
|
2619
2702
|
* Either mainnet or a testnet.
|
|
2620
2703
|
*/
|
|
2621
2704
|
network: Network;
|
|
2705
|
+
/**
|
|
2706
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2707
|
+
*/
|
|
2708
|
+
pageToken?: string;
|
|
2622
2709
|
/**
|
|
2623
2710
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2624
2711
|
*/
|
|
2625
2712
|
pageSize?: number;
|
|
2626
2713
|
/**
|
|
2627
|
-
* A
|
|
2714
|
+
* A comma separated list of node ids to filter by.
|
|
2628
2715
|
*/
|
|
2629
|
-
|
|
2716
|
+
nodeIds?: string;
|
|
2630
2717
|
/**
|
|
2631
|
-
* The
|
|
2718
|
+
* 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.
|
|
2632
2719
|
*/
|
|
2633
|
-
|
|
2720
|
+
sortOrder?: SortOrder;
|
|
2634
2721
|
/**
|
|
2635
|
-
*
|
|
2722
|
+
* Validation status of the node.
|
|
2636
2723
|
*/
|
|
2637
|
-
|
|
2724
|
+
validationStatus?: ValidationStatusType;
|
|
2638
2725
|
/**
|
|
2639
2726
|
* 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
|
|
2640
2727
|
*/
|
|
2641
|
-
minDelegationCapacity?:
|
|
2728
|
+
minDelegationCapacity?: string;
|
|
2642
2729
|
/**
|
|
2643
2730
|
* 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.
|
|
2644
2731
|
*/
|
|
2645
|
-
maxDelegationCapacity?:
|
|
2646
|
-
/**
|
|
2647
|
-
* 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.
|
|
2648
|
-
*/
|
|
2649
|
-
minFeePercentage?: any;
|
|
2732
|
+
maxDelegationCapacity?: string;
|
|
2650
2733
|
/**
|
|
2651
|
-
* The
|
|
2734
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2652
2735
|
*/
|
|
2653
|
-
|
|
2736
|
+
minTimeRemaining?: number;
|
|
2654
2737
|
/**
|
|
2655
|
-
*
|
|
2738
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2656
2739
|
*/
|
|
2657
|
-
|
|
2740
|
+
maxTimeRemaining?: number;
|
|
2658
2741
|
/**
|
|
2659
|
-
* The
|
|
2742
|
+
* 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.
|
|
2660
2743
|
*/
|
|
2661
|
-
|
|
2744
|
+
minFeePercentage?: number;
|
|
2662
2745
|
/**
|
|
2663
|
-
*
|
|
2746
|
+
* 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.
|
|
2664
2747
|
*/
|
|
2665
|
-
|
|
2748
|
+
maxFeePercentage?: number;
|
|
2666
2749
|
/**
|
|
2667
2750
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2668
2751
|
*/
|
|
@@ -2674,7 +2757,7 @@ declare class PrimaryNetworkService {
|
|
|
2674
2757
|
* @returns ListValidatorDetailsResponse
|
|
2675
2758
|
* @throws ApiError
|
|
2676
2759
|
*/
|
|
2677
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2760
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2678
2761
|
/**
|
|
2679
2762
|
* Either mainnet or a testnet.
|
|
2680
2763
|
*/
|
|
@@ -2683,14 +2766,14 @@ declare class PrimaryNetworkService {
|
|
|
2683
2766
|
* A primary network (P or X chain) nodeId.
|
|
2684
2767
|
*/
|
|
2685
2768
|
nodeId: string;
|
|
2686
|
-
/**
|
|
2687
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2688
|
-
*/
|
|
2689
|
-
pageSize?: number;
|
|
2690
2769
|
/**
|
|
2691
2770
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2692
2771
|
*/
|
|
2693
2772
|
pageToken?: string;
|
|
2773
|
+
/**
|
|
2774
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2775
|
+
*/
|
|
2776
|
+
pageSize?: number;
|
|
2694
2777
|
/**
|
|
2695
2778
|
* 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.
|
|
2696
2779
|
*/
|
|
@@ -2706,19 +2789,19 @@ declare class PrimaryNetworkService {
|
|
|
2706
2789
|
* @returns ListDelegatorDetailsResponse
|
|
2707
2790
|
* @throws ApiError
|
|
2708
2791
|
*/
|
|
2709
|
-
listDelegators({ network,
|
|
2792
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2710
2793
|
/**
|
|
2711
2794
|
* Either mainnet or a testnet.
|
|
2712
2795
|
*/
|
|
2713
2796
|
network: Network;
|
|
2714
|
-
/**
|
|
2715
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2716
|
-
*/
|
|
2717
|
-
pageSize?: number;
|
|
2718
2797
|
/**
|
|
2719
2798
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2720
2799
|
*/
|
|
2721
2800
|
pageToken?: string;
|
|
2801
|
+
/**
|
|
2802
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2803
|
+
*/
|
|
2804
|
+
pageSize?: number;
|
|
2722
2805
|
/**
|
|
2723
2806
|
* A comma separated list of reward addresses to filter by.
|
|
2724
2807
|
*/
|
|
@@ -2769,7 +2852,7 @@ type CChainSharedAssetBalance = {
|
|
|
2769
2852
|
/**
|
|
2770
2853
|
* Type of asset like SECP256K1 or NFT.
|
|
2771
2854
|
*/
|
|
2772
|
-
type:
|
|
2855
|
+
type: PrimaryNetworkAssetType;
|
|
2773
2856
|
/**
|
|
2774
2857
|
* Amount of the asset.
|
|
2775
2858
|
*/
|
|
@@ -2804,43 +2887,87 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2804
2887
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2805
2888
|
};
|
|
2806
2889
|
|
|
2807
|
-
type
|
|
2808
|
-
assetId: string;
|
|
2809
|
-
amount: string;
|
|
2810
|
-
};
|
|
2811
|
-
|
|
2812
|
-
type PChainSharedAsset = {
|
|
2813
|
-
assetId: string;
|
|
2814
|
-
amount: string;
|
|
2815
|
-
sharedWithChainId: string;
|
|
2816
|
-
status: string;
|
|
2817
|
-
};
|
|
2818
|
-
|
|
2819
|
-
type PChainBalance = {
|
|
2890
|
+
type Asset = {
|
|
2820
2891
|
/**
|
|
2821
|
-
*
|
|
2892
|
+
* Unique ID for an asset.
|
|
2822
2893
|
*/
|
|
2823
|
-
|
|
2894
|
+
assetId: string;
|
|
2824
2895
|
/**
|
|
2825
|
-
*
|
|
2896
|
+
* Name of this asset.
|
|
2897
|
+
*/
|
|
2898
|
+
name: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Symbol for this asset (max 4 characters).
|
|
2901
|
+
*/
|
|
2902
|
+
symbol: string;
|
|
2903
|
+
/**
|
|
2904
|
+
* Denomination of this asset to represent fungibility.
|
|
2905
|
+
*/
|
|
2906
|
+
denomination: number;
|
|
2907
|
+
/**
|
|
2908
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2909
|
+
*/
|
|
2910
|
+
type: PrimaryNetworkAssetType;
|
|
2911
|
+
/**
|
|
2912
|
+
* Amount of the asset.
|
|
2913
|
+
*/
|
|
2914
|
+
amount: string;
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
type PChainSharedAsset = {
|
|
2918
|
+
/**
|
|
2919
|
+
* Unique ID for an asset.
|
|
2920
|
+
*/
|
|
2921
|
+
assetId: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* Name of this asset.
|
|
2924
|
+
*/
|
|
2925
|
+
name: string;
|
|
2926
|
+
/**
|
|
2927
|
+
* Symbol for this asset (max 4 characters).
|
|
2928
|
+
*/
|
|
2929
|
+
symbol: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Denomination of this asset to represent fungibility.
|
|
2932
|
+
*/
|
|
2933
|
+
denomination: number;
|
|
2934
|
+
/**
|
|
2935
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2936
|
+
*/
|
|
2937
|
+
type: PrimaryNetworkAssetType;
|
|
2938
|
+
/**
|
|
2939
|
+
* Amount of the asset.
|
|
2940
|
+
*/
|
|
2941
|
+
amount: string;
|
|
2942
|
+
sharedWithChainId: string;
|
|
2943
|
+
status: string;
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2946
|
+
type PChainBalance = {
|
|
2947
|
+
/**
|
|
2948
|
+
* 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.
|
|
2826
2949
|
*/
|
|
2827
|
-
|
|
2950
|
+
unlockedUnstaked: Array<Asset>;
|
|
2951
|
+
/**
|
|
2952
|
+
* 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.
|
|
2953
|
+
*/
|
|
2954
|
+
unlockedStaked: Array<Asset>;
|
|
2828
2955
|
/**
|
|
2829
2956
|
* 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.
|
|
2830
2957
|
*/
|
|
2831
|
-
lockedPlatform: Array<
|
|
2958
|
+
lockedPlatform: Array<Asset>;
|
|
2832
2959
|
/**
|
|
2833
2960
|
* 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.
|
|
2834
2961
|
*/
|
|
2835
|
-
lockedStakeable: Array<
|
|
2962
|
+
lockedStakeable: Array<Asset>;
|
|
2836
2963
|
/**
|
|
2837
2964
|
* 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.
|
|
2838
2965
|
*/
|
|
2839
|
-
lockedStaked: Array<
|
|
2966
|
+
lockedStaked: Array<Asset>;
|
|
2840
2967
|
/**
|
|
2841
2968
|
* 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.
|
|
2842
2969
|
*/
|
|
2843
|
-
pendingStaked: Array<
|
|
2970
|
+
pendingStaked: Array<Asset>;
|
|
2844
2971
|
/**
|
|
2845
2972
|
* 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.
|
|
2846
2973
|
*/
|
|
@@ -2876,7 +3003,7 @@ type XChainAssetBalance = {
|
|
|
2876
3003
|
/**
|
|
2877
3004
|
* Type of asset like SECP256K1 or NFT.
|
|
2878
3005
|
*/
|
|
2879
|
-
type:
|
|
3006
|
+
type: PrimaryNetworkAssetType;
|
|
2880
3007
|
/**
|
|
2881
3008
|
* Amount of the asset.
|
|
2882
3009
|
*/
|
|
@@ -2904,7 +3031,7 @@ type XChainSharedAssetBalance = {
|
|
|
2904
3031
|
/**
|
|
2905
3032
|
* Type of asset like SECP256K1 or NFT.
|
|
2906
3033
|
*/
|
|
2907
|
-
type:
|
|
3034
|
+
type: PrimaryNetworkAssetType;
|
|
2908
3035
|
/**
|
|
2909
3036
|
* Amount of the asset.
|
|
2910
3037
|
*/
|
|
@@ -3034,7 +3161,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3034
3161
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3035
3162
|
* @throws ApiError
|
|
3036
3163
|
*/
|
|
3037
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3164
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3038
3165
|
/**
|
|
3039
3166
|
* A primary network blockchain id or alias.
|
|
3040
3167
|
*/
|
|
@@ -3047,14 +3174,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3047
3174
|
* A primary network (P or X chain) nodeId.
|
|
3048
3175
|
*/
|
|
3049
3176
|
nodeId: string;
|
|
3050
|
-
/**
|
|
3051
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3052
|
-
*/
|
|
3053
|
-
pageSize?: number;
|
|
3054
3177
|
/**
|
|
3055
3178
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3056
3179
|
*/
|
|
3057
3180
|
pageToken?: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3183
|
+
*/
|
|
3184
|
+
pageSize?: number;
|
|
3058
3185
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3059
3186
|
/**
|
|
3060
3187
|
* List latest blocks
|
|
@@ -3062,7 +3189,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3062
3189
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3063
3190
|
* @throws ApiError
|
|
3064
3191
|
*/
|
|
3065
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3192
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3066
3193
|
/**
|
|
3067
3194
|
* A primary network blockchain id or alias.
|
|
3068
3195
|
*/
|
|
@@ -3071,17 +3198,48 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3071
3198
|
* Either mainnet or a testnet.
|
|
3072
3199
|
*/
|
|
3073
3200
|
network: Network;
|
|
3074
|
-
/**
|
|
3075
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3076
|
-
*/
|
|
3077
|
-
pageSize?: number;
|
|
3078
3201
|
/**
|
|
3079
3202
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3080
3203
|
*/
|
|
3081
3204
|
pageToken?: string;
|
|
3205
|
+
/**
|
|
3206
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3207
|
+
*/
|
|
3208
|
+
pageSize?: number;
|
|
3082
3209
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3083
3210
|
}
|
|
3084
3211
|
|
|
3212
|
+
type AssetWithPriceInfo = {
|
|
3213
|
+
/**
|
|
3214
|
+
* Unique ID for an asset.
|
|
3215
|
+
*/
|
|
3216
|
+
assetId: string;
|
|
3217
|
+
/**
|
|
3218
|
+
* Name of this asset.
|
|
3219
|
+
*/
|
|
3220
|
+
name: string;
|
|
3221
|
+
/**
|
|
3222
|
+
* Symbol for this asset (max 4 characters).
|
|
3223
|
+
*/
|
|
3224
|
+
symbol: string;
|
|
3225
|
+
/**
|
|
3226
|
+
* Denomination of this asset to represent fungibility.
|
|
3227
|
+
*/
|
|
3228
|
+
denomination: number;
|
|
3229
|
+
/**
|
|
3230
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3231
|
+
*/
|
|
3232
|
+
type: PrimaryNetworkAssetType;
|
|
3233
|
+
/**
|
|
3234
|
+
* Amount of the asset.
|
|
3235
|
+
*/
|
|
3236
|
+
amount: string;
|
|
3237
|
+
/**
|
|
3238
|
+
* 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.
|
|
3239
|
+
*/
|
|
3240
|
+
historicalPrice?: Money;
|
|
3241
|
+
};
|
|
3242
|
+
|
|
3085
3243
|
declare enum RewardType {
|
|
3086
3244
|
VALIDATOR = "VALIDATOR",
|
|
3087
3245
|
DELEGATOR = "DELEGATOR",
|
|
@@ -3101,10 +3259,7 @@ type HistoricalReward = {
|
|
|
3101
3259
|
rewardType: RewardType;
|
|
3102
3260
|
utxoId: string;
|
|
3103
3261
|
outputIndex: number;
|
|
3104
|
-
|
|
3105
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3106
|
-
*/
|
|
3107
|
-
reward: PChainAsset;
|
|
3262
|
+
reward: AssetWithPriceInfo;
|
|
3108
3263
|
rewardTxHash: string;
|
|
3109
3264
|
};
|
|
3110
3265
|
|
|
@@ -3131,7 +3286,7 @@ type PendingReward = {
|
|
|
3131
3286
|
/**
|
|
3132
3287
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3133
3288
|
*/
|
|
3134
|
-
estimatedReward:
|
|
3289
|
+
estimatedReward: Asset;
|
|
3135
3290
|
};
|
|
3136
3291
|
|
|
3137
3292
|
type ListPendingRewardsResponse = {
|
|
@@ -3151,25 +3306,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3151
3306
|
* @returns ListPendingRewardsResponse
|
|
3152
3307
|
* @throws ApiError
|
|
3153
3308
|
*/
|
|
3154
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3309
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3155
3310
|
/**
|
|
3156
3311
|
* Either mainnet or a testnet.
|
|
3157
3312
|
*/
|
|
3158
3313
|
network: Network;
|
|
3159
3314
|
/**
|
|
3160
|
-
* 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".
|
|
3315
|
+
* 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.
|
|
3161
3316
|
*/
|
|
3162
3317
|
addresses?: string;
|
|
3163
|
-
/**
|
|
3164
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3165
|
-
*/
|
|
3166
|
-
pageSize?: number;
|
|
3167
3318
|
/**
|
|
3168
3319
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3169
3320
|
*/
|
|
3170
3321
|
pageToken?: string;
|
|
3171
3322
|
/**
|
|
3172
|
-
*
|
|
3323
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3324
|
+
*/
|
|
3325
|
+
pageSize?: number;
|
|
3326
|
+
/**
|
|
3327
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3173
3328
|
*/
|
|
3174
3329
|
nodeIds?: string;
|
|
3175
3330
|
/**
|
|
@@ -3183,68 +3338,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3183
3338
|
* @returns ListHistoricalRewardsResponse
|
|
3184
3339
|
* @throws ApiError
|
|
3185
3340
|
*/
|
|
3186
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3341
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3187
3342
|
/**
|
|
3188
3343
|
* Either mainnet or a testnet.
|
|
3189
3344
|
*/
|
|
3190
3345
|
network: Network;
|
|
3191
3346
|
/**
|
|
3192
|
-
* 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".
|
|
3347
|
+
* 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.
|
|
3193
3348
|
*/
|
|
3194
3349
|
addresses?: string;
|
|
3195
|
-
/**
|
|
3196
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3197
|
-
*/
|
|
3198
|
-
pageSize?: number;
|
|
3199
3350
|
/**
|
|
3200
3351
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3201
3352
|
*/
|
|
3202
3353
|
pageToken?: string;
|
|
3203
3354
|
/**
|
|
3204
|
-
*
|
|
3355
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3356
|
+
*/
|
|
3357
|
+
pageSize?: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3205
3360
|
*/
|
|
3206
3361
|
nodeIds?: string;
|
|
3207
3362
|
/**
|
|
3208
3363
|
* 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.
|
|
3209
3364
|
*/
|
|
3210
3365
|
sortOrder?: SortOrder;
|
|
3366
|
+
/**
|
|
3367
|
+
* The currency that return values should use. Defaults to USD.
|
|
3368
|
+
*/
|
|
3369
|
+
currency?: CurrencyCode;
|
|
3211
3370
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3212
3371
|
}
|
|
3213
3372
|
|
|
3214
|
-
type Asset = {
|
|
3215
|
-
/**
|
|
3216
|
-
* Unique ID for an asset.
|
|
3217
|
-
*/
|
|
3218
|
-
assetId: string;
|
|
3219
|
-
/**
|
|
3220
|
-
* Name of this asset.
|
|
3221
|
-
*/
|
|
3222
|
-
name: string;
|
|
3223
|
-
/**
|
|
3224
|
-
* Symbol for this asset (max 4 characters).
|
|
3225
|
-
*/
|
|
3226
|
-
symbol: string;
|
|
3227
|
-
/**
|
|
3228
|
-
* Denomination of this asset to represent fungibility.
|
|
3229
|
-
*/
|
|
3230
|
-
denomination: number;
|
|
3231
|
-
/**
|
|
3232
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3233
|
-
*/
|
|
3234
|
-
type: string;
|
|
3235
|
-
/**
|
|
3236
|
-
* Amount of the asset.
|
|
3237
|
-
*/
|
|
3238
|
-
amount: string;
|
|
3239
|
-
};
|
|
3240
|
-
|
|
3241
3373
|
type UtxoCredential = {
|
|
3242
3374
|
/**
|
|
3243
|
-
* Signature provided to consume the output
|
|
3375
|
+
* Signature provided to consume the output.
|
|
3244
3376
|
*/
|
|
3245
3377
|
signature?: string;
|
|
3246
3378
|
/**
|
|
3247
|
-
* Public key associated with the signature
|
|
3379
|
+
* Public key associated with the signature.
|
|
3248
3380
|
*/
|
|
3249
3381
|
publicKey?: string;
|
|
3250
3382
|
};
|
|
@@ -3266,66 +3398,66 @@ type EVMInput = {
|
|
|
3266
3398
|
|
|
3267
3399
|
type Utxo = {
|
|
3268
3400
|
/**
|
|
3269
|
-
*
|
|
3401
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3270
3402
|
*/
|
|
3271
|
-
|
|
3403
|
+
addresses: Array<string>;
|
|
3272
3404
|
asset: Asset;
|
|
3273
3405
|
/**
|
|
3274
|
-
*
|
|
3406
|
+
* Blockchain ID on which this output is consumed on.
|
|
3275
3407
|
*/
|
|
3276
|
-
|
|
3408
|
+
consumedOnChainId: string;
|
|
3277
3409
|
/**
|
|
3278
|
-
*
|
|
3410
|
+
* Transaction ID that consumed this output.
|
|
3279
3411
|
*/
|
|
3280
|
-
|
|
3412
|
+
consumingTxHash?: string;
|
|
3281
3413
|
/**
|
|
3282
|
-
* Blockchain ID on which this output is
|
|
3414
|
+
* Blockchain ID on which this output is created on.
|
|
3283
3415
|
*/
|
|
3284
|
-
|
|
3416
|
+
createdOnChainId: string;
|
|
3285
3417
|
/**
|
|
3286
|
-
*
|
|
3418
|
+
* UTXO ID for this output.
|
|
3287
3419
|
*/
|
|
3288
|
-
|
|
3420
|
+
utxoId: string;
|
|
3289
3421
|
/**
|
|
3290
|
-
*
|
|
3422
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3291
3423
|
*/
|
|
3292
|
-
|
|
3424
|
+
consumingTxTimestamp?: number;
|
|
3293
3425
|
/**
|
|
3294
|
-
*
|
|
3426
|
+
* Transaction ID that created this output.
|
|
3295
3427
|
*/
|
|
3296
|
-
|
|
3428
|
+
creationTxHash: string;
|
|
3297
3429
|
/**
|
|
3298
|
-
*
|
|
3430
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3299
3431
|
*/
|
|
3300
|
-
|
|
3432
|
+
credentials?: Array<UtxoCredential>;
|
|
3301
3433
|
/**
|
|
3302
|
-
*
|
|
3434
|
+
* Index representing the minting set for the NFT mint output.
|
|
3303
3435
|
*/
|
|
3304
|
-
|
|
3436
|
+
groupId?: number;
|
|
3305
3437
|
/**
|
|
3306
3438
|
* Locktime in seconds after which this output can be consumed.
|
|
3307
3439
|
*/
|
|
3308
3440
|
locktime: number;
|
|
3309
3441
|
/**
|
|
3310
|
-
*
|
|
3442
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3311
3443
|
*/
|
|
3312
|
-
|
|
3444
|
+
outputIndex: string;
|
|
3313
3445
|
/**
|
|
3314
|
-
*
|
|
3446
|
+
* Hex encoded data for NFT assets.
|
|
3315
3447
|
*/
|
|
3316
|
-
|
|
3448
|
+
payload?: string;
|
|
3317
3449
|
/**
|
|
3318
|
-
*
|
|
3450
|
+
* Minimum number of signatures required to consume this output.
|
|
3319
3451
|
*/
|
|
3320
|
-
|
|
3452
|
+
threshold: number;
|
|
3321
3453
|
/**
|
|
3322
|
-
*
|
|
3454
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3323
3455
|
*/
|
|
3324
|
-
|
|
3456
|
+
timestamp: number;
|
|
3325
3457
|
/**
|
|
3326
|
-
*
|
|
3458
|
+
* Type of output.
|
|
3327
3459
|
*/
|
|
3328
|
-
|
|
3460
|
+
utxoType: string;
|
|
3329
3461
|
};
|
|
3330
3462
|
|
|
3331
3463
|
type CChainExportTransaction = {
|
|
@@ -3456,17 +3588,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3456
3588
|
|
|
3457
3589
|
declare enum PChainTransactionType {
|
|
3458
3590
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3459
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3460
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3461
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3462
3591
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3463
|
-
|
|
3464
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3592
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3465
3593
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3466
3594
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3467
3595
|
IMPORT_TX = "ImportTx",
|
|
3468
3596
|
EXPORT_TX = "ExportTx",
|
|
3469
3597
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3598
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3599
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3600
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3601
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3602
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3603
|
+
BASE_TX = "BaseTx",
|
|
3604
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3470
3605
|
UNKNOWN = "UNKNOWN"
|
|
3471
3606
|
}
|
|
3472
3607
|
|
|
@@ -3477,29 +3612,48 @@ declare enum UtxoType {
|
|
|
3477
3612
|
|
|
3478
3613
|
type PChainUtxo = {
|
|
3479
3614
|
/**
|
|
3480
|
-
*
|
|
3615
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3481
3616
|
*/
|
|
3482
3617
|
addresses: Array<string>;
|
|
3618
|
+
asset: Asset;
|
|
3619
|
+
/**
|
|
3620
|
+
* Blockchain ID on which this output is consumed on.
|
|
3621
|
+
*/
|
|
3622
|
+
consumedOnChainId: string;
|
|
3623
|
+
/**
|
|
3624
|
+
* Transaction ID that consumed this output.
|
|
3625
|
+
*/
|
|
3626
|
+
consumingTxHash?: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* Blockchain ID on which this output is created on.
|
|
3629
|
+
*/
|
|
3630
|
+
createdOnChainId: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* UTXO ID for this output.
|
|
3633
|
+
*/
|
|
3483
3634
|
utxoId: string;
|
|
3484
|
-
|
|
3485
|
-
|
|
3635
|
+
/**
|
|
3636
|
+
* @deprecated
|
|
3637
|
+
*/
|
|
3638
|
+
amount: string;
|
|
3639
|
+
/**
|
|
3640
|
+
* @deprecated
|
|
3641
|
+
*/
|
|
3642
|
+
assetId: string;
|
|
3486
3643
|
blockNumber: string;
|
|
3487
3644
|
blockTimestamp: number;
|
|
3488
|
-
consumingTxHash?: string;
|
|
3489
|
-
consumingBlockTimestamp?: number;
|
|
3490
3645
|
consumingBlockNumber?: string;
|
|
3491
|
-
|
|
3492
|
-
utxoType: UtxoType;
|
|
3493
|
-
amount: string;
|
|
3494
|
-
stakeableLocktime?: number;
|
|
3646
|
+
consumingBlockTimestamp?: number;
|
|
3495
3647
|
platformLocktime?: number;
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3648
|
+
outputIndex: number;
|
|
3649
|
+
rewardType?: RewardType;
|
|
3650
|
+
stakeableLocktime?: number;
|
|
3499
3651
|
staked?: boolean;
|
|
3500
|
-
|
|
3652
|
+
threshold?: number;
|
|
3653
|
+
txHash: string;
|
|
3501
3654
|
utxoEndTimestamp?: number;
|
|
3502
|
-
|
|
3655
|
+
utxoStartTimestamp?: number;
|
|
3656
|
+
utxoType: UtxoType;
|
|
3503
3657
|
};
|
|
3504
3658
|
|
|
3505
3659
|
type PChainTransaction = {
|
|
@@ -3527,15 +3681,15 @@ type PChainTransaction = {
|
|
|
3527
3681
|
/**
|
|
3528
3682
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3529
3683
|
*/
|
|
3530
|
-
value: Array<
|
|
3684
|
+
value: Array<Asset>;
|
|
3531
3685
|
/**
|
|
3532
3686
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3533
3687
|
*/
|
|
3534
|
-
amountBurned: Array<
|
|
3688
|
+
amountBurned: Array<Asset>;
|
|
3535
3689
|
/**
|
|
3536
3690
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3537
3691
|
*/
|
|
3538
|
-
amountStaked: Array<
|
|
3692
|
+
amountStaked: Array<Asset>;
|
|
3539
3693
|
/**
|
|
3540
3694
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3541
3695
|
*/
|
|
@@ -3567,6 +3721,10 @@ type PChainTransaction = {
|
|
|
3567
3721
|
* Present for RewardValidatorTx
|
|
3568
3722
|
*/
|
|
3569
3723
|
stakingTxHash?: string;
|
|
3724
|
+
/**
|
|
3725
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3726
|
+
*/
|
|
3727
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3570
3728
|
};
|
|
3571
3729
|
|
|
3572
3730
|
type ListPChainTransactionsResponse = {
|
|
@@ -3738,19 +3896,21 @@ declare enum PChainId {
|
|
|
3738
3896
|
|
|
3739
3897
|
declare enum PrimaryNetworkTxType {
|
|
3740
3898
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3741
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3742
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3743
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3744
3899
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3745
|
-
|
|
3746
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3900
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3747
3901
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3748
3902
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3749
3903
|
IMPORT_TX = "ImportTx",
|
|
3750
3904
|
EXPORT_TX = "ExportTx",
|
|
3751
3905
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3752
|
-
|
|
3906
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3907
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3908
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3909
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3910
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3753
3911
|
BASE_TX = "BaseTx",
|
|
3912
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3913
|
+
UNKNOWN = "UNKNOWN",
|
|
3754
3914
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3755
3915
|
OPERATION_TX = "OperationTx"
|
|
3756
3916
|
}
|
|
@@ -3782,13 +3942,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3782
3942
|
* List latest transactions
|
|
3783
3943
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3784
3944
|
*
|
|
3785
|
-
* Transactions are filterable by addresses.
|
|
3945
|
+
* 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.
|
|
3786
3946
|
*
|
|
3787
3947
|
* 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.
|
|
3788
3948
|
* @returns any
|
|
3789
3949
|
* @throws ApiError
|
|
3790
3950
|
*/
|
|
3791
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3951
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3792
3952
|
/**
|
|
3793
3953
|
* A primary network blockchain id or alias.
|
|
3794
3954
|
*/
|
|
@@ -3813,14 +3973,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3813
3973
|
* Query param for retrieving items before a specific timestamp.
|
|
3814
3974
|
*/
|
|
3815
3975
|
endTimestamp?: number;
|
|
3816
|
-
/**
|
|
3817
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3818
|
-
*/
|
|
3819
|
-
pageSize?: number;
|
|
3820
3976
|
/**
|
|
3821
3977
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3822
3978
|
*/
|
|
3823
3979
|
pageToken?: string;
|
|
3980
|
+
/**
|
|
3981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3982
|
+
*/
|
|
3983
|
+
pageSize?: number;
|
|
3824
3984
|
/**
|
|
3825
3985
|
* 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.
|
|
3826
3986
|
*/
|
|
@@ -3832,7 +3992,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3832
3992
|
* @returns ListPChainTransactionsResponse
|
|
3833
3993
|
* @throws ApiError
|
|
3834
3994
|
*/
|
|
3835
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3995
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3836
3996
|
/**
|
|
3837
3997
|
* A primary network blockchain id or alias.
|
|
3838
3998
|
*/
|
|
@@ -3857,14 +4017,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3857
4017
|
* Query param for retrieving items before a specific timestamp.
|
|
3858
4018
|
*/
|
|
3859
4019
|
endTimestamp?: number;
|
|
3860
|
-
/**
|
|
3861
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3862
|
-
*/
|
|
3863
|
-
pageSize?: number;
|
|
3864
4020
|
/**
|
|
3865
4021
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3866
4022
|
*/
|
|
3867
4023
|
pageToken?: string;
|
|
4024
|
+
/**
|
|
4025
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4026
|
+
*/
|
|
4027
|
+
pageSize?: number;
|
|
3868
4028
|
/**
|
|
3869
4029
|
* 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.
|
|
3870
4030
|
*/
|
|
@@ -3876,7 +4036,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3876
4036
|
* @returns ListXChainTransactionsResponse
|
|
3877
4037
|
* @throws ApiError
|
|
3878
4038
|
*/
|
|
3879
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4039
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3880
4040
|
/**
|
|
3881
4041
|
* A primary network blockchain id or alias.
|
|
3882
4042
|
*/
|
|
@@ -3901,14 +4061,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3901
4061
|
* Query param for retrieving items before a specific timestamp.
|
|
3902
4062
|
*/
|
|
3903
4063
|
endTimestamp?: number;
|
|
3904
|
-
/**
|
|
3905
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3906
|
-
*/
|
|
3907
|
-
pageSize?: number;
|
|
3908
4064
|
/**
|
|
3909
4065
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3910
4066
|
*/
|
|
3911
4067
|
pageToken?: string;
|
|
4068
|
+
/**
|
|
4069
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4070
|
+
*/
|
|
4071
|
+
pageSize?: number;
|
|
3912
4072
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3913
4073
|
}
|
|
3914
4074
|
|
|
@@ -3939,7 +4099,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3939
4099
|
* @returns any
|
|
3940
4100
|
* @throws ApiError
|
|
3941
4101
|
*/
|
|
3942
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4102
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3943
4103
|
/**
|
|
3944
4104
|
* A primary network blockchain id or alias.
|
|
3945
4105
|
*/
|
|
@@ -3952,14 +4112,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3952
4112
|
* 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".
|
|
3953
4113
|
*/
|
|
3954
4114
|
addresses?: string;
|
|
3955
|
-
/**
|
|
3956
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3957
|
-
*/
|
|
3958
|
-
pageSize?: number;
|
|
3959
4115
|
/**
|
|
3960
4116
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3961
4117
|
*/
|
|
3962
4118
|
pageToken?: string;
|
|
4119
|
+
/**
|
|
4120
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4121
|
+
*/
|
|
4122
|
+
pageSize?: number;
|
|
3963
4123
|
/**
|
|
3964
4124
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3965
4125
|
*/
|
|
@@ -4004,7 +4164,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4004
4164
|
* @returns ListXChainVerticesResponse
|
|
4005
4165
|
* @throws ApiError
|
|
4006
4166
|
*/
|
|
4007
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4167
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4008
4168
|
/**
|
|
4009
4169
|
* A primary network blockchain id or alias.
|
|
4010
4170
|
*/
|
|
@@ -4013,14 +4173,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4013
4173
|
* Either mainnet or a testnet.
|
|
4014
4174
|
*/
|
|
4015
4175
|
network: Network;
|
|
4016
|
-
/**
|
|
4017
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4018
|
-
*/
|
|
4019
|
-
pageSize?: number;
|
|
4020
4176
|
/**
|
|
4021
4177
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4022
4178
|
*/
|
|
4023
4179
|
pageToken?: string;
|
|
4180
|
+
/**
|
|
4181
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4182
|
+
*/
|
|
4183
|
+
pageSize?: number;
|
|
4024
4184
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4025
4185
|
/**
|
|
4026
4186
|
* Get vertex
|
|
@@ -4048,7 +4208,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4048
4208
|
* @returns ListXChainVerticesResponse
|
|
4049
4209
|
* @throws ApiError
|
|
4050
4210
|
*/
|
|
4051
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4211
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4052
4212
|
/**
|
|
4053
4213
|
* The height of a vertex.
|
|
4054
4214
|
*/
|
|
@@ -4061,14 +4221,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4061
4221
|
* Either mainnet or a testnet.
|
|
4062
4222
|
*/
|
|
4063
4223
|
network: Network;
|
|
4064
|
-
/**
|
|
4065
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4066
|
-
*/
|
|
4067
|
-
pageSize?: number;
|
|
4068
4224
|
/**
|
|
4069
4225
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4070
4226
|
*/
|
|
4071
4227
|
pageToken?: string;
|
|
4228
|
+
/**
|
|
4229
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4230
|
+
*/
|
|
4231
|
+
pageSize?: number;
|
|
4072
4232
|
/**
|
|
4073
4233
|
* 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.
|
|
4074
4234
|
*/
|
|
@@ -4115,4 +4275,4 @@ declare class ApiError extends Error {
|
|
|
4115
4275
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4116
4276
|
}
|
|
4117
4277
|
|
|
4118
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, 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, 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,
|
|
4278
|
+
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, SubnetOwnershipInfo, 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 };
|