@avalabs/glacier-sdk 2.8.0-canary.3610e84.0 → 2.8.0-canary.430ff95.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 (83) hide show
  1. package/dist/index.d.ts +728 -252
  2. package/dist/index.js +332 -61
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +32 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/request.js +14 -31
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  9. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  10. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  11. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  12. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  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/ImageAsset.d.ts +0 -3
  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 +1 -1
  38. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  39. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  40. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  41. package/esm/generated/models/PChainTransactionType.js +1 -0
  42. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  43. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  44. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  45. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  46. package/esm/generated/models/PricingProviders.d.ts +5 -0
  47. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  48. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  49. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  50. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  51. package/esm/generated/models/RewardType.d.ts +2 -1
  52. package/esm/generated/models/RewardType.js +1 -0
  53. package/esm/generated/models/Rewards.d.ts +2 -0
  54. package/esm/generated/models/UnknownContract.d.ts +0 -1
  55. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  56. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  57. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  58. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  59. package/esm/generated/models/WebhookStatus.js +7 -0
  60. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  61. package/esm/generated/models/WebhookStatusType.js +7 -0
  62. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  63. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  64. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  65. package/esm/generated/models/XChainTransactionType.js +11 -0
  66. package/esm/generated/services/DefaultService.d.ts +59 -0
  67. package/esm/generated/services/DefaultService.js +49 -0
  68. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  69. package/esm/generated/services/EvmContractsService.js +36 -0
  70. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  71. package/esm/generated/services/EvmTransactionsService.js +1 -1
  72. package/esm/generated/services/NfTsService.d.ts +76 -0
  73. package/esm/generated/services/NfTsService.js +56 -0
  74. package/esm/generated/services/OperationsService.d.ts +11 -11
  75. package/esm/generated/services/OperationsService.js +10 -10
  76. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  77. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  78. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -12
  79. package/esm/generated/services/PrimaryNetworkService.js +17 -7
  80. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
  81. package/esm/index.d.ts +20 -0
  82. package/esm/index.js +17 -0
  83. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -60,6 +60,107 @@ 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
+ topic0?: string;
69
+ };
70
+
71
+ declare enum EventType {
72
+ ADDRESS_ACTIVITY = "address_activity"
73
+ }
74
+
75
+ declare enum WebhookStatusType {
76
+ ACTIVE = "active",
77
+ INACTIVE = "inactive"
78
+ }
79
+
80
+ type WebhookResponse = {
81
+ id: string;
82
+ eventType: EventType;
83
+ metadata: AddressActivityMetadata;
84
+ url: string;
85
+ chainId: string;
86
+ status: WebhookStatusType;
87
+ createdAt: number;
88
+ };
89
+
90
+ type ListWebhooksResponse = {
91
+ /**
92
+ * 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.
93
+ */
94
+ nextPageToken?: string;
95
+ webhooks: Array<WebhookResponse>;
96
+ };
97
+
98
+ type RegisterWebhookRequest = {
99
+ url: string;
100
+ chainId: string;
101
+ /**
102
+ * The type of event for the webhook
103
+ */
104
+ eventType: EventType;
105
+ metadata: AddressActivityMetadata;
106
+ };
107
+
108
+ declare enum WebhookStatus {
109
+ ACTIVE = "active",
110
+ INACTIVE = "inactive"
111
+ }
112
+
113
+ declare class DefaultService {
114
+ readonly httpRequest: BaseHttpRequest;
115
+ constructor(httpRequest: BaseHttpRequest);
116
+ /**
117
+ * @returns any
118
+ * @throws ApiError
119
+ */
120
+ mediaControllerUploadImage(): CancelablePromise<any>;
121
+ /**
122
+ * Register a webhook
123
+ * Registers a new webhook.
124
+ * @returns WebhookResponse
125
+ * @throws ApiError
126
+ */
127
+ registerWebhook({ requestBody, }: {
128
+ requestBody: RegisterWebhookRequest;
129
+ }): CancelablePromise<WebhookResponse>;
130
+ /**
131
+ * List webhooks
132
+ * Lists webhooks for the user.
133
+ * @returns ListWebhooksResponse
134
+ * @throws ApiError
135
+ */
136
+ listWebhooks({ pageSize, pageToken, status, }: {
137
+ /**
138
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
139
+ */
140
+ pageSize?: number;
141
+ /**
142
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
143
+ */
144
+ pageToken?: string;
145
+ /**
146
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
147
+ */
148
+ status?: WebhookStatus;
149
+ }): CancelablePromise<ListWebhooksResponse>;
150
+ /**
151
+ * Deactivate a webhook
152
+ * Deactivates a webhook by ID.
153
+ * @returns WebhookResponse
154
+ * @throws ApiError
155
+ */
156
+ deactivateWebhook({ id, }: {
157
+ /**
158
+ * The webhook identifier.
159
+ */
160
+ id: string;
161
+ }): CancelablePromise<WebhookResponse>;
162
+ }
163
+
63
164
  declare enum CurrencyCode {
64
165
  USD = "usd",
65
166
  EUR = "eur",
@@ -680,6 +781,7 @@ type GetChainResponse = {
680
781
  utilityAddresses?: UtilityAddresses;
681
782
  networkToken: NetworkToken;
682
783
  chainLogoUri?: string;
784
+ private?: boolean;
683
785
  };
684
786
 
685
787
  type ChainInfo = {
@@ -701,6 +803,7 @@ type ChainInfo = {
701
803
  utilityAddresses?: UtilityAddresses;
702
804
  networkToken: NetworkToken;
703
805
  chainLogoUri?: string;
806
+ private?: boolean;
704
807
  };
705
808
 
706
809
  type ListChainsResponse = {
@@ -741,6 +844,322 @@ declare class EvmChainsService {
741
844
  }): CancelablePromise<GetChainResponse>;
742
845
  }
743
846
 
847
+ type ImageAsset = {
848
+ assetId?: string;
849
+ /**
850
+ * OUTPUT ONLY
851
+ */
852
+ imageUri?: string;
853
+ };
854
+
855
+ type PricingProviders = {
856
+ coingeckoCoinId?: string;
857
+ };
858
+
859
+ declare enum ResourceLinkType {
860
+ BLOG = "Blog",
861
+ COIN_GECKO = "CoinGecko",
862
+ COIN_MARKET_CAP = "CoinMarketCap",
863
+ DISCORD = "Discord",
864
+ DOCUMENTATION = "Documentation",
865
+ FACEBOOK = "Facebook",
866
+ GITHUB = "Github",
867
+ INSTAGRAM = "Instagram",
868
+ LINKED_IN = "LinkedIn",
869
+ MEDIUM = "Medium",
870
+ REDDIT = "Reddit",
871
+ SUPPORT = "Support",
872
+ TELEGRAM = "Telegram",
873
+ TIK_TOK = "TikTok",
874
+ TWITTER = "Twitter",
875
+ WEBSITE = "Website",
876
+ WHITEPAPER = "Whitepaper",
877
+ YOUTUBE = "Youtube"
878
+ }
879
+
880
+ type ResourceLink = {
881
+ type: ResourceLinkType;
882
+ url: string;
883
+ };
884
+
885
+ type ContractSubmissionErc1155 = {
886
+ description?: string;
887
+ officialSite?: string;
888
+ email?: string;
889
+ logoAsset?: ImageAsset;
890
+ bannerAsset?: ImageAsset;
891
+ color?: string;
892
+ resourceLinks?: Array<ResourceLink>;
893
+ tags?: Array<string>;
894
+ /**
895
+ * The contract name.
896
+ */
897
+ name: string;
898
+ ercType: ContractSubmissionErc1155.ercType;
899
+ /**
900
+ * The contract symbol.
901
+ */
902
+ symbol: string;
903
+ pricingProviders?: PricingProviders;
904
+ };
905
+ declare namespace ContractSubmissionErc1155 {
906
+ enum ercType {
907
+ ERC_1155 = "ERC-1155"
908
+ }
909
+ }
910
+
911
+ type ContractSubmissionErc20 = {
912
+ description?: string;
913
+ officialSite?: string;
914
+ email?: string;
915
+ logoAsset?: ImageAsset;
916
+ bannerAsset?: ImageAsset;
917
+ color?: string;
918
+ resourceLinks?: Array<ResourceLink>;
919
+ tags?: Array<string>;
920
+ /**
921
+ * The contract name.
922
+ */
923
+ name: string;
924
+ ercType: ContractSubmissionErc20.ercType;
925
+ /**
926
+ * The contract symbol.
927
+ */
928
+ symbol: string;
929
+ pricingProviders?: PricingProviders;
930
+ };
931
+ declare namespace ContractSubmissionErc20 {
932
+ enum ercType {
933
+ ERC_20 = "ERC-20"
934
+ }
935
+ }
936
+
937
+ type ContractSubmissionErc721 = {
938
+ description?: string;
939
+ officialSite?: string;
940
+ email?: string;
941
+ logoAsset?: ImageAsset;
942
+ bannerAsset?: ImageAsset;
943
+ color?: string;
944
+ resourceLinks?: Array<ResourceLink>;
945
+ tags?: Array<string>;
946
+ /**
947
+ * The contract name.
948
+ */
949
+ name: string;
950
+ ercType: ContractSubmissionErc721.ercType;
951
+ /**
952
+ * The contract symbol.
953
+ */
954
+ symbol: string;
955
+ };
956
+ declare namespace ContractSubmissionErc721 {
957
+ enum ercType {
958
+ ERC_721 = "ERC-721"
959
+ }
960
+ }
961
+
962
+ type ContractSubmissionUnknown = {
963
+ description?: string;
964
+ officialSite?: string;
965
+ email?: string;
966
+ logoAsset?: ImageAsset;
967
+ bannerAsset?: ImageAsset;
968
+ color?: string;
969
+ resourceLinks?: Array<ResourceLink>;
970
+ tags?: Array<string>;
971
+ /**
972
+ * The contract name.
973
+ */
974
+ name: string;
975
+ ercType: ContractSubmissionUnknown.ercType;
976
+ };
977
+ declare namespace ContractSubmissionUnknown {
978
+ enum ercType {
979
+ UNKNOWN = "UNKNOWN"
980
+ }
981
+ }
982
+
983
+ type ContractSubmissionBody = {
984
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
985
+ };
986
+
987
+ type ContractDeploymentDetails = {
988
+ txHash: string;
989
+ /**
990
+ * The address that initiated the transaction which deployed this contract.
991
+ */
992
+ deployerAddress: string;
993
+ /**
994
+ * 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.
995
+ */
996
+ deployerContractAddress?: string;
997
+ };
998
+
999
+ type Erc1155Contract = {
1000
+ /**
1001
+ * The contract name.
1002
+ */
1003
+ name?: string;
1004
+ description?: string;
1005
+ officialSite?: string;
1006
+ email?: string;
1007
+ logoAsset?: ImageAsset;
1008
+ bannerAsset?: ImageAsset;
1009
+ color?: string;
1010
+ resourceLinks?: Array<ResourceLink>;
1011
+ tags?: Array<string>;
1012
+ /**
1013
+ * A wallet or contract address in mixed-case checksum encoding.
1014
+ */
1015
+ address: string;
1016
+ deploymentDetails: ContractDeploymentDetails;
1017
+ ercType: Erc1155Contract.ercType;
1018
+ /**
1019
+ * The contract symbol.
1020
+ */
1021
+ symbol?: string;
1022
+ pricingProviders?: PricingProviders;
1023
+ };
1024
+ declare namespace Erc1155Contract {
1025
+ enum ercType {
1026
+ ERC_1155 = "ERC-1155"
1027
+ }
1028
+ }
1029
+
1030
+ type Erc20Contract = {
1031
+ /**
1032
+ * The contract name.
1033
+ */
1034
+ name?: string;
1035
+ description?: string;
1036
+ officialSite?: string;
1037
+ email?: string;
1038
+ logoAsset?: ImageAsset;
1039
+ bannerAsset?: ImageAsset;
1040
+ color?: string;
1041
+ resourceLinks?: Array<ResourceLink>;
1042
+ tags?: Array<string>;
1043
+ /**
1044
+ * A wallet or contract address in mixed-case checksum encoding.
1045
+ */
1046
+ address: string;
1047
+ deploymentDetails: ContractDeploymentDetails;
1048
+ ercType: Erc20Contract.ercType;
1049
+ /**
1050
+ * The contract symbol.
1051
+ */
1052
+ symbol?: string;
1053
+ /**
1054
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1055
+ */
1056
+ decimals: number;
1057
+ pricingProviders?: PricingProviders;
1058
+ };
1059
+ declare namespace Erc20Contract {
1060
+ enum ercType {
1061
+ ERC_20 = "ERC-20"
1062
+ }
1063
+ }
1064
+
1065
+ type Erc721Contract = {
1066
+ /**
1067
+ * The contract name.
1068
+ */
1069
+ name?: string;
1070
+ description?: string;
1071
+ officialSite?: string;
1072
+ email?: string;
1073
+ logoAsset?: ImageAsset;
1074
+ bannerAsset?: ImageAsset;
1075
+ color?: string;
1076
+ resourceLinks?: Array<ResourceLink>;
1077
+ tags?: Array<string>;
1078
+ /**
1079
+ * A wallet or contract address in mixed-case checksum encoding.
1080
+ */
1081
+ address: string;
1082
+ deploymentDetails: ContractDeploymentDetails;
1083
+ ercType: Erc721Contract.ercType;
1084
+ /**
1085
+ * The contract symbol.
1086
+ */
1087
+ symbol?: string;
1088
+ };
1089
+ declare namespace Erc721Contract {
1090
+ enum ercType {
1091
+ ERC_721 = "ERC-721"
1092
+ }
1093
+ }
1094
+
1095
+ type UnknownContract = {
1096
+ /**
1097
+ * The contract name.
1098
+ */
1099
+ name?: string;
1100
+ description?: string;
1101
+ officialSite?: string;
1102
+ email?: string;
1103
+ logoAsset?: ImageAsset;
1104
+ bannerAsset?: ImageAsset;
1105
+ color?: string;
1106
+ resourceLinks?: Array<ResourceLink>;
1107
+ tags?: Array<string>;
1108
+ /**
1109
+ * A wallet or contract address in mixed-case checksum encoding.
1110
+ */
1111
+ address: string;
1112
+ deploymentDetails: ContractDeploymentDetails;
1113
+ ercType: UnknownContract.ercType;
1114
+ };
1115
+ declare namespace UnknownContract {
1116
+ enum ercType {
1117
+ UNKNOWN = "UNKNOWN"
1118
+ }
1119
+ }
1120
+
1121
+ type UpdateContractResponse = {
1122
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1123
+ };
1124
+
1125
+ declare class EvmContractsService {
1126
+ readonly httpRequest: BaseHttpRequest;
1127
+ constructor(httpRequest: BaseHttpRequest);
1128
+ /**
1129
+ * Get contract metadata
1130
+ * Gets metadata about the contract at the given address.
1131
+ * @returns any
1132
+ * @throws ApiError
1133
+ */
1134
+ getContractMetadata({ chainId, address, }: {
1135
+ /**
1136
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1137
+ */
1138
+ chainId: string;
1139
+ /**
1140
+ * Contract address on the relevant chain.
1141
+ */
1142
+ address: string;
1143
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1144
+ /**
1145
+ * Update contract information
1146
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1147
+ * @returns UpdateContractResponse
1148
+ * @throws ApiError
1149
+ */
1150
+ updateContractInfo({ chainId, address, requestBody, }: {
1151
+ /**
1152
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1153
+ */
1154
+ chainId: string;
1155
+ /**
1156
+ * Contract address on the relevant chain.
1157
+ */
1158
+ address: string;
1159
+ requestBody: ContractSubmissionBody;
1160
+ }): CancelablePromise<UpdateContractResponse>;
1161
+ }
1162
+
744
1163
  type Erc1155Token = {
745
1164
  /**
746
1165
  * A wallet or contract address in mixed-case checksum encoding.
@@ -957,227 +1376,54 @@ type InternalTransactionDetails = {
957
1376
  from: RichAddress;
958
1377
  to: RichAddress;
959
1378
  internalTxType: InternalTransactionOpCall;
960
- value: string;
961
- /**
962
- * True if the internal transaction was reverted.
963
- */
964
- isReverted: boolean;
965
- gasUsed: string;
966
- gasLimit: string;
967
- };
968
-
969
- type NetworkTokenDetails = {
970
- networkToken: NetworkToken;
971
- /**
972
- * The current token price, if available.
973
- */
974
- currentPrice?: Money;
975
- /**
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.
977
- */
978
- historicalPrice?: Money;
979
- };
980
-
981
- type GetTransactionResponse = {
982
- /**
983
- * The list of ERC-20 transfers.
984
- */
985
- erc20Transfers?: Array<Erc20TransferDetails>;
986
- /**
987
- * The list of ERC-721 transfers.
988
- */
989
- erc721Transfers?: Array<Erc721TransferDetails>;
990
- /**
991
- * The list of ERC-1155 transfers.
992
- */
993
- erc1155Transfers?: Array<Erc1155TransferDetails>;
994
- /**
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.
996
- */
997
- internalTransactions?: Array<InternalTransactionDetails>;
998
- networkTokenDetails: NetworkTokenDetails;
999
- nativeTransaction: FullNativeTransactionDetails;
1000
- };
1001
-
1002
- type ContractDeploymentDetails = {
1003
- txHash: string;
1004
- /**
1005
- * The address that initiated the transaction which deployed this contract.
1006
- */
1007
- deployerAddress: string;
1008
- /**
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.
1010
- */
1011
- deployerContractAddress?: string;
1012
- };
1013
-
1014
- type ImageAsset = {
1015
- /**
1016
- * INPUT ONLY
1017
- */
1018
- assetId?: string;
1019
- /**
1020
- * OUTPUT ONLY
1021
- */
1022
- imageUri?: string;
1023
- };
1024
-
1025
- declare enum ResourceLinkType {
1026
- BLOG = "Blog",
1027
- COIN_GECKO = "CoinGecko",
1028
- COIN_MARKET_CAP = "CoinMarketCap",
1029
- DISCORD = "Discord",
1030
- DOCUMENTATION = "Documentation",
1031
- FACEBOOK = "Facebook",
1032
- GITHUB = "Github",
1033
- INSTAGRAM = "Instagram",
1034
- LINKED_IN = "LinkedIn",
1035
- MEDIUM = "Medium",
1036
- REDDIT = "Reddit",
1037
- SUPPORT = "Support",
1038
- TELEGRAM = "Telegram",
1039
- TIK_TOK = "TikTok",
1040
- TWITTER = "Twitter",
1041
- WEBSITE = "Website",
1042
- WHITEPAPER = "Whitepaper",
1043
- YOUTUBE = "Youtube"
1044
- }
1045
-
1046
- type ResourceLink = {
1047
- type: ResourceLinkType;
1048
- url: string;
1049
- };
1050
-
1051
- type Erc1155Contract = {
1052
- /**
1053
- * The contract name.
1054
- */
1055
- name?: string;
1056
- description?: string;
1057
- officialSite?: string;
1058
- email?: string;
1059
- logoAsset?: ImageAsset;
1060
- bannerAsset?: ImageAsset;
1061
- color?: string;
1062
- coingeckoCoinId?: string;
1063
- resourceLinks?: Array<ResourceLink>;
1064
- tags?: Array<string>;
1065
- /**
1066
- * A wallet or contract address in mixed-case checksum encoding.
1067
- */
1068
- address: string;
1069
- deploymentDetails: ContractDeploymentDetails;
1070
- ercType: Erc1155Contract.ercType;
1071
- /**
1072
- * The contract symbol.
1073
- */
1074
- symbol?: string;
1075
- };
1076
- declare namespace Erc1155Contract {
1077
- enum ercType {
1078
- ERC_1155 = "ERC-1155"
1079
- }
1080
- }
1081
-
1082
- type Erc20Contract = {
1083
- /**
1084
- * The contract name.
1085
- */
1086
- name?: string;
1087
- description?: string;
1088
- officialSite?: string;
1089
- email?: string;
1090
- logoAsset?: ImageAsset;
1091
- bannerAsset?: ImageAsset;
1092
- color?: string;
1093
- coingeckoCoinId?: string;
1094
- resourceLinks?: Array<ResourceLink>;
1095
- tags?: Array<string>;
1096
- /**
1097
- * A wallet or contract address in mixed-case checksum encoding.
1098
- */
1099
- address: string;
1100
- deploymentDetails: ContractDeploymentDetails;
1101
- ercType: Erc20Contract.ercType;
1102
- /**
1103
- * The contract symbol.
1104
- */
1105
- symbol?: string;
1106
- /**
1107
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1108
- */
1109
- decimals: number;
1110
- };
1111
- declare namespace Erc20Contract {
1112
- enum ercType {
1113
- ERC_20 = "ERC-20"
1114
- }
1115
- }
1116
-
1117
- type Erc721Contract = {
1118
- /**
1119
- * The contract name.
1120
- */
1121
- name?: string;
1122
- description?: string;
1123
- officialSite?: string;
1124
- email?: string;
1125
- logoAsset?: ImageAsset;
1126
- bannerAsset?: ImageAsset;
1127
- color?: string;
1128
- coingeckoCoinId?: string;
1129
- resourceLinks?: Array<ResourceLink>;
1130
- tags?: Array<string>;
1379
+ value: string;
1131
1380
  /**
1132
- * A wallet or contract address in mixed-case checksum encoding.
1381
+ * True if the internal transaction was reverted.
1133
1382
  */
1134
- address: string;
1135
- deploymentDetails: ContractDeploymentDetails;
1136
- ercType: Erc721Contract.ercType;
1383
+ isReverted: boolean;
1384
+ gasUsed: string;
1385
+ gasLimit: string;
1386
+ };
1387
+
1388
+ type NetworkTokenDetails = {
1389
+ networkToken: NetworkToken;
1137
1390
  /**
1138
- * The contract symbol.
1391
+ * The current token price, if available.
1139
1392
  */
1140
- symbol?: string;
1393
+ currentPrice?: Money;
1394
+ /**
1395
+ * 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.
1396
+ */
1397
+ historicalPrice?: Money;
1141
1398
  };
1142
- declare namespace Erc721Contract {
1143
- enum ercType {
1144
- ERC_721 = "ERC-721"
1145
- }
1146
- }
1147
1399
 
1148
- type UnknownContract = {
1400
+ type GetTransactionResponse = {
1149
1401
  /**
1150
- * The contract name.
1402
+ * The list of ERC-20 transfers.
1151
1403
  */
1152
- name?: string;
1153
- description?: string;
1154
- officialSite?: string;
1155
- email?: string;
1156
- logoAsset?: ImageAsset;
1157
- bannerAsset?: ImageAsset;
1158
- color?: string;
1159
- coingeckoCoinId?: string;
1160
- resourceLinks?: Array<ResourceLink>;
1161
- tags?: Array<string>;
1404
+ erc20Transfers?: Array<Erc20TransferDetails>;
1162
1405
  /**
1163
- * A wallet or contract address in mixed-case checksum encoding.
1406
+ * The list of ERC-721 transfers.
1164
1407
  */
1165
- address: string;
1166
- deploymentDetails: ContractDeploymentDetails;
1167
- ercType: UnknownContract.ercType;
1408
+ erc721Transfers?: Array<Erc721TransferDetails>;
1409
+ /**
1410
+ * The list of ERC-1155 transfers.
1411
+ */
1412
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1413
+ /**
1414
+ * 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.
1415
+ */
1416
+ internalTransactions?: Array<InternalTransactionDetails>;
1417
+ networkTokenDetails: NetworkTokenDetails;
1418
+ nativeTransaction: FullNativeTransactionDetails;
1168
1419
  };
1169
- declare namespace UnknownContract {
1170
- enum ercType {
1171
- UNKNOWN = "UNKNOWN"
1172
- }
1173
- }
1174
1420
 
1175
1421
  type ListContractsResponse = {
1176
1422
  /**
1177
1423
  * 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.
1178
1424
  */
1179
1425
  nextPageToken?: string;
1180
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1426
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1181
1427
  };
1182
1428
 
1183
1429
  type Erc1155Transfer = {
@@ -1482,7 +1728,13 @@ declare class EvmTransactionsService {
1482
1728
  * A wallet address.
1483
1729
  */
1484
1730
  address: string;
1731
+ /**
1732
+ * 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.
1733
+ */
1485
1734
  startBlock?: number;
1735
+ /**
1736
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1737
+ */
1486
1738
  endBlock?: number;
1487
1739
  /**
1488
1740
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1518,7 +1770,13 @@ declare class EvmTransactionsService {
1518
1770
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1519
1771
  */
1520
1772
  pageToken?: string;
1773
+ /**
1774
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
1775
+ */
1521
1776
  startBlock?: number;
1777
+ /**
1778
+ * 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.
1779
+ */
1522
1780
  endBlock?: number;
1523
1781
  /**
1524
1782
  * 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.
@@ -1540,7 +1798,13 @@ declare class EvmTransactionsService {
1540
1798
  * A wallet address.
1541
1799
  */
1542
1800
  address: string;
1801
+ /**
1802
+ * 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.
1803
+ */
1543
1804
  startBlock?: number;
1805
+ /**
1806
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1807
+ */
1544
1808
  endBlock?: number;
1545
1809
  /**
1546
1810
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1566,7 +1830,13 @@ declare class EvmTransactionsService {
1566
1830
  * A wallet address.
1567
1831
  */
1568
1832
  address: string;
1833
+ /**
1834
+ * 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.
1835
+ */
1569
1836
  startBlock?: number;
1837
+ /**
1838
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1839
+ */
1570
1840
  endBlock?: number;
1571
1841
  /**
1572
1842
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1592,7 +1862,13 @@ declare class EvmTransactionsService {
1592
1862
  * A wallet address.
1593
1863
  */
1594
1864
  address: string;
1865
+ /**
1866
+ * 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.
1867
+ */
1595
1868
  startBlock?: number;
1869
+ /**
1870
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1871
+ */
1596
1872
  endBlock?: number;
1597
1873
  /**
1598
1874
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1618,7 +1894,13 @@ declare class EvmTransactionsService {
1618
1894
  * A wallet address.
1619
1895
  */
1620
1896
  address: string;
1897
+ /**
1898
+ * 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.
1899
+ */
1621
1900
  startBlock?: number;
1901
+ /**
1902
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1903
+ */
1622
1904
  endBlock?: number;
1623
1905
  /**
1624
1906
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1646,7 +1928,13 @@ declare class EvmTransactionsService {
1646
1928
  * A wallet address.
1647
1929
  */
1648
1930
  address: string;
1931
+ /**
1932
+ * 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.
1933
+ */
1649
1934
  startBlock?: number;
1935
+ /**
1936
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
1937
+ */
1650
1938
  endBlock?: number;
1651
1939
  /**
1652
1940
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1731,6 +2019,83 @@ declare class HealthCheckService {
1731
2019
  }>;
1732
2020
  }
1733
2021
 
2022
+ type ListNftTokens = {
2023
+ /**
2024
+ * 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.
2025
+ */
2026
+ nextPageToken?: string;
2027
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2028
+ };
2029
+
2030
+ declare class NfTsService {
2031
+ readonly httpRequest: BaseHttpRequest;
2032
+ constructor(httpRequest: BaseHttpRequest);
2033
+ /**
2034
+ * Reindex NFT metadata
2035
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2036
+ * @returns any
2037
+ * @throws ApiError
2038
+ */
2039
+ reindexNft({ chainId, address, tokenId, }: {
2040
+ /**
2041
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2042
+ */
2043
+ chainId: string;
2044
+ /**
2045
+ * Contract address on the relevant chain.
2046
+ */
2047
+ address: string;
2048
+ /**
2049
+ * TokenId on the contract
2050
+ */
2051
+ tokenId: string;
2052
+ }): CancelablePromise<any>;
2053
+ /**
2054
+ * List tokens
2055
+ * Lists tokens for an NFT contract.
2056
+ * @returns ListNftTokens
2057
+ * @throws ApiError
2058
+ */
2059
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2060
+ /**
2061
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2062
+ */
2063
+ chainId: string;
2064
+ /**
2065
+ * Contract address on the relevant chain.
2066
+ */
2067
+ address: string;
2068
+ /**
2069
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2070
+ */
2071
+ pageSize?: number;
2072
+ /**
2073
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2074
+ */
2075
+ pageToken?: string;
2076
+ }): CancelablePromise<ListNftTokens>;
2077
+ /**
2078
+ * Get token details
2079
+ * Gets token details for a specific token of an NFT contract.
2080
+ * @returns any
2081
+ * @throws ApiError
2082
+ */
2083
+ getTokenDetails({ chainId, address, tokenId, }: {
2084
+ /**
2085
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2086
+ */
2087
+ chainId: string;
2088
+ /**
2089
+ * Contract address on the relevant chain.
2090
+ */
2091
+ address: string;
2092
+ /**
2093
+ * TokenId on the contract
2094
+ */
2095
+ tokenId: string;
2096
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2097
+ }
2098
+
1734
2099
  type EvmNetworkOptions = {
1735
2100
  addresses: Array<string>;
1736
2101
  includeChains: Array<string>;
@@ -1825,17 +2190,6 @@ type OperationStatusResponse = {
1825
2190
  declare class OperationsService {
1826
2191
  readonly httpRequest: BaseHttpRequest;
1827
2192
  constructor(httpRequest: BaseHttpRequest);
1828
- /**
1829
- * Create transaction export operation
1830
- * Trigger a transaction export operation with given parameters.
1831
- *
1832
- * 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.
1833
- * @returns OperationStatusResponse
1834
- * @throws ApiError
1835
- */
1836
- postTransactionExportJob({ requestBody, }: {
1837
- requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1838
- }): CancelablePromise<OperationStatusResponse>;
1839
2193
  /**
1840
2194
  * Get operation
1841
2195
  * Gets operation details for the given operation id.
@@ -1848,6 +2202,17 @@ declare class OperationsService {
1848
2202
  */
1849
2203
  operationId: string;
1850
2204
  }): CancelablePromise<OperationStatusResponse>;
2205
+ /**
2206
+ * Create transaction export operation
2207
+ * Trigger a transaction export operation with given parameters.
2208
+ *
2209
+ * 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.
2210
+ * @returns OperationStatusResponse
2211
+ * @throws ApiError
2212
+ */
2213
+ postTransactionExportJob({ requestBody, }: {
2214
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2215
+ }): CancelablePromise<OperationStatusResponse>;
1851
2216
  }
1852
2217
 
1853
2218
  declare enum BlockchainIds {
@@ -1916,39 +2281,57 @@ type ListBlockchainsResponse = {
1916
2281
 
1917
2282
  type ActiveDelegatorDetails = {
1918
2283
  txHash: string;
2284
+ nodeId: string;
1919
2285
  rewardAddresses: Array<string>;
1920
2286
  amountDelegated: string;
1921
2287
  delegationFee: string;
1922
2288
  startTimestamp: number;
1923
2289
  endTimestamp: number;
1924
- delegationStatus: DelegationStatusType;
1925
2290
  estimatedGrossReward: string;
1926
2291
  estimatedNetReward: string;
2292
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1927
2293
  };
2294
+ declare namespace ActiveDelegatorDetails {
2295
+ enum delegationStatus {
2296
+ ACTIVE = "active"
2297
+ }
2298
+ }
1928
2299
 
1929
2300
  type CompletedDelegatorDetails = {
1930
2301
  txHash: string;
2302
+ nodeId: string;
1931
2303
  rewardAddresses: Array<string>;
1932
2304
  amountDelegated: string;
1933
2305
  delegationFee: string;
1934
2306
  startTimestamp: number;
1935
2307
  endTimestamp: number;
1936
- delegationStatus: DelegationStatusType;
1937
2308
  grossReward: string;
1938
2309
  netReward: string;
2310
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1939
2311
  };
2312
+ declare namespace CompletedDelegatorDetails {
2313
+ enum delegationStatus {
2314
+ COMPLETED = "completed"
2315
+ }
2316
+ }
1940
2317
 
1941
2318
  type PendingDelegatorDetails = {
1942
2319
  txHash: string;
2320
+ nodeId: string;
1943
2321
  rewardAddresses: Array<string>;
1944
2322
  amountDelegated: string;
1945
2323
  delegationFee: string;
1946
2324
  startTimestamp: number;
1947
2325
  endTimestamp: number;
1948
- delegationStatus: DelegationStatusType;
1949
2326
  estimatedGrossReward: string;
1950
2327
  estimatedNetReward: string;
2328
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1951
2329
  };
2330
+ declare namespace PendingDelegatorDetails {
2331
+ enum delegationStatus {
2332
+ PENDING = "pending"
2333
+ }
2334
+ }
1952
2335
 
1953
2336
  type ListDelegatorDetailsResponse = {
1954
2337
  /**
@@ -1986,49 +2369,86 @@ type ListSubnetsResponse = {
1986
2369
  type Rewards = {
1987
2370
  validationRewardAmount: string;
1988
2371
  delegationRewardAmount: string;
2372
+ rewardAddresses?: Array<string>;
2373
+ rewardTxHash?: string;
1989
2374
  };
1990
2375
 
1991
- declare enum ValidationStatusType {
1992
- COMPLETED = "completed",
1993
- ACTIVE = "active",
1994
- PENDING = "pending"
1995
- }
2376
+ type ValidatorHealthDetails = {
2377
+ /**
2378
+ * Percent of requests responded to in last polling.
2379
+ */
2380
+ reachabilityPercent: number;
2381
+ /**
2382
+ * Percent of requests benched on the P-Chain in last polling.
2383
+ */
2384
+ benchedPChainRequestsPercent: number;
2385
+ /**
2386
+ * Percentage of requests benched on the X-Chain in last polling.
2387
+ */
2388
+ benchedXChainRequestsPercent: number;
2389
+ /**
2390
+ * Percentage of requests benched on the C-Chain in last polling.
2391
+ */
2392
+ benchedCChainRequestsPercent: number;
2393
+ };
1996
2394
 
1997
2395
  type ActiveValidatorDetails = {
2396
+ txHash: string;
1998
2397
  nodeId: string;
2398
+ subnetId: string;
1999
2399
  amountStaked: string;
2000
- delegationFee: string;
2400
+ delegationFee?: string;
2001
2401
  startTimestamp: number;
2002
2402
  endTimestamp: number;
2003
- validationStatus: ValidationStatusType;
2004
2403
  stakePercentage: number;
2005
2404
  delegatorCount: number;
2006
- amountDelegated: string;
2405
+ amountDelegated?: string;
2007
2406
  uptimePerformance: number;
2008
- avalancheGoVersion: string;
2009
- delegationCapacity: string;
2407
+ avalancheGoVersion?: string;
2408
+ delegationCapacity?: string;
2010
2409
  potentialRewards: Rewards;
2410
+ validationStatus: ActiveValidatorDetails.validationStatus;
2411
+ validatorHealth: ValidatorHealthDetails;
2011
2412
  };
2413
+ declare namespace ActiveValidatorDetails {
2414
+ enum validationStatus {
2415
+ ACTIVE = "active"
2416
+ }
2417
+ }
2012
2418
 
2013
2419
  type CompletedValidatorDetails = {
2420
+ txHash: string;
2014
2421
  nodeId: string;
2422
+ subnetId: string;
2015
2423
  amountStaked: string;
2016
- delegationFee: string;
2424
+ delegationFee?: string;
2017
2425
  startTimestamp: number;
2018
2426
  endTimestamp: number;
2019
- validationStatus: ValidationStatusType;
2020
2427
  delegatorCount: number;
2021
2428
  rewards: Rewards;
2429
+ validationStatus: CompletedValidatorDetails.validationStatus;
2022
2430
  };
2431
+ declare namespace CompletedValidatorDetails {
2432
+ enum validationStatus {
2433
+ COMPLETED = "completed"
2434
+ }
2435
+ }
2023
2436
 
2024
2437
  type PendingValidatorDetails = {
2438
+ txHash: string;
2025
2439
  nodeId: string;
2440
+ subnetId: string;
2026
2441
  amountStaked: string;
2027
- delegationFee: string;
2442
+ delegationFee?: string;
2028
2443
  startTimestamp: number;
2029
2444
  endTimestamp: number;
2030
- validationStatus: ValidationStatusType;
2445
+ validationStatus: PendingValidatorDetails.validationStatus;
2031
2446
  };
2447
+ declare namespace PendingValidatorDetails {
2448
+ enum validationStatus {
2449
+ PENDING = "pending"
2450
+ }
2451
+ }
2032
2452
 
2033
2453
  type ListValidatorDetailsResponse = {
2034
2454
  /**
@@ -2036,7 +2456,7 @@ type ListValidatorDetailsResponse = {
2036
2456
  */
2037
2457
  nextPageToken?: string;
2038
2458
  /**
2039
- * The list of Validator Details.
2459
+ * The list of validator Details.
2040
2460
  */
2041
2461
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2042
2462
  };
@@ -2046,6 +2466,12 @@ declare enum Network {
2046
2466
  FUJI = "fuji"
2047
2467
  }
2048
2468
 
2469
+ declare enum ValidationStatusType {
2470
+ COMPLETED = "completed",
2471
+ ACTIVE = "active",
2472
+ PENDING = "pending"
2473
+ }
2474
+
2049
2475
  type XChainAssetDetails = {
2050
2476
  /**
2051
2477
  * Unique ID for an asset.
@@ -2188,7 +2614,7 @@ declare class PrimaryNetworkService {
2188
2614
  * @returns ListValidatorDetailsResponse
2189
2615
  * @throws ApiError
2190
2616
  */
2191
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2617
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2192
2618
  /**
2193
2619
  * Either mainnet or a testnet.
2194
2620
  */
@@ -2201,6 +2627,30 @@ declare class PrimaryNetworkService {
2201
2627
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2202
2628
  */
2203
2629
  pageToken?: string;
2630
+ /**
2631
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2632
+ */
2633
+ minTimeRemaining?: any;
2634
+ /**
2635
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2636
+ */
2637
+ maxTimeRemaining?: any;
2638
+ /**
2639
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2640
+ */
2641
+ minDelegationCapacity?: number;
2642
+ /**
2643
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2644
+ */
2645
+ maxDelegationCapacity?: number;
2646
+ /**
2647
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2648
+ */
2649
+ minFeePercentage?: any;
2650
+ /**
2651
+ * 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.
2652
+ */
2653
+ maxFeePercentage?: any;
2204
2654
  /**
2205
2655
  * A comma separated list of node ids to filter by.
2206
2656
  */
@@ -2214,9 +2664,9 @@ declare class PrimaryNetworkService {
2214
2664
  */
2215
2665
  validationStatus?: ValidationStatusType;
2216
2666
  /**
2217
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2667
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2218
2668
  */
2219
- minDelegationCapacity?: any;
2669
+ subnetId?: string;
2220
2670
  }): CancelablePromise<ListValidatorDetailsResponse>;
2221
2671
  /**
2222
2672
  * Get single validator details
@@ -2256,15 +2706,11 @@ declare class PrimaryNetworkService {
2256
2706
  * @returns ListDelegatorDetailsResponse
2257
2707
  * @throws ApiError
2258
2708
  */
2259
- listDelegators({ network, nodeId, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2709
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2260
2710
  /**
2261
2711
  * Either mainnet or a testnet.
2262
2712
  */
2263
2713
  network: Network;
2264
- /**
2265
- * A primary network (P or X chain) nodeId.
2266
- */
2267
- nodeId: string;
2268
2714
  /**
2269
2715
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2270
2716
  */
@@ -2273,6 +2719,10 @@ declare class PrimaryNetworkService {
2273
2719
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2274
2720
  */
2275
2721
  pageToken?: string;
2722
+ /**
2723
+ * A comma separated list of reward addresses to filter by.
2724
+ */
2725
+ rewardAddresses?: string;
2276
2726
  /**
2277
2727
  * 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.
2278
2728
  */
@@ -2281,10 +2731,6 @@ declare class PrimaryNetworkService {
2281
2731
  * Delegation status of the node.
2282
2732
  */
2283
2733
  delegationStatus?: DelegationStatusType;
2284
- /**
2285
- * A comma separated list of reward addresses to filter by.
2286
- */
2287
- rewardAddresses?: string;
2288
2734
  /**
2289
2735
  * A comma separated list of node ids to filter by.
2290
2736
  */
@@ -2533,6 +2979,7 @@ type GetPrimaryNetworkBlockResponse = {
2533
2979
  txCount: number;
2534
2980
  transactions: Array<string>;
2535
2981
  blockSizeBytes: number;
2982
+ currentSupply?: string;
2536
2983
  proposerDetails?: ProposerDetails;
2537
2984
  };
2538
2985
 
@@ -2545,6 +2992,7 @@ type PrimaryNetworkBlock = {
2545
2992
  txCount: number;
2546
2993
  transactions: Array<string>;
2547
2994
  blockSizeBytes: number;
2995
+ currentSupply?: string;
2548
2996
  proposerDetails?: ProposerDetails;
2549
2997
  };
2550
2998
 
@@ -2636,7 +3084,8 @@ declare class PrimaryNetworkBlocksService {
2636
3084
 
2637
3085
  declare enum RewardType {
2638
3086
  VALIDATOR = "VALIDATOR",
2639
- DELEGATOR = "DELEGATOR"
3087
+ DELEGATOR = "DELEGATOR",
3088
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2640
3089
  }
2641
3090
 
2642
3091
  type HistoricalReward = {
@@ -2702,7 +3151,7 @@ declare class PrimaryNetworkRewardsService {
2702
3151
  * @returns ListPendingRewardsResponse
2703
3152
  * @throws ApiError
2704
3153
  */
2705
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3154
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2706
3155
  /**
2707
3156
  * Either mainnet or a testnet.
2708
3157
  */
@@ -2719,6 +3168,10 @@ declare class PrimaryNetworkRewardsService {
2719
3168
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2720
3169
  */
2721
3170
  pageToken?: string;
3171
+ /**
3172
+ * A comma separated list of node ids to filter by.
3173
+ */
3174
+ nodeIds?: string;
2722
3175
  /**
2723
3176
  * 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.
2724
3177
  */
@@ -2730,7 +3183,7 @@ declare class PrimaryNetworkRewardsService {
2730
3183
  * @returns ListHistoricalRewardsResponse
2731
3184
  * @throws ApiError
2732
3185
  */
2733
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3186
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2734
3187
  /**
2735
3188
  * Either mainnet or a testnet.
2736
3189
  */
@@ -2747,6 +3200,10 @@ declare class PrimaryNetworkRewardsService {
2747
3200
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2748
3201
  */
2749
3202
  pageToken?: string;
3203
+ /**
3204
+ * A comma separated list of node ids to filter by.
3205
+ */
3206
+ nodeIds?: string;
2750
3207
  /**
2751
3208
  * 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.
2752
3209
  */
@@ -3001,6 +3458,7 @@ declare enum PChainTransactionType {
3001
3458
  ADD_VALIDATOR_TX = "AddValidatorTx",
3002
3459
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3003
3460
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3004
3462
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3005
3463
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3006
3464
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3103,6 +3561,7 @@ type PChainTransaction = {
3103
3561
  */
3104
3562
  estimatedReward?: string;
3105
3563
  rewardTxHash?: string;
3564
+ rewardAddresses?: Array<string>;
3106
3565
  memo?: string;
3107
3566
  /**
3108
3567
  * Present for RewardValidatorTx
@@ -3119,6 +3578,15 @@ type ListPChainTransactionsResponse = {
3119
3578
  chainInfo: PrimaryNetworkChainInfo;
3120
3579
  };
3121
3580
 
3581
+ declare enum XChainTransactionType {
3582
+ BASE_TX = "BaseTx",
3583
+ CREATE_ASSET_TX = "CreateAssetTx",
3584
+ OPERATION_TX = "OperationTx",
3585
+ IMPORT_TX = "ImportTx",
3586
+ EXPORT_TX = "ExportTx",
3587
+ UNKNOWN = "UNKNOWN"
3588
+ }
3589
+
3122
3590
  type XChainLinearTransaction = {
3123
3591
  /**
3124
3592
  * Unique ID for this transaction.
@@ -3135,7 +3603,7 @@ type XChainLinearTransaction = {
3135
3603
  /**
3136
3604
  * Type of transaction.
3137
3605
  */
3138
- txType: string;
3606
+ txType: XChainTransactionType;
3139
3607
  /**
3140
3608
  * Hex encoded memo bytes for this transaction.
3141
3609
  */
@@ -3212,7 +3680,7 @@ type XChainNonLinearTransaction = {
3212
3680
  /**
3213
3681
  * Type of transaction.
3214
3682
  */
3215
- txType: string;
3683
+ txType: XChainTransactionType;
3216
3684
  /**
3217
3685
  * Hex encoded memo bytes for this transaction.
3218
3686
  */
@@ -3272,6 +3740,7 @@ declare enum PrimaryNetworkTxType {
3272
3740
  ADD_VALIDATOR_TX = "AddValidatorTx",
3273
3741
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3274
3742
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3275
3744
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3276
3745
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3277
3746
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3311,7 +3780,11 @@ declare class PrimaryNetworkTransactionsService {
3311
3780
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3312
3781
  /**
3313
3782
  * List latest transactions
3314
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3783
+ * Lists the latest transactions on one of the Primary Network chains.
3784
+ *
3785
+ * Transactions are filterable by addresses.
3786
+ *
3787
+ * 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.
3315
3788
  * @returns any
3316
3789
  * @throws ApiError
3317
3790
  */
@@ -3605,11 +4078,14 @@ declare class PrimaryNetworkVerticesService {
3605
4078
 
3606
4079
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3607
4080
  declare class Glacier {
4081
+ readonly default: DefaultService;
3608
4082
  readonly evmBalances: EvmBalancesService;
3609
4083
  readonly evmBlocks: EvmBlocksService;
3610
4084
  readonly evmChains: EvmChainsService;
4085
+ readonly evmContracts: EvmContractsService;
3611
4086
  readonly evmTransactions: EvmTransactionsService;
3612
4087
  readonly healthCheck: HealthCheckService;
4088
+ readonly nfTs: NfTsService;
3613
4089
  readonly operations: OperationsService;
3614
4090
  readonly primaryNetwork: PrimaryNetworkService;
3615
4091
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3639,4 +4115,4 @@ declare class ApiError extends Error {
3639
4115
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3640
4116
  }
3641
4117
 
3642
- 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 };
4118
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };