@avalabs/glacier-sdk 2.8.0-canary.f19144b.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 (126) hide show
  1. package/dist/index.d.ts +1330 -560
  2. package/dist/index.js +475 -103
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  10. package/esm/generated/models/Asset.d.ts +3 -1
  11. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  12. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
  13. package/esm/generated/models/ChainInfo.d.ts +1 -0
  14. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  15. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  16. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  17. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  18. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  19. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  20. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  21. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  22. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  23. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  24. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  25. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  26. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  27. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  28. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  29. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  30. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  31. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  32. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  33. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  34. package/esm/generated/models/EventType.d.ts +5 -0
  35. package/esm/generated/models/EventType.js +6 -0
  36. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  37. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  38. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  39. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  40. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  41. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  42. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  43. package/esm/generated/models/NextPageToken.d.ts +8 -0
  44. package/esm/generated/models/PChainBalance.d.ts +7 -7
  45. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  46. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  47. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  48. package/esm/generated/models/PChainTransactionType.js +6 -4
  49. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  50. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  51. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  52. package/esm/generated/models/PendingReward.d.ts +2 -2
  53. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  54. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  55. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  56. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  57. package/esm/generated/models/PricingProviders.d.ts +5 -0
  58. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  59. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  60. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  61. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  62. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  63. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  64. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  65. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  66. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  67. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  68. package/esm/generated/models/RewardType.d.ts +2 -1
  69. package/esm/generated/models/RewardType.js +1 -0
  70. package/esm/generated/models/Rewards.d.ts +2 -0
  71. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  72. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  73. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  74. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  75. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  76. package/esm/generated/models/UnknownContract.d.ts +0 -1
  77. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  78. package/esm/generated/models/Utxo.d.ts +28 -28
  79. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  80. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  81. package/esm/generated/models/ValidationStatusType.js +1 -0
  82. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  83. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  84. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  85. package/esm/generated/models/WebhookStatus.js +7 -0
  86. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  87. package/esm/generated/models/WebhookStatusType.js +7 -0
  88. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  89. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  90. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  91. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  92. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  93. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  94. package/esm/generated/models/XChainTransactionType.js +11 -0
  95. package/esm/generated/services/DefaultService.d.ts +67 -0
  96. package/esm/generated/services/DefaultService.js +55 -0
  97. package/esm/generated/services/EvmBalancesService.d.ts +20 -20
  98. package/esm/generated/services/EvmBalancesService.js +8 -8
  99. package/esm/generated/services/EvmBlocksService.d.ts +5 -5
  100. package/esm/generated/services/EvmBlocksService.js +4 -4
  101. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  102. package/esm/generated/services/EvmContractsService.js +36 -0
  103. package/esm/generated/services/EvmTransactionsService.d.ts +79 -37
  104. package/esm/generated/services/EvmTransactionsService.js +33 -33
  105. package/esm/generated/services/NfTsService.d.ts +76 -0
  106. package/esm/generated/services/NfTsService.js +56 -0
  107. package/esm/generated/services/OperationsService.d.ts +11 -11
  108. package/esm/generated/services/OperationsService.js +10 -10
  109. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  110. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  111. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  112. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  113. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  114. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  115. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  116. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  117. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  118. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  119. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  120. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  121. package/esm/generated/services/TeleporterService.d.ts +65 -0
  122. package/esm/generated/services/TeleporterService.js +43 -0
  123. package/esm/index.d.ts +33 -1
  124. package/esm/index.js +25 -0
  125. package/package.json +2 -2
  126. 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,440 +858,586 @@ declare class EvmChainsService {
741
858
  }): CancelablePromise<GetChainResponse>;
742
859
  }
743
860
 
744
- type Erc1155Token = {
861
+ type ImageAsset = {
862
+ assetId?: string;
745
863
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
864
+ * OUTPUT ONLY
747
865
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
866
+ imageUri?: string;
753
867
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
868
+
869
+ type PricingProviders = {
870
+ coingeckoCoinId?: string;
871
+ };
872
+
873
+ declare enum ResourceLinkType {
874
+ BLOG = "Blog",
875
+ COIN_GECKO = "CoinGecko",
876
+ COIN_MARKET_CAP = "CoinMarketCap",
877
+ DISCORD = "Discord",
878
+ DOCUMENTATION = "Documentation",
879
+ FACEBOOK = "Facebook",
880
+ GITHUB = "Github",
881
+ INSTAGRAM = "Instagram",
882
+ LINKED_IN = "LinkedIn",
883
+ MEDIUM = "Medium",
884
+ REDDIT = "Reddit",
885
+ SUPPORT = "Support",
886
+ TELEGRAM = "Telegram",
887
+ TIK_TOK = "TikTok",
888
+ TWITTER = "Twitter",
889
+ WEBSITE = "Website",
890
+ WHITEPAPER = "Whitepaper",
891
+ YOUTUBE = "Youtube"
758
892
  }
759
893
 
760
- type RichAddress = {
894
+ type ResourceLink = {
895
+ type: ResourceLinkType;
896
+ url: string;
897
+ };
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>;
761
908
  /**
762
909
  * The contract name.
763
910
  */
764
- name?: string;
911
+ name: string;
912
+ ercType: ContractSubmissionErc1155.ercType;
765
913
  /**
766
914
  * The contract symbol.
767
915
  */
768
- symbol?: string;
769
- /**
770
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
771
- */
772
- decimals?: number;
773
- /**
774
- * The logo uri for the address.
775
- */
776
- logoUri?: string;
777
- /**
778
- * A wallet or contract address in mixed-case checksum encoding.
779
- */
780
- address: string;
781
- };
782
-
783
- type Erc1155TransferDetails = {
784
- from: RichAddress;
785
- to: RichAddress;
786
- logIndex: number;
787
- value: string;
788
- erc1155Token: Erc1155Token;
916
+ symbol: string;
917
+ pricingProviders?: PricingProviders;
789
918
  };
919
+ declare namespace ContractSubmissionErc1155 {
920
+ enum ercType {
921
+ ERC_1155 = "ERC-1155"
922
+ }
923
+ }
790
924
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
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>;
796
934
  /**
797
935
  * The contract name.
798
936
  */
799
937
  name: string;
938
+ ercType: ContractSubmissionErc20.ercType;
800
939
  /**
801
940
  * The contract symbol.
802
941
  */
803
942
  symbol: string;
804
- /**
805
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
806
- */
807
- decimals: number;
808
- /**
809
- * The logo uri for the address.
810
- */
811
- logoUri?: string;
812
- ercType: Erc20Token.ercType;
813
- /**
814
- * The token price, if available.
815
- */
816
- price?: Money;
943
+ pricingProviders?: PricingProviders;
817
944
  };
818
- declare namespace Erc20Token {
945
+ declare namespace ContractSubmissionErc20 {
819
946
  enum ercType {
820
947
  ERC_20 = "ERC-20"
821
948
  }
822
949
  }
823
950
 
824
- type Erc20TransferDetails = {
825
- from: RichAddress;
826
- to: RichAddress;
827
- logIndex: number;
828
- value: string;
829
- erc20Token: Erc20Token;
830
- };
831
-
832
- type Erc721Token = {
833
- /**
834
- * A wallet or contract address in mixed-case checksum encoding.
835
- */
836
- address: string;
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>;
837
960
  /**
838
961
  * The contract name.
839
962
  */
840
963
  name: string;
964
+ ercType: ContractSubmissionErc721.ercType;
841
965
  /**
842
966
  * The contract symbol.
843
967
  */
844
968
  symbol: string;
845
- ercType: Erc721Token.ercType;
846
- tokenId: string;
847
- tokenUri: string;
848
- metadata: Erc721TokenMetadata;
849
- /**
850
- * A wallet or contract address in mixed-case checksum encoding.
851
- */
852
- ownerAddress?: string;
853
969
  };
854
- declare namespace Erc721Token {
970
+ declare namespace ContractSubmissionErc721 {
855
971
  enum ercType {
856
972
  ERC_721 = "ERC-721"
857
973
  }
858
974
  }
859
975
 
860
- type Erc721TransferDetails = {
861
- from: RichAddress;
862
- to: RichAddress;
863
- logIndex: number;
864
- erc721Token: Erc721Token;
865
- };
866
-
867
- declare enum TransactionMethodType {
868
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
869
- CONTRACT_CALL = "CONTRACT_CALL",
870
- CONTRACT_CREATION = "CONTRACT_CREATION"
871
- }
872
-
873
- type Method = {
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>;
874
985
  /**
875
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
986
+ * The contract name.
876
987
  */
877
- callType: TransactionMethodType;
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;
878
1003
  /**
879
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1004
+ * The address that initiated the transaction which deployed this contract.
880
1005
  */
881
- methodHash: string;
1006
+ deployerAddress: string;
882
1007
  /**
883
- * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
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.
884
1009
  */
885
- methodName?: string;
1010
+ deployerContractAddress?: string;
886
1011
  };
887
1012
 
888
- type FullNativeTransactionDetails = {
1013
+ type Erc1155Contract = {
889
1014
  /**
890
- * The block number on the chain.
1015
+ * The contract name.
891
1016
  */
892
- blockNumber: string;
1017
+ name?: string;
1018
+ description?: string;
1019
+ officialSite?: string;
1020
+ email?: string;
1021
+ logoAsset?: ImageAsset;
1022
+ bannerAsset?: ImageAsset;
1023
+ color?: string;
1024
+ resourceLinks?: Array<ResourceLink>;
1025
+ tags?: Array<string>;
893
1026
  /**
894
- * The block finality timestamp.
1027
+ * A wallet or contract address in mixed-case checksum encoding.
895
1028
  */
896
- blockTimestamp: number;
1029
+ address: string;
1030
+ deploymentDetails: ContractDeploymentDetails;
1031
+ ercType: Erc1155Contract.ercType;
897
1032
  /**
898
- * The block hash identifier.
1033
+ * The contract symbol.
899
1034
  */
900
- blockHash: string;
1035
+ symbol?: string;
1036
+ pricingProviders?: PricingProviders;
1037
+ };
1038
+ declare namespace Erc1155Contract {
1039
+ enum ercType {
1040
+ ERC_1155 = "ERC-1155"
1041
+ }
1042
+ }
1043
+
1044
+ type Erc20Contract = {
901
1045
  /**
902
- * The index at which the transaction occured in the block (0-indexed).
1046
+ * The contract name.
903
1047
  */
904
- blockIndex: number;
1048
+ name?: string;
1049
+ description?: string;
1050
+ officialSite?: string;
1051
+ email?: string;
1052
+ logoAsset?: ImageAsset;
1053
+ bannerAsset?: ImageAsset;
1054
+ color?: string;
1055
+ resourceLinks?: Array<ResourceLink>;
1056
+ tags?: Array<string>;
905
1057
  /**
906
- * The transaction hash identifier.
1058
+ * A wallet or contract address in mixed-case checksum encoding.
907
1059
  */
908
- txHash: string;
1060
+ address: string;
1061
+ deploymentDetails: ContractDeploymentDetails;
1062
+ ercType: Erc20Contract.ercType;
909
1063
  /**
910
- * The transaction status, which is either 0 (failed) or 1 (successful).
1064
+ * The contract symbol.
911
1065
  */
912
- txStatus: string;
1066
+ symbol?: string;
913
1067
  /**
914
- * The transaction type.
1068
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
915
1069
  */
916
- txType: number;
1070
+ decimals: number;
1071
+ pricingProviders?: PricingProviders;
1072
+ };
1073
+ declare namespace Erc20Contract {
1074
+ enum ercType {
1075
+ ERC_20 = "ERC-20"
1076
+ }
1077
+ }
1078
+
1079
+ type Erc721Contract = {
917
1080
  /**
918
- * The gas limit set for the transaction.
1081
+ * The contract name.
919
1082
  */
920
- gasLimit: string;
1083
+ name?: string;
1084
+ description?: string;
1085
+ officialSite?: string;
1086
+ email?: string;
1087
+ logoAsset?: ImageAsset;
1088
+ bannerAsset?: ImageAsset;
1089
+ color?: string;
1090
+ resourceLinks?: Array<ResourceLink>;
1091
+ tags?: Array<string>;
921
1092
  /**
922
- * The amount of gas used.
1093
+ * A wallet or contract address in mixed-case checksum encoding.
923
1094
  */
924
- gasUsed: string;
1095
+ address: string;
1096
+ deploymentDetails: ContractDeploymentDetails;
1097
+ ercType: Erc721Contract.ercType;
925
1098
  /**
926
- * The gas price denominated by the number of decimals of the native token.
1099
+ * The contract symbol.
927
1100
  */
928
- gasPrice: string;
1101
+ symbol?: string;
1102
+ };
1103
+ declare namespace Erc721Contract {
1104
+ enum ercType {
1105
+ ERC_721 = "ERC-721"
1106
+ }
1107
+ }
1108
+
1109
+ type UnknownContract = {
929
1110
  /**
930
- * The nonce used by the sender of the transaction.
1111
+ * The contract name.
931
1112
  */
932
- nonce: string;
933
- from: RichAddress;
934
- to: RichAddress;
935
- method?: Method;
936
- value: string;
1113
+ name?: string;
1114
+ description?: string;
1115
+ officialSite?: string;
1116
+ email?: string;
1117
+ logoAsset?: ImageAsset;
1118
+ bannerAsset?: ImageAsset;
1119
+ color?: string;
1120
+ resourceLinks?: Array<ResourceLink>;
1121
+ tags?: Array<string>;
937
1122
  /**
938
- * The data sent for the transaction.
1123
+ * A wallet or contract address in mixed-case checksum encoding.
939
1124
  */
940
- input: string;
941
- baseFeePerGas: string;
942
- maxFeePerGas?: string;
943
- maxPriorityFeePerGas?: string;
1125
+ address: string;
1126
+ deploymentDetails: ContractDeploymentDetails;
1127
+ ercType: UnknownContract.ercType;
944
1128
  };
945
-
946
- declare enum InternalTransactionOpCall {
947
- UNKNOWN = "UNKNOWN",
948
- CALL = "CALL",
949
- CREATE = "CREATE",
950
- CREATE2 = "CREATE2",
951
- CALLCODE = "CALLCODE",
952
- DELEGATECALL = "DELEGATECALL",
953
- STATICCALL = "STATICCALL"
1129
+ declare namespace UnknownContract {
1130
+ enum ercType {
1131
+ UNKNOWN = "UNKNOWN"
1132
+ }
954
1133
  }
955
1134
 
956
- type InternalTransactionDetails = {
957
- from: RichAddress;
958
- to: RichAddress;
959
- internalTxType: InternalTransactionOpCall;
960
- value: string;
961
- /**
962
- * True if the internal transaction was reverted.
963
- */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
1135
+ type UpdateContractResponse = {
1136
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
967
1137
  };
968
1138
 
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
1139
+ declare class EvmContractsService {
1140
+ readonly httpRequest: BaseHttpRequest;
1141
+ constructor(httpRequest: BaseHttpRequest);
971
1142
  /**
972
- * The current token price, if available.
1143
+ * Get contract metadata
1144
+ * Gets metadata about the contract at the given address.
1145
+ * @returns any
1146
+ * @throws ApiError
973
1147
  */
974
- currentPrice?: Money;
1148
+ getContractMetadata({ chainId, address, }: {
1149
+ /**
1150
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1151
+ */
1152
+ chainId: string;
1153
+ /**
1154
+ * Contract address on the relevant chain.
1155
+ */
1156
+ address: string;
1157
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
975
1158
  /**
976
- * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
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
977
1163
  */
978
- historicalPrice?: Money;
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>;
1175
+ }
1176
+
1177
+ type Erc1155Token = {
1178
+ /**
1179
+ * A wallet or contract address in mixed-case checksum encoding.
1180
+ */
1181
+ address: string;
1182
+ ercType: Erc1155Token.ercType;
1183
+ tokenId: string;
1184
+ tokenUri: string;
1185
+ metadata: Erc1155TokenMetadata;
979
1186
  };
1187
+ declare namespace Erc1155Token {
1188
+ enum ercType {
1189
+ ERC_1155 = "ERC-1155"
1190
+ }
1191
+ }
980
1192
 
981
- type GetTransactionResponse = {
1193
+ type RichAddress = {
982
1194
  /**
983
- * The list of ERC-20 transfers.
1195
+ * The contract name.
984
1196
  */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
1197
+ name?: string;
986
1198
  /**
987
- * The list of ERC-721 transfers.
1199
+ * The contract symbol.
988
1200
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
1201
+ symbol?: string;
990
1202
  /**
991
- * The list of ERC-1155 transfers.
1203
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
992
1204
  */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1205
+ decimals?: number;
994
1206
  /**
995
- * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1207
+ * The logo uri for the address.
996
1208
  */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1209
+ logoUri?: string;
1210
+ /**
1211
+ * A wallet or contract address in mixed-case checksum encoding.
1212
+ */
1213
+ address: string;
1000
1214
  };
1001
1215
 
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1216
+ type Erc1155TransferDetails = {
1217
+ from: RichAddress;
1218
+ to: RichAddress;
1219
+ logIndex: number;
1220
+ value: string;
1221
+ erc1155Token: Erc1155Token;
1222
+ };
1223
+
1224
+ type Erc20Token = {
1004
1225
  /**
1005
- * The address that initiated the transaction which deployed this contract.
1226
+ * A wallet or contract address in mixed-case checksum encoding.
1006
1227
  */
1007
- deployerAddress: string;
1228
+ address: string;
1008
1229
  /**
1009
- * 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.
1230
+ * The contract name.
1010
1231
  */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1015
- assetId?: string;
1232
+ name: string;
1016
1233
  /**
1017
- * OUTPUT ONLY
1234
+ * The contract symbol.
1018
1235
  */
1019
- imageUri?: string;
1236
+ symbol: string;
1237
+ /**
1238
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1239
+ */
1240
+ decimals: number;
1241
+ /**
1242
+ * The logo uri for the address.
1243
+ */
1244
+ logoUri?: string;
1245
+ ercType: Erc20Token.ercType;
1246
+ /**
1247
+ * The token price, if available.
1248
+ */
1249
+ price?: Money;
1020
1250
  };
1021
-
1022
- declare enum ResourceLinkType {
1023
- BLOG = "Blog",
1024
- COIN_GECKO = "CoinGecko",
1025
- COIN_MARKET_CAP = "CoinMarketCap",
1026
- DISCORD = "Discord",
1027
- DOCUMENTATION = "Documentation",
1028
- FACEBOOK = "Facebook",
1029
- GITHUB = "Github",
1030
- INSTAGRAM = "Instagram",
1031
- LINKED_IN = "LinkedIn",
1032
- MEDIUM = "Medium",
1033
- REDDIT = "Reddit",
1034
- SUPPORT = "Support",
1035
- TELEGRAM = "Telegram",
1036
- TIK_TOK = "TikTok",
1037
- TWITTER = "Twitter",
1038
- WEBSITE = "Website",
1039
- WHITEPAPER = "Whitepaper",
1040
- YOUTUBE = "Youtube"
1251
+ declare namespace Erc20Token {
1252
+ enum ercType {
1253
+ ERC_20 = "ERC-20"
1254
+ }
1041
1255
  }
1042
1256
 
1043
- type ResourceLink = {
1044
- type: ResourceLinkType;
1045
- url: string;
1257
+ type Erc20TransferDetails = {
1258
+ from: RichAddress;
1259
+ to: RichAddress;
1260
+ logIndex: number;
1261
+ value: string;
1262
+ erc20Token: Erc20Token;
1046
1263
  };
1047
1264
 
1048
- type Erc1155Contract = {
1049
- /**
1050
- * The contract name.
1051
- */
1052
- name?: string;
1053
- description?: string;
1054
- officialSite?: string;
1055
- email?: string;
1056
- logoAsset?: ImageAsset;
1057
- bannerAsset?: ImageAsset;
1058
- color?: string;
1059
- coingeckoCoinId?: string;
1060
- resourceLinks?: Array<ResourceLink>;
1061
- tags?: Array<string>;
1265
+ type Erc721Token = {
1062
1266
  /**
1063
1267
  * A wallet or contract address in mixed-case checksum encoding.
1064
1268
  */
1065
1269
  address: string;
1066
- deploymentDetails: ContractDeploymentDetails;
1067
- ercType: Erc1155Contract.ercType;
1270
+ /**
1271
+ * The contract name.
1272
+ */
1273
+ name: string;
1068
1274
  /**
1069
1275
  * The contract symbol.
1070
1276
  */
1071
- symbol?: string;
1277
+ symbol: string;
1278
+ ercType: Erc721Token.ercType;
1279
+ tokenId: string;
1280
+ tokenUri: string;
1281
+ metadata: Erc721TokenMetadata;
1282
+ /**
1283
+ * A wallet or contract address in mixed-case checksum encoding.
1284
+ */
1285
+ ownerAddress?: string;
1072
1286
  };
1073
- declare namespace Erc1155Contract {
1287
+ declare namespace Erc721Token {
1074
1288
  enum ercType {
1075
- ERC_1155 = "ERC-1155"
1289
+ ERC_721 = "ERC-721"
1076
1290
  }
1077
1291
  }
1078
1292
 
1079
- type Erc20Contract = {
1293
+ type Erc721TransferDetails = {
1294
+ from: RichAddress;
1295
+ to: RichAddress;
1296
+ logIndex: number;
1297
+ erc721Token: Erc721Token;
1298
+ };
1299
+
1300
+ declare enum TransactionMethodType {
1301
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1302
+ CONTRACT_CALL = "CONTRACT_CALL",
1303
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1304
+ }
1305
+
1306
+ type Method = {
1080
1307
  /**
1081
- * The contract name.
1308
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
1082
1309
  */
1083
- name?: string;
1084
- description?: string;
1085
- officialSite?: string;
1086
- email?: string;
1087
- logoAsset?: ImageAsset;
1088
- bannerAsset?: ImageAsset;
1089
- color?: string;
1090
- coingeckoCoinId?: string;
1091
- resourceLinks?: Array<ResourceLink>;
1092
- tags?: Array<string>;
1310
+ callType: TransactionMethodType;
1093
1311
  /**
1094
- * A wallet or contract address in mixed-case checksum encoding.
1312
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1095
1313
  */
1096
- address: string;
1097
- deploymentDetails: ContractDeploymentDetails;
1098
- ercType: Erc20Contract.ercType;
1314
+ methodHash: string;
1099
1315
  /**
1100
- * The contract symbol.
1316
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
1101
1317
  */
1102
- symbol?: string;
1318
+ methodName?: string;
1319
+ };
1320
+
1321
+ type FullNativeTransactionDetails = {
1322
+ /**
1323
+ * The block number on the chain.
1324
+ */
1325
+ blockNumber: string;
1326
+ /**
1327
+ * The block finality timestamp.
1328
+ */
1329
+ blockTimestamp: number;
1330
+ /**
1331
+ * The block hash identifier.
1332
+ */
1333
+ blockHash: string;
1334
+ /**
1335
+ * The index at which the transaction occured in the block (0-indexed).
1336
+ */
1337
+ blockIndex: number;
1338
+ /**
1339
+ * The transaction hash identifier.
1340
+ */
1341
+ txHash: string;
1342
+ /**
1343
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1344
+ */
1345
+ txStatus: string;
1346
+ /**
1347
+ * The transaction type.
1348
+ */
1349
+ txType: number;
1350
+ /**
1351
+ * The gas limit set for the transaction.
1352
+ */
1353
+ gasLimit: string;
1354
+ /**
1355
+ * The amount of gas used.
1356
+ */
1357
+ gasUsed: string;
1358
+ /**
1359
+ * The gas price denominated by the number of decimals of the native token.
1360
+ */
1361
+ gasPrice: string;
1362
+ /**
1363
+ * The nonce used by the sender of the transaction.
1364
+ */
1365
+ nonce: string;
1366
+ from: RichAddress;
1367
+ to: RichAddress;
1368
+ method?: Method;
1369
+ value: string;
1103
1370
  /**
1104
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1371
+ * The data sent for the transaction.
1105
1372
  */
1106
- decimals: number;
1373
+ input: string;
1374
+ baseFeePerGas: string;
1375
+ maxFeePerGas?: string;
1376
+ maxPriorityFeePerGas?: string;
1107
1377
  };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1378
+
1379
+ declare enum InternalTransactionOpCall {
1380
+ UNKNOWN = "UNKNOWN",
1381
+ CALL = "CALL",
1382
+ CREATE = "CREATE",
1383
+ CREATE2 = "CREATE2",
1384
+ CALLCODE = "CALLCODE",
1385
+ DELEGATECALL = "DELEGATECALL",
1386
+ STATICCALL = "STATICCALL"
1112
1387
  }
1113
1388
 
1114
- type Erc721Contract = {
1389
+ type InternalTransactionDetails = {
1390
+ from: RichAddress;
1391
+ to: RichAddress;
1392
+ internalTxType: InternalTransactionOpCall;
1393
+ value: string;
1115
1394
  /**
1116
- * The contract name.
1395
+ * True if the internal transaction was reverted.
1117
1396
  */
1118
- name?: string;
1119
- description?: string;
1120
- officialSite?: string;
1121
- email?: string;
1122
- logoAsset?: ImageAsset;
1123
- bannerAsset?: ImageAsset;
1124
- color?: string;
1125
- coingeckoCoinId?: string;
1126
- resourceLinks?: Array<ResourceLink>;
1127
- tags?: Array<string>;
1397
+ isReverted: boolean;
1398
+ gasUsed: string;
1399
+ gasLimit: string;
1400
+ };
1401
+
1402
+ type NetworkTokenDetails = {
1403
+ networkToken: NetworkToken;
1128
1404
  /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1405
+ * The current token price, if available.
1130
1406
  */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1407
+ currentPrice?: Money;
1134
1408
  /**
1135
- * The contract symbol.
1409
+ * The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
1136
1410
  */
1137
- symbol?: string;
1411
+ historicalPrice?: Money;
1138
1412
  };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
1413
 
1145
- type UnknownContract = {
1414
+ type GetTransactionResponse = {
1146
1415
  /**
1147
- * The contract name.
1416
+ * The list of ERC-20 transfers.
1148
1417
  */
1149
- name?: string;
1150
- description?: string;
1151
- officialSite?: string;
1152
- email?: string;
1153
- logoAsset?: ImageAsset;
1154
- bannerAsset?: ImageAsset;
1155
- color?: string;
1156
- coingeckoCoinId?: string;
1157
- resourceLinks?: Array<ResourceLink>;
1158
- tags?: Array<string>;
1418
+ erc20Transfers?: Array<Erc20TransferDetails>;
1159
1419
  /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
1420
+ * The list of ERC-721 transfers.
1161
1421
  */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1422
+ erc721Transfers?: Array<Erc721TransferDetails>;
1423
+ /**
1424
+ * The list of ERC-1155 transfers.
1425
+ */
1426
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1427
+ /**
1428
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
1429
+ */
1430
+ internalTransactions?: Array<InternalTransactionDetails>;
1431
+ networkTokenDetails: NetworkTokenDetails;
1432
+ nativeTransaction: FullNativeTransactionDetails;
1165
1433
  };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
1434
 
1172
1435
  type ListContractsResponse = {
1173
1436
  /**
1174
1437
  * 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.
1175
1438
  */
1176
1439
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1440
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1441
  };
1179
1442
 
1180
1443
  type Erc1155Transfer = {
@@ -1446,7 +1709,7 @@ declare class EvmTransactionsService {
1446
1709
  * @returns ListContractsResponse
1447
1710
  * @throws ApiError
1448
1711
  */
1449
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1712
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1450
1713
  /**
1451
1714
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1452
1715
  */
@@ -1455,14 +1718,14 @@ declare class EvmTransactionsService {
1455
1718
  * A wallet address.
1456
1719
  */
1457
1720
  address: string;
1458
- /**
1459
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1460
- */
1461
- pageSize?: number;
1462
1721
  /**
1463
1722
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1464
1723
  */
1465
1724
  pageToken?: string;
1725
+ /**
1726
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1727
+ */
1728
+ pageSize?: number;
1466
1729
  }): CancelablePromise<ListContractsResponse>;
1467
1730
  /**
1468
1731
  * List ERC transfers
@@ -1470,7 +1733,7 @@ declare class EvmTransactionsService {
1470
1733
  * @returns ListTransfersResponse
1471
1734
  * @throws ApiError
1472
1735
  */
1473
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1736
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1474
1737
  /**
1475
1738
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1476
1739
  */
@@ -1479,16 +1742,22 @@ declare class EvmTransactionsService {
1479
1742
  * A wallet address.
1480
1743
  */
1481
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
+ */
1482
1748
  startBlock?: number;
1483
- endBlock?: number;
1484
1749
  /**
1485
- * 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.
1486
1751
  */
1487
- pageSize?: number;
1752
+ endBlock?: number;
1488
1753
  /**
1489
1754
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1490
1755
  */
1491
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;
1492
1761
  }): CancelablePromise<ListTransfersResponse>;
1493
1762
  /**
1494
1763
  * List transactions
@@ -1498,7 +1767,7 @@ declare class EvmTransactionsService {
1498
1767
  * @returns ListTransactionDetailsResponse
1499
1768
  * @throws ApiError
1500
1769
  */
1501
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1770
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1502
1771
  /**
1503
1772
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1504
1773
  */
@@ -1507,15 +1776,21 @@ declare class EvmTransactionsService {
1507
1776
  * A wallet address.
1508
1777
  */
1509
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;
1510
1783
  /**
1511
1784
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1512
1785
  */
1513
1786
  pageSize?: number;
1514
1787
  /**
1515
- * 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.
1516
1789
  */
1517
- pageToken?: string;
1518
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
+ */
1519
1794
  endBlock?: number;
1520
1795
  /**
1521
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.
@@ -1528,7 +1803,7 @@ declare class EvmTransactionsService {
1528
1803
  * @returns ListNativeTransactionsResponse
1529
1804
  * @throws ApiError
1530
1805
  */
1531
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1806
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1532
1807
  /**
1533
1808
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1534
1809
  */
@@ -1537,16 +1812,22 @@ declare class EvmTransactionsService {
1537
1812
  * A wallet address.
1538
1813
  */
1539
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
+ */
1540
1818
  startBlock?: number;
1541
- endBlock?: number;
1542
1819
  /**
1543
- * 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.
1544
1821
  */
1545
- pageSize?: number;
1822
+ endBlock?: number;
1546
1823
  /**
1547
1824
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1548
1825
  */
1549
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;
1550
1831
  }): CancelablePromise<ListNativeTransactionsResponse>;
1551
1832
  /**
1552
1833
  * List ERC-20 transfers
@@ -1554,7 +1835,7 @@ declare class EvmTransactionsService {
1554
1835
  * @returns ListErc20TransactionsResponse
1555
1836
  * @throws ApiError
1556
1837
  */
1557
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1838
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1558
1839
  /**
1559
1840
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1560
1841
  */
@@ -1563,16 +1844,22 @@ declare class EvmTransactionsService {
1563
1844
  * A wallet address.
1564
1845
  */
1565
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
+ */
1566
1850
  startBlock?: number;
1567
- endBlock?: number;
1568
1851
  /**
1569
- * 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.
1570
1853
  */
1571
- pageSize?: number;
1854
+ endBlock?: number;
1572
1855
  /**
1573
1856
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1574
1857
  */
1575
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;
1576
1863
  }): CancelablePromise<ListErc20TransactionsResponse>;
1577
1864
  /**
1578
1865
  * List ERC-721 transfers
@@ -1580,7 +1867,7 @@ declare class EvmTransactionsService {
1580
1867
  * @returns ListErc721TransactionsResponse
1581
1868
  * @throws ApiError
1582
1869
  */
1583
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1870
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1584
1871
  /**
1585
1872
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1586
1873
  */
@@ -1589,16 +1876,22 @@ declare class EvmTransactionsService {
1589
1876
  * A wallet address.
1590
1877
  */
1591
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
+ */
1592
1882
  startBlock?: number;
1593
- endBlock?: number;
1594
1883
  /**
1595
- * 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.
1596
1885
  */
1597
- pageSize?: number;
1886
+ endBlock?: number;
1598
1887
  /**
1599
1888
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1600
1889
  */
1601
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;
1602
1895
  }): CancelablePromise<ListErc721TransactionsResponse>;
1603
1896
  /**
1604
1897
  * List ERC-1155 transfers
@@ -1606,7 +1899,7 @@ declare class EvmTransactionsService {
1606
1899
  * @returns ListErc1155TransactionsResponse
1607
1900
  * @throws ApiError
1608
1901
  */
1609
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1902
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1610
1903
  /**
1611
1904
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
1905
  */
@@ -1615,16 +1908,22 @@ declare class EvmTransactionsService {
1615
1908
  * A wallet address.
1616
1909
  */
1617
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
+ */
1618
1914
  startBlock?: number;
1619
- endBlock?: number;
1620
1915
  /**
1621
- * 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.
1622
1917
  */
1623
- pageSize?: number;
1918
+ endBlock?: number;
1624
1919
  /**
1625
1920
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1626
1921
  */
1627
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;
1628
1927
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1629
1928
  /**
1630
1929
  * List internal transactions
@@ -1634,7 +1933,7 @@ declare class EvmTransactionsService {
1634
1933
  * @returns ListInternalTransactionsResponse
1635
1934
  * @throws ApiError
1636
1935
  */
1637
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1936
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1638
1937
  /**
1639
1938
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1640
1939
  */
@@ -1643,16 +1942,22 @@ declare class EvmTransactionsService {
1643
1942
  * A wallet address.
1644
1943
  */
1645
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
+ */
1646
1948
  startBlock?: number;
1647
- endBlock?: number;
1648
1949
  /**
1649
- * 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.
1650
1951
  */
1651
- pageSize?: number;
1952
+ endBlock?: number;
1652
1953
  /**
1653
1954
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1654
1955
  */
1655
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;
1656
1961
  }): CancelablePromise<ListInternalTransactionsResponse>;
1657
1962
  /**
1658
1963
  * Get transaction
@@ -1692,19 +1997,19 @@ declare class EvmTransactionsService {
1692
1997
  * @returns ListNativeTransactionsResponse
1693
1998
  * @throws ApiError
1694
1999
  */
1695
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2000
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
1696
2001
  /**
1697
2002
  * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1698
2003
  */
1699
2004
  chainId: string;
1700
- /**
1701
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1702
- */
1703
- pageSize?: number;
1704
2005
  /**
1705
2006
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1706
2007
  */
1707
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;
1708
2013
  /**
1709
2014
  * A status filter for listed transactions.
1710
2015
  */
@@ -1728,6 +2033,83 @@ declare class HealthCheckService {
1728
2033
  }>;
1729
2034
  }
1730
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
+
2044
+ declare class NfTsService {
2045
+ readonly httpRequest: BaseHttpRequest;
2046
+ constructor(httpRequest: BaseHttpRequest);
2047
+ /**
2048
+ * Reindex NFT metadata
2049
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2050
+ * @returns any
2051
+ * @throws ApiError
2052
+ */
2053
+ reindexNft({ chainId, address, tokenId, }: {
2054
+ /**
2055
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2056
+ */
2057
+ chainId: string;
2058
+ /**
2059
+ * Contract address on the relevant chain.
2060
+ */
2061
+ address: string;
2062
+ /**
2063
+ * TokenId on the contract
2064
+ */
2065
+ tokenId: string;
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>;
2091
+ /**
2092
+ * Get token details
2093
+ * Gets token details for a specific token of an NFT contract.
2094
+ * @returns any
2095
+ * @throws ApiError
2096
+ */
2097
+ getTokenDetails({ chainId, address, tokenId, }: {
2098
+ /**
2099
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2100
+ */
2101
+ chainId: string;
2102
+ /**
2103
+ * Contract address on the relevant chain.
2104
+ */
2105
+ address: string;
2106
+ /**
2107
+ * TokenId on the contract
2108
+ */
2109
+ tokenId: string;
2110
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2111
+ }
2112
+
1731
2113
  type EvmNetworkOptions = {
1732
2114
  addresses: Array<string>;
1733
2115
  includeChains: Array<string>;
@@ -1822,17 +2204,6 @@ type OperationStatusResponse = {
1822
2204
  declare class OperationsService {
1823
2205
  readonly httpRequest: BaseHttpRequest;
1824
2206
  constructor(httpRequest: BaseHttpRequest);
1825
- /**
1826
- * Create transaction export operation
1827
- * Trigger a transaction export operation with given parameters.
1828
- *
1829
- * 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.
1830
- * @returns OperationStatusResponse
1831
- * @throws ApiError
1832
- */
1833
- postTransactionExportJob({ requestBody, }: {
1834
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1835
- }): CancelablePromise<OperationStatusResponse>;
1836
2207
  /**
1837
2208
  * Get operation
1838
2209
  * Gets operation details for the given operation id.
@@ -1845,6 +2216,17 @@ declare class OperationsService {
1845
2216
  */
1846
2217
  operationId: string;
1847
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>;
1848
2230
  }
1849
2231
 
1850
2232
  declare enum BlockchainIds {
@@ -1913,39 +2295,57 @@ type ListBlockchainsResponse = {
1913
2295
 
1914
2296
  type ActiveDelegatorDetails = {
1915
2297
  txHash: string;
2298
+ nodeId: string;
1916
2299
  rewardAddresses: Array<string>;
1917
2300
  amountDelegated: string;
1918
2301
  delegationFee: string;
1919
2302
  startTimestamp: number;
1920
2303
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
2304
  estimatedGrossReward: string;
1923
2305
  estimatedNetReward: string;
2306
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
2307
  };
2308
+ declare namespace ActiveDelegatorDetails {
2309
+ enum delegationStatus {
2310
+ ACTIVE = "active"
2311
+ }
2312
+ }
1925
2313
 
1926
2314
  type CompletedDelegatorDetails = {
1927
2315
  txHash: string;
2316
+ nodeId: string;
1928
2317
  rewardAddresses: Array<string>;
1929
2318
  amountDelegated: string;
1930
2319
  delegationFee: string;
1931
2320
  startTimestamp: number;
1932
2321
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2322
  grossReward: string;
1935
2323
  netReward: string;
2324
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2325
  };
2326
+ declare namespace CompletedDelegatorDetails {
2327
+ enum delegationStatus {
2328
+ COMPLETED = "completed"
2329
+ }
2330
+ }
1937
2331
 
1938
2332
  type PendingDelegatorDetails = {
1939
2333
  txHash: string;
2334
+ nodeId: string;
1940
2335
  rewardAddresses: Array<string>;
1941
2336
  amountDelegated: string;
1942
2337
  delegationFee: string;
1943
2338
  startTimestamp: number;
1944
2339
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2340
  estimatedGrossReward: string;
1947
2341
  estimatedNetReward: string;
2342
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2343
  };
2344
+ declare namespace PendingDelegatorDetails {
2345
+ enum delegationStatus {
2346
+ PENDING = "pending"
2347
+ }
2348
+ }
1949
2349
 
1950
2350
  type ListDelegatorDetailsResponse = {
1951
2351
  /**
@@ -1983,49 +2383,104 @@ type ListSubnetsResponse = {
1983
2383
  type Rewards = {
1984
2384
  validationRewardAmount: string;
1985
2385
  delegationRewardAmount: string;
2386
+ rewardAddresses?: Array<string>;
2387
+ rewardTxHash?: string;
1986
2388
  };
1987
2389
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
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;
2407
+ };
1993
2408
 
1994
2409
  type ActiveValidatorDetails = {
2410
+ txHash: string;
1995
2411
  nodeId: string;
2412
+ subnetId: string;
1996
2413
  amountStaked: string;
1997
- delegationFee: string;
2414
+ delegationFee?: string;
1998
2415
  startTimestamp: number;
1999
2416
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2417
  stakePercentage: number;
2002
2418
  delegatorCount: number;
2003
- amountDelegated: string;
2419
+ amountDelegated?: string;
2004
2420
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2421
+ avalancheGoVersion?: string;
2422
+ delegationCapacity?: string;
2007
2423
  potentialRewards: Rewards;
2424
+ validationStatus: ActiveValidatorDetails.validationStatus;
2425
+ validatorHealth: ValidatorHealthDetails;
2008
2426
  };
2427
+ declare namespace ActiveValidatorDetails {
2428
+ enum validationStatus {
2429
+ ACTIVE = "active"
2430
+ }
2431
+ }
2009
2432
 
2010
2433
  type CompletedValidatorDetails = {
2434
+ txHash: string;
2011
2435
  nodeId: string;
2436
+ subnetId: string;
2012
2437
  amountStaked: string;
2013
- delegationFee: string;
2438
+ delegationFee?: string;
2014
2439
  startTimestamp: number;
2015
2440
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2441
  delegatorCount: number;
2018
2442
  rewards: Rewards;
2443
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2444
  };
2445
+ declare namespace CompletedValidatorDetails {
2446
+ enum validationStatus {
2447
+ COMPLETED = "completed"
2448
+ }
2449
+ }
2020
2450
 
2021
2451
  type PendingValidatorDetails = {
2452
+ txHash: string;
2022
2453
  nodeId: string;
2454
+ subnetId: string;
2023
2455
  amountStaked: string;
2024
- delegationFee: string;
2456
+ delegationFee?: string;
2457
+ startTimestamp: number;
2458
+ endTimestamp: number;
2459
+ validationStatus: PendingValidatorDetails.validationStatus;
2460
+ };
2461
+ declare namespace PendingValidatorDetails {
2462
+ enum validationStatus {
2463
+ PENDING = "pending"
2464
+ }
2465
+ }
2466
+
2467
+ type RemovedValidatorDetails = {
2468
+ txHash: string;
2469
+ nodeId: string;
2470
+ subnetId: string;
2471
+ amountStaked: string;
2472
+ delegationFee?: string;
2025
2473
  startTimestamp: number;
2026
2474
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2475
+ removeTxHash: string;
2476
+ removeTimestamp: number;
2477
+ validationStatus: RemovedValidatorDetails.validationStatus;
2028
2478
  };
2479
+ declare namespace RemovedValidatorDetails {
2480
+ enum validationStatus {
2481
+ REMOVED = "removed"
2482
+ }
2483
+ }
2029
2484
 
2030
2485
  type ListValidatorDetailsResponse = {
2031
2486
  /**
@@ -2033,9 +2488,9 @@ type ListValidatorDetailsResponse = {
2033
2488
  */
2034
2489
  nextPageToken?: string;
2035
2490
  /**
2036
- * The list of Validator Details.
2491
+ * The list of validator Details.
2037
2492
  */
2038
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2493
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2039
2494
  };
2040
2495
 
2041
2496
  declare enum Network {
@@ -2043,6 +2498,23 @@ declare enum Network {
2043
2498
  FUJI = "fuji"
2044
2499
  }
2045
2500
 
2501
+ declare enum ValidationStatusType {
2502
+ COMPLETED = "completed",
2503
+ ACTIVE = "active",
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"
2516
+ }
2517
+
2046
2518
  type XChainAssetDetails = {
2047
2519
  /**
2048
2520
  * Unique ID for an asset.
@@ -2063,15 +2535,15 @@ type XChainAssetDetails = {
2063
2535
  /**
2064
2536
  * Type of asset like SECP256K1 or NFT.
2065
2537
  */
2066
- type: string;
2538
+ type: PrimaryNetworkAssetType;
2067
2539
  /**
2068
2540
  * Timestamp in seconds this asset was created on.
2069
2541
  */
2070
2542
  createdAtTimestamp: number;
2071
2543
  /**
2072
- * Cap represents if an asset can be or is fixed cap.
2544
+ * Cap represents if an asset is a variable or fixed cap asset.
2073
2545
  */
2074
- cap: string;
2546
+ cap: PrimaryNetworkAssetCap;
2075
2547
  };
2076
2548
 
2077
2549
  declare enum XChainId {
@@ -2137,19 +2609,19 @@ declare class PrimaryNetworkService {
2137
2609
  * @returns ListBlockchainsResponse
2138
2610
  * @throws ApiError
2139
2611
  */
2140
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2612
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2141
2613
  /**
2142
2614
  * Either mainnet or a testnet.
2143
2615
  */
2144
2616
  network: Network;
2145
- /**
2146
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2147
- */
2148
- pageSize?: number;
2149
2617
  /**
2150
2618
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2151
2619
  */
2152
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;
2153
2625
  /**
2154
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.
2155
2627
  */
@@ -2161,19 +2633,19 @@ declare class PrimaryNetworkService {
2161
2633
  * @returns ListSubnetsResponse
2162
2634
  * @throws ApiError
2163
2635
  */
2164
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2636
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2165
2637
  /**
2166
2638
  * Either mainnet or a testnet.
2167
2639
  */
2168
2640
  network: Network;
2169
- /**
2170
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2171
- */
2172
- pageSize?: number;
2173
2641
  /**
2174
2642
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2175
2643
  */
2176
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;
2177
2649
  /**
2178
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.
2179
2651
  */
@@ -2185,19 +2657,19 @@ declare class PrimaryNetworkService {
2185
2657
  * @returns ListValidatorDetailsResponse
2186
2658
  * @throws ApiError
2187
2659
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2660
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2189
2661
  /**
2190
2662
  * Either mainnet or a testnet.
2191
2663
  */
2192
2664
  network: Network;
2193
- /**
2194
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2195
- */
2196
- pageSize?: number;
2197
2665
  /**
2198
2666
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2667
  */
2200
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;
2201
2673
  /**
2202
2674
  * A comma separated list of node ids to filter by.
2203
2675
  */
@@ -2211,9 +2683,33 @@ declare class PrimaryNetworkService {
2211
2683
  */
2212
2684
  validationStatus?: ValidationStatusType;
2213
2685
  /**
2214
- * 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.
2215
2711
  */
2216
- minDelegationCapacity?: any;
2712
+ subnetId?: string;
2217
2713
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2714
  /**
2219
2715
  * Get single validator details
@@ -2221,7 +2717,7 @@ declare class PrimaryNetworkService {
2221
2717
  * @returns ListValidatorDetailsResponse
2222
2718
  * @throws ApiError
2223
2719
  */
2224
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2720
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2225
2721
  /**
2226
2722
  * Either mainnet or a testnet.
2227
2723
  */
@@ -2230,14 +2726,14 @@ declare class PrimaryNetworkService {
2230
2726
  * A primary network (P or X chain) nodeId.
2231
2727
  */
2232
2728
  nodeId: string;
2233
- /**
2234
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2235
- */
2236
- pageSize?: number;
2237
2729
  /**
2238
2730
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2239
2731
  */
2240
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;
2241
2737
  /**
2242
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.
2243
2739
  */
@@ -2253,19 +2749,23 @@ declare class PrimaryNetworkService {
2253
2749
  * @returns ListDelegatorDetailsResponse
2254
2750
  * @throws ApiError
2255
2751
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2752
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2753
  /**
2258
2754
  * Either mainnet or a testnet.
2259
2755
  */
2260
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;
2261
2761
  /**
2262
2762
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2263
2763
  */
2264
2764
  pageSize?: number;
2265
2765
  /**
2266
- * 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.
2267
2767
  */
2268
- pageToken?: string;
2768
+ rewardAddresses?: string;
2269
2769
  /**
2270
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.
2271
2771
  */
@@ -2274,10 +2774,6 @@ declare class PrimaryNetworkService {
2274
2774
  * Delegation status of the node.
2275
2775
  */
2276
2776
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2777
  /**
2282
2778
  * A comma separated list of node ids to filter by.
2283
2779
  */
@@ -2316,7 +2812,7 @@ type CChainSharedAssetBalance = {
2316
2812
  /**
2317
2813
  * Type of asset like SECP256K1 or NFT.
2318
2814
  */
2319
- type: string;
2815
+ type: PrimaryNetworkAssetType;
2320
2816
  /**
2321
2817
  * Amount of the asset.
2322
2818
  */
@@ -2351,13 +2847,57 @@ type ListCChainAtomicBalancesResponse = {
2351
2847
  chainInfo: PrimaryNetworkChainInfo;
2352
2848
  };
2353
2849
 
2354
- type PChainAsset = {
2850
+ type Asset = {
2851
+ /**
2852
+ * Unique ID for an asset.
2853
+ */
2355
2854
  assetId: string;
2855
+ /**
2856
+ * Name of this asset.
2857
+ */
2858
+ name: string;
2859
+ /**
2860
+ * Symbol for this asset (max 4 characters).
2861
+ */
2862
+ symbol: string;
2863
+ /**
2864
+ * Denomination of this asset to represent fungibility.
2865
+ */
2866
+ denomination: number;
2867
+ /**
2868
+ * Type of asset like SECP256K1 or NFT.
2869
+ */
2870
+ type: PrimaryNetworkAssetType;
2871
+ /**
2872
+ * Amount of the asset.
2873
+ */
2356
2874
  amount: string;
2357
2875
  };
2358
2876
 
2359
2877
  type PChainSharedAsset = {
2878
+ /**
2879
+ * Unique ID for an asset.
2880
+ */
2360
2881
  assetId: string;
2882
+ /**
2883
+ * Name of this asset.
2884
+ */
2885
+ name: string;
2886
+ /**
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
+ */
2361
2901
  amount: string;
2362
2902
  sharedWithChainId: string;
2363
2903
  status: string;
@@ -2367,27 +2907,27 @@ type PChainBalance = {
2367
2907
  /**
2368
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.
2369
2909
  */
2370
- unlockedUnstaked: Array<PChainAsset>;
2910
+ unlockedUnstaked: Array<Asset>;
2371
2911
  /**
2372
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.
2373
2913
  */
2374
- unlockedStaked: Array<PChainAsset>;
2914
+ unlockedStaked: Array<Asset>;
2375
2915
  /**
2376
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.
2377
2917
  */
2378
- lockedPlatform: Array<PChainAsset>;
2918
+ lockedPlatform: Array<Asset>;
2379
2919
  /**
2380
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.
2381
2921
  */
2382
- lockedStakeable: Array<PChainAsset>;
2922
+ lockedStakeable: Array<Asset>;
2383
2923
  /**
2384
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.
2385
2925
  */
2386
- lockedStaked: Array<PChainAsset>;
2926
+ lockedStaked: Array<Asset>;
2387
2927
  /**
2388
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.
2389
2929
  */
2390
- pendingStaked: Array<PChainAsset>;
2930
+ pendingStaked: Array<Asset>;
2391
2931
  /**
2392
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.
2393
2933
  */
@@ -2423,7 +2963,7 @@ type XChainAssetBalance = {
2423
2963
  /**
2424
2964
  * Type of asset like SECP256K1 or NFT.
2425
2965
  */
2426
- type: string;
2966
+ type: PrimaryNetworkAssetType;
2427
2967
  /**
2428
2968
  * Amount of the asset.
2429
2969
  */
@@ -2451,7 +2991,7 @@ type XChainSharedAssetBalance = {
2451
2991
  /**
2452
2992
  * Type of asset like SECP256K1 or NFT.
2453
2993
  */
2454
- type: string;
2994
+ type: PrimaryNetworkAssetType;
2455
2995
  /**
2456
2996
  * Amount of the asset.
2457
2997
  */
@@ -2526,6 +3066,7 @@ type GetPrimaryNetworkBlockResponse = {
2526
3066
  txCount: number;
2527
3067
  transactions: Array<string>;
2528
3068
  blockSizeBytes: number;
3069
+ currentSupply?: string;
2529
3070
  proposerDetails?: ProposerDetails;
2530
3071
  };
2531
3072
 
@@ -2538,6 +3079,7 @@ type PrimaryNetworkBlock = {
2538
3079
  txCount: number;
2539
3080
  transactions: Array<string>;
2540
3081
  blockSizeBytes: number;
3082
+ currentSupply?: string;
2541
3083
  proposerDetails?: ProposerDetails;
2542
3084
  };
2543
3085
 
@@ -2579,7 +3121,7 @@ declare class PrimaryNetworkBlocksService {
2579
3121
  * @returns ListPrimaryNetworkBlocksResponse
2580
3122
  * @throws ApiError
2581
3123
  */
2582
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3124
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2583
3125
  /**
2584
3126
  * A primary network blockchain id or alias.
2585
3127
  */
@@ -2592,14 +3134,14 @@ declare class PrimaryNetworkBlocksService {
2592
3134
  * A primary network (P or X chain) nodeId.
2593
3135
  */
2594
3136
  nodeId: string;
2595
- /**
2596
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2597
- */
2598
- pageSize?: number;
2599
3137
  /**
2600
3138
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2601
3139
  */
2602
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;
2603
3145
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2604
3146
  /**
2605
3147
  * List latest blocks
@@ -2607,7 +3149,7 @@ declare class PrimaryNetworkBlocksService {
2607
3149
  * @returns ListPrimaryNetworkBlocksResponse
2608
3150
  * @throws ApiError
2609
3151
  */
2610
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3152
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2611
3153
  /**
2612
3154
  * A primary network blockchain id or alias.
2613
3155
  */
@@ -2616,20 +3158,52 @@ declare class PrimaryNetworkBlocksService {
2616
3158
  * Either mainnet or a testnet.
2617
3159
  */
2618
3160
  network: Network;
2619
- /**
2620
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2621
- */
2622
- pageSize?: number;
2623
3161
  /**
2624
3162
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2625
3163
  */
2626
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;
2627
3169
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2628
3170
  }
2629
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
+
2630
3203
  declare enum RewardType {
2631
3204
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
3205
+ DELEGATOR = "DELEGATOR",
3206
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
3207
  }
2634
3208
 
2635
3209
  type HistoricalReward = {
@@ -2645,10 +3219,7 @@ type HistoricalReward = {
2645
3219
  rewardType: RewardType;
2646
3220
  utxoId: string;
2647
3221
  outputIndex: number;
2648
- /**
2649
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2650
- */
2651
- reward: PChainAsset;
3222
+ reward: AssetWithPriceInfo;
2652
3223
  rewardTxHash: string;
2653
3224
  };
2654
3225
 
@@ -2675,7 +3246,7 @@ type PendingReward = {
2675
3246
  /**
2676
3247
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2677
3248
  */
2678
- estimatedReward: PChainAsset;
3249
+ estimatedReward: Asset;
2679
3250
  };
2680
3251
 
2681
3252
  type ListPendingRewardsResponse = {
@@ -2695,23 +3266,27 @@ declare class PrimaryNetworkRewardsService {
2695
3266
  * @returns ListPendingRewardsResponse
2696
3267
  * @throws ApiError
2697
3268
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3269
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2699
3270
  /**
2700
3271
  * Either mainnet or a testnet.
2701
3272
  */
2702
3273
  network: Network;
2703
3274
  /**
2704
- * 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.
2705
3276
  */
2706
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;
2707
3282
  /**
2708
3283
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2709
3284
  */
2710
3285
  pageSize?: number;
2711
3286
  /**
2712
- * 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.
2713
3288
  */
2714
- pageToken?: string;
3289
+ nodeIds?: string;
2715
3290
  /**
2716
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.
2717
3292
  */
@@ -2723,64 +3298,45 @@ declare class PrimaryNetworkRewardsService {
2723
3298
  * @returns ListHistoricalRewardsResponse
2724
3299
  * @throws ApiError
2725
3300
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3301
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2727
3302
  /**
2728
3303
  * Either mainnet or a testnet.
2729
3304
  */
2730
3305
  network: Network;
2731
3306
  /**
2732
- * 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.
2733
3308
  */
2734
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;
2735
3314
  /**
2736
3315
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
3316
  */
2738
3317
  pageSize?: number;
2739
3318
  /**
2740
- * 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.
2741
3320
  */
2742
- pageToken?: string;
3321
+ nodeIds?: string;
2743
3322
  /**
2744
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.
2745
3324
  */
2746
3325
  sortOrder?: SortOrder;
3326
+ /**
3327
+ * The currency that return values should use. Defaults to USD.
3328
+ */
3329
+ currency?: CurrencyCode;
2747
3330
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2748
3331
  }
2749
3332
 
2750
- type Asset = {
2751
- /**
2752
- * Unique ID for an asset.
2753
- */
2754
- assetId: string;
2755
- /**
2756
- * Name of this asset.
2757
- */
2758
- name: string;
2759
- /**
2760
- * Symbol for this asset (max 4 characters).
2761
- */
2762
- symbol: string;
2763
- /**
2764
- * Denomination of this asset to represent fungibility.
2765
- */
2766
- denomination: number;
2767
- /**
2768
- * Type of asset like SECP256K1 or NFT.
2769
- */
2770
- type: string;
2771
- /**
2772
- * Amount of the asset.
2773
- */
2774
- amount: string;
2775
- };
2776
-
2777
3333
  type UtxoCredential = {
2778
3334
  /**
2779
- * Signature provided to consume the output
3335
+ * Signature provided to consume the output.
2780
3336
  */
2781
3337
  signature?: string;
2782
3338
  /**
2783
- * Public key associated with the signature
3339
+ * Public key associated with the signature.
2784
3340
  */
2785
3341
  publicKey?: string;
2786
3342
  };
@@ -2802,66 +3358,66 @@ type EVMInput = {
2802
3358
 
2803
3359
  type Utxo = {
2804
3360
  /**
2805
- * UTXO ID for this output.
3361
+ * Addresses that are eligible to sign the consumption of this output.
2806
3362
  */
2807
- utxoId: string;
3363
+ addresses: Array<string>;
2808
3364
  asset: Asset;
2809
3365
  /**
2810
- * Type of output.
3366
+ * Blockchain ID on which this output is consumed on.
2811
3367
  */
2812
- utxoType: string;
3368
+ consumedOnChainId: string;
2813
3369
  /**
2814
- * Blockchain ID on which this output is created on.
3370
+ * Transaction ID that consumed this output.
2815
3371
  */
2816
- createdOnChainId: string;
3372
+ consumingTxHash?: string;
2817
3373
  /**
2818
- * Blockchain ID on which this output is consumed on.
3374
+ * Blockchain ID on which this output is created on.
2819
3375
  */
2820
- consumedOnChainId: string;
3376
+ createdOnChainId: string;
2821
3377
  /**
2822
- * Transaction ID that created this output.
3378
+ * UTXO ID for this output.
2823
3379
  */
2824
- creationTxHash: string;
3380
+ utxoId: string;
2825
3381
  /**
2826
- * Transaction ID that consumed this output.
3382
+ * Unix timestamp in seconds at which this output was consumed.
2827
3383
  */
2828
- consumingTxHash?: string;
3384
+ consumingTxTimestamp?: number;
2829
3385
  /**
2830
- * Timestamp in seconds this output is consumed.
3386
+ * Transaction ID that created this output.
2831
3387
  */
2832
- consumingTxTimestamp?: number;
3388
+ creationTxHash: string;
2833
3389
  /**
2834
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3390
+ * Credentials that signed the transaction to consume this utxo
2835
3391
  */
2836
- outputIndex: string;
3392
+ credentials?: Array<UtxoCredential>;
2837
3393
  /**
2838
- * Timestamp in seconds this outptut is created on.
3394
+ * Index representing the minting set for the NFT mint output.
2839
3395
  */
2840
- timestamp: number;
3396
+ groupId?: number;
2841
3397
  /**
2842
3398
  * Locktime in seconds after which this output can be consumed.
2843
3399
  */
2844
3400
  locktime: number;
2845
3401
  /**
2846
- * Minimum number of signatures required to consume this output.
3402
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2847
3403
  */
2848
- threshold: number;
3404
+ outputIndex: string;
2849
3405
  /**
2850
- * Addresses that are eligible to sign the consumption of this output.
3406
+ * Hex encoded data for NFT assets.
2851
3407
  */
2852
- addresses: Array<string>;
3408
+ payload?: string;
2853
3409
  /**
2854
- * Hex encoded data for NFT assets
3410
+ * Minimum number of signatures required to consume this output.
2855
3411
  */
2856
- payload?: string;
3412
+ threshold: number;
2857
3413
  /**
2858
- * Index representing the minting set for the NFT mint output
3414
+ * Unix timestamp in seconds at which this outptut was created.
2859
3415
  */
2860
- groupId?: number;
3416
+ timestamp: number;
2861
3417
  /**
2862
- * Credentials that signed the transaction to consume this utxo
3418
+ * Type of output.
2863
3419
  */
2864
- credentials?: Array<UtxoCredential>;
3420
+ utxoType: string;
2865
3421
  };
2866
3422
 
2867
3423
  type CChainExportTransaction = {
@@ -2992,16 +3548,18 @@ type ListCChainAtomicTransactionsResponse = {
2992
3548
 
2993
3549
  declare enum PChainTransactionType {
2994
3550
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
- ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
2997
3551
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3552
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3000
3553
  CREATE_CHAIN_TX = "CreateChainTx",
3001
3554
  CREATE_SUBNET_TX = "CreateSubnetTx",
3002
3555
  IMPORT_TX = "ImportTx",
3003
3556
  EXPORT_TX = "ExportTx",
3004
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",
3005
3563
  UNKNOWN = "UNKNOWN"
3006
3564
  }
3007
3565
 
@@ -3012,29 +3570,48 @@ declare enum UtxoType {
3012
3570
 
3013
3571
  type PChainUtxo = {
3014
3572
  /**
3015
- * An array of P-Chain wallet addresses.
3573
+ * Addresses that are eligible to sign the consumption of this output.
3016
3574
  */
3017
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
+ */
3018
3592
  utxoId: string;
3019
- txHash: string;
3020
- outputIndex: number;
3593
+ /**
3594
+ * @deprecated
3595
+ */
3596
+ amount: string;
3597
+ /**
3598
+ * @deprecated
3599
+ */
3600
+ assetId: string;
3021
3601
  blockNumber: string;
3022
3602
  blockTimestamp: number;
3023
- consumingTxHash?: string;
3024
- consumingBlockTimestamp?: number;
3025
3603
  consumingBlockNumber?: string;
3026
- assetId: string;
3027
- utxoType: UtxoType;
3028
- amount: string;
3029
- stakeableLocktime?: number;
3604
+ consumingBlockTimestamp?: number;
3030
3605
  platformLocktime?: number;
3031
- threshold?: number;
3032
- createdOnChainId: string;
3033
- consumedOnChainId: string;
3606
+ outputIndex: number;
3607
+ rewardType?: RewardType;
3608
+ stakeableLocktime?: number;
3034
3609
  staked?: boolean;
3035
- utxoStartTimestamp?: number;
3610
+ threshold?: number;
3611
+ txHash: string;
3036
3612
  utxoEndTimestamp?: number;
3037
- rewardType?: RewardType;
3613
+ utxoStartTimestamp?: number;
3614
+ utxoType: UtxoType;
3038
3615
  };
3039
3616
 
3040
3617
  type PChainTransaction = {
@@ -3062,15 +3639,15 @@ type PChainTransaction = {
3062
3639
  /**
3063
3640
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3064
3641
  */
3065
- value: Array<PChainAsset>;
3642
+ value: Array<Asset>;
3066
3643
  /**
3067
3644
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3068
3645
  */
3069
- amountBurned: Array<PChainAsset>;
3646
+ amountBurned: Array<Asset>;
3070
3647
  /**
3071
3648
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3072
3649
  */
3073
- amountStaked: Array<PChainAsset>;
3650
+ amountStaked: Array<Asset>;
3074
3651
  /**
3075
3652
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3076
3653
  */
@@ -3096,6 +3673,7 @@ type PChainTransaction = {
3096
3673
  */
3097
3674
  estimatedReward?: string;
3098
3675
  rewardTxHash?: string;
3676
+ rewardAddresses?: Array<string>;
3099
3677
  memo?: string;
3100
3678
  /**
3101
3679
  * Present for RewardValidatorTx
@@ -3112,6 +3690,15 @@ type ListPChainTransactionsResponse = {
3112
3690
  chainInfo: PrimaryNetworkChainInfo;
3113
3691
  };
3114
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
+
3115
3702
  type XChainLinearTransaction = {
3116
3703
  /**
3117
3704
  * Unique ID for this transaction.
@@ -3128,7 +3715,7 @@ type XChainLinearTransaction = {
3128
3715
  /**
3129
3716
  * Type of transaction.
3130
3717
  */
3131
- txType: string;
3718
+ txType: XChainTransactionType;
3132
3719
  /**
3133
3720
  * Hex encoded memo bytes for this transaction.
3134
3721
  */
@@ -3205,7 +3792,7 @@ type XChainNonLinearTransaction = {
3205
3792
  /**
3206
3793
  * Type of transaction.
3207
3794
  */
3208
- txType: string;
3795
+ txType: XChainTransactionType;
3209
3796
  /**
3210
3797
  * Hex encoded memo bytes for this transaction.
3211
3798
  */
@@ -3263,16 +3850,18 @@ declare enum PChainId {
3263
3850
 
3264
3851
  declare enum PrimaryNetworkTxType {
3265
3852
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3268
3853
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3854
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3271
3855
  CREATE_CHAIN_TX = "CreateChainTx",
3272
3856
  CREATE_SUBNET_TX = "CreateSubnetTx",
3273
3857
  IMPORT_TX = "ImportTx",
3274
3858
  EXPORT_TX = "ExportTx",
3275
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",
3276
3865
  UNKNOWN = "UNKNOWN",
3277
3866
  BASE_TX = "BaseTx",
3278
3867
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -3304,11 +3893,15 @@ declare class PrimaryNetworkTransactionsService {
3304
3893
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3894
  /**
3306
3895
  * List latest transactions
3307
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3896
+ * Lists the latest transactions on one of the Primary Network chains.
3897
+ *
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.
3899
+ *
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.
3308
3901
  * @returns any
3309
3902
  * @throws ApiError
3310
3903
  */
3311
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3904
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3312
3905
  /**
3313
3906
  * A primary network blockchain id or alias.
3314
3907
  */
@@ -3333,14 +3926,14 @@ declare class PrimaryNetworkTransactionsService {
3333
3926
  * Query param for retrieving items before a specific timestamp.
3334
3927
  */
3335
3928
  endTimestamp?: number;
3336
- /**
3337
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3338
- */
3339
- pageSize?: number;
3340
3929
  /**
3341
3930
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3342
3931
  */
3343
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;
3344
3937
  /**
3345
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.
3346
3939
  */
@@ -3352,7 +3945,7 @@ declare class PrimaryNetworkTransactionsService {
3352
3945
  * @returns ListPChainTransactionsResponse
3353
3946
  * @throws ApiError
3354
3947
  */
3355
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3948
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3356
3949
  /**
3357
3950
  * A primary network blockchain id or alias.
3358
3951
  */
@@ -3377,14 +3970,14 @@ declare class PrimaryNetworkTransactionsService {
3377
3970
  * Query param for retrieving items before a specific timestamp.
3378
3971
  */
3379
3972
  endTimestamp?: number;
3380
- /**
3381
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3382
- */
3383
- pageSize?: number;
3384
3973
  /**
3385
3974
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3386
3975
  */
3387
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;
3388
3981
  /**
3389
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.
3390
3983
  */
@@ -3396,7 +3989,7 @@ declare class PrimaryNetworkTransactionsService {
3396
3989
  * @returns ListXChainTransactionsResponse
3397
3990
  * @throws ApiError
3398
3991
  */
3399
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3992
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3400
3993
  /**
3401
3994
  * A primary network blockchain id or alias.
3402
3995
  */
@@ -3421,14 +4014,14 @@ declare class PrimaryNetworkTransactionsService {
3421
4014
  * Query param for retrieving items before a specific timestamp.
3422
4015
  */
3423
4016
  endTimestamp?: number;
3424
- /**
3425
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3426
- */
3427
- pageSize?: number;
3428
4017
  /**
3429
4018
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3430
4019
  */
3431
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;
3432
4025
  }): CancelablePromise<ListXChainTransactionsResponse>;
3433
4026
  }
3434
4027
 
@@ -3459,7 +4052,7 @@ declare class PrimaryNetworkUtxOsService {
3459
4052
  * @returns any
3460
4053
  * @throws ApiError
3461
4054
  */
3462
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4055
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3463
4056
  /**
3464
4057
  * A primary network blockchain id or alias.
3465
4058
  */
@@ -3472,14 +4065,14 @@ declare class PrimaryNetworkUtxOsService {
3472
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".
3473
4066
  */
3474
4067
  addresses?: string;
3475
- /**
3476
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3477
- */
3478
- pageSize?: number;
3479
4068
  /**
3480
4069
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3481
4070
  */
3482
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;
3483
4076
  /**
3484
4077
  * Asset ID for any asset (only applicable X-Chain)
3485
4078
  */
@@ -3524,7 +4117,7 @@ declare class PrimaryNetworkVerticesService {
3524
4117
  * @returns ListXChainVerticesResponse
3525
4118
  * @throws ApiError
3526
4119
  */
3527
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4120
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3528
4121
  /**
3529
4122
  * A primary network blockchain id or alias.
3530
4123
  */
@@ -3533,14 +4126,14 @@ declare class PrimaryNetworkVerticesService {
3533
4126
  * Either mainnet or a testnet.
3534
4127
  */
3535
4128
  network: Network;
3536
- /**
3537
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3538
- */
3539
- pageSize?: number;
3540
4129
  /**
3541
4130
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3542
4131
  */
3543
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;
3544
4137
  }): CancelablePromise<ListXChainVerticesResponse>;
3545
4138
  /**
3546
4139
  * Get vertex
@@ -3568,7 +4161,7 @@ declare class PrimaryNetworkVerticesService {
3568
4161
  * @returns ListXChainVerticesResponse
3569
4162
  * @throws ApiError
3570
4163
  */
3571
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4164
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3572
4165
  /**
3573
4166
  * The height of a vertex.
3574
4167
  */
@@ -3581,28 +4174,204 @@ declare class PrimaryNetworkVerticesService {
3581
4174
  * Either mainnet or a testnet.
3582
4175
  */
3583
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;
3584
4181
  /**
3585
4182
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3586
4183
  */
3587
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, }: {
3588
4338
  /**
3589
4339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3590
4340
  */
3591
4341
  pageToken?: string;
3592
4342
  /**
3593
- * 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.
3594
4344
  */
3595
- sortOrder?: SortOrder;
3596
- }): 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>;
3597
4363
  }
3598
4364
 
3599
4365
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3600
4366
  declare class Glacier {
4367
+ readonly default: DefaultService;
3601
4368
  readonly evmBalances: EvmBalancesService;
3602
4369
  readonly evmBlocks: EvmBlocksService;
3603
4370
  readonly evmChains: EvmChainsService;
4371
+ readonly evmContracts: EvmContractsService;
3604
4372
  readonly evmTransactions: EvmTransactionsService;
3605
4373
  readonly healthCheck: HealthCheckService;
4374
+ readonly nfTs: NfTsService;
3606
4375
  readonly operations: OperationsService;
3607
4376
  readonly primaryNetwork: PrimaryNetworkService;
3608
4377
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3611,6 +4380,7 @@ declare class Glacier {
3611
4380
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
3612
4381
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
3613
4382
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4383
+ readonly teleporter: TeleporterService;
3614
4384
  readonly request: BaseHttpRequest;
3615
4385
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3616
4386
  }
@@ -3632,4 +4402,4 @@ declare class ApiError extends Error {
3632
4402
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
4403
  }
3634
4404
 
3635
- 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, 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, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, 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 };