@avalabs/glacier-sdk 2.8.0-canary.5d1a4c1.0 → 2.8.0-canary.62976f2.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 (80) hide show
  1. package/dist/index.d.ts +721 -227
  2. package/dist/index.js +284 -11
  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 +9 -0
  10. package/esm/generated/models/ChainInfo.d.ts +1 -0
  11. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  12. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  13. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  14. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  15. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  16. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  17. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  18. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  19. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  20. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  21. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  22. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  23. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  24. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  25. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  26. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  27. package/esm/generated/models/EventType.d.ts +5 -0
  28. package/esm/generated/models/EventType.js +6 -0
  29. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  30. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  31. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  32. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  33. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  34. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  35. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  36. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  37. package/esm/generated/models/PChainTransactionType.js +1 -0
  38. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  39. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  40. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  41. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  42. package/esm/generated/models/PricingProviders.d.ts +5 -0
  43. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  44. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  45. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  46. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  47. package/esm/generated/models/RewardType.d.ts +2 -1
  48. package/esm/generated/models/RewardType.js +1 -0
  49. package/esm/generated/models/Rewards.d.ts +2 -0
  50. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  51. package/esm/generated/models/UnknownContract.d.ts +0 -1
  52. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  53. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  54. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  55. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  56. package/esm/generated/models/WebhookStatus.js +7 -0
  57. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  58. package/esm/generated/models/WebhookStatusType.js +7 -0
  59. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  60. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  61. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  62. package/esm/generated/models/XChainTransactionType.js +11 -0
  63. package/esm/generated/services/DefaultService.d.ts +67 -0
  64. package/esm/generated/services/DefaultService.js +55 -0
  65. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  66. package/esm/generated/services/EvmContractsService.js +36 -0
  67. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  68. package/esm/generated/services/EvmTransactionsService.js +1 -1
  69. package/esm/generated/services/NfTsService.d.ts +76 -0
  70. package/esm/generated/services/NfTsService.js +56 -0
  71. package/esm/generated/services/OperationsService.d.ts +11 -11
  72. package/esm/generated/services/OperationsService.js +10 -10
  73. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  74. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  75. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
  76. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  77. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
  78. package/esm/index.d.ts +21 -0
  79. package/esm/index.js +17 -0
  80. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -60,6 +60,118 @@ 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
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
112
+ declare enum WebhookStatus {
113
+ ACTIVE = "active",
114
+ INACTIVE = "inactive"
115
+ }
116
+
117
+ declare class DefaultService {
118
+ readonly httpRequest: BaseHttpRequest;
119
+ constructor(httpRequest: BaseHttpRequest);
120
+ /**
121
+ * @returns any
122
+ * @throws ApiError
123
+ */
124
+ mediaControllerUploadImage(): CancelablePromise<any>;
125
+ /**
126
+ * Register a webhook
127
+ * Registers a new webhook.
128
+ * @returns WebhookResponse
129
+ * @throws ApiError
130
+ */
131
+ registerWebhook({ requestBody, }: {
132
+ requestBody: RegisterWebhookRequest;
133
+ }): CancelablePromise<WebhookResponse>;
134
+ /**
135
+ * List webhooks
136
+ * Lists webhooks for the user.
137
+ * @returns ListWebhooksResponse
138
+ * @throws ApiError
139
+ */
140
+ listWebhooks({ pageSize, pageToken, status, }: {
141
+ /**
142
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
143
+ */
144
+ pageSize?: number;
145
+ /**
146
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
147
+ */
148
+ pageToken?: string;
149
+ /**
150
+ * 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.
151
+ */
152
+ status?: WebhookStatus;
153
+ }): CancelablePromise<ListWebhooksResponse>;
154
+ /**
155
+ * Deactivate a webhook
156
+ * Deactivates a webhook by ID.
157
+ * @returns WebhookResponse
158
+ * @throws ApiError
159
+ */
160
+ deactivateWebhook({ id, }: {
161
+ /**
162
+ * The webhook identifier.
163
+ */
164
+ id: string;
165
+ }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
173
+ }
174
+
63
175
  declare enum CurrencyCode {
64
176
  USD = "usd",
65
177
  EUR = "eur",
@@ -680,6 +792,7 @@ type GetChainResponse = {
680
792
  utilityAddresses?: UtilityAddresses;
681
793
  networkToken: NetworkToken;
682
794
  chainLogoUri?: string;
795
+ private?: boolean;
683
796
  };
684
797
 
685
798
  type ChainInfo = {
@@ -701,6 +814,7 @@ type ChainInfo = {
701
814
  utilityAddresses?: UtilityAddresses;
702
815
  networkToken: NetworkToken;
703
816
  chainLogoUri?: string;
817
+ private?: boolean;
704
818
  };
705
819
 
706
820
  type ListChainsResponse = {
@@ -741,6 +855,322 @@ declare class EvmChainsService {
741
855
  }): CancelablePromise<GetChainResponse>;
742
856
  }
743
857
 
858
+ type ImageAsset = {
859
+ assetId?: string;
860
+ /**
861
+ * OUTPUT ONLY
862
+ */
863
+ imageUri?: string;
864
+ };
865
+
866
+ type PricingProviders = {
867
+ coingeckoCoinId?: string;
868
+ };
869
+
870
+ declare enum ResourceLinkType {
871
+ BLOG = "Blog",
872
+ COIN_GECKO = "CoinGecko",
873
+ COIN_MARKET_CAP = "CoinMarketCap",
874
+ DISCORD = "Discord",
875
+ DOCUMENTATION = "Documentation",
876
+ FACEBOOK = "Facebook",
877
+ GITHUB = "Github",
878
+ INSTAGRAM = "Instagram",
879
+ LINKED_IN = "LinkedIn",
880
+ MEDIUM = "Medium",
881
+ REDDIT = "Reddit",
882
+ SUPPORT = "Support",
883
+ TELEGRAM = "Telegram",
884
+ TIK_TOK = "TikTok",
885
+ TWITTER = "Twitter",
886
+ WEBSITE = "Website",
887
+ WHITEPAPER = "Whitepaper",
888
+ YOUTUBE = "Youtube"
889
+ }
890
+
891
+ type ResourceLink = {
892
+ type: ResourceLinkType;
893
+ url: string;
894
+ };
895
+
896
+ type ContractSubmissionErc1155 = {
897
+ description?: string;
898
+ officialSite?: string;
899
+ email?: string;
900
+ logoAsset?: ImageAsset;
901
+ bannerAsset?: ImageAsset;
902
+ color?: string;
903
+ resourceLinks?: Array<ResourceLink>;
904
+ tags?: Array<string>;
905
+ /**
906
+ * The contract name.
907
+ */
908
+ name: string;
909
+ ercType: ContractSubmissionErc1155.ercType;
910
+ /**
911
+ * The contract symbol.
912
+ */
913
+ symbol: string;
914
+ pricingProviders?: PricingProviders;
915
+ };
916
+ declare namespace ContractSubmissionErc1155 {
917
+ enum ercType {
918
+ ERC_1155 = "ERC-1155"
919
+ }
920
+ }
921
+
922
+ type ContractSubmissionErc20 = {
923
+ description?: string;
924
+ officialSite?: string;
925
+ email?: string;
926
+ logoAsset?: ImageAsset;
927
+ bannerAsset?: ImageAsset;
928
+ color?: string;
929
+ resourceLinks?: Array<ResourceLink>;
930
+ tags?: Array<string>;
931
+ /**
932
+ * The contract name.
933
+ */
934
+ name: string;
935
+ ercType: ContractSubmissionErc20.ercType;
936
+ /**
937
+ * The contract symbol.
938
+ */
939
+ symbol: string;
940
+ pricingProviders?: PricingProviders;
941
+ };
942
+ declare namespace ContractSubmissionErc20 {
943
+ enum ercType {
944
+ ERC_20 = "ERC-20"
945
+ }
946
+ }
947
+
948
+ type ContractSubmissionErc721 = {
949
+ description?: string;
950
+ officialSite?: string;
951
+ email?: string;
952
+ logoAsset?: ImageAsset;
953
+ bannerAsset?: ImageAsset;
954
+ color?: string;
955
+ resourceLinks?: Array<ResourceLink>;
956
+ tags?: Array<string>;
957
+ /**
958
+ * The contract name.
959
+ */
960
+ name: string;
961
+ ercType: ContractSubmissionErc721.ercType;
962
+ /**
963
+ * The contract symbol.
964
+ */
965
+ symbol: string;
966
+ };
967
+ declare namespace ContractSubmissionErc721 {
968
+ enum ercType {
969
+ ERC_721 = "ERC-721"
970
+ }
971
+ }
972
+
973
+ type ContractSubmissionUnknown = {
974
+ description?: string;
975
+ officialSite?: string;
976
+ email?: string;
977
+ logoAsset?: ImageAsset;
978
+ bannerAsset?: ImageAsset;
979
+ color?: string;
980
+ resourceLinks?: Array<ResourceLink>;
981
+ tags?: Array<string>;
982
+ /**
983
+ * The contract name.
984
+ */
985
+ name: string;
986
+ ercType: ContractSubmissionUnknown.ercType;
987
+ };
988
+ declare namespace ContractSubmissionUnknown {
989
+ enum ercType {
990
+ UNKNOWN = "UNKNOWN"
991
+ }
992
+ }
993
+
994
+ type ContractSubmissionBody = {
995
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
996
+ };
997
+
998
+ type ContractDeploymentDetails = {
999
+ txHash: string;
1000
+ /**
1001
+ * The address that initiated the transaction which deployed this contract.
1002
+ */
1003
+ deployerAddress: string;
1004
+ /**
1005
+ * 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.
1006
+ */
1007
+ deployerContractAddress?: string;
1008
+ };
1009
+
1010
+ type Erc1155Contract = {
1011
+ /**
1012
+ * The contract name.
1013
+ */
1014
+ name?: string;
1015
+ description?: string;
1016
+ officialSite?: string;
1017
+ email?: string;
1018
+ logoAsset?: ImageAsset;
1019
+ bannerAsset?: ImageAsset;
1020
+ color?: string;
1021
+ resourceLinks?: Array<ResourceLink>;
1022
+ tags?: Array<string>;
1023
+ /**
1024
+ * A wallet or contract address in mixed-case checksum encoding.
1025
+ */
1026
+ address: string;
1027
+ deploymentDetails: ContractDeploymentDetails;
1028
+ ercType: Erc1155Contract.ercType;
1029
+ /**
1030
+ * The contract symbol.
1031
+ */
1032
+ symbol?: string;
1033
+ pricingProviders?: PricingProviders;
1034
+ };
1035
+ declare namespace Erc1155Contract {
1036
+ enum ercType {
1037
+ ERC_1155 = "ERC-1155"
1038
+ }
1039
+ }
1040
+
1041
+ type Erc20Contract = {
1042
+ /**
1043
+ * The contract name.
1044
+ */
1045
+ name?: string;
1046
+ description?: string;
1047
+ officialSite?: string;
1048
+ email?: string;
1049
+ logoAsset?: ImageAsset;
1050
+ bannerAsset?: ImageAsset;
1051
+ color?: string;
1052
+ resourceLinks?: Array<ResourceLink>;
1053
+ tags?: Array<string>;
1054
+ /**
1055
+ * A wallet or contract address in mixed-case checksum encoding.
1056
+ */
1057
+ address: string;
1058
+ deploymentDetails: ContractDeploymentDetails;
1059
+ ercType: Erc20Contract.ercType;
1060
+ /**
1061
+ * The contract symbol.
1062
+ */
1063
+ symbol?: string;
1064
+ /**
1065
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1066
+ */
1067
+ decimals: number;
1068
+ pricingProviders?: PricingProviders;
1069
+ };
1070
+ declare namespace Erc20Contract {
1071
+ enum ercType {
1072
+ ERC_20 = "ERC-20"
1073
+ }
1074
+ }
1075
+
1076
+ type Erc721Contract = {
1077
+ /**
1078
+ * The contract name.
1079
+ */
1080
+ name?: string;
1081
+ description?: string;
1082
+ officialSite?: string;
1083
+ email?: string;
1084
+ logoAsset?: ImageAsset;
1085
+ bannerAsset?: ImageAsset;
1086
+ color?: string;
1087
+ resourceLinks?: Array<ResourceLink>;
1088
+ tags?: Array<string>;
1089
+ /**
1090
+ * A wallet or contract address in mixed-case checksum encoding.
1091
+ */
1092
+ address: string;
1093
+ deploymentDetails: ContractDeploymentDetails;
1094
+ ercType: Erc721Contract.ercType;
1095
+ /**
1096
+ * The contract symbol.
1097
+ */
1098
+ symbol?: string;
1099
+ };
1100
+ declare namespace Erc721Contract {
1101
+ enum ercType {
1102
+ ERC_721 = "ERC-721"
1103
+ }
1104
+ }
1105
+
1106
+ type UnknownContract = {
1107
+ /**
1108
+ * The contract name.
1109
+ */
1110
+ name?: string;
1111
+ description?: string;
1112
+ officialSite?: string;
1113
+ email?: string;
1114
+ logoAsset?: ImageAsset;
1115
+ bannerAsset?: ImageAsset;
1116
+ color?: string;
1117
+ resourceLinks?: Array<ResourceLink>;
1118
+ tags?: Array<string>;
1119
+ /**
1120
+ * A wallet or contract address in mixed-case checksum encoding.
1121
+ */
1122
+ address: string;
1123
+ deploymentDetails: ContractDeploymentDetails;
1124
+ ercType: UnknownContract.ercType;
1125
+ };
1126
+ declare namespace UnknownContract {
1127
+ enum ercType {
1128
+ UNKNOWN = "UNKNOWN"
1129
+ }
1130
+ }
1131
+
1132
+ type UpdateContractResponse = {
1133
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
1134
+ };
1135
+
1136
+ declare class EvmContractsService {
1137
+ readonly httpRequest: BaseHttpRequest;
1138
+ constructor(httpRequest: BaseHttpRequest);
1139
+ /**
1140
+ * Get contract metadata
1141
+ * Gets metadata about the contract at the given address.
1142
+ * @returns any
1143
+ * @throws ApiError
1144
+ */
1145
+ getContractMetadata({ chainId, address, }: {
1146
+ /**
1147
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1148
+ */
1149
+ chainId: string;
1150
+ /**
1151
+ * Contract address on the relevant chain.
1152
+ */
1153
+ address: string;
1154
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1155
+ /**
1156
+ * Update contract information
1157
+ * Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
1158
+ * @returns UpdateContractResponse
1159
+ * @throws ApiError
1160
+ */
1161
+ updateContractInfo({ chainId, address, requestBody, }: {
1162
+ /**
1163
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1164
+ */
1165
+ chainId: string;
1166
+ /**
1167
+ * Contract address on the relevant chain.
1168
+ */
1169
+ address: string;
1170
+ requestBody: ContractSubmissionBody;
1171
+ }): CancelablePromise<UpdateContractResponse>;
1172
+ }
1173
+
744
1174
  type Erc1155Token = {
745
1175
  /**
746
1176
  * A wallet or contract address in mixed-case checksum encoding.
@@ -975,206 +1405,36 @@ type NetworkTokenDetails = {
975
1405
  /**
976
1406
  * 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
1407
  */
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
- assetId?: string;
1016
- /**
1017
- * OUTPUT ONLY
1018
- */
1019
- imageUri?: string;
1020
- };
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"
1041
- }
1042
-
1043
- type ResourceLink = {
1044
- type: ResourceLinkType;
1045
- url: string;
1046
- };
1047
-
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>;
1062
- /**
1063
- * A wallet or contract address in mixed-case checksum encoding.
1064
- */
1065
- address: string;
1066
- deploymentDetails: ContractDeploymentDetails;
1067
- ercType: Erc1155Contract.ercType;
1068
- /**
1069
- * The contract symbol.
1070
- */
1071
- symbol?: string;
1072
- };
1073
- declare namespace Erc1155Contract {
1074
- enum ercType {
1075
- ERC_1155 = "ERC-1155"
1076
- }
1077
- }
1078
-
1079
- type Erc20Contract = {
1080
- /**
1081
- * The contract name.
1082
- */
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>;
1093
- /**
1094
- * A wallet or contract address in mixed-case checksum encoding.
1095
- */
1096
- address: string;
1097
- deploymentDetails: ContractDeploymentDetails;
1098
- ercType: Erc20Contract.ercType;
1099
- /**
1100
- * The contract symbol.
1101
- */
1102
- symbol?: string;
1103
- /**
1104
- * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
1105
- */
1106
- decimals: number;
1408
+ historicalPrice?: Money;
1107
1409
  };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1112
- }
1113
1410
 
1114
- type Erc721Contract = {
1115
- /**
1116
- * The contract name.
1117
- */
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>;
1411
+ type GetTransactionResponse = {
1128
1412
  /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1413
+ * The list of ERC-20 transfers.
1130
1414
  */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1415
+ erc20Transfers?: Array<Erc20TransferDetails>;
1134
1416
  /**
1135
- * The contract symbol.
1417
+ * The list of ERC-721 transfers.
1136
1418
  */
1137
- symbol?: string;
1138
- };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
-
1145
- type UnknownContract = {
1419
+ erc721Transfers?: Array<Erc721TransferDetails>;
1146
1420
  /**
1147
- * The contract name.
1421
+ * The list of ERC-1155 transfers.
1148
1422
  */
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>;
1423
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1159
1424
  /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
1425
+ * 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.
1161
1426
  */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1427
+ internalTransactions?: Array<InternalTransactionDetails>;
1428
+ networkTokenDetails: NetworkTokenDetails;
1429
+ nativeTransaction: FullNativeTransactionDetails;
1165
1430
  };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
1431
 
1172
1432
  type ListContractsResponse = {
1173
1433
  /**
1174
1434
  * 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
1435
  */
1176
1436
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1437
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1438
  };
1179
1439
 
1180
1440
  type Erc1155Transfer = {
@@ -1479,7 +1739,13 @@ declare class EvmTransactionsService {
1479
1739
  * A wallet address.
1480
1740
  */
1481
1741
  address: string;
1742
+ /**
1743
+ * 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.
1744
+ */
1482
1745
  startBlock?: number;
1746
+ /**
1747
+ * 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.
1748
+ */
1483
1749
  endBlock?: number;
1484
1750
  /**
1485
1751
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1515,7 +1781,13 @@ declare class EvmTransactionsService {
1515
1781
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1516
1782
  */
1517
1783
  pageToken?: string;
1784
+ /**
1785
+ * 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.
1786
+ */
1518
1787
  startBlock?: number;
1788
+ /**
1789
+ * 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.
1790
+ */
1519
1791
  endBlock?: number;
1520
1792
  /**
1521
1793
  * 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.
@@ -1537,7 +1809,13 @@ declare class EvmTransactionsService {
1537
1809
  * A wallet address.
1538
1810
  */
1539
1811
  address: string;
1812
+ /**
1813
+ * 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.
1814
+ */
1540
1815
  startBlock?: number;
1816
+ /**
1817
+ * 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.
1818
+ */
1541
1819
  endBlock?: number;
1542
1820
  /**
1543
1821
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1563,7 +1841,13 @@ declare class EvmTransactionsService {
1563
1841
  * A wallet address.
1564
1842
  */
1565
1843
  address: string;
1844
+ /**
1845
+ * 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.
1846
+ */
1566
1847
  startBlock?: number;
1848
+ /**
1849
+ * 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.
1850
+ */
1567
1851
  endBlock?: number;
1568
1852
  /**
1569
1853
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1589,7 +1873,13 @@ declare class EvmTransactionsService {
1589
1873
  * A wallet address.
1590
1874
  */
1591
1875
  address: string;
1876
+ /**
1877
+ * 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.
1878
+ */
1592
1879
  startBlock?: number;
1880
+ /**
1881
+ * 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.
1882
+ */
1593
1883
  endBlock?: number;
1594
1884
  /**
1595
1885
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1615,7 +1905,13 @@ declare class EvmTransactionsService {
1615
1905
  * A wallet address.
1616
1906
  */
1617
1907
  address: string;
1908
+ /**
1909
+ * 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.
1910
+ */
1618
1911
  startBlock?: number;
1912
+ /**
1913
+ * 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.
1914
+ */
1619
1915
  endBlock?: number;
1620
1916
  /**
1621
1917
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1643,7 +1939,13 @@ declare class EvmTransactionsService {
1643
1939
  * A wallet address.
1644
1940
  */
1645
1941
  address: string;
1942
+ /**
1943
+ * 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.
1944
+ */
1646
1945
  startBlock?: number;
1946
+ /**
1947
+ * 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.
1948
+ */
1647
1949
  endBlock?: number;
1648
1950
  /**
1649
1951
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1728,6 +2030,83 @@ declare class HealthCheckService {
1728
2030
  }>;
1729
2031
  }
1730
2032
 
2033
+ type ListNftTokens = {
2034
+ /**
2035
+ * 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.
2036
+ */
2037
+ nextPageToken?: string;
2038
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
2039
+ };
2040
+
2041
+ declare class NfTsService {
2042
+ readonly httpRequest: BaseHttpRequest;
2043
+ constructor(httpRequest: BaseHttpRequest);
2044
+ /**
2045
+ * Reindex NFT metadata
2046
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
2047
+ * @returns any
2048
+ * @throws ApiError
2049
+ */
2050
+ reindexNft({ chainId, address, tokenId, }: {
2051
+ /**
2052
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2053
+ */
2054
+ chainId: string;
2055
+ /**
2056
+ * Contract address on the relevant chain.
2057
+ */
2058
+ address: string;
2059
+ /**
2060
+ * TokenId on the contract
2061
+ */
2062
+ tokenId: string;
2063
+ }): CancelablePromise<any>;
2064
+ /**
2065
+ * List tokens
2066
+ * Lists tokens for an NFT contract.
2067
+ * @returns ListNftTokens
2068
+ * @throws ApiError
2069
+ */
2070
+ listTokens({ chainId, address, pageSize, pageToken, }: {
2071
+ /**
2072
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2073
+ */
2074
+ chainId: string;
2075
+ /**
2076
+ * Contract address on the relevant chain.
2077
+ */
2078
+ address: string;
2079
+ /**
2080
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2081
+ */
2082
+ pageSize?: number;
2083
+ /**
2084
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2085
+ */
2086
+ pageToken?: string;
2087
+ }): CancelablePromise<ListNftTokens>;
2088
+ /**
2089
+ * Get token details
2090
+ * Gets token details for a specific token of an NFT contract.
2091
+ * @returns any
2092
+ * @throws ApiError
2093
+ */
2094
+ getTokenDetails({ chainId, address, tokenId, }: {
2095
+ /**
2096
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
2097
+ */
2098
+ chainId: string;
2099
+ /**
2100
+ * Contract address on the relevant chain.
2101
+ */
2102
+ address: string;
2103
+ /**
2104
+ * TokenId on the contract
2105
+ */
2106
+ tokenId: string;
2107
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
2108
+ }
2109
+
1731
2110
  type EvmNetworkOptions = {
1732
2111
  addresses: Array<string>;
1733
2112
  includeChains: Array<string>;
@@ -1822,17 +2201,6 @@ type OperationStatusResponse = {
1822
2201
  declare class OperationsService {
1823
2202
  readonly httpRequest: BaseHttpRequest;
1824
2203
  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
2204
  /**
1837
2205
  * Get operation
1838
2206
  * Gets operation details for the given operation id.
@@ -1845,6 +2213,17 @@ declare class OperationsService {
1845
2213
  */
1846
2214
  operationId: string;
1847
2215
  }): CancelablePromise<OperationStatusResponse>;
2216
+ /**
2217
+ * Create transaction export operation
2218
+ * Trigger a transaction export operation with given parameters.
2219
+ *
2220
+ * 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.
2221
+ * @returns OperationStatusResponse
2222
+ * @throws ApiError
2223
+ */
2224
+ postTransactionExportJob({ requestBody, }: {
2225
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
2226
+ }): CancelablePromise<OperationStatusResponse>;
1848
2227
  }
1849
2228
 
1850
2229
  declare enum BlockchainIds {
@@ -1913,39 +2292,57 @@ type ListBlockchainsResponse = {
1913
2292
 
1914
2293
  type ActiveDelegatorDetails = {
1915
2294
  txHash: string;
2295
+ nodeId: string;
1916
2296
  rewardAddresses: Array<string>;
1917
2297
  amountDelegated: string;
1918
2298
  delegationFee: string;
1919
2299
  startTimestamp: number;
1920
2300
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
2301
  estimatedGrossReward: string;
1923
2302
  estimatedNetReward: string;
2303
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
2304
  };
2305
+ declare namespace ActiveDelegatorDetails {
2306
+ enum delegationStatus {
2307
+ ACTIVE = "active"
2308
+ }
2309
+ }
1925
2310
 
1926
2311
  type CompletedDelegatorDetails = {
1927
2312
  txHash: string;
2313
+ nodeId: string;
1928
2314
  rewardAddresses: Array<string>;
1929
2315
  amountDelegated: string;
1930
2316
  delegationFee: string;
1931
2317
  startTimestamp: number;
1932
2318
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2319
  grossReward: string;
1935
2320
  netReward: string;
2321
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2322
  };
2323
+ declare namespace CompletedDelegatorDetails {
2324
+ enum delegationStatus {
2325
+ COMPLETED = "completed"
2326
+ }
2327
+ }
1937
2328
 
1938
2329
  type PendingDelegatorDetails = {
1939
2330
  txHash: string;
2331
+ nodeId: string;
1940
2332
  rewardAddresses: Array<string>;
1941
2333
  amountDelegated: string;
1942
2334
  delegationFee: string;
1943
2335
  startTimestamp: number;
1944
2336
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2337
  estimatedGrossReward: string;
1947
2338
  estimatedNetReward: string;
2339
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2340
  };
2341
+ declare namespace PendingDelegatorDetails {
2342
+ enum delegationStatus {
2343
+ PENDING = "pending"
2344
+ }
2345
+ }
1949
2346
 
1950
2347
  type ListDelegatorDetailsResponse = {
1951
2348
  /**
@@ -1983,49 +2380,86 @@ type ListSubnetsResponse = {
1983
2380
  type Rewards = {
1984
2381
  validationRewardAmount: string;
1985
2382
  delegationRewardAmount: string;
2383
+ rewardAddresses?: Array<string>;
2384
+ rewardTxHash?: string;
1986
2385
  };
1987
2386
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
2387
+ type ValidatorHealthDetails = {
2388
+ /**
2389
+ * Percent of requests responded to in last polling.
2390
+ */
2391
+ reachabilityPercent: number;
2392
+ /**
2393
+ * Percent of requests benched on the P-Chain in last polling.
2394
+ */
2395
+ benchedPChainRequestsPercent: number;
2396
+ /**
2397
+ * Percentage of requests benched on the X-Chain in last polling.
2398
+ */
2399
+ benchedXChainRequestsPercent: number;
2400
+ /**
2401
+ * Percentage of requests benched on the C-Chain in last polling.
2402
+ */
2403
+ benchedCChainRequestsPercent: number;
2404
+ };
1993
2405
 
1994
2406
  type ActiveValidatorDetails = {
2407
+ txHash: string;
1995
2408
  nodeId: string;
2409
+ subnetId: string;
1996
2410
  amountStaked: string;
1997
- delegationFee: string;
2411
+ delegationFee?: string;
1998
2412
  startTimestamp: number;
1999
2413
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2414
  stakePercentage: number;
2002
2415
  delegatorCount: number;
2003
- amountDelegated: string;
2416
+ amountDelegated?: string;
2004
2417
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2418
+ avalancheGoVersion?: string;
2419
+ delegationCapacity?: string;
2007
2420
  potentialRewards: Rewards;
2421
+ validationStatus: ActiveValidatorDetails.validationStatus;
2422
+ validatorHealth: ValidatorHealthDetails;
2008
2423
  };
2424
+ declare namespace ActiveValidatorDetails {
2425
+ enum validationStatus {
2426
+ ACTIVE = "active"
2427
+ }
2428
+ }
2009
2429
 
2010
2430
  type CompletedValidatorDetails = {
2431
+ txHash: string;
2011
2432
  nodeId: string;
2433
+ subnetId: string;
2012
2434
  amountStaked: string;
2013
- delegationFee: string;
2435
+ delegationFee?: string;
2014
2436
  startTimestamp: number;
2015
2437
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2438
  delegatorCount: number;
2018
2439
  rewards: Rewards;
2440
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2441
  };
2442
+ declare namespace CompletedValidatorDetails {
2443
+ enum validationStatus {
2444
+ COMPLETED = "completed"
2445
+ }
2446
+ }
2020
2447
 
2021
2448
  type PendingValidatorDetails = {
2449
+ txHash: string;
2022
2450
  nodeId: string;
2451
+ subnetId: string;
2023
2452
  amountStaked: string;
2024
- delegationFee: string;
2453
+ delegationFee?: string;
2025
2454
  startTimestamp: number;
2026
2455
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2456
+ validationStatus: PendingValidatorDetails.validationStatus;
2028
2457
  };
2458
+ declare namespace PendingValidatorDetails {
2459
+ enum validationStatus {
2460
+ PENDING = "pending"
2461
+ }
2462
+ }
2029
2463
 
2030
2464
  type ListValidatorDetailsResponse = {
2031
2465
  /**
@@ -2033,7 +2467,7 @@ type ListValidatorDetailsResponse = {
2033
2467
  */
2034
2468
  nextPageToken?: string;
2035
2469
  /**
2036
- * The list of Validator Details.
2470
+ * The list of validator Details.
2037
2471
  */
2038
2472
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2039
2473
  };
@@ -2043,6 +2477,12 @@ declare enum Network {
2043
2477
  FUJI = "fuji"
2044
2478
  }
2045
2479
 
2480
+ declare enum ValidationStatusType {
2481
+ COMPLETED = "completed",
2482
+ ACTIVE = "active",
2483
+ PENDING = "pending"
2484
+ }
2485
+
2046
2486
  type XChainAssetDetails = {
2047
2487
  /**
2048
2488
  * Unique ID for an asset.
@@ -2185,7 +2625,7 @@ declare class PrimaryNetworkService {
2185
2625
  * @returns ListValidatorDetailsResponse
2186
2626
  * @throws ApiError
2187
2627
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2628
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2189
2629
  /**
2190
2630
  * Either mainnet or a testnet.
2191
2631
  */
@@ -2198,6 +2638,30 @@ declare class PrimaryNetworkService {
2198
2638
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2639
  */
2200
2640
  pageToken?: string;
2641
+ /**
2642
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2643
+ */
2644
+ minTimeRemaining?: any;
2645
+ /**
2646
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2647
+ */
2648
+ maxTimeRemaining?: any;
2649
+ /**
2650
+ * 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
2651
+ */
2652
+ minDelegationCapacity?: number;
2653
+ /**
2654
+ * 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.
2655
+ */
2656
+ maxDelegationCapacity?: number;
2657
+ /**
2658
+ * 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.
2659
+ */
2660
+ minFeePercentage?: any;
2661
+ /**
2662
+ * 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.
2663
+ */
2664
+ maxFeePercentage?: any;
2201
2665
  /**
2202
2666
  * A comma separated list of node ids to filter by.
2203
2667
  */
@@ -2211,9 +2675,9 @@ declare class PrimaryNetworkService {
2211
2675
  */
2212
2676
  validationStatus?: ValidationStatusType;
2213
2677
  /**
2214
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2678
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2215
2679
  */
2216
- minDelegationCapacity?: any;
2680
+ subnetId?: string;
2217
2681
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2682
  /**
2219
2683
  * Get single validator details
@@ -2253,7 +2717,7 @@ declare class PrimaryNetworkService {
2253
2717
  * @returns ListDelegatorDetailsResponse
2254
2718
  * @throws ApiError
2255
2719
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2720
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2721
  /**
2258
2722
  * Either mainnet or a testnet.
2259
2723
  */
@@ -2266,6 +2730,10 @@ declare class PrimaryNetworkService {
2266
2730
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2267
2731
  */
2268
2732
  pageToken?: string;
2733
+ /**
2734
+ * A comma separated list of reward addresses to filter by.
2735
+ */
2736
+ rewardAddresses?: string;
2269
2737
  /**
2270
2738
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2271
2739
  */
@@ -2274,10 +2742,6 @@ declare class PrimaryNetworkService {
2274
2742
  * Delegation status of the node.
2275
2743
  */
2276
2744
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2745
  /**
2282
2746
  * A comma separated list of node ids to filter by.
2283
2747
  */
@@ -2526,6 +2990,7 @@ type GetPrimaryNetworkBlockResponse = {
2526
2990
  txCount: number;
2527
2991
  transactions: Array<string>;
2528
2992
  blockSizeBytes: number;
2993
+ currentSupply?: string;
2529
2994
  proposerDetails?: ProposerDetails;
2530
2995
  };
2531
2996
 
@@ -2538,6 +3003,7 @@ type PrimaryNetworkBlock = {
2538
3003
  txCount: number;
2539
3004
  transactions: Array<string>;
2540
3005
  blockSizeBytes: number;
3006
+ currentSupply?: string;
2541
3007
  proposerDetails?: ProposerDetails;
2542
3008
  };
2543
3009
 
@@ -2629,7 +3095,8 @@ declare class PrimaryNetworkBlocksService {
2629
3095
 
2630
3096
  declare enum RewardType {
2631
3097
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
3098
+ DELEGATOR = "DELEGATOR",
3099
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
3100
  }
2634
3101
 
2635
3102
  type HistoricalReward = {
@@ -2695,7 +3162,7 @@ declare class PrimaryNetworkRewardsService {
2695
3162
  * @returns ListPendingRewardsResponse
2696
3163
  * @throws ApiError
2697
3164
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3165
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2699
3166
  /**
2700
3167
  * Either mainnet or a testnet.
2701
3168
  */
@@ -2712,6 +3179,10 @@ declare class PrimaryNetworkRewardsService {
2712
3179
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2713
3180
  */
2714
3181
  pageToken?: string;
3182
+ /**
3183
+ * A comma separated list of node ids to filter by.
3184
+ */
3185
+ nodeIds?: string;
2715
3186
  /**
2716
3187
  * 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
3188
  */
@@ -2723,7 +3194,7 @@ declare class PrimaryNetworkRewardsService {
2723
3194
  * @returns ListHistoricalRewardsResponse
2724
3195
  * @throws ApiError
2725
3196
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3197
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2727
3198
  /**
2728
3199
  * Either mainnet or a testnet.
2729
3200
  */
@@ -2740,6 +3211,10 @@ declare class PrimaryNetworkRewardsService {
2740
3211
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2741
3212
  */
2742
3213
  pageToken?: string;
3214
+ /**
3215
+ * A comma separated list of node ids to filter by.
3216
+ */
3217
+ nodeIds?: string;
2743
3218
  /**
2744
3219
  * 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
3220
  */
@@ -2994,6 +3469,7 @@ declare enum PChainTransactionType {
2994
3469
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
3470
  ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
3471
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
2997
3473
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
3474
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
3475
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3096,6 +3572,7 @@ type PChainTransaction = {
3096
3572
  */
3097
3573
  estimatedReward?: string;
3098
3574
  rewardTxHash?: string;
3575
+ rewardAddresses?: Array<string>;
3099
3576
  memo?: string;
3100
3577
  /**
3101
3578
  * Present for RewardValidatorTx
@@ -3112,6 +3589,15 @@ type ListPChainTransactionsResponse = {
3112
3589
  chainInfo: PrimaryNetworkChainInfo;
3113
3590
  };
3114
3591
 
3592
+ declare enum XChainTransactionType {
3593
+ BASE_TX = "BaseTx",
3594
+ CREATE_ASSET_TX = "CreateAssetTx",
3595
+ OPERATION_TX = "OperationTx",
3596
+ IMPORT_TX = "ImportTx",
3597
+ EXPORT_TX = "ExportTx",
3598
+ UNKNOWN = "UNKNOWN"
3599
+ }
3600
+
3115
3601
  type XChainLinearTransaction = {
3116
3602
  /**
3117
3603
  * Unique ID for this transaction.
@@ -3128,7 +3614,7 @@ type XChainLinearTransaction = {
3128
3614
  /**
3129
3615
  * Type of transaction.
3130
3616
  */
3131
- txType: string;
3617
+ txType: XChainTransactionType;
3132
3618
  /**
3133
3619
  * Hex encoded memo bytes for this transaction.
3134
3620
  */
@@ -3205,7 +3691,7 @@ type XChainNonLinearTransaction = {
3205
3691
  /**
3206
3692
  * Type of transaction.
3207
3693
  */
3208
- txType: string;
3694
+ txType: XChainTransactionType;
3209
3695
  /**
3210
3696
  * Hex encoded memo bytes for this transaction.
3211
3697
  */
@@ -3265,6 +3751,7 @@ declare enum PrimaryNetworkTxType {
3265
3751
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
3752
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
3753
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3268
3755
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
3756
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
3757
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3304,7 +3791,11 @@ declare class PrimaryNetworkTransactionsService {
3304
3791
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3792
  /**
3306
3793
  * List latest transactions
3307
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3794
+ * Lists the latest transactions on one of the Primary Network chains.
3795
+ *
3796
+ * Transactions are filterable by addresses.
3797
+ *
3798
+ * 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
3799
  * @returns any
3309
3800
  * @throws ApiError
3310
3801
  */
@@ -3598,11 +4089,14 @@ declare class PrimaryNetworkVerticesService {
3598
4089
 
3599
4090
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3600
4091
  declare class Glacier {
4092
+ readonly default: DefaultService;
3601
4093
  readonly evmBalances: EvmBalancesService;
3602
4094
  readonly evmBlocks: EvmBlocksService;
3603
4095
  readonly evmChains: EvmChainsService;
4096
+ readonly evmContracts: EvmContractsService;
3604
4097
  readonly evmTransactions: EvmTransactionsService;
3605
4098
  readonly healthCheck: HealthCheckService;
4099
+ readonly nfTs: NfTsService;
3606
4100
  readonly operations: OperationsService;
3607
4101
  readonly primaryNetwork: PrimaryNetworkService;
3608
4102
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3632,4 +4126,4 @@ declare class ApiError extends Error {
3632
4126
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
4127
  }
3634
4128
 
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 };
4129
+ 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, SharedSecretsResponse, 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 };