@avalabs/glacier-sdk 2.8.0-alpha.12 → 2.8.0-alpha.121

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 (220) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3476 -3
  3. package/dist/index.js +1681 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Asset.d.ts +28 -0
  19. package/esm/generated/models/Blockchain.d.ts +10 -0
  20. package/esm/generated/models/BlockchainId.d.ts +12 -0
  21. package/esm/generated/models/BlockchainId.js +13 -0
  22. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  23. package/esm/generated/models/BlockchainIds.js +10 -0
  24. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  25. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  26. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  27. package/esm/generated/models/CChainExportTransaction.js +8 -0
  28. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  29. package/esm/generated/models/CChainImportTransaction.js +8 -0
  30. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  31. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  32. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  33. package/esm/generated/models/ChainInfo.d.ts +27 -0
  34. package/esm/generated/models/ChainStatus.d.ts +6 -0
  35. package/esm/generated/models/ChainStatus.js +7 -0
  36. package/esm/generated/models/CollectionMetrics.d.ts +41 -0
  37. package/esm/generated/models/CollectionSortByOption.d.ts +9 -0
  38. package/esm/generated/models/CollectionSortByOption.js +10 -0
  39. package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
  40. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  43. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  44. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  45. package/esm/generated/models/CurrencyCode.js +19 -0
  46. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  47. package/esm/generated/models/EVMInput.d.ts +19 -0
  48. package/esm/generated/models/EVMOutput.d.ts +14 -0
  49. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  50. package/esm/generated/models/Erc1155Token.js +8 -0
  51. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  52. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  53. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  54. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  55. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  56. package/esm/generated/models/Erc20Token.d.ts +36 -0
  57. package/esm/generated/models/Erc20Token.js +8 -0
  58. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  59. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  60. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  61. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  62. package/esm/generated/models/Erc721Token.d.ts +31 -0
  63. package/esm/generated/models/Erc721Token.js +8 -0
  64. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  65. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  66. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  67. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  68. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  69. package/esm/generated/models/ErcType.d.ts +8 -0
  70. package/esm/generated/models/ErcType.js +9 -0
  71. package/esm/generated/models/EvmBlock.d.ts +45 -0
  72. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  73. package/esm/generated/models/FloorPrice.d.ts +8 -0
  74. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  75. package/esm/generated/models/GetChainResponse.d.ts +27 -0
  76. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  77. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  78. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  79. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  80. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  81. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  82. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  83. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  84. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  85. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  86. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  87. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  88. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  89. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  90. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  91. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  92. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  94. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  96. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  98. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  99. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  100. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  101. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  102. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  103. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  104. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  105. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  106. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  107. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  108. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  109. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  110. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  111. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
  112. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  113. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  114. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  115. package/esm/generated/models/Method.d.ts +18 -0
  116. package/esm/generated/models/Money.d.ts +14 -0
  117. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  118. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  119. package/esm/generated/models/Network.d.ts +6 -0
  120. package/esm/generated/models/Network.js +7 -0
  121. package/esm/generated/models/NetworkToken.d.ts +21 -0
  122. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  123. package/esm/generated/models/NetworkType.d.ts +6 -0
  124. package/esm/generated/models/NetworkType.js +7 -0
  125. package/esm/generated/models/NftCollection.d.ts +24 -0
  126. package/esm/generated/models/NftCollectionWithMetrics.d.ts +26 -0
  127. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  128. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  129. package/esm/generated/models/OperationStatus.d.ts +8 -0
  130. package/esm/generated/models/OperationStatus.js +9 -0
  131. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  132. package/esm/generated/models/OperationStatusCode.js +8 -0
  133. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  134. package/esm/generated/models/OperationType.d.ts +6 -0
  135. package/esm/generated/models/OperationType.js +7 -0
  136. package/esm/generated/models/PChainAsset.d.ts +6 -0
  137. package/esm/generated/models/PChainBalance.d.ts +39 -0
  138. package/esm/generated/models/PChainId.d.ts +6 -0
  139. package/esm/generated/models/PChainId.js +7 -0
  140. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  141. package/esm/generated/models/PChainTransaction.d.ts +71 -0
  142. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  143. package/esm/generated/models/PChainTransactionType.js +17 -0
  144. package/esm/generated/models/PChainUtxo.d.ts +31 -0
  145. package/esm/generated/models/PendingReward.d.ts +22 -0
  146. package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
  147. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +6 -0
  148. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  149. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  150. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  151. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  152. package/esm/generated/models/ResourceLink.d.ts +8 -0
  153. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  154. package/esm/generated/models/ResourceLinkType.js +23 -0
  155. package/esm/generated/models/RewardType.d.ts +6 -0
  156. package/esm/generated/models/RewardType.js +7 -0
  157. package/esm/generated/models/Rewards.d.ts +6 -0
  158. package/esm/generated/models/RichAddress.d.ts +24 -0
  159. package/esm/generated/models/SortOrder.d.ts +6 -0
  160. package/esm/generated/models/SortOrder.js +7 -0
  161. package/esm/generated/models/StakingDistribution.d.ts +6 -0
  162. package/esm/generated/models/Subnet.d.ts +13 -0
  163. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  164. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  165. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  166. package/esm/generated/models/TransactionMethodType.js +8 -0
  167. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  168. package/esm/generated/models/TransactionStatus.js +7 -0
  169. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  170. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  171. package/esm/generated/models/TrendingTimeframe.js +8 -0
  172. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  173. package/esm/generated/models/Utxo.d.ts +68 -0
  174. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  175. package/esm/generated/models/UtxoType.d.ts +6 -0
  176. package/esm/generated/models/UtxoType.js +7 -0
  177. package/esm/generated/models/ValidationStatusType.d.ts +5 -0
  178. package/esm/generated/models/ValidationStatusType.js +6 -0
  179. package/esm/generated/models/ValidatorsDetails.d.ts +10 -0
  180. package/esm/generated/models/VmName.d.ts +7 -0
  181. package/esm/generated/models/VmName.js +8 -0
  182. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  183. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  184. package/esm/generated/models/XChainBalances.d.ts +17 -0
  185. package/esm/generated/models/XChainId.d.ts +7 -0
  186. package/esm/generated/models/XChainId.js +8 -0
  187. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  188. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  189. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  190. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  191. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  192. package/esm/generated/models/XChainVertex.d.ts +12 -0
  193. package/esm/generated/services/EvmService.d.ts +616 -0
  194. package/esm/generated/services/EvmService.js +463 -0
  195. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  196. package/esm/generated/services/HealthCheckService.js +16 -0
  197. package/esm/generated/services/OperationsService.d.ts +35 -0
  198. package/esm/generated/services/OperationsService.js +28 -0
  199. package/esm/generated/services/PrimaryNetworkService.d.ts +618 -0
  200. package/esm/generated/services/PrimaryNetworkService.js +432 -0
  201. package/esm/index.d.ts +146 -0
  202. package/esm/index.js +47 -0
  203. package/package.json +11 -20
  204. package/CHANGELOG.md +0 -236
  205. package/__tests__/glacier-sdk.test.js +0 -7
  206. package/dist/index.d.ts.map +0 -1
  207. package/dist/index.js.map +0 -1
  208. package/dist/src/generated/models.d.ts +0 -385
  209. package/dist/src/generated/models.d.ts.map +0 -1
  210. package/dist/src/glacierClient.d.ts +0 -93
  211. package/dist/src/glacierClient.d.ts.map +0 -1
  212. package/dist/src/types.d.ts +0 -13
  213. package/dist/src/types.d.ts.map +0 -1
  214. package/index.ts +0 -2
  215. package/rollup.config.js +0 -33
  216. package/src/generated/models.ts +0 -460
  217. package/src/glacierClient.ts +0 -190
  218. package/src/types.ts +0 -6
  219. package/swagger/generateModels.js +0 -40
  220. package/tsconfig.json +0 -7
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3476 @@
1
- export * from './src/generated/models';
2
- export * from './src/glacierClient';
3
- //# sourceMappingURL=index.d.ts.map
1
+ type ApiRequestOptions = {
2
+ readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
+ readonly url: string;
4
+ readonly path?: Record<string, any>;
5
+ readonly cookies?: Record<string, any>;
6
+ readonly headers?: Record<string, any>;
7
+ readonly query?: Record<string, any>;
8
+ readonly formData?: Record<string, any>;
9
+ readonly body?: any;
10
+ readonly mediaType?: string;
11
+ readonly responseHeader?: string;
12
+ readonly errors?: Record<number, string>;
13
+ };
14
+
15
+ declare class CancelError extends Error {
16
+ constructor(message: string);
17
+ get isCancelled(): boolean;
18
+ }
19
+ interface OnCancel {
20
+ readonly isResolved: boolean;
21
+ readonly isRejected: boolean;
22
+ readonly isCancelled: boolean;
23
+ (cancelHandler: () => void): void;
24
+ }
25
+ declare class CancelablePromise<T> implements Promise<T> {
26
+ readonly [Symbol.toStringTag]: string;
27
+ private _isResolved;
28
+ private _isRejected;
29
+ private _isCancelled;
30
+ private readonly _cancelHandlers;
31
+ private readonly _promise;
32
+ private _resolve?;
33
+ private _reject?;
34
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
35
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
36
+ catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
37
+ finally(onFinally?: (() => void) | null): Promise<T>;
38
+ cancel(): void;
39
+ get isCancelled(): boolean;
40
+ }
41
+
42
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
43
+ type Headers = Record<string, string>;
44
+ type OpenAPIConfig = {
45
+ BASE: string;
46
+ VERSION: string;
47
+ WITH_CREDENTIALS: boolean;
48
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
49
+ TOKEN?: string | Resolver<string>;
50
+ USERNAME?: string | Resolver<string>;
51
+ PASSWORD?: string | Resolver<string>;
52
+ HEADERS?: Headers | Resolver<Headers>;
53
+ ENCODE_PATH?: (path: string) => string;
54
+ };
55
+ declare const OpenAPI: OpenAPIConfig;
56
+
57
+ declare abstract class BaseHttpRequest {
58
+ readonly config: OpenAPIConfig;
59
+ constructor(config: OpenAPIConfig);
60
+ abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
+ }
62
+
63
+ declare enum CollectionSortByOption {
64
+ COLLECTION_ADDRESS = "collectionAddress",
65
+ SALE_TIMESTAMP = "saleTimestamp",
66
+ VOLUME = "volume",
67
+ VOLUME_CHANGE = "volumeChange",
68
+ FLOOR_PRICE = "floorPrice"
69
+ }
70
+
71
+ declare enum CurrencyCode {
72
+ USD = "usd",
73
+ EUR = "eur",
74
+ AUD = "aud",
75
+ CAD = "cad",
76
+ CHF = "chf",
77
+ CLP = "clp",
78
+ CNY = "cny",
79
+ CZK = "czk",
80
+ DKK = "dkk",
81
+ GBP = "gbp",
82
+ HKD = "hkd",
83
+ HUF = "huf",
84
+ JPY = "jpy",
85
+ NZD = "nzd"
86
+ }
87
+
88
+ declare enum NftTokenMetadataStatus {
89
+ UNKNOWN = "UNKNOWN",
90
+ MISSING_TOKEN = "MISSING_TOKEN",
91
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
92
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
93
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
94
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
95
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
96
+ INVALID_METADATA = "INVALID_METADATA",
97
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
98
+ INDEXED = "INDEXED",
99
+ UNINDEXED = "UNINDEXED"
100
+ }
101
+
102
+ type Erc1155TokenMetadata = {
103
+ /**
104
+ * The metadata indexing status of the nft.
105
+ */
106
+ indexStatus: NftTokenMetadataStatus;
107
+ metadataLastUpdatedTimestamp?: number;
108
+ name?: string;
109
+ symbol?: string;
110
+ imageUri?: string;
111
+ description?: string;
112
+ animationUri?: string;
113
+ externalUrl?: string;
114
+ background?: string;
115
+ decimals?: number;
116
+ properties?: string;
117
+ };
118
+
119
+ type Erc1155Token = {
120
+ /**
121
+ * A wallet or contract address in mixed-case checksum encoding.
122
+ */
123
+ address: string;
124
+ ercType: Erc1155Token.ercType;
125
+ tokenId: string;
126
+ tokenUri: string;
127
+ metadata: Erc1155TokenMetadata;
128
+ };
129
+ declare namespace Erc1155Token {
130
+ enum ercType {
131
+ ERC_1155 = "ERC-1155"
132
+ }
133
+ }
134
+
135
+ type Erc721TokenMetadata = {
136
+ /**
137
+ * The metadata indexing status of the nft.
138
+ */
139
+ indexStatus: NftTokenMetadataStatus;
140
+ metadataLastUpdatedTimestamp?: number;
141
+ name?: string;
142
+ symbol?: string;
143
+ imageUri?: string;
144
+ description?: string;
145
+ animationUri?: string;
146
+ externalUrl?: string;
147
+ background?: string;
148
+ attributes?: string;
149
+ };
150
+
151
+ type Erc721Token = {
152
+ /**
153
+ * A wallet or contract address in mixed-case checksum encoding.
154
+ */
155
+ address: string;
156
+ /**
157
+ * The contract name.
158
+ */
159
+ name: string;
160
+ /**
161
+ * The contract symbol.
162
+ */
163
+ symbol: string;
164
+ ercType: Erc721Token.ercType;
165
+ tokenId: string;
166
+ tokenUri: string;
167
+ metadata: Erc721TokenMetadata;
168
+ /**
169
+ * A wallet or contract address in mixed-case checksum encoding.
170
+ */
171
+ ownerAddress?: string;
172
+ };
173
+ declare namespace Erc721Token {
174
+ enum ercType {
175
+ ERC_721 = "ERC-721"
176
+ }
177
+ }
178
+
179
+ declare enum ChainStatus {
180
+ OK = "OK",
181
+ UNAVAILABLE = "UNAVAILABLE"
182
+ }
183
+
184
+ type NetworkToken = {
185
+ /**
186
+ * The contract name.
187
+ */
188
+ name: string;
189
+ /**
190
+ * The contract symbol.
191
+ */
192
+ symbol: string;
193
+ /**
194
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
195
+ */
196
+ decimals: number;
197
+ /**
198
+ * The logo uri for the address.
199
+ */
200
+ logoUri?: string;
201
+ description?: string;
202
+ };
203
+
204
+ type UtilityAddresses = {
205
+ multicall?: string;
206
+ };
207
+
208
+ declare enum VmName {
209
+ EVM = "EVM",
210
+ BITCOIN = "BITCOIN",
211
+ ETHEREUM = "ETHEREUM"
212
+ }
213
+
214
+ type GetChainResponse = {
215
+ chainId: string;
216
+ /**
217
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
218
+ */
219
+ status: ChainStatus;
220
+ chainName: string;
221
+ description: string;
222
+ platformChainId?: string;
223
+ subnetId?: string;
224
+ vmId?: string;
225
+ vmName: VmName;
226
+ explorerUrl?: string;
227
+ rpcUrl: string;
228
+ wsUrl?: string;
229
+ isTestnet: boolean;
230
+ utilityAddresses?: UtilityAddresses;
231
+ networkToken: NetworkToken;
232
+ chainLogoUri?: string;
233
+ };
234
+
235
+ type GetEvmBlockResponse = {
236
+ /**
237
+ * The block number on the chain.
238
+ */
239
+ blockNumber: string;
240
+ /**
241
+ * The block finality timestamp.
242
+ */
243
+ blockTimestamp: number;
244
+ /**
245
+ * The block hash identifier.
246
+ */
247
+ blockHash: string;
248
+ /**
249
+ * The number of evm transactions in the block.
250
+ */
251
+ txCount: number;
252
+ /**
253
+ * The base gas fee for a transaction to be included in the block.
254
+ */
255
+ baseFee: string;
256
+ /**
257
+ * The gas used for transactions in the block.
258
+ */
259
+ gasUsed: string;
260
+ /**
261
+ * The total gas limit set for transactions in the block.
262
+ */
263
+ gasLimit: string;
264
+ gasCost: string;
265
+ /**
266
+ * The hash of the parent block.
267
+ */
268
+ parentHash: string;
269
+ /**
270
+ * The amount of fees spent/burned for transactions in the block.
271
+ */
272
+ feesSpent: string;
273
+ /**
274
+ * The cumulative number of transactions for the chain including this block.
275
+ */
276
+ cumulativeTransactions: string;
277
+ };
278
+
279
+ type Money = {
280
+ /**
281
+ * ISO 4217 currency code.
282
+ */
283
+ currencyCode: CurrencyCode;
284
+ /**
285
+ * Monetary value in base 10 decimals.
286
+ */
287
+ value: number;
288
+ };
289
+
290
+ type NativeTokenBalance = {
291
+ /**
292
+ * The contract name.
293
+ */
294
+ name: string;
295
+ /**
296
+ * The contract symbol.
297
+ */
298
+ symbol: string;
299
+ /**
300
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
301
+ */
302
+ decimals: number;
303
+ /**
304
+ * The logo uri for the address.
305
+ */
306
+ logoUri?: string;
307
+ /**
308
+ * The evm chain id.
309
+ */
310
+ chainId: string;
311
+ /**
312
+ * The token price, if available.
313
+ */
314
+ price?: Money;
315
+ /**
316
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
317
+ */
318
+ balance: string;
319
+ /**
320
+ * The monetary value of the balance, if a price is available for the token.
321
+ */
322
+ balanceValue?: Money;
323
+ };
324
+
325
+ type GetNativeBalanceResponse = {
326
+ /**
327
+ * The native token balance for the address.
328
+ */
329
+ nativeTokenBalance: NativeTokenBalance;
330
+ };
331
+
332
+ type RichAddress = {
333
+ /**
334
+ * The contract name.
335
+ */
336
+ name?: string;
337
+ /**
338
+ * The contract symbol.
339
+ */
340
+ symbol?: string;
341
+ /**
342
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
343
+ */
344
+ decimals?: number;
345
+ /**
346
+ * The logo uri for the address.
347
+ */
348
+ logoUri?: string;
349
+ /**
350
+ * A wallet or contract address in mixed-case checksum encoding.
351
+ */
352
+ address: string;
353
+ };
354
+
355
+ type Erc1155TransferDetails = {
356
+ from: RichAddress;
357
+ to: RichAddress;
358
+ logIndex: number;
359
+ value: string;
360
+ erc1155Token: Erc1155Token;
361
+ };
362
+
363
+ type Erc20Token = {
364
+ /**
365
+ * A wallet or contract address in mixed-case checksum encoding.
366
+ */
367
+ address: string;
368
+ /**
369
+ * The contract name.
370
+ */
371
+ name: string;
372
+ /**
373
+ * The contract symbol.
374
+ */
375
+ symbol: string;
376
+ /**
377
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
378
+ */
379
+ decimals: number;
380
+ /**
381
+ * The logo uri for the address.
382
+ */
383
+ logoUri?: string;
384
+ ercType: Erc20Token.ercType;
385
+ /**
386
+ * The token price, if available.
387
+ */
388
+ price?: Money;
389
+ };
390
+ declare namespace Erc20Token {
391
+ enum ercType {
392
+ ERC_20 = "ERC-20"
393
+ }
394
+ }
395
+
396
+ type Erc20TransferDetails = {
397
+ from: RichAddress;
398
+ to: RichAddress;
399
+ logIndex: number;
400
+ value: string;
401
+ erc20Token: Erc20Token;
402
+ };
403
+
404
+ type Erc721TransferDetails = {
405
+ from: RichAddress;
406
+ to: RichAddress;
407
+ logIndex: number;
408
+ erc721Token: Erc721Token;
409
+ };
410
+
411
+ declare enum TransactionMethodType {
412
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
413
+ CONTRACT_CALL = "CONTRACT_CALL",
414
+ CONTRACT_CREATION = "CONTRACT_CREATION"
415
+ }
416
+
417
+ type Method = {
418
+ /**
419
+ * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
420
+ */
421
+ callType: TransactionMethodType;
422
+ /**
423
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
424
+ */
425
+ methodHash: string;
426
+ /**
427
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
428
+ */
429
+ methodName?: string;
430
+ };
431
+
432
+ type FullNativeTransactionDetails = {
433
+ /**
434
+ * The block number on the chain.
435
+ */
436
+ blockNumber: string;
437
+ /**
438
+ * The block finality timestamp.
439
+ */
440
+ blockTimestamp: number;
441
+ /**
442
+ * The block hash identifier.
443
+ */
444
+ blockHash: string;
445
+ /**
446
+ * The index at which the transaction occured in the block (0-indexed).
447
+ */
448
+ blockIndex: number;
449
+ /**
450
+ * The transaction hash identifier.
451
+ */
452
+ txHash: string;
453
+ /**
454
+ * The transaction status, which is either 0 (failed) or 1 (successful).
455
+ */
456
+ txStatus: string;
457
+ /**
458
+ * The transaction type.
459
+ */
460
+ txType: number;
461
+ /**
462
+ * The gas limit set for the transaction.
463
+ */
464
+ gasLimit: string;
465
+ /**
466
+ * The amount of gas used.
467
+ */
468
+ gasUsed: string;
469
+ /**
470
+ * The gas price denominated by the number of decimals of the native token.
471
+ */
472
+ gasPrice: string;
473
+ /**
474
+ * The nonce used by the sender of the transaction.
475
+ */
476
+ nonce: string;
477
+ from: RichAddress;
478
+ to: RichAddress;
479
+ method?: Method;
480
+ value: string;
481
+ /**
482
+ * The data sent for the transaction.
483
+ */
484
+ input: string;
485
+ baseFeePerGas: string;
486
+ maxFeePerGas?: string;
487
+ maxPriorityFeePerGas?: string;
488
+ };
489
+
490
+ declare enum InternalTransactionOpCall {
491
+ UNKNOWN = "UNKNOWN",
492
+ CALL = "CALL",
493
+ CREATE = "CREATE",
494
+ CREATE2 = "CREATE2",
495
+ CALLCODE = "CALLCODE",
496
+ DELEGATECALL = "DELEGATECALL",
497
+ STATICCALL = "STATICCALL"
498
+ }
499
+
500
+ type InternalTransactionDetails = {
501
+ from: RichAddress;
502
+ to: RichAddress;
503
+ internalTxType: InternalTransactionOpCall;
504
+ value: string;
505
+ /**
506
+ * True if the internal transaction was reverted.
507
+ */
508
+ isReverted: boolean;
509
+ gasUsed: string;
510
+ gasLimit: string;
511
+ };
512
+
513
+ type NetworkTokenDetails = {
514
+ networkToken: NetworkToken;
515
+ /**
516
+ * The current token price, if available.
517
+ */
518
+ currentPrice?: Money;
519
+ /**
520
+ * 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.
521
+ */
522
+ historicalPrice?: Money;
523
+ };
524
+
525
+ type GetTransactionResponse = {
526
+ /**
527
+ * The list of ERC-20 transfers.
528
+ */
529
+ erc20Transfers?: Array<Erc20TransferDetails>;
530
+ /**
531
+ * The list of ERC-721 transfers.
532
+ */
533
+ erc721Transfers?: Array<Erc721TransferDetails>;
534
+ /**
535
+ * The list of ERC-1155 transfers.
536
+ */
537
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
538
+ /**
539
+ * 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.
540
+ */
541
+ internalTransactions?: Array<InternalTransactionDetails>;
542
+ networkTokenDetails: NetworkTokenDetails;
543
+ nativeTransaction: FullNativeTransactionDetails;
544
+ };
545
+
546
+ type ChainInfo = {
547
+ chainId: string;
548
+ /**
549
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
550
+ */
551
+ status: ChainStatus;
552
+ chainName: string;
553
+ description: string;
554
+ platformChainId?: string;
555
+ subnetId?: string;
556
+ vmId?: string;
557
+ vmName: VmName;
558
+ explorerUrl?: string;
559
+ rpcUrl: string;
560
+ wsUrl?: string;
561
+ isTestnet: boolean;
562
+ utilityAddresses?: UtilityAddresses;
563
+ networkToken: NetworkToken;
564
+ chainLogoUri?: string;
565
+ };
566
+
567
+ type ListChainsResponse = {
568
+ chains: Array<ChainInfo>;
569
+ };
570
+
571
+ type Erc1155TokenBalance = {
572
+ /**
573
+ * A wallet or contract address in mixed-case checksum encoding.
574
+ */
575
+ address: string;
576
+ ercType: Erc1155TokenBalance.ercType;
577
+ tokenId: string;
578
+ tokenUri: string;
579
+ metadata: Erc1155TokenMetadata;
580
+ /**
581
+ * The evm chain id.
582
+ */
583
+ chainId: string;
584
+ /**
585
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
586
+ */
587
+ balance: string;
588
+ };
589
+ declare namespace Erc1155TokenBalance {
590
+ enum ercType {
591
+ ERC_1155 = "ERC-1155"
592
+ }
593
+ }
594
+
595
+ type Erc721TokenBalance = {
596
+ /**
597
+ * A wallet or contract address in mixed-case checksum encoding.
598
+ */
599
+ address: string;
600
+ /**
601
+ * The contract name.
602
+ */
603
+ name: string;
604
+ /**
605
+ * The contract symbol.
606
+ */
607
+ symbol: string;
608
+ ercType: Erc721TokenBalance.ercType;
609
+ tokenId: string;
610
+ tokenUri: string;
611
+ metadata: Erc721TokenMetadata;
612
+ /**
613
+ * A wallet or contract address in mixed-case checksum encoding.
614
+ */
615
+ ownerAddress?: string;
616
+ /**
617
+ * The evm chain id.
618
+ */
619
+ chainId: string;
620
+ };
621
+ declare namespace Erc721TokenBalance {
622
+ enum ercType {
623
+ ERC_721 = "ERC-721"
624
+ }
625
+ }
626
+
627
+ type ListCollectibleBalancesResponse = {
628
+ /**
629
+ * 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.
630
+ */
631
+ nextPageToken?: string;
632
+ /**
633
+ * The list of ERC-721 and ERC-1155 token balances for the address.
634
+ */
635
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
636
+ };
637
+
638
+ type ListErc1155BalancesResponse = {
639
+ /**
640
+ * 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.
641
+ */
642
+ nextPageToken?: string;
643
+ /**
644
+ * The list of ERC-1155 token balances for the address.
645
+ */
646
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
647
+ };
648
+
649
+ type Erc1155Transfer = {
650
+ /**
651
+ * The block number on the chain.
652
+ */
653
+ blockNumber: string;
654
+ /**
655
+ * The block finality timestamp.
656
+ */
657
+ blockTimestamp: number;
658
+ /**
659
+ * The block hash identifier.
660
+ */
661
+ blockHash: string;
662
+ /**
663
+ * The transaction hash identifier.
664
+ */
665
+ txHash: string;
666
+ from: RichAddress;
667
+ to: RichAddress;
668
+ logIndex: number;
669
+ value: string;
670
+ erc1155Token: Erc1155Token;
671
+ };
672
+
673
+ type ListErc1155TransactionsResponse = {
674
+ /**
675
+ * 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.
676
+ */
677
+ nextPageToken?: string;
678
+ transactions: Array<Erc1155Transfer>;
679
+ };
680
+
681
+ type Erc20TokenBalance = {
682
+ /**
683
+ * A wallet or contract address in mixed-case checksum encoding.
684
+ */
685
+ address: string;
686
+ /**
687
+ * The contract name.
688
+ */
689
+ name: string;
690
+ /**
691
+ * The contract symbol.
692
+ */
693
+ symbol: string;
694
+ /**
695
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
696
+ */
697
+ decimals: number;
698
+ /**
699
+ * The logo uri for the address.
700
+ */
701
+ logoUri?: string;
702
+ ercType: Erc20TokenBalance.ercType;
703
+ /**
704
+ * The token price, if available.
705
+ */
706
+ price?: Money;
707
+ /**
708
+ * The evm chain id.
709
+ */
710
+ chainId: string;
711
+ /**
712
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
713
+ */
714
+ balance: string;
715
+ /**
716
+ * The monetary value of the balance, if a price is available for the token.
717
+ */
718
+ balanceValue?: Money;
719
+ };
720
+ declare namespace Erc20TokenBalance {
721
+ enum ercType {
722
+ ERC_20 = "ERC-20"
723
+ }
724
+ }
725
+
726
+ type ListErc20BalancesResponse = {
727
+ /**
728
+ * 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.
729
+ */
730
+ nextPageToken?: string;
731
+ /**
732
+ * The list of ERC-20 token balances for the address.
733
+ */
734
+ erc20TokenBalances: Array<Erc20TokenBalance>;
735
+ };
736
+
737
+ type Erc20Transfer = {
738
+ /**
739
+ * The block number on the chain.
740
+ */
741
+ blockNumber: string;
742
+ /**
743
+ * The block finality timestamp.
744
+ */
745
+ blockTimestamp: number;
746
+ /**
747
+ * The block hash identifier.
748
+ */
749
+ blockHash: string;
750
+ /**
751
+ * The transaction hash identifier.
752
+ */
753
+ txHash: string;
754
+ from: RichAddress;
755
+ to: RichAddress;
756
+ logIndex: number;
757
+ value: string;
758
+ erc20Token: Erc20Token;
759
+ };
760
+
761
+ type ListErc20TransactionsResponse = {
762
+ /**
763
+ * 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.
764
+ */
765
+ nextPageToken?: string;
766
+ transactions: Array<Erc20Transfer>;
767
+ };
768
+
769
+ type ListErc721BalancesResponse = {
770
+ /**
771
+ * 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.
772
+ */
773
+ nextPageToken?: string;
774
+ /**
775
+ * The list of ERC-721 token balances for the address.
776
+ */
777
+ erc721TokenBalances: Array<Erc721TokenBalance>;
778
+ };
779
+
780
+ type Erc721Transfer = {
781
+ /**
782
+ * The block number on the chain.
783
+ */
784
+ blockNumber: string;
785
+ /**
786
+ * The block finality timestamp.
787
+ */
788
+ blockTimestamp: number;
789
+ /**
790
+ * The block hash identifier.
791
+ */
792
+ blockHash: string;
793
+ /**
794
+ * The transaction hash identifier.
795
+ */
796
+ txHash: string;
797
+ from: RichAddress;
798
+ to: RichAddress;
799
+ logIndex: number;
800
+ erc721Token: Erc721Token;
801
+ };
802
+
803
+ type ListErc721TransactionsResponse = {
804
+ /**
805
+ * 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.
806
+ */
807
+ nextPageToken?: string;
808
+ transactions: Array<Erc721Transfer>;
809
+ };
810
+
811
+ type EvmBlock = {
812
+ /**
813
+ * The block number on the chain.
814
+ */
815
+ blockNumber: string;
816
+ /**
817
+ * The block finality timestamp.
818
+ */
819
+ blockTimestamp: number;
820
+ /**
821
+ * The block hash identifier.
822
+ */
823
+ blockHash: string;
824
+ /**
825
+ * The number of evm transactions in the block.
826
+ */
827
+ txCount: number;
828
+ /**
829
+ * The base gas fee for a transaction to be included in the block.
830
+ */
831
+ baseFee: string;
832
+ /**
833
+ * The gas used for transactions in the block.
834
+ */
835
+ gasUsed: string;
836
+ /**
837
+ * The total gas limit set for transactions in the block.
838
+ */
839
+ gasLimit: string;
840
+ gasCost: string;
841
+ /**
842
+ * The hash of the parent block.
843
+ */
844
+ parentHash: string;
845
+ /**
846
+ * The amount of fees spent/burned for transactions in the block.
847
+ */
848
+ feesSpent: string;
849
+ /**
850
+ * The cumulative number of transactions for the chain including this block.
851
+ */
852
+ cumulativeTransactions: string;
853
+ };
854
+
855
+ type ListEvmBlocksResponse = {
856
+ /**
857
+ * 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.
858
+ */
859
+ nextPageToken?: string;
860
+ blocks: Array<EvmBlock>;
861
+ };
862
+
863
+ type InternalTransaction = {
864
+ /**
865
+ * The block number on the chain.
866
+ */
867
+ blockNumber: string;
868
+ /**
869
+ * The block finality timestamp.
870
+ */
871
+ blockTimestamp: number;
872
+ /**
873
+ * The block hash identifier.
874
+ */
875
+ blockHash: string;
876
+ /**
877
+ * The transaction hash identifier.
878
+ */
879
+ txHash: string;
880
+ from: RichAddress;
881
+ to: RichAddress;
882
+ internalTxType: InternalTransactionOpCall;
883
+ value: string;
884
+ /**
885
+ * True if the internal transaction was reverted.
886
+ */
887
+ isReverted: boolean;
888
+ gasUsed: string;
889
+ gasLimit: string;
890
+ };
891
+
892
+ type ListInternalTransactionsResponse = {
893
+ /**
894
+ * 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.
895
+ */
896
+ nextPageToken?: string;
897
+ transactions: Array<InternalTransaction>;
898
+ };
899
+
900
+ type NativeTransaction = {
901
+ /**
902
+ * The block number on the chain.
903
+ */
904
+ blockNumber: string;
905
+ /**
906
+ * The block finality timestamp.
907
+ */
908
+ blockTimestamp: number;
909
+ /**
910
+ * The block hash identifier.
911
+ */
912
+ blockHash: string;
913
+ /**
914
+ * The index at which the transaction occured in the block (0-indexed).
915
+ */
916
+ blockIndex: number;
917
+ /**
918
+ * The transaction hash identifier.
919
+ */
920
+ txHash: string;
921
+ /**
922
+ * The transaction status, which is either 0 (failed) or 1 (successful).
923
+ */
924
+ txStatus: string;
925
+ /**
926
+ * The transaction type.
927
+ */
928
+ txType: number;
929
+ /**
930
+ * The gas limit set for the transaction.
931
+ */
932
+ gasLimit: string;
933
+ /**
934
+ * The amount of gas used.
935
+ */
936
+ gasUsed: string;
937
+ /**
938
+ * The gas price denominated by the number of decimals of the native token.
939
+ */
940
+ gasPrice: string;
941
+ /**
942
+ * The nonce used by the sender of the transaction.
943
+ */
944
+ nonce: string;
945
+ from: RichAddress;
946
+ to: RichAddress;
947
+ method?: Method;
948
+ value: string;
949
+ };
950
+
951
+ type ListNativeTransactionsResponse = {
952
+ /**
953
+ * 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.
954
+ */
955
+ nextPageToken?: string;
956
+ transactions: Array<NativeTransaction>;
957
+ };
958
+
959
+ type FloorPrice = {
960
+ floorPrice: string;
961
+ marketplace: string;
962
+ listingIds: Array<string>;
963
+ isOverallFloorPrice: boolean;
964
+ };
965
+
966
+ type CollectionMetrics = {
967
+ /**
968
+ * The timeframe used to calculate the metrics
969
+ */
970
+ timeframe: string;
971
+ /**
972
+ * The number of sales between (now) & (now - timeframe)
973
+ */
974
+ salesInTimeframe: number;
975
+ /**
976
+ * The number of sales between (now - timeframe) & (now - (2 * timeframe))
977
+ */
978
+ salesInPreviousTimeframe: number;
979
+ /**
980
+ * The total value of sales between (now) & (now - timeframe)
981
+ */
982
+ totalValueInTimeframe: string;
983
+ /**
984
+ * The total value of sales between (now - timeframe) & (now - (2 * timeframe))
985
+ */
986
+ totalValueInPreviousTimeframe: string;
987
+ /**
988
+ * The change in volume between (now) & (now - timeframe)
989
+ */
990
+ volumeChange?: number;
991
+ /**
992
+ * The average sale price for sales between (now) & (now - timeframe)
993
+ */
994
+ averagePriceInTimeframe: string;
995
+ /**
996
+ * The average sale price for sales between (now - timeframe) & (now - (2 * timeframe))
997
+ */
998
+ averagePriceInPreviousTimeframe: string;
999
+ latestSaleTimestamp?: number;
1000
+ marketplaceFloorPrices: Array<FloorPrice>;
1001
+ floorPrice?: string;
1002
+ };
1003
+
1004
+ declare enum ErcType {
1005
+ ERC_20 = "ERC-20",
1006
+ ERC_721 = "ERC-721",
1007
+ ERC_1155 = "ERC-1155",
1008
+ UNKNOWN = "UNKNOWN"
1009
+ }
1010
+
1011
+ declare enum ResourceLinkType {
1012
+ BLOG = "Blog",
1013
+ COIN_GECKO = "CoinGecko",
1014
+ COIN_MARKET_CAP = "CoinMarketCap",
1015
+ DISCORD = "Discord",
1016
+ DOCUMENTATION = "Documentation",
1017
+ FACEBOOK = "Facebook",
1018
+ GITHUB = "Github",
1019
+ INSTAGRAM = "Instagram",
1020
+ LINKED_IN = "LinkedIn",
1021
+ MEDIUM = "Medium",
1022
+ REDDIT = "Reddit",
1023
+ SUPPORT = "Support",
1024
+ TELEGRAM = "Telegram",
1025
+ TIK_TOK = "TikTok",
1026
+ TWITTER = "Twitter",
1027
+ WEBSITE = "Website",
1028
+ WHITEPAPER = "Whitepaper",
1029
+ YOUTUBE = "Youtube"
1030
+ }
1031
+
1032
+ type ResourceLink = {
1033
+ type: ResourceLinkType;
1034
+ url: string;
1035
+ };
1036
+
1037
+ type NftCollectionWithMetrics = {
1038
+ /**
1039
+ * A wallet or contract address in mixed-case checksum encoding.
1040
+ */
1041
+ address: string;
1042
+ /**
1043
+ * The contract name.
1044
+ */
1045
+ name: string;
1046
+ /**
1047
+ * The contract symbol.
1048
+ */
1049
+ symbol: string;
1050
+ ercType: ErcType;
1051
+ bannerUri?: string;
1052
+ logoUri?: string;
1053
+ description?: string;
1054
+ resourceLinks?: Array<ResourceLink>;
1055
+ metrics: CollectionMetrics;
1056
+ };
1057
+
1058
+ type ListNftCollectionWithMetricsResponse = {
1059
+ /**
1060
+ * 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.
1061
+ */
1062
+ nextPageToken?: string;
1063
+ collections: Array<NftCollectionWithMetrics>;
1064
+ };
1065
+
1066
+ type TransactionDetails = {
1067
+ /**
1068
+ * The native (top-level) transaction details.
1069
+ */
1070
+ nativeTransaction: NativeTransaction;
1071
+ /**
1072
+ * The list of ERC-20 transfers.
1073
+ */
1074
+ erc20Transfers?: Array<Erc20TransferDetails>;
1075
+ /**
1076
+ * The list of ERC-721 transfers.
1077
+ */
1078
+ erc721Transfers?: Array<Erc721TransferDetails>;
1079
+ /**
1080
+ * The list of ERC-1155 transfers.
1081
+ */
1082
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
1083
+ /**
1084
+ * 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.
1085
+ */
1086
+ internalTransactions?: Array<InternalTransactionDetails>;
1087
+ };
1088
+
1089
+ type ListTransactionDetailsResponse = {
1090
+ /**
1091
+ * 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.
1092
+ */
1093
+ nextPageToken?: string;
1094
+ transactions: Array<TransactionDetails>;
1095
+ };
1096
+
1097
+ type ListTransfersResponse = {
1098
+ /**
1099
+ * 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.
1100
+ */
1101
+ nextPageToken?: string;
1102
+ transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
1103
+ };
1104
+
1105
+ declare enum NetworkType {
1106
+ MAINNET = "mainnet",
1107
+ TESTNET = "testnet"
1108
+ }
1109
+
1110
+ declare enum SortOrder {
1111
+ ASC = "asc",
1112
+ DESC = "desc"
1113
+ }
1114
+
1115
+ declare enum TransactionStatus {
1116
+ FAILED = "failed",
1117
+ SUCCESS = "success"
1118
+ }
1119
+
1120
+ declare enum TrendingTimeframe {
1121
+ DAY = "day",
1122
+ WEEK = "week",
1123
+ MONTH = "month"
1124
+ }
1125
+
1126
+ declare class EvmService {
1127
+ readonly httpRequest: BaseHttpRequest;
1128
+ constructor(httpRequest: BaseHttpRequest);
1129
+ /**
1130
+ * Get native token balance
1131
+ * Gets native token balance of a wallet address.
1132
+ *
1133
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
1134
+ * @returns GetNativeBalanceResponse
1135
+ * @throws ApiError
1136
+ */
1137
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
1138
+ /**
1139
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1140
+ */
1141
+ chainId: string;
1142
+ /**
1143
+ * A wallet address.
1144
+ */
1145
+ address: string;
1146
+ /**
1147
+ * The block number, if not defined the block number will be the latest block.
1148
+ */
1149
+ blockNumber?: string;
1150
+ /**
1151
+ * The currency that return values should use. Defaults to USD.
1152
+ */
1153
+ currency?: CurrencyCode;
1154
+ }): CancelablePromise<GetNativeBalanceResponse>;
1155
+ /**
1156
+ * List ERC-20 balances
1157
+ * Lists ERC-20 token balances of a wallet address.
1158
+ *
1159
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
1160
+ *
1161
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
1162
+ * @returns ListErc20BalancesResponse
1163
+ * @throws ApiError
1164
+ */
1165
+ listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
1166
+ /**
1167
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1168
+ */
1169
+ chainId: string;
1170
+ /**
1171
+ * A wallet address.
1172
+ */
1173
+ address: string;
1174
+ /**
1175
+ * The block number, if not defined the block number will be the latest block.
1176
+ */
1177
+ blockNumber?: string;
1178
+ /**
1179
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1180
+ */
1181
+ pageSize?: number;
1182
+ /**
1183
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1184
+ */
1185
+ pageToken?: string;
1186
+ /**
1187
+ * A comma separated list of contract addresses to filter by.
1188
+ */
1189
+ contractAddresses?: string;
1190
+ /**
1191
+ * The currency that return values should use. Defaults to USD.
1192
+ */
1193
+ currency?: CurrencyCode;
1194
+ }): CancelablePromise<ListErc20BalancesResponse>;
1195
+ /**
1196
+ * List ERC-721 balances
1197
+ * Lists ERC-721 token balances of a wallet address.
1198
+ *
1199
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
1200
+ * @returns ListErc721BalancesResponse
1201
+ * @throws ApiError
1202
+ */
1203
+ listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
1204
+ /**
1205
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1206
+ */
1207
+ chainId: string;
1208
+ /**
1209
+ * A wallet address.
1210
+ */
1211
+ address: string;
1212
+ /**
1213
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1214
+ */
1215
+ pageSize?: number;
1216
+ /**
1217
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1218
+ */
1219
+ pageToken?: string;
1220
+ /**
1221
+ * A contract addresses to filter by.
1222
+ */
1223
+ contractAddress?: string;
1224
+ }): CancelablePromise<ListErc721BalancesResponse>;
1225
+ /**
1226
+ * List ERC-1155 balances
1227
+ * Lists ERC-1155 token balances of a wallet address.
1228
+ *
1229
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
1230
+ *
1231
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
1232
+ * @returns ListErc1155BalancesResponse
1233
+ * @throws ApiError
1234
+ */
1235
+ listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
1236
+ /**
1237
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1238
+ */
1239
+ chainId: string;
1240
+ /**
1241
+ * A wallet address.
1242
+ */
1243
+ address: string;
1244
+ /**
1245
+ * The block number, if not defined the block number will be the latest block.
1246
+ */
1247
+ blockNumber?: string;
1248
+ /**
1249
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1250
+ */
1251
+ pageSize?: number;
1252
+ /**
1253
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1254
+ */
1255
+ pageToken?: string;
1256
+ /**
1257
+ * A contract addresses to filter by.
1258
+ */
1259
+ contractAddress?: string;
1260
+ }): CancelablePromise<ListErc1155BalancesResponse>;
1261
+ /**
1262
+ * List collectible (ERC-721/ERC-1155) balances
1263
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
1264
+ *
1265
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
1266
+ * @returns ListCollectibleBalancesResponse
1267
+ * @throws ApiError
1268
+ */
1269
+ listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
1270
+ /**
1271
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1272
+ */
1273
+ chainId: string;
1274
+ /**
1275
+ * A wallet address.
1276
+ */
1277
+ address: string;
1278
+ /**
1279
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1280
+ */
1281
+ pageSize?: number;
1282
+ /**
1283
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1284
+ */
1285
+ pageToken?: string;
1286
+ /**
1287
+ * A contract addresses to filter by.
1288
+ */
1289
+ contractAddress?: string;
1290
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
1291
+ /**
1292
+ * List latest blocks
1293
+ * Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
1294
+ * @returns ListEvmBlocksResponse
1295
+ * @throws ApiError
1296
+ */
1297
+ getLatestBlocks({ chainId, pageSize, pageToken, }: {
1298
+ /**
1299
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1300
+ */
1301
+ chainId: string;
1302
+ /**
1303
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1304
+ */
1305
+ pageSize?: number;
1306
+ /**
1307
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1308
+ */
1309
+ pageToken?: string;
1310
+ }): CancelablePromise<ListEvmBlocksResponse>;
1311
+ /**
1312
+ * Get block
1313
+ * Gets the details of an individual block on the EVM-compatible chain.
1314
+ * @returns GetEvmBlockResponse
1315
+ * @throws ApiError
1316
+ */
1317
+ getBlock({ chainId, blockId, }: {
1318
+ /**
1319
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1320
+ */
1321
+ chainId: string;
1322
+ /**
1323
+ * A block identifier which is either a block number or the block hash.
1324
+ */
1325
+ blockId: string;
1326
+ }): CancelablePromise<GetEvmBlockResponse>;
1327
+ /**
1328
+ * Get deployment transaction
1329
+ * If the address is a smart contract, returns the transaction in which it was deployed.
1330
+ * @returns GetTransactionResponse
1331
+ * @throws ApiError
1332
+ */
1333
+ getDeploymentTransaction({ chainId, address, currency, }: {
1334
+ /**
1335
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1336
+ */
1337
+ chainId: string;
1338
+ /**
1339
+ * Contract address on the relevant chain.
1340
+ */
1341
+ address: string;
1342
+ /**
1343
+ * The currency that return values should use. Defaults to USD.
1344
+ */
1345
+ currency?: CurrencyCode;
1346
+ }): CancelablePromise<GetTransactionResponse>;
1347
+ /**
1348
+ * List chains
1349
+ * Lists the supported EVM-compatible chains. Filterable by network.
1350
+ * @returns ListChainsResponse
1351
+ * @throws ApiError
1352
+ */
1353
+ supportedChains({ network, }: {
1354
+ /**
1355
+ * mainnet or testnet.
1356
+ */
1357
+ network?: NetworkType;
1358
+ }): CancelablePromise<ListChainsResponse>;
1359
+ /**
1360
+ * Get chain information
1361
+ * Gets chain information for the EVM-compatible chain if supported by the api.
1362
+ * @returns GetChainResponse
1363
+ * @throws ApiError
1364
+ */
1365
+ getChainInfo({ chainId, }: {
1366
+ /**
1367
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1368
+ */
1369
+ chainId: string;
1370
+ }): CancelablePromise<GetChainResponse>;
1371
+ /**
1372
+ * Reindex NFT metadata
1373
+ * Triggers reindexing of token metadata for NFT contracts. Will return 400 if the NFT has been indexed within the last hour.
1374
+ * @returns any
1375
+ * @throws ApiError
1376
+ */
1377
+ reindexNft({ chainId, address, tokenId, }: {
1378
+ /**
1379
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1380
+ */
1381
+ chainId: string;
1382
+ /**
1383
+ * Contract address on the relevant chain.
1384
+ */
1385
+ address: string;
1386
+ /**
1387
+ * TokenId on the contract
1388
+ */
1389
+ tokenId: string;
1390
+ }): CancelablePromise<any>;
1391
+ /**
1392
+ * Get collection details
1393
+ * Get collection details for a specific contract.
1394
+ * @returns NftCollectionWithMetrics
1395
+ * @throws ApiError
1396
+ */
1397
+ getCollection({ chainId, address, timeframe, }: {
1398
+ /**
1399
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1400
+ */
1401
+ chainId: string;
1402
+ /**
1403
+ * Contract address on the relevant chain.
1404
+ */
1405
+ address: string;
1406
+ /**
1407
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
1408
+ */
1409
+ timeframe?: TrendingTimeframe;
1410
+ }): CancelablePromise<NftCollectionWithMetrics>;
1411
+ /**
1412
+ * List collections
1413
+ * Lists details and metrics for collections.
1414
+ * @returns ListNftCollectionWithMetricsResponse
1415
+ * @throws ApiError
1416
+ */
1417
+ listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
1418
+ /**
1419
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1420
+ */
1421
+ chainId: string;
1422
+ /**
1423
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1424
+ */
1425
+ pageSize?: number;
1426
+ /**
1427
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1428
+ */
1429
+ pageToken?: string;
1430
+ /**
1431
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
1432
+ */
1433
+ timeframe?: TrendingTimeframe;
1434
+ /**
1435
+ * Which property to sort by, in conjunction with sortOrder.
1436
+ */
1437
+ sortBy?: CollectionSortByOption;
1438
+ /**
1439
+ * 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.
1440
+ */
1441
+ sortOrder?: SortOrder;
1442
+ }): CancelablePromise<ListNftCollectionWithMetricsResponse>;
1443
+ /**
1444
+ * Get token details
1445
+ * Get token details for a specific token of a contract.
1446
+ * @returns any
1447
+ * @throws ApiError
1448
+ */
1449
+ getTokenDetails({ chainId, address, tokenId, }: {
1450
+ /**
1451
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1452
+ */
1453
+ chainId: string;
1454
+ /**
1455
+ * Contract address on the relevant chain.
1456
+ */
1457
+ address: string;
1458
+ /**
1459
+ * TokenId on the contract
1460
+ */
1461
+ tokenId: string;
1462
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
1463
+ /**
1464
+ * List ERC transfers
1465
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
1466
+ * @returns ListTransfersResponse
1467
+ * @throws ApiError
1468
+ */
1469
+ listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1470
+ /**
1471
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1472
+ */
1473
+ chainId: string;
1474
+ /**
1475
+ * A wallet address.
1476
+ */
1477
+ address: string;
1478
+ startBlock?: number;
1479
+ endBlock?: number;
1480
+ /**
1481
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1482
+ */
1483
+ pageSize?: number;
1484
+ /**
1485
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1486
+ */
1487
+ pageToken?: string;
1488
+ }): CancelablePromise<ListTransfersResponse>;
1489
+ /**
1490
+ * List transactions
1491
+ * Returns a list of transactions where the given wallet address had an on-chain interaction for the given chain. The ERC-20 transfers, ERC-721 transfers, ERC-1155, and internal transactions returned are only those where the input address had an interaction. Specifically, those lists only inlcude entries where the input address was the sender (`from` field) or the receiver (`to` field) for the sub-transaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
1492
+ *
1493
+ * Filterable by block ranges.
1494
+ * @returns ListTransactionDetailsResponse
1495
+ * @throws ApiError
1496
+ */
1497
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
1498
+ /**
1499
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1500
+ */
1501
+ chainId: string;
1502
+ /**
1503
+ * A wallet address.
1504
+ */
1505
+ address: string;
1506
+ /**
1507
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1508
+ */
1509
+ pageSize?: number;
1510
+ /**
1511
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1512
+ */
1513
+ pageToken?: string;
1514
+ startBlock?: number;
1515
+ endBlock?: number;
1516
+ /**
1517
+ * 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.
1518
+ */
1519
+ sortOrder?: SortOrder;
1520
+ }): CancelablePromise<ListTransactionDetailsResponse>;
1521
+ /**
1522
+ * List native transactions
1523
+ * Lists native transactions for an address. Filterable by block range.
1524
+ * @returns ListNativeTransactionsResponse
1525
+ * @throws ApiError
1526
+ */
1527
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1528
+ /**
1529
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1530
+ */
1531
+ chainId: string;
1532
+ /**
1533
+ * A wallet address.
1534
+ */
1535
+ address: string;
1536
+ startBlock?: number;
1537
+ endBlock?: number;
1538
+ /**
1539
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1540
+ */
1541
+ pageSize?: number;
1542
+ /**
1543
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1544
+ */
1545
+ pageToken?: string;
1546
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1547
+ /**
1548
+ * List ERC-20 transfers
1549
+ * Lists ERC-20 transfers for an address. Filterable by block range.
1550
+ * @returns ListErc20TransactionsResponse
1551
+ * @throws ApiError
1552
+ */
1553
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1554
+ /**
1555
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1556
+ */
1557
+ chainId: string;
1558
+ /**
1559
+ * A wallet address.
1560
+ */
1561
+ address: string;
1562
+ startBlock?: number;
1563
+ endBlock?: number;
1564
+ /**
1565
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1566
+ */
1567
+ pageSize?: number;
1568
+ /**
1569
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1570
+ */
1571
+ pageToken?: string;
1572
+ }): CancelablePromise<ListErc20TransactionsResponse>;
1573
+ /**
1574
+ * List ERC-721 transfers
1575
+ * Lists ERC-721 transfers for an address. Filterable by block range.
1576
+ * @returns ListErc721TransactionsResponse
1577
+ * @throws ApiError
1578
+ */
1579
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1580
+ /**
1581
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1582
+ */
1583
+ chainId: string;
1584
+ /**
1585
+ * A wallet address.
1586
+ */
1587
+ address: string;
1588
+ startBlock?: number;
1589
+ endBlock?: number;
1590
+ /**
1591
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1592
+ */
1593
+ pageSize?: number;
1594
+ /**
1595
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1596
+ */
1597
+ pageToken?: string;
1598
+ }): CancelablePromise<ListErc721TransactionsResponse>;
1599
+ /**
1600
+ * List ERC-1155 transfers
1601
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
1602
+ * @returns ListErc1155TransactionsResponse
1603
+ * @throws ApiError
1604
+ */
1605
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1606
+ /**
1607
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1608
+ */
1609
+ chainId: string;
1610
+ /**
1611
+ * A wallet address.
1612
+ */
1613
+ address: string;
1614
+ startBlock?: number;
1615
+ endBlock?: number;
1616
+ /**
1617
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1618
+ */
1619
+ pageSize?: number;
1620
+ /**
1621
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1622
+ */
1623
+ pageToken?: string;
1624
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
1625
+ /**
1626
+ * List internal transactions
1627
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
1628
+ *
1629
+ * Note that the internal transactions list only contains `CALL` or `CALLCODE` transactions with a non-zero value and `CREATE`/`CREATE2` transactions. To get a complete list of internal transactions use the `debug_` prefixed RPC methods on an archive node.
1630
+ * @returns ListInternalTransactionsResponse
1631
+ * @throws ApiError
1632
+ */
1633
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
1634
+ /**
1635
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1636
+ */
1637
+ chainId: string;
1638
+ /**
1639
+ * A wallet address.
1640
+ */
1641
+ address: string;
1642
+ startBlock?: number;
1643
+ endBlock?: number;
1644
+ /**
1645
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1646
+ */
1647
+ pageSize?: number;
1648
+ /**
1649
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1650
+ */
1651
+ pageToken?: string;
1652
+ }): CancelablePromise<ListInternalTransactionsResponse>;
1653
+ /**
1654
+ * Get transaction
1655
+ * Gets the details of a single transaction.
1656
+ * @returns GetTransactionResponse
1657
+ * @throws ApiError
1658
+ */
1659
+ getTransaction({ chainId, txHash, }: {
1660
+ /**
1661
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1662
+ */
1663
+ chainId: string;
1664
+ /**
1665
+ * A transaction hash.
1666
+ */
1667
+ txHash: string;
1668
+ }): CancelablePromise<GetTransactionResponse>;
1669
+ /**
1670
+ * List transactions for a block
1671
+ * Lists the transactions that occured in a given block.
1672
+ * @returns ListNativeTransactionsResponse
1673
+ * @throws ApiError
1674
+ */
1675
+ getTransactionsForBlock({ chainId, blockId, }: {
1676
+ /**
1677
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1678
+ */
1679
+ chainId: string;
1680
+ /**
1681
+ * A block identifier which is either a block number or the block hash.
1682
+ */
1683
+ blockId: string;
1684
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1685
+ /**
1686
+ * List latest transactions
1687
+ * Lists the latest transactions. Filterable by status.
1688
+ * @returns ListNativeTransactionsResponse
1689
+ * @throws ApiError
1690
+ */
1691
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
1692
+ /**
1693
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1694
+ */
1695
+ chainId: string;
1696
+ /**
1697
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
1698
+ */
1699
+ pageSize?: number;
1700
+ /**
1701
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1702
+ */
1703
+ pageToken?: string;
1704
+ /**
1705
+ * A status filter for listed transactions.
1706
+ */
1707
+ status?: TransactionStatus;
1708
+ }): CancelablePromise<ListNativeTransactionsResponse>;
1709
+ }
1710
+
1711
+ declare class HealthCheckService {
1712
+ readonly httpRequest: BaseHttpRequest;
1713
+ constructor(httpRequest: BaseHttpRequest);
1714
+ /**
1715
+ * Get the health of the service
1716
+ * @returns any The Health Check is successful
1717
+ * @throws ApiError
1718
+ */
1719
+ healthCheck(): CancelablePromise<{
1720
+ status?: string;
1721
+ info?: Record<string, Record<string, string>> | null;
1722
+ error?: Record<string, Record<string, string>> | null;
1723
+ details?: Record<string, Record<string, string>>;
1724
+ }>;
1725
+ }
1726
+
1727
+ type EvmNetworkOptions = {
1728
+ addresses: Array<string>;
1729
+ includeChains: Array<string>;
1730
+ };
1731
+
1732
+ type CreateEvmTransactionExportRequest = {
1733
+ type: CreateEvmTransactionExportRequest.type;
1734
+ firstDate: string;
1735
+ lastDate: string;
1736
+ /**
1737
+ * @deprecated
1738
+ */
1739
+ startDate: string;
1740
+ /**
1741
+ * @deprecated
1742
+ */
1743
+ endDate: string;
1744
+ options: EvmNetworkOptions;
1745
+ };
1746
+ declare namespace CreateEvmTransactionExportRequest {
1747
+ enum type {
1748
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
1749
+ }
1750
+ }
1751
+
1752
+ type PrimaryNetworkOptions = {
1753
+ addresses: Array<string>;
1754
+ cChainEvmAddresses?: Array<string>;
1755
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
1756
+ };
1757
+
1758
+ type CreatePrimaryNetworkTransactionExportRequest = {
1759
+ type: CreatePrimaryNetworkTransactionExportRequest.type;
1760
+ firstDate: string;
1761
+ lastDate: string;
1762
+ /**
1763
+ * @deprecated
1764
+ */
1765
+ startDate: string;
1766
+ /**
1767
+ * @deprecated
1768
+ */
1769
+ endDate: string;
1770
+ options: PrimaryNetworkOptions;
1771
+ };
1772
+ declare namespace CreatePrimaryNetworkTransactionExportRequest {
1773
+ enum type {
1774
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1775
+ }
1776
+ }
1777
+
1778
+ declare enum OperationStatus {
1779
+ RUNNING = "RUNNING",
1780
+ COMPLETED = "COMPLETED",
1781
+ COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
1782
+ FAILED = "FAILED"
1783
+ }
1784
+
1785
+ declare enum OperationType {
1786
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
1787
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
1788
+ }
1789
+
1790
+ declare enum OperationStatusCode {
1791
+ ERR_INVALID_REQUEST = "ErrInvalidRequest",
1792
+ ERR_INTERNAL = "ErrInternal",
1793
+ WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
1794
+ }
1795
+
1796
+ type TransactionExportMetadata = {
1797
+ code?: OperationStatusCode;
1798
+ /**
1799
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
1800
+ */
1801
+ downloadUrl?: string;
1802
+ /**
1803
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
1804
+ */
1805
+ nextDate?: string;
1806
+ };
1807
+
1808
+ type OperationStatusResponse = {
1809
+ operationId: string;
1810
+ operationType: OperationType;
1811
+ operationStatus: OperationStatus;
1812
+ message?: string;
1813
+ metadata: TransactionExportMetadata;
1814
+ createdAtTimestamp: number;
1815
+ updatedAtTimestamp: number;
1816
+ };
1817
+
1818
+ declare class OperationsService {
1819
+ readonly httpRequest: BaseHttpRequest;
1820
+ constructor(httpRequest: BaseHttpRequest);
1821
+ /**
1822
+ * Create transaction export operation
1823
+ * Trigger a transaction export operation with given parameters.
1824
+ *
1825
+ * 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.
1826
+ * @returns OperationStatusResponse
1827
+ * @throws ApiError
1828
+ */
1829
+ postTransactionExportJob({ requestBody, }: {
1830
+ requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
1831
+ }): CancelablePromise<OperationStatusResponse>;
1832
+ /**
1833
+ * Get operation
1834
+ * Gets operation details for the given operation id.
1835
+ * @returns OperationStatusResponse
1836
+ * @throws ApiError
1837
+ */
1838
+ getOperationResult({ operationId, }: {
1839
+ /**
1840
+ * UUID of given operation
1841
+ */
1842
+ operationId: string;
1843
+ }): CancelablePromise<OperationStatusResponse>;
1844
+ }
1845
+
1846
+ declare enum BlockchainId {
1847
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
1848
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
1849
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
1850
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
1851
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
1852
+ P_CHAIN = "p-chain",
1853
+ X_CHAIN = "x-chain",
1854
+ C_CHAIN = "c-chain"
1855
+ }
1856
+
1857
+ type Asset = {
1858
+ /**
1859
+ * Unique ID for an asset.
1860
+ */
1861
+ assetId: string;
1862
+ /**
1863
+ * Name of this asset.
1864
+ */
1865
+ name: string;
1866
+ /**
1867
+ * Symbol for this asset (max 4 characters).
1868
+ */
1869
+ symbol: string;
1870
+ /**
1871
+ * Denomination of this asset to represent fungibility.
1872
+ */
1873
+ denomination: number;
1874
+ /**
1875
+ * Type of asset like SECP256K1 or NFT.
1876
+ */
1877
+ type: string;
1878
+ /**
1879
+ * Amount of the asset.
1880
+ */
1881
+ amount: string;
1882
+ };
1883
+
1884
+ type UtxoCredential = {
1885
+ /**
1886
+ * Signature provided to consume the output
1887
+ */
1888
+ signature?: string;
1889
+ /**
1890
+ * Public key associated with the signature
1891
+ */
1892
+ publicKey?: string;
1893
+ };
1894
+
1895
+ type EVMInput = {
1896
+ /**
1897
+ * EVM address from which the asset is exported in ExportTx.
1898
+ */
1899
+ fromAddress: string;
1900
+ /**
1901
+ * Asset details for the asset being transferred.
1902
+ */
1903
+ asset: Asset;
1904
+ /**
1905
+ * Credentials that signed this transaction.
1906
+ */
1907
+ credentials: Array<UtxoCredential>;
1908
+ };
1909
+
1910
+ type Utxo = {
1911
+ /**
1912
+ * UTXO ID for this output.
1913
+ */
1914
+ utxoId: string;
1915
+ asset: Asset;
1916
+ /**
1917
+ * Type of output.
1918
+ */
1919
+ utxoType: string;
1920
+ /**
1921
+ * Blockchain ID on which this output is created on.
1922
+ */
1923
+ createdOnChainId: string;
1924
+ /**
1925
+ * Blockchain ID on which this output is consumed on.
1926
+ */
1927
+ consumedOnChainId: string;
1928
+ /**
1929
+ * Transaction ID that created this output.
1930
+ */
1931
+ creationTxHash: string;
1932
+ /**
1933
+ * Transaction ID that consumed this output.
1934
+ */
1935
+ consumingTxHash?: string;
1936
+ /**
1937
+ * Timestamp in seconds this output is consumed.
1938
+ */
1939
+ consumingTxTimestamp?: number;
1940
+ /**
1941
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
1942
+ */
1943
+ outputIndex: string;
1944
+ /**
1945
+ * Timestamp in seconds this outptut is created on.
1946
+ */
1947
+ timestamp: number;
1948
+ /**
1949
+ * Locktime in seconds after which this output can be consumed.
1950
+ */
1951
+ locktime: number;
1952
+ /**
1953
+ * Minimum number of signatures required to consume this output.
1954
+ */
1955
+ threshold: number;
1956
+ /**
1957
+ * Addresses that are eligible to sign the consumption of this output.
1958
+ */
1959
+ addresses: Array<string>;
1960
+ /**
1961
+ * Hex encoded data for NFT assets
1962
+ */
1963
+ payload?: string;
1964
+ /**
1965
+ * Index representing the minting set for the NFT mint output
1966
+ */
1967
+ groupId?: number;
1968
+ /**
1969
+ * Credentials that signed the transaction to consume this utxo
1970
+ */
1971
+ credentials?: Array<UtxoCredential>;
1972
+ };
1973
+
1974
+ type CChainExportTransaction = {
1975
+ /**
1976
+ * Unique ID for this transaction.
1977
+ */
1978
+ txHash: string;
1979
+ /**
1980
+ * Height of the block this transaction belongs to.
1981
+ */
1982
+ blockHeight: number;
1983
+ /**
1984
+ * Hash of the block this transaction belongs to.
1985
+ */
1986
+ blockHash: string;
1987
+ /**
1988
+ * Latest timestamp in seconds this transaction was accepted.
1989
+ */
1990
+ timestamp: number;
1991
+ /**
1992
+ * Hex encoded memo bytes for this transaction.
1993
+ */
1994
+ memo: string;
1995
+ /**
1996
+ * Assets unlocked by inputs of this transaction.
1997
+ */
1998
+ amountUnlocked: Array<Asset>;
1999
+ /**
2000
+ * Assets created by outputs of this transaction.
2001
+ */
2002
+ amountCreated: Array<Asset>;
2003
+ /**
2004
+ * Source chain for an atomic transaction.
2005
+ */
2006
+ sourceChain: string;
2007
+ /**
2008
+ * Destination chain for an atomic transaction.
2009
+ */
2010
+ destinationChain: string;
2011
+ /**
2012
+ * Type of transaction.
2013
+ */
2014
+ txType: CChainExportTransaction.txType;
2015
+ evmInputs: Array<EVMInput>;
2016
+ emittedUtxos: Array<Utxo>;
2017
+ };
2018
+ declare namespace CChainExportTransaction {
2019
+ /**
2020
+ * Type of transaction.
2021
+ */
2022
+ enum txType {
2023
+ EXPORT_TX = "ExportTx"
2024
+ }
2025
+ }
2026
+
2027
+ type EVMOutput = {
2028
+ /**
2029
+ * EVM address to which the asset is imported in ImportTx
2030
+ */
2031
+ toAddress: string;
2032
+ /**
2033
+ * Asset details for the asset being transferred.
2034
+ */
2035
+ asset: Asset;
2036
+ };
2037
+
2038
+ type CChainImportTransaction = {
2039
+ /**
2040
+ * Unique ID for this transaction.
2041
+ */
2042
+ txHash: string;
2043
+ /**
2044
+ * Height of the block this transaction belongs to.
2045
+ */
2046
+ blockHeight: number;
2047
+ /**
2048
+ * Hash of the block this transaction belongs to.
2049
+ */
2050
+ blockHash: string;
2051
+ /**
2052
+ * Latest timestamp in seconds this transaction was accepted.
2053
+ */
2054
+ timestamp: number;
2055
+ /**
2056
+ * Hex encoded memo bytes for this transaction.
2057
+ */
2058
+ memo: string;
2059
+ /**
2060
+ * Assets unlocked by inputs of this transaction.
2061
+ */
2062
+ amountUnlocked: Array<Asset>;
2063
+ /**
2064
+ * Assets created by outputs of this transaction.
2065
+ */
2066
+ amountCreated: Array<Asset>;
2067
+ /**
2068
+ * Source chain for an atomic transaction.
2069
+ */
2070
+ sourceChain: string;
2071
+ /**
2072
+ * Destination chain for an atomic transaction.
2073
+ */
2074
+ destinationChain: string;
2075
+ /**
2076
+ * Type of transaction.
2077
+ */
2078
+ txType: CChainImportTransaction.txType;
2079
+ evmOutputs: Array<EVMOutput>;
2080
+ consumedUtxos: Array<Utxo>;
2081
+ };
2082
+ declare namespace CChainImportTransaction {
2083
+ /**
2084
+ * Type of transaction.
2085
+ */
2086
+ enum txType {
2087
+ IMPORT_TX = "ImportTx"
2088
+ }
2089
+ }
2090
+
2091
+ declare enum BlockchainIds {
2092
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2093
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2094
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2095
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2096
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2097
+ }
2098
+
2099
+ type ChainAddressChainIdMap = {
2100
+ address: string;
2101
+ blockchainIds: Array<BlockchainIds>;
2102
+ };
2103
+
2104
+ type ChainAddressChainIdMapListResponse = {
2105
+ addresses: Array<ChainAddressChainIdMap>;
2106
+ };
2107
+
2108
+ type DelegatorsDetails = {
2109
+ delegatorCount: number;
2110
+ totalAmountStaked: string;
2111
+ };
2112
+
2113
+ type StakingDistribution = {
2114
+ version: string;
2115
+ amountStaked: string;
2116
+ };
2117
+
2118
+ type ValidatorsDetails = {
2119
+ validatorCount: number;
2120
+ totalAmountStaked: string;
2121
+ estimatedAnnualStakingReward: string;
2122
+ stakingDistributionByVersion: Array<StakingDistribution>;
2123
+ };
2124
+
2125
+ type GetNetworkDetailsResponse = {
2126
+ validatorDetails: ValidatorsDetails;
2127
+ delegatorDetails: DelegatorsDetails;
2128
+ };
2129
+
2130
+ type ProposerDetails = {
2131
+ proposerId?: string;
2132
+ proposerParentId?: string;
2133
+ proposerNodeId?: string;
2134
+ proposerPChainHeight?: number;
2135
+ proposerTimestamp?: number;
2136
+ };
2137
+
2138
+ type GetPrimaryNetworkBlockResponse = {
2139
+ blockNumber: string;
2140
+ blockHash: string;
2141
+ parentHash: string;
2142
+ blockTimestamp: number;
2143
+ blockType: string;
2144
+ txCount: number;
2145
+ transactions: Array<string>;
2146
+ blockSizeBytes: number;
2147
+ proposerDetails?: ProposerDetails;
2148
+ };
2149
+
2150
+ type Blockchain = {
2151
+ createBlockTimestamp: number;
2152
+ createBlockNumber: string;
2153
+ blockchainId: string;
2154
+ vmId: string;
2155
+ subnetId: string;
2156
+ blockchainName: string;
2157
+ };
2158
+
2159
+ type ListBlockchainsResponse = {
2160
+ /**
2161
+ * 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.
2162
+ */
2163
+ nextPageToken?: string;
2164
+ blockchains: Array<Blockchain>;
2165
+ };
2166
+
2167
+ type CChainSharedAssetBalance = {
2168
+ /**
2169
+ * Unique ID for an asset.
2170
+ */
2171
+ assetId: string;
2172
+ /**
2173
+ * Name of this asset.
2174
+ */
2175
+ name: string;
2176
+ /**
2177
+ * Symbol for this asset (max 4 characters).
2178
+ */
2179
+ symbol: string;
2180
+ /**
2181
+ * Denomination of this asset to represent fungibility.
2182
+ */
2183
+ denomination: number;
2184
+ /**
2185
+ * Type of asset like SECP256K1 or NFT.
2186
+ */
2187
+ type: string;
2188
+ /**
2189
+ * Amount of the asset.
2190
+ */
2191
+ amount: string;
2192
+ utxoCount: number;
2193
+ sharedWithChainId: string;
2194
+ };
2195
+
2196
+ type CChainAtomicBalances = {
2197
+ atomicMemoryUnlocked: Array<CChainSharedAssetBalance>;
2198
+ atomicMemoryLocked: Array<CChainSharedAssetBalance>;
2199
+ };
2200
+
2201
+ type PrimaryNetworkChainInfo = {
2202
+ chainName: any;
2203
+ network: any;
2204
+ };
2205
+
2206
+ type ListCChainAtomicBalancesResponse = {
2207
+ balances: CChainAtomicBalances;
2208
+ chainInfo: PrimaryNetworkChainInfo;
2209
+ };
2210
+
2211
+ type ListCChainAtomicTransactionsResponse = {
2212
+ /**
2213
+ * 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.
2214
+ */
2215
+ nextPageToken?: string;
2216
+ transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
2217
+ chainInfo: PrimaryNetworkChainInfo;
2218
+ };
2219
+
2220
+ type PChainAsset = {
2221
+ assetId: string;
2222
+ amount: string;
2223
+ };
2224
+
2225
+ declare enum RewardType {
2226
+ VALIDATOR = "VALIDATOR",
2227
+ DELEGATOR = "DELEGATOR"
2228
+ }
2229
+
2230
+ type HistoricalReward = {
2231
+ /**
2232
+ * An array of P-Chain wallet addresses.
2233
+ */
2234
+ addresses: Array<string>;
2235
+ txHash: string;
2236
+ amountStaked: string;
2237
+ nodeId: string;
2238
+ startTimestamp: number;
2239
+ endTimestamp: number;
2240
+ rewardType: RewardType;
2241
+ utxoId: string;
2242
+ outputIndex: number;
2243
+ /**
2244
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
2245
+ */
2246
+ reward: PChainAsset;
2247
+ rewardTxHash: string;
2248
+ };
2249
+
2250
+ type ListHistoricalRewardsResponse = {
2251
+ /**
2252
+ * 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.
2253
+ */
2254
+ nextPageToken?: string;
2255
+ historicalRewards: Array<HistoricalReward>;
2256
+ };
2257
+
2258
+ type PChainSharedAsset = {
2259
+ assetId: string;
2260
+ amount: string;
2261
+ sharedWithChainId: string;
2262
+ status: string;
2263
+ };
2264
+
2265
+ type PChainBalance = {
2266
+ /**
2267
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2268
+ */
2269
+ unlockedUnstaked: Array<PChainAsset>;
2270
+ /**
2271
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2272
+ */
2273
+ unlockedStaked: Array<PChainAsset>;
2274
+ /**
2275
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2276
+ */
2277
+ lockedPlatform: Array<PChainAsset>;
2278
+ /**
2279
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2280
+ */
2281
+ lockedStakeable: Array<PChainAsset>;
2282
+ /**
2283
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2284
+ */
2285
+ lockedStaked: Array<PChainAsset>;
2286
+ /**
2287
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2288
+ */
2289
+ pendingStaked: Array<PChainAsset>;
2290
+ /**
2291
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2292
+ */
2293
+ atomicMemoryUnlocked: Array<PChainSharedAsset>;
2294
+ /**
2295
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
2296
+ */
2297
+ atomicMemoryLocked: Array<PChainSharedAsset>;
2298
+ };
2299
+
2300
+ type ListPChainBalancesResponse = {
2301
+ balances: PChainBalance;
2302
+ chainInfo: PrimaryNetworkChainInfo;
2303
+ };
2304
+
2305
+ declare enum PChainTransactionType {
2306
+ ADD_VALIDATOR_TX = "AddValidatorTx",
2307
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
2308
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
2309
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2310
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2311
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
2312
+ CREATE_CHAIN_TX = "CreateChainTx",
2313
+ CREATE_SUBNET_TX = "CreateSubnetTx",
2314
+ IMPORT_TX = "ImportTx",
2315
+ EXPORT_TX = "ExportTx",
2316
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
2317
+ UNKNOWN = "UNKNOWN"
2318
+ }
2319
+
2320
+ declare enum UtxoType {
2321
+ STAKE = "STAKE",
2322
+ TRANSFER = "TRANSFER"
2323
+ }
2324
+
2325
+ type PChainUtxo = {
2326
+ /**
2327
+ * An array of P-Chain wallet addresses.
2328
+ */
2329
+ addresses: Array<string>;
2330
+ utxoId: string;
2331
+ txHash: string;
2332
+ outputIndex: number;
2333
+ blockNumber: string;
2334
+ blockTimestamp: number;
2335
+ consumingTxHash?: string;
2336
+ consumingBlockTimestamp?: number;
2337
+ consumingBlockNumber?: string;
2338
+ assetId: string;
2339
+ utxoType: UtxoType;
2340
+ amount: string;
2341
+ stakeableLocktime?: number;
2342
+ platformLocktime?: number;
2343
+ threshold?: number;
2344
+ createdOnChainId: string;
2345
+ consumedOnChainId: string;
2346
+ staked?: boolean;
2347
+ utxoStartTimestamp?: number;
2348
+ utxoEndTimestamp?: number;
2349
+ rewardType?: RewardType;
2350
+ };
2351
+
2352
+ type PChainTransaction = {
2353
+ /**
2354
+ * A P-Chain transaction hash.
2355
+ */
2356
+ txHash: string;
2357
+ txType: PChainTransactionType;
2358
+ /**
2359
+ * The block finality timestamp.
2360
+ */
2361
+ blockTimestamp: number;
2362
+ blockNumber: string;
2363
+ blockHash: string;
2364
+ consumedUtxos: Array<PChainUtxo>;
2365
+ emittedUtxos: Array<PChainUtxo>;
2366
+ /**
2367
+ * Source chain for an atomic transaction.
2368
+ */
2369
+ sourceChain?: string;
2370
+ /**
2371
+ * Destination chain for an atomic transaction.
2372
+ */
2373
+ destinationChain?: string;
2374
+ /**
2375
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
2376
+ */
2377
+ value: Array<PChainAsset>;
2378
+ /**
2379
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
2380
+ */
2381
+ amountBurned: Array<PChainAsset>;
2382
+ /**
2383
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
2384
+ */
2385
+ amountStaked: Array<PChainAsset>;
2386
+ /**
2387
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
2388
+ */
2389
+ startTimestamp?: number;
2390
+ /**
2391
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
2392
+ */
2393
+ endTimestamp?: number;
2394
+ /**
2395
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx
2396
+ */
2397
+ delegationFeePercent?: string;
2398
+ /**
2399
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
2400
+ */
2401
+ nodeId?: string;
2402
+ /**
2403
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
2404
+ */
2405
+ subnetId?: string;
2406
+ /**
2407
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
2408
+ */
2409
+ estimatedReward?: string;
2410
+ rewardTxHash?: string;
2411
+ memo?: string;
2412
+ /**
2413
+ * Present for RewardValidatorTx
2414
+ */
2415
+ stakingTxHash?: string;
2416
+ };
2417
+
2418
+ type ListPChainTransactionsResponse = {
2419
+ /**
2420
+ * 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.
2421
+ */
2422
+ nextPageToken?: string;
2423
+ transactions: Array<PChainTransaction>;
2424
+ chainInfo: PrimaryNetworkChainInfo;
2425
+ };
2426
+
2427
+ type ListPChainUtxosResponse = {
2428
+ /**
2429
+ * 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.
2430
+ */
2431
+ nextPageToken?: string;
2432
+ utxos: Array<PChainUtxo>;
2433
+ chainInfo: PrimaryNetworkChainInfo;
2434
+ };
2435
+
2436
+ type PendingReward = {
2437
+ /**
2438
+ * An array of P-Chain wallet addresses.
2439
+ */
2440
+ addresses: Array<string>;
2441
+ txHash: string;
2442
+ amountStaked: string;
2443
+ nodeId: string;
2444
+ startTimestamp: number;
2445
+ endTimestamp: number;
2446
+ rewardType: RewardType;
2447
+ progress: number;
2448
+ /**
2449
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
2450
+ */
2451
+ estimatedReward: PChainAsset;
2452
+ };
2453
+
2454
+ type ListPendingRewardsResponse = {
2455
+ /**
2456
+ * 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.
2457
+ */
2458
+ nextPageToken?: string;
2459
+ pendingRewards: Array<PendingReward>;
2460
+ };
2461
+
2462
+ type PrimaryNetworkBlock = {
2463
+ blockNumber: string;
2464
+ blockHash: string;
2465
+ parentHash: string;
2466
+ blockTimestamp: number;
2467
+ blockType: string;
2468
+ txCount: number;
2469
+ transactions: Array<string>;
2470
+ blockSizeBytes: number;
2471
+ proposerDetails?: ProposerDetails;
2472
+ };
2473
+
2474
+ type ListPrimaryNetworkBlocksResponse = {
2475
+ /**
2476
+ * 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.
2477
+ */
2478
+ nextPageToken?: string;
2479
+ blocks: Array<PrimaryNetworkBlock>;
2480
+ chainInfo: PrimaryNetworkChainInfo;
2481
+ };
2482
+
2483
+ type BlockchainInfo = {
2484
+ blockchainId: string;
2485
+ };
2486
+
2487
+ type Subnet = {
2488
+ createBlockTimestamp: number;
2489
+ createBlockIndex: string;
2490
+ subnetId: string;
2491
+ ownerAddresses: Array<string>;
2492
+ threshold: number;
2493
+ locktime: number;
2494
+ blockchains: Array<BlockchainInfo>;
2495
+ };
2496
+
2497
+ type ListSubnetsResponse = {
2498
+ /**
2499
+ * 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.
2500
+ */
2501
+ nextPageToken?: string;
2502
+ subnets: Array<Subnet>;
2503
+ };
2504
+
2505
+ type ListUtxosResponse = {
2506
+ /**
2507
+ * 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.
2508
+ */
2509
+ nextPageToken?: string;
2510
+ utxos: Array<Utxo>;
2511
+ chainInfo: PrimaryNetworkChainInfo;
2512
+ };
2513
+
2514
+ type Rewards = {
2515
+ validationRewardAmount: string;
2516
+ delegationRewardAmount: string;
2517
+ };
2518
+
2519
+ declare enum ValidationStatusType {
2520
+ COMPLETED = "completed"
2521
+ }
2522
+
2523
+ type CompletedValidatorDetails = {
2524
+ nodeId: string;
2525
+ amountStaked: string;
2526
+ delegationFee: string;
2527
+ startTimestamp: number;
2528
+ endTimestamp: number;
2529
+ validationStatus: ValidationStatusType;
2530
+ delegatorCount: number;
2531
+ rewards: Rewards;
2532
+ };
2533
+
2534
+ type ListValidatorDetailsResponse = {
2535
+ /**
2536
+ * 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.
2537
+ */
2538
+ nextPageToken?: string;
2539
+ validators: Array<CompletedValidatorDetails>;
2540
+ };
2541
+
2542
+ type XChainAssetBalance = {
2543
+ /**
2544
+ * Unique ID for an asset.
2545
+ */
2546
+ assetId: string;
2547
+ /**
2548
+ * Name of this asset.
2549
+ */
2550
+ name: string;
2551
+ /**
2552
+ * Symbol for this asset (max 4 characters).
2553
+ */
2554
+ symbol: string;
2555
+ /**
2556
+ * Denomination of this asset to represent fungibility.
2557
+ */
2558
+ denomination: number;
2559
+ /**
2560
+ * Type of asset like SECP256K1 or NFT.
2561
+ */
2562
+ type: string;
2563
+ /**
2564
+ * Amount of the asset.
2565
+ */
2566
+ amount: string;
2567
+ utxoCount: number;
2568
+ };
2569
+
2570
+ type XChainSharedAssetBalance = {
2571
+ /**
2572
+ * Unique ID for an asset.
2573
+ */
2574
+ assetId: string;
2575
+ /**
2576
+ * Name of this asset.
2577
+ */
2578
+ name: string;
2579
+ /**
2580
+ * Symbol for this asset (max 4 characters).
2581
+ */
2582
+ symbol: string;
2583
+ /**
2584
+ * Denomination of this asset to represent fungibility.
2585
+ */
2586
+ denomination: number;
2587
+ /**
2588
+ * Type of asset like SECP256K1 or NFT.
2589
+ */
2590
+ type: string;
2591
+ /**
2592
+ * Amount of the asset.
2593
+ */
2594
+ amount: string;
2595
+ utxoCount: number;
2596
+ sharedWithChainId: string;
2597
+ };
2598
+
2599
+ type XChainBalances = {
2600
+ /**
2601
+ * A list of objects containing X-chain Asset balance information.
2602
+ */
2603
+ locked: Array<XChainAssetBalance>;
2604
+ /**
2605
+ * A list of objects containing X-chain Asset balance information.
2606
+ */
2607
+ unlocked: Array<XChainAssetBalance>;
2608
+ atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
2609
+ atomicMemoryLocked: Array<XChainSharedAssetBalance>;
2610
+ };
2611
+
2612
+ type ListXChainBalancesResponse = {
2613
+ balances: XChainBalances;
2614
+ chainInfo: PrimaryNetworkChainInfo;
2615
+ };
2616
+
2617
+ type XChainAssetDetails = {
2618
+ /**
2619
+ * Unique ID for an asset.
2620
+ */
2621
+ assetId: string;
2622
+ /**
2623
+ * Name of this asset.
2624
+ */
2625
+ name: string;
2626
+ /**
2627
+ * Symbol for this asset (max 4 characters).
2628
+ */
2629
+ symbol: string;
2630
+ /**
2631
+ * Denomination of this asset to represent fungibility.
2632
+ */
2633
+ denomination: number;
2634
+ /**
2635
+ * Type of asset like SECP256K1 or NFT.
2636
+ */
2637
+ type: string;
2638
+ /**
2639
+ * Timestamp in seconds this asset was created on.
2640
+ */
2641
+ createdAtTimestamp: number;
2642
+ /**
2643
+ * Cap represents if an asset can be or is fixed cap.
2644
+ */
2645
+ cap: string;
2646
+ };
2647
+
2648
+ type XChainLinearTransaction = {
2649
+ /**
2650
+ * Unique ID for this transaction.
2651
+ */
2652
+ txHash: string;
2653
+ /**
2654
+ * Represents chain format this transaction is included in.
2655
+ */
2656
+ chainFormat: XChainLinearTransaction.chainFormat;
2657
+ /**
2658
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
2659
+ */
2660
+ timestamp: number;
2661
+ /**
2662
+ * Type of transaction.
2663
+ */
2664
+ txType: string;
2665
+ /**
2666
+ * Hex encoded memo bytes for this transaction.
2667
+ */
2668
+ memo: string;
2669
+ consumedUtxos: Array<Utxo>;
2670
+ emittedUtxos: Array<Utxo>;
2671
+ /**
2672
+ * Assets unlocked by inputs of this transaction.
2673
+ */
2674
+ amountUnlocked: Array<Asset>;
2675
+ /**
2676
+ * Assets created by outputs of this transaction.
2677
+ */
2678
+ amountCreated: Array<Asset>;
2679
+ /**
2680
+ * Source chain for an atomic transaction.
2681
+ */
2682
+ sourceChain?: string;
2683
+ /**
2684
+ * Destination chain for an atomic transaction.
2685
+ */
2686
+ destinationChain?: string;
2687
+ /**
2688
+ * Asset details of the asset created in CreateAssetTx
2689
+ */
2690
+ assetCreated?: XChainAssetDetails;
2691
+ /**
2692
+ * Height of the block this transaction belongs to.
2693
+ */
2694
+ blockHeight: number;
2695
+ /**
2696
+ * Hash of the block this transaction belongs to.
2697
+ */
2698
+ blockHash: string;
2699
+ };
2700
+ declare namespace XChainLinearTransaction {
2701
+ /**
2702
+ * Represents chain format this transaction is included in.
2703
+ */
2704
+ enum chainFormat {
2705
+ NON_LINEAR = "non-linear",
2706
+ LINEAR = "linear"
2707
+ }
2708
+ }
2709
+
2710
+ type TransactionVertexDetail = {
2711
+ /**
2712
+ * Vertex ID of the vertex this transaction belongs to.
2713
+ */
2714
+ hash: string;
2715
+ /**
2716
+ * Vertex height of the vertex this transaction belongs to.
2717
+ */
2718
+ height: number;
2719
+ /**
2720
+ * Timestamp in seconds this vertex was accepted.
2721
+ */
2722
+ timestamp: number;
2723
+ };
2724
+
2725
+ type XChainNonLinearTransaction = {
2726
+ /**
2727
+ * Unique ID for this transaction.
2728
+ */
2729
+ txHash: string;
2730
+ /**
2731
+ * Represents chain format this transaction is included in.
2732
+ */
2733
+ chainFormat: XChainNonLinearTransaction.chainFormat;
2734
+ /**
2735
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
2736
+ */
2737
+ timestamp: number;
2738
+ /**
2739
+ * Type of transaction.
2740
+ */
2741
+ txType: string;
2742
+ /**
2743
+ * Hex encoded memo bytes for this transaction.
2744
+ */
2745
+ memo: string;
2746
+ consumedUtxos: Array<Utxo>;
2747
+ emittedUtxos: Array<Utxo>;
2748
+ /**
2749
+ * Assets unlocked by inputs of this transaction.
2750
+ */
2751
+ amountUnlocked: Array<Asset>;
2752
+ /**
2753
+ * Assets created by outputs of this transaction.
2754
+ */
2755
+ amountCreated: Array<Asset>;
2756
+ /**
2757
+ * Source chain for an atomic transaction.
2758
+ */
2759
+ sourceChain?: string;
2760
+ /**
2761
+ * Destination chain for an atomic transaction.
2762
+ */
2763
+ destinationChain?: string;
2764
+ /**
2765
+ * Asset details of the asset created in CreateAssetTx
2766
+ */
2767
+ assetCreated?: XChainAssetDetails;
2768
+ /**
2769
+ * A transaction on X-Chain can be accepted over multiple vertices.
2770
+ */
2771
+ vertices: Array<TransactionVertexDetail>;
2772
+ };
2773
+ declare namespace XChainNonLinearTransaction {
2774
+ /**
2775
+ * Represents chain format this transaction is included in.
2776
+ */
2777
+ enum chainFormat {
2778
+ NON_LINEAR = "non-linear",
2779
+ LINEAR = "linear"
2780
+ }
2781
+ }
2782
+
2783
+ type ListXChainTransactionsResponse = {
2784
+ /**
2785
+ * 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.
2786
+ */
2787
+ nextPageToken?: string;
2788
+ transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
2789
+ chainInfo: PrimaryNetworkChainInfo;
2790
+ };
2791
+
2792
+ type XChainVertex = {
2793
+ vertexHash: string;
2794
+ parentHashes: Array<string>;
2795
+ vertexHeight: number;
2796
+ vertexIndex: number;
2797
+ vertexTimestamp: number;
2798
+ txCount: number;
2799
+ transactions: Array<string>;
2800
+ vertexSizeBytes: number;
2801
+ };
2802
+
2803
+ type ListXChainVerticesResponse = {
2804
+ /**
2805
+ * 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.
2806
+ */
2807
+ nextPageToken?: string;
2808
+ vertices: Array<XChainVertex>;
2809
+ chainInfo: PrimaryNetworkChainInfo;
2810
+ };
2811
+
2812
+ declare enum Network {
2813
+ MAINNET = "mainnet",
2814
+ FUJI = "fuji"
2815
+ }
2816
+
2817
+ declare enum PChainId {
2818
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2819
+ P_CHAIN = "p-chain"
2820
+ }
2821
+
2822
+ declare enum PrimaryNetworkTxType {
2823
+ ADD_VALIDATOR_TX = "AddValidatorTx",
2824
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
2825
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
2826
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
2827
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
2828
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
2829
+ CREATE_CHAIN_TX = "CreateChainTx",
2830
+ CREATE_SUBNET_TX = "CreateSubnetTx",
2831
+ IMPORT_TX = "ImportTx",
2832
+ EXPORT_TX = "ExportTx",
2833
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
2834
+ UNKNOWN = "UNKNOWN",
2835
+ BASE_TX = "BaseTx",
2836
+ CREATE_ASSET_TX = "CreateAssetTx",
2837
+ OPERATION_TX = "OperationTx"
2838
+ }
2839
+
2840
+ declare enum XChainId {
2841
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2842
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2843
+ X_CHAIN = "x-chain"
2844
+ }
2845
+
2846
+ declare class PrimaryNetworkService {
2847
+ readonly httpRequest: BaseHttpRequest;
2848
+ constructor(httpRequest: BaseHttpRequest);
2849
+ /**
2850
+ * Get transaction
2851
+ * Gets the details of a single transaction on one of the Primary Network chains.
2852
+ * @returns any
2853
+ * @throws ApiError
2854
+ */
2855
+ getTxByHash({ blockchainId, network, txHash, }: {
2856
+ /**
2857
+ * A primary network blockchain id or alias.
2858
+ */
2859
+ blockchainId: BlockchainId;
2860
+ /**
2861
+ * Either mainnet or a testnet.
2862
+ */
2863
+ network: Network;
2864
+ /**
2865
+ * A primary network (P or X chain) transaction hash.
2866
+ */
2867
+ txHash: string;
2868
+ }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
2869
+ /**
2870
+ * List latest transactions
2871
+ * Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
2872
+ * @returns any
2873
+ * @throws ApiError
2874
+ */
2875
+ listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
2876
+ /**
2877
+ * A primary network blockchain id or alias.
2878
+ */
2879
+ blockchainId: BlockchainId;
2880
+ /**
2881
+ * Either mainnet or a testnet.
2882
+ */
2883
+ network: Network;
2884
+ /**
2885
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
2886
+ */
2887
+ addresses?: string;
2888
+ /**
2889
+ * Query param for filtering items based on transaction types.
2890
+ */
2891
+ txTypes?: Array<PrimaryNetworkTxType>;
2892
+ /**
2893
+ * Query param for retrieving items after a specific timestamp.
2894
+ */
2895
+ startTimestamp?: number;
2896
+ /**
2897
+ * Query param for retrieving items before a specific timestamp.
2898
+ */
2899
+ endTimestamp?: number;
2900
+ /**
2901
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2902
+ */
2903
+ pageSize?: number;
2904
+ /**
2905
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2906
+ */
2907
+ pageToken?: string;
2908
+ /**
2909
+ * 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.
2910
+ */
2911
+ sortOrder?: SortOrder;
2912
+ }): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
2913
+ /**
2914
+ * List staking transactions
2915
+ * Lists active staking transactions on the P-Chain for the supplied addresses.
2916
+ * @returns ListPChainTransactionsResponse
2917
+ * @throws ApiError
2918
+ */
2919
+ listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
2920
+ /**
2921
+ * A primary network blockchain id or alias.
2922
+ */
2923
+ blockchainId: PChainId;
2924
+ /**
2925
+ * Either mainnet or a testnet.
2926
+ */
2927
+ network: Network;
2928
+ /**
2929
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
2930
+ */
2931
+ addresses?: string;
2932
+ /**
2933
+ * Query param for filtering items based on transaction types.
2934
+ */
2935
+ txTypes?: Array<PrimaryNetworkTxType>;
2936
+ /**
2937
+ * Query param for retrieving items after a specific timestamp.
2938
+ */
2939
+ startTimestamp?: number;
2940
+ /**
2941
+ * Query param for retrieving items before a specific timestamp.
2942
+ */
2943
+ endTimestamp?: number;
2944
+ /**
2945
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2946
+ */
2947
+ pageSize?: number;
2948
+ /**
2949
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2950
+ */
2951
+ pageToken?: string;
2952
+ /**
2953
+ * 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.
2954
+ */
2955
+ sortOrder?: SortOrder;
2956
+ }): CancelablePromise<ListPChainTransactionsResponse>;
2957
+ /**
2958
+ * List pending rewards
2959
+ * Lists pending rewards on the Primary Network for the supplied addresses.
2960
+ * @returns ListPendingRewardsResponse
2961
+ * @throws ApiError
2962
+ */
2963
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2964
+ /**
2965
+ * Either mainnet or a testnet.
2966
+ */
2967
+ network: Network;
2968
+ /**
2969
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
2970
+ */
2971
+ addresses?: string;
2972
+ /**
2973
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2974
+ */
2975
+ pageSize?: number;
2976
+ /**
2977
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2978
+ */
2979
+ pageToken?: string;
2980
+ /**
2981
+ * 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.
2982
+ */
2983
+ sortOrder?: SortOrder;
2984
+ }): CancelablePromise<ListPendingRewardsResponse>;
2985
+ /**
2986
+ * List historical rewards
2987
+ * Lists historical rewards on the Primary Network for the supplied addresses.
2988
+ * @returns ListHistoricalRewardsResponse
2989
+ * @throws ApiError
2990
+ */
2991
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2992
+ /**
2993
+ * Either mainnet or a testnet.
2994
+ */
2995
+ network: Network;
2996
+ /**
2997
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
2998
+ */
2999
+ addresses?: string;
3000
+ /**
3001
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3002
+ */
3003
+ pageSize?: number;
3004
+ /**
3005
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3006
+ */
3007
+ pageToken?: string;
3008
+ /**
3009
+ * 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.
3010
+ */
3011
+ sortOrder?: SortOrder;
3012
+ }): CancelablePromise<ListHistoricalRewardsResponse>;
3013
+ /**
3014
+ * List UTXOs
3015
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses.
3016
+ * @returns any
3017
+ * @throws ApiError
3018
+ */
3019
+ getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, sortOrder, }: {
3020
+ /**
3021
+ * A primary network blockchain id or alias.
3022
+ */
3023
+ blockchainId: BlockchainId;
3024
+ /**
3025
+ * Either mainnet or a testnet.
3026
+ */
3027
+ network: Network;
3028
+ /**
3029
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3030
+ */
3031
+ addresses?: string;
3032
+ /**
3033
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3034
+ */
3035
+ pageSize?: number;
3036
+ /**
3037
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3038
+ */
3039
+ pageToken?: string;
3040
+ /**
3041
+ * Asset ID for any asset (only applicable X-Chain)
3042
+ */
3043
+ assetId?: string;
3044
+ /**
3045
+ * 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.
3046
+ */
3047
+ sortOrder?: SortOrder;
3048
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
3049
+ /**
3050
+ * Get balances
3051
+ * Gets primary network balances for one of the Primary Network chains for the supplied addresses.
3052
+ *
3053
+ * C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
3054
+ * @returns any
3055
+ * @throws ApiError
3056
+ */
3057
+ getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
3058
+ /**
3059
+ * A primary network blockchain id or alias.
3060
+ */
3061
+ blockchainId: BlockchainId;
3062
+ /**
3063
+ * Either mainnet or a testnet.
3064
+ */
3065
+ network: Network;
3066
+ /**
3067
+ * An epoch timestamp in seconds. Balance will be calculated at this timestamp.
3068
+ */
3069
+ blockTimestamp?: number;
3070
+ /**
3071
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3072
+ */
3073
+ addresses?: string;
3074
+ }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
3075
+ /**
3076
+ * Get block
3077
+ * Gets a block by block height or block hash on one of the Primary Network chains.
3078
+ * @returns GetPrimaryNetworkBlockResponse
3079
+ * @throws ApiError
3080
+ */
3081
+ getBlockById({ blockchainId, network, blockId, }: {
3082
+ /**
3083
+ * A primary network blockchain id or alias.
3084
+ */
3085
+ blockchainId: BlockchainId;
3086
+ /**
3087
+ * Either mainnet or a testnet.
3088
+ */
3089
+ network: Network;
3090
+ /**
3091
+ * A block identifier which is either a block number or the block hash.
3092
+ */
3093
+ blockId: string;
3094
+ }): CancelablePromise<GetPrimaryNetworkBlockResponse>;
3095
+ /**
3096
+ * List blocks proposed by node
3097
+ * Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
3098
+ * @returns ListPrimaryNetworkBlocksResponse
3099
+ * @throws ApiError
3100
+ */
3101
+ listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3102
+ /**
3103
+ * A primary network blockchain id or alias.
3104
+ */
3105
+ blockchainId: BlockchainId;
3106
+ /**
3107
+ * Either mainnet or a testnet.
3108
+ */
3109
+ network: Network;
3110
+ /**
3111
+ * A primary network (P or X chain) nodeId.
3112
+ */
3113
+ nodeId: string;
3114
+ /**
3115
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3116
+ */
3117
+ pageSize?: number;
3118
+ /**
3119
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3120
+ */
3121
+ pageToken?: string;
3122
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3123
+ /**
3124
+ * List latest blocks
3125
+ * Lists latest blocks on one of the Primary Network chains.
3126
+ * @returns ListPrimaryNetworkBlocksResponse
3127
+ * @throws ApiError
3128
+ */
3129
+ listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3130
+ /**
3131
+ * A primary network blockchain id or alias.
3132
+ */
3133
+ blockchainId: BlockchainId;
3134
+ /**
3135
+ * Either mainnet or a testnet.
3136
+ */
3137
+ network: Network;
3138
+ /**
3139
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3140
+ */
3141
+ pageSize?: number;
3142
+ /**
3143
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3144
+ */
3145
+ pageToken?: string;
3146
+ }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3147
+ /**
3148
+ * List vertices
3149
+ * Lists latest vertices on the X-Chain.
3150
+ * @returns ListXChainVerticesResponse
3151
+ * @throws ApiError
3152
+ */
3153
+ listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
3154
+ /**
3155
+ * A primary network blockchain id or alias.
3156
+ */
3157
+ blockchainId: XChainId;
3158
+ /**
3159
+ * Either mainnet or a testnet.
3160
+ */
3161
+ network: Network;
3162
+ /**
3163
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3164
+ */
3165
+ pageSize?: number;
3166
+ /**
3167
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3168
+ */
3169
+ pageToken?: string;
3170
+ }): CancelablePromise<ListXChainVerticesResponse>;
3171
+ /**
3172
+ * Get vertex
3173
+ * Gets a single vertex on the X-Chain.
3174
+ * @returns XChainVertex
3175
+ * @throws ApiError
3176
+ */
3177
+ getVertexByHash({ vertexHash, blockchainId, network, }: {
3178
+ /**
3179
+ * A vertex hash string.
3180
+ */
3181
+ vertexHash: string;
3182
+ /**
3183
+ * A primary network blockchain id or alias.
3184
+ */
3185
+ blockchainId: XChainId;
3186
+ /**
3187
+ * Either mainnet or a testnet.
3188
+ */
3189
+ network: Network;
3190
+ }): CancelablePromise<XChainVertex>;
3191
+ /**
3192
+ * List vertices by height
3193
+ * Lists vertices at the given vertex height on the X-Chain.
3194
+ * @returns ListXChainVerticesResponse
3195
+ * @throws ApiError
3196
+ */
3197
+ getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
3198
+ /**
3199
+ * The height of a vertex.
3200
+ */
3201
+ vertexHeight: number;
3202
+ /**
3203
+ * A primary network blockchain id or alias.
3204
+ */
3205
+ blockchainId: XChainId;
3206
+ /**
3207
+ * Either mainnet or a testnet.
3208
+ */
3209
+ network: Network;
3210
+ /**
3211
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3212
+ */
3213
+ pageSize?: number;
3214
+ /**
3215
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3216
+ */
3217
+ pageToken?: string;
3218
+ /**
3219
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3220
+ */
3221
+ sortOrder?: SortOrder;
3222
+ }): CancelablePromise<ListXChainVerticesResponse>;
3223
+ /**
3224
+ * Get asset details
3225
+ * Gets asset details corresponding to the given asset id on the X-Chain.
3226
+ * @returns XChainAssetDetails
3227
+ * @throws ApiError
3228
+ */
3229
+ getAssetDetails({ blockchainId, network, assetId, }: {
3230
+ /**
3231
+ * A primary network blockchain id or alias.
3232
+ */
3233
+ blockchainId: XChainId;
3234
+ /**
3235
+ * Either mainnet or a testnet.
3236
+ */
3237
+ network: Network;
3238
+ /**
3239
+ * Asset ID for any asset on X-Chain
3240
+ */
3241
+ assetId: string;
3242
+ }): CancelablePromise<XChainAssetDetails>;
3243
+ /**
3244
+ * List asset transactions
3245
+ * Lists asset transactions corresponding to the given asset id on the X-Chain.
3246
+ * @returns ListXChainTransactionsResponse
3247
+ * @throws ApiError
3248
+ */
3249
+ listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
3250
+ /**
3251
+ * A primary network blockchain id or alias.
3252
+ */
3253
+ blockchainId: XChainId;
3254
+ /**
3255
+ * Either mainnet or a testnet.
3256
+ */
3257
+ network: Network;
3258
+ /**
3259
+ * Asset ID for any asset on X-Chain
3260
+ */
3261
+ assetId: string;
3262
+ /**
3263
+ * Query param for filtering items based on transaction types.
3264
+ */
3265
+ txTypes?: Array<PrimaryNetworkTxType>;
3266
+ /**
3267
+ * Query param for retrieving items after a specific timestamp.
3268
+ */
3269
+ startTimestamp?: number;
3270
+ /**
3271
+ * Query param for retrieving items before a specific timestamp.
3272
+ */
3273
+ endTimestamp?: number;
3274
+ /**
3275
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3276
+ */
3277
+ pageSize?: number;
3278
+ /**
3279
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3280
+ */
3281
+ pageToken?: string;
3282
+ }): CancelablePromise<ListXChainTransactionsResponse>;
3283
+ /**
3284
+ * Get chain interactions for addresses
3285
+ * Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
3286
+ * @returns ChainAddressChainIdMapListResponse
3287
+ * @throws ApiError
3288
+ */
3289
+ getChainIdsForAddresses({ addresses, network, }: {
3290
+ /**
3291
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3292
+ */
3293
+ addresses: string;
3294
+ /**
3295
+ * Either mainnet or a testnet.
3296
+ */
3297
+ network: Network;
3298
+ }): CancelablePromise<ChainAddressChainIdMapListResponse>;
3299
+ /**
3300
+ * Get network details
3301
+ * Gets network details such as validator and delegator stats.
3302
+ * @returns GetNetworkDetailsResponse
3303
+ * @throws ApiError
3304
+ */
3305
+ getNetworkDetails({ network, }: {
3306
+ /**
3307
+ * Either mainnet or a testnet.
3308
+ */
3309
+ network: Network;
3310
+ }): CancelablePromise<GetNetworkDetailsResponse>;
3311
+ /**
3312
+ * List blockchains
3313
+ * Lists all blockchains registered on the network.
3314
+ * @returns ListBlockchainsResponse
3315
+ * @throws ApiError
3316
+ */
3317
+ listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
3318
+ /**
3319
+ * Either mainnet or a testnet.
3320
+ */
3321
+ network: Network;
3322
+ /**
3323
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3324
+ */
3325
+ pageSize?: number;
3326
+ /**
3327
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3328
+ */
3329
+ pageToken?: string;
3330
+ /**
3331
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
3332
+ */
3333
+ sortOrder?: SortOrder;
3334
+ }): CancelablePromise<ListBlockchainsResponse>;
3335
+ /**
3336
+ * List subnets
3337
+ * Lists all subnets registered on the network.
3338
+ * @returns ListSubnetsResponse
3339
+ * @throws ApiError
3340
+ */
3341
+ listSubnets({ network, pageSize, pageToken, sortOrder, }: {
3342
+ /**
3343
+ * Either mainnet or a testnet.
3344
+ */
3345
+ network: Network;
3346
+ /**
3347
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3348
+ */
3349
+ pageSize?: number;
3350
+ /**
3351
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3352
+ */
3353
+ pageToken?: string;
3354
+ /**
3355
+ * 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.
3356
+ */
3357
+ sortOrder?: SortOrder;
3358
+ }): CancelablePromise<ListSubnetsResponse>;
3359
+ /**
3360
+ * List validators
3361
+ * Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
3362
+ * @returns ListValidatorDetailsResponse
3363
+ * @throws ApiError
3364
+ */
3365
+ listValidators({ network, validationStatus, pageSize, pageToken, nodeIds, sortOrder, minDelegationCapacity, }: {
3366
+ /**
3367
+ * Either mainnet or a testnet.
3368
+ */
3369
+ network: Network;
3370
+ /**
3371
+ * Validation status of the node.
3372
+ */
3373
+ validationStatus: 'completed' | 'active' | 'pending';
3374
+ /**
3375
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3376
+ */
3377
+ pageSize?: number;
3378
+ /**
3379
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3380
+ */
3381
+ pageToken?: string;
3382
+ /**
3383
+ * A comma separated list of node ids to filter by.
3384
+ */
3385
+ nodeIds?: string;
3386
+ /**
3387
+ * 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.
3388
+ */
3389
+ sortOrder?: SortOrder;
3390
+ /**
3391
+ * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
3392
+ */
3393
+ minDelegationCapacity?: any;
3394
+ }): CancelablePromise<ListValidatorDetailsResponse>;
3395
+ /**
3396
+ * Get single validator details
3397
+ * List validator details for a single validator. Filterable by validation status.
3398
+ * @returns ListValidatorDetailsResponse
3399
+ * @throws ApiError
3400
+ */
3401
+ getSingleValidatorDetails({ network, nodeId, validationStatus, pageSize, pageToken, sortOrder, }: {
3402
+ /**
3403
+ * Either mainnet or a testnet.
3404
+ */
3405
+ network: Network;
3406
+ /**
3407
+ * A primary network (P or X chain) nodeId.
3408
+ */
3409
+ nodeId: string;
3410
+ /**
3411
+ * Validation status of the node.
3412
+ */
3413
+ validationStatus: 'completed' | 'active' | 'pending';
3414
+ /**
3415
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3416
+ */
3417
+ pageSize?: number;
3418
+ /**
3419
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3420
+ */
3421
+ pageToken?: string;
3422
+ /**
3423
+ * 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.
3424
+ */
3425
+ sortOrder?: SortOrder;
3426
+ }): CancelablePromise<ListValidatorDetailsResponse>;
3427
+ }
3428
+
3429
+ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3430
+ declare class Glacier {
3431
+ readonly evm: EvmService;
3432
+ readonly healthCheck: HealthCheckService;
3433
+ readonly operations: OperationsService;
3434
+ readonly primaryNetwork: PrimaryNetworkService;
3435
+ readonly request: BaseHttpRequest;
3436
+ constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
3437
+ }
3438
+
3439
+ type ApiResult = {
3440
+ readonly url: string;
3441
+ readonly ok: boolean;
3442
+ readonly status: number;
3443
+ readonly statusText: string;
3444
+ readonly body: any;
3445
+ };
3446
+
3447
+ declare class ApiError extends Error {
3448
+ readonly url: string;
3449
+ readonly status: number;
3450
+ readonly statusText: string;
3451
+ readonly body: any;
3452
+ readonly request: ApiRequestOptions;
3453
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3454
+ }
3455
+
3456
+ type NftCollection = {
3457
+ /**
3458
+ * A wallet or contract address in mixed-case checksum encoding.
3459
+ */
3460
+ address: string;
3461
+ /**
3462
+ * The contract name.
3463
+ */
3464
+ name: string;
3465
+ /**
3466
+ * The contract symbol.
3467
+ */
3468
+ symbol: string;
3469
+ ercType: ErcType;
3470
+ bannerUri?: string;
3471
+ logoUri?: string;
3472
+ description?: string;
3473
+ resourceLinks?: Array<ResourceLink>;
3474
+ };
3475
+
3476
+ export { ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CollectionMetrics, CollectionSortByOption, CompletedValidatorDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmBlock, EvmNetworkOptions, EvmService, FloorPrice, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NftCollection, NftCollectionWithMetrics, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingReward, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, PrimaryNetworkService, PrimaryNetworkTxType, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };