@avalabs/glacier-sdk 2.8.0-canary.f0b0684.0 → 2.8.0-canary.f195b3d.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.
Files changed (114) hide show
  1. package/dist/index.d.ts +960 -310
  2. package/dist/index.js +376 -120
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  8. package/esm/generated/models/Asset.d.ts +3 -1
  9. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  10. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  11. package/esm/generated/models/ChainInfo.d.ts +1 -0
  12. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  14. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  15. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  16. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  17. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  18. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  19. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  20. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  21. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  22. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  23. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  25. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  26. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  27. package/esm/generated/models/EventType.d.ts +5 -0
  28. package/esm/generated/models/EventType.js +6 -0
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  31. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  32. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  33. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  34. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  35. package/esm/generated/models/NextPageToken.d.ts +8 -0
  36. package/esm/generated/models/PChainBalance.d.ts +7 -7
  37. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  38. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  39. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  40. package/esm/generated/models/PChainTransactionType.js +6 -4
  41. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  42. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  43. package/esm/generated/models/PendingReward.d.ts +2 -2
  44. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  45. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  46. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  47. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  48. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  49. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  50. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  51. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  52. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  53. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  54. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  55. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  56. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  57. package/esm/generated/models/RewardType.d.ts +2 -1
  58. package/esm/generated/models/RewardType.js +1 -0
  59. package/esm/generated/models/Rewards.d.ts +2 -0
  60. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  61. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  62. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  63. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  64. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  65. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  66. package/esm/generated/models/Utxo.d.ts +28 -28
  67. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  68. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  69. package/esm/generated/models/ValidationStatusType.js +1 -0
  70. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  71. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  72. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  73. package/esm/generated/models/WebhookStatus.js +7 -0
  74. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  75. package/esm/generated/models/WebhookStatusType.js +7 -0
  76. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  77. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  78. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  79. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  80. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  81. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  82. package/esm/generated/models/XChainTransactionType.js +11 -0
  83. package/esm/generated/services/DefaultService.d.ts +67 -0
  84. package/esm/generated/services/DefaultService.js +55 -0
  85. package/esm/generated/services/EvmBalancesService.d.ts +20 -20
  86. package/esm/generated/services/EvmBalancesService.js +8 -8
  87. package/esm/generated/services/EvmBlocksService.d.ts +5 -5
  88. package/esm/generated/services/EvmBlocksService.js +4 -4
  89. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  90. package/esm/generated/services/EvmContractsService.js +16 -0
  91. package/esm/generated/services/EvmTransactionsService.d.ts +78 -56
  92. package/esm/generated/services/EvmTransactionsService.js +33 -46
  93. package/esm/generated/services/NfTsService.d.ts +25 -0
  94. package/esm/generated/services/NfTsService.js +19 -0
  95. package/esm/generated/services/OperationsService.d.ts +11 -11
  96. package/esm/generated/services/OperationsService.js +10 -10
  97. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  98. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  99. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  100. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  101. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  102. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  103. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  104. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  105. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  106. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  107. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  108. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  109. package/esm/generated/services/TeleporterService.d.ts +65 -0
  110. package/esm/generated/services/TeleporterService.js +43 -0
  111. package/esm/index.d.ts +30 -1
  112. package/esm/index.js +17 -0
  113. package/package.json +2 -2
  114. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,121 @@ 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
