@avalabs/glacier-sdk 2.8.0-canary.f6c173d.0 → 2.8.0-canary.f9bee1d.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 (199) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +1138 -414
  3. package/dist/index.js +1 -1946
  4. package/esm/generated/Glacier.d.ts +6 -0
  5. package/esm/generated/Glacier.js +1 -68
  6. package/esm/generated/core/ApiError.js +1 -18
  7. package/esm/generated/core/BaseHttpRequest.js +1 -7
  8. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  9. package/esm/generated/core/CancelablePromise.js +1 -91
  10. package/esm/generated/core/FetchHttpRequest.js +1 -13
  11. package/esm/generated/core/OpenAPI.js +1 -13
  12. package/esm/generated/core/request.js +1 -227
  13. package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
  14. package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
  15. package/esm/generated/models/ActiveValidatorDetails.js +1 -8
  16. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  17. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  18. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  19. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  20. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  21. package/esm/generated/models/BlockchainId.js +1 -13
  22. package/esm/generated/models/BlockchainIds.js +1 -10
  23. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  24. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  25. package/esm/generated/models/CChainExportTransaction.js +1 -8
  26. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  27. package/esm/generated/models/CChainImportTransaction.js +1 -8
  28. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  29. package/esm/generated/models/ChainInfo.d.ts +1 -3
  30. package/esm/generated/models/ChainStatus.d.ts +3 -0
  31. package/esm/generated/models/ChainStatus.js +1 -7
  32. package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
  33. package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
  34. package/esm/generated/models/CompletedValidatorDetails.js +1 -8
  35. package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
  36. package/esm/generated/models/ContractSubmissionErc20.js +1 -8
  37. package/esm/generated/models/ContractSubmissionErc721.js +1 -8
  38. package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
  39. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  40. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  41. package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
  42. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  43. package/esm/generated/models/CurrencyCode.js +1 -19
  44. package/esm/generated/models/DelegationStatusType.js +1 -8
  45. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  46. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
  47. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  48. package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
  49. package/esm/generated/models/EVMInput.d.ts +3 -3
  50. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  51. package/esm/generated/models/EVMOperationType.js +1 -0
  52. package/esm/generated/models/EVMOutput.d.ts +3 -3
  53. package/esm/generated/models/Erc1155Contract.js +1 -8
  54. package/esm/generated/models/Erc1155Token.js +1 -8
  55. package/esm/generated/models/Erc1155TokenBalance.js +1 -8
  56. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  57. package/esm/generated/models/Erc20Contract.js +1 -8
  58. package/esm/generated/models/Erc20Token.js +1 -8
  59. package/esm/generated/models/Erc20TokenBalance.js +1 -8
  60. package/esm/generated/models/Erc721Contract.js +1 -8
  61. package/esm/generated/models/Erc721Token.js +1 -8
  62. package/esm/generated/models/Erc721TokenBalance.js +1 -8
  63. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  64. package/esm/generated/models/EventType.d.ts +5 -0
  65. package/esm/generated/models/EventType.js +1 -0
  66. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  67. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  68. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  69. package/esm/generated/models/GlacierApiFeature.js +1 -0
  70. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  71. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  72. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  73. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  74. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  75. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  76. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  77. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  78. package/esm/generated/models/Method.d.ts +0 -3
  79. package/esm/generated/models/Money.d.ts +0 -3
  80. package/esm/generated/models/Network.js +1 -7
  81. package/esm/generated/models/NetworkType.js +1 -7
  82. package/esm/generated/models/NextPageToken.d.ts +8 -0
  83. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  84. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  85. package/esm/generated/models/OperationStatus.js +1 -9
  86. package/esm/generated/models/OperationStatusCode.js +1 -8
  87. package/esm/generated/models/OperationType.d.ts +4 -2
  88. package/esm/generated/models/OperationType.js +1 -7
  89. package/esm/generated/models/PChainBalance.d.ts +15 -15
  90. package/esm/generated/models/PChainId.js +1 -7
  91. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  92. package/esm/generated/models/PChainTransaction.d.ts +17 -7
  93. package/esm/generated/models/PChainTransactionType.d.ts +8 -5
  94. package/esm/generated/models/PChainTransactionType.js +1 -18
  95. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  96. package/esm/generated/models/PendingDelegatorDetails.js +1 -8
  97. package/esm/generated/models/PendingReward.d.ts +3 -3
  98. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  99. package/esm/generated/models/PendingTeleporterMessage.js +1 -0
  100. package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
  101. package/esm/generated/models/PendingValidatorDetails.js +1 -8
  102. package/esm/generated/models/PrimaryNetwork.js +1 -7
  103. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  104. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
  105. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  106. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
  107. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  108. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  109. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  110. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
  111. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  112. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
  113. package/esm/generated/models/PrimaryNetworkTxType.js +1 -21
  114. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  115. package/esm/generated/models/RemovedValidatorDetails.js +1 -0
  116. package/esm/generated/models/ResourceLinkType.js +1 -23
  117. package/esm/generated/models/RewardType.js +1 -8
  118. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  119. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  120. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  121. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  122. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  123. package/esm/generated/models/SortByOption.d.ts +9 -0
  124. package/esm/generated/models/SortByOption.js +1 -0
  125. package/esm/generated/models/SortOrder.js +1 -7
  126. package/esm/generated/models/Subnet.d.ts +17 -0
  127. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  128. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  129. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  130. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  131. package/esm/generated/models/TeleporterRewardDetails.js +1 -0
  132. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  133. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  134. package/esm/generated/models/TransactionMethodType.js +1 -8
  135. package/esm/generated/models/TransactionStatus.js +1 -7
  136. package/esm/generated/models/UnknownContract.js +1 -8
  137. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  138. package/esm/generated/models/Utxo.d.ts +30 -30
  139. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  140. package/esm/generated/models/UtxoType.js +1 -7
  141. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  142. package/esm/generated/models/ValidationStatusType.js +1 -8
  143. package/esm/generated/models/VmName.js +1 -8
  144. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  145. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  146. package/esm/generated/models/WebhookStatus.js +1 -0
  147. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  148. package/esm/generated/models/WebhookStatusType.js +1 -0
  149. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  150. package/esm/generated/models/XChainBalances.d.ts +3 -3
  151. package/esm/generated/models/XChainId.js +1 -8
  152. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  153. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  154. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  155. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  156. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  157. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  158. package/esm/generated/models/XChainTransactionType.js +1 -0
  159. package/esm/generated/services/DefaultService.js +1 -13
  160. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  161. package/esm/generated/services/EvmBalancesService.js +1 -116
  162. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  163. package/esm/generated/services/EvmBlocksService.js +1 -37
  164. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  165. package/esm/generated/services/EvmChainsService.js +1 -29
  166. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  167. package/esm/generated/services/EvmContractsService.js +1 -36
  168. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  169. package/esm/generated/services/EvmTransactionsService.js +1 -251
  170. package/esm/generated/services/HealthCheckService.js +1 -16
  171. package/esm/generated/services/NfTsService.d.ts +27 -2
  172. package/esm/generated/services/NfTsService.js +1 -37
  173. package/esm/generated/services/OperationsService.d.ts +11 -11
  174. package/esm/generated/services/OperationsService.js +1 -28
  175. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  176. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  177. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  178. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  179. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -53
  180. package/esm/generated/services/PrimaryNetworkService.d.ts +57 -42
  181. package/esm/generated/services/PrimaryNetworkService.js +1 -171
  182. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  183. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  184. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  185. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  186. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  187. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  188. package/esm/generated/services/RpcService.d.ts +25 -0
  189. package/esm/generated/services/RpcService.js +1 -0
  190. package/esm/generated/services/TeleporterService.d.ts +62 -0
  191. package/esm/generated/services/TeleporterService.js +1 -0
  192. package/esm/generated/services/WebhooksService.d.ts +143 -0
  193. package/esm/generated/services/WebhooksService.js +1 -0
  194. package/esm/index.d.ts +41 -3
  195. package/esm/index.js +1 -73
  196. package/package.json +3 -3
  197. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  198. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  199. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
