@avalabs/glacier-sdk 2.8.0-canary.6c3da76.0 → 2.8.0-canary.6d241b5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/index.d.ts +1246 -603
  2. package/dist/index.js +412 -104
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -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/Erc1155Contract.d.ts +2 -1
  28. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  29. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  30. package/esm/generated/models/EventType.d.ts +5 -0
  31. package/esm/generated/models/EventType.js +6 -0
  32. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  33. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  34. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  35. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  36. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  37. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  38. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  39. package/esm/generated/models/PChainBalance.d.ts +7 -7
  40. package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
  41. package/esm/generated/models/PChainTransaction.d.ts +10 -4
  42. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  43. package/esm/generated/models/PChainTransactionType.js +8 -4
  44. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  45. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  46. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  47. package/esm/generated/models/PendingReward.d.ts +2 -2
  48. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  49. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  50. package/esm/generated/models/PricingProviders.d.ts +5 -0
  51. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  52. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  53. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  54. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  55. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  56. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  57. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  58. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  59. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  60. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  61. package/esm/generated/models/RewardType.d.ts +2 -1
  62. package/esm/generated/models/RewardType.js +1 -0
  63. package/esm/generated/models/Rewards.d.ts +2 -0
  64. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  65. package/esm/generated/models/Subnet.d.ts +17 -0
  66. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  67. package/esm/generated/models/UnknownContract.d.ts +0 -1
  68. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  69. package/esm/generated/models/Utxo.d.ts +28 -28
  70. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  71. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  72. package/esm/generated/models/ValidationStatusType.js +1 -0
  73. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  74. package/esm/generated/models/WebhookResponse.d.ts +17 -0
  75. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  76. package/esm/generated/models/WebhookStatus.js +7 -0
  77. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  78. package/esm/generated/models/WebhookStatusType.js +7 -0
  79. package/esm/generated/models/XChainAssetBalance.d.ts +3 -1
  80. package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
  81. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  82. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  83. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
  84. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  85. package/esm/generated/models/XChainTransactionType.js +11 -0
  86. package/esm/generated/services/DefaultService.d.ts +74 -0
  87. package/esm/generated/services/DefaultService.js +61 -0
  88. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  89. package/esm/generated/services/EvmBalancesService.js +8 -8
  90. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  91. package/esm/generated/services/EvmBlocksService.js +4 -4
  92. package/esm/generated/services/EvmChainsService.d.ts +1 -1
  93. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  94. package/esm/generated/services/EvmContractsService.js +36 -0
  95. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  96. package/esm/generated/services/EvmTransactionsService.js +33 -33
  97. package/esm/generated/services/NfTsService.d.ts +76 -0
  98. package/esm/generated/services/NfTsService.js +56 -0
  99. package/esm/generated/services/OperationsService.d.ts +11 -11
  100. package/esm/generated/services/OperationsService.js +10 -10
  101. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  102. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  103. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  104. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  105. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  106. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  107. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -16
  108. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  109. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  110. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  111. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  112. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  113. package/esm/index.d.ts +26 -1
  114. package/esm/index.js +20 -0
  115. package/package.json +2 -2
  116. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts CHANGED