+ };
92
+
93
+ type ListWebhooksResponse = {
94
+ /**
95
+ * 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.
96
+ */
97
+ nextPageToken?: string;
98
+ webhooks: Array<WebhookResponse>;
99
+ };
100
+
101
+ type RegisterWebhookRequest = {
102
+ url: string;
103
+ chainId: string;
104
+ /**
105
+ * The type of event for the webhook
106
+ */
107
+ eventType: EventType;
108
+ metadata: AddressActivityMetadata;
109
+ };
110
+
111
+ type SharedSecretsResponse = {
112
+ secret: string;
113
+ };
114
+
115
+ declare enum WebhookStatus {
116
+ ACTIVE = "active",
117
+ INACTIVE = "inactive"
118
+ }
119
+
120
+ declare class DefaultService {
121
+ readonly httpRequest: BaseHttpRequest;
122
+ constructor(httpRequest: BaseHttpRequest);
123
+ /**
124
+ * @returns any
125
+ * @throws ApiError
126
+ */
127
+ mediaControllerUploadImage(): CancelablePromise<any>;
128
+ /**
129
+ * Register a webhook
130
+ * Registers a new webhook.
131
+ * @returns WebhookResponse
132
+ * @throws ApiError
133
+ */
134
+ registerWebhook({ requestBody, }: {
135
+ requestBody: RegisterWebhookRequest;
136
+ }): CancelablePromise<WebhookResponse>;
137
+ /**
138
+ * List webhooks
139
+ * Lists webhooks for the user.
140
+ * @returns ListWebhooksResponse
141
+ * @throws ApiError
142
+ */
143
+ listWebhooks({ pageToken, pageSize, status, }: {
144
+ /**
145
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
146
+ */
147
+ pageToken?: string;
148
+ /**
149
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
150
+ */
151
+ pageSize?: number;
152
+ /**
153
+ * 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.
154
+ */
155
+ status?: WebhookStatus;
156
+ }): CancelablePromise<ListWebhooksResponse>;
157
+ /**
158
+ * Deactivate a webhook
159
+ * Deactivates a webhook by ID.
160
+ * @returns WebhookResponse
161
+ * @throws ApiError
162
+ */
163
+ deactivateWebhook({ id, }: {
164
+ /**
165
+ * The webhook identifier.
166
+ */
167
+ id: string;
168
+ }): CancelablePromise<WebhookResponse>;
169
+ /**
170
+ * Generate a shared secret
171
+ * Generates a new shared secret.
172
+ * @returns SharedSecretsResponse
173
+ * @throws ApiError
174
+ */
175
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
176
+ }
177
+
63
178
  declare enum CurrencyCode {
64
179
  USD = "usd",
65
180
  EUR = "eur",
@@ -361,7 +476,7 @@ declare class EvmBalancesService {
361
476
  * @returns ListErc20BalancesResponse
362
477
  * @throws ApiError
363
478
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
479
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
480
  /**
366
481
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
482
  */
@@ -374,14 +489,14 @@ declare class EvmBalancesService {
374
489
  * The block number, if not defined the block number will be the latest block.
375
490
  */
376
491
  blockNumber?: string;
377
- /**
378
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
379
- */
380
- pageSize?: number;
381
492
  /**
382
493
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
383
494
  */
384
495
  pageToken?: string;
496
+ /**
497
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
498
+ */
499
+ pageSize?: number;
385
500
  /**
386
501
  * A comma separated list of contract addresses to filter by.
387
502
  */
@@ -399,7 +514,7 @@ declare class EvmBalancesService {
399
514
  * @returns ListErc721BalancesResponse
400
515
  * @throws ApiError
401
516
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
517
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
518
  /**
404
519
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
520
  */
@@ -408,14 +523,14 @@ declare class EvmBalancesService {
408
523
  * A wallet address.
409
524
  */
410
525
  address: string;
411
- /**
412
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
413
- */
414
- pageSize?: number;
415
526
  /**
416
527
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
528
  */
418
529
  pageToken?: string;
530
+ /**
531
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
532
+ */
533
+ pageSize?: number;
419
534
  /**
420
535
  * A contract addresses to filter by.
421
536
  */
@@ -431,7 +546,7 @@ declare class EvmBalancesService {
431
546
  * @returns ListErc1155BalancesResponse
432
547
  * @throws ApiError
433
548
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
549
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
550
  /**
436
551
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
552
  */
@@ -444,14 +559,14 @@ declare class EvmBalancesService {
444
559
  * The block number, if not defined the block number will be the latest block.
445
560
  */
446
561
  blockNumber?: string;
447
- /**
448
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
449
- */
450
- pageSize?: number;
451
562
  /**
452
563
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
564
  */
454
565
  pageToken?: string;
566
+ /**
567
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
568
+ */
569
+ pageSize?: number;
455
570
  /**
456
571
  * A contract addresses to filter by.
457
572
  */
@@ -465,7 +580,7 @@ declare class EvmBalancesService {
465
580
  * @returns ListCollectibleBalancesResponse
466
581
  * @throws ApiError
467
582
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
583
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
584
  /**
470
585
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
586
  */
@@ -474,14 +589,14 @@ declare class EvmBalancesService {
474
589
  * A wallet address.
475
590
  */
476
591
  address: string;
477
- /**
478
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
479
- */
480
- pageSize?: number;
481
592
  /**
482
593
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
594
  */
484
595
  pageToken?: string;
596
+ /**
597
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
598
+ */
599
+ pageSize?: number;
485
600
  /**
486
601
  * A contract addresses to filter by.
487
602
  */
@@ -594,19 +709,19 @@ declare class EvmBlocksService {
594
709
  * @returns ListEvmBlocksResponse
595
710
  * @throws ApiError
596
711
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
712
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
713
  /**
599
714
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
715
  */
601
716
  chainId: string;
602
- /**
603
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
604
- */
605
- pageSize?: number;
606
717
  /**
607
718
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
719
  */
609
720
  pageToken?: string;
721
+ /**
722
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
723
+ */
724
+ pageSize?: number;
610
725
  }): CancelablePromise<ListEvmBlocksResponse>;
611
726
  /**
612
727
  * Get block
@@ -680,6 +795,7 @@ type GetChainResponse = {
680
795
  utilityAddresses?: UtilityAddresses;
681
796
  networkToken: NetworkToken;
682
797
  chainLogoUri?: string;
798
+ private?: boolean;
683
799
  };
684
800
 
685
801
  type ChainInfo = {
@@ -701,6 +817,7 @@ type ChainInfo = {
701
817
  utilityAddresses?: UtilityAddresses;
702
818
  networkToken: NetworkToken;
703
819
  chainLogoUri?: string;
820
+ private?: boolean;
704
821
  };
705
822
 
706
823
  type ListChainsResponse = {
@@ -741,18 +858,6 @@ declare class EvmChainsService {
741
858
  }): CancelablePromise<GetChainResponse>;
742
859
  }
743
860
 
744
- type ContractDeploymentDetails = {
745
- txHash: string;
746
- /**
747
- * The address that initiated the transaction which deployed this contract.
748
- */
749
- deployerAddress: string;
750
- /**
751
- * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
752
- */
753
- deployerContractAddress?: string;
754
- };
755
-
756
861
  type ImageAsset = {
757
862
  assetId?: string;
758
863
  /**
@@ -791,6 +896,120 @@ type ResourceLink = {
791
896
  url: string;
792
897
  };
793
898
 
899
+ type ContractSubmissionErc1155 = {
900
+ description?: string;
901
+ officialSite?: string;
902
+ email?: string;
903
+ logoAsset?: ImageAsset;
904
+ bannerAsset?: ImageAsset;
905
+ color?: string;
906
+ resourceLinks?: Array<ResourceLink>;
907
+ tags?: Array<string>;
908
+ /**
909
+ * The contract name.
910
+ */
911
+ name: string;
912
+ ercType: ContractSubmissionErc1155.ercType;
913
+ /**
914
+ * The contract symbol.
915
+ */
916
+ symbol: string;
917
+ pricingProviders?: PricingProviders;
918
+ };
919
+ declare namespace ContractSubmissionErc1155 {
920
+ enum ercType {
921
+ ERC_1155 = "ERC-1155"
922
+ }
923
+ }
924
+
925
+ type ContractSubmissionErc20 = {
926
+ description?: string;
927
+ officialSite?: string;
928
+ email?: string;
929
+ logoAsset?: ImageAsset;
930
+ bannerAsset?: ImageAsset;
931
+ color?: string;
932
+ resourceLinks?: Array<ResourceLink>;
933
+ tags?: Array<string>;
934
+ /**
935
+ * The contract name.
936
+ */
937
+ name: string;
938
+ ercType: ContractSubmissionErc20.ercType;
939
+ /**
940
+ * The contract symbol.
941
+ */
942
+ symbol: string;
943
+ pricingProviders?: PricingProviders;
944
+ };
945
+ declare namespace ContractSubmissionErc20 {
946
+ enum ercType {
947
+ ERC_20 = "ERC-20"
948
+ }
949
+ }
950
+
951
+ type ContractSubmissionErc721 = {
952
+ description?: string;
953
+ officialSite?: string;
954
+ email?: string;
955
+ logoAsset?: ImageAsset;
956
+ bannerAsset?: ImageAsset;
957
+ color?: string;
958
+ resourceLinks?: Array<ResourceLink>;
959
+ tags?: Array<string>;
960
+ /**
961
+ * The contract name.
962
+ */
963
+ name: string;
964
+ ercType: ContractSubmissionErc721.ercType;
965
+ /**
966
+ * The contract symbol.
967
+ */
968
+ symbol: string;
969
+ };
970
+ declare namespace ContractSubmissionErc721 {
971
+ enum ercType {
972
+ ERC_721 = "ERC-721"
973
+ }
974
+ }
975
+
976
+ type ContractSubmissionUnknown = {
977
+ description?: string;
978
+ officialSite?: string;
979
+ email?: string;
980
+ logoAsset?: ImageAsset;
981
+ bannerAsset?: ImageAsset;
982
+ color?: string;
983
+ resourceLinks?: Array<ResourceLink>;
984
+ tags?: Array<string>;
985
+ /**
986
+ * The contract name.
987
+ */
988
+ name: string;
989
+ ercType: ContractSubmissionUnknown.ercType;
990
+ };
991
+ declare namespace ContractSubmissionUnknown {
992
+ enum ercType {
993
+ UNKNOWN = "UNKNOWN"
994
+ }
995
+ }
996
+
997
+ type ContractSubmissionBody = {
998
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
999
+ };
1000
+
1001
+ type ContractDeploymentDetails = {
1002
+ txHash: string;
1003
+ /**
1004
+ * The address that initiated the transaction which deployed this contract.
1005
+ */
1006
+ deployerAddress: string;
1007
+ /**
1008
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
1009
+ */
1010
+ deployerContractAddress?: string;
1011
+ };
1012
+
794
1013
  type Erc1155Contract = {
795
1014
  /**
796
1015
  * The contract name.
@@ -913,6 +1132,10 @@ declare namespace UnknownContract {
913
1132
  }
914
1133
  }
915
1134
 
1135
+ type UpdateContractResponse = {
1136
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1137
+ };
1138
+
916
1139
  declare class EvmContractsService {
917
1140
  readonly httpRequest: BaseHttpRequest;
918
1141
  constructor(httpRequest: BaseHttpRequest);
@@ -932,6 +1155,23 @@ declare class EvmContractsService {
932
1155
  */
933
1156
  address: string;
934
1157
  }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1158
+ /**
1159
+ * Update contract information
1160
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1161
+ * @returns UpdateContractResponse
1162
+ * @throws ApiError
1163
+ */
1164
+ updateContractInfo({ chainId, address, requestBody, }: {
1165
+ /**
1166
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1167
+ */
1168
+ chainId: string;
1169
+ /**
1170
+ * Contract address on the relevant chain.
1171
+ */
1172
+ address: string;
1173
+ requestBody: ContractSubmissionBody;
1174
+ }): CancelablePromise<UpdateContractResponse>;
935
1175
  }
936
1176
 
937
1177
  type Erc1155Token = {
@@ -1469,7 +1709,7 @@ declare class EvmTransactionsService {
1469
1709
  * @returns ListContractsResponse
1470
1710
  * @throws ApiError
1471
1711
  */
1472
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1712
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1473
1713
  /**
1474
1714
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1475
1715
  */
@@ -1478,38 +1718,22 @@ declare class EvmTransactionsService {
1478
1718
  * A wallet address.
1479
1719
  */
1480
1720
  address: string;
1481
- /**
1482
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1483
- */
1484
- pageSize?: number;
1485
1721
  /**
1486
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1487
1723
  */
1488
1724
  pageToken?: string;
1489
- }): CancelablePromise<ListContractsResponse>;
1490
- /**
1491
- * Get contract metadata
1492
- * Gets metadata about the contract at the given address.
1493
- * @returns any
1494
- * @throws ApiError
1495
- */
1496
- getContractMetadata({ chainId, address, }: {
1497
- /**
1498
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1499
- */
1500
- chainId: string;
1501
1725
  /**
1502
- * Contract address on the relevant chain.
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1503
1727
  */
1504
- address: string;
1505
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1728
+ pageSize?: number;
1729
+ }): CancelablePromise<ListContractsResponse>;
1506
1730
  /**
1507
1731
  * List ERC transfers
1508
1732
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1509
1733
  * @returns ListTransfersResponse
1510
1734
  * @throws ApiError
1511
1735
  */
1512
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1513
1737
  /**
1514
1738
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1515
1739
  */
@@ -1518,16 +1742,22 @@ declare class EvmTransactionsService {
1518
1742
  * A wallet address.
1519
1743
  */
1520
1744
  address: string;
1745
+ /**
1746
+ * 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.
1747
+ */
1521
1748
  startBlock?: number;
1522
- endBlock?: number;
1523
1749
  /**
1524
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1750
+ * 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.
1525
1751
  */
1526
- pageSize?: number;
1752
+ endBlock?: number;
1527
1753
  /**
1528
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1529
1755
  */
1530
1756
  pageToken?: string;
1757
+ /**
1758
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ */
1760
+ pageSize?: number;
1531
1761
  }): CancelablePromise<ListTransfersResponse>;
1532
1762
  /**
1533
1763
  * List transactions
@@ -1537,7 +1767,7 @@ declare class EvmTransactionsService {
1537
1767
  * @returns ListTransactionDetailsResponse
1538
1768
  * @throws ApiError
1539
1769
  */
1540
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1770
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1541
1771
  /**
1542
1772
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1543
1773
  */
@@ -1546,15 +1776,21 @@ declare class EvmTransactionsService {
1546
1776
  * A wallet address.
1547
1777
  */
1548
1778
  address: string;
1779
+ /**
1780
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1781
+ */
1782
+ pageToken?: string;
1549
1783
  /**
1550
1784
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1551
1785
  */
1552
1786
  pageSize?: number;
1553
1787
  /**
1554
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1788
+ * 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.
1555
1789
  */
1556
- pageToken?: string;
1557
1790
  startBlock?: number;
1791
+ /**
1792
+ * 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.
1793
+ */
1558
1794
  endBlock?: number;
1559
1795
  /**
1560
1796
  * 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.
@@ -1567,7 +1803,7 @@ declare class EvmTransactionsService {
1567
1803
  * @returns ListNativeTransactionsResponse
1568
1804
  * @throws ApiError
1569
1805
  */
1570
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1806
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1571
1807
  /**
1572
1808
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1573
1809
  */
@@ -1576,16 +1812,22 @@ declare class EvmTransactionsService {
1576
1812
  * A wallet address.
1577
1813
  */
1578
1814
  address: string;
1815
+ /**
1816
+ * 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.
1817
+ */
1579
1818
  startBlock?: number;
1580
- endBlock?: number;
1581
1819
  /**
1582
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1820
+ * 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.
1583
1821
  */
1584
- pageSize?: number;
1822
+ endBlock?: number;
1585
1823
  /**
1586
1824
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1587
1825
  */
1588
1826
  pageToken?: string;
1827
+ /**
1828
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1829
+ */
1830
+ pageSize?: number;
1589
1831
  }): CancelablePromise<ListNativeTransactionsResponse>;
1590
1832
  /**
1591
1833
  * List ERC-20 transfers
@@ -1593,7 +1835,7 @@ declare class EvmTransactionsService {
1593
1835
  * @returns ListErc20TransactionsResponse
1594
1836
  * @throws ApiError
1595
1837
  */
1596
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1838
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1597
1839
  /**
1598
1840
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1599
1841
  */
@@ -1602,16 +1844,22 @@ declare class EvmTransactionsService {
1602
1844
  * A wallet address.
1603
1845
  */
1604
1846
  address: string;
1847
+ /**
1848
+ * 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.
1849
+ */
1605
1850
  startBlock?: number;
1606
- endBlock?: number;
1607
1851
  /**
1608
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1852
+ * 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.
1609
1853
  */
1610
- pageSize?: number;
1854
+ endBlock?: number;
1611
1855
  /**
1612
1856
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1613
1857
  */
1614
1858
  pageToken?: string;
1859
+ /**
1860
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1861
+ */
1862
+ pageSize?: number;
1615
1863
  }): CancelablePromise<ListErc20TransactionsResponse>;
1616
1864
  /**
1617
1865
  * List ERC-721 transfers
@@ -1619,7 +1867,7 @@ declare class EvmTransactionsService {
1619
1867
  * @returns ListErc721TransactionsResponse
1620
1868
  * @throws ApiError
1621
1869
  */
1622
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1870
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1623
1871
  /**
1624
1872
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1625
1873
  */
@@ -1628,16 +1876,22 @@ declare class EvmTransactionsService {
1628
1876
  * A wallet address.
1629
1877
  */
1630
1878
  address: string;
1879
+ /**
1880
+ * 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.
1881
+ */
1631
1882
  startBlock?: number;
1632
- endBlock?: number;
1633
1883
  /**
1634
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1884
+ * 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.
1635
1885
  */
1636
- pageSize?: number;
1886
+ endBlock?: number;
1637
1887
  /**
1638
1888
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1639
1889
  */
1640
1890
  pageToken?: string;
1891
+ /**
1892
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1893
+ */
1894
+ pageSize?: number;
1641
1895
  }): CancelablePromise<ListErc721TransactionsResponse>;
1642
1896
  /**
1643
1897
  * List ERC-1155 transfers
@@ -1645,7 +1899,7 @@ declare class EvmTransactionsService {
1645
1899
  * @returns ListErc1155TransactionsResponse
1646
1900
  * @throws ApiError
1647
1901
  */
1648
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1902
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1649
1903
  /**
1650
1904
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1651
1905
  */
@@ -1654,16 +1908,22 @@ declare class EvmTransactionsService {
1654
1908
  * A wallet address.
1655
1909
  */
1656
1910
  address: string;
1911
+ /**
1912
+ * 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.
1913
+ */
1657
1914
  startBlock?: number;
1658
- endBlock?: number;
1659
1915
  /**
1660
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1916
+ * 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.
1661
1917
  */
1662
- pageSize?: number;
1918
+ endBlock?: number;
1663
1919
  /**
1664
1920
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1665
1921
  */
1666
1922
  pageToken?: string;
1923
+ /**
1924
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1925
+ */
1926
+ pageSize?: number;
1667
1927
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1668
1928
  /**
1669
1929
  * List internal transactions
@@ -1673,7 +1933,7 @@ declare class EvmTransactionsService {
1673
1933
  * @returns ListInternalTransactionsResponse
1674
1934
  * @throws ApiError
1675
1935
  */
1676
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1936
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1677
1937
  /**
1678
1938
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1679
1939
  */
@@ -1682,16 +1942,22 @@ declare class EvmTransactionsService {
1682
1942
  * A wallet address.
1683
1943
  */
1684
1944
  address: string;
1945
+ /**
1946
+ * 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.
1947
+ */
1685
1948
  startBlock?: number;
1686
- endBlock?: number;
1687
1949
  /**
1688
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1950
+ * 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.
1689
1951
  */
1690
- pageSize?: number;
1952
+ endBlock?: number;
1691
1953
  /**
1692
1954
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1693
1955
  */
1694
1956
  pageToken?: string;
1957
+ /**
1958
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1959
+ */
1960
+ pageSize?: number;
1695
1961
  }): CancelablePromise<ListInternalTransactionsResponse>;
1696
1962
  /**
1697
1963
  * Get transaction
@@ -1731,19 +1997,19 @@ declare class EvmTransactionsService {
1731
1997
  * @returns ListNativeTransactionsResponse
1732
1998
  * @throws ApiError
1733
1999
  */
1734
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2000
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1735
2001
  /**
1736
2002
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1737
2003
  */
1738
2004
  chainId: string;
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
2005
  /**
1744
2006
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1745
2007
  */
1746
2008
  pageToken?: string;
2009
+ /**
2010
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2011
+ */
2012
+ pageSize?: number;
1747
2013
  /**
1748
2014
  * A status filter for listed transactions.
1749
2015
  */
@@ -1767,6 +2033,14 @@ declare class HealthCheckService {
1767
2033
  }>;
1768
2034
  }
1769
2035
 
2036
+ type ListNftTokens = {
2037
+ /**
2038
+ * 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.
2039
+ */
2040
+ nextPageToken?: string;
2041
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2042
+ };
2043
+
1770
2044
  declare class NfTsService {
1771
2045
  readonly httpRequest: BaseHttpRequest;
1772
2046
  constructor(httpRequest: BaseHttpRequest);
@@ -1790,6 +2064,30 @@ declare class NfTsService {
1790
2064
  */
1791
2065
  tokenId: string;
1792
2066
  }): CancelablePromise<any>;
2067
+ /**
2068
+ * List tokens
2069
+ * Lists tokens for an NFT contract.
2070
+ * @returns ListNftTokens
2071
+ * @throws ApiError
2072
+ */
2073
+ listTokens({ chainId, address, pageToken, pageSize, }: {
2074
+ /**
2075
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2076
+ */
2077
+ chainId: string;
2078
+ /**
2079
+ * Contract address on the relevant chain.
2080
+ */
2081
+ address: string;
2082
+ /**
2083
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2084
+ */
2085
+ pageToken?: string;
2086
+ /**
2087
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2088
+ */
2089
+ pageSize?: number;
2090
+ }): CancelablePromise<ListNftTokens>;
1793
2091
  /**
1794
2092
  * Get token details
1795
2093
  * Gets token details for a specific token of an NFT contract.
@@ -1906,17 +2204,6 @@ type OperationStatusResponse = {
1906
2204
  declare class OperationsService {
1907
2205
  readonly httpRequest: BaseHttpRequest;
1908
2206
  constructor(httpRequest: BaseHttpRequest);
1909
- /**
1910
- * Create transaction export operation
1911
- * Trigger a transaction export operation with given parameters.
1912
- *
1913
- * 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.
1914
- * @returns OperationStatusResponse
1915
- * @throws ApiError
1916
- */
1917
- postTransactionExportJob({ requestBody, }: {
1918
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1919
- }): CancelablePromise<OperationStatusResponse>;
1920
2207
  /**
1921
2208
  * Get operation
1922
2209
  * Gets operation details for the given operation id.
@@ -1929,6 +2216,17 @@ declare class OperationsService {
1929
2216
  */
1930
2217
  operationId: string;
1931
2218
  }): CancelablePromise<OperationStatusResponse>;
2219
+ /**
2220
+ * Create transaction export operation
2221
+ * Trigger a transaction export operation with given parameters.
2222
+ *
2223
+ * 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.
2224
+ * @returns OperationStatusResponse
2225
+ * @throws ApiError
2226
+ */
2227
+ postTransactionExportJob({ requestBody, }: {
2228
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2229
+ }): CancelablePromise<OperationStatusResponse>;
1932
2230
  }
