@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.1b2916c.0

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 (198) hide show
  1. package/dist/index.d.ts +2256 -1706
  2. package/dist/index.js +684 -317
  3. package/esm/generated/Glacier.d.ts +24 -2
  4. package/esm/generated/Glacier.js +49 -12
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/OpenAPI.js +1 -1
  8. package/esm/generated/core/request.js +14 -31
  9. package/esm/generated/models/ActiveDelegatorDetails.d.ts +18 -0
  10. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  11. package/esm/generated/models/ActiveValidatorDetails.d.ts +24 -0
  12. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  13. package/esm/generated/models/Blockchain.d.ts +10 -0
  14. package/esm/generated/models/BlockchainId.d.ts +6 -3
  15. package/esm/generated/models/BlockchainId.js +5 -2
  16. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  17. package/esm/generated/models/BlockchainIds.js +10 -0
  18. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  19. package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
  20. package/esm/generated/models/ChainInfo.d.ts +1 -4
  21. package/esm/generated/models/CompletedDelegatorDetails.d.ts +18 -0
  22. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  23. package/esm/generated/models/CompletedValidatorDetails.d.ts +19 -0
  24. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  25. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  26. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  27. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  28. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  29. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  30. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  31. package/esm/generated/models/DelegationStatusType.js +8 -0
  32. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  33. package/esm/generated/models/EVMInput.d.ts +5 -0
  34. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  35. package/esm/generated/models/Erc1155Contract.js +8 -0
  36. package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
  37. package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
  38. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
  39. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  40. package/esm/generated/models/Erc20Contract.js +8 -0
  41. package/esm/generated/models/Erc20Token.d.ts +1 -3
  42. package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
  43. package/esm/generated/models/Erc20Transfer.d.ts +1 -0
  44. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
  45. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  46. package/esm/generated/models/Erc721Contract.js +8 -0
  47. package/esm/generated/models/Erc721Transfer.d.ts +1 -0
  48. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
  49. package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
  50. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  51. package/esm/generated/models/GetChainResponse.d.ts +1 -4
  52. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  53. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  54. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  55. package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
  56. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  57. package/esm/generated/models/ImageAsset.d.ts +9 -0
  58. package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
  59. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
  60. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
  61. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
  62. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  63. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  64. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  65. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  66. package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
  67. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
  68. package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
  69. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  70. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  71. package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
  72. package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
  73. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  74. package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
  75. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
  76. package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
  77. package/esm/generated/models/Method.d.ts +1 -7
  78. package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
  79. package/esm/generated/models/NetworkToken.d.ts +1 -3
  80. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
  81. package/esm/generated/models/NetworkType.d.ts +6 -0
  82. package/esm/generated/models/NetworkType.js +7 -0
  83. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  84. package/esm/generated/models/OperationType.d.ts +2 -1
  85. package/esm/generated/models/OperationType.js +2 -1
  86. package/esm/generated/models/PChainBalance.d.ts +16 -7
  87. package/esm/generated/models/PChainId.d.ts +2 -2
  88. package/esm/generated/models/PChainId.js +1 -1
  89. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  90. package/esm/generated/models/PChainTransaction.d.ts +9 -15
  91. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  92. package/esm/generated/models/PChainTransactionType.js +17 -0
  93. package/esm/generated/models/PChainUtxo.d.ts +10 -1
  94. package/esm/generated/models/PendingDelegatorDetails.d.ts +18 -0
  95. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  96. package/esm/generated/models/PendingReward.d.ts +22 -0
  97. package/esm/generated/models/PendingValidatorDetails.d.ts +15 -0
  98. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  99. package/esm/generated/models/PricingProviders.d.ts +5 -0
  100. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  101. package/esm/generated/models/PrimaryNetwork.js +7 -0
  102. package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
  103. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  104. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  105. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  106. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
  107. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  108. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  109. package/esm/generated/models/RewardType.d.ts +6 -0
  110. package/esm/generated/models/RewardType.js +7 -0
  111. package/esm/generated/models/Rewards.d.ts +6 -0
  112. package/esm/generated/models/RichAddress.d.ts +1 -3
  113. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  114. package/esm/generated/models/Subnet.d.ts +13 -0
  115. package/esm/generated/models/TransactionDetails.d.ts +1 -7
  116. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  117. package/esm/generated/models/UnknownContract.d.ts +31 -0
  118. package/esm/generated/models/UnknownContract.js +8 -0
  119. package/esm/generated/models/Utxo.d.ts +9 -1
  120. package/esm/generated/models/UtxoType.d.ts +6 -0
  121. package/esm/generated/models/UtxoType.js +7 -0
  122. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  123. package/esm/generated/models/ValidationStatusType.js +8 -0
  124. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  125. package/esm/generated/models/XChainBalances.d.ts +2 -2
  126. package/esm/generated/models/XChainId.d.ts +3 -2
  127. package/esm/generated/models/XChainId.js +2 -1
  128. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
  129. package/esm/generated/models/XChainLinearTransaction.js +1 -1
  130. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
  131. package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
  132. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  133. package/esm/generated/services/EvmBalancesService.js +116 -0
  134. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  135. package/esm/generated/services/EvmBlocksService.js +37 -0
  136. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  137. package/esm/generated/services/EvmChainsService.js +29 -0
  138. package/esm/generated/services/EvmContractsService.d.ts +29 -0
  139. package/esm/generated/services/EvmContractsService.js +20 -0
  140. package/esm/generated/services/EvmTransactionsService.d.ts +331 -0
  141. package/esm/generated/services/EvmTransactionsService.js +264 -0
  142. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  143. package/esm/generated/services/NfTsService.d.ts +51 -0
  144. package/esm/generated/services/NfTsService.js +37 -0
  145. package/esm/generated/services/OperationsService.d.ts +8 -3
  146. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  147. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  148. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  149. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  150. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
  151. package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
  152. package/esm/generated/services/PrimaryNetworkService.d.ts +87 -253
  153. package/esm/generated/services/PrimaryNetworkService.js +53 -167
  154. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  155. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  156. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  157. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  158. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  159. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  160. package/esm/index.d.ts +63 -31
  161. package/esm/index.js +34 -9
  162. package/package.json +2 -5
  163. package/esm/generated/models/Address.d.ts +0 -8
  164. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  165. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  166. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  167. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  168. package/esm/generated/models/CollectionSortByOption.js +0 -9
  169. package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
  170. package/esm/generated/models/ErcType.d.ts +0 -8
  171. package/esm/generated/models/ErcType.js +0 -9
  172. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  173. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  174. package/esm/generated/models/ListingCurrencyType.js +0 -7
  175. package/esm/generated/models/ListingEventType.d.ts +0 -8
  176. package/esm/generated/models/ListingEventType.js +0 -9
  177. package/esm/generated/models/ListingResponse.d.ts +0 -19
  178. package/esm/generated/models/ListingType.d.ts +0 -6
  179. package/esm/generated/models/ListingType.js +0 -7
  180. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  181. package/esm/generated/models/ListingsSortByOption.js +0 -6
  182. package/esm/generated/models/NftCollection.d.ts +0 -24
  183. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  184. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  185. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  186. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  187. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  188. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  189. package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
  190. package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
  191. package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
  192. package/esm/generated/models/PaginationParams.d.ts +0 -13
  193. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  194. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  195. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  196. package/esm/generated/models/TrendingTimeframe.js +0 -8
  197. package/esm/generated/services/EvmService.d.ts +0 -724
  198. package/esm/generated/services/EvmService.js +0 -509
@@ -0,0 +1,29 @@
1
+ import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
+ import { Erc20Contract } from '../models/Erc20Contract.js';
3
+ import { Erc721Contract } from '../models/Erc721Contract.js';
4
+ import { UnknownContract } from '../models/UnknownContract.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class EvmContractsService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * Get contract metadata
13
+ * Gets metadata about the contract at the given address.
14
+ * @returns any
15
+ * @throws ApiError
16
+ */
17
+ getContractMetadata({ chainId, address, }: {
18
+ /**
19
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
20
+ */
21
+ chainId: string;
22
+ /**
23
+ * Contract address on the relevant chain.
24
+ */
25
+ address: string;
26
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
27
+ }
28
+
29
+ export { EvmContractsService };
@@ -0,0 +1,20 @@
1
+ class EvmContractsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getContractMetadata({
6
+ chainId,
7
+ address
8
+ }) {
9
+ return this.httpRequest.request({
10
+ method: "GET",
11
+ url: "/v1/chains/{chainId}/addresses/{address}",
12
+ path: {
13
+ "chainId": chainId,
14
+ "address": address
15
+ }
16
+ });
17
+ }
18
+ }
19
+
20
+ export { EvmContractsService };
@@ -0,0 +1,331 @@
1
+ import { CurrencyCode } from '../models/CurrencyCode.js';
2
+ import { Erc1155Contract } from '../models/Erc1155Contract.js';
3
+ import { Erc20Contract } from '../models/Erc20Contract.js';
4
+ import { Erc721Contract } from '../models/Erc721Contract.js';
5
+ import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
6
+ import { ListContractsResponse } from '../models/ListContractsResponse.js';
7
+ import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
8
+ import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
9
+ import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
10
+ import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
11
+ import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
12
+ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
13
+ import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
14
+ import { SortOrder } from '../models/SortOrder.js';
15
+ import { TransactionStatus } from '../models/TransactionStatus.js';
16
+ import { UnknownContract } from '../models/UnknownContract.js';
17
+ import { CancelablePromise } from '../core/CancelablePromise.js';
18
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
19
+
20
+ declare class EvmTransactionsService {
21
+ readonly httpRequest: BaseHttpRequest;
22
+ constructor(httpRequest: BaseHttpRequest);
23
+ /**
24
+ * Get deployment transaction
25
+ * If the address is a smart contract, returns the transaction in which it was deployed.
26
+ * @returns GetTransactionResponse
27
+ * @throws ApiError
28
+ */
29
+ getDeploymentTransaction({ chainId, address, currency, }: {
30
+ /**
31
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
32
+ */
33
+ chainId: string;
34
+ /**
35
+ * Contract address on the relevant chain.
36
+ */
37
+ address: string;
38
+ /**
39
+ * The currency that return values should use. Defaults to USD.
40
+ */
41
+ currency?: CurrencyCode;
42
+ }): CancelablePromise<GetTransactionResponse>;
43
+ /**
44
+ * List deployed contracts
45
+ * Lists all contracts deployed by the given address.
46
+ * @returns ListContractsResponse
47
+ * @throws ApiError
48
+ */
49
+ listContractDeployments({ chainId, address, pageSize, pageToken, }: {
50
+ /**
51
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
+ */
53
+ chainId: string;
54
+ /**
55
+ * A wallet address.
56
+ */
57
+ address: 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
+ /**
63
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
64
+ */
65
+ pageToken?: string;
66
+ }): CancelablePromise<ListContractsResponse>;
67
+ /**
68
+ * Get contract metadata
69
+ * Gets metadata about the contract at the given address.
70
+ * @returns any
71
+ * @throws ApiError
72
+ */
73
+ getContractMetadata({ chainId, address, }: {
74
+ /**
75
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
76
+ */
77
+ chainId: string;
78
+ /**
79
+ * Contract address on the relevant chain.
80
+ */
81
+ address: string;
82
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
83
+ /**
84
+ * List ERC transfers
85
+ * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
86
+ * @returns ListTransfersResponse
87
+ * @throws ApiError
88
+ */
89
+ listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
90
+ /**
91
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
92
+ */
93
+ chainId: string;
94
+ /**
95
+ * A wallet address.
96
+ */
97
+ address: string;
98
+ startBlock?: number;
99
+ endBlock?: number;
100
+ /**
101
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
102
+ */
103
+ pageSize?: number;
104
+ /**
105
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
106
+ */
107
+ pageToken?: string;
108
+ }): CancelablePromise<ListTransfersResponse>;
109
+ /**
110
+ * List transactions
111
+ * 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.
112
+ *
113
+ * Filterable by block ranges.
114
+ * @returns ListTransactionDetailsResponse
115
+ * @throws ApiError
116
+ */
117
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
118
+ /**
119
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
120
+ */
121
+ chainId: string;
122
+ /**
123
+ * A wallet address.
124
+ */
125
+ address: string;
126
+ /**
127
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
128
+ */
129
+ pageSize?: number;
130
+ /**
131
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
132
+ */
133
+ pageToken?: string;
134
+ startBlock?: number;
135
+ endBlock?: number;
136
+ /**
137
+ * 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.
138
+ */
139
+ sortOrder?: SortOrder;
140
+ }): CancelablePromise<ListTransactionDetailsResponse>;
141
+ /**
142
+ * List native transactions
143
+ * Lists native transactions for an address. Filterable by block range.
144
+ * @returns ListNativeTransactionsResponse
145
+ * @throws ApiError
146
+ */
147
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
148
+ /**
149
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
150
+ */
151
+ chainId: string;
152
+ /**
153
+ * A wallet address.
154
+ */
155
+ address: string;
156
+ startBlock?: number;
157
+ endBlock?: number;
158
+ /**
159
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
160
+ */
161
+ pageSize?: number;
162
+ /**
163
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
164
+ */
165
+ pageToken?: string;
166
+ }): CancelablePromise<ListNativeTransactionsResponse>;
167
+ /**
168
+ * List ERC-20 transfers
169
+ * Lists ERC-20 transfers for an address. Filterable by block range.
170
+ * @returns ListErc20TransactionsResponse
171
+ * @throws ApiError
172
+ */
173
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
174
+ /**
175
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
176
+ */
177
+ chainId: string;
178
+ /**
179
+ * A wallet address.
180
+ */
181
+ address: string;
182
+ startBlock?: number;
183
+ endBlock?: number;
184
+ /**
185
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
186
+ */
187
+ pageSize?: number;
188
+ /**
189
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
190
+ */
191
+ pageToken?: string;
192
+ }): CancelablePromise<ListErc20TransactionsResponse>;
193
+ /**
194
+ * List ERC-721 transfers
195
+ * Lists ERC-721 transfers for an address. Filterable by block range.
196
+ * @returns ListErc721TransactionsResponse
197
+ * @throws ApiError
198
+ */
199
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
200
+ /**
201
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
202
+ */
203
+ chainId: string;
204
+ /**
205
+ * A wallet address.
206
+ */
207
+ address: string;
208
+ startBlock?: number;
209
+ endBlock?: number;
210
+ /**
211
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
212
+ */
213
+ pageSize?: number;
214
+ /**
215
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
216
+ */
217
+ pageToken?: string;
218
+ }): CancelablePromise<ListErc721TransactionsResponse>;
219
+ /**
220
+ * List ERC-1155 transfers
221
+ * Lists ERC-1155 transfers for an address. Filterable by block range.
222
+ * @returns ListErc1155TransactionsResponse
223
+ * @throws ApiError
224
+ */
225
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
226
+ /**
227
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
228
+ */
229
+ chainId: string;
230
+ /**
231
+ * A wallet address.
232
+ */
233
+ address: string;
234
+ startBlock?: number;
235
+ endBlock?: number;
236
+ /**
237
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
238
+ */
239
+ pageSize?: number;
240
+ /**
241
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
242
+ */
243
+ pageToken?: string;
244
+ }): CancelablePromise<ListErc1155TransactionsResponse>;
245
+ /**
246
+ * List internal transactions
247
+ * Returns a list of internal transactions for an address and chain. Filterable by block range.
248
+ *
249
+ * 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.
250
+ * @returns ListInternalTransactionsResponse
251
+ * @throws ApiError
252
+ */
253
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
254
+ /**
255
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
256
+ */
257
+ chainId: string;
258
+ /**
259
+ * A wallet address.
260
+ */
261
+ address: string;
262
+ startBlock?: number;
263
+ endBlock?: number;
264
+ /**
265
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
266
+ */
267
+ pageSize?: number;
268
+ /**
269
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
270
+ */
271
+ pageToken?: string;
272
+ }): CancelablePromise<ListInternalTransactionsResponse>;
273
+ /**
274
+ * Get transaction
275
+ * Gets the details of a single transaction.
276
+ * @returns GetTransactionResponse
277
+ * @throws ApiError
278
+ */
279
+ getTransaction({ chainId, txHash, }: {
280
+ /**
281
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
282
+ */
283
+ chainId: string;
284
+ /**
285
+ * A transaction hash.
286
+ */
287
+ txHash: string;
288
+ }): CancelablePromise<GetTransactionResponse>;
289
+ /**
290
+ * List transactions for a block
291
+ * Lists the transactions that occured in a given block.
292
+ * @returns ListNativeTransactionsResponse
293
+ * @throws ApiError
294
+ */
295
+ getTransactionsForBlock({ chainId, blockId, }: {
296
+ /**
297
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
298
+ */
299
+ chainId: string;
300
+ /**
301
+ * A block identifier which is either a block number or the block hash.
302
+ */
303
+ blockId: string;
304
+ }): CancelablePromise<ListNativeTransactionsResponse>;
305
+ /**
306
+ * List latest transactions
307
+ * Lists the latest transactions. Filterable by status.
308
+ * @returns ListNativeTransactionsResponse
309
+ * @throws ApiError
310
+ */
311
+ listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
312
+ /**
313
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
314
+ */
315
+ chainId: string;
316
+ /**
317
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
318
+ */
319
+ pageSize?: number;
320
+ /**
321
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
322
+ */
323
+ pageToken?: string;
324
+ /**
325
+ * A status filter for listed transactions.
326
+ */
327
+ status?: TransactionStatus;
328
+ }): CancelablePromise<ListNativeTransactionsResponse>;
329
+ }
330
+
331
+ export { EvmTransactionsService };
@@ -0,0 +1,264 @@
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
+ pageSize = 10,
26
+ pageToken
27
+ }) {
28
+ return this.httpRequest.request({
29
+ method: "GET",
30
+ url: "/v1/chains/{chainId}/addresses/{address}/deployments",
31
+ path: {
32
+ "chainId": chainId,
33
+ "address": address
34
+ },
35
+ query: {
36
+ "pageSize": pageSize,
37
+ "pageToken": pageToken
38
+ }
39
+ });
40
+ }
41
+ getContractMetadata({
42
+ chainId,
43
+ address
44
+ }) {
45
+ return this.httpRequest.request({
46
+ method: "GET",
47
+ url: "/v1/chains/{chainId}/addresses/{address}",
48
+ path: {
49
+ "chainId": chainId,
50
+ "address": address
51
+ }
52
+ });
53
+ }
54
+ listTransfers({
55
+ chainId,
56
+ address,
57
+ startBlock,
58
+ endBlock,
59
+ pageSize = 10,
60
+ pageToken
61
+ }) {
62
+ return this.httpRequest.request({
63
+ method: "GET",
64
+ url: "/v1/chains/{chainId}/tokens/{address}/transfers",
65
+ path: {
66
+ "chainId": chainId,
67
+ "address": address
68
+ },
69
+ query: {
70
+ "startBlock": startBlock,
71
+ "endBlock": endBlock,
72
+ "pageSize": pageSize,
73
+ "pageToken": pageToken
74
+ }
75
+ });
76
+ }
77
+ listTransactions({
78
+ chainId,
79
+ address,
80
+ pageSize = 10,
81
+ pageToken,
82
+ startBlock,
83
+ endBlock,
84
+ sortOrder
85
+ }) {
86
+ return this.httpRequest.request({
87
+ method: "GET",
88
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions",
89
+ path: {
90
+ "chainId": chainId,
91
+ "address": address
92
+ },
93
+ query: {
94
+ "pageSize": pageSize,
95
+ "pageToken": pageToken,
96
+ "startBlock": startBlock,
97
+ "endBlock": endBlock,
98
+ "sortOrder": sortOrder
99
+ }
100
+ });
101
+ }
102
+ listNativeTransactions({
103
+ chainId,
104
+ address,
105
+ startBlock,
106
+ endBlock,
107
+ pageSize = 10,
108
+ pageToken
109
+ }) {
110
+ return this.httpRequest.request({
111
+ method: "GET",
112
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
113
+ path: {
114
+ "chainId": chainId,
115
+ "address": address
116
+ },
117
+ query: {
118
+ "startBlock": startBlock,
119
+ "endBlock": endBlock,
120
+ "pageSize": pageSize,
121
+ "pageToken": pageToken
122
+ }
123
+ });
124
+ }
125
+ listErc20Transactions({
126
+ chainId,
127
+ address,
128
+ startBlock,
129
+ endBlock,
130
+ pageSize = 10,
131
+ pageToken
132
+ }) {
133
+ return this.httpRequest.request({
134
+ method: "GET",
135
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
136
+ path: {
137
+ "chainId": chainId,
138
+ "address": address
139
+ },
140
+ query: {
141
+ "startBlock": startBlock,
142
+ "endBlock": endBlock,
143
+ "pageSize": pageSize,
144
+ "pageToken": pageToken
145
+ }
146
+ });
147
+ }
148
+ listErc721Transactions({
149
+ chainId,
150
+ address,
151
+ startBlock,
152
+ endBlock,
153
+ pageSize = 10,
154
+ pageToken
155
+ }) {
156
+ return this.httpRequest.request({
157
+ method: "GET",
158
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
159
+ path: {
160
+ "chainId": chainId,
161
+ "address": address
162
+ },
163
+ query: {
164
+ "startBlock": startBlock,
165
+ "endBlock": endBlock,
166
+ "pageSize": pageSize,
167
+ "pageToken": pageToken
168
+ }
169
+ });
170
+ }
171
+ listErc1155Transactions({
172
+ chainId,
173
+ address,
174
+ startBlock,
175
+ endBlock,
176
+ pageSize = 10,
177
+ pageToken
178
+ }) {
179
+ return this.httpRequest.request({
180
+ method: "GET",
181
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
182
+ path: {
183
+ "chainId": chainId,
184
+ "address": address
185
+ },
186
+ query: {
187
+ "startBlock": startBlock,
188
+ "endBlock": endBlock,
189
+ "pageSize": pageSize,
190
+ "pageToken": pageToken
191
+ }
192
+ });
193
+ }
194
+ listInternalTransactions({
195
+ chainId,
196
+ address,
197
+ startBlock,
198
+ endBlock,
199
+ pageSize = 10,
200
+ pageToken
201
+ }) {
202
+ return this.httpRequest.request({
203
+ method: "GET",
204
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
205
+ path: {
206
+ "chainId": chainId,
207
+ "address": address
208
+ },
209
+ query: {
210
+ "startBlock": startBlock,
211
+ "endBlock": endBlock,
212
+ "pageSize": pageSize,
213
+ "pageToken": pageToken
214
+ }
215
+ });
216
+ }
217
+ getTransaction({
218
+ chainId,
219
+ txHash
220
+ }) {
221
+ return this.httpRequest.request({
222
+ method: "GET",
223
+ url: "/v1/chains/{chainId}/transactions/{txHash}",
224
+ path: {
225
+ "chainId": chainId,
226
+ "txHash": txHash
227
+ }
228
+ });
229
+ }
230
+ getTransactionsForBlock({
231
+ chainId,
232
+ blockId
233
+ }) {
234
+ return this.httpRequest.request({
235
+ method: "GET",
236
+ url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
237
+ path: {
238
+ "chainId": chainId,
239
+ "blockId": blockId
240
+ }
241
+ });
242
+ }
243
+ listLatestTransactions({
244
+ chainId,
245
+ pageSize = 10,
246
+ pageToken,
247
+ status
248
+ }) {
249
+ return this.httpRequest.request({
250
+ method: "GET",
251
+ url: "/v1/chains/{chainId}/transactions",
252
+ path: {
253
+ "chainId": chainId
254
+ },
255
+ query: {
256
+ "pageSize": pageSize,
257
+ "pageToken": pageToken,
258
+ "status": status
259
+ }
260
+ });
261
+ }
262
+ }
263
+
264
+ export { EvmTransactionsService };
@@ -5,7 +5,7 @@ declare class HealthCheckService {
5
5
  readonly httpRequest: BaseHttpRequest;
6
6
  constructor(httpRequest: BaseHttpRequest);
7
7
  /**
8
- * Get the health of the service.
8
+ * Get the health of the service
9
9
  * @returns any The Health Check is successful
10
10
  * @throws ApiError
11
11
  */
@@ -0,0 +1,51 @@
1
+ import { Erc1155Token } from '../models/Erc1155Token.js';
2
+ import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class NfTsService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Reindex NFT metadata
11
+ * Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
12
+ * @returns any
13
+ * @throws ApiError
14
+ */
15
+ reindexNft({ chainId, address, tokenId, }: {
16
+ /**
17
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
+ */
19
+ chainId: string;
20
+ /**
21
+ * Contract address on the relevant chain.
22
+ */
23
+ address: string;
24
+ /**
25
+ * TokenId on the contract
26
+ */
27
+ tokenId: string;
28
+ }): CancelablePromise<any>;
29
+ /**
30
+ * Get token details
31
+ * Gets token details for a specific token of an NFT contract.
32
+ * @returns any
33
+ * @throws ApiError
34
+ */
35
+ getTokenDetails({ chainId, address, tokenId, }: {
36
+ /**
37
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
+ */
39
+ chainId: string;
40
+ /**
41
+ * Contract address on the relevant chain.
42
+ */
43
+ address: string;
44
+ /**
45
+ * TokenId on the contract
46
+ */
47
+ tokenId: string;
48
+ }): CancelablePromise<(Erc721Token | Erc1155Token)>;
49
+ }
50
+
51
+ export { NfTsService };