@binance/wallet 13.0.0 → 15.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.d.mts +126 -16
- package/dist/index.d.ts +126 -16
- package/dist/index.js +65 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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 = "
|
|
6
|
+
var version = "15.0.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -277,9 +277,10 @@ var AccountApi = class {
|
|
|
277
277
|
*/
|
|
278
278
|
const AssetApiAxiosParamCreator = function(configuration) {
|
|
279
279
|
return {
|
|
280
|
-
assetDetail: async (recvWindow) => {
|
|
280
|
+
assetDetail: async (asset, recvWindow) => {
|
|
281
281
|
const localVarQueryParameter = {};
|
|
282
282
|
const localVarBodyParameter = {};
|
|
283
|
+
if (asset !== void 0 && asset !== null) localVarQueryParameter["asset"] = asset;
|
|
283
284
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
284
285
|
let _timeUnit;
|
|
285
286
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -361,9 +362,10 @@ const AssetApiAxiosParamCreator = function(configuration) {
|
|
|
361
362
|
timeUnit: _timeUnit
|
|
362
363
|
};
|
|
363
364
|
},
|
|
364
|
-
dustlog: async (startTime, endTime, recvWindow) => {
|
|
365
|
+
dustlog: async (accountType, startTime, endTime, recvWindow) => {
|
|
365
366
|
const localVarQueryParameter = {};
|
|
366
367
|
const localVarBodyParameter = {};
|
|
368
|
+
if (accountType !== void 0 && accountType !== null) localVarQueryParameter["accountType"] = accountType;
|
|
367
369
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
368
370
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
369
371
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
@@ -600,7 +602,7 @@ var AssetApi = class {
|
|
|
600
602
|
* @see {@link https://developers.binance.com/docs/wallet/asset/Asset-Detail Binance API Documentation}
|
|
601
603
|
*/
|
|
602
604
|
async assetDetail(requestParameters = {}) {
|
|
603
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.recvWindow);
|
|
605
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.assetDetail(requestParameters?.asset, requestParameters?.recvWindow);
|
|
604
606
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
605
607
|
}
|
|
606
608
|
/**
|
|
@@ -688,7 +690,7 @@ var AssetApi = class {
|
|
|
688
690
|
* @see {@link https://developers.binance.com/docs/wallet/asset/dust-log Binance API Documentation}
|
|
689
691
|
*/
|
|
690
692
|
async dustlog(requestParameters = {}) {
|
|
691
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
693
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.dustlog(requestParameters?.accountType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
|
|
692
694
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
693
695
|
}
|
|
694
696
|
/**
|
|
@@ -763,8 +765,6 @@ var AssetApi = class {
|
|
|
763
765
|
/**
|
|
764
766
|
* Query User Delegation History
|
|
765
767
|
*
|
|
766
|
-
* You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint
|
|
767
|
-
*
|
|
768
768
|
* Weight: 60
|
|
769
769
|
*
|
|
770
770
|
* @summary Query User Delegation History(For Master Account)(USER_DATA)
|
|
@@ -1544,6 +1544,23 @@ const TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
1544
1544
|
timeUnit: _timeUnit
|
|
1545
1545
|
};
|
|
1546
1546
|
},
|
|
1547
|
+
submitDepositQuestionnaireV2: async (depositId, questionnaire) => {
|
|
1548
|
+
assertParamExists("submitDepositQuestionnaireV2", "depositId", depositId);
|
|
1549
|
+
assertParamExists("submitDepositQuestionnaireV2", "questionnaire", questionnaire);
|
|
1550
|
+
const localVarQueryParameter = {};
|
|
1551
|
+
const localVarBodyParameter = {};
|
|
1552
|
+
if (depositId !== void 0 && depositId !== null) localVarQueryParameter["depositId"] = depositId;
|
|
1553
|
+
if (questionnaire !== void 0 && questionnaire !== null) localVarQueryParameter["questionnaire"] = questionnaire;
|
|
1554
|
+
let _timeUnit;
|
|
1555
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1556
|
+
return {
|
|
1557
|
+
endpoint: "/sapi/v2/localentity/deposit/provide-info",
|
|
1558
|
+
method: "PUT",
|
|
1559
|
+
queryParams: localVarQueryParameter,
|
|
1560
|
+
bodyParams: localVarBodyParameter,
|
|
1561
|
+
timeUnit: _timeUnit
|
|
1562
|
+
};
|
|
1563
|
+
},
|
|
1547
1564
|
vaspList: async (recvWindow) => {
|
|
1548
1565
|
const localVarQueryParameter = {};
|
|
1549
1566
|
const localVarBodyParameter = {};
|
|
@@ -1779,6 +1796,27 @@ var TravelRuleApi = class {
|
|
|
1779
1796
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1780
1797
|
}
|
|
1781
1798
|
/**
|
|
1799
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
1800
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
1801
|
+
* yet onboarded with GTR.
|
|
1802
|
+
*
|
|
1803
|
+
* Questionnaire is different for each local entity, please refer
|
|
1804
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
1805
|
+
*
|
|
1806
|
+
* Weight: 600
|
|
1807
|
+
*
|
|
1808
|
+
* @summary Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
1809
|
+
* @param {SubmitDepositQuestionnaireV2Request} requestParameters Request parameters.
|
|
1810
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireV2Response>>}
|
|
1811
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1812
|
+
* @memberof TravelRuleApi
|
|
1813
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info-v2 Binance API Documentation}
|
|
1814
|
+
*/
|
|
1815
|
+
async submitDepositQuestionnaireV2(requestParameters) {
|
|
1816
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireV2(requestParameters?.depositId, requestParameters?.questionnaire);
|
|
1817
|
+
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1818
|
+
}
|
|
1819
|
+
/**
|
|
1782
1820
|
* Fetch the VASP list for local entities.
|
|
1783
1821
|
*
|
|
1784
1822
|
* Weight: 1
|
|
@@ -2190,8 +2228,6 @@ var RestAPI = class {
|
|
|
2190
2228
|
/**
|
|
2191
2229
|
* Query User Delegation History
|
|
2192
2230
|
*
|
|
2193
|
-
* You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint
|
|
2194
|
-
*
|
|
2195
2231
|
* Weight: 60
|
|
2196
2232
|
*
|
|
2197
2233
|
* @summary Query User Delegation History(For Master Account)(USER_DATA)
|
|
@@ -2656,6 +2692,26 @@ var RestAPI = class {
|
|
|
2656
2692
|
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
2657
2693
|
}
|
|
2658
2694
|
/**
|
|
2695
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
2696
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
2697
|
+
* yet onboarded with GTR.
|
|
2698
|
+
*
|
|
2699
|
+
* Questionnaire is different for each local entity, please refer
|
|
2700
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2701
|
+
*
|
|
2702
|
+
* Weight: 600
|
|
2703
|
+
*
|
|
2704
|
+
* @summary Submit Deposit Questionnaire V2 (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2705
|
+
* @param {SubmitDepositQuestionnaireV2Request} requestParameters Request parameters.
|
|
2706
|
+
*
|
|
2707
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireV2Response>>}
|
|
2708
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2709
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info-v2 Binance API Documentation}
|
|
2710
|
+
*/
|
|
2711
|
+
submitDepositQuestionnaireV2(requestParameters) {
|
|
2712
|
+
return this.travelRuleApi.submitDepositQuestionnaireV2(requestParameters);
|
|
2713
|
+
}
|
|
2714
|
+
/**
|
|
2659
2715
|
* Fetch the VASP list for local entities.
|
|
2660
2716
|
*
|
|
2661
2717
|
* Weight: 1
|