@@ -60,6 +60,130 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ type AddressActivityMetadata = {
64
+ /**
65
+ * Ethereum address for the address_activity event type
66
+ */
67
+ address: string;
68
+ /**
69
+ * Array of hexadecimal strings of the event signatures.
70
+ */
71
+ eventSignatures?: Array<string>;
72
+ };
73
+
74
+ declare enum EventType {
75
+ ADDRESS_ACTIVITY = "address_activity"
76
+ }
77
+
78
+ declare enum WebhookStatusType {
79
+ ACTIVE = "active",
80
+ INACTIVE = "inactive"
81
+ }
82
+
83
+ type WebhookResponse = {
84
+ id: string;
85
+ eventType: EventType;
86
+ metadata: AddressActivityMetadata;
87
+ url: string;
88
+ chainId: string;
89
+ status: WebhookStatusType;
90
+ createdAt: number;
91
+ name: string;
92
+ description: string;
93
+ };
94
+
95
+ type ListWebhooksResponse = {
96
+ /**
97
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
98
+ */
99
+ nextPageToken?: string;
100
+ webhooks: Array<WebhookResponse>;
101
+ };
102
+
103
+ type RegisterWebhookRequest = {
104
+ url: string;
105
+ chainId: string;
106
+ /**
107
+ * The type of event for the webhook
108
+ */
109
+ eventType: EventType;
110
+ metadata: AddressActivityMetadata;
111
+ };
112
+
113
+ type SharedSecretsResponse = {
114
+ secret: string;
115
+ };
116
+
117
+ declare enum WebhookStatus {
118
+ ACTIVE = "active",
119
+ INACTIVE = "inactive"
120
+ }
121
+
122
+ declare class DefaultService {
123
+ readonly httpRequest: BaseHttpRequest;
124
+ constructor(httpRequest: BaseHttpRequest);
125
+ /**
126
+ * @returns any
127
+ * @throws ApiError
128
+ */
129
+ mediaControllerUploadImage(): CancelablePromise<any>;
130
+ /**
131
+ * Register a webhook
132
+ * Registers a new webhook.
133
+ * @returns WebhookResponse
134
+ * @throws ApiError
135
+ */
136
+ registerWebhook({ requestBody, }: {
137
+ requestBody: RegisterWebhookRequest;
138
+ }): CancelablePromise<WebhookResponse>;
139
+ /**
140
+ * List webhooks
141
+ * Lists webhooks for the user.
142
+ * @returns ListWebhooksResponse
143
+ * @throws ApiError
144
+ */
145
+ listWebhooks({ pageToken, pageSize, status, }: {
146
+ /**
147
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
148
+ */
149
+ pageToken?: string;
150
+ /**
151
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
152
+ */
153
+ pageSize?: number;
154
+ /**
155
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
156
+ */
157
+ status?: WebhookStatus;
158
+ }): CancelablePromise<ListWebhooksResponse>;
159
+ /**
160
+ * Deactivate a webhook
161
+ * Deactivates a webhook by ID.
162
+ * @returns WebhookResponse
163
+ * @throws ApiError
164
+ */
165
+ deactivateWebhook({ id, }: {
166
+ /**
167
+ * The webhook identifier.
168
+ */
169
+ id: string;
170
+ }): CancelablePromise<WebhookResponse>;
171
+ /**
172
+ * Generate a shared secret
173
+ * Generates a new shared secret.
174
+ * @returns SharedSecretsResponse
175
+ * @throws ApiError
176
+ */
177
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
+ /**
179
+ * Get a shared secret
180
+ * Get a previously generated shared secret.
181
+ * @returns SharedSecretsResponse
182
+ * @throws ApiError
183
+ */
184
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
185
+ }
186
+
63
187
  declare enum CurrencyCode {
64
188
  USD = "usd",
65
189
  EUR = "eur",
@@ -335,7 +459,7 @@ declare class EvmBalancesService {
335
459
  */
336
460
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
337
461
  /**
338
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
462
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
339
463
  */
340
464
  chainId: string;
341
465
  /**
@@ -361,9 +485,9 @@ declare class EvmBalancesService {
361
485
  * @returns ListErc20BalancesResponse
362
486
  * @throws ApiError
363
487
  */
364
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
488
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
365
489
  /**
366
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
490
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
367
491
  */
368
492
  chainId: string;
369
493
  /**
@@ -374,14 +498,14 @@ declare class EvmBalancesService {
374
498
  * The block number, if not defined the block number will be the latest block.
375
499
  */
376
500
  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
501
  /**
382
502
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
383
503
  */
384
504
  pageToken?: string;
505
+ /**
506
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
507
+ */
508
+ pageSize?: number;
385
509
  /**
386
510
  * A comma separated list of contract addresses to filter by.
387
511
  */
@@ -399,23 +523,23 @@ declare class EvmBalancesService {
399
523
  * @returns ListErc721BalancesResponse
400
524
  * @throws ApiError
401
525
  */
402
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
526
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
403
527
  /**
404
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
528
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
405
529
  */
406
530
  chainId: string;
407
531
  /**
408
532
  * A wallet address.
409
533
  */
410
534
  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
535
  /**
416
536
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
417
537
  */
418
538
  pageToken?: string;
539
+ /**
540
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
541
+ */
542
+ pageSize?: number;
419
543
  /**
420
544
  * A contract addresses to filter by.
421
545
  */
@@ -431,9 +555,9 @@ declare class EvmBalancesService {
431
555
  * @returns ListErc1155BalancesResponse
432
556
  * @throws ApiError
433
557
  */
434
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
558
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
435
559
  /**
436
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
560
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
437
561
  */
438
562
  chainId: string;
439
563
  /**
@@ -444,14 +568,14 @@ declare class EvmBalancesService {
444
568
  * The block number, if not defined the block number will be the latest block.
445
569
  */
446
570
  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
571
  /**
452
572
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
453
573
  */
454
574
  pageToken?: string;
575
+ /**
576
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
577
+ */
578
+ pageSize?: number;
455
579
  /**
456
580
  * A contract addresses to filter by.
457
581
  */
@@ -465,23 +589,23 @@ declare class EvmBalancesService {
465
589
  * @returns ListCollectibleBalancesResponse
466
590
  * @throws ApiError
467
591
  */
468
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
592
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
469
593
  /**
470
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
594
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
471
595
  */
472
596
  chainId: string;
473
597
  /**
474
598
  * A wallet address.
475
599
  */
476
600
  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
601
  /**
482
602
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
483
603
  */
484
604
  pageToken?: string;
605
+ /**
606
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
607
+ */
608
+ pageSize?: number;
485
609
  /**
486
610
  * A contract addresses to filter by.
487
611
  */
@@ -594,19 +718,19 @@ declare class EvmBlocksService {
594
718
  * @returns ListEvmBlocksResponse
595
719
  * @throws ApiError
596
720
  */
597
- getLatestBlocks({ chainId, pageSize, pageToken, }: {
721
+ getLatestBlocks({ chainId, pageToken, pageSize, }: {
598
722
  /**
599
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
600
724
  */
601
725
  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
726
  /**
607
727
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
608
728
  */
609
729
  pageToken?: string;
730
+ /**
731
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
732
+ */
733
+ pageSize?: number;
610
734
  }): CancelablePromise<ListEvmBlocksResponse>;
611
735
  /**
612
736
  * Get block
@@ -616,7 +740,7 @@ declare class EvmBlocksService {
616
740
  */
617
741
  getBlock({ chainId, blockId, }: {
618
742
  /**
619
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
743
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
620
744
  */
621
745
  chainId: string;
622
746
  /**
@@ -680,6 +804,7 @@ type GetChainResponse = {
680
804
  utilityAddresses?: UtilityAddresses;
681
805
  networkToken: NetworkToken;
682
806
  chainLogoUri?: string;
807
+ private?: boolean;
683
808
  };
684
809
 
685
810
  type ChainInfo = {
@@ -701,6 +826,7 @@ type ChainInfo = {
701
826
  utilityAddresses?: UtilityAddresses;
702
827
  networkToken: NetworkToken;
703
828
  chainLogoUri?: string;
829
+ private?: boolean;
704
830
  };
705
831
 
706
832
  type ListChainsResponse = {
@@ -735,446 +861,592 @@ declare class EvmChainsService {
735
861
  */
736
862
  getChainInfo({ chainId, }: {
737
863
  /**
738
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
864
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
739
865
  */
740
866
  chainId: string;
741
867
  }): CancelablePromise<GetChainResponse>;
742
868
  }
743
869
 
744
- type Erc1155Token = {
870
+ type ImageAsset = {
871
+ assetId?: string;
745
872
  /**
746
- * A wallet or contract address in mixed-case checksum encoding.
873
+ * OUTPUT ONLY
747
874
  */
748
- address: string;
749
- ercType: Erc1155Token.ercType;
750
- tokenId: string;
751
- tokenUri: string;
752
- metadata: Erc1155TokenMetadata;
875
+ imageUri?: string;
753
876
  };
754
- declare namespace Erc1155Token {
755
- enum ercType {
756
- ERC_1155 = "ERC-1155"
757
- }
877
+
878
+ type PricingProviders = {
879
+ coingeckoCoinId?: string;
880
+ };
881
+
882
+ declare enum ResourceLinkType {
883
+ BLOG = "Blog",
884
+ COIN_GECKO = "CoinGecko",
885
+ COIN_MARKET_CAP = "CoinMarketCap",
886
+ DISCORD = "Discord",
887
+ DOCUMENTATION = "Documentation",
888
+ FACEBOOK = "Facebook",
889
+ GITHUB = "Github",
890
+ INSTAGRAM = "Instagram",
891
+ LINKED_IN = "LinkedIn",
892
+ MEDIUM = "Medium",
893
+ REDDIT = "Reddit",
894
+ SUPPORT = "Support",
895
+ TELEGRAM = "Telegram",
896
+ TIK_TOK = "TikTok",
897
+ TWITTER = "Twitter",
898
+ WEBSITE = "Website",
899
+ WHITEPAPER = "Whitepaper",
900
+ YOUTUBE = "Youtube"
758
901
  }
759
902
 
760
- type RichAddress = {
903
+ type ResourceLink = {
904
+ type: ResourceLinkType;
905
+ url: string;
906
+ };
907
+
908
+ type ContractSubmissionErc1155 = {
909
+ description?: string;
910
+ officialSite?: string;
911
+ email?: string;
912
+ logoAsset?: ImageAsset;
913
+ bannerAsset?: ImageAsset;
914
+ color?: string;
915
+ resourceLinks?: Array<ResourceLink>;
916
+ tags?: Array<string>;
761
917
  /**
762
918
  * The contract name.
763
919
  */
764
- name?: string;
920
+ name: string;
921
+ ercType: ContractSubmissionErc1155.ercType;
765
922
  /**
766
923
  * The contract symbol.
767
924
  */
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;
925
+ symbol: string;
926
+ pricingProviders?: PricingProviders;
789
927
  };
928
+ declare namespace ContractSubmissionErc1155 {
929
+ enum ercType {
930
+ ERC_1155 = "ERC-1155"
931
+ }
932
+ }
790
933
 
791
- type Erc20Token = {
792
- /**
793
- * A wallet or contract address in mixed-case checksum encoding.
794
- */
795
- address: string;
934
+ type ContractSubmissionErc20 = {
935
+ description?: string;
936
+ officialSite?: string;
937
+ email?: string;
938
+ logoAsset?: ImageAsset;
939
+ bannerAsset?: ImageAsset;
940
+ color?: string;
941
+ resourceLinks?: Array<ResourceLink>;
942
+ tags?: Array<string>;
796
943
  /**
797
944
  * The contract name.
798
945
  */
799
946
  name: string;
947
+ ercType: ContractSubmissionErc20.ercType;
800
948
  /**
801
949
  * The contract symbol.
802
950
  */
803
951
  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;
952
+ pricingProviders?: PricingProviders;
817
953
  };
818
- declare namespace Erc20Token {
954
+ declare namespace ContractSubmissionErc20 {
819
955
  enum ercType {
820
956
  ERC_20 = "ERC-20"
821
957
  }
822
958
  }
823
959
 
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;
960
+ type ContractSubmissionErc721 = {
961
+ description?: string;
962
+ officialSite?: string;
963
+ email?: string;
964
+ logoAsset?: ImageAsset;
965
+ bannerAsset?: ImageAsset;
966
+ color?: string;
967
+ resourceLinks?: Array<ResourceLink>;
968
+ tags?: Array<string>;
837
969
  /**
838
970
  * The contract name.
839
971
  */
840
972
  name: string;
973
+ ercType: ContractSubmissionErc721.ercType;
841
974
  /**
842
975
  * The contract symbol.
843
976
  */
844
977
  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
978
  };
854
- declare namespace Erc721Token {
979
+ declare namespace ContractSubmissionErc721 {
855
980
  enum ercType {
856
981
  ERC_721 = "ERC-721"
857
982
  }
858
983
  }
859
984
 
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 = {
985
+ type ContractSubmissionUnknown = {
986
+ description?: string;
987
+ officialSite?: string;
988
+ email?: string;
989
+ logoAsset?: ImageAsset;
990
+ bannerAsset?: ImageAsset;
991
+ color?: string;
992
+ resourceLinks?: Array<ResourceLink>;
993
+ tags?: Array<string>;
874
994
  /**
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.
995
+ * The contract name.
876
996
  */
877
- callType: TransactionMethodType;
997
+ name: string;
998
+ ercType: ContractSubmissionUnknown.ercType;
999
+ };
1000
+ declare namespace ContractSubmissionUnknown {
1001
+ enum ercType {
1002
+ UNKNOWN = "UNKNOWN"
1003
+ }
1004
+ }
1005
+
1006
+ type ContractSubmissionBody = {
1007
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
1008
+ };
1009
+
1010
+ type ContractDeploymentDetails = {
1011
+ txHash: string;
878
1012
  /**
879
- * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1013
+ * The address that initiated the transaction which deployed this contract.
880
1014
  */
881
- methodHash: string;
1015
+ deployerAddress: string;
882
1016
  /**
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'.
1017
+ * 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
1018
  */
885
- methodName?: string;
1019
+ deployerContractAddress?: string;
886
1020
  };
887
1021
 
888
- type FullNativeTransactionDetails = {
1022
+ type Erc1155Contract = {
889
1023
  /**
890
- * The block number on the chain.
1024
+ * The contract name.
891
1025
  */
892
- blockNumber: string;
1026
+ name?: string;
1027
+ description?: string;
1028
+ officialSite?: string;
1029
+ email?: string;
1030
+ logoAsset?: ImageAsset;
1031
+ bannerAsset?: ImageAsset;
1032
+ color?: string;
1033
+ resourceLinks?: Array<ResourceLink>;
1034
+ tags?: Array<string>;
893
1035
  /**
894
- * The block finality timestamp.
1036
+ * A wallet or contract address in mixed-case checksum encoding.
895
1037
  */
896
- blockTimestamp: number;
1038
+ address: string;
1039
+ deploymentDetails: ContractDeploymentDetails;
1040
+ ercType: Erc1155Contract.ercType;
897
1041
  /**
898
- * The block hash identifier.
1042
+ * The contract symbol.
899
1043
  */
900
- blockHash: string;
1044
+ symbol?: string;
1045
+ pricingProviders?: PricingProviders;
1046
+ };
1047
+ declare namespace Erc1155Contract {
1048
+ enum ercType {
1049
+ ERC_1155 = "ERC-1155"
1050
+ }
1051
+ }
1052
+
1053
+ type Erc20Contract = {
901
1054
  /**
902
- * The index at which the transaction occured in the block (0-indexed).
1055
+ * The contract name.
903
1056
  */
904
- blockIndex: number;
1057
+ name?: string;
1058
+ description?: string;
1059
+ officialSite?: string;
1060
+ email?: string;
1061
+ logoAsset?: ImageAsset;
1062
+ bannerAsset?: ImageAsset;
1063
+ color?: string;
1064
+ resourceLinks?: Array<ResourceLink>;
1065
+ tags?: Array<string>;
905
1066
  /**
906
- * The transaction hash identifier.
1067
+ * A wallet or contract address in mixed-case checksum encoding.
907
1068
  */
908
- txHash: string;
1069
+ address: string;
1070
+ deploymentDetails: ContractDeploymentDetails;
1071
+ ercType: Erc20Contract.ercType;
909
1072
  /**
910
- * The transaction status, which is either 0 (failed) or 1 (successful).
1073
+ * The contract symbol.
911
1074
  */
912
- txStatus: string;
1075
+ symbol?: string;
913
1076
  /**
914
- * The transaction type.
1077
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
915
1078
  */
916
- txType: number;
1079
+ decimals: number;
1080
+ pricingProviders?: PricingProviders;
1081
+ };
1082
+ declare namespace Erc20Contract {
1083
+ enum ercType {
1084
+ ERC_20 = "ERC-20"
1085
+ }
1086
+ }
1087
+
1088
+ type Erc721Contract = {
917
1089
  /**
918
- * The gas limit set for the transaction.
1090
+ * The contract name.
919
1091
  */
920
- gasLimit: string;
1092
+ name?: string;
1093
+ description?: string;
1094
+ officialSite?: string;
1095
+ email?: string;
1096
+ logoAsset?: ImageAsset;
1097
+ bannerAsset?: ImageAsset;
1098
+ color?: string;
1099
+ resourceLinks?: Array<ResourceLink>;
1100
+ tags?: Array<string>;
921
1101
  /**
922
- * The amount of gas used.
1102
+ * A wallet or contract address in mixed-case checksum encoding.
923
1103
  */
924
- gasUsed: string;
1104
+ address: string;
1105
+ deploymentDetails: ContractDeploymentDetails;
1106
+ ercType: Erc721Contract.ercType;
925
1107
  /**
926
- * The gas price denominated by the number of decimals of the native token.
1108
+ * The contract symbol.
927
1109
  */
928
- gasPrice: string;
1110
+ symbol?: string;
1111
+ };
1112
+ declare namespace Erc721Contract {
1113
+ enum ercType {
1114
+ ERC_721 = "ERC-721"
1115
+ }
1116
+ }
1117
+
1118
+ type UnknownContract = {
929
1119
  /**
930
- * The nonce used by the sender of the transaction.
1120
+ * The contract name.
931
1121
  */
932
- nonce: string;
933
- from: RichAddress;
934
- to: RichAddress;
935
- method?: Method;
936
- value: string;
1122
+ name?: string;
1123
+ description?: string;
1124
+ officialSite?: string;
1125
+ email?: string;
1126
+ logoAsset?: ImageAsset;
1127
+ bannerAsset?: ImageAsset;
1128
+ color?: string;
1129
+ resourceLinks?: Array<ResourceLink>;
1130
+ tags?: Array<string>;
937
1131
  /**
938
- * The data sent for the transaction.
1132
+ * A wallet or contract address in mixed-case checksum encoding.
939
1133
  */
940
- input: string;
941
- baseFeePerGas: string;
942
- maxFeePerGas?: string;
943
- maxPriorityFeePerGas?: string;
1134
+ address: string;
1135
+ deploymentDetails: ContractDeploymentDetails;
1136
+ ercType: UnknownContract.ercType;
944
1137
  };
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"
1138
+ declare namespace UnknownContract {
1139
+ enum ercType {
1140
+ UNKNOWN = "UNKNOWN"
1141
+ }
954
1142
  }
955
1143
 
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;
1144
+ type UpdateContractResponse = {
1145
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
967
1146
  };
968
1147
 
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
1148
+ declare class EvmContractsService {
1149
+ readonly httpRequest: BaseHttpRequest;
1150
+ constructor(httpRequest: BaseHttpRequest);
971
1151
  /**
972
- * The current token price, if available.
1152
+ * Get contract metadata
1153
+ * Gets metadata about the contract at the given address.
1154
+ * @returns any
1155
+ * @throws ApiError
973
1156
  */
974
- currentPrice?: Money;
1157
+ getContractMetadata({ chainId, address, }: {
1158
+ /**
1159
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1160
+ */
1161
+ chainId: string;
1162
+ /**
1163
+ * Contract address on the relevant chain.
1164
+ */
1165
+ address: string;
1166
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
975
1167
  /**
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.
1168
+ * Update contract information
1169
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1170
+ * @returns UpdateContractResponse
1171
+ * @throws ApiError
977
1172
  */
978
- historicalPrice?: Money;
1173
+ updateContractInfo({ chainId, address, requestBody, }: {
1174
+ /**
1175
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1176
+ */
1177
+ chainId: string;
1178
+ /**
1179
+ * Contract address on the relevant chain.
1180
+ */
1181
+ address: string;
1182
+ requestBody: ContractSubmissionBody;
1183
+ }): CancelablePromise<UpdateContractResponse>;
1184
+ }
1185
+
1186
+ type Erc1155Token = {
1187
+ /**
1188
+ * A wallet or contract address in mixed-case checksum encoding.
1189
+ */
1190
+ address: string;
1191
+ ercType: Erc1155Token.ercType;
1192
+ tokenId: string;
1193
+ tokenUri: string;
1194
+ metadata: Erc1155TokenMetadata;
979
1195
  };
1196
+ declare namespace Erc1155Token {
1197
+ enum ercType {
1198
+ ERC_1155 = "ERC-1155"
1199
+ }
1200
+ }
980
1201
 
981
- type GetTransactionResponse = {
1202
+ type RichAddress = {
982
1203
  /**
983
- * The list of ERC-20 transfers.
1204
+ * The contract name.
984
1205
  */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
1206
+ name?: string;
986
1207
  /**
987
- * The list of ERC-721 transfers.
1208
+ * The contract symbol.
988
1209
  */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
1210
+ symbol?: string;
990
1211
  /**
991
- * The list of ERC-1155 transfers.
1212
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
992
1213
  */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
1214
+ decimals?: number;
994
1215
  /**
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.
1216
+ * The logo uri for the address.
996
1217
  */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1218
+ logoUri?: string;
1219
+ /**
1220
+ * A wallet or contract address in mixed-case checksum encoding.
1221
+ */
1222
+ address: string;
1000
1223
  };
1001
1224
 
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1225
+ type Erc1155TransferDetails = {
1226
+ from: RichAddress;
1227
+ to: RichAddress;
1228
+ logIndex: number;
1229
+ value: string;
1230
+ erc1155Token: Erc1155Token;
1231
+ };
1232
+
1233
+ type Erc20Token = {
1004
1234
  /**
1005
- * The address that initiated the transaction which deployed this contract.
1235
+ * A wallet or contract address in mixed-case checksum encoding.
1006
1236
  */
1007
- deployerAddress: string;
1237
+ address: string;
1008
1238
  /**
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.
1239
+ * The contract name.
1010
1240
  */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1015
- assetId?: string;
1241
+ name: string;
1016
1242
  /**
1017
- * OUTPUT ONLY
1243
+ * The contract symbol.
1018
1244
  */
1019
- imageUri?: string;
1245
+ symbol: string;
1246
+ /**
1247
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1248
+ */
1249
+ decimals: number;
1250
+ /**
1251
+ * The logo uri for the address.
1252
+ */
1253
+ logoUri?: string;
1254
+ ercType: Erc20Token.ercType;
1255
+ /**
1256
+ * The token price, if available.
1257
+ */
1258
+ price?: Money;
1020
1259
  };
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"
1260
+ declare namespace Erc20Token {
1261
+ enum ercType {
1262
+ ERC_20 = "ERC-20"
1263
+ }
1041
1264
  }
1042
1265
 
1043
- type ResourceLink = {
1044
- type: ResourceLinkType;
1045
- url: string;
1266
+ type Erc20TransferDetails = {
1267
+ from: RichAddress;
1268
+ to: RichAddress;
1269
+ logIndex: number;
1270
+ value: string;
1271
+ erc20Token: Erc20Token;
1046
1272
  };
1047
1273
 
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>;
1274
+ type Erc721Token = {
1062
1275
  /**
1063
1276
  * A wallet or contract address in mixed-case checksum encoding.
1064
1277
  */
1065
1278
  address: string;
1066
- deploymentDetails: ContractDeploymentDetails;
1067
- ercType: Erc1155Contract.ercType;
1279
+ /**
1280
+ * The contract name.
1281
+ */
1282
+ name: string;
1068
1283
  /**
1069
1284
  * The contract symbol.
1070
1285
  */
1071
- symbol?: string;
1286
+ symbol: string;
1287
+ ercType: Erc721Token.ercType;
1288
+ tokenId: string;
1289
+ tokenUri: string;
1290
+ metadata: Erc721TokenMetadata;
1291
+ /**
1292
+ * A wallet or contract address in mixed-case checksum encoding.
1293
+ */
1294
+ ownerAddress?: string;
1072
1295
  };
1073
- declare namespace Erc1155Contract {
1296
+ declare namespace Erc721Token {
1074
1297
  enum ercType {
1075
- ERC_1155 = "ERC-1155"
1298
+ ERC_721 = "ERC-721"
1076
1299
  }
1077
1300
  }
1078
1301
 
1079
- type Erc20Contract = {
1302
+ type Erc721TransferDetails = {
1303
+ from: RichAddress;
1304
+ to: RichAddress;
1305
+ logIndex: number;
1306
+ erc721Token: Erc721Token;
1307
+ };
1308
+
1309
+ declare enum TransactionMethodType {
1310
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
1311
+ CONTRACT_CALL = "CONTRACT_CALL",
1312
+ CONTRACT_CREATION = "CONTRACT_CREATION"
1313
+ }
1314
+
1315
+ type Method = {
1080
1316
  /**
1081
- * The contract name.
1317
+ * 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
1318
  */
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>;
1319
+ callType: TransactionMethodType;
1320
+ /**
1321
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
1322
+ */
1323
+ methodHash: string;
1324
+ /**
1325
+ * 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'.
1326
+ */
1327
+ methodName?: string;
1328
+ };
1329
+
1330
+ type FullNativeTransactionDetails = {
1331
+ /**
1332
+ * The block number on the chain.
1333
+ */
1334
+ blockNumber: string;
1335
+ /**
1336
+ * The block finality timestamp.
1337
+ */
1338
+ blockTimestamp: number;
1339
+ /**
1340
+ * The block hash identifier.
1341
+ */
1342
+ blockHash: string;
1343
+ /**
1344
+ * The index at which the transaction occured in the block (0-indexed).
1345
+ */
1346
+ blockIndex: number;
1347
+ /**
1348
+ * The transaction hash identifier.
1349
+ */
1350
+ txHash: string;
1351
+ /**
1352
+ * The transaction status, which is either 0 (failed) or 1 (successful).
1353
+ */
1354
+ txStatus: string;
1355
+ /**
1356
+ * The transaction type.
1357
+ */
1358
+ txType: number;
1093
1359
  /**
1094
- * A wallet or contract address in mixed-case checksum encoding.
1360
+ * The gas limit set for the transaction.
1095
1361
  */
1096
- address: string;
1097
- deploymentDetails: ContractDeploymentDetails;
1098
- ercType: Erc20Contract.ercType;
1362
+ gasLimit: string;
1099
1363
  /**
1100
- * The contract symbol.
1364
+ * The amount of gas used.
1101
1365
  */
1102
- symbol?: string;
1366
+ gasUsed: string;
1103
1367
  /**
1104
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1368
+ * The gas price denominated by the number of decimals of the native token.
1105
1369
  */
1106
- decimals: number;
1370
+ gasPrice: string;
1371
+ /**
1372
+ * The nonce used by the sender of the transaction.
1373
+ */
1374
+ nonce: string;
1375
+ from: RichAddress;
1376
+ to: RichAddress;
1377
+ method?: Method;
1378
+ value: string;
1379
+ /**
1380
+ * The data sent for the transaction.
1381
+ */
1382
+ input: string;
1383
+ baseFeePerGas: string;
1384
+ maxFeePerGas?: string;
1385
+ maxPriorityFeePerGas?: string;
1107
1386
  };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1387
+
1388
+ declare enum InternalTransactionOpCall {
1389
+ UNKNOWN = "UNKNOWN",
1390
+ CALL = "CALL",
1391
+ CREATE = "CREATE",
1392
+ CREATE2 = "CREATE2",
1393
+ CALLCODE = "CALLCODE",
1394
+ DELEGATECALL = "DELEGATECALL",
1395
+ STATICCALL = "STATICCALL"
1112
1396
  }
1113
1397
 
1114
- type Erc721Contract = {
1398
+ type InternalTransactionDetails = {
1399
+ from: RichAddress;
1400
+ to: RichAddress;
1401
+ internalTxType: InternalTransactionOpCall;
1402
+ value: string;
1115
1403
  /**
1116
- * The contract name.
1404
+ * True if the internal transaction was reverted.
1117
1405
  */
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>;
1406
+ isReverted: boolean;
1407
+ gasUsed: string;
1408
+ gasLimit: string;
1409
+ };
1410
+
1411
+ type NetworkTokenDetails = {
1412
+ networkToken: NetworkToken;
1128
1413
  /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1414
+ * The current token price, if available.
1130
1415
  */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1416
+ currentPrice?: Money;
1134
1417
  /**
1135
- * The contract symbol.
1418
+ * 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
1419
  */
1137
- symbol?: string;
1420
+ historicalPrice?: Money;
1138
1421
  };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
1422
 
1145
- type UnknownContract = {
1423
+ type GetTransactionResponse = {
1146
1424
  /**
1147
- * The contract name.
1425
+ * The list of ERC-20 transfers.
1148
1426
  */
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>;
1427
+ erc20Transfers?: Array<Erc20TransferDetails>;
1159
1428
  /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
1429
+ * The list of ERC-721 transfers.
1161
1430
  */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1431
+ erc721Transfers?: Array<Erc721TransferDetails>;
1432
+ /**
1433
+ * The list of ERC-1155 transfers.
1434
+ */
1435
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1436
+ /**
1437
+ * 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.
1438
+ */
1439
+ internalTransactions?: Array<InternalTransactionDetails>;
1440
+ networkTokenDetails: NetworkTokenDetails;
1441
+ nativeTransaction: FullNativeTransactionDetails;
1165
1442
  };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
1443
 
1172
1444
  type ListContractsResponse = {
1173
1445
  /**
1174
1446
  * 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
1447
  */
1176
1448
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1449
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1450
  };
1179
1451
 
1180
1452
  type Erc1155Transfer = {
@@ -1428,7 +1700,7 @@ declare class EvmTransactionsService {
1428
1700
  */
1429
1701
  getDeploymentTransaction({ chainId, address, currency, }: {
1430
1702
  /**
1431
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1703
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1432
1704
  */
1433
1705
  chainId: string;
1434
1706
  /**
@@ -1446,23 +1718,23 @@ declare class EvmTransactionsService {
1446
1718
  * @returns ListContractsResponse
1447
1719
  * @throws ApiError
1448
1720
  */
1449
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
1721
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
1450
1722
  /**
1451
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1723
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1452
1724
  */
1453
1725
  chainId: string;
1454
1726
  /**
1455
1727
  * A wallet address.
1456
1728
  */
1457
1729
  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
1730
  /**
1463
1731
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1464
1732
  */
1465
1733
  pageToken?: string;
1734
+ /**
1735
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1736
+ */
1737
+ pageSize?: number;
1466
1738
  }): CancelablePromise<ListContractsResponse>;
1467
1739
  /**
1468
1740
  * List ERC transfers
@@ -1470,25 +1742,31 @@ declare class EvmTransactionsService {
1470
1742
  * @returns ListTransfersResponse
1471
1743
  * @throws ApiError
1472
1744
  */
1473
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1745
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1474
1746
  /**
1475
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1747
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1476
1748
  */
1477
1749
  chainId: string;
1478
1750
  /**
1479
1751
  * A wallet address.
1480
1752
  */
1481
1753
  address: string;
1754
+ /**
1755
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1756
+ */
1482
1757
  startBlock?: number;
1483
- endBlock?: number;
1484
1758
  /**
1485
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1759
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1486
1760
  */
1487
- pageSize?: number;
1761
+ endBlock?: number;
1488
1762
  /**
1489
1763
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1490
1764
  */
1491
1765
  pageToken?: string;
1766
+ /**
1767
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1768
+ */
1769
+ pageSize?: number;
1492
1770
  }): CancelablePromise<ListTransfersResponse>;
1493
1771
  /**
1494
1772
  * List transactions
@@ -1498,24 +1776,30 @@ declare class EvmTransactionsService {
1498
1776
  * @returns ListTransactionDetailsResponse
1499
1777
  * @throws ApiError
1500
1778
  */
1501
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1779
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
1502
1780
  /**
1503
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1781
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1504
1782
  */
1505
1783
  chainId: string;
1506
1784
  /**
1507
1785
  * A wallet address.
1508
1786
  */
1509
1787
  address: string;
1788
+ /**
1789
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1790
+ */
1791
+ pageToken?: string;
1510
1792
  /**
1511
1793
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1512
1794
  */
1513
1795
  pageSize?: number;
1514
1796
  /**
1515
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1797
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1516
1798
  */
1517
- pageToken?: string;
1518
1799
  startBlock?: number;
1800
+ /**
1801
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1802
+ */
1519
1803
  endBlock?: number;
1520
1804
  /**
1521
1805
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
@@ -1528,25 +1812,31 @@ declare class EvmTransactionsService {
1528
1812
  * @returns ListNativeTransactionsResponse
1529
1813
  * @throws ApiError
1530
1814
  */
1531
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1815
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1532
1816
  /**
1533
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1817
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1534
1818
  */
1535
1819
  chainId: string;
1536
1820
  /**
1537
1821
  * A wallet address.
1538
1822
  */
1539
1823
  address: string;
1824
+ /**
1825
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1826
+ */
1540
1827
  startBlock?: number;
1541
- endBlock?: number;
1542
1828
  /**
1543
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1829
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1544
1830
  */
1545
- pageSize?: number;
1831
+ endBlock?: number;
1546
1832
  /**
1547
1833
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1548
1834
  */
1549
1835
  pageToken?: string;
1836
+ /**
1837
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1838
+ */
1839
+ pageSize?: number;
1550
1840
  }): CancelablePromise<ListNativeTransactionsResponse>;
1551
1841
  /**
1552
1842
  * List ERC-20 transfers
@@ -1554,25 +1844,31 @@ declare class EvmTransactionsService {
1554
1844
  * @returns ListErc20TransactionsResponse
1555
1845
  * @throws ApiError
1556
1846
  */
1557
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1847
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1558
1848
  /**
1559
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1849
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1560
1850
  */
1561
1851
  chainId: string;
1562
1852
  /**
1563
1853
  * A wallet address.
1564
1854
  */
1565
1855
  address: string;
1856
+ /**
1857
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1858
+ */
1566
1859
  startBlock?: number;
1567
- endBlock?: number;
1568
1860
  /**
1569
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1861
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1570
1862
  */
1571
- pageSize?: number;
1863
+ endBlock?: number;
1572
1864
  /**
1573
1865
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1574
1866
  */
1575
1867
  pageToken?: string;
1868
+ /**
1869
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1870
+ */
1871
+ pageSize?: number;
1576
1872
  }): CancelablePromise<ListErc20TransactionsResponse>;
1577
1873
  /**
1578
1874
  * List ERC-721 transfers
@@ -1580,25 +1876,31 @@ declare class EvmTransactionsService {
1580
1876
  * @returns ListErc721TransactionsResponse
1581
1877
  * @throws ApiError
1582
1878
  */
1583
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1879
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1584
1880
  /**
1585
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1881
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1586
1882
  */
1587
1883
  chainId: string;
1588
1884
  /**
1589
1885
  * A wallet address.
1590
1886
  */
1591
1887
  address: string;
1888
+ /**
1889
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1890
+ */
1592
1891
  startBlock?: number;
1593
- endBlock?: number;
1594
1892
  /**
1595
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1893
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1596
1894
  */
1597
- pageSize?: number;
1895
+ endBlock?: number;
1598
1896
  /**
1599
1897
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1600
1898
  */
1601
1899
  pageToken?: string;
1900
+ /**
1901
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1902
+ */
1903
+ pageSize?: number;
1602
1904
  }): CancelablePromise<ListErc721TransactionsResponse>;
1603
1905
  /**
1604
1906
  * List ERC-1155 transfers
@@ -1606,25 +1908,31 @@ declare class EvmTransactionsService {
1606
1908
  * @returns ListErc1155TransactionsResponse
1607
1909
  * @throws ApiError
1608
1910
  */
1609
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1911
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1610
1912
  /**
1611
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1913
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1612
1914
  */
1613
1915
  chainId: string;
1614
1916
  /**
1615
1917
  * A wallet address.
1616
1918
  */
1617
1919
  address: string;
1920
+ /**
1921
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1922
+ */
1618
1923
  startBlock?: number;
1619
- endBlock?: number;
1620
1924
  /**
1621
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1925
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1622
1926
  */
1623
- pageSize?: number;
1927
+ endBlock?: number;
1624
1928
  /**
1625
1929
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1626
1930
  */
1627
1931
  pageToken?: string;
1932
+ /**
1933
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1934
+ */
1935
+ pageSize?: number;
1628
1936
  }): CancelablePromise<ListErc1155TransactionsResponse>;
1629
1937
  /**
1630
1938
  * List internal transactions
@@ -1634,25 +1942,31 @@ declare class EvmTransactionsService {
1634
1942
  * @returns ListInternalTransactionsResponse
1635
1943
  * @throws ApiError
1636
1944
  */
1637
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1945
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
1638
1946
  /**
1639
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1947
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1640
1948
  */
1641
1949
  chainId: string;
1642
1950
  /**
1643
1951
  * A wallet address.
1644
1952
  */
1645
1953
  address: string;
1954
+ /**
1955
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1956
+ */
1646
1957
  startBlock?: number;
1647
- endBlock?: number;
1648
1958
  /**
1649
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1959
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1650
1960
  */
1651
- pageSize?: number;
1961
+ endBlock?: number;
1652
1962
  /**
1653
1963
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1654
1964
  */
1655
1965
  pageToken?: string;
1966
+ /**
1967
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1968
+ */
1969
+ pageSize?: number;
1656
1970
  }): CancelablePromise<ListInternalTransactionsResponse>;
1657
1971
  /**
1658
1972
  * Get transaction
@@ -1662,7 +1976,7 @@ declare class EvmTransactionsService {
1662
1976
  */
1663
1977
  getTransaction({ chainId, txHash, }: {
1664
1978
  /**
1665
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1979
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1666
1980
  */
1667
1981
  chainId: string;
1668
1982
  /**
@@ -1678,54 +1992,131 @@ declare class EvmTransactionsService {
1678
1992
  */
1679
1993
  getTransactionsForBlock({ chainId, blockId, }: {
1680
1994
  /**
1681
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1995
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1996
+ */
1997
+ chainId: string;
1998
+ /**
1999
+ * A block identifier which is either a block number or the block hash.
2000
+ */
2001
+ blockId: string;
2002
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2003
+ /**
2004
+ * List latest transactions
2005
+ * Lists the latest transactions. Filterable by status.
2006
+ * @returns ListNativeTransactionsResponse
2007
+ * @throws ApiError
2008
+ */
2009
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
2010
+ /**
2011
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2012
+ */
2013
+ chainId: string;
2014
+ /**
2015
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2016
+ */
2017
+ pageToken?: string;
2018
+ /**
2019
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2020
+ */
2021
+ pageSize?: number;
2022
+ /**
2023
+ * A status filter for listed transactions.
2024
+ */
2025
+ status?: TransactionStatus;
2026
+ }): CancelablePromise<ListNativeTransactionsResponse>;
2027
+ }
2028
+
2029
+ declare class HealthCheckService {
2030
+ readonly httpRequest: BaseHttpRequest;
2031
+ constructor(httpRequest: BaseHttpRequest);
2032
+ /**
2033
+ * Get the health of the service
2034
+ * @returns any The Health Check is successful
2035
+ * @throws ApiError
2036
+ */
2037
+ healthCheck(): CancelablePromise<{
2038
+ status?: string;
2039
+ info?: Record<string, Record<string, string>> | null;
2040
+ error?: Record<string, Record<string, string>> | null;
2041
+ details?: Record<string, Record<string, string>>;
2042
+ }>;
2043
+ }
2044
+
2045
+ type ListNftTokens = {
2046
+ /**
2047
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2048
+ */
2049
+ nextPageToken?: string;
2050
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2051
+ };
2052
+
2053
+ declare class NfTsService {
2054
+ readonly httpRequest: BaseHttpRequest;
2055
+ constructor(httpRequest: BaseHttpRequest);
2056
+ /**
2057
+ * Reindex NFT metadata
2058
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2059
+ * @returns any
2060
+ * @throws ApiError
2061
+ */
2062
+ reindexNft({ chainId, address, tokenId, }: {
2063
+ /**
2064
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1682
2065
  */
1683
2066
  chainId: string;
1684
2067
  /**
1685
- * A block identifier which is either a block number or the block hash.
2068
+ * Contract address on the relevant chain.
1686
2069
  */
1687
- blockId: string;
1688
- }): CancelablePromise<ListNativeTransactionsResponse>;
2070
+ address: string;
2071
+ /**
2072
+ * TokenId on the contract
2073
+ */
2074
+ tokenId: string;
2075
+ }): CancelablePromise<any>;
1689
2076
  /**
1690
- * List latest transactions
1691
- * Lists the latest transactions. Filterable by status.
1692
- * @returns ListNativeTransactionsResponse
2077
+ * List tokens
2078
+ * Lists tokens for an NFT contract.
2079
+ * @returns ListNftTokens
1693
2080
  * @throws ApiError
1694
2081
  */
1695
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
2082
+ listTokens({ chainId, address, pageToken, pageSize, }: {
1696
2083
  /**
1697
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2084
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
1698
2085
  */
1699
2086
  chainId: string;
1700
2087
  /**
1701
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2088
+ * Contract address on the relevant chain.
1702
2089
  */
1703
- pageSize?: number;
2090
+ address: string;
1704
2091
  /**
1705
2092
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1706
2093
  */
1707
2094
  pageToken?: string;
1708
2095
  /**
1709
- * A status filter for listed transactions.
2096
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1710
2097
  */
1711
- status?: TransactionStatus;
1712
- }): CancelablePromise<ListNativeTransactionsResponse>;
1713
- }
1714
-
1715
- declare class HealthCheckService {
1716
- readonly httpRequest: BaseHttpRequest;
1717
- constructor(httpRequest: BaseHttpRequest);
2098
+ pageSize?: number;
2099
+ }): CancelablePromise<ListNftTokens>;
1718
2100
  /**
1719
- * Get the health of the service
1720
- * @returns any The Health Check is successful
2101
+ * Get token details
2102
+ * Gets token details for a specific token of an NFT contract.
2103
+ * @returns any
1721
2104
  * @throws ApiError
1722
2105
  */
1723
- healthCheck(): CancelablePromise<{
1724
- status?: string;
1725
- info?: Record<string, Record<string, string>> | null;
1726
- error?: Record<string, Record<string, string>> | null;
1727
- details?: Record<string, Record<string, string>>;
1728
- }>;
2106
+ getTokenDetails({ chainId, address, tokenId, }: {
2107
+ /**
2108
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
2109
+ */
2110
+ chainId: string;
2111
+ /**
2112
+ * Contract address on the relevant chain.
2113
+ */
2114
+ address: string;
2115
+ /**
2116
+ * TokenId on the contract
2117
+ */
2118
+ tokenId: string;
2119
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1729
2120
  }
1730
2121
 
1731
2122
  type EvmNetworkOptions = {
@@ -1822,17 +2213,6 @@ type OperationStatusResponse = {
1822
2213
  declare class OperationsService {
1823
2214
  readonly httpRequest: BaseHttpRequest;
1824
2215
  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
2216
  /**
1837
2217
  * Get operation
1838
2218
  * Gets operation details for the given operation id.
@@ -1845,6 +2225,17 @@ declare class OperationsService {
1845
2225
  */
1846
2226
  operationId: string;
1847
2227
  }): CancelablePromise<OperationStatusResponse>;
2228
+ /**
2229
+ * Create transaction export operation
2230
+ * Trigger a transaction export operation with given parameters.
2231
+ *
2232
+ * The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
2233
+ * @returns OperationStatusResponse
2234
+ * @throws ApiError
2235
+ */
2236
+ postTransactionExportJob({ requestBody, }: {
2237
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2238
+ }): CancelablePromise<OperationStatusResponse>;
1848
2239
  }
1849
2240
 
1850
2241
  declare enum BlockchainIds {
@@ -1913,39 +2304,57 @@ type ListBlockchainsResponse = {
1913
2304
 
1914
2305
  type ActiveDelegatorDetails = {
1915
2306
  txHash: string;
2307
+ nodeId: string;
1916
2308
  rewardAddresses: Array<string>;
1917
2309
  amountDelegated: string;
1918
2310
  delegationFee: string;
1919
2311
  startTimestamp: number;
1920
2312
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
2313
  estimatedGrossReward: string;
1923
2314
  estimatedNetReward: string;
2315
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
2316
  };
2317
+ declare namespace ActiveDelegatorDetails {
2318
+ enum delegationStatus {
2319
+ ACTIVE = "active"
2320
+ }
2321
+ }
1925
2322
 
1926
2323
  type CompletedDelegatorDetails = {
1927
2324
  txHash: string;
2325
+ nodeId: string;
1928
2326
  rewardAddresses: Array<string>;
1929
2327
  amountDelegated: string;
1930
2328
  delegationFee: string;
1931
2329
  startTimestamp: number;
1932
2330
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2331
  grossReward: string;
1935
2332
  netReward: string;
2333
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2334
  };
2335
+ declare namespace CompletedDelegatorDetails {
2336
+ enum delegationStatus {
2337
+ COMPLETED = "completed"
2338
+ }
2339
+ }
1937
2340
 
1938
2341
  type PendingDelegatorDetails = {
1939
2342
  txHash: string;
2343
+ nodeId: string;
1940
2344
  rewardAddresses: Array<string>;
1941
2345
  amountDelegated: string;
1942
2346
  delegationFee: string;
1943
2347
  startTimestamp: number;
1944
2348
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2349
  estimatedGrossReward: string;
1947
2350
  estimatedNetReward: string;
2351
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2352
  };
2353
+ declare namespace PendingDelegatorDetails {
2354
+ enum delegationStatus {
2355
+ PENDING = "pending"
2356
+ }
2357
+ }
1949
2358
 
1950
2359
  type ListDelegatorDetailsResponse = {
1951
2360
  /**
@@ -1962,13 +2371,44 @@ type BlockchainInfo = {
1962
2371
  blockchainId: string;
1963
2372
  };
1964
2373
 
2374
+ type SubnetOwnershipInfo = {
2375
+ /**
2376
+ * Locktime in seconds after which Subnet owners can control this Subnet.
2377
+ */
2378
+ locktime: number;
2379
+ /**
2380
+ * Minimum number of signatures required to sign the Subnet update transactions.
2381
+ */
2382
+ threshold: number;
2383
+ /**
2384
+ * Addresses that are eligible to sign the Subnet update transactions.
2385
+ */
2386
+ addresses: Array<string>;
2387
+ };
2388
+
1965
2389
  type Subnet = {
1966
2390
  createBlockTimestamp: number;
1967
2391
  createBlockIndex: string;
1968
2392
  subnetId: string;
2393
+ /**
2394
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2395
+ * @deprecated
2396
+ */
1969
2397
  ownerAddresses: Array<string>;
2398
+ /**
2399
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2400
+ * @deprecated
2401
+ */
1970
2402
  threshold: number;
2403
+ /**
2404
+ * This field is deprecated. Use subnetOwnershipInfo instead.
2405
+ * @deprecated
2406
+ */
1971
2407
  locktime: number;
2408
+ /**
2409
+ * Latest subnet owner details for this Subnet.
2410
+ */
2411
+ subnetOwnershipInfo: SubnetOwnershipInfo;
1972
2412
  blockchains: Array<BlockchainInfo>;
1973
2413
  };
1974
2414
 
@@ -1983,49 +2423,104 @@ type ListSubnetsResponse = {
1983
2423
  type Rewards = {
1984
2424
  validationRewardAmount: string;
1985
2425
  delegationRewardAmount: string;
2426
+ rewardAddresses?: Array<string>;
2427
+ rewardTxHash?: string;
1986
2428
  };
1987
2429
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
2430
+ type ValidatorHealthDetails = {
2431
+ /**
2432
+ * Percent of requests responded to in last polling.
2433
+ */
2434
+ reachabilityPercent: number;
2435
+ /**
2436
+ * Percent of requests benched on the P-Chain in last polling.
2437
+ */
2438
+ benchedPChainRequestsPercent: number;
2439
+ /**
2440
+ * Percentage of requests benched on the X-Chain in last polling.
2441
+ */
2442
+ benchedXChainRequestsPercent: number;
2443
+ /**
2444
+ * Percentage of requests benched on the C-Chain in last polling.
2445
+ */
2446
+ benchedCChainRequestsPercent: number;
2447
+ };
1993
2448
 
1994
2449
  type ActiveValidatorDetails = {
2450
+ txHash: string;
1995
2451
  nodeId: string;
2452
+ subnetId: string;
1996
2453
  amountStaked: string;
1997
- delegationFee: string;
2454
+ delegationFee?: string;
1998
2455
  startTimestamp: number;
1999
2456
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2457
  stakePercentage: number;
2002
2458
  delegatorCount: number;
2003
- amountDelegated: string;
2459
+ amountDelegated?: string;
2004
2460
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2461
+ avalancheGoVersion?: string;
2462
+ delegationCapacity?: string;
2007
2463
  potentialRewards: Rewards;
2464
+ validationStatus: ActiveValidatorDetails.validationStatus;
2465
+ validatorHealth: ValidatorHealthDetails;
2008
2466
  };
2467
+ declare namespace ActiveValidatorDetails {
2468
+ enum validationStatus {
2469
+ ACTIVE = "active"
2470
+ }
2471
+ }
2009
2472
 
2010
2473
  type CompletedValidatorDetails = {
2474
+ txHash: string;
2011
2475
  nodeId: string;
2476
+ subnetId: string;
2012
2477
  amountStaked: string;
2013
- delegationFee: string;
2478
+ delegationFee?: string;
2014
2479
  startTimestamp: number;
2015
2480
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2481
  delegatorCount: number;
2018
2482
  rewards: Rewards;
2483
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2484
  };
2485
+ declare namespace CompletedValidatorDetails {
2486
+ enum validationStatus {
2487
+ COMPLETED = "completed"
2488
+ }
2489
+ }
2020
2490
 
2021
2491
  type PendingValidatorDetails = {
2492
+ txHash: string;
2022
2493
  nodeId: string;
2494
+ subnetId: string;
2023
2495
  amountStaked: string;
2024
- delegationFee: string;
2496
+ delegationFee?: string;
2497
+ startTimestamp: number;
2498
+ endTimestamp: number;
2499
+ validationStatus: PendingValidatorDetails.validationStatus;
2500
+ };
2501
+ declare namespace PendingValidatorDetails {
2502
+ enum validationStatus {
2503
+ PENDING = "pending"
2504
+ }
2505
+ }
2506
+
2507
+ type RemovedValidatorDetails = {
2508
+ txHash: string;
2509
+ nodeId: string;
2510
+ subnetId: string;
2511
+ amountStaked: string;
2512
+ delegationFee?: string;
2025
2513
  startTimestamp: number;
2026
2514
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2515
+ removeTxHash: string;
2516
+ removeTimestamp: number;
2517
+ validationStatus: RemovedValidatorDetails.validationStatus;
2028
2518
  };
2519
+ declare namespace RemovedValidatorDetails {
2520
+ enum validationStatus {
2521
+ REMOVED = "removed"
2522
+ }
2523
+ }
2029
2524
 
2030
2525
  type ListValidatorDetailsResponse = {
2031
2526
  /**
@@ -2033,9 +2528,9 @@ type ListValidatorDetailsResponse = {
2033
2528
  */
2034
2529
  nextPageToken?: string;
2035
2530
  /**
2036
- * The list of Validator Details.
2531
+ * The list of validator Details.
2037
2532
  */
2038
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2533
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2039
2534
  };
2040
2535
 
2041
2536
  declare enum Network {
@@ -2043,6 +2538,23 @@ declare enum Network {
2043
2538
  FUJI = "fuji"
2044
2539
  }
2045
2540
 
2541
+ declare enum ValidationStatusType {
2542
+ COMPLETED = "completed",
2543
+ ACTIVE = "active",
2544
+ PENDING = "pending",
2545
+ REMOVED = "removed"
2546
+ }
2547
+
2548
+ declare enum PrimaryNetworkAssetCap {
2549
+ FIXED = "fixed",
2550
+ VARIABLE = "variable"
2551
+ }
2552
+
2553
+ declare enum PrimaryNetworkAssetType {
2554
+ SECP256K1 = "secp256k1",
2555
+ NFT = "nft"
2556
+ }
2557
+
2046
2558
  type XChainAssetDetails = {
2047
2559
  /**
2048
2560
  * Unique ID for an asset.
@@ -2063,15 +2575,15 @@ type XChainAssetDetails = {
2063
2575
  /**
2064
2576
  * Type of asset like SECP256K1 or NFT.
2065
2577
  */
2066
- type: string;
2578
+ type: PrimaryNetworkAssetType;
2067
2579
  /**
2068
2580
  * Timestamp in seconds this asset was created on.
2069
2581
  */
2070
2582
  createdAtTimestamp: number;
2071
2583
  /**
2072
- * Cap represents if an asset can be or is fixed cap.
2584
+ * Cap represents if an asset is a variable or fixed cap asset.
2073
2585
  */
2074
- cap: string;
2586
+ cap: PrimaryNetworkAssetCap;
2075
2587
  };
2076
2588
 
2077
2589
  declare enum XChainId {
@@ -2137,19 +2649,19 @@ declare class PrimaryNetworkService {
2137
2649
  * @returns ListBlockchainsResponse
2138
2650
  * @throws ApiError
2139
2651
  */
2140
- listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
2652
+ listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
2141
2653
  /**
2142
2654
  * Either mainnet or a testnet.
2143
2655
  */
2144
2656
  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
2657
  /**
2150
2658
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2151
2659
  */
2152
2660
  pageToken?: string;
2661
+ /**
2662
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2663
+ */
2664
+ pageSize?: number;
2153
2665
  /**
2154
2666
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2155
2667
  */
@@ -2161,19 +2673,19 @@ declare class PrimaryNetworkService {
2161
2673
  * @returns ListSubnetsResponse
2162
2674
  * @throws ApiError
2163
2675
  */
2164
- listSubnets({ network, pageSize, pageToken, sortOrder, }: {
2676
+ listSubnets({ network, pageToken, pageSize, sortOrder, }: {
2165
2677
  /**
2166
2678
  * Either mainnet or a testnet.
2167
2679
  */
2168
2680
  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
2681
  /**
2174
2682
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2175
2683
  */
2176
2684
  pageToken?: string;
2685
+ /**
2686
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2687
+ */
2688
+ pageSize?: number;
2177
2689
  /**
2178
2690
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2179
2691
  */
@@ -2185,19 +2697,19 @@ declare class PrimaryNetworkService {
2185
2697
  * @returns ListValidatorDetailsResponse
2186
2698
  * @throws ApiError
2187
2699
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2700
+ listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2189
2701
  /**
2190
2702
  * Either mainnet or a testnet.
2191
2703
  */
2192
2704
  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
2705
  /**
2198
2706
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2707
  */
2200
2708
  pageToken?: string;
2709
+ /**
2710
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2711
+ */
2712
+ pageSize?: number;
2201
2713
  /**
2202
2714
  * A comma separated list of node ids to filter by.
2203
2715
  */
@@ -2211,9 +2723,33 @@ declare class PrimaryNetworkService {
2211
2723
  */
2212
2724
  validationStatus?: ValidationStatusType;
2213
2725
  /**
2214
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2726
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2727
+ */
2728
+ minDelegationCapacity?: string;
2729
+ /**
2730
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2731
+ */
2732
+ maxDelegationCapacity?: string;
2733
+ /**
2734
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2735
+ */
2736
+ minTimeRemaining?: number;
2737
+ /**
2738
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2739
+ */
2740
+ maxTimeRemaining?: number;
2741
+ /**
2742
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2743
+ */
2744
+ minFeePercentage?: number;
2745
+ /**
2746
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2747
+ */
2748
+ maxFeePercentage?: number;
2749
+ /**
2750
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2215
2751
  */
2216
- minDelegationCapacity?: any;
2752
+ subnetId?: string;
2217
2753
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2754
  /**
2219
2755
  * Get single validator details
@@ -2221,7 +2757,7 @@ declare class PrimaryNetworkService {
2221
2757
  * @returns ListValidatorDetailsResponse
2222
2758
  * @throws ApiError
2223
2759
  */
2224
- getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
2760
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2225
2761
  /**
2226
2762
  * Either mainnet or a testnet.
2227
2763
  */
@@ -2230,14 +2766,14 @@ declare class PrimaryNetworkService {
2230
2766
  * A primary network (P or X chain) nodeId.
2231
2767
  */
2232
2768
  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
2769
  /**
2238
2770
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2239
2771
  */
2240
2772
  pageToken?: string;
2773
+ /**
2774
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2775
+ */
2776
+ pageSize?: number;
2241
2777
  /**
2242
2778
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2243
2779
  */
@@ -2253,19 +2789,23 @@ declare class PrimaryNetworkService {
2253
2789
  * @returns ListDelegatorDetailsResponse
2254
2790
  * @throws ApiError
2255
2791
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2792
+ listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2793
  /**
2258
2794
  * Either mainnet or a testnet.
2259
2795
  */
2260
2796
  network: Network;
2797
+ /**
2798
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2799
+ */
2800
+ pageToken?: string;
2261
2801
  /**
2262
2802
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2263
2803
  */
2264
2804
  pageSize?: number;
2265
2805
  /**
2266
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2806
+ * A comma separated list of reward addresses to filter by.
2267
2807
  */
2268
- pageToken?: string;
2808
+ rewardAddresses?: string;
2269
2809
  /**
2270
2810
  * 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
2811
  */
@@ -2274,10 +2814,6 @@ declare class PrimaryNetworkService {
2274
2814
  * Delegation status of the node.
2275
2815
  */
2276
2816
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2817
  /**
2282
2818
  * A comma separated list of node ids to filter by.
2283
2819
  */
@@ -2316,7 +2852,7 @@ type CChainSharedAssetBalance = {
2316
2852
  /**
2317
2853
  * Type of asset like SECP256K1 or NFT.
2318
2854
  */
2319
- type: string;
2855
+ type: PrimaryNetworkAssetType;
2320
2856
  /**
2321
2857
  * Amount of the asset.
2322
2858
  */
@@ -2351,13 +2887,57 @@ type ListCChainAtomicBalancesResponse = {
2351
2887
  chainInfo: PrimaryNetworkChainInfo;
2352
2888
  };
2353
2889
 
2354
- type PChainAsset = {
2890
+ type Asset = {
2891
+ /**
2892
+ * Unique ID for an asset.
2893
+ */
2355
2894
  assetId: string;
2895
+ /**
2896
+ * Name of this asset.
2897
+ */
2898
+ name: string;
2899
+ /**
2900
+ * Symbol for this asset (max 4 characters).
2901
+ */
2902
+ symbol: string;
2903
+ /**
2904
+ * Denomination of this asset to represent fungibility.
2905
+ */
2906
+ denomination: number;
2907
+ /**
2908
+ * Type of asset like SECP256K1 or NFT.
2909
+ */
2910
+ type: PrimaryNetworkAssetType;
2911
+ /**
2912
+ * Amount of the asset.
2913
+ */
2356
2914
  amount: string;
2357
2915
  };
2358
2916
 
2359
2917
  type PChainSharedAsset = {
2918
+ /**
2919
+ * Unique ID for an asset.
2920
+ */
2360
2921
  assetId: string;
2922
+ /**
2923
+ * Name of this asset.
2924
+ */
2925
+ name: string;
2926
+ /**
2927
+ * Symbol for this asset (max 4 characters).
2928
+ */
2929
+ symbol: string;
2930
+ /**
2931
+ * Denomination of this asset to represent fungibility.
2932
+ */
2933
+ denomination: number;
2934
+ /**
2935
+ * Type of asset like SECP256K1 or NFT.
2936
+ */
2937
+ type: PrimaryNetworkAssetType;
2938
+ /**
2939
+ * Amount of the asset.
2940
+ */
2361
2941
  amount: string;
2362
2942
  sharedWithChainId: string;
2363
2943
  status: string;
@@ -2367,27 +2947,27 @@ type PChainBalance = {
2367
2947
  /**
2368
2948
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2369
2949
  */
2370
- unlockedUnstaked: Array<PChainAsset>;
2950
+ unlockedUnstaked: Array<Asset>;
2371
2951
  /**
2372
2952
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2373
2953
  */
2374
- unlockedStaked: Array<PChainAsset>;
2954
+ unlockedStaked: Array<Asset>;
2375
2955
  /**
2376
2956
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2377
2957
  */
2378
- lockedPlatform: Array<PChainAsset>;
2958
+ lockedPlatform: Array<Asset>;
2379
2959
  /**
2380
2960
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2381
2961
  */
2382
- lockedStakeable: Array<PChainAsset>;
2962
+ lockedStakeable: Array<Asset>;
2383
2963
  /**
2384
2964
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2385
2965
  */
2386
- lockedStaked: Array<PChainAsset>;
2966
+ lockedStaked: Array<Asset>;
2387
2967
  /**
2388
2968
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2389
2969
  */
2390
- pendingStaked: Array<PChainAsset>;
2970
+ pendingStaked: Array<Asset>;
2391
2971
  /**
2392
2972
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2393
2973
  */
@@ -2423,7 +3003,7 @@ type XChainAssetBalance = {
2423
3003
  /**
2424
3004
  * Type of asset like SECP256K1 or NFT.
2425
3005
  */
2426
- type: string;
3006
+ type: PrimaryNetworkAssetType;
2427
3007
  /**
2428
3008
  * Amount of the asset.
2429
3009
  */
@@ -2451,7 +3031,7 @@ type XChainSharedAssetBalance = {
2451
3031
  /**
2452
3032
  * Type of asset like SECP256K1 or NFT.
2453
3033
  */
2454
- type: string;
3034
+ type: PrimaryNetworkAssetType;
2455
3035
  /**
2456
3036
  * Amount of the asset.
2457
3037
  */
@@ -2526,6 +3106,7 @@ type GetPrimaryNetworkBlockResponse = {
2526
3106
  txCount: number;
2527
3107
  transactions: Array<string>;
2528
3108
  blockSizeBytes: number;
3109
+ currentSupply?: string;
2529
3110
  proposerDetails?: ProposerDetails;
2530
3111
  };
2531
3112
 
@@ -2538,6 +3119,7 @@ type PrimaryNetworkBlock = {
2538
3119
  txCount: number;
2539
3120
  transactions: Array<string>;
2540
3121
  blockSizeBytes: number;
3122
+ currentSupply?: string;
2541
3123
  proposerDetails?: ProposerDetails;
2542
3124
  };
2543
3125
 
@@ -2579,7 +3161,7 @@ declare class PrimaryNetworkBlocksService {
2579
3161
  * @returns ListPrimaryNetworkBlocksResponse
2580
3162
  * @throws ApiError
2581
3163
  */
2582
- listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3164
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
2583
3165
  /**
2584
3166
  * A primary network blockchain id or alias.
2585
3167
  */
@@ -2592,14 +3174,14 @@ declare class PrimaryNetworkBlocksService {
2592
3174
  * A primary network (P or X chain) nodeId.
2593
3175
  */
2594
3176
  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
3177
  /**
2600
3178
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2601
3179
  */
2602
3180
  pageToken?: string;
3181
+ /**
3182
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3183
+ */
3184
+ pageSize?: number;
2603
3185
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2604
3186
  /**
2605
3187
  * List latest blocks
@@ -2607,7 +3189,7 @@ declare class PrimaryNetworkBlocksService {
2607
3189
  * @returns ListPrimaryNetworkBlocksResponse
2608
3190
  * @throws ApiError
2609
3191
  */
2610
- listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3192
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
2611
3193
  /**
2612
3194
  * A primary network blockchain id or alias.
2613
3195
  */
@@ -2615,21 +3197,53 @@ declare class PrimaryNetworkBlocksService {
2615
3197
  /**
2616
3198
  * Either mainnet or a testnet.
2617
3199
  */
2618
- 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;
3200
+ network: Network;
2623
3201
  /**
2624
3202
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2625
3203
  */
2626
3204
  pageToken?: string;
3205
+ /**
3206
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3207
+ */
3208
+ pageSize?: number;
2627
3209
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
2628
3210
  }
2629
3211
 
3212
+ type AssetWithPriceInfo = {
3213
+ /**
3214
+ * Unique ID for an asset.
3215
+ */
3216
+ assetId: string;
3217
+ /**
3218
+ * Name of this asset.
3219
+ */
3220
+ name: string;
3221
+ /**
3222
+ * Symbol for this asset (max 4 characters).
3223
+ */
3224
+ symbol: string;
3225
+ /**
3226
+ * Denomination of this asset to represent fungibility.
3227
+ */
3228
+ denomination: number;
3229
+ /**
3230
+ * Type of asset like SECP256K1 or NFT.
3231
+ */
3232
+ type: PrimaryNetworkAssetType;
3233
+ /**
3234
+ * Amount of the asset.
3235
+ */
3236
+ amount: string;
3237
+ /**
3238
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3239
+ */
3240
+ historicalPrice?: Money;
3241
+ };
3242
+
2630
3243
  declare enum RewardType {
2631
3244
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
3245
+ DELEGATOR = "DELEGATOR",
3246
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
3247
  }
2634
3248
 
2635
3249
  type HistoricalReward = {
@@ -2645,10 +3259,7 @@ type HistoricalReward = {
2645
3259
  rewardType: RewardType;
2646
3260
  utxoId: string;
2647
3261
  outputIndex: number;
2648
- /**
2649
- * An object containing P-chain Asset ID and the amount of that Asset ID.
2650
- */
2651
- reward: PChainAsset;
3262
+ reward: AssetWithPriceInfo;
2652
3263
  rewardTxHash: string;
2653
3264
  };
2654
3265
 
@@ -2675,7 +3286,7 @@ type PendingReward = {
2675
3286
  /**
2676
3287
  * An object containing P-chain Asset ID and the amount of that Asset ID.
2677
3288
  */
2678
- estimatedReward: PChainAsset;
3289
+ estimatedReward: Asset;
2679
3290
  };
2680
3291
 
2681
3292
  type ListPendingRewardsResponse = {
@@ -2695,23 +3306,27 @@ declare class PrimaryNetworkRewardsService {
2695
3306
  * @returns ListPendingRewardsResponse
2696
3307
  * @throws ApiError
2697
3308
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3309
+ listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
2699
3310
  /**
2700
3311
  * Either mainnet or a testnet.
2701
3312
  */
2702
3313
  network: Network;
2703
3314
  /**
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".
3315
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required.
2705
3316
  */
2706
3317
  addresses?: string;
3318
+ /**
3319
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3320
+ */
3321
+ pageToken?: string;
2707
3322
  /**
2708
3323
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2709
3324
  */
2710
3325
  pageSize?: number;
2711
3326
  /**
2712
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3327
+ * A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
2713
3328
  */
2714
- pageToken?: string;
3329
+ nodeIds?: string;
2715
3330
  /**
2716
3331
  * 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
3332
  */
@@ -2723,64 +3338,45 @@ declare class PrimaryNetworkRewardsService {
2723
3338
  * @returns ListHistoricalRewardsResponse
2724
3339
  * @throws ApiError
2725
3340
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3341
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
2727
3342
  /**
2728
3343
  * Either mainnet or a testnet.
2729
3344
  */
2730
3345
  network: Network;
2731
3346
  /**
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".
3347
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
2733
3348
  */
2734
3349
  addresses?: string;
3350
+ /**
3351
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3352
+ */
3353
+ pageToken?: string;
2735
3354
  /**
2736
3355
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2737
3356
  */
2738
3357
  pageSize?: number;
2739
3358
  /**
2740
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3359
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
2741
3360
  */
2742
- pageToken?: string;
3361
+ nodeIds?: string;
2743
3362
  /**
2744
3363
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2745
3364
  */
2746
3365
  sortOrder?: SortOrder;
3366
+ /**
3367
+ * The currency that return values should use. Defaults to USD.
3368
+ */
3369
+ currency?: CurrencyCode;
2747
3370
  }): CancelablePromise<ListHistoricalRewardsResponse>;
2748
3371
  }
2749
3372
 
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
3373
  type UtxoCredential = {
2778
3374
  /**
2779
- * Signature provided to consume the output
3375
+ * Signature provided to consume the output.
2780
3376
  */
2781
3377
  signature?: string;
2782
3378
  /**
2783
- * Public key associated with the signature
3379
+ * Public key associated with the signature.
2784
3380
  */
2785
3381
  publicKey?: string;
2786
3382
  };
@@ -2802,66 +3398,66 @@ type EVMInput = {
2802
3398
 
2803
3399
  type Utxo = {
2804
3400
  /**
2805
- * UTXO ID for this output.
3401
+ * Addresses that are eligible to sign the consumption of this output.
2806
3402
  */
2807
- utxoId: string;
3403
+ addresses: Array<string>;
2808
3404
  asset: Asset;
2809
3405
  /**
2810
- * Type of output.
3406
+ * Blockchain ID on which this output is consumed on.
2811
3407
  */
2812
- utxoType: string;
3408
+ consumedOnChainId: string;
2813
3409
  /**
2814
- * Blockchain ID on which this output is created on.
3410
+ * Transaction ID that consumed this output.
2815
3411
  */
2816
- createdOnChainId: string;
3412
+ consumingTxHash?: string;
2817
3413
  /**
2818
- * Blockchain ID on which this output is consumed on.
3414
+ * Blockchain ID on which this output is created on.
2819
3415
  */
2820
- consumedOnChainId: string;
3416
+ createdOnChainId: string;
2821
3417
  /**
2822
- * Transaction ID that created this output.
3418
+ * UTXO ID for this output.
2823
3419
  */
2824
- creationTxHash: string;
3420
+ utxoId: string;
2825
3421
  /**
2826
- * Transaction ID that consumed this output.
3422
+ * Unix timestamp in seconds at which this output was consumed.
2827
3423
  */
2828
- consumingTxHash?: string;
3424
+ consumingTxTimestamp?: number;
2829
3425
  /**
2830
- * Timestamp in seconds this output is consumed.
3426
+ * Transaction ID that created this output.
2831
3427
  */
2832
- consumingTxTimestamp?: number;
3428
+ creationTxHash: string;
2833
3429
  /**
2834
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3430
+ * Credentials that signed the transaction to consume this utxo
2835
3431
  */
2836
- outputIndex: string;
3432
+ credentials?: Array<UtxoCredential>;
2837
3433
  /**
2838
- * Timestamp in seconds this outptut is created on.
3434
+ * Index representing the minting set for the NFT mint output.
2839
3435
  */
2840
- timestamp: number;
3436
+ groupId?: number;
2841
3437
  /**
2842
3438
  * Locktime in seconds after which this output can be consumed.
2843
3439
  */
2844
3440
  locktime: number;
2845
3441
  /**
2846
- * Minimum number of signatures required to consume this output.
3442
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
2847
3443
  */
2848
- threshold: number;
3444
+ outputIndex: string;
2849
3445
  /**
2850
- * Addresses that are eligible to sign the consumption of this output.
3446
+ * Hex encoded data for NFT assets.
2851
3447
  */
2852
- addresses: Array<string>;
3448
+ payload?: string;
2853
3449
  /**
2854
- * Hex encoded data for NFT assets
3450
+ * Minimum number of signatures required to consume this output.
2855
3451
  */
2856
- payload?: string;
3452
+ threshold: number;
2857
3453
  /**
2858
- * Index representing the minting set for the NFT mint output
3454
+ * Unix timestamp in seconds at which this outptut was created.
2859
3455
  */
2860
- groupId?: number;
3456
+ timestamp: number;
2861
3457
  /**
2862
- * Credentials that signed the transaction to consume this utxo
3458
+ * Type of output.
2863
3459
  */
2864
- credentials?: Array<UtxoCredential>;
3460
+ utxoType: string;
2865
3461
  };
2866
3462
 
2867
3463
  type CChainExportTransaction = {
@@ -2992,16 +3588,20 @@ type ListCChainAtomicTransactionsResponse = {
2992
3588
 
2993
3589
  declare enum PChainTransactionType {
2994
3590
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
- ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
2997
3591
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3592
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3000
3593
  CREATE_CHAIN_TX = "CreateChainTx",
3001
3594
  CREATE_SUBNET_TX = "CreateSubnetTx",
3002
3595
  IMPORT_TX = "ImportTx",
3003
3596
  EXPORT_TX = "ExportTx",
3004
3597
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3598
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3599
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3600
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3601
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3602
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3603
+ BASE_TX = "BaseTx",
3604
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3005
3605
  UNKNOWN = "UNKNOWN"
3006
3606
  }
3007
3607
 
@@ -3012,29 +3612,48 @@ declare enum UtxoType {
3012
3612
 
3013
3613
  type PChainUtxo = {
3014
3614
  /**
3015
- * An array of P-Chain wallet addresses.
3615
+ * Addresses that are eligible to sign the consumption of this output.
3016
3616
  */
3017
3617
  addresses: Array<string>;
3618
+ asset: Asset;
3619
+ /**
3620
+ * Blockchain ID on which this output is consumed on.
3621
+ */
3622
+ consumedOnChainId: string;
3623
+ /**
3624
+ * Transaction ID that consumed this output.
3625
+ */
3626
+ consumingTxHash?: string;
3627
+ /**
3628
+ * Blockchain ID on which this output is created on.
3629
+ */
3630
+ createdOnChainId: string;
3631
+ /**
3632
+ * UTXO ID for this output.
3633
+ */
3018
3634
  utxoId: string;
3019
- txHash: string;
3020
- outputIndex: number;
3635
+ /**
3636
+ * @deprecated
3637
+ */
3638
+ amount: string;
3639
+ /**
3640
+ * @deprecated
3641
+ */
3642
+ assetId: string;
3021
3643
  blockNumber: string;
3022
3644
  blockTimestamp: number;
3023
- consumingTxHash?: string;
3024
- consumingBlockTimestamp?: number;
3025
3645
  consumingBlockNumber?: string;
3026
- assetId: string;
3027
- utxoType: UtxoType;
3028
- amount: string;
3029
- stakeableLocktime?: number;
3646
+ consumingBlockTimestamp?: number;
3030
3647
  platformLocktime?: number;
3031
- threshold?: number;
3032
- createdOnChainId: string;
3033
- consumedOnChainId: string;
3648
+ outputIndex: number;
3649
+ rewardType?: RewardType;
3650
+ stakeableLocktime?: number;
3034
3651
  staked?: boolean;
3035
- utxoStartTimestamp?: number;
3652
+ threshold?: number;
3653
+ txHash: string;
3036
3654
  utxoEndTimestamp?: number;
3037
- rewardType?: RewardType;
3655
+ utxoStartTimestamp?: number;
3656
+ utxoType: UtxoType;
3038
3657
  };
3039
3658
 
3040
3659
  type PChainTransaction = {
@@ -3062,15 +3681,15 @@ type PChainTransaction = {
3062
3681
  /**
3063
3682
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3064
3683
  */
3065
- value: Array<PChainAsset>;
3684
+ value: Array<Asset>;
3066
3685
  /**
3067
3686
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3068
3687
  */
3069
- amountBurned: Array<PChainAsset>;
3688
+ amountBurned: Array<Asset>;
3070
3689
  /**
3071
3690
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3072
3691
  */
3073
- amountStaked: Array<PChainAsset>;
3692
+ amountStaked: Array<Asset>;
3074
3693
  /**
3075
3694
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3076
3695
  */
@@ -3096,11 +3715,16 @@ type PChainTransaction = {
3096
3715
  */
3097
3716
  estimatedReward?: string;
3098
3717
  rewardTxHash?: string;
3718
+ rewardAddresses?: Array<string>;
3099
3719
  memo?: string;
3100
3720
  /**
3101
3721
  * Present for RewardValidatorTx
3102
3722
  */
3103
3723
  stakingTxHash?: string;
3724
+ /**
3725
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3726
+ */
3727
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
3104
3728
  };
3105
3729
 
3106
3730
  type ListPChainTransactionsResponse = {
@@ -3112,6 +3736,15 @@ type ListPChainTransactionsResponse = {
3112
3736
  chainInfo: PrimaryNetworkChainInfo;
3113
3737
  };
3114
3738
 
3739
+ declare enum XChainTransactionType {
3740
+ BASE_TX = "BaseTx",
3741
+ CREATE_ASSET_TX = "CreateAssetTx",
3742
+ OPERATION_TX = "OperationTx",
3743
+ IMPORT_TX = "ImportTx",
3744
+ EXPORT_TX = "ExportTx",
3745
+ UNKNOWN = "UNKNOWN"
3746
+ }
3747
+
3115
3748
  type XChainLinearTransaction = {
3116
3749
  /**
3117
3750
  * Unique ID for this transaction.
@@ -3128,7 +3761,7 @@ type XChainLinearTransaction = {
3128
3761
  /**
3129
3762
  * Type of transaction.
3130
3763
  */
3131
- txType: string;
3764
+ txType: XChainTransactionType;
3132
3765
  /**
3133
3766
  * Hex encoded memo bytes for this transaction.
3134
3767
  */
@@ -3205,7 +3838,7 @@ type XChainNonLinearTransaction = {
3205
3838
  /**
3206
3839
  * Type of transaction.
3207
3840
  */
3208
- txType: string;
3841
+ txType: XChainTransactionType;
3209
3842
  /**
3210
3843
  * Hex encoded memo bytes for this transaction.
3211
3844
  */
@@ -3263,18 +3896,21 @@ declare enum PChainId {
3263
3896
 
3264
3897
  declare enum PrimaryNetworkTxType {
3265
3898
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3268
3899
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3900
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3271
3901
  CREATE_CHAIN_TX = "CreateChainTx",
3272
3902
  CREATE_SUBNET_TX = "CreateSubnetTx",
3273
3903
  IMPORT_TX = "ImportTx",
3274
3904
  EXPORT_TX = "ExportTx",
3275
3905
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3276
- UNKNOWN = "UNKNOWN",
3906
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3907
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3908
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3909
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3910
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3277
3911
  BASE_TX = "BaseTx",
3912
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3913
+ UNKNOWN = "UNKNOWN",
3278
3914
  CREATE_ASSET_TX = "CreateAssetTx",
3279
3915
  OPERATION_TX = "OperationTx"
3280
3916
  }
@@ -3304,11 +3940,15 @@ declare class PrimaryNetworkTransactionsService {
3304
3940
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3941
  /**
3306
3942
  * List latest transactions
3307
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3943
+ * Lists the latest transactions on one of the Primary Network chains.
3944
+ *
3945
+ * Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
3946
+ *
3947
+ * Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
3308
3948
  * @returns any
3309
3949
  * @throws ApiError
3310
3950
  */
3311
- listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3951
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3312
3952
  /**
3313
3953
  * A primary network blockchain id or alias.
3314
3954
  */
@@ -3333,14 +3973,14 @@ declare class PrimaryNetworkTransactionsService {
3333
3973
  * Query param for retrieving items before a specific timestamp.
3334
3974
  */
3335
3975
  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
3976
  /**
3341
3977
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3342
3978
  */
3343
3979
  pageToken?: string;
3980
+ /**
3981
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3982
+ */
3983
+ pageSize?: number;
3344
3984
  /**
3345
3985
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3346
3986
  */
@@ -3352,7 +3992,7 @@ declare class PrimaryNetworkTransactionsService {
3352
3992
  * @returns ListPChainTransactionsResponse
3353
3993
  * @throws ApiError
3354
3994
  */
3355
- listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
3995
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
3356
3996
  /**
3357
3997
  * A primary network blockchain id or alias.
3358
3998
  */
@@ -3377,14 +4017,14 @@ declare class PrimaryNetworkTransactionsService {
3377
4017
  * Query param for retrieving items before a specific timestamp.
3378
4018
  */
3379
4019
  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
4020
  /**
3385
4021
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3386
4022
  */
3387
4023
  pageToken?: string;
4024
+ /**
4025
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4026
+ */
4027
+ pageSize?: number;
3388
4028
  /**
3389
4029
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3390
4030
  */
@@ -3396,7 +4036,7 @@ declare class PrimaryNetworkTransactionsService {
3396
4036
  * @returns ListXChainTransactionsResponse
3397
4037
  * @throws ApiError
3398
4038
  */
3399
- listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
4039
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
3400
4040
  /**
3401
4041
  * A primary network blockchain id or alias.
3402
4042
  */
@@ -3421,14 +4061,14 @@ declare class PrimaryNetworkTransactionsService {
3421
4061
  * Query param for retrieving items before a specific timestamp.
3422
4062
  */
3423
4063
  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
4064
  /**
3429
4065
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3430
4066
  */
3431
4067
  pageToken?: string;
4068
+ /**
4069
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4070
+ */
4071
+ pageSize?: number;
3432
4072
  }): CancelablePromise<ListXChainTransactionsResponse>;
3433
4073
  }
3434
4074
 
@@ -3459,7 +4099,7 @@ declare class PrimaryNetworkUtxOsService {
3459
4099
  * @returns any
3460
4100
  * @throws ApiError
3461
4101
  */
3462
- getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
4102
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
3463
4103
  /**
3464
4104
  * A primary network blockchain id or alias.
3465
4105
  */
@@ -3472,14 +4112,14 @@ declare class PrimaryNetworkUtxOsService {
3472
4112
  * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3473
4113
  */
3474
4114
  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
4115
  /**
3480
4116
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3481
4117
  */
3482
4118
  pageToken?: string;
4119
+ /**
4120
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4121
+ */
4122
+ pageSize?: number;
3483
4123
  /**
3484
4124
  * Asset ID for any asset (only applicable X-Chain)
3485
4125
  */
@@ -3524,7 +4164,7 @@ declare class PrimaryNetworkVerticesService {
3524
4164
  * @returns ListXChainVerticesResponse
3525
4165
  * @throws ApiError
3526
4166
  */
3527
- listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
4167
+ listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
3528
4168
  /**
3529
4169
  * A primary network blockchain id or alias.
3530
4170
  */
@@ -3533,14 +4173,14 @@ declare class PrimaryNetworkVerticesService {
3533
4173
  * Either mainnet or a testnet.
3534
4174
  */
3535
4175
  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
4176
  /**
3541
4177
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3542
4178
  */
3543
4179
  pageToken?: string;
4180
+ /**
4181
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4182
+ */
4183
+ pageSize?: number;
3544
4184
  }): CancelablePromise<ListXChainVerticesResponse>;
3545
4185
  /**
3546
4186
  * Get vertex
@@ -3568,7 +4208,7 @@ declare class PrimaryNetworkVerticesService {
3568
4208
  * @returns ListXChainVerticesResponse
3569
4209
  * @throws ApiError
3570
4210
  */
3571
- getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
4211
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
3572
4212
  /**
3573
4213
  * The height of a vertex.
3574
4214
  */
@@ -3581,14 +4221,14 @@ declare class PrimaryNetworkVerticesService {
3581
4221
  * Either mainnet or a testnet.
3582
4222
  */
3583
4223
  network: Network;
3584
- /**
3585
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3586
- */
3587
- pageSize?: number;
3588
4224
  /**
3589
4225
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3590
4226
  */
3591
4227
  pageToken?: string;
4228
+ /**
4229
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4230
+ */
4231
+ pageSize?: number;
3592
4232
  /**
3593
4233
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3594
4234
  */
@@ -3598,11 +4238,14 @@ declare class PrimaryNetworkVerticesService {
3598
4238
 
3599
4239
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3600
4240
  declare class Glacier {
4241
+ readonly default: DefaultService;
3601
4242
  readonly evmBalances: EvmBalancesService;
3602
4243
  readonly evmBlocks: EvmBlocksService;
3603
4244
  readonly evmChains: EvmChainsService;
4245
+ readonly evmContracts: EvmContractsService;
3604
4246
  readonly evmTransactions: EvmTransactionsService;
3605
4247
  readonly healthCheck: HealthCheckService;
4248
+ readonly nfTs: NfTsService;
3606
4249
  readonly operations: OperationsService;
3607
4250
  readonly primaryNetwork: PrimaryNetworkService;
3608
4251
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3632,4 +4275,4 @@ declare class ApiError extends Error {
3632
4275
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
4276
  }
3634
4277
 
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 };
4278
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };