@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.e5344d2.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 (79) hide show
  1. package/dist/index.d.ts +710 -227
  2. package/dist/index.js +278 -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/UnknownContract.d.ts +0 -1
  51. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  52. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  53. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  54. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  55. package/esm/generated/models/WebhookStatus.js +7 -0
  56. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  57. package/esm/generated/models/WebhookStatusType.js +7 -0
  58. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  59. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  60. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  61. package/esm/generated/models/XChainTransactionType.js +11 -0
  62. package/esm/generated/services/DefaultService.d.ts +59 -0
  63. package/esm/generated/services/DefaultService.js +49 -0
  64. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  65. package/esm/generated/services/EvmContractsService.js +36 -0
  66. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  67. package/esm/generated/services/EvmTransactionsService.js +1 -1
  68. package/esm/generated/services/NfTsService.d.ts +76 -0
  69. package/esm/generated/services/NfTsService.js +56 -0
  70. package/esm/generated/services/OperationsService.d.ts +11 -11
  71. package/esm/generated/services/OperationsService.js +10 -10
  72. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  73. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  74. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
  75. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  76. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
  77. package/esm/index.d.ts +20 -0
  78. package/esm/index.js +17 -0
  79. 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.
@@ -975,206 +1394,36 @@ type NetworkTokenDetails = {
975
1394
  /**
976
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.
977
1396
  */
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;
1397
+ historicalPrice?: Money;
1107
1398
  };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1112
- }
1113
1399
 
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>;
1400
+ type GetTransactionResponse = {
1128
1401
  /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1402
+ * The list of ERC-20 transfers.
1130
1403
  */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1404
+ erc20Transfers?: Array<Erc20TransferDetails>;
1134
1405
  /**
1135
- * The contract symbol.
1406
+ * The list of ERC-721 transfers.
1136
1407
  */
1137
- symbol?: string;
1138
- };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
-
1145
- type UnknownContract = {
1408
+ erc721Transfers?: Array<Erc721TransferDetails>;
1146
1409
  /**
1147
- * The contract name.
1410
+ * The list of ERC-1155 transfers.
1148
1411
  */
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>;
1412
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1159
1413
  /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
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.
1161
1415
  */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1416
+ internalTransactions?: Array<InternalTransactionDetails>;
1417
+ networkTokenDetails: NetworkTokenDetails;
1418
+ nativeTransaction: FullNativeTransactionDetails;
1165
1419
  };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
1420
 
1172
1421
  type ListContractsResponse = {
1173
1422
  /**
1174
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.
1175
1424
  */
1176
1425
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1426
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1427
  };
1179
1428
 
