@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.ec0cd0f.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 (47) hide show
  1. package/dist/index.d.ts +370 -204
  2. package/dist/index.js +127 -7
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -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 +13 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/ChainInfo.d.ts +1 -0
  10. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  11. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  12. package/esm/generated/models/CompletedValidatorDetails.d.ts +8 -3
  13. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  14. package/esm/generated/models/Erc1155Contract.d.ts +2 -1
  15. package/esm/generated/models/Erc20Contract.d.ts +2 -1
  16. package/esm/generated/models/Erc721Contract.d.ts +0 -1
  17. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  18. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  19. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  20. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  21. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  22. package/esm/generated/models/PChainTransactionType.js +1 -0
  23. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  24. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  25. package/esm/generated/models/PendingValidatorDetails.d.ts +8 -4
  26. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  27. package/esm/generated/models/PricingProviders.d.ts +5 -0
  28. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  29. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  30. package/esm/generated/models/RewardType.d.ts +2 -1
  31. package/esm/generated/models/RewardType.js +1 -0
  32. package/esm/generated/models/Rewards.d.ts +2 -0
  33. package/esm/generated/models/UnknownContract.d.ts +0 -1
  34. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  35. package/esm/generated/services/EvmContractsService.d.ts +29 -0
  36. package/esm/generated/services/EvmContractsService.js +20 -0
  37. package/esm/generated/services/EvmTransactionsService.js +1 -1
  38. package/esm/generated/services/NfTsService.d.ts +51 -0
  39. package/esm/generated/services/NfTsService.js +37 -0
  40. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  41. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  42. package/esm/generated/services/PrimaryNetworkService.d.ts +30 -10
  43. package/esm/generated/services/PrimaryNetworkService.js +16 -6
  44. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
  45. package/esm/index.d.ts +4 -0
  46. package/esm/index.js +8 -0
  47. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -680,6 +680,7 @@ type GetChainResponse = {
680
680
  utilityAddresses?: UtilityAddresses;
681
681
  networkToken: NetworkToken;
682
682
  chainLogoUri?: string;
683
+ private?: boolean;
683
684
  };
684
685
 
685
686
  type ChainInfo = {
@@ -701,6 +702,7 @@ type ChainInfo = {
701
702
  utilityAddresses?: UtilityAddresses;
702
703
  networkToken: NetworkToken;
703
704
  chainLogoUri?: string;
705
+ private?: boolean;
704
706
  };
705
707
 
706
708
  type ListChainsResponse = {
@@ -741,6 +743,199 @@ declare class EvmChainsService {
741
743
  }): CancelablePromise<GetChainResponse>;
742
744
  }
743
745
 
746
+ type ContractDeploymentDetails = {
747
+ txHash: string;
748
+ /**
749
+ * The address that initiated the transaction which deployed this contract.
750
+ */
751
+ deployerAddress: string;
752
+ /**
753
+ * 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.
754
+ */
755
+ deployerContractAddress?: string;
756
+ };
757
+
758
+ type ImageAsset = {
759
+ assetId?: string;
760
+ /**
761
+ * OUTPUT ONLY
762
+ */
763
+ imageUri?: string;
764
+ };
765
+
766
+ type PricingProviders = {
767
+ coingeckoCoinId?: string;
768
+ };
769
+
770
+ declare enum ResourceLinkType {
771
+ BLOG = "Blog",
772
+ COIN_GECKO = "CoinGecko",
773
+ COIN_MARKET_CAP = "CoinMarketCap",
774
+ DISCORD = "Discord",
775
+ DOCUMENTATION = "Documentation",
776
+ FACEBOOK = "Facebook",
777
+ GITHUB = "Github",
778
+ INSTAGRAM = "Instagram",
779
+ LINKED_IN = "LinkedIn",
780
+ MEDIUM = "Medium",
781
+ REDDIT = "Reddit",
782
+ SUPPORT = "Support",
783
+ TELEGRAM = "Telegram",
784
+ TIK_TOK = "TikTok",
785
+ TWITTER = "Twitter",
786
+ WEBSITE = "Website",
787
+ WHITEPAPER = "Whitepaper",
788
+ YOUTUBE = "Youtube"
789
+ }
790
+
791
+ type ResourceLink = {
792
+ type: ResourceLinkType;
793
+ url: string;
794
+ };
795
+
796
+ type Erc1155Contract = {
797
+ /**
798
+ * The contract name.
799
+ */
800
+ name?: string;
801
+ description?: string;
802
+ officialSite?: string;
803
+ email?: string;
804
+ logoAsset?: ImageAsset;
805
+ bannerAsset?: ImageAsset;
806
+ color?: string;
807
+ resourceLinks?: Array<ResourceLink>;
808
+ tags?: Array<string>;
809
+ /**
810
+ * A wallet or contract address in mixed-case checksum encoding.
811
+ */
812
+ address: string;
813
+ deploymentDetails: ContractDeploymentDetails;
814
+ ercType: Erc1155Contract.ercType;
815
+ /**
816
+ * The contract symbol.
817
+ */
818
+ symbol?: string;
819
+ pricingProviders?: PricingProviders;
820
+ };
821
+ declare namespace Erc1155Contract {
822
+ enum ercType {
823
+ ERC_1155 = "ERC-1155"
824
+ }
825
+ }
826
+
827
+ type Erc20Contract = {
828
+ /**
829
+ * The contract name.
830
+ */
831
+ name?: string;
832
+ description?: string;
833
+ officialSite?: string;
834
+ email?: string;
835
+ logoAsset?: ImageAsset;
836
+ bannerAsset?: ImageAsset;
837
+ color?: string;
838
+ resourceLinks?: Array<ResourceLink>;
839
+ tags?: Array<string>;
840
+ /**
841
+ * A wallet or contract address in mixed-case checksum encoding.
842
+ */
843
+ address: string;
844
+ deploymentDetails: ContractDeploymentDetails;
845
+ ercType: Erc20Contract.ercType;
846
+ /**
847
+ * The contract symbol.
848
+ */
849
+ symbol?: string;
850
+ /**
851
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
852
+ */
853
+ decimals: number;
854
+ pricingProviders?: PricingProviders;
855
+ };
856
+ declare namespace Erc20Contract {
857
+ enum ercType {
858
+ ERC_20 = "ERC-20"
859
+ }
860
+ }
861
+
862
+ type Erc721Contract = {
863
+ /**
864
+ * The contract name.
865
+ */
866
+ name?: string;
867
+ description?: string;
868
+ officialSite?: string;
869
+ email?: string;
870
+ logoAsset?: ImageAsset;
871
+ bannerAsset?: ImageAsset;
872
+ color?: string;
873
+ resourceLinks?: Array<ResourceLink>;
874
+ tags?: Array<string>;
875
+ /**
876
+ * A wallet or contract address in mixed-case checksum encoding.
877
+ */
878
+ address: string;
879
+ deploymentDetails: ContractDeploymentDetails;
880
+ ercType: Erc721Contract.ercType;
881
+ /**
882
+ * The contract symbol.
883
+ */
884
+ symbol?: string;
885
+ };
886
+ declare namespace Erc721Contract {
887
+ enum ercType {
888
+ ERC_721 = "ERC-721"
889
+ }
890
+ }
891
+
892
+ type UnknownContract = {
893
+ /**
894
+ * The contract name.
895
+ */
896
+ name?: string;
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
+ * A wallet or contract address in mixed-case checksum encoding.
907
+ */
908
+ address: string;
909
+ deploymentDetails: ContractDeploymentDetails;
910
+ ercType: UnknownContract.ercType;
911
+ };
912
+ declare namespace UnknownContract {
913
+ enum ercType {
914
+ UNKNOWN = "UNKNOWN"
915
+ }
916
+ }
917
+
918
+ declare class EvmContractsService {
919
+ readonly httpRequest: BaseHttpRequest;
920
+ constructor(httpRequest: BaseHttpRequest);
921
+ /**
922
+ * Get contract metadata
923
+ * Gets metadata about the contract at the given address.
924
+ * @returns any
925
+ * @throws ApiError
926
+ */
927
+ getContractMetadata({ chainId, address, }: {
928
+ /**
929
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
930
+ */
931
+ chainId: string;
932
+ /**
933
+ * Contract address on the relevant chain.
934
+ */
935
+ address: string;
936
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
937
+ }
938
+
744
939
  type Erc1155Token = {
745
940
  /**
746
941
  * A wallet or contract address in mixed-case checksum encoding.
@@ -999,182 +1194,12 @@ type GetTransactionResponse = {
999
1194
  nativeTransaction: FullNativeTransactionDetails;
1000
1195
  };
1001
1196
 
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;
1107
- };
1108
- declare namespace Erc20Contract {
1109
- enum ercType {
1110
- ERC_20 = "ERC-20"
1111
- }
1112
- }
1113
-
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>;
1128
- /**
1129
- * A wallet or contract address in mixed-case checksum encoding.
1130
- */
1131
- address: string;
1132
- deploymentDetails: ContractDeploymentDetails;
1133
- ercType: Erc721Contract.ercType;
1134
- /**
1135
- * The contract symbol.
1136
- */
1137
- symbol?: string;
1138
- };
1139
- declare namespace Erc721Contract {
1140
- enum ercType {
1141
- ERC_721 = "ERC-721"
1142
- }
1143
- }
1144
-
1145
- type UnknownContract = {
1146
- /**
1147
- * The contract name.
1148
- */
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>;
1159
- /**
1160
- * A wallet or contract address in mixed-case checksum encoding.
1161
- */
1162
- address: string;
1163
- deploymentDetails: ContractDeploymentDetails;
1164
- ercType: UnknownContract.ercType;
1165
- };
1166
- declare namespace UnknownContract {
1167
- enum ercType {
1168
- UNKNOWN = "UNKNOWN"
1169
- }
1170
- }
1171
-
1172
1197
  type ListContractsResponse = {
1173
1198
  /**
1174
1199
  * 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
1200
  */
1176
1201
  nextPageToken?: string;
1177
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
1202
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1178
1203
  };
1179
1204
 
1180
1205
  type Erc1155Transfer = {
@@ -1728,6 +1753,51 @@ declare class HealthCheckService {
1728
1753
  }>;
1729
1754
  }
1730
1755
 
1756
+ declare class NfTsService {
1757
+ readonly httpRequest: BaseHttpRequest;
1758
+ constructor(httpRequest: BaseHttpRequest);
1759
+ /**
1760
+ * Reindex NFT metadata
1761
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
1762
+ * @returns any
1763
+ * @throws ApiError
1764
+ */
1765
+ reindexNft({ chainId, address, tokenId, }: {
1766
+ /**
1767
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1768
+ */
1769
+ chainId: string;
1770
+ /**
1771
+ * Contract address on the relevant chain.
1772
+ */
1773
+ address: string;
1774
+ /**
1775
+ * TokenId on the contract
1776
+ */
1777
+ tokenId: string;
1778
+ }): CancelablePromise<any>;
1779
+ /**
1780
+ * Get token details
1781
+ * Gets token details for a specific token of an NFT contract.
1782
+ * @returns any
1783
+ * @throws ApiError
1784
+ */
1785
+ getTokenDetails({ chainId, address, tokenId, }: {
1786
+ /**
1787
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1788
+ */
1789
+ chainId: string;
1790
+ /**
1791
+ * Contract address on the relevant chain.
1792
+ */
1793
+ address: string;
1794
+ /**
1795
+ * TokenId on the contract
1796
+ */
1797
+ tokenId: string;
1798
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1799
+ }
1800
+
1731
1801
  type EvmNetworkOptions = {
1732
1802
  addresses: Array<string>;
1733
1803
  includeChains: Array<string>;
@@ -1913,39 +1983,57 @@ type ListBlockchainsResponse = {
1913
1983
 
1914
1984
  type ActiveDelegatorDetails = {
1915
1985
  txHash: string;
1986
+ nodeId: string;
1916
1987
  rewardAddresses: Array<string>;
1917
1988
  amountDelegated: string;
1918
1989
  delegationFee: string;
1919
1990
  startTimestamp: number;
1920
1991
  endTimestamp: number;
1921
- delegationStatus: DelegationStatusType;
1922
1992
  estimatedGrossReward: string;
1923
1993
  estimatedNetReward: string;
1994
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
1924
1995
  };
1996
+ declare namespace ActiveDelegatorDetails {
1997
+ enum delegationStatus {
1998
+ ACTIVE = "active"
1999
+ }
2000
+ }
1925
2001
 
1926
2002
  type CompletedDelegatorDetails = {
1927
2003
  txHash: string;
2004
+ nodeId: string;
1928
2005
  rewardAddresses: Array<string>;
1929
2006
  amountDelegated: string;
1930
2007
  delegationFee: string;
1931
2008
  startTimestamp: number;
1932
2009
  endTimestamp: number;
1933
- delegationStatus: DelegationStatusType;
1934
2010
  grossReward: string;
1935
2011
  netReward: string;
2012
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
1936
2013
  };
2014
+ declare namespace CompletedDelegatorDetails {
2015
+ enum delegationStatus {
2016
+ COMPLETED = "completed"
2017
+ }
2018
+ }
1937
2019
 
1938
2020
  type PendingDelegatorDetails = {
1939
2021
  txHash: string;
2022
+ nodeId: string;
1940
2023
  rewardAddresses: Array<string>;
1941
2024
  amountDelegated: string;
1942
2025
  delegationFee: string;
1943
2026
  startTimestamp: number;
1944
2027
  endTimestamp: number;
1945
- delegationStatus: DelegationStatusType;
1946
2028
  estimatedGrossReward: string;
1947
2029
  estimatedNetReward: string;
2030
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
1948
2031
  };
2032
+ declare namespace PendingDelegatorDetails {
2033
+ enum delegationStatus {
2034
+ PENDING = "pending"
2035
+ }
2036
+ }
1949
2037
 
1950
2038
  type ListDelegatorDetailsResponse = {
1951
2039
  /**
@@ -1983,49 +2071,83 @@ type ListSubnetsResponse = {
1983
2071
  type Rewards = {
1984
2072
  validationRewardAmount: string;
1985
2073
  delegationRewardAmount: string;
2074
+ rewardAddresses?: Array<string>;
2075
+ rewardTxHash?: string;
1986
2076
  };
1987
2077
 
1988
- declare enum ValidationStatusType {
1989
- COMPLETED = "completed",
1990
- ACTIVE = "active",
1991
- PENDING = "pending"
1992
- }
2078
+ type ValidatorHealthDetails = {
2079
+ /**
2080
+ * Percent of requests responded to in last polling.
2081
+ */
2082
+ reachabilityPercent: number;
2083
+ /**
2084
+ * Percent of requests benched on the P-Chain in last polling.
2085
+ */
2086
+ benchedPChainRequestsPercent: number;
2087
+ /**
2088
+ * Percentage of requests benched on the X-Chain in last polling.
2089
+ */
2090
+ benchedXChainRequestsPercent: number;
2091
+ /**
2092
+ * Percentage of requests benched on the C-Chain in last polling.
2093
+ */
2094
+ benchedCChainRequestsPercent: number;
2095
+ };
1993
2096
 
1994
2097
  type ActiveValidatorDetails = {
1995
2098
  nodeId: string;
2099
+ subnetId: string;
1996
2100
  amountStaked: string;
1997
- delegationFee: string;
2101
+ delegationFee?: string;
1998
2102
  startTimestamp: number;
1999
2103
  endTimestamp: number;
2000
- validationStatus: ValidationStatusType;
2001
2104
  stakePercentage: number;
2002
2105
  delegatorCount: number;
2003
- amountDelegated: string;
2106
+ amountDelegated?: string;
2004
2107
  uptimePerformance: number;
2005
- avalancheGoVersion: string;
2006
- delegationCapacity: string;
2108
+ avalancheGoVersion?: string;
2109
+ delegationCapacity?: string;
2007
2110
  potentialRewards: Rewards;
2111
+ validationStatus: ActiveValidatorDetails.validationStatus;
2112
+ validatorHealth: ValidatorHealthDetails;
2008
2113
  };
2114
+ declare namespace ActiveValidatorDetails {
2115
+ enum validationStatus {
2116
+ ACTIVE = "active"
2117
+ }
2118
+ }
2009
2119
 
2010
2120
  type CompletedValidatorDetails = {
2011
2121
  nodeId: string;
2122
+ subnetId: string;
2012
2123
  amountStaked: string;
2013
- delegationFee: string;
2124
+ delegationFee?: string;
2014
2125
  startTimestamp: number;
2015
2126
  endTimestamp: number;
2016
- validationStatus: ValidationStatusType;
2017
2127
  delegatorCount: number;
2018
2128
  rewards: Rewards;
2129
+ validationStatus: CompletedValidatorDetails.validationStatus;
2019
2130
  };
2131
+ declare namespace CompletedValidatorDetails {
2132
+ enum validationStatus {
2133
+ COMPLETED = "completed"
2134
+ }
2135
+ }
2020
2136
 
2021
2137
  type PendingValidatorDetails = {
2022
2138
  nodeId: string;
2139
+ subnetId: string;
2023
2140
  amountStaked: string;
2024
- delegationFee: string;
2141
+ delegationFee?: string;
2025
2142
  startTimestamp: number;
2026
2143
  endTimestamp: number;
2027
- validationStatus: ValidationStatusType;
2144
+ validationStatus: PendingValidatorDetails.validationStatus;
2028
2145
  };
2146
+ declare namespace PendingValidatorDetails {
2147
+ enum validationStatus {
2148
+ PENDING = "pending"
2149
+ }
2150
+ }
2029
2151
 
2030
2152
  type ListValidatorDetailsResponse = {
2031
2153
  /**
@@ -2033,7 +2155,7 @@ type ListValidatorDetailsResponse = {
2033
2155
  */
2034
2156
  nextPageToken?: string;
2035
2157
  /**
2036
- * The list of Validator Details.
2158
+ * The list of validator Details.
2037
2159
  */
2038
2160
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2039
2161
  };
@@ -2043,6 +2165,12 @@ declare enum Network {
2043
2165
  FUJI = "fuji"
2044
2166
  }
2045
2167
 
2168
+ declare enum ValidationStatusType {
2169
+ COMPLETED = "completed",
2170
+ ACTIVE = "active",
2171
+ PENDING = "pending"
2172
+ }
2173
+
2046
2174
  type XChainAssetDetails = {
2047
2175
  /**
2048
2176
  * Unique ID for an asset.
@@ -2185,7 +2313,7 @@ declare class PrimaryNetworkService {
2185
2313
  * @returns ListValidatorDetailsResponse
2186
2314
  * @throws ApiError
2187
2315
  */
2188
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2316
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
2189
2317
  /**
2190
2318
  * Either mainnet or a testnet.
2191
2319
  */
@@ -2198,6 +2326,30 @@ declare class PrimaryNetworkService {
2198
2326
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2199
2327
  */
2200
2328
  pageToken?: string;
2329
+ /**
2330
+ * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2331
+ */
2332
+ minTimeRemaining?: any;
2333
+ /**
2334
+ * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2335
+ */
2336
+ maxTimeRemaining?: any;
2337
+ /**
2338
+ * 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
2339
+ */
2340
+ minDelegationCapacity?: number;
2341
+ /**
2342
+ * 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.
2343
+ */
2344
+ maxDelegationCapacity?: number;
2345
+ /**
2346
+ * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
2347
+ */
2348
+ minFeePercentage?: any;
2349
+ /**
2350
+ * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
2351
+ */
2352
+ maxFeePercentage?: any;
2201
2353
  /**
2202
2354
  * A comma separated list of node ids to filter by.
2203
2355
  */
@@ -2210,10 +2362,6 @@ declare class PrimaryNetworkService {
2210
2362
  * Validation status of the node.
2211
2363
  */
2212
2364
  validationStatus?: ValidationStatusType;
2213
- /**
2214
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2215
- */
2216
- minDelegationCapacity?: any;
2217
2365
  }): CancelablePromise<ListValidatorDetailsResponse>;
2218
2366
  /**
2219
2367
  * Get single validator details
@@ -2253,7 +2401,7 @@ declare class PrimaryNetworkService {
2253
2401
  * @returns ListDelegatorDetailsResponse
2254
2402
  * @throws ApiError
2255
2403
  */
2256
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2404
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2257
2405
  /**
2258
2406
  * Either mainnet or a testnet.
2259
2407
  */
@@ -2266,6 +2414,10 @@ declare class PrimaryNetworkService {
2266
2414
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2267
2415
  */
2268
2416
  pageToken?: string;
2417
+ /**
2418
+ * A comma separated list of reward addresses to filter by.
2419
+ */
2420
+ rewardAddresses?: string;
2269
2421
  /**
2270
2422
  * 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
2423
  */
@@ -2274,10 +2426,6 @@ declare class PrimaryNetworkService {
2274
2426
  * Delegation status of the node.
2275
2427
  */
2276
2428
  delegationStatus?: DelegationStatusType;
2277
- /**
2278
- * A comma separated list of reward addresses to filter by.
2279
- */
2280
- rewardAddresses?: string;
2281
2429
  /**
2282
2430
  * A comma separated list of node ids to filter by.
2283
2431
  */
@@ -2629,7 +2777,8 @@ declare class PrimaryNetworkBlocksService {
2629
2777
 
2630
2778
  declare enum RewardType {
2631
2779
  VALIDATOR = "VALIDATOR",
2632
- DELEGATOR = "DELEGATOR"
2780
+ DELEGATOR = "DELEGATOR",
2781
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2633
2782
  }
2634
2783
 
2635
2784
  type HistoricalReward = {
@@ -2695,7 +2844,7 @@ declare class PrimaryNetworkRewardsService {
2695
2844
  * @returns ListPendingRewardsResponse
2696
2845
  * @throws ApiError
2697
2846
  */
2698
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2847
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2699
2848
  /**
2700
2849
  * Either mainnet or a testnet.
2701
2850
  */
@@ -2712,6 +2861,10 @@ declare class PrimaryNetworkRewardsService {
2712
2861
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2713
2862
  */
2714
2863
  pageToken?: string;
2864
+ /**
2865
+ * A comma separated list of node ids to filter by.
2866
+ */
2867
+ nodeIds?: string;
2715
2868
  /**
2716
2869
  * 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
2870
  */
@@ -2723,7 +2876,7 @@ declare class PrimaryNetworkRewardsService {
2723
2876
  * @returns ListHistoricalRewardsResponse
2724
2877
  * @throws ApiError
2725
2878
  */
2726
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2879
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2727
2880
  /**
2728
2881
  * Either mainnet or a testnet.
2729
2882
  */
@@ -2740,6 +2893,10 @@ declare class PrimaryNetworkRewardsService {
2740
2893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2741
2894
  */
2742
2895
  pageToken?: string;
2896
+ /**
2897
+ * A comma separated list of node ids to filter by.
2898
+ */
2899
+ nodeIds?: string;
2743
2900
  /**
2744
2901
  * 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
2902
  */
@@ -2994,6 +3151,7 @@ declare enum PChainTransactionType {
2994
3151
  ADD_VALIDATOR_TX = "AddValidatorTx",
2995
3152
  ADD_DELEGATOR_TX = "AddDelegatorTx",
2996
3153
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3154
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
2997
3155
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2998
3156
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2999
3157
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3096,6 +3254,7 @@ type PChainTransaction = {
3096
3254
  */
3097
3255
  estimatedReward?: string;
3098
3256
  rewardTxHash?: string;
3257
+ rewardAddresses?: Array<string>;
3099
3258
  memo?: string;
3100
3259
  /**
3101
3260
  * Present for RewardValidatorTx
@@ -3265,6 +3424,7 @@ declare enum PrimaryNetworkTxType {
3265
3424
  ADD_VALIDATOR_TX = "AddValidatorTx",
3266
3425
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3267
3426
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3427
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3268
3428
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3269
3429
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3270
3430
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3304,7 +3464,11 @@ declare class PrimaryNetworkTransactionsService {
3304
3464
  }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
3305
3465
  /**
3306
3466
  * List latest transactions
3307
- * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
3467
+ * Lists the latest transactions on one of the Primary Network chains.
3468
+ *
3469
+ * Transactions are filterable by addresses.
3470
+ *
3471
+ * 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
3472
  * @returns any
3309
3473
  * @throws ApiError
3310
3474
  */
@@ -3601,8 +3765,10 @@ declare class Glacier {
3601
3765
  readonly evmBalances: EvmBalancesService;
3602
3766
  readonly evmBlocks: EvmBlocksService;
3603
3767
  readonly evmChains: EvmChainsService;
3768
+ readonly evmContracts: EvmContractsService;
3604
3769
  readonly evmTransactions: EvmTransactionsService;
3605
3770
  readonly healthCheck: HealthCheckService;
3771
+ readonly nfTs: NfTsService;
3606
3772
  readonly operations: OperationsService;
3607
3773
  readonly primaryNetwork: PrimaryNetworkService;
3608
3774
  readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
@@ -3632,4 +3798,4 @@ declare class ApiError extends Error {
3632
3798
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3633
3799
  }
3634
3800
 
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 };
3801
+ 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, 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, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };