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

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