1933
2231
 
1934
2232
  declare enum BlockchainIds {
@@ -1997,6 +2295,7 @@ type ListBlockchainsResponse = {
1997
2295
 
1998
2296
  type ActiveDelegatorDetails = {
1999
2297
  txHash: string;
2298
+ nodeId: string;
2000
2299
  rewardAddresses: Array<string>;
2001
2300
  amountDelegated: string;
2002
2301
  delegationFee: string;
@@ -2014,6 +2313,7 @@ declare namespace ActiveDelegatorDetails {
2014
2313
 
2015
2314
  type CompletedDelegatorDetails = {
2016
2315
  txHash: string;
2316
+ nodeId: string;
2017
2317
  rewardAddresses: Array<string>;
2018
2318
  amountDelegated: string;
2019
2319
  delegationFee: string;
@@ -2031,6 +2331,7 @@ declare namespace CompletedDelegatorDetails {
2031
2331
 
2032
2332
  type PendingDelegatorDetails = {
2033
2333
  txHash: string;
2334
+ nodeId: string;
2034
2335
  rewardAddresses: Array<string>;
2035
2336
  amountDelegated: string;
2036
2337
  delegationFee: string;
@@ -2082,22 +2383,46 @@ type ListSubnetsResponse = {
2082
2383
  type Rewards = {
2083
2384
  validationRewardAmount: string;
2084
2385
  delegationRewardAmount: string;
2386
+ rewardAddresses?: Array<string>;
2387
+ rewardTxHash?: string;
2388
+ };
2389
+
2390
+ type ValidatorHealthDetails = {
2391
+ /**
2392
+ * Percent of requests responded to in last polling.
2393
+ */
2394
+ reachabilityPercent: number;
2395
+ /**
2396
+ * Percent of requests benched on the P-Chain in last polling.
2397
+ */
2398
+ benchedPChainRequestsPercent: number;
2399
+ /**
2400
+ * Percentage of requests benched on the X-Chain in last polling.
2401
+ */
2402
+ benchedXChainRequestsPercent: number;
2403
+ /**
2404
+ * Percentage of requests benched on the C-Chain in last polling.
2405
+ */
2406
+ benchedCChainRequestsPercent: number;
2085
2407
  };
2086
2408
 
2087
2409
  type ActiveValidatorDetails = {
2410
+ txHash: string;
2088
2411
  nodeId: string;
2412
+ subnetId: string;
2089
2413
  amountStaked: string;
2090
- delegationFee: string;
2414
+ delegationFee?: string;
2091
2415
  startTimestamp: number;
2092
2416
  endTimestamp: number;
2093
2417
  stakePercentage: number;
2094
2418
  delegatorCount: number;
2095
- amountDelegated: string;
2419
+ amountDelegated?: string;
2096
2420
  uptimePerformance: number;
2097
- avalancheGoVersion: string;
2098
- delegationCapacity: string;
2421
+ avalancheGoVersion?: string;
2422
+ delegationCapacity?: string;
2099
2423
  potentialRewards: Rewards;
2100
2424
  validationStatus: ActiveValidatorDetails.validationStatus;
2425
+ validatorHealth: ValidatorHealthDetails;
2101
2426
  };
2102
2427
  declare namespace ActiveValidatorDetails {
2103
2428
  enum validationStatus {
@@ -2106,9 +2431,11 @@ declare namespace ActiveValidatorDetails {
2106
2431
  }
2107
2432
 
2108
2433
  type CompletedValidatorDetails = {
2434
+ txHash: string;
2109
2435
  nodeId: string;
2436
+ subnetId: string;
2110
2437
  amountStaked: string;
2111
- delegationFee: string;
2438
+ delegationFee?: string;
2112
2439
  startTimestamp: number;
2113
2440
  endTimestamp: number;
2114
2441
  delegatorCount: number;
@@ -2122,9 +2449,11 @@ declare namespace CompletedValidatorDetails {
2122
2449
  }
2123
2450
 
2124
2451
  type PendingValidatorDetails = {
2452
+ txHash: string;
2125
2453
  nodeId: string;
2454
+ subnetId: string;
2126
2455
  amountStaked: string;
2127
- delegationFee: string;
2456
+ delegationFee?: string;
2128
2457
  startTimestamp: number;
2129
2458
  endTimestamp: number;
2130
2459
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -2135,15 +2464,33 @@ declare namespace PendingValidatorDetails {
2135
2464
  }
2136
2465
  }
2137
2466
 
2467
+ type RemovedValidatorDetails = {
2468
+ txHash: string;
2469
+ nodeId: string;
2470
+ subnetId: string;
2471
+ amountStaked: string;
2472
+ delegationFee?: string;
2473
+ startTimestamp: number;
2474
+ endTimestamp: number;
2475
+ removeTxHash: string;
2476
+ removeTimestamp: number;
2477
+ validationStatus: RemovedValidatorDetails.validationStatus;
2478
+ };
2479
+ declare namespace RemovedValidatorDetails {
2480
+ enum validationStatus {
2481
+ REMOVED = "removed"
2482
+ }
2483
+ }
2484
+
2138
2485
  type ListValidatorDetailsResponse = {
2139
2486
  /**
2140
2487
  * 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.
2141
2488
  */
2142
2489
  nextPageToken?: string;
2143
2490
  /**
2144
- * The list of Validator Details.
2491
+ * The list of validator Details.
2145
2492
  */
2146
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2493
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2147
2494
  };
2148
2495
 
2149
2496
  declare enum Network {
@@ -2154,7 +2501,18 @@ declare enum Network {
2154
2501
  declare enum ValidationStatusType {
2155
2502
  COMPLETED = "completed",
2156
2503
  ACTIVE = "active",
2157
- PENDING = "pending"
2504
+ PENDING = "pending",
2505
+ REMOVED = "removed"
2506
+ }
2507
+
2508
+ declare enum PrimaryNetworkAssetCap {
2509
+ FIXED = "fixed",
2510
+ VARIABLE = "variable"
2511
+ }
2512
+
2513
+ declare enum PrimaryNetworkAssetType {
2514
+ SECP256K1 = "secp256k1",
2515
+ NFT = "nft"
2158
2516
  }
2159
2517
 
2160
2518
  type XChainAssetDetails = {
@@ -2177,15 +2535,15 @@ type XChainAssetDetails = {
2177
2535
  /**
2178
2536
  * Type of asset like SECP256K1 or NFT.
2179
2537
  */
2180
- type: string;
2538
+ type: PrimaryNetworkAssetType;
2181
2539
  /**
2182
2540
  * Timestamp in seconds this asset was created on.
2183
2541
  */
2184
2542
  createdAtTimestamp: number;
2185
2543
  /**
2186
- * Cap represents if an asset can be or is fixed cap.
2544
+ * Cap represents if an asset is a variable or fixed cap asset.
2187
2545
  */
2188
- cap: string;
2546
+ cap: PrimaryNetworkAssetCap;
2189
2547
  };
2190
2548
 
2191
2549
  declare enum XChainId {
@@ -2251,19 +2609,19 @@ declare class PrimaryNetworkService {
2251
2609
  * @returns ListBlockchainsResponse
2252
2610
  * @throws ApiError
2253
2611
  */
2254
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2612
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2255
2613
  /**
2256
2614
  * Either mainnet or a testnet.
2257
2615
  */
2258
2616
  network: Network;
2259
- /**
2260
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2261
- */
2262
- pageSize?: number;
2263
2617
  /**
2264
2618
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2265
2619
  */
2266
2620
  pageToken?: string;
2621
+ /**
2622
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2623
+ */
2624
+ pageSize?: number;
2267
2625
  /**
2268
2626
  * 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.
2269
2627
  */
@@ -2275,19 +2633,19 @@ declare class PrimaryNetworkService {
2275
2633
  * @returns ListSubnetsResponse
2276
2634
  * @throws ApiError
2277
2635
  */
2278
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2636
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2279
2637
  /**
2280
2638
  * Either mainnet or a testnet.
2281
2639
  */
2282
2640
  network: Network;
2283
- /**
2284
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2285
- */
2286
- pageSize?: number;
2287
2641
  /**
2288
2642
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2289
2643
  */
2290
2644
  pageToken?: string;
2645
+ /**
2646
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2647
+ */
2648
+ pageSize?: number;
2291
2649
  /**
2292
2650
  * 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.
2293
2651
  */
@@ -2299,19 +2657,19 @@ declare class PrimaryNetworkService {
2299
2657
  * @returns ListValidatorDetailsResponse
2300
2658
  * @throws ApiError
2301
2659
  */
2302
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2660
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2303
2661
  /**
2304
2662
  * Either mainnet or a testnet.
2305
2663
  */
2306
2664
  network: Network;
2307
- /**
2308
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2309
- */
2310
- pageSize?: number;
2311
2665
  /**
2312
2666
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2313
2667
  */
2314
2668
  pageToken?: string;
2669
+ /**
2670
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2671
+ */
2672
+ pageSize?: number;
2315
2673
  /**
2316
2674
  * A comma separated list of node ids to filter by.
2317
2675
  */
@@ -2325,9 +2683,33 @@ declare class PrimaryNetworkService {
2325
2683
  */
2326
2684
  validationStatus?: ValidationStatusType;
2327
2685
  /**
2328
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2686
+ * 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
2687
+ */
2688
+ minDelegationCapacity?: string;
2689
+ /**
2690
+ * 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.
2691
+ */
2692
+ maxDelegationCapacity?: string;
2693
+ /**
2694
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2695
+ */
2696
+ minTimeRemaining?: number;
2697
+ /**
2698
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2699
+ */
2700
+ maxTimeRemaining?: number;
2701
+ /**
2702
+ * 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.
2703
+ */
2704
+ minFeePercentage?: number;
2705
+ /**
2706
+ * 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.
2707
+ */
2708
+ maxFeePercentage?: number;
2709
+ /**
2710
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2329
2711
  */
2330
- minDelegationCapacity?: any;
2712
+ subnetId?: string;
2331
2713
  }): CancelablePromise<ListValidatorDetailsResponse>;
2332
2714
  /**
2333
2715
  * Get single validator details
@@ -2335,7 +2717,7 @@ declare class PrimaryNetworkService {
2335
2717
  * @returns ListValidatorDetailsResponse
2336
2718
  * @throws ApiError
2337
2719
  */
2338
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2720
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2339
2721
  /**
2340
2722
  * Either mainnet or a testnet.
2341
2723
  */
@@ -2344,14 +2726,14 @@ declare class PrimaryNetworkService {
2344
2726
  * A primary network (P or X chain) nodeId.
2345
2727
  */
2346
2728
  nodeId: string;
2347
- /**
2348
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2349
- */
2350
- pageSize?: number;
2351
2729
  /**
2352
2730
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2353
2731
  */
2354
2732
  pageToken?: string;
2733
+ /**
2734
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2735
+ */
2736
+ pageSize?: number;
2355
2737
  /**
2356
2738
  * 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.
2357
2739
  */
@@ -2367,19 +2749,23 @@ declare class PrimaryNetworkService {
2367
2749
  * @returns ListDelegatorDetailsResponse
2368
2750
  * @throws ApiError
2369
2751
  */
2370
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2752
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2371
2753
  /**
2372
2754
  * Either mainnet or a testnet.
2373
2755
  */
2374
2756
  network: Network;
2757
+ /**
2758
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2759
+ */
2760
+ pageToken?: string;
2375
2761
  /**
2376
2762
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2377
2763
  */
2378
2764
  pageSize?: number;
2379
2765
  /**
2380
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2766
+ * A comma separated list of reward addresses to filter by.
2381
2767
  */
2382
- pageToken?: string;
2768
+ rewardAddresses?: string;
2383
2769
  /**
2384
2770
  * 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.
2385
2771
  */
@@ -2388,10 +2774,6 @@ declare class PrimaryNetworkService {
2388
2774
  * Delegation status of the node.
2389
2775
  */
2390
2776
  delegationStatus?: DelegationStatusType;
2391
- /**
2392
- * A comma separated list of reward addresses to filter by.
2393
- */
2394
- rewardAddresses?: string;
2395
2777
  /**
2396
2778
  * A comma separated list of node ids to filter by.
2397
2779
  */
@@ -2430,7 +2812,7 @@ type CChainSharedAssetBalance = {
2430
2812
  /**
2431
2813
  * Type of asset like SECP256K1 or NFT.
2432
2814
  */
2433
- type: string;
2815
+ type: PrimaryNetworkAssetType;
2434
2816
  /**
2435
2817
  * Amount of the asset.
2436
2818
  */
@@ -2465,49 +2847,93 @@ type ListCChainAtomicBalancesResponse = {
2465
2847
  chainInfo: PrimaryNetworkChainInfo;
2466
2848
  };
2467
2849
 
2468
- type PChainAsset = {
2469
- assetId: string;
2470
- amount: string;
2471
- };
2472
-
2473
- type PChainSharedAsset = {
2850
+ type Asset = {
2851
+ /**
2852
+ * Unique ID for an asset.
2853
+ */
2474
2854
  assetId: string;
2475
- amount: string;
2476
- sharedWithChainId: string;
2477
- status: string;
2478
- };
2479
-
2480
- type PChainBalance = {
2481
2855
  /**
2482
- * 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.
2856
+ * Name of this asset.
2483
2857
  */
2484
- unlockedUnstaked: Array<PChainAsset>;
2858
+ name: string;
2485
2859
  /**
2486
- * 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.
2860
+ * Symbol for this asset (max 4 characters).
2487
2861
  */
2488
- unlockedStaked: Array<PChainAsset>;
2862
+ symbol: string;
2489
2863
  /**
2490
- * 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.
2864
+ * Denomination of this asset to represent fungibility.
2491
2865
  */
2492
- lockedPlatform: Array<PChainAsset>;
2866
+ denomination: number;
2493
2867
  /**
2494
- * 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.
2868
+ * Type of asset like SECP256K1 or NFT.
2495
2869
  */
2496
- lockedStakeable: Array<PChainAsset>;
2870
+ type: PrimaryNetworkAssetType;
2497
2871
  /**
2498
- * 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.
2872
+ * Amount of the asset.
2499
2873
  */
2500
- lockedStaked: Array<PChainAsset>;
2874
+ amount: string;
2875
+ };
2876
+
2877
+ type PChainSharedAsset = {
2501
2878
  /**
2502
- * 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.
2879
+ * Unique ID for an asset.
2503
2880
  */
2504
- pendingStaked: Array<PChainAsset>;
2881
+ assetId: string;
2505
2882
  /**
2506
- * 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.
2883
+ * Name of this asset.
2507
2884
  */
2508
- atomicMemoryUnlocked: Array<PChainSharedAsset>;
2885
+ name: string;
2509
2886
  /**
2510
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2887
+ * Symbol for this asset (max 4 characters).
2888
+ */
2889
+ symbol: string;
2890
+ /**
2891
+ * Denomination of this asset to represent fungibility.
2892
+ */
2893
+ denomination: number;
2894
+ /**
2895
+ * Type of asset like SECP256K1 or NFT.
2896
+ */
2897
+ type: PrimaryNetworkAssetType;
2898
+ /**
2899
+ * Amount of the asset.
2900
+ */
2901
+ amount: string;
2902
+ sharedWithChainId: string;
2903
+ status: string;
2904
+ };
2905
+
2906
+ type PChainBalance = {
2907
+ /**
2908
+ * 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.
2909
+ */
2910
+ unlockedUnstaked: Array<Asset>;
2911
+ /**
2912
+ * 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.
2913
+ */
2914
+ unlockedStaked: Array<Asset>;
2915
+ /**
2916
+ * 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.
2917
+ */
2918
+ lockedPlatform: Array<Asset>;
2919
+ /**
2920
+ * 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.
2921
+ */
2922
+ lockedStakeable: Array<Asset>;
2923
+ /**
2924
+ * 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.
2925
+ */
2926
+ lockedStaked: Array<Asset>;
2927
+ /**
2928
+ * 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.
2929
+ */
2930
+ pendingStaked: Array<Asset>;
2931
+ /**
2932
+ * 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.
2933
+ */
2934
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2935
+ /**
2936
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2511
2937
  */
2512
2938
  atomicMemoryLocked: Array<PChainSharedAsset>;
2513
2939
  };
@@ -2537,7 +2963,7 @@ type XChainAssetBalance = {
2537
2963
  /**
2538
2964
  * Type of asset like SECP256K1 or NFT.
2539
2965
  */
2540
- type: string;
2966
+ type: PrimaryNetworkAssetType;
2541
2967
  /**
2542
2968
  * Amount of the asset.
2543
2969
  */
@@ -2565,7 +2991,7 @@ type XChainSharedAssetBalance = {
2565
2991
  /**
2566
2992
  * Type of asset like SECP256K1 or NFT.
2567
2993
  */
2568
- type: string;
2994
+ type: PrimaryNetworkAssetType;
2569
2995
  /**
2570
2996
  * Amount of the asset.
2571
2997
  */
@@ -2640,6 +3066,7 @@ type GetPrimaryNetworkBlockResponse = {
2640
3066
  txCount: number;
2641
3067
  transactions: Array<string>;
2642
3068
  blockSizeBytes: number;
3069
+ currentSupply?: string;
2643
3070
  proposerDetails?: ProposerDetails;
2644
3071
  };
2645
3072
 
@@ -2652,6 +3079,7 @@ type PrimaryNetworkBlock = {
2652
3079
  txCount: number;
2653
3080
  transactions: Array<string>;
2654
3081
  blockSizeBytes: number;
3082
+ currentSupply?: string;
2655
3083
  proposerDetails?: ProposerDetails;
2656
3084
  };
2657
3085
 
@@ -2693,7 +3121,7 @@ declare class PrimaryNetworkBlocksService {
2693
3121
  * @returns ListPrimaryNetworkBlocksResponse
2694
3122
  * @throws ApiError
2695
3123
  */
2696
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3124
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2697
3125
  /**
2698
3126
  * A primary network blockchain id or alias.
2699
3127
  */
@@ -2706,14 +3134,14 @@ declare class PrimaryNetworkBlocksService {
2706
3134
  * A primary network (P or X chain) nodeId.
2707
3135
  */
2708
3136
  nodeId: string;
2709
- /**
2710
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2711
- */
2712
- pageSize?: number;
2713
3137
  /**
2714
3138
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2715
3139
  */
2716
3140
  pageToken?: string;
3141
+ /**
3142
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3143
+ */
3144
+ pageSize?: number;
2717
3145
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2718
3146
  /**
2719
3147
  * List latest blocks
@@ -2721,7 +3149,7 @@ declare class PrimaryNetworkBlocksService {
2721
3149
  * @returns ListPrimaryNetworkBlocksResponse
2722
3150
  * @throws ApiError
2723
3151
  */
2724
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3152
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2725
3153
  /**
2726
3154
  * A primary network blockchain id or alias.
2727
3155
  */
@@ -2730,20 +3158,52 @@ declare class PrimaryNetworkBlocksService {
2730
3158
  * Either mainnet or a testnet.
2731
3159
  */
2732
3160
  network: Network;
2733
- /**
2734
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2735
- */
2736
- pageSize?: number;
2737
3161
  /**
2738
3162
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2739
3163
  */
2740
3164
  pageToken?: string;
3165
+ /**
3166
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3167
+ */
3168
+ pageSize?: number;
2741
3169
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2742
3170
  }
2743
3171
 
3172
+ type AssetWithPriceInfo = {
3173
+ /**
3174
+ * Unique ID for an asset.
3175
+ */
3176
+ assetId: string;
3177
+ /**
3178
+ * Name of this asset.
3179
+ */
3180
+ name: string;
3181
+ /**
3182
+ * Symbol for this asset (max 4 characters).
3183
+ */
3184
+ symbol: string;
3185
+ /**
3186
+ * Denomination of this asset to represent fungibility.
3187
+ */
3188
+ denomination: number;
3189
+ /**
3190
+ * Type of asset like SECP256K1 or NFT.
3191
+ */
3192
+ type: PrimaryNetworkAssetType;
3193
+ /**
3194
+ * Amount of the asset.
3195
+ */
3196
+ amount: string;
3197
+ /**
3198
+ * 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.
3199
+ */
3200
+ historicalPrice?: Money;
3201
+ };
3202
+
2744
3203
  declare enum RewardType {
2745
3204
  VALIDATOR = "VALIDATOR",
2746
- DELEGATOR = "DELEGATOR"
3205
+ DELEGATOR = "DELEGATOR",
3206
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2747
3207
  }
2748
3208
 
2749
3209
  type HistoricalReward = {
@@ -2759,10 +3219,7 @@ type HistoricalReward = {
2759
3219
  rewardType: RewardType;
2760
3220
  utxoId: string;
2761
3221
  outputIndex: number;
2762
- /**
2763
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2764
- */
2765
- reward: PChainAsset;
3222
+ reward: AssetWithPriceInfo;
2766
3223
  rewardTxHash: string;
2767
3224
  };
2768
3225
 
@@ -2789,7 +3246,7 @@ type PendingReward = {
2789
3246
  /**
2790
3247
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2791
3248
  */
2792
- estimatedReward: PChainAsset;
3249
+ estimatedReward: Asset;
2793
3250
  };
2794
3251
 
2795
3252
  type ListPendingRewardsResponse = {
@@ -2809,23 +3266,27 @@ declare class PrimaryNetworkRewardsService {
2809
3266
  * @returns ListPendingRewardsResponse
2810
3267
  * @throws ApiError
2811
3268
  */
2812
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3269
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2813
3270
  /**
2814
3271
  * Either mainnet or a testnet.
2815
3272
  */
2816
3273
  network: Network;
2817
3274
  /**
2818
- * 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".
3275
+ * 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.
2819
3276
  */
2820
3277
  addresses?: string;
3278
+ /**
3279
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3280
+ */
3281
+ pageToken?: string;
2821
3282
  /**
2822
3283
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2823
3284
  */
2824
3285
  pageSize?: number;
2825
3286
  /**
2826
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3287
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2827
3288
  */
2828
- pageToken?: string;
3289
+ nodeIds?: string;
2829
3290
  /**
2830
3291
  * 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.
2831
3292
  */
@@ -2837,64 +3298,45 @@ declare class PrimaryNetworkRewardsService {
2837
3298
  * @returns ListHistoricalRewardsResponse
2838
3299
  * @throws ApiError
2839
3300
  */
2840
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3301
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2841
3302
  /**
2842
3303
  * Either mainnet or a testnet.
2843
3304
  */
2844
3305
  network: Network;
2845
3306
  /**
2846
- * 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".
3307
+ * 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.
2847
3308
  */
2848
3309
  addresses?: string;
3310
+ /**
3311
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3312
+ */
3313
+ pageToken?: string;
2849
3314
  /**
2850
3315
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2851
3316
  */
2852
3317
  pageSize?: number;
2853
3318
  /**
2854
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3319
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2855
3320
  */
2856
- pageToken?: string;
3321
+ nodeIds?: string;
2857
3322
  /**
2858
3323
  * 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.
2859
3324
  */
2860
3325
  sortOrder?: SortOrder;
3326
+ /**
3327
+ * The currency that return values should use. Defaults to USD.
3328
+ */
3329
+ currency?: CurrencyCode;
2861
3330
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2862
3331
  }
2863
3332
 
2864
- type Asset = {
2865
- /**
2866
- * Unique ID for an asset.
2867
- */
2868
- assetId: string;
2869
- /**
2870
- * Name of this asset.
2871
- */
2872
- name: string;
2873
- /**
2874
- * Symbol for this asset (max 4 characters).
2875
- */
2876
- symbol: string;
2877
- /**
2878
- * Denomination of this asset to represent fungibility.
2879
- */
2880
- denomination: number;
2881
- /**
2882
- * Type of asset like SECP256K1 or NFT.
2883
- */
2884
- type: string;
2885
- /**
2886
- * Amount of the asset.
2887
- */
2888
- amount: string;
2889
- };
2890
-
2891
3333
  type UtxoCredential = {
2892
3334
  /**
2893
- * Signature provided to consume the output
3335
+ * Signature provided to consume the output.
2894
3336
  */
2895
3337
  signature?: string;
2896
3338
  /**
2897
- * Public key associated with the signature
3339
+ * Public key associated with the signature.
2898
3340
  */
2899
3341
  publicKey?: string;
2900
3342
  };
@@ -2916,66 +3358,66 @@ type EVMInput = {
2916
3358
 
2917
3359
  type Utxo = {
2918
3360
  /**
2919
- * UTXO ID for this output.
3361
+ * Addresses that are eligible to sign the consumption of this output.
2920
3362
  */
2921
- utxoId: string;
3363
+ addresses: Array<string>;
2922
3364
  asset: Asset;
2923
3365
  /**
2924
- * Type of output.
3366
+ * Blockchain ID on which this output is consumed on.
2925
3367
  */
2926
- utxoType: string;
3368
+ consumedOnChainId: string;
2927
3369
  /**
2928
- * Blockchain ID on which this output is created on.
3370
+ * Transaction ID that consumed this output.
2929
3371
  */
2930
- createdOnChainId: string;
3372
+ consumingTxHash?: string;
2931
3373
  /**
2932
- * Blockchain ID on which this output is consumed on.
3374
+ * Blockchain ID on which this output is created on.
2933
3375
  */
2934
- consumedOnChainId: string;
3376
+ createdOnChainId: string;
2935
3377
  /**
2936
- * Transaction ID that created this output.
3378
+ * UTXO ID for this output.
2937
3379
  */
2938
- creationTxHash: string;
3380
+ utxoId: string;
2939
3381
  /**
2940
- * Transaction ID that consumed this output.
3382
+ * Unix timestamp in seconds at which this output was consumed.
2941
3383
  */
2942
- consumingTxHash?: string;
3384
+ consumingTxTimestamp?: number;
2943
3385
  /**
2944
- * Timestamp in seconds this output is consumed.
3386
+ * Transaction ID that created this output.
2945
3387
  */
2946
- consumingTxTimestamp?: number;
3388
+ creationTxHash: string;
2947
3389
  /**
2948
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3390
+ * Credentials that signed the transaction to consume this utxo
2949
3391
  */
2950
- outputIndex: string;
3392
+ credentials?: Array<UtxoCredential>;
2951
3393
  /**
2952
- * Timestamp in seconds this outptut is created on.
3394
+ * Index representing the minting set for the NFT mint output.
2953
3395
  */
2954
- timestamp: number;
3396
+ groupId?: number;
2955
3397
  /**
2956
3398
  * Locktime in seconds after which this output can be consumed.
2957
3399
  */
2958
3400
  locktime: number;
2959
3401
  /**
2960
- * Minimum number of signatures required to consume this output.
3402
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2961
3403
  */
2962
- threshold: number;
3404
+ outputIndex: string;
2963
3405
  /**
2964
- * Addresses that are eligible to sign the consumption of this output.
3406
+ * Hex encoded data for NFT assets.
2965
3407
  */
2966
- addresses: Array<string>;
3408
+ payload?: string;
2967
3409
  /**
2968
- * Hex encoded data for NFT assets
3410
+ * Minimum number of signatures required to consume this output.
2969
3411
  */
2970
- payload?: string;
3412
+ threshold: number;
2971
3413
  /**
2972
- * Index representing the minting set for the NFT mint output
3414
+ * Unix timestamp in seconds at which this outptut was created.
2973
3415
  */
2974
- groupId?: number;
3416
+ timestamp: number;
2975
3417
  /**
2976
- * Credentials that signed the transaction to consume this utxo
3418
+ * Type of output.
2977
3419
  */
2978
- credentials?: Array<UtxoCredential>;
3420
+ utxoType: string;
2979
3421
  };
2980
3422
 
2981
3423
  type CChainExportTransaction = {
@@ -3106,16 +3548,18 @@ type ListCChainAtomicTransactionsResponse = {
3106
3548
 
3107
3549
  declare enum PChainTransactionType {
3108
3550
  ADD_VALIDATOR_TX = "AddValidatorTx",
3109
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3110
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3111
3551
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3112
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3113
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3552
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3114
3553
  CREATE_CHAIN_TX = "CreateChainTx",
3115
3554
  CREATE_SUBNET_TX = "CreateSubnetTx",
3116
3555
  IMPORT_TX = "ImportTx",
3117
3556
  EXPORT_TX = "ExportTx",
3118
3557
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3558
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3559
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3560
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3561
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3562
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3119
3563
  UNKNOWN = "UNKNOWN"
3120
3564
  }
3121
3565
 
@@ -3126,29 +3570,48 @@ declare enum UtxoType {
3126
3570
 
3127
3571
  type PChainUtxo = {
3128
3572
  /**
3129
- * An array of P-Chain wallet addresses.
3573
+ * Addresses that are eligible to sign the consumption of this output.
3130
3574
  */
3131
3575
  addresses: Array<string>;
3576
+ asset: Asset;
3577
+ /**
3578
+ * Blockchain ID on which this output is consumed on.
3579
+ */
3580
+ consumedOnChainId: string;
3581
+ /**
3582
+ * Transaction ID that consumed this output.
3583
+ */
3584
+ consumingTxHash?: string;
3585
+ /**
3586
+ * Blockchain ID on which this output is created on.
3587
+ */
3588
+ createdOnChainId: string;
3589
+ /**
3590
+ * UTXO ID for this output.
3591
+ */
3132
3592
  utxoId: string;
3133
- txHash: string;
3134
- outputIndex: number;
3593
+ /**
3594
+ * @deprecated
3595
+ */
3596
+ amount: string;
3597
+ /**
3598
+ * @deprecated
3599
+ */
3600
+ assetId: string;
3135
3601
  blockNumber: string;
3136
3602
  blockTimestamp: number;
3137
- consumingTxHash?: string;
3138
- consumingBlockTimestamp?: number;
3139
3603
  consumingBlockNumber?: string;
3140
- assetId: string;
3141
- utxoType: UtxoType;
3142
- amount: string;
3143
- stakeableLocktime?: number;
3604
+ consumingBlockTimestamp?: number;
3144
3605
  platformLocktime?: number;
3145
- threshold?: number;
3146
- createdOnChainId: string;
3147
- consumedOnChainId: string;
3606
+ outputIndex: number;
3607
+ rewardType?: RewardType;
3608
+ stakeableLocktime?: number;
3148
3609
  staked?: boolean;
3149
- utxoStartTimestamp?: number;
3610
+ threshold?: number;
3611
+ txHash: string;
3150
3612
  utxoEndTimestamp?: number;
3151
- rewardType?: RewardType;
3613
+ utxoStartTimestamp?: number;
3614
+ utxoType: UtxoType;
3152
3615
  };
3153
3616
 
3154
3617
  type PChainTransaction = {
@@ -3176,15 +3639,15 @@ type PChainTransaction = {
3176
3639
  /**
3177
3640
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3178
3641
  */
3179
- value: Array<PChainAsset>;
3642
+ value: Array<Asset>;
3180
3643
  /**
3181
3644
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3182
3645
  */
3183
- amountBurned: Array<PChainAsset>;
3646
+ amountBurned: Array<Asset>;
3184
3647
  /**
3185
3648
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3186
3649
  */
3187
- amountStaked: Array<PChainAsset>;
3650
+ amountStaked: Array<Asset>;
3188
3651
  /**
3189
3652
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3190
3653
  */
@@ -3210,6 +3673,7 @@ type PChainTransaction = {
3210
3673
  */
3211
3674
  estimatedReward?: string;
3212
3675
  rewardTxHash?: string;
3676
+ rewardAddresses?: Array<string>;
3213
3677
  memo?: string;
3214
3678
  /**
3215
3679
  * Present for RewardValidatorTx
@@ -3226,6 +3690,15 @@ type ListPChainTransactionsResponse = {
3226
3690
  chainInfo: PrimaryNetworkChainInfo;
3227
3691
  };
3228
3692
 
3693
+ declare enum XChainTransactionType {
3694
+ BASE_TX = "BaseTx",
3695
+ CREATE_ASSET_TX = "CreateAssetTx",
3696
+ OPERATION_TX = "OperationTx",
3697
+ IMPORT_TX = "ImportTx",
3698
+ EXPORT_TX = "ExportTx",
3699
+ UNKNOWN = "UNKNOWN"
3700
+ }
3701
+
3229
3702
  type XChainLinearTransaction = {
3230
3703
  /**
3231
3704
  * Unique ID for this transaction.
@@ -3242,7 +3715,7 @@ type XChainLinearTransaction = {
3242
3715
  /**
3243
3716
  * Type of transaction.
3244
3717
  */
3245
- txType: string;
3718
+ txType: XChainTransactionType;
3246
3719
  /**
3247
3720
  * Hex encoded memo bytes for this transaction.
3248
3721
  */
@@ -3319,7 +3792,7 @@ type XChainNonLinearTransaction = {
3319
3792
  /**
3320
3793
  * Type of transaction.
3321
3794
  */
3322
- txType: string;
3795
+ txType: XChainTransactionType;
3323
3796
  /**
3324
3797
  * Hex encoded memo bytes for this transaction.
3325
3798
  */
@@ -3377,16 +3850,18 @@ declare enum PChainId {
3377
3850
 
3378
3851
  declare enum PrimaryNetworkTxType {
3379
3852
  ADD_VALIDATOR_TX = "AddValidatorTx",
3380
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3381
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3382
3853
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3383
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3384
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3854
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3385
3855
  CREATE_CHAIN_TX = "CreateChainTx",
3386
3856
  CREATE_SUBNET_TX = "CreateSubnetTx",
3387
3857
  IMPORT_TX = "ImportTx",
3388
3858
  EXPORT_TX = "ExportTx",
3389
3859
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3860
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3861
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3862
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3863
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3864
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3390
3865
  UNKNOWN = "UNKNOWN",
3391
3866
  BASE_TX = "BaseTx",
3392
3867
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3420,13 +3895,13 @@ declare class PrimaryNetworkTransactionsService {
3420
3895
  * List latest transactions
3421
3896
  * Lists the latest transactions on one of the Primary Network chains.
3422
3897
  *
3423
- * Transactions are filterable by addresses.
3898
+ * 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.
3424
3899
  *
3425
3900
  * 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.
3426
3901
  * @returns any
3427
3902
  * @throws ApiError
3428
3903
  */
3429
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3904
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3430
3905
  /**
3431
3906
  * A primary network blockchain id or alias.
3432
3907
  */
@@ -3451,14 +3926,14 @@ declare class PrimaryNetworkTransactionsService {
3451
3926
  * Query param for retrieving items before a specific timestamp.
3452
3927
  */
3453
3928
  endTimestamp?: number;
3454
- /**
3455
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3456
- */
3457
- pageSize?: number;
3458
3929
  /**
3459
3930
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3460
3931
  */
3461
3932
  pageToken?: string;
3933
+ /**
3934
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3935
+ */
3936
+ pageSize?: number;
3462
3937
  /**
3463
3938
  * 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.
3464
3939
  */
@@ -3470,7 +3945,7 @@ declare class PrimaryNetworkTransactionsService {
3470
3945
  * @returns ListPChainTransactionsResponse
3471
3946
  * @throws ApiError
3472
3947
  */
3473
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3948
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3474
3949
  /**
3475
3950
  * A primary network blockchain id or alias.
3476
3951
  */
@@ -3495,14 +3970,14 @@ declare class PrimaryNetworkTransactionsService {
3495
3970
  * Query param for retrieving items before a specific timestamp.
3496
3971
  */
3497
3972
  endTimestamp?: number;
3498
- /**
3499
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3500
- */
3501
- pageSize?: number;
3502
3973
  /**
3503
3974
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3504
3975
  */
3505
3976
  pageToken?: string;
3977
+ /**
3978
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3979
+ */
3980
+ pageSize?: number;
3506
3981
  /**
3507
3982
  * 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.
3508
3983
  */
@@ -3514,7 +3989,7 @@ declare class PrimaryNetworkTransactionsService {
3514
3989
  * @returns ListXChainTransactionsResponse
3515
3990
  * @throws ApiError
3516
3991
  */
3517
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3992
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3518
3993
  /**
3519
3994
  * A primary network blockchain id or alias.
3520
3995
  */
@@ -3539,14 +4014,14 @@ declare class PrimaryNetworkTransactionsService {
3539
4014
  * Query param for retrieving items before a specific timestamp.
3540
4015
  */
3541
4016
  endTimestamp?: number;
3542
- /**
3543
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3544
- */
3545
- pageSize?: number;
3546
4017
  /**
3547
4018
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3548
4019
  */
3549
4020
  pageToken?: string;
4021
+ /**
4022
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4023
+ */
4024
+ pageSize?: number;
3550
4025
  }): CancelablePromise<ListXChainTransactionsResponse>;
3551
4026
  }
3552
4027
 
@@ -3577,7 +4052,7 @@ declare class PrimaryNetworkUtxOsService {
3577
4052
  * @returns any
3578
4053
  * @throws ApiError
3579
4054
  */
3580
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4055
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3581
4056
  /**
3582
4057
  * A primary network blockchain id or alias.
3583
4058
  */
@@ -3590,14 +4065,14 @@ declare class PrimaryNetworkUtxOsService {
3590
4065
  * 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".
3591
4066
  */
3592
4067
  addresses?: string;
3593
- /**
3594
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3595
- */
3596
- pageSize?: number;
3597
4068
  /**
3598
4069
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3599
4070
  */
3600
4071
  pageToken?: string;
4072
+ /**
4073
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4074
+ */
4075
+ pageSize?: number;
3601
4076
  /**
3602
4077
  * Asset ID for any asset (only applicable X-Chain)
3603
4078
  */
@@ -3642,7 +4117,7 @@ declare class PrimaryNetworkVerticesService {
3642
4117
  * @returns ListXChainVerticesResponse
3643
4118
  * @throws ApiError
3644
4119
  */
3645
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4120
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3646
4121
  /**
3647
4122
  * A primary network blockchain id or alias.
3648
4123
  */
@@ -3651,14 +4126,14 @@ declare class PrimaryNetworkVerticesService {
3651
4126
  * Either mainnet or a testnet.
3652
4127
  */
3653
4128
  network: Network;
3654
- /**
3655
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3656
- */
3657
- pageSize?: number;
3658
4129
  /**
3659
4130
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3660
4131
  */
3661
4132
  pageToken?: string;
4133
+ /**
4134
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4135
+ */
4136
+ pageSize?: number;
3662
4137
  }): CancelablePromise<ListXChainVerticesResponse>;
3663
4138
  /**
3664
4139
  * Get vertex
@@ -3686,7 +4161,7 @@ declare class PrimaryNetworkVerticesService {
3686
4161
  * @returns ListXChainVerticesResponse
3687
4162
  * @throws ApiError
3688
4163
  */
3689
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4164
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3690
4165
  /**
3691
4166
  * The height of a vertex.
3692
4167
  */
@@ -3699,23 +4174,197 @@ declare class PrimaryNetworkVerticesService {
3699
4174
  * Either mainnet or a testnet.
3700
4175
  */
3701
4176
  network: Network;
4177
+ /**
4178
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4179
+ */
4180
+ pageToken?: string;
3702
4181
  /**
3703
4182
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3704
4183
  */
3705
4184
  pageSize?: number;
4185
+ /**
4186
+ * 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.
4187
+ */
4188
+ sortOrder?: SortOrder;
4189
+ }): CancelablePromise<ListXChainVerticesResponse>;
4190
+ }
4191
+
4192
+ type TeleporterDestinationTransaction = {
4193
+ txHash: string;
4194
+ timestamp: number;
4195
+ gasSpent: string;
4196
+ rewardRedeemer: string;
4197
+ delivererAddress: string;
4198
+ };
4199
+
4200
+ type TeleporterRewardDetails = {
4201
+ /**
4202
+ * A wallet or contract address in mixed-case checksum encoding.
4203
+ */
4204
+ address: string;
4205
+ /**
4206
+ * The contract name.
4207
+ */
4208
+ name: string;
4209
+ /**
4210
+ * The contract symbol.
4211
+ */
4212
+ symbol: string;
4213
+ /**
4214
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4215
+ */
4216
+ decimals: number;
4217
+ /**
4218
+ * The logo uri for the address.
4219
+ */
4220
+ logoUri?: string;
4221
+ ercType: TeleporterRewardDetails.ercType;
4222
+ /**
4223
+ * The token price, if available.
4224
+ */
4225
+ price?: Money;
4226
+ value: string;
4227
+ };
4228
+ declare namespace TeleporterRewardDetails {
4229
+ enum ercType {
4230
+ ERC_20 = "ERC-20"
4231
+ }
4232
+ }
4233
+
4234
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4235
+ sourceBlockchainId: string;
4236
+ destinationBlockchainId: string;
4237
+ messageId: string;
4238
+ from: string;
4239
+ to: string;
4240
+ data?: string;
4241
+ messageExecuted: boolean;
4242
+ receipts: Array<string>;
4243
+ receiptDelivered: boolean;
4244
+ rewardDetails: TeleporterRewardDetails;
4245
+ destinationTransaction: TeleporterDestinationTransaction;
4246
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4247
+ };
4248
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4249
+ enum status {
4250
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4251
+ }
4252
+ }
4253
+
4254
+ type TeleporterSourceTransaction = {
4255
+ txHash: string;
4256
+ timestamp: number;
4257
+ gasSpent: string;
4258
+ };
4259
+
4260
+ type DeliveredTeleporterMessage = {
4261
+ sourceBlockchainId: string;
4262
+ destinationBlockchainId: string;
4263
+ messageId: string;
4264
+ from: string;
4265
+ to: string;
4266
+ data?: string;
4267
+ messageExecuted: boolean;
4268
+ receipts: Array<string>;
4269
+ receiptDelivered: boolean;
4270
+ rewardDetails: TeleporterRewardDetails;
4271
+ sourceTransaction: TeleporterSourceTransaction;
4272
+ destinationTransaction: TeleporterDestinationTransaction;
4273
+ status: DeliveredTeleporterMessage.status;
4274
+ };
4275
+ declare namespace DeliveredTeleporterMessage {
4276
+ enum status {
4277
+ DELIVERED = "delivered"
4278
+ }
4279
+ }
4280
+
4281
+ type NextPageToken = {
4282
+ /**
4283
+ * 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.
4284
+ */
4285
+ nextPageToken?: string;
4286
+ };
4287
+
4288
+ type PendingTeleporterMessage = {
4289
+ sourceBlockchainId: string;
4290
+ destinationBlockchainId: string;
4291
+ messageId: string;
4292
+ from: string;
4293
+ to: string;
4294
+ data?: string;
4295
+ messageExecuted: boolean;
4296
+ receipts: Array<string>;
4297
+ receiptDelivered: boolean;
4298
+ rewardDetails: TeleporterRewardDetails;
4299
+ sourceTransaction: TeleporterSourceTransaction;
4300
+ status: PendingTeleporterMessage.status;
4301
+ };
4302
+ declare namespace PendingTeleporterMessage {
4303
+ enum status {
4304
+ PENDING = "pending"
4305
+ }
4306
+ }
4307
+
4308
+ declare class TeleporterService {
4309
+ readonly httpRequest: BaseHttpRequest;
4310
+ constructor(httpRequest: BaseHttpRequest);
4311
+ /**
4312
+ * Get a teleporter message
4313
+ * Gets a teleporter message by source chain, destination chain, and message ID.
4314
+ * @returns any
4315
+ * @throws ApiError
4316
+ */
4317
+ getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4318
+ /**
4319
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4320
+ */
4321
+ sourceBlockchainId: any;
4322
+ /**
4323
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4324
+ */
4325
+ destinationBlockchainId: any;
4326
+ /**
4327
+ * The message ID of the teleporter message.
4328
+ */
4329
+ messageId: any;
4330
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4331
+ /**
4332
+ * List teleporter messages
4333
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4334
+ * @returns any
4335
+ * @throws ApiError
4336
+ */
4337
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
3706
4338
  /**
3707
4339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3708
4340
  */
3709
4341
  pageToken?: string;
3710
4342
  /**
3711
- * 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.
4343
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3712
4344
  */
3713
- sortOrder?: SortOrder;
3714
- }): CancelablePromise<ListXChainVerticesResponse>;
4345
+ pageSize?: number;
4346
+ /**
4347
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4348
+ */
4349
+ sourceBlockchainId?: any;
4350
+ /**
4351
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4352
+ */
4353
+ destinationBlockchainId?: any;
4354
+ /**
4355
+ * The address of the recipient of the teleporter message.
4356
+ */
4357
+ to?: any;
4358
+ /**
4359
+ * The address of the sender of the teleporter message.
4360
+ */
4361
+ from?: any;
4362
+ }): CancelablePromise<NextPageToken>;
3715
4363
  }
3716
4364
 
3717
4365
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3718
4366
  declare class Glacier {
4367
+ readonly default: DefaultService;
3719
4368
  readonly evmBalances: EvmBalancesService;
3720
4369
  readonly evmBlocks: EvmBlocksService;
3721
4370
  readonly evmChains: EvmChainsService;
@@ -3731,6 +4380,7 @@ declare class Glacier {
3731
4380
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3732
4381
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3733
4382
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4383
+ readonly teleporter: TeleporterService;
3734
4384
  readonly request: BaseHttpRequest;
3735
4385
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3736
4386
  }
@@ -3752,4 +4402,4 @@ declare class ApiError extends Error {
3752
4402
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3753
4403
  }
3754
4404
 
3755
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, 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, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
4405
+ 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, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, 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, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, 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 };