@avalabs/glacier-sdk 2.8.0-alpha.17 → 2.8.0-alpha.170

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 (295) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +4240 -3
  3. package/dist/index.js +2068 -155
  4. package/esm/generated/Glacier.d.ts +42 -0
  5. package/esm/generated/Glacier.js +68 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +18 -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 +91 -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 +227 -0
  18. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  19. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  20. package/esm/generated/models/ActiveValidatorDetails.d.ts +28 -0
  21. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  22. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  23. package/esm/generated/models/Asset.d.ts +30 -0
  24. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  25. package/esm/generated/models/Blockchain.d.ts +10 -0
  26. package/esm/generated/models/BlockchainId.d.ts +12 -0
  27. package/esm/generated/models/BlockchainId.js +13 -0
  28. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  29. package/esm/generated/models/BlockchainIds.js +10 -0
  30. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  31. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  32. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  33. package/esm/generated/models/CChainExportTransaction.js +8 -0
  34. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  35. package/esm/generated/models/CChainImportTransaction.js +8 -0
  36. package/esm/generated/models/CChainSharedAssetBalance.d.ts +32 -0
  37. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  38. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  39. package/esm/generated/models/ChainInfo.d.ts +28 -0
  40. package/esm/generated/models/ChainStatus.d.ts +6 -0
  41. package/esm/generated/models/ChainStatus.js +7 -0
  42. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  43. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  44. package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
  45. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  46. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  47. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  48. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  49. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  50. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  51. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  52. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  53. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  54. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  55. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  56. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  57. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  58. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  59. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  60. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  61. package/esm/generated/models/CurrencyCode.js +19 -0
  62. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  63. package/esm/generated/models/DelegationStatusType.js +8 -0
  64. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  65. package/esm/generated/models/EVMInput.d.ts +19 -0
  66. package/esm/generated/models/EVMOutput.d.ts +14 -0
  67. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  68. package/esm/generated/models/Erc1155Contract.js +8 -0
  69. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  70. package/esm/generated/models/Erc1155Token.js +8 -0
  71. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  72. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  73. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  74. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  75. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  76. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  77. package/esm/generated/models/Erc20Contract.js +8 -0
  78. package/esm/generated/models/Erc20Token.d.ts +36 -0
  79. package/esm/generated/models/Erc20Token.js +8 -0
  80. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  81. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  82. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  83. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  84. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  85. package/esm/generated/models/Erc721Contract.js +8 -0
  86. package/esm/generated/models/Erc721Token.d.ts +31 -0
  87. package/esm/generated/models/Erc721Token.js +8 -0
  88. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  89. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  90. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  91. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  92. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  93. package/esm/generated/models/EventType.d.ts +5 -0
  94. package/esm/generated/models/EventType.js +6 -0
  95. package/esm/generated/models/EvmBlock.d.ts +45 -0
  96. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  97. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  98. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  99. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  100. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  101. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  102. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
  103. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  104. package/esm/generated/models/HistoricalReward.d.ts +21 -0
  105. package/esm/generated/models/ImageAsset.d.ts +9 -0
  106. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  107. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  108. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  109. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  110. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  111. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  112. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  113. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  114. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  115. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  116. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  117. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  118. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  119. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  120. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  121. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  122. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  123. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  124. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  125. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  126. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  127. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  128. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  129. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  130. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  131. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  132. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  133. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  134. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  135. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  136. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  137. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +17 -0
  138. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  139. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  140. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  141. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  142. package/esm/generated/models/Method.d.ts +18 -0
  143. package/esm/generated/models/Money.d.ts +14 -0
  144. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  145. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  146. package/esm/generated/models/Network.d.ts +6 -0
  147. package/esm/generated/models/Network.js +7 -0
  148. package/esm/generated/models/NetworkToken.d.ts +21 -0
  149. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  150. package/esm/generated/models/NetworkType.d.ts +6 -0
  151. package/esm/generated/models/NetworkType.js +7 -0
  152. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  153. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  154. package/esm/generated/models/OperationStatus.d.ts +8 -0
  155. package/esm/generated/models/OperationStatus.js +9 -0
  156. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  157. package/esm/generated/models/OperationStatusCode.js +8 -0
  158. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  159. package/esm/generated/models/OperationType.d.ts +6 -0
  160. package/esm/generated/models/OperationType.js +7 -0
  161. package/esm/generated/models/PChainBalance.d.ts +39 -0
  162. package/esm/generated/models/PChainId.d.ts +6 -0
  163. package/esm/generated/models/PChainId.js +7 -0
  164. package/esm/generated/models/PChainSharedAsset.d.ts +32 -0
  165. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  166. package/esm/generated/models/PChainTransactionType.d.ts +18 -0
  167. package/esm/generated/models/PChainTransactionType.js +19 -0
  168. package/esm/generated/models/PChainUtxo.d.ts +51 -0
  169. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  170. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  171. package/esm/generated/models/PendingReward.d.ts +22 -0
  172. package/esm/generated/models/PendingValidatorDetails.d.ts +17 -0
  173. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  174. package/esm/generated/models/PricingProviders.d.ts +5 -0
  175. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  176. package/esm/generated/models/PrimaryNetwork.js +7 -0
  177. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  178. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  179. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  180. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  181. package/esm/generated/models/PrimaryNetworkBlock.d.ts +16 -0
  182. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  183. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  184. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  185. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  186. package/esm/generated/models/PrimaryNetworkTxType.d.ts +21 -0
  187. package/esm/generated/models/PrimaryNetworkTxType.js +22 -0
  188. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  189. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  190. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  191. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  192. package/esm/generated/models/ResourceLink.d.ts +8 -0
  193. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  194. package/esm/generated/models/ResourceLinkType.js +23 -0
  195. package/esm/generated/models/RewardType.d.ts +7 -0
  196. package/esm/generated/models/RewardType.js +8 -0
  197. package/esm/generated/models/Rewards.d.ts +8 -0
  198. package/esm/generated/models/RichAddress.d.ts +24 -0
  199. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  200. package/esm/generated/models/SortOrder.d.ts +6 -0
  201. package/esm/generated/models/SortOrder.js +7 -0
  202. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  203. package/esm/generated/models/Subnet.d.ts +13 -0
  204. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  205. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  206. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  207. package/esm/generated/models/TransactionMethodType.js +8 -0
  208. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  209. package/esm/generated/models/TransactionStatus.js +7 -0
  210. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  211. package/esm/generated/models/UnknownContract.d.ts +31 -0
  212. package/esm/generated/models/UnknownContract.js +8 -0
  213. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  214. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  215. package/esm/generated/models/Utxo.d.ts +68 -0
  216. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  217. package/esm/generated/models/UtxoType.d.ts +6 -0
  218. package/esm/generated/models/UtxoType.js +7 -0
  219. package/esm/generated/models/ValidationStatusType.d.ts +8 -0
  220. package/esm/generated/models/ValidationStatusType.js +9 -0
  221. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  222. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  223. package/esm/generated/models/VmName.d.ts +7 -0
  224. package/esm/generated/models/VmName.js +8 -0
  225. package/esm/generated/models/WebhookResponse.d.ts +17 -0
  226. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  227. package/esm/generated/models/WebhookStatus.js +7 -0
  228. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  229. package/esm/generated/models/WebhookStatusType.js +7 -0
  230. package/esm/generated/models/XChainAssetBalance.d.ts +31 -0
  231. package/esm/generated/models/XChainAssetDetails.d.ts +35 -0
  232. package/esm/generated/models/XChainBalances.d.ts +17 -0
  233. package/esm/generated/models/XChainId.d.ts +7 -0
  234. package/esm/generated/models/XChainId.js +8 -0
  235. package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
  236. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  237. package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
  238. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  239. package/esm/generated/models/XChainSharedAssetBalance.d.ts +32 -0
  240. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  241. package/esm/generated/models/XChainTransactionType.js +11 -0
  242. package/esm/generated/models/XChainVertex.d.ts +12 -0
  243. package/esm/generated/services/DefaultService.d.ts +74 -0
  244. package/esm/generated/services/DefaultService.js +61 -0
  245. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  246. package/esm/generated/services/EvmBalancesService.js +116 -0
  247. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  248. package/esm/generated/services/EvmBlocksService.js +37 -0
  249. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  250. package/esm/generated/services/EvmChainsService.js +29 -0
  251. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  252. package/esm/generated/services/EvmContractsService.js +36 -0
  253. package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
  254. package/esm/generated/services/EvmTransactionsService.js +251 -0
  255. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  256. package/esm/generated/services/HealthCheckService.js +16 -0
  257. package/esm/generated/services/NfTsService.d.ts +76 -0
  258. package/esm/generated/services/NfTsService.js +56 -0
  259. package/esm/generated/services/OperationsService.d.ts +35 -0
  260. package/esm/generated/services/OperationsService.js +28 -0
  261. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  262. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  263. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  264. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  265. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +82 -0
  266. package/esm/generated/services/PrimaryNetworkRewardsService.js +55 -0
  267. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  268. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  269. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  270. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  271. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  272. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  273. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  274. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  275. package/esm/index.d.ts +187 -0
  276. package/esm/index.js +80 -0
  277. package/package.json +11 -20
  278. package/.eslintrc.js +0 -3
  279. package/CHANGELOG.md +0 -262
  280. package/__tests__/glacier-sdk.test.js +0 -7
  281. package/dist/index.d.ts.map +0 -1
  282. package/dist/index.js.map +0 -1
  283. package/dist/src/generated/models.d.ts +0 -385
  284. package/dist/src/generated/models.d.ts.map +0 -1
  285. package/dist/src/glacierClient.d.ts +0 -93
  286. package/dist/src/glacierClient.d.ts.map +0 -1
  287. package/dist/src/types.d.ts +0 -13
  288. package/dist/src/types.d.ts.map +0 -1
  289. package/index.ts +0 -2
  290. package/rollup.config.js +0 -33
  291. package/src/generated/models.ts +0 -460
  292. package/src/glacierClient.ts +0 -190
  293. package/src/types.ts +0 -6
  294. package/swagger/generateModels.js +0 -40
  295. package/tsconfig.json +0 -7