24
24
  */
25
25
  getDeploymentTransaction({ chainId, address, currency, }: {
26
26
  /**
27
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
27
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
28
28
  */
29
29
  chainId: string;
30
30
  /**
@@ -42,23 +42,23 @@ declare class EvmTransactionsService {
42
42
  * @returns ListContractsResponse
43
43
  * @throws ApiError
44
44
  */
45
- listContractDeployments({ chainId, address, pageSize, pageToken, }: {
45
+ listContractDeployments({ chainId, address, pageToken, pageSize, }: {
46
46
  /**
47
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
47
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
48
48
  */
49
49
  chainId: string;
50
50
  /**
51
51
  * A wallet address.
52
52
  */
53
53
  address: string;
54
- /**
55
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
56
- */
57
- pageSize?: number;
58
54
  /**
59
55
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
60
56
  */
61
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
62
  }): CancelablePromise<ListContractsResponse>;
63
63
  /**
64
64
  * List ERC transfers
@@ -66,25 +66,31 @@ declare class EvmTransactionsService {
66
66
  * @returns ListTransfersResponse
67
67
  * @throws ApiError
68
68
  */
69
- listTransfers({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
69
+ listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
70
70
  /**
71
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
71
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
72
72
  */
73
73
  chainId: string;
74
74
  /**
75
75
  * A wallet address.
76
76
  */
77
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
+ */
78
81
  startBlock?: number;
79
- endBlock?: number;
80
82
  /**
81
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
82
84
  */
83
- pageSize?: number;
85
+ endBlock?: number;
84
86
  /**
85
87
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
86
88
  */
87
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;
88
94
  }): CancelablePromise<ListTransfersResponse>;
89
95
  /**
90
96
  * List transactions
@@ -94,24 +100,30 @@ declare class EvmTransactionsService {
94
100
  * @returns ListTransactionDetailsResponse
95
101
  * @throws ApiError
96
102
  */
97
- listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, sortOrder, }: {
103
+ listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
98
104
  /**
99
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
105
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
100
106
  */
101
107
  chainId: string;
102
108
  /**
103
109
  * A wallet address.
104
110
  */
105
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;
106
116
  /**
107
117
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
108
118
  */
109
119
  pageSize?: number;
110
120
  /**
111
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
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.
112
122
  */
113
- pageToken?: string;
114
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
+ */
115
127
  endBlock?: number;
116
128
  /**
117
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.
@@ -124,25 +136,31 @@ declare class EvmTransactionsService {
124
136
  * @returns ListNativeTransactionsResponse
125
137
  * @throws ApiError
126
138
  */
127
- listNativeTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
139
+ listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
128
140
  /**
129
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
141
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
130
142
  */
131
143
  chainId: string;
132
144
  /**
133
145
  * A wallet address.
134
146
  */
135
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
+ */
136
151
  startBlock?: number;
137
- endBlock?: number;
138
152
  /**
139
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
140
154
  */
141
- pageSize?: number;
155
+ endBlock?: number;
142
156
  /**
143
157
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
144
158
  */
145
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;
146
164
  }): CancelablePromise<ListNativeTransactionsResponse>;
147
165
  /**
148
166
  * List ERC-20 transfers
@@ -150,25 +168,31 @@ declare class EvmTransactionsService {
150
168
  * @returns ListErc20TransactionsResponse
151
169
  * @throws ApiError
152
170
  */
153
- listErc20Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
171
+ listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
154
172
  /**
155
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
173
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
174
  */
157
175
  chainId: string;
158
176
  /**
159
177
  * A wallet address.
160
178
  */
161
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
+ */
162
183
  startBlock?: number;
163
- endBlock?: number;
164
184
  /**
165
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
166
186
  */
167
- pageSize?: number;
187
+ endBlock?: number;
168
188
  /**
169
189
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
170
190
  */
171
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;
172
196
  }): CancelablePromise<ListErc20TransactionsResponse>;
173
197
  /**
174
198
  * List ERC-721 transfers
@@ -176,25 +200,31 @@ declare class EvmTransactionsService {
176
200
  * @returns ListErc721TransactionsResponse
177
201
  * @throws ApiError
178
202
  */
179
- listErc721Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
203
+ listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
180
204
  /**
181
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
205
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
182
206
  */
183
207
  chainId: string;
184
208
  /**
185
209
  * A wallet address.
186
210
  */
187
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
+ */
188
215
  startBlock?: number;
189
- endBlock?: number;
190
216
  /**
191
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
192
218
  */
193
- pageSize?: number;
219
+ endBlock?: number;
194
220
  /**
195
221
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
196
222
  */
197
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;
198
228
  }): CancelablePromise<ListErc721TransactionsResponse>;
199
229
  /**
200
230
  * List ERC-1155 transfers
@@ -202,25 +232,31 @@ declare class EvmTransactionsService {
202
232
  * @returns ListErc1155TransactionsResponse
203
233
  * @throws ApiError
204
234
  */
205
- listErc1155Transactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
235
+ listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
206
236
  /**
207
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
237
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
208
238
  */
209
239
  chainId: string;
210
240
  /**
211
241
  * A wallet address.
212
242
  */
213
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
+ */
214
247
  startBlock?: number;
215
- endBlock?: number;
216
248
  /**
217
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
218
250
  */
219
- pageSize?: number;
251
+ endBlock?: number;
220
252
  /**
221
253
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
222
254
  */
223
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;
224
260
  }): CancelablePromise<ListErc1155TransactionsResponse>;
225
261
  /**
226
262
  * List internal transactions
@@ -230,25 +266,31 @@ declare class EvmTransactionsService {
230
266
  * @returns ListInternalTransactionsResponse
231
267
  * @throws ApiError
232
268
  */
233
- listInternalTransactions({ chainId, address, startBlock, endBlock, pageSize, pageToken, }: {
269
+ listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
234
270
  /**
235
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
271
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
236
272
  */
237
273
  chainId: string;
238
274
  /**
239
275
  * A wallet address.
240
276
  */
241
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
+ */
242
281
  startBlock?: number;
243
- endBlock?: number;
244
282
  /**
245
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
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.
246
284
  */
247
- pageSize?: number;
285
+ endBlock?: number;
248
286
  /**
249
287
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
250
288
  */
251
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;
252
294
  }): CancelablePromise<ListInternalTransactionsResponse>;
253
295
  /**
254
296
  * Get transaction
@@ -258,7 +300,7 @@ declare class EvmTransactionsService {
258
300
  */
