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

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