@@ -0,0 +1,353 @@
1
+ import { CurrencyCode } from '../models/CurrencyCode.js';
2
+ import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
3
+ import { ListContractsResponse } from '../models/ListContractsResponse.js';
4
+ import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
5
+ import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
6
+ import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
7
+ import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
8
+ import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
9
+ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
10
+ import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
11
+ import { SortOrder } from '../models/SortOrder.js';
12
+ import { TransactionStatus } from '../models/TransactionStatus.js';
13
+ import { CancelablePromise } from '../core/CancelablePromise.js';
14
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
15
+
16
+ declare class EvmTransactionsService {
17
+ readonly httpRequest: BaseHttpRequest;
18
+ constructor(httpRequest: BaseHttpRequest);
19
+ /**
20
+ * Get deployment transaction
21
+ * If the address is a smart contract, returns the transaction in which it was deployed.
22
+ * @returns GetTransactionResponse
23
+ * @throws ApiError
24
+ */
25
+ getDeploymentTransaction({ chainId, address, currency, }: {
26
+ /**
27
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
28
+ */
29
+ chainId: string;
30
+ /**
31
+ * Contract address on the relevant chain.
32
+ */
33
+ address: string;
34
+ /**
35
+ * The currency that return values should use. Defaults to USD.
36
+ */
37
+ currency?: CurrencyCode;
38
+ }): CancelablePromise<GetTransactionResponse>;
39
+ /**
40
+ * List deployed contracts
41
+ * Lists all contracts deployed by the given address.
42
+ * @returns ListContractsResponse
43
+ * @throws ApiError
44
+ */
45
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
46
+ /**
47
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
48
+ */
49
+ chainId: string;
50
+ /**
51
+ * A wallet address.
52
+ */
53
+ address: string;
54
+ /**
55
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
56
+ */
57
+ pageToken?: string;
58
+ /**
59
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
60
+ */
61
+ pageSize?: number;
62
+ }): CancelablePromise<ListContractsResponse>;
63
+ /**
64
+ * List ERC transfers
65
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
66
+ * @returns ListTransfersResponse
67
+ * @throws ApiError
68
+ */
69
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
70
+ /**
71
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
72
+ */
73
+ chainId: string;
74
+ /**
75
+ * A wallet address.
76
+ */
77
+ address: string;
78
+ /**
79
+ * 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.
80
+ */
81
+ startBlock?: number;
82
+ /**
83
+ * 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.
84
+ */
85
+ endBlock?: number;
86
+ /**
87
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
88
+ */
89
+ pageToken?: string;
90
+ /**
91
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
92
+ */
93
+ pageSize?: number;
94
+ }): CancelablePromise<ListTransfersResponse>;
95
+ /**
96
+ * List transactions
97
+ * 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.
98
+ *
99
+ * Filterable by block ranges.
100
+ * @returns ListTransactionDetailsResponse
101
+ * @throws ApiError
102
+ */
103
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
104
+ /**
105
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
106
+ */
107
+ chainId: string;
108
+ /**
109
+ * A wallet address.
110
+ */
111
+ address: string;
112
+ /**
113
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
114
+ */
115
+ pageToken?: string;
116
+ /**
117
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
118
+ */
119
+ pageSize?: number;
120
+ /**
121
+ * 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.
122
+ */
123
+ startBlock?: number;
124
+ /**
125
+ * 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.
126
+ */
127
+ endBlock?: number;
128
+ /**
129
+ * 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.
130
+ */
131
+ sortOrder?: SortOrder;
132
+ }): CancelablePromise<ListTransactionDetailsResponse>;
133
+ /**
134
+ * List native transactions
135
+ * Lists native transactions for an address. Filterable by block range.
136
+ * @returns ListNativeTransactionsResponse
137
+ * @throws ApiError
138
+ */
139
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
140
+ /**
141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
142
+ */
143
+ chainId: string;
144
+ /**
145
+ * A wallet address.
146
+ */
147
+ address: string;
148
+ /**
149
+ * 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.
150
+ */
151
+ startBlock?: number;
152
+ /**
153
+ * 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.
154
+ */
155
+ endBlock?: number;
156
+ /**
157
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
158
+ */
159
+ pageToken?: string;
160
+ /**
161
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
162
+ */
163
+ pageSize?: number;
164
+ }): CancelablePromise<ListNativeTransactionsResponse>;
165
+ /**
166
+ * List ERC-20 transfers
167
+ * Lists ERC-20 transfers for an address. Filterable by block range.
168
+ * @returns ListErc20TransactionsResponse
169
+ * @throws ApiError
170
+ */
171
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
172
+ /**
173
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
174
+ */
175
+ chainId: string;
176
+ /**
177
+ * A wallet address.
178
+ */
179
+ address: string;
180
+ /**
181
+ * 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.
182
+ */
183
+ startBlock?: number;
184
+ /**
185
+ * 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.
186
+ */
187
+ endBlock?: number;
188
+ /**
189
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
190
+ */
191
+ pageToken?: string;
192
+ /**
193
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
194
+ */
195
+ pageSize?: number;
196
+ }): CancelablePromise<ListErc20TransactionsResponse>;
197
+ /**
198
+ * List ERC-721 transfers
199
+ * Lists ERC-721 transfers for an address. Filterable by block range.
200
+ * @returns ListErc721TransactionsResponse
201
+ * @throws ApiError
202
+ */
203
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
204
+ /**
205
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
206
+ */
207
+ chainId: string;
208
+ /**
209
+ * A wallet address.
210
+ */
211
+ address: string;
212
+ /**
213
+ * 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.
214
+ */
215
+ startBlock?: number;
216
+ /**
217
+ * 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.
218
+ */
219
+ endBlock?: number;
220
+ /**
221
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
222
+ */
223
+ pageToken?: string;
224
+ /**
225
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
226
+ */
227
+ pageSize?: number;
228
+ }): CancelablePromise<ListErc721TransactionsResponse>;
229
+ /**
230
+ * List ERC-1155 transfers
231
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
232
+ * @returns ListErc1155TransactionsResponse
233
+ * @throws ApiError
234
+ */
235
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
236
+ /**
237
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
238
+ */
239
+ chainId: string;
240
+ /**
241
+ * A wallet address.
242
+ */
243
+ address: string;
244
+ /**
245
+ * 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.
246
+ */
247
+ startBlock?: number;
248
+ /**
249
+ * 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.
250
+ */
251
+ endBlock?: number;
252
+ /**
253
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
254
+ */
255
+ pageToken?: string;
256
+ /**
257
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
258
+ */
259
+ pageSize?: number;
260
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
261
+ /**
262
+ * List internal transactions
263
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
264
+ *
265
+ * 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.
266
+ * @returns ListInternalTransactionsResponse
267
+ * @throws ApiError
268
+ */
269
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
270
+ /**
271
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
272
+ */
273
+ chainId: string;
274
+ /**
275
+ * A wallet address.
276
+ */
277
+ address: string;
278
+ /**
279
+ * 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.
280
+ */
281
+ startBlock?: number;
282
+ /**
283
+ * 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.
284
+ */
285
+ endBlock?: number;
286
+ /**
287
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
288
+ */
289
+ pageToken?: string;
290
+ /**
291
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
292
+ */
293
+ pageSize?: number;
294
+ }): CancelablePromise<ListInternalTransactionsResponse>;
295
+ /**
296
+ * Get transaction
297
+ * Gets the details of a single transaction.
298
+ * @returns GetTransactionResponse
299
+ * @throws ApiError
300
+ */
301
+ getTransaction({ chainId, txHash, }: {
302
+ /**
303
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
304
+ */
305
+ chainId: string;
306
+ /**
307
+ * A transaction hash.
308
+ */
309
+ txHash: string;
310
+ }): CancelablePromise<GetTransactionResponse>;
311
+ /**
312
+ * List transactions for a block
313
+ * Lists the transactions that occured in a given block.
314
+ * @returns ListNativeTransactionsResponse
315
+ * @throws ApiError
316
+ */
317
+ getTransactionsForBlock({ chainId, blockId, }: {
318
+ /**
319
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
320
+ */
321
+ chainId: string;
322
+ /**
323
+ * A block identifier which is either a block number or the block hash.
324
+ */
325
+ blockId: string;
326
+ }): CancelablePromise<ListNativeTransactionsResponse>;
327
+ /**
328
+ * List latest transactions
329
+ * Lists the latest transactions. Filterable by status.
330
+ * @returns ListNativeTransactionsResponse
331
+ * @throws ApiError
332
+ */
333
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
334
+ /**
335
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
336
+ */
337
+ chainId: string;
338
+ /**
339
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
340
+ */
341
+ pageToken?: string;
342
+ /**
343
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
344
+ */
345
+ pageSize?: number;
346
+ /**
347
+ * A status filter for listed transactions.
348
+ */
349
+ status?: TransactionStatus;
350
+ }): CancelablePromise<ListNativeTransactionsResponse>;
351
+ }
352
+
353
+ export { EvmTransactionsService };
@@ -0,0 +1,251 @@
1
+ class EvmTransactionsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getDeploymentTransaction({
6
+ chainId,
7
+ address,
8
+ currency
9
+ }) {
10
+ return this.httpRequest.request({
11
+ method: "GET",
12
+ url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
13
+ path: {
14
+ "chainId": chainId,
15
+ "address": address
16
+ },
17
+ query: {
18
+ "currency": currency
19
+ }
20
+ });
21
+ }
22
+ listContractDeployments({
23
+ chainId,
24
+ address,
25
+ pageToken,
26
+ pageSize = 10
27
+ }) {
28
+ return this.httpRequest.request({
29
+ method: "GET",
30
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
31
+ path: {
32
+ "chainId": chainId,
33
+ "address": address
34
+ },
35
+ query: {
36
+ "pageToken": pageToken,
37
+ "pageSize": pageSize
38
+ }
39
+ });
40
+ }
41
+ listTransfers({
42
+ chainId,
43
+ address,
44
+ startBlock,
45
+ endBlock,
46
+ pageToken,
47
+ pageSize = 10
48
+ }) {
49
+ return this.httpRequest.request({
50
+ method: "GET",
51
+ url: "/v1/chains/{chainId}/tokens/{address}/transfers",
52
+ path: {
53
+ "chainId": chainId,
54
+ "address": address
55
+ },
56
+ query: {
57
+ "startBlock": startBlock,
58
+ "endBlock": endBlock,
59
+ "pageToken": pageToken,
60
+ "pageSize": pageSize
61
+ }
62
+ });
63
+ }
64
+ listTransactions({
65
+ chainId,
66
+ address,
67
+ pageToken,
68
+ pageSize = 10,
69
+ startBlock,
70
+ endBlock,
71
+ sortOrder
72
+ }) {
73
+ return this.httpRequest.request({
74
+ method: "GET",
75
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions",
76
+ path: {
77
+ "chainId": chainId,
78
+ "address": address
79
+ },
80
+ query: {
81
+ "pageToken": pageToken,
82
+ "pageSize": pageSize,
83
+ "startBlock": startBlock,
84
+ "endBlock": endBlock,
85
+ "sortOrder": sortOrder
86
+ }
87
+ });
88
+ }
89
+ listNativeTransactions({
90
+ chainId,
91
+ address,
92
+ startBlock,
93
+ endBlock,
94
+ pageToken,
95
+ pageSize = 10
96
+ }) {
97
+ return this.httpRequest.request({
98
+ method: "GET",
99
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
100
+ path: {
101
+ "chainId": chainId,
102
+ "address": address
103
+ },
104
+ query: {
105
+ "startBlock": startBlock,
106
+ "endBlock": endBlock,
107
+ "pageToken": pageToken,
108
+ "pageSize": pageSize
109
+ }
110
+ });
111
+ }
112
+ listErc20Transactions({
113
+ chainId,
114
+ address,
115
+ startBlock,
116
+ endBlock,
117
+ pageToken,
118
+ pageSize = 10
119
+ }) {
120
+ return this.httpRequest.request({
121
+ method: "GET",
122
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
123
+ path: {
124
+ "chainId": chainId,
125
+ "address": address
126
+ },
127
+ query: {
128
+ "startBlock": startBlock,
129
+ "endBlock": endBlock,
130
+ "pageToken": pageToken,
131
+ "pageSize": pageSize
132
+ }
133
+ });
134
+ }
135
+ listErc721Transactions({
136
+ chainId,
137
+ address,
138
+ startBlock,
139
+ endBlock,
140
+ pageToken,
141
+ pageSize = 10
142
+ }) {
143
+ return this.httpRequest.request({
144
+ method: "GET",
145
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
146
+ path: {
147
+ "chainId": chainId,
148
+ "address": address
149
+ },
150
+ query: {
151
+ "startBlock": startBlock,
152
+ "endBlock": endBlock,
153
+ "pageToken": pageToken,
154
+ "pageSize": pageSize
155
+ }
156
+ });
157
+ }
158
+ listErc1155Transactions({
159
+ chainId,
160
+ address,
161
+ startBlock,
162
+ endBlock,
163
+ pageToken,
164
+ pageSize = 10
165
+ }) {
166
+ return this.httpRequest.request({
167
+ method: "GET",
168
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
169
+ path: {
170
+ "chainId": chainId,
171
+ "address": address
172
+ },
173
+ query: {
174
+ "startBlock": startBlock,
175
+ "endBlock": endBlock,
176
+ "pageToken": pageToken,
177
+ "pageSize": pageSize
178
+ }
179
+ });
180
+ }
181
+ listInternalTransactions({
182
+ chainId,
183
+ address,
184
+ startBlock,
185
+ endBlock,
186
+ pageToken,
187
+ pageSize = 10
188
+ }) {
189
+ return this.httpRequest.request({
190
+ method: "GET",
191
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
192
+ path: {
193
+ "chainId": chainId,
194
+ "address": address
195
+ },
196
+ query: {
197
+ "startBlock": startBlock,
198
+ "endBlock": endBlock,
199
+ "pageToken": pageToken,
200
+ "pageSize": pageSize
201
+ }
202
+ });
203
+ }
204
+ getTransaction({
205
+ chainId,
206
+ txHash
207
+ }) {
208
+ return this.httpRequest.request({
209
+ method: "GET",
210
+ url: "/v1/chains/{chainId}/transactions/{txHash}",
211
+ path: {
212
+ "chainId": chainId,
213
+ "txHash": txHash
214
+ }
215
+ });
216
+ }
217
+ getTransactionsForBlock({
218
+ chainId,
219
+ blockId
220
+ }) {
221
+ return this.httpRequest.request({
222
+ method: "GET",
223
+ url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
224
+ path: {
225
+ "chainId": chainId,
226
+ "blockId": blockId
227
+ }
228
+ });
229
+ }
230
+ listLatestTransactions({
231
+ chainId,
232
+ pageToken,
233
+ pageSize = 10,
234
+ status
235
+ }) {
236
+ return this.httpRequest.request({
237
+ method: "GET",
238
+ url: "/v1/chains/{chainId}/transactions",
239
+ path: {
240
+ "chainId": chainId
241
+ },
242
+ query: {
243
+ "pageToken": pageToken,
244
+ "pageSize": pageSize,
245
+ "status": status
246
+ }
247
+ });
248
+ }
249
+ }
250
+
251
+ export { EvmTransactionsService };
@@ -0,0 +1,20 @@
1
+ import { CancelablePromise } from '../core/CancelablePromise.js';
2
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
+
4
+ declare class HealthCheckService {
5
+ readonly httpRequest: BaseHttpRequest;
6
+ constructor(httpRequest: BaseHttpRequest);
7
+ /**
8
+ * Get the health of the service
9
+ * @returns any The Health Check is successful
10
+ * @throws ApiError
11
+ */
12
+ healthCheck(): CancelablePromise<{
13
+ status?: string;
14
+ info?: Record<string, Record<string, string>> | null;
15
+ error?: Record<string, Record<string, string>> | null;
16
+ details?: Record<string, Record<string, string>>;
17
+ }>;
18
+ }
19
+
20
+ export { HealthCheckService };
@@ -0,0 +1,16 @@
1
+ class HealthCheckService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ healthCheck() {
6
+ return this.httpRequest.request({
7
+ method: "GET",
8
+ url: "/v1/health-check",
9
+ errors: {
10
+ 503: `The Health Check is not successful`
11
+ }
12
+ });
13
+ }
14
+ }
15
+
16
+ export { HealthCheckService };