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

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