@avalabs/glacier-sdk 2.8.0-alpha.10 → 2.8.0-alpha.101

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 (212) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3242 -3
  3. package/dist/index.js +1558 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Address.d.ts +8 -0
  19. package/esm/generated/models/Asset.d.ts +28 -0
  20. package/esm/generated/models/Block.d.ts +15 -0
  21. package/esm/generated/models/BlockchainId.d.ts +9 -0
  22. package/esm/generated/models/BlockchainId.js +10 -0
  23. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  24. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  25. package/esm/generated/models/CChainExportTransaction.js +8 -0
  26. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  27. package/esm/generated/models/CChainImportTransaction.js +8 -0
  28. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  29. package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
  30. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  31. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  32. package/esm/generated/models/ChainInfo.d.ts +30 -0
  33. package/esm/generated/models/ChainStatus.d.ts +6 -0
  34. package/esm/generated/models/ChainStatus.js +7 -0
  35. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  36. package/esm/generated/models/CollectionMetrics.d.ts +42 -0
  37. package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
  38. package/esm/generated/models/CollectionSortByOption.js +9 -0
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +15 -0
  40. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  41. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +15 -0
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  43. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  44. package/esm/generated/models/CurrencyCode.js +19 -0
  45. package/esm/generated/models/EVMInput.d.ts +14 -0
  46. package/esm/generated/models/EVMOutput.d.ts +14 -0
  47. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  48. package/esm/generated/models/Erc1155Token.js +8 -0
  49. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  50. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  51. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  52. package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
  53. package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
  54. package/esm/generated/models/Erc20Token.d.ts +38 -0
  55. package/esm/generated/models/Erc20Token.js +8 -0
  56. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  57. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  58. package/esm/generated/models/Erc20Transfer.d.ts +27 -0
  59. package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
  60. package/esm/generated/models/Erc721Token.d.ts +31 -0
  61. package/esm/generated/models/Erc721Token.js +8 -0
  62. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  63. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  64. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  65. package/esm/generated/models/Erc721Transfer.d.ts +26 -0
  66. package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
  67. package/esm/generated/models/ErcType.d.ts +8 -0
  68. package/esm/generated/models/ErcType.js +9 -0
  69. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  70. package/esm/generated/models/FloorPrice.d.ts +6 -0
  71. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  72. package/esm/generated/models/GetBlockResponse.d.ts +49 -0
  73. package/esm/generated/models/GetChainResponse.d.ts +30 -0
  74. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  75. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  76. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  77. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  78. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  79. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  80. package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
  81. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
  82. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +12 -0
  83. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  84. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  85. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  86. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  87. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  88. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  89. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  90. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  91. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  92. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
  96. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
  98. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  99. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  100. package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
  101. package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
  102. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +12 -0
  103. package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
  104. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  105. package/esm/generated/models/ListingCurrencyType.js +7 -0
  106. package/esm/generated/models/ListingEventType.d.ts +8 -0
  107. package/esm/generated/models/ListingEventType.js +9 -0
  108. package/esm/generated/models/ListingResponse.d.ts +19 -0
  109. package/esm/generated/models/ListingType.d.ts +6 -0
  110. package/esm/generated/models/ListingType.js +7 -0
  111. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  112. package/esm/generated/models/ListingsSortByOption.js +6 -0
  113. package/esm/generated/models/Method.d.ts +24 -0
  114. package/esm/generated/models/Money.d.ts +14 -0
  115. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  116. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  117. package/esm/generated/models/Network.d.ts +6 -0
  118. package/esm/generated/models/Network.js +7 -0
  119. package/esm/generated/models/NetworkToken.d.ts +23 -0
  120. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  121. package/esm/generated/models/NftCollection.d.ts +24 -0
  122. package/esm/generated/models/NftCollectionWithMetrics.d.ts +26 -0
  123. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  124. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  125. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  126. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  127. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  128. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  129. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  130. package/esm/generated/models/OperationStatus.d.ts +8 -0
  131. package/esm/generated/models/OperationStatus.js +9 -0
  132. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  133. package/esm/generated/models/OperationStatusCode.js +8 -0
  134. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  135. package/esm/generated/models/OperationType.d.ts +6 -0
  136. package/esm/generated/models/OperationType.js +7 -0
  137. package/esm/generated/models/PChainAsset.d.ts +6 -0
  138. package/esm/generated/models/PChainBalance.d.ts +30 -0
  139. package/esm/generated/models/PChainId.d.ts +6 -0
  140. package/esm/generated/models/PChainId.js +7 -0
  141. package/esm/generated/models/PChainTransaction.d.ts +76 -0
  142. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  143. package/esm/generated/models/PChainTransactionType.js +17 -0
  144. package/esm/generated/models/PChainUtxo.d.ts +37 -0
  145. package/esm/generated/models/PaginationParams.d.ts +13 -0
  146. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  147. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  148. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  149. package/esm/generated/models/ResourceLink.d.ts +8 -0
  150. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  151. package/esm/generated/models/ResourceLinkType.js +23 -0
  152. package/esm/generated/models/RewardType.d.ts +6 -0
  153. package/esm/generated/models/RewardType.js +7 -0
  154. package/esm/generated/models/RichAddress.d.ts +26 -0
  155. package/esm/generated/models/SortOrder.d.ts +6 -0
  156. package/esm/generated/models/SortOrder.js +7 -0
  157. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  158. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  159. package/esm/generated/models/TransactionExportMetadata.d.ts +18 -0
  160. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  161. package/esm/generated/models/TransactionMethodType.js +8 -0
  162. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  163. package/esm/generated/models/TransactionStatus.js +7 -0
  164. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  165. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  166. package/esm/generated/models/TrendingTimeframe.js +8 -0
  167. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  168. package/esm/generated/models/Utxo.d.ts +60 -0
  169. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  170. package/esm/generated/models/UtxoType.d.ts +6 -0
  171. package/esm/generated/models/UtxoType.js +7 -0
  172. package/esm/generated/models/VmName.d.ts +7 -0
  173. package/esm/generated/models/VmName.js +8 -0
  174. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  175. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  176. package/esm/generated/models/XChainBalances.d.ts +17 -0
  177. package/esm/generated/models/XChainId.d.ts +6 -0
  178. package/esm/generated/models/XChainId.js +7 -0
  179. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  180. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  181. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  182. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  183. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  184. package/esm/generated/models/XChainVertex.d.ts +12 -0
  185. package/esm/generated/services/EvmService.d.ts +730 -0
  186. package/esm/generated/services/EvmService.js +511 -0
  187. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  188. package/esm/generated/services/HealthCheckService.js +16 -0
  189. package/esm/generated/services/OperationsService.d.ts +31 -0
  190. package/esm/generated/services/OperationsService.js +28 -0
  191. package/esm/generated/services/PrimaryNetworkService.d.ts +387 -0
  192. package/esm/generated/services/PrimaryNetworkService.js +273 -0
  193. package/esm/index.d.ts +137 -0
  194. package/esm/index.js +48 -0
  195. package/package.json +11 -20
  196. package/CHANGELOG.md +0 -224
  197. package/__tests__/glacier-sdk.test.js +0 -7
  198. package/dist/index.d.ts.map +0 -1
  199. package/dist/index.js.map +0 -1
  200. package/dist/src/generated/models.d.ts +0 -385
  201. package/dist/src/generated/models.d.ts.map +0 -1
  202. package/dist/src/glacierClient.d.ts +0 -93
  203. package/dist/src/glacierClient.d.ts.map +0 -1
  204. package/dist/src/types.d.ts +0 -13
  205. package/dist/src/types.d.ts.map +0 -1
  206. package/index.ts +0 -2
  207. package/rollup.config.js +0 -33
  208. package/src/generated/models.ts +0 -460
  209. package/src/glacierClient.ts +0 -190
  210. package/src/types.ts +0 -6
  211. package/swagger/generateModels.js +0 -40
  212. package/tsconfig.json +0 -7
@@ -0,0 +1,730 @@
1
+ import { CollectionSortByOption } from '../models/CollectionSortByOption.js';
2
+ import { CurrencyCode } from '../models/CurrencyCode.js';
3
+ import { Erc1155Token } from '../models/Erc1155Token.js';
4
+ import { Erc721Token } from '../models/Erc721Token.js';
5
+ import { GetBlockResponse } from '../models/GetBlockResponse.js';
6
+ import { GetChainResponse } from '../models/GetChainResponse.js';
7
+ import { GetNativeBalanceResponse } from '../models/GetNativeBalanceResponse.js';
8
+ import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
9
+ import { ListBlocksResponse } from '../models/ListBlocksResponse.js';
10
+ import { ListChainsResponse } from '../models/ListChainsResponse.js';
11
+ import { ListCollectibleBalancesResponse } from '../models/ListCollectibleBalancesResponse.js';
12
+ import { ListErc1155BalancesResponse } from '../models/ListErc1155BalancesResponse.js';
13
+ import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
14
+ import { ListErc20BalancesResponse } from '../models/ListErc20BalancesResponse.js';
15
+ import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
16
+ import { ListErc721BalancesResponse } from '../models/ListErc721BalancesResponse.js';
17
+ import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
18
+ import { ListingEventType } from '../models/ListingEventType.js';
19
+ import { ListingsSortByOption } from '../models/ListingsSortByOption.js';
20
+ import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
21
+ import { ListListingsResponse } from '../models/ListListingsResponse.js';
22
+ import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
23
+ import { ListNftCollectionWithMetricsResponse } from '../models/ListNftCollectionWithMetricsResponse.js';
24
+ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
25
+ import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
26
+ import { NftCollection } from '../models/NftCollection.js';
27
+ import { NftCollectionWithMetrics } from '../models/NftCollectionWithMetrics.js';
28
+ import { NftSearchBody } from '../models/NftSearchBody.js';
29
+ import { SortOrder } from '../models/SortOrder.js';
30
+ import { TransactionStatus } from '../models/TransactionStatus.js';
31
+ import { TrendingTimeframe } from '../models/TrendingTimeframe.js';
32
+ import { CancelablePromise } from '../core/CancelablePromise.js';
33
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
34
+
35
+ declare class EvmService {
36
+ readonly httpRequest: BaseHttpRequest;
37
+ constructor(httpRequest: BaseHttpRequest);
38
+ /**
39
+ * Get native token balance of a wallet address for a given chain.
40
+ * @returns GetNativeBalanceResponse
41
+ * @throws ApiError
42
+ */
43
+ getNativeBalance({ chainId, address, currency, }: {
44
+ /**
45
+ * A supported evm chain id. Use the `/chains` endpoint to get
46
+ * a list of supported chain ids.
47
+ */
48
+ chainId: string;
49
+ /**
50
+ * A wallet address.
51
+ */
52
+ address: string;
53
+ /**
54
+ * The currency that return values should use. Defaults to USD.
55
+ */
56
+ currency?: CurrencyCode;
57
+ }): CancelablePromise<GetNativeBalanceResponse>;
58
+ /**
59
+ * List ERC-20 token balances of a wallet address for a given chain.
60
+ * @returns ListErc20BalancesResponse
61
+ * @throws ApiError
62
+ */
63
+ listErc20Balances({ chainId, address, pageSize, pageToken, currency, }: {
64
+ /**
65
+ * A supported evm chain id. Use the `/chains` endpoint to get
66
+ * a list of supported chain ids.
67
+ */
68
+ chainId: string;
69
+ /**
70
+ * A wallet address.
71
+ */
72
+ address: string;
73
+ /**
74
+ * The maximum number of items to return. The minimum page size
75
+ * is 1. The maximum pageSize is 100.
76
+ */
77
+ pageSize?: number;
78
+ /**
79
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
80
+ */
81
+ pageToken?: string;
82
+ /**
83
+ * The currency that return values should use. Defaults to USD.
84
+ */
85
+ currency?: CurrencyCode;
86
+ }): CancelablePromise<ListErc20BalancesResponse>;
87
+ /**
88
+ * List ERC-721 token balances of a wallet address for a given chain.
89
+ * @returns ListErc721BalancesResponse
90
+ * @throws ApiError
91
+ */
92
+ listErc721Balances({ chainId, address, pageSize, pageToken, }: {
93
+ /**
94
+ * A supported evm chain id. Use the `/chains` endpoint to get
95
+ * a list of supported chain ids.
96
+ */
97
+ chainId: string;
98
+ /**
99
+ * A wallet address.
100
+ */
101
+ address: string;
102
+ /**
103
+ * The maximum number of items to return. The minimum page size
104
+ * is 1. The maximum pageSize is 100.
105
+ */
106
+ pageSize?: number;
107
+ /**
108
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
109
+ */
110
+ pageToken?: string;
111
+ }): CancelablePromise<ListErc721BalancesResponse>;
112
+ /**
113
+ * List ERC-1155 token balances of a wallet address for a given chain.
114
+ * @returns ListErc1155BalancesResponse
115
+ * @throws ApiError
116
+ */
117
+ listErc1155Balances({ chainId, address, pageSize, pageToken, }: {
118
+ /**
119
+ * A supported evm chain id. Use the `/chains` endpoint to get
120
+ * a list of supported chain ids.
121
+ */
122
+ chainId: string;
123
+ /**
124
+ * A wallet address.
125
+ */
126
+ address: string;
127
+ /**
128
+ * The maximum number of items to return. The minimum page size
129
+ * is 1. The maximum pageSize is 100.
130
+ */
131
+ pageSize?: number;
132
+ /**
133
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
134
+ */
135
+ pageToken?: string;
136
+ }): CancelablePromise<ListErc1155BalancesResponse>;
137
+ /**
138
+ * List ERC-721 and ERC-1155 token balances of a wallet address
139
+ * for a given chain.
140
+ * @returns ListCollectibleBalancesResponse
141
+ * @throws ApiError
142
+ */
143
+ listCollectibleBalances({ chainId, address, pageSize, pageToken, }: {
144
+ /**
145
+ * A supported evm chain id. Use the `/chains` endpoint to get
146
+ * a list of supported chain ids.
147
+ */
148
+ chainId: string;
149
+ /**
150
+ * A wallet address.
151
+ */
152
+ address: string;
153
+ /**
154
+ * The maximum number of items to return. The minimum page size
155
+ * is 1. The maximum pageSize is 100.
156
+ */
157
+ pageSize?: number;
158
+ /**
159
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
160
+ */
161
+ pageToken?: string;
162
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
163
+ /**
164
+ * Returns the latest blocks indexed for the chain.
165
+ * @returns ListBlocksResponse
166
+ * @throws ApiError
167
+ */
168
+ getLatestBlocks({ chainId, pageSize, pageToken, }: {
169
+ /**
170
+ * A supported evm chain id. Use the `/chains` endpoint to get
171
+ * a list of supported chain ids.
172
+ */
173
+ chainId: string;
174
+ /**
175
+ * The maximum number of items to return. The minimum page size
176
+ * is 1. The maximum pageSize is 100.
177
+ */
178
+ pageSize?: number;
179
+ /**
180
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
181
+ */
182
+ pageToken?: string;
183
+ }): CancelablePromise<ListBlocksResponse>;
184
+ /**
185
+ * Returns the details of an individual block for the chain.
186
+ * @returns GetBlockResponse
187
+ * @throws ApiError
188
+ */
189
+ getBlock({ chainId, blockId, }: {
190
+ /**
191
+ * A supported evm chain id. Use the `/chains` endpoint to get
192
+ * a list of supported chain ids.
193
+ */
194
+ chainId: string;
195
+ /**
196
+ * A block identifier which is either a block number or the block hash.
197
+ */
198
+ blockId: string;
199
+ }): CancelablePromise<GetBlockResponse>;
200
+ /**
201
+ * If the address is a smart contract, returns the transaction at which it was deployed.
202
+ * @returns GetTransactionResponse
203
+ * @throws ApiError
204
+ */
205
+ getDeploymentTransaction({ chainId, address, currency, }: {
206
+ /**
207
+ * A supported evm chain id. Use the `/chains` endpoint to get
208
+ * a list of supported chain ids.
209
+ */
210
+ chainId: string;
211
+ /**
212
+ * Contract address on the relevant chain.
213
+ */
214
+ address: string;
215
+ /**
216
+ * The currency that return values should use. Defaults to USD.
217
+ */
218
+ currency?: CurrencyCode;
219
+ }): CancelablePromise<GetTransactionResponse>;
220
+ /**
221
+ * Gets a list of erc transfers for an ERC-20, ERC-721,
222
+ * or ERC-1155 contract address.
223
+ * @returns ListTransfersResponse
224
+ * @throws ApiError
225
+ */
226
+ listTransfers({ chainId, address, pageSize, pageToken, }: {
227
+ /**
228
+ * A supported evm chain id. Use the `/chains` endpoint to get
229
+ * a list of supported chain ids.
230
+ */
231
+ chainId: string;
232
+ /**
233
+ * A wallet address.
234
+ */
235
+ address: string;
236
+ /**
237
+ * The maximum number of items to return. The minimum page size
238
+ * is 1. The maximum pageSize is 100.
239
+ */
240
+ pageSize?: number;
241
+ /**
242
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
243
+ */
244
+ pageToken?: string;
245
+ }): CancelablePromise<ListTransfersResponse>;
246
+ /**
247
+ * Gets a list of transactions for an address and chain.
248
+ * Returns a list of transactions where the given wallet
249
+ * address had an on-chain interaction for a given chain. The ERC-20
250
+ * transfers, ERC-721 transfers, ERC-1155, and internal transactions
251
+ * returned are only those where the input address had an interaction.
252
+ * Specifically, those list only inlcude entries where the input address
253
+ * was the sender (`from` field) or the receiver (`to` field) for the
254
+ * sub-transaction. Therefore the transactions returned from this list may
255
+ * not be complete representations of the on-chain data. For a complete
256
+ * view of a transaction use the `/chains/:chainId/transactions/:txHash`
257
+ * endpoint.
258
+ * @returns ListTransactionDetailsResponse
259
+ * @throws ApiError
260
+ */
261
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
262
+ /**
263
+ * A supported evm chain id. Use the `/chains` endpoint to get
264
+ * a list of supported chain ids.
265
+ */
266
+ chainId: string;
267
+ /**
268
+ * A wallet address.
269
+ */
270
+ address: string;
271
+ /**
272
+ * The maximum number of items to return. The minimum page size
273
+ * is 1. The maximum pageSize is 100.
274
+ */
275
+ pageSize?: number;
276
+ /**
277
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
278
+ */
279
+ pageToken?: string;
280
+ /**
281
+ * The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
282
+ */
283
+ startBlock?: number;
284
+ /**
285
+ * The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
286
+ */
287
+ endBlock?: number;
288
+ /**
289
+ * The order by which to sort results. Use "asc" for ascending
290
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
291
+ * query parameter, if provided.
292
+ */
293
+ sortOrder?: SortOrder;
294
+ }): CancelablePromise<ListTransactionDetailsResponse>;
295
+ /**
296
+ * Gets a list of native transactions for an address and chain.
297
+ * @returns ListNativeTransactionsResponse
298
+ * @throws ApiError
299
+ */
300
+ listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
301
+ /**
302
+ * A supported evm chain id. Use the `/chains` endpoint to get
303
+ * a list of supported chain ids.
304
+ */
305
+ chainId: string;
306
+ /**
307
+ * A wallet address.
308
+ */
309
+ address: string;
310
+ /**
311
+ * The maximum number of items to return. The minimum page size
312
+ * is 1. The maximum pageSize is 100.
313
+ */
314
+ pageSize?: number;
315
+ /**
316
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
317
+ */
318
+ pageToken?: string;
319
+ }): CancelablePromise<ListNativeTransactionsResponse>;
320
+ /**
321
+ * Lists ERC-20 transfers for an address.
322
+ * @returns ListErc20TransactionsResponse
323
+ * @throws ApiError
324
+ */
325
+ listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
326
+ /**
327
+ * A supported evm chain id. Use the `/chains` endpoint to get
328
+ * a list of supported chain ids.
329
+ */
330
+ chainId: string;
331
+ /**
332
+ * A wallet address.
333
+ */
334
+ address: string;
335
+ /**
336
+ * The maximum number of items to return. The minimum page size
337
+ * is 1. The maximum pageSize is 100.
338
+ */
339
+ pageSize?: number;
340
+ /**
341
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
342
+ */
343
+ pageToken?: string;
344
+ }): CancelablePromise<ListErc20TransactionsResponse>;
345
+ /**
346
+ * Lists ERC-721 transfers for an address.
347
+ * @returns ListErc721TransactionsResponse
348
+ * @throws ApiError
349
+ */
350
+ listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
351
+ /**
352
+ * A supported evm chain id. Use the `/chains` endpoint to get
353
+ * a list of supported chain ids.
354
+ */
355
+ chainId: string;
356
+ /**
357
+ * A wallet address.
358
+ */
359
+ address: string;
360
+ /**
361
+ * The maximum number of items to return. The minimum page size
362
+ * is 1. The maximum pageSize is 100.
363
+ */
364
+ pageSize?: number;
365
+ /**
366
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
367
+ */
368
+ pageToken?: string;
369
+ }): CancelablePromise<ListErc721TransactionsResponse>;
370
+ /**
371
+ * Lists of ERC-1155 transfers for an address.
372
+ * @returns ListErc1155TransactionsResponse
373
+ * @throws ApiError
374
+ */
375
+ listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
376
+ /**
377
+ * A supported evm chain id. Use the `/chains` endpoint to get
378
+ * a list of supported chain ids.
379
+ */
380
+ chainId: string;
381
+ /**
382
+ * A wallet address.
383
+ */
384
+ address: string;
385
+ /**
386
+ * The maximum number of items to return. The minimum page size
387
+ * is 1. The maximum pageSize is 100.
388
+ */
389
+ pageSize?: number;
390
+ /**
391
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
392
+ */
393
+ pageToken?: string;
394
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
395
+ /**
396
+ * Lists internal transactions for an address.
397
+ * Returns a list of internal transactions for an address and
398
+ * chain. Note that the internal transactions list only contains CALL or
399
+ * CALLCODE transactions with a non-zero value and CREATE/CREATE2
400
+ * transactions. To get a complete list of internal transactions use the
401
+ * `debug_` prefixed RPC methods on an archive node.
402
+ * @returns ListInternalTransactionsResponse
403
+ * @throws ApiError
404
+ */
405
+ listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
406
+ /**
407
+ * A supported evm chain id. Use the `/chains` endpoint to get
408
+ * a list of supported chain ids.
409
+ */
410
+ chainId: string;
411
+ /**
412
+ * A wallet address.
413
+ */
414
+ address: string;
415
+ /**
416
+ * The maximum number of items to return. The minimum page size
417
+ * is 1. The maximum pageSize is 100.
418
+ */
419
+ pageSize?: number;
420
+ /**
421
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
422
+ */
423
+ pageToken?: string;
424
+ }): CancelablePromise<ListInternalTransactionsResponse>;
425
+ /**
426
+ * Gets the details of a single transaction.
427
+ * @returns GetTransactionResponse
428
+ * @throws ApiError
429
+ */
430
+ getTransaction({ chainId, txHash, }: {
431
+ /**
432
+ * A supported evm chain id. Use the `/chains` endpoint to get
433
+ * a list of supported chain ids.
434
+ */
435
+ chainId: string;
436
+ /**
437
+ * A transaction hash.
438
+ */
439
+ txHash: string;
440
+ }): CancelablePromise<GetTransactionResponse>;
441
+ /**
442
+ * Gets the transactions that occured in a given block.
443
+ * @returns ListNativeTransactionsResponse
444
+ * @throws ApiError
445
+ */
446
+ getTransactionsForBlock({ chainId, blockId, }: {
447
+ /**
448
+ * A supported evm chain id. Use the `/chains` endpoint to get
449
+ * a list of supported chain ids.
450
+ */
451
+ chainId: string;
452
+ /**
453
+ * A block identifier which is either a block number or the block hash.
454
+ */
455
+ blockId: string;
456
+ }): CancelablePromise<ListNativeTransactionsResponse>;
457
+ /**
458
+ * Gets the latest transactions; can be filtered by status.
459
+ * @returns ListNativeTransactionsResponse
460
+ * @throws ApiError
461
+ */
462
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
463
+ /**
464
+ * A supported evm chain id. Use the `/chains` endpoint to get
465
+ * a list of supported chain ids.
466
+ */
467
+ chainId: string;
468
+ /**
469
+ * The maximum number of items to return. The minimum page size
470
+ * is 1. The maximum pageSize is 100.
471
+ */
472
+ pageSize?: number;
473
+ /**
474
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
475
+ */
476
+ pageToken?: string;
477
+ /**
478
+ * A status filter for listed transactions.
479
+ */
480
+ status?: TransactionStatus;
481
+ }): CancelablePromise<ListNativeTransactionsResponse>;
482
+ /**
483
+ * Gets the list of chains supported by the api.
484
+ * @returns ListChainsResponse
485
+ * @throws ApiError
486
+ */
487
+ supportedChains(): CancelablePromise<ListChainsResponse>;
488
+ /**
489
+ * Gets chain information by chain id.
490
+ * @returns GetChainResponse
491
+ * @throws ApiError
492
+ */
493
+ getChainInfo({ chainId, }: {
494
+ /**
495
+ * A supported evm chain id. Use the `/chains` endpoint to get
496
+ * a list of supported chain ids.
497
+ */
498
+ chainId: string;
499
+ }): CancelablePromise<GetChainResponse>;
500
+ /**
501
+ * Triggers reindexing for a single nft contract and token id pair.
502
+ * Triggers reindexing of token metadata for nft contracts.
503
+ * Will throw 400 if Nft has been indexed within the last hour.
504
+ * @returns any
505
+ * @throws ApiError
506
+ */
507
+ reindexNft({ chainId, address, tokenId, }: {
508
+ /**
509
+ * A supported evm chain id. Use the `/chains` endpoint to get
510
+ * a list of supported chain ids.
511
+ */
512
+ chainId: string;
513
+ /**
514
+ * Contract address on the relevant chain.
515
+ */
516
+ address: string;
517
+ /**
518
+ * TokenId on the contract
519
+ */
520
+ tokenId: string;
521
+ }): CancelablePromise<any>;
522
+ /**
523
+ * Get metadata for a specific token by providing the contract address and token id.
524
+ * @returns any
525
+ * @throws ApiError
526
+ */
527
+ getTokenMetadata({ chainId, address, tokenId, }: {
528
+ /**
529
+ * A supported evm chain id. Use the `/chains` endpoint to get
530
+ * a list of supported chain ids.
531
+ */
532
+ chainId: string;
533
+ /**
534
+ * Contract address on the relevant chain.
535
+ */
536
+ address: string;
537
+ /**
538
+ * TokenId on the contract
539
+ */
540
+ tokenId: string;
541
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
542
+ /**
543
+ * Get collection data for provided a ChainID and address.
544
+ * @returns NftCollectionWithMetrics
545
+ * @throws ApiError
546
+ */
547
+ getCollection({ chainId, address, timeframe, }: {
548
+ /**
549
+ * A supported evm chain id. Use the `/chains` endpoint to get
550
+ * a list of supported chain ids.
551
+ */
552
+ chainId: string;
553
+ /**
554
+ * Contract address on the relevant chain.
555
+ */
556
+ address: string;
557
+ /**
558
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
559
+ */
560
+ timeframe?: TrendingTimeframe;
561
+ }): CancelablePromise<NftCollectionWithMetrics>;
562
+ /**
563
+ * List open listings for a NFT token.
564
+ * @returns ListListingsResponse
565
+ * @throws ApiError
566
+ */
567
+ listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
568
+ /**
569
+ * A supported evm chain id. Use the `/chains` endpoint to get
570
+ * a list of supported chain ids.
571
+ */
572
+ chainId: string;
573
+ /**
574
+ * Contract address on the relevant chain.
575
+ */
576
+ address: string;
577
+ /**
578
+ * TokenId on the contract
579
+ */
580
+ tokenId: string;
581
+ /**
582
+ * The maximum number of items to return. The minimum page size
583
+ * is 1. The maximum pageSize is 100.
584
+ */
585
+ pageSize?: number;
586
+ /**
587
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
588
+ */
589
+ pageToken?: string;
590
+ /**
591
+ * Which property to sort by, in conjunction with sortOrder.
592
+ */
593
+ sortBy?: ListingsSortByOption;
594
+ /**
595
+ * The order by which to sort results. Use "asc" for ascending
596
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
597
+ * query parameter, if provided.
598
+ */
599
+ sortOrder?: SortOrder;
600
+ /**
601
+ * The currency that return values should use. Defaults to USD.
602
+ */
603
+ currency?: CurrencyCode;
604
+ /**
605
+ * Determines whether to return full transaction history for listings.
606
+ */
607
+ includeHistory?: boolean;
608
+ }): CancelablePromise<ListListingsResponse>;
609
+ /**
610
+ * List open listings for a NFT collection.
611
+ * @returns ListListingsResponse
612
+ * @throws ApiError
613
+ */
614
+ listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
615
+ /**
616
+ * A supported evm chain id. Use the `/chains` endpoint to get
617
+ * a list of supported chain ids.
618
+ */
619
+ chainId: string;
620
+ /**
621
+ * Contract address on the relevant chain.
622
+ */
623
+ address: string;
624
+ /**
625
+ * The maximum number of items to return. The minimum page size
626
+ * is 1. The maximum pageSize is 100.
627
+ */
628
+ pageSize?: number;
629
+ /**
630
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
631
+ */
632
+ pageToken?: string;
633
+ /**
634
+ * Which property to sort by, in conjunction with sortOrder.
635
+ */
636
+ sortBy?: ListingsSortByOption;
637
+ /**
638
+ * The order by which to sort results. Use "asc" for ascending
639
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
640
+ * query parameter, if provided.
641
+ */
642
+ sortOrder?: SortOrder;
643
+ /**
644
+ * The currency that return values should use. Defaults to USD.
645
+ */
646
+ currency?: CurrencyCode;
647
+ /**
648
+ * Determines whether to return full transaction history for listings.
649
+ */
650
+ includeHistory?: boolean;
651
+ }): CancelablePromise<ListListingsResponse>;
652
+ /**
653
+ * List recent listings on the chain.
654
+ * @returns ListListingsResponse
655
+ * @throws ApiError
656
+ */
657
+ listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
658
+ /**
659
+ * A supported evm chain id. Use the `/chains` endpoint to get
660
+ * a list of supported chain ids.
661
+ */
662
+ chainId: string;
663
+ /**
664
+ * The maximum number of items to return. The minimum page size
665
+ * is 1. The maximum pageSize is 100.
666
+ */
667
+ pageSize?: number;
668
+ /**
669
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
670
+ */
671
+ pageToken?: string;
672
+ eventType?: ListingEventType;
673
+ /**
674
+ * The currency that return values should use. Defaults to USD.
675
+ */
676
+ currency?: CurrencyCode;
677
+ }): CancelablePromise<ListListingsResponse>;
678
+ /**
679
+ * List details and metrics for collections.
680
+ * @returns ListNftCollectionWithMetricsResponse
681
+ * @throws ApiError
682
+ */
683
+ listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
684
+ /**
685
+ * A supported evm chain id. Use the `/chains` endpoint to get
686
+ * a list of supported chain ids.
687
+ */
688
+ chainId: string;
689
+ /**
690
+ * The maximum number of items to return. The minimum page size
691
+ * is 1. The maximum pageSize is 100.
692
+ */
693
+ pageSize?: number;
694
+ /**
695
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
696
+ */
697
+ pageToken?: string;
698
+ /**
699
+ * The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
700
+ */
701
+ timeframe?: TrendingTimeframe;
702
+ /**
703
+ * Which property to sort by, in conjunction with sortOrder.
704
+ */
705
+ sortBy?: CollectionSortByOption;
706
+ /**
707
+ * The order by which to sort results. Use "asc" for ascending
708
+ * order, "desc" for descending order. Sorted by timestamp or the `sortBy`
709
+ * query parameter, if provided.
710
+ */
711
+ sortOrder?: SortOrder;
712
+ }): CancelablePromise<ListNftCollectionWithMetricsResponse>;
713
+ /**
714
+ * Search for token by name and contract name.
715
+ * @returns any
716
+ * @throws ApiError
717
+ */
718
+ search({ chainId, requestBody, }: {
719
+ /**
720
+ * A supported evm chain id. Use the `/chains` endpoint to get
721
+ * a list of supported chain ids.
722
+ */
723
+ chainId: string;
724
+ requestBody: NftSearchBody;
725
+ }): CancelablePromise<{
726
+ results?: Array<NftCollection>;
727
+ }>;
728
+ }
729
+
730
+ export { EvmService };