@avalabs/glacier-sdk 2.8.0-alpha.96 → 2.8.0-alpha.97

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.
package/dist/index.d.ts CHANGED
@@ -1506,7 +1506,7 @@ declare class EvmService {
1506
1506
  * @returns ListTransactionDetailsResponse
1507
1507
  * @throws ApiError
1508
1508
  */
1509
- listTransactions({ chainId, address, pageSize, pageToken, }: {
1509
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, }: {
1510
1510
  /**
1511
1511
  * A supported evm chain id. Use the `/chains` endpoint to get
1512
1512
  * a list of supported chain ids.
@@ -1525,6 +1525,14 @@ declare class EvmService {
1525
1525
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
1526
1526
  */
1527
1527
  pageToken?: string;
1528
+ /**
1529
+ * 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.
1530
+ */
1531
+ startBlock?: any;
1532
+ /**
1533
+ * 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.
1534
+ */
1535
+ endBlock?: any;
1528
1536
  }): CancelablePromise<ListTransactionDetailsResponse>;
1529
1537
  /**
1530
1538
  * Gets a list of native transactions for an address and chain.
@@ -3108,7 +3116,15 @@ declare class PrimaryNetworkService {
3108
3116
  * @returns XChainAssetDetails
3109
3117
  * @throws ApiError
3110
3118
  */
3111
- getAssetDetails({ assetId, }: {
3119
+ getAssetDetails({ blockchainId, network, assetId, }: {
3120
+ /**
3121
+ * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3122
+ */
3123
+ blockchainId: XChainId;
3124
+ /**
3125
+ * Either mainnet or a testnet.
3126
+ */
3127
+ network: Network;
3112
3128
  /**
3113
3129
  * Asset ID for any asset on X-Chain
3114
3130
  */
package/dist/index.js CHANGED
@@ -521,7 +521,9 @@ class EvmService {
521
521
  chainId,
522
522
  address,
523
523
  pageSize = 10,
524
- pageToken
524
+ pageToken,
525
+ startBlock,
526
+ endBlock
525
527
  }) {
526
528
  return this.httpRequest.request({
527
529
  method: "GET",
@@ -532,7 +534,9 @@ class EvmService {
532
534
  },
533
535
  query: {
534
536
  "pageSize": pageSize,
535
- "pageToken": pageToken
537
+ "pageToken": pageToken,
538
+ "startBlock": startBlock,
539
+ "endBlock": endBlock
536
540
  }
537
541
  });
538
542
  }
@@ -1118,12 +1122,16 @@ class PrimaryNetworkService {
1118
1122
  });
1119
1123
  }
1120
1124
  getAssetDetails({
1125
+ blockchainId,
1126
+ network,
1121
1127
  assetId
1122
1128
  }) {
1123
1129
  return this.httpRequest.request({
1124
1130
  method: "GET",
1125
1131
  url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
1126
1132
  path: {
1133
+ "blockchainId": blockchainId,
1134
+ "network": network,
1127
1135
  "assetId": assetId
1128
1136
  }
1129
1137
  });
@@ -258,7 +258,7 @@ declare class EvmService {
258
258
  * @returns ListTransactionDetailsResponse
259
259
  * @throws ApiError
260
260
  */
261
- listTransactions({ chainId, address, pageSize, pageToken, }: {
261
+ listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, }: {
262
262
  /**
263
263
  * A supported evm chain id. Use the `/chains` endpoint to get
264
264
  * a list of supported chain ids.
@@ -277,6 +277,14 @@ declare class EvmService {
277
277
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
278
278
  */
279
279
  pageToken?: string;
280
+ /**
281
+ * 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.
282
+ */
283
+ startBlock?: any;
284
+ /**
285
+ * 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.
286
+ */
287
+ endBlock?: any;
280
288
  }): CancelablePromise<ListTransactionDetailsResponse>;
281
289
  /**
282
290
  * Gets a list of native transactions for an address and chain.
@@ -167,7 +167,9 @@ class EvmService {
167
167
  chainId,
168
168
  address,
169
169
  pageSize = 10,
170
- pageToken
170
+ pageToken,
171
+ startBlock,
172
+ endBlock
171
173
  }) {
172
174
  return this.httpRequest.request({
173
175
  method: "GET",
@@ -178,7 +180,9 @@ class EvmService {
178
180
  },
179
181
  query: {
180
182
  "pageSize": pageSize,
181
- "pageToken": pageToken
183
+ "pageToken": pageToken,
184
+ "startBlock": startBlock,
185
+ "endBlock": endBlock
182
186
  }
183
187
  });
184
188
  }
@@ -325,7 +325,15 @@ declare class PrimaryNetworkService {
325
325
  * @returns XChainAssetDetails
326
326
  * @throws ApiError
327
327
  */
328
- getAssetDetails({ assetId, }: {
328
+ getAssetDetails({ blockchainId, network, assetId, }: {
329
+ /**
330
+ * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
331
+ */
332
+ blockchainId: XChainId;
333
+ /**
334
+ * Either mainnet or a testnet.
335
+ */
336
+ network: Network;
329
337
  /**
330
338
  * Asset ID for any asset on X-Chain
331
339
  */
@@ -218,12 +218,16 @@ class PrimaryNetworkService {
218
218
  });
219
219
  }
220
220
  getAssetDetails({
221
+ blockchainId,
222
+ network,
221
223
  assetId
222
224
  }) {
223
225
  return this.httpRequest.request({
224
226
  method: "GET",
225
227
  url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
226
228
  path: {
229
+ "blockchainId": blockchainId,
230
+ "network": network,
227
231
  "assetId": assetId
228
232
  }
229
233
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.96",
3
+ "version": "2.8.0-alpha.97",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -32,5 +32,5 @@
32
32
  "bugs": {
33
33
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
34
34
  },
35
- "gitHead": "78f21b702b0b5b6051a0907f21bf11377a19e3dd"
35
+ "gitHead": "79c597306c3cc2042b27020d93183aa5e0eb1f71"
36
36
  }