@avalabs/glacier-sdk 2.8.0-alpha.88 → 2.8.0-alpha.9

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