259
301
  getTransaction({ chainId, txHash, }: {
260
302
  /**
261
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
303
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
262
304
  */
263
305
  chainId: string;
264
306
  /**
@@ -274,7 +316,7 @@ declare class EvmTransactionsService {
274
316
  */
275
317
  getTransactionsForBlock({ chainId, blockId, }: {
276
318
  /**
277
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
319
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
278
320
  */
279
321
  chainId: string;
280
322
  /**
@@ -288,19 +330,19 @@ declare class EvmTransactionsService {
288
330
  * @returns ListNativeTransactionsResponse
289
331
  * @throws ApiError
290
332
  */
291
- listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
333
+ listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
292
334
  /**
293
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
335
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
294
336
  */
295
337
  chainId: string;
296
- /**
297
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
298
- */
299
- pageSize?: number;
300
338
  /**
301
339
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
302
340
  */
303
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;
304
346
  /**
305
347
  * A status filter for listed transactions.
306
348
  */
@@ -1,251 +1 @@
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}/contracts/{address}/deployments",
31
- path: {
32
- "chainId": chainId,
33
- "address": address
34
- },
35
- query: {
36
- "pageSize": pageSize,
37
- "pageToken": pageToken
38
- }
39
- });
40
- }
41
- listTransfers({
42
- chainId,
43
- address,
44
- startBlock,
45
- endBlock,
46
- pageSize = 10,
47
- pageToken
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
- "pageSize": pageSize,
60
- "pageToken": pageToken
61
- }
62
- });
63
- }
64
- listTransactions({
65
- chainId,
66
- address,
67
- pageSize = 10,
68
- pageToken,
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
- "pageSize": pageSize,
82
- "pageToken": pageToken,
83
- "startBlock": startBlock,
84
- "endBlock": endBlock,
85
- "sortOrder": sortOrder
86
- }
87
- });
88
- }
89
- listNativeTransactions({
90
- chainId,
91
- address,
92
- startBlock,
93
- endBlock,
94
- pageSize = 10,
95
- pageToken
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
- "pageSize": pageSize,
108
- "pageToken": pageToken
109
- }
110
- });
111
- }
112
- listErc20Transactions({
113
- chainId,
114
- address,
115
- startBlock,
116
- endBlock,
117
- pageSize = 10,
118
- pageToken
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
- "pageSize": pageSize,
131
- "pageToken": pageToken
132
- }
133
- });
134
- }
135
- listErc721Transactions({
136
- chainId,
137
- address,
138
- startBlock,
139
- endBlock,
140
- pageSize = 10,
141
- pageToken
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
- "pageSize": pageSize,
154
- "pageToken": pageToken
155
- }
156
- });
157
- }
158
- listErc1155Transactions({
159
- chainId,
160
- address,
161
- startBlock,
162
- endBlock,
163
- pageSize = 10,
164
- pageToken
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
- "pageSize": pageSize,
177
- "pageToken": pageToken
178
- }
179
- });
180
- }
181
- listInternalTransactions({
182
- chainId,
183
- address,
184
- startBlock,
185
- endBlock,
186
- pageSize = 10,
187
- pageToken
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
- "pageSize": pageSize,
200
- "pageToken": pageToken
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
- pageSize = 10,
233
- pageToken,
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
- "pageSize": pageSize,
244
- "pageToken": pageToken,
245
- "status": status
246
- }
247
- });
248
- }
249
- }
250
-
251
- export { EvmTransactionsService };
1
+ class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:s,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:s},query:{currency:t}})}listContractDeployments({chainId:e,address:s,pageToken:t,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a}})}listTransfers({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listTransactions({chainId:e,address:s,pageToken:t,pageSize:a=10,startBlock:r,endBlock:n,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a,startBlock:r,endBlock:n,sortOrder:d}})}listNativeTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc20Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc721Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc1155Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listInternalTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}getTransaction({chainId:e,txHash:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:s}})}getTransactionsForBlock({chainId:e,blockId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:s}})}listLatestTransactions({chainId:e,pageToken:s,pageSize:t=10,status:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:s,pageSize:t,status:a}})}}export{e as EvmTransactionsService};
@@ -1,16 +1 @@
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 };
1
+ class e{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{e as HealthCheckService};
@@ -1,5 +1,6 @@
1
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
2
2
  import { Erc721Token } from '../models/Erc721Token.js';
3
+ import { ListNftTokens } from '../models/ListNftTokens.js';
3
4
  import { CancelablePromise } from '../core/CancelablePromise.js';
4
5
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
6
 
@@ -14,7 +15,7 @@ declare class NfTsService {
14
15
  */
15
16
  reindexNft({ chainId, address, tokenId, }: {
16
17
  /**
17
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
18
19
  */
19
20
  chainId: string;
20
21
  /**
@@ -26,6 +27,30 @@ declare class NfTsService {
26
27
  */
27
28
  tokenId: string;
28
29
  }): CancelablePromise<any>;
30
+ /**
31
+ * List tokens
32
+ * Lists tokens for an NFT contract.
33
+ * @returns ListNftTokens
34
+ * @throws ApiError
35
+ */
36
+ listTokens({ chainId, address, pageToken, pageSize, }: {
37
+ /**
38
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
39
+ */
40
+ chainId: string;
41
+ /**
42
+ * Contract address on the relevant chain.
43
+ */
44
+ address: string;
45
+ /**
46
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
47
+ */
48
+ pageToken?: string;
49
+ /**
50
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
51
+ */
52
+ pageSize?: number;
53
+ }): CancelablePromise<ListNftTokens>;
29
54
  /**
30
55
  * Get token details
31
56
  * Gets token details for a specific token of an NFT contract.
@@ -34,7 +59,7 @@ declare class NfTsService {
34
59
  */
35
60
  getTokenDetails({ chainId, address, tokenId, }: {
36
61
  /**
37
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
62
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
38
63
  */
39
64
  chainId: string;
40
65
  /**