@binance/wallet 17.0.9 → 18.0.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.
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
3
3
 
4
4
  //#region package.json
5
5
  var name = "@binance/wallet";
6
- var version = "17.0.9";
6
+ var version = "18.0.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/rest-api/modules/account-api.ts
@@ -310,11 +310,12 @@ const AssetApiAxiosParamCreator = function(configuration) {
310
310
  timeUnit: _timeUnit
311
311
  };
312
312
  },
313
- dustConvert: async (asset, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
313
+ dustConvert: async (asset, accountType, clientId, targetAsset, thirdPartyClientId, dustQuotaAssetToTargetAssetPrice) => {
314
314
  assertParamExists("dustConvert", "asset", asset);
315
315
  const localVarQueryParameter = {};
316
316
  const localVarBodyParameter = {};
317
317
  if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
318
+ if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
318
319
  if (clientId !== void 0 && clientId !== null) localVarQueryParameter["clientId"] = clientId;
319
320
  if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
320
321
  if (thirdPartyClientId !== void 0 && thirdPartyClientId !== null) localVarQueryParameter["thirdPartyClientId"] = thirdPartyClientId;
@@ -329,10 +330,11 @@ const AssetApiAxiosParamCreator = function(configuration) {
329
330
  timeUnit: _timeUnit
330
331
  };
331
332
  },
332
- dustConvertibleAssets: async (targetAsset, dustQuotaAssetToTargetAssetPrice) => {
333
+ dustConvertibleAssets: async (targetAsset, accountType, dustQuotaAssetToTargetAssetPrice) => {
333
334
  assertParamExists("dustConvertibleAssets", "targetAsset", targetAsset);
334
335
  const localVarQueryParameter = {};
335
336
  const localVarBodyParameter = {};
337
+ if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
336
338
  if (targetAsset !== void 0 && targetAsset !== null) localVarQueryParameter["targetAsset"] = targetAsset;
337
339
  if (dustQuotaAssetToTargetAssetPrice !== void 0 && dustQuotaAssetToTargetAssetPrice !== null) localVarQueryParameter["dustQuotaAssetToTargetAssetPrice"] = dustQuotaAssetToTargetAssetPrice;
338
340
  let _timeUnit;
@@ -637,7 +639,7 @@ var AssetApi = class {
637
639
  * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convert Binance API Documentation}
638
640
  */
639
641
  async dustConvert(requestParameters) {
640
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
642
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvert(requestParameters?.asset, requestParameters?.accountType, requestParameters?.clientId, requestParameters?.targetAsset, requestParameters?.thirdPartyClientId, requestParameters?.dustQuotaAssetToTargetAssetPrice);
641
643
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
642
644
  }
643
645
  /**
@@ -653,7 +655,7 @@ var AssetApi = class {
653
655
  * @see {@link https://developers.binance.com/docs/wallet/asset/Dust-Convertible-Assets Binance API Documentation}
654
656
  */
655
657
  async dustConvertibleAssets(requestParameters) {
656
- const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.dustQuotaAssetToTargetAssetPrice);
658
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustConvertibleAssets(requestParameters?.targetAsset, requestParameters?.accountType, requestParameters?.dustQuotaAssetToTargetAssetPrice);
657
659
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
658
660
  }
659
661
  /**
@@ -1244,6 +1246,9 @@ var CapitalApi = class {
1244
1246
  * If `network` not send, return with default network of the coin.
1245
1247
  * You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
1246
1248
  * To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
1249
+ * For networks that do not support memo/tag, submitting a withdrawal request with a non-empty `addressTag` will return error `-4106 TAG_NOT_SUPPORTED_FOR_NETWORK`. Please omit the `addressTag` field for such networks. You can check whether a network requires a tag via `GET /sapi/v1/capital/config/getall`:
1250
+ * If `withdrawTag` = `true` → memo/tag is required.
1251
+ * If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
1247
1252
  *
1248
1253
  * Weight: 900
1249
1254
  *
@@ -2502,6 +2507,9 @@ var RestAPI = class {
2502
2507
  * If `network` not send, return with default network of the coin.
2503
2508
  * You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`.
2504
2509
  * To check if travel rule is required, by using `GET /sapi/v1/localentity/questionnaire-requirements` and if it returns anything other than `NIL` you will need update SAPI to `POST /sapi/v1/localentity/withdraw/apply` else you can continue `POST /sapi/v1/capital/withdraw/apply`. Please note that if you are required to comply to travel rule please refer to the Travel Rule SAPI.
2510
+ * For networks that do not support memo/tag, submitting a withdrawal request with a non-empty `addressTag` will return error `-4106 TAG_NOT_SUPPORTED_FOR_NETWORK`. Please omit the `addressTag` field for such networks. You can check whether a network requires a tag via `GET /sapi/v1/capital/config/getall`:
2511
+ * If `withdrawTag` = `true` → memo/tag is required.
2512
+ * If `withdrawTag` = `false` → memo/tag is not supported; omit `addressTag`.
2505
2513
  *
2506
2514
  * Weight: 900
2507
2515
  *