1180
1429
  type Erc1155Transfer = {
@@ -1479,7 +1728,13 @@ declare class EvmTransactionsService {
1479
1728
  * A wallet address.
1480
1729
  */
1481
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
+ */
1482
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
+ */
1483
1738
  endBlock?: number;
1484
1739
  /**
1485
1740
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1515,7 +1770,13 @@ declare class EvmTransactionsService {
1515
1770
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1516
1771
  */
1517
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
+ */
1518
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
+ */
1519
1780
  endBlock?: number;
1520
1781
  /**
1521
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.
@@ -1537,7 +1798,13 @@ declare class EvmTransactionsService {
1537
1798
  * A wallet address.
1538
1799
  */
1539
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
+ */
1540
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
+ */
1541
1808
  endBlock?: number;
1542
1809
  /**
1543
1810
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1563,7 +1830,13 @@ declare class EvmTransactionsService {
1563
1830
  * A wallet address.
1564
1831
  */
1565
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
+ */
1566
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
+ */
1567
1840
  endBlock?: number;
1568
1841
  /**
1569
1842
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1589,7 +1862,13 @@ declare class EvmTransactionsService {
1589
1862
  * A wallet address.
1590
1863
  */
1591
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
+ */
1592
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
+ */
1593
1872
  endBlock?: number;
1594
1873
  /**
1595
1874
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1615,7 +1894,13 @@ declare class EvmTransactionsService {
1615
1894
  * A wallet address.
1616
1895
  */
1617
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
+ */
1618
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
+ */
1619
1904
  endBlock?: number;
1620
1905
  /**
1621
1906
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1643,7 +1928,13 @@ declare class EvmTransactionsService {
1643
1928
  * A wallet address.
1644
1929
  */
1645
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
+ */
1646
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
+ */
1647
1938
  endBlock?: number;
1648
1939
  /**
1649
1940
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
@@ -1728,6 +2019,83 @@ declare class HealthCheckService {
1728
2019
  }>;
1729
2020
  }
1730
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
+
1731
2099
  type EvmNetworkOptions = {
1732
2100
  addresses: Array<string>;
1733
2101
  includeChains: Array<string>;
@@ -1822,17 +2190,6 @@ type OperationStatusResponse = {
1822
2190
  declare class OperationsService {
1823
2191
  readonly httpRequest: BaseHttpRequest;
1824
2192
  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
2193
  /**
1837
2194
  * Get operation
1838
2195
  * Gets operation details for the given operation id.
@@ -1845,6 +2202,17 @@ declare class OperationsService {
1845
2202
  */
1846
2203
  operationId: string;
1847
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>;
1848
2216
  }
1849
2217
 
1850
2218
  declare enum BlockchainIds {
@@ -1913,39 +2281,57 @@ type ListBlockchainsResponse = {
1913
2281
 
1914
2282
  type ActiveDelegatorDetails = {
1915
2283
  txHash: string;
2284
+ nodeId: string;
1916
2285
  rewardAddresses: Array<string>;
1917
2286
  amountDelegated: string;
1918
2287
  delegationFee: string;
1919
2288
  startTimestamp: number;
1920
2289
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
2290
  estimatedGrossReward: string;
1923
2291
  estimatedNetReward: string;
2292
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
2293
  };
2294
+ declare namespace ActiveDelegatorDetails {
2295
+ enum delegationStatus {
2296
+ ACTIVE = "active"
2297
+ }
2298
+ }
1925
2299
 
1926
2300
  type CompletedDelegatorDetails = {
1927
2301
  txHash: string;
2302
+ nodeId: string;
1928
2303
  rewardAddresses: Array<string>;
1929
2304
  amountDelegated: string;
1930
2305
  delegationFee: string;
1931
2306
  startTimestamp: number;
1932
2307
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2308
  grossReward: string;
1935
2309
  netReward: string;
2310
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2311
  };
2312
+ declare namespace CompletedDelegatorDetails {
2313
+ enum delegationStatus {
2314
+ COMPLETED = "completed"
2315
+ }
2316
+ }
1937
2317
 
1938
2318
  type PendingDelegatorDetails = {
1939
2319
  txHash: string;
2320
+ nodeId: string;
1940
2321
  rewardAddresses: Array<string>;
1941
2322
  amountDelegated: string;
1942
2323
  delegationFee: string;
1943
2324
  startTimestamp: number;
1944
2325
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2326
  estimatedGrossReward: string;
1947
2327
  estimatedNetReward: string;
2328
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2329
  };
2330
+ declare namespace PendingDelegatorDetails {
2331
+ enum delegationStatus {
2332
+ PENDING = "pending"
2333
+ }
2334
+ }
1949
2335
 
1950
2336
  type ListDelegatorDetailsResponse = {
1951
2337
  /**
@@ -1983,49 +2369,86 @@ type ListSubnetsResponse = {
1983
2369
  type Rewards = {
1984
2370
  validationRewardAmount: string;
1985
2371
  delegationRewardAmount: string;
2372
+ rewardAddresses?: Array<string>;
2373
+ rewardTxHash?: string;
1986
2374
  };
1987
2375
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
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
+ };
1993
2394
 
1994
2395
  type ActiveValidatorDetails = {
2396
+ txHash: string;
1995
2397
  nodeId: string;
2398
+ subnetId: string;
1996
2399
  amountStaked: string;
1997
- delegationFee: string;
2400
+ delegationFee?: string;
1998
2401
  startTimestamp: number;
1999
2402
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2403
  stakePercentage: number;
2002
2404
  delegatorCount: number;
2003
- amountDelegated: string;
2405
+ amountDelegated?: string;
2004
2406
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2407
+ avalancheGoVersion?: string;
2408
+ delegationCapacity?: string;
2007
2409
  potentialRewards: Rewards;
2410
+ validationStatus: ActiveValidatorDetails.validationStatus;
2411
+ validatorHealth: ValidatorHealthDetails;
2008
2412
  };
2413
+ declare namespace ActiveValidatorDetails {
2414
+ enum validationStatus {
2415
+ ACTIVE = "active"
2416
+ }
2417
+ }
2009
2418
 
2010
2419
  type CompletedValidatorDetails = {
2420
+ txHash: string;
2011
2421
  nodeId: string;
2422
+ subnetId: string;
2012
2423
  amountStaked: string;
2013
- delegationFee: string;
2424
+ delegationFee?: string;
2014
2425
  startTimestamp: number;
2015
2426
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2427
  delegatorCount: number;
2018
2428
  rewards: Rewards;
2429
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2430
  };
2431
+ declare namespace CompletedValidatorDetails {
2432
+ enum validationStatus {
2433
+ COMPLETED = "completed"
2434
+ }
2435
+ }
2020
2436
 
2021
2437
  type PendingValidatorDetails = {
2438
+ txHash: string;
2022
2439
  nodeId: string;
2440
+ subnetId: string;
2023
2441
  amountStaked: string;
2024
- delegationFee: string;
2442
+ delegationFee?: string;
2025
2443
  startTimestamp: number;
2026
2444
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2445
+ validationStatus: PendingValidatorDetails.validationStatus;
2028
2446
  };
2447
+ declare namespace PendingValidatorDetails {
2448
+ enum validationStatus {
2449
+ PENDING = "pending"
2450
+ }
2451
+ }
2029
2452
 
2030
2453
  type ListValidatorDetailsResponse = {
2031
2454
  /**
@@ -2033,7 +2456,7 @@ type ListValidatorDetailsResponse = {
2033
2456
  */
2034
2457
  nextPageToken?: string;
2035
2458
  /**
2036
- * The list of Validator Details.
2459
+ * The list of validator Details.
2037
2460
  */
2038
2461
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2039
2462
  };
@@ -2043,6 +2466,12 @@ declare enum Network {
2043
2466
  FUJI = "fuji"
2044
2467
  }
2045
2468
 
2469
+ declare enum ValidationStatusType {
2470
+ COMPLETED = "completed",
2471
+ ACTIVE = "active",
2472
+ PENDING = "pending"
2473
+ }
2474
+
2046
2475
  type XChainAssetDetails = {
2047
2476
  /**
2048
2477
  * Unique ID for an asset.
@@ -2185,7 +2614,7 @@ declare class PrimaryNetworkService {
2185
2614
  * @returns ListValidatorDetailsResponse
2186
2615
  * @throws ApiError
2187
2616
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2617
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2189
2618
  /**
2190
2619
  * Either mainnet or a testnet.
2191
2620
  */
@@ -2198,6 +2627,30 @@ declare class PrimaryNetworkService {
2198
2627
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2628
  */
2200
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;
2201
2654
  /**
2202
2655
  * A comma separated list of node ids to filter by.
2203
2656
  */
@@ -2211,9 +2664,9 @@ declare class PrimaryNetworkService {
2211
2664
  */
2212
2665
  validationStatus?: ValidationStatusType;
2213
2666
  /**
2214
- * 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.
2215
2668
  */
2216
- minDelegationCapacity?: any;
2669
+ subnetId?: string;
2217
2670
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2671
  /**
2219
2672
  * Get single validator details
@@ -2253,7 +2706,7 @@ declare class PrimaryNetworkService {
2253
2706
  * @returns ListDelegatorDetailsResponse
2254
2707
  * @throws ApiError
2255
2708
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2709
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2710
  /**
2258
2711
  * Either mainnet or a testnet.
2259
2712
  */
@@ -2266,6 +2719,10 @@ declare class PrimaryNetworkService {
2266
2719
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2267
2720
  */
2268
2721
  pageToken?: string;
2722
+ /**
2723
+ * A comma separated list of reward addresses to filter by.
2724
+ */
2725
+ rewardAddresses?: string;
2269
2726
  /**
2270
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.
2271
2728
  */
@@ -2274,10 +2731,6 @@ declare class PrimaryNetworkService {
2274
2731
  * Delegation status of the node.
2275
2732
  */
2276
2733
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2734
  /**
2282
2735
  * A comma separated list of node ids to filter by.
2283
2736
  */
@@ -2526,6 +2979,7 @@ type GetPrimaryNetworkBlockResponse = {
2526
2979
  txCount: number;
2527
2980
  transactions: Array<string>;
2528
2981
  blockSizeBytes: number;
2982
+ currentSupply?: string;
2529
2983
  proposerDetails?: ProposerDetails;
2530
2984
  };
2531
2985
 
@@ -2538,6 +2992,7 @@ type PrimaryNetworkBlock = {
2538
2992
  txCount: number;
2539
2993
  transactions: Array<string>;
2540
2994
  blockSizeBytes: number;
2995
+ currentSupply?: string;
2541
2996
  proposerDetails?: ProposerDetails;
2542
2997
  };
2543
2998
 
@@ -2629,7 +3084,8 @@ declare class PrimaryNetworkBlocksService {
2629
3084
 
2630
3085
  declare enum RewardType {
2631
3086
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
3087
+ DELEGATOR = "DELEGATOR",
3088
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
3089
  }
2634
3090
 
2635
3091
  type HistoricalReward = {
@@ -2695,7 +3151,7 @@ declare class PrimaryNetworkRewardsService {
2695
3151
  * @returns ListPendingRewardsResponse
2696
3152
  * @throws ApiError
2697
3153
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3154
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2699
3155
  /**
2700
3156
  * Either mainnet or a testnet.
2701
3157
  */
@@ -2712,6 +3168,10 @@ declare class PrimaryNetworkRewardsService {
2712
3168
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2713
3169
  */
2714
3170
  pageToken?: string;
3171
+ /**
3172
+ * A comma separated list of node ids to filter by.
3173
+ */
3174
+ nodeIds?: string;
2715
3175
  /**
2716
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.
2717
3177
  */
@@ -2723,7 +3183,7 @@ declare class PrimaryNetworkRewardsService {
2723
3183
  * @returns ListHistoricalRewardsResponse
2724
3184
  * @throws ApiError
2725
3185
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
3186
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2727
3187
  /**
2728
3188
  * Either mainnet or a testnet.
2729
3189
  */
@@ -2740,6 +3200,10 @@ declare class PrimaryNetworkRewardsService {
2740
3200
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2741
3201
  */
2742
3202
  pageToken?: string;
3203
+ /**
3204
+ * A comma separated list of node ids to filter by.
3205
+ */
3206
+ nodeIds?: string;
2743
3207
  /**
2744
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.
2745
3209
  */
@@ -2994,6 +3458,7 @@ declare enum PChainTransactionType {
2994
3458
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
3459
  ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
3460
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
2997
3462
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
3463
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
3464
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3096,6 +3561,7 @@ type PChainTransaction = {
3096
3561
  */
3097
3562
  estimatedReward?: string;
3098
3563
  rewardTxHash?: string;
3564
+ rewardAddresses?: Array<string>;
3099
3565
  memo?: string;
3100
3566
  /**
3101
3567
  * Present for RewardValidatorTx
@@ -3112,6 +3578,15 @@ type ListPChainTransactionsResponse = {
3112
3578
  chainInfo: PrimaryNetworkChainInfo;
3113
3579
  };
3114
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
+
3115
3590
  type XChainLinearTransaction = {
3116
3591
  /**
3117
3592
  * Unique ID for this transaction.
@@ -3128,7 +3603,7 @@ type XChainLinearTransaction = {
3128
3603
  /**
3129
3604
  * Type of transaction.
3130
3605
  */
3131
- txType: string;
3606
+ txType: XChainTransactionType;
3132
3607
  /**
3133
3608
  * Hex encoded memo bytes for this transaction.
3134
3609
  */
@@ -3205,7 +3680,7 @@ type XChainNonLinearTransaction = {
3205
3680
  /**
3206
3681
  * Type of transaction.
3207
3682
  */
3208
- txType: string;
3683
+ txType: XChainTransactionType;
3209
3684
  /**
3210
3685
  * Hex encoded memo bytes for this transaction.
3211
3686
  */
@@ -3265,6 +3740,7 @@ declare enum PrimaryNetworkTxType {
3265
3740
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
3741
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
3742
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3268
3744
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
3745
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
3746
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3304,7 +3780,11 @@ declare class PrimaryNetworkTransactionsService {
3304
3780
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3781
  /**
3306
3782
  * List latest transactions
3307
- * 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.
3308
3788
  * @returns any
3309
3789
  * @throws ApiError
3310
3790
  */
@@ -3598,11 +4078,14 @@ declare class PrimaryNetworkVerticesService {
3598
4078
 
3599
4079
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3600
4080
  declare class Glacier {
4081
+ readonly default: DefaultService;
3601
4082
  readonly evmBalances: EvmBalancesService;
3602
4083
  readonly evmBlocks: EvmBlocksService;
3603
4084
  readonly evmChains: EvmChainsService;
4085
+ readonly evmContracts: EvmContractsService;
3604
4086
  readonly evmTransactions: EvmTransactionsService;
3605
4087
  readonly healthCheck: HealthCheckService;
4088
+ readonly nfTs: NfTsService;
3606
4089
  readonly operations: OperationsService;
3607
4090
  readonly primaryNetwork: PrimaryNetworkService;
3608
4091
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3632,4 +4115,4 @@ declare class ApiError extends Error {
3632
4115
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
4116
  }
3634
4117
 
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 };
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 };