@binance/wallet 7.0.0 → 8.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 +238 -111
- package/dist/index.d.ts +238 -111
- package/dist/index.js +175 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +175 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { buildUserAgent, ConfigurationRestAPI as ConfigurationRestAPI7, WALLET_R
|
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
11
|
var name = "@binance/wallet";
|
|
12
|
-
var version = "
|
|
12
|
+
var version = "8.0.0";
|
|
13
13
|
|
|
14
14
|
// src/rest-api/index.ts
|
|
15
15
|
var rest_api_exports = {};
|
|
@@ -2367,6 +2367,36 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2367
2367
|
timeUnit: _timeUnit
|
|
2368
2368
|
};
|
|
2369
2369
|
},
|
|
2370
|
+
/**
|
|
2371
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
2372
|
+
*
|
|
2373
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2374
|
+
*
|
|
2375
|
+
* Weight: 18000
|
|
2376
|
+
* Request limit: 10 requests per second
|
|
2377
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2378
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
2379
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2380
|
+
*
|
|
2381
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2382
|
+
* @param {number} [recvWindow]
|
|
2383
|
+
*
|
|
2384
|
+
* @throws {RequiredError}
|
|
2385
|
+
*/
|
|
2386
|
+
checkQuestionnaireRequirements: async (recvWindow) => {
|
|
2387
|
+
const localVarQueryParameter = {};
|
|
2388
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2389
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2390
|
+
}
|
|
2391
|
+
let _timeUnit;
|
|
2392
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2393
|
+
return {
|
|
2394
|
+
endpoint: "/sapi/v1/localentity/questionnaire-requirements",
|
|
2395
|
+
method: "GET",
|
|
2396
|
+
params: localVarQueryParameter,
|
|
2397
|
+
timeUnit: _timeUnit
|
|
2398
|
+
};
|
|
2399
|
+
},
|
|
2370
2400
|
/**
|
|
2371
2401
|
* Fetch deposit history for local entities that required travel rule.
|
|
2372
2402
|
*
|
|
@@ -2440,11 +2470,15 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2440
2470
|
* Weight: 10
|
|
2441
2471
|
*
|
|
2442
2472
|
* @summary Fetch address verification list (USER_DATA)
|
|
2473
|
+
* @param {number} [recvWindow]
|
|
2443
2474
|
*
|
|
2444
2475
|
* @throws {RequiredError}
|
|
2445
2476
|
*/
|
|
2446
|
-
fetchAddressVerificationList: async () => {
|
|
2477
|
+
fetchAddressVerificationList: async (recvWindow) => {
|
|
2447
2478
|
const localVarQueryParameter = {};
|
|
2479
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2480
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2481
|
+
}
|
|
2448
2482
|
let _timeUnit;
|
|
2449
2483
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2450
2484
|
return {
|
|
@@ -2454,32 +2488,6 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2454
2488
|
timeUnit: _timeUnit
|
|
2455
2489
|
};
|
|
2456
2490
|
},
|
|
2457
|
-
/**
|
|
2458
|
-
* Fetch the onboarded VASP list for local entities that required travel rule.
|
|
2459
|
-
*
|
|
2460
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2461
|
-
*
|
|
2462
|
-
* Weight: 18000
|
|
2463
|
-
* Request limit: 10 requests per second
|
|
2464
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2465
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
2466
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2467
|
-
*
|
|
2468
|
-
* @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2469
|
-
*
|
|
2470
|
-
* @throws {RequiredError}
|
|
2471
|
-
*/
|
|
2472
|
-
onboardedVaspList: async () => {
|
|
2473
|
-
const localVarQueryParameter = {};
|
|
2474
|
-
let _timeUnit;
|
|
2475
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2476
|
-
return {
|
|
2477
|
-
endpoint: "/sapi/v1/localentity/vasp",
|
|
2478
|
-
method: "GET",
|
|
2479
|
-
params: localVarQueryParameter,
|
|
2480
|
-
timeUnit: _timeUnit
|
|
2481
|
-
};
|
|
2482
|
-
},
|
|
2483
2491
|
/**
|
|
2484
2492
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2485
2493
|
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
@@ -2589,6 +2597,36 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2589
2597
|
timeUnit: _timeUnit
|
|
2590
2598
|
};
|
|
2591
2599
|
},
|
|
2600
|
+
/**
|
|
2601
|
+
* Fetch the VASP list for local entities.
|
|
2602
|
+
*
|
|
2603
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2604
|
+
*
|
|
2605
|
+
* Weight: 18000
|
|
2606
|
+
* Request limit: 10 requests per second
|
|
2607
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2608
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
2609
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2610
|
+
*
|
|
2611
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2612
|
+
* @param {number} [recvWindow]
|
|
2613
|
+
*
|
|
2614
|
+
* @throws {RequiredError}
|
|
2615
|
+
*/
|
|
2616
|
+
vaspList: async (recvWindow) => {
|
|
2617
|
+
const localVarQueryParameter = {};
|
|
2618
|
+
if (recvWindow !== void 0 && recvWindow !== null) {
|
|
2619
|
+
localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2620
|
+
}
|
|
2621
|
+
let _timeUnit;
|
|
2622
|
+
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2623
|
+
return {
|
|
2624
|
+
endpoint: "/sapi/v1/localentity/vasp",
|
|
2625
|
+
method: "GET",
|
|
2626
|
+
params: localVarQueryParameter,
|
|
2627
|
+
timeUnit: _timeUnit
|
|
2628
|
+
};
|
|
2629
|
+
},
|
|
2592
2630
|
/**
|
|
2593
2631
|
* Fetch withdraw history for local entities that required travel rule.
|
|
2594
2632
|
*
|
|
@@ -2862,6 +2900,37 @@ var TravelRuleApi = class {
|
|
|
2862
2900
|
{ isSigned: true }
|
|
2863
2901
|
);
|
|
2864
2902
|
}
|
|
2903
|
+
/**
|
|
2904
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
2905
|
+
*
|
|
2906
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2907
|
+
*
|
|
2908
|
+
* Weight: 18000
|
|
2909
|
+
* Request limit: 10 requests per second
|
|
2910
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2911
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
2912
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2913
|
+
*
|
|
2914
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2915
|
+
* @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
|
|
2916
|
+
* @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
|
|
2917
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2918
|
+
* @memberof TravelRuleApi
|
|
2919
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
|
|
2920
|
+
*/
|
|
2921
|
+
async checkQuestionnaireRequirements(requestParameters = {}) {
|
|
2922
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.checkQuestionnaireRequirements(
|
|
2923
|
+
requestParameters?.recvWindow
|
|
2924
|
+
);
|
|
2925
|
+
return sendRequest5(
|
|
2926
|
+
this.configuration,
|
|
2927
|
+
localVarAxiosArgs.endpoint,
|
|
2928
|
+
localVarAxiosArgs.method,
|
|
2929
|
+
localVarAxiosArgs.params,
|
|
2930
|
+
localVarAxiosArgs?.timeUnit,
|
|
2931
|
+
{ isSigned: true }
|
|
2932
|
+
);
|
|
2933
|
+
}
|
|
2865
2934
|
/**
|
|
2866
2935
|
* Fetch deposit history for local entities that required travel rule.
|
|
2867
2936
|
*
|
|
@@ -2906,41 +2975,16 @@ var TravelRuleApi = class {
|
|
|
2906
2975
|
* Weight: 10
|
|
2907
2976
|
*
|
|
2908
2977
|
* @summary Fetch address verification list (USER_DATA)
|
|
2978
|
+
* @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
|
|
2909
2979
|
* @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
|
|
2910
2980
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2911
2981
|
* @memberof TravelRuleApi
|
|
2912
2982
|
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
|
|
2913
2983
|
*/
|
|
2914
|
-
async fetchAddressVerificationList() {
|
|
2915
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(
|
|
2916
|
-
|
|
2917
|
-
this.configuration,
|
|
2918
|
-
localVarAxiosArgs.endpoint,
|
|
2919
|
-
localVarAxiosArgs.method,
|
|
2920
|
-
localVarAxiosArgs.params,
|
|
2921
|
-
localVarAxiosArgs?.timeUnit,
|
|
2922
|
-
{ isSigned: true }
|
|
2984
|
+
async fetchAddressVerificationList(requestParameters = {}) {
|
|
2985
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList(
|
|
2986
|
+
requestParameters?.recvWindow
|
|
2923
2987
|
);
|
|
2924
|
-
}
|
|
2925
|
-
/**
|
|
2926
|
-
* Fetch the onboarded VASP list for local entities that required travel rule.
|
|
2927
|
-
*
|
|
2928
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2929
|
-
*
|
|
2930
|
-
* Weight: 18000
|
|
2931
|
-
* Request limit: 10 requests per second
|
|
2932
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
2933
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
2934
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2935
|
-
*
|
|
2936
|
-
* @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2937
|
-
* @returns {Promise<RestApiResponse<OnboardedVaspListResponse>>}
|
|
2938
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2939
|
-
* @memberof TravelRuleApi
|
|
2940
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Onboarded-VASP-list Binance API Documentation}
|
|
2941
|
-
*/
|
|
2942
|
-
async onboardedVaspList() {
|
|
2943
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.onboardedVaspList();
|
|
2944
2988
|
return sendRequest5(
|
|
2945
2989
|
this.configuration,
|
|
2946
2990
|
localVarAxiosArgs.endpoint,
|
|
@@ -3020,6 +3064,37 @@ var TravelRuleApi = class {
|
|
|
3020
3064
|
{ isSigned: true }
|
|
3021
3065
|
);
|
|
3022
3066
|
}
|
|
3067
|
+
/**
|
|
3068
|
+
* Fetch the VASP list for local entities.
|
|
3069
|
+
*
|
|
3070
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3071
|
+
*
|
|
3072
|
+
* Weight: 18000
|
|
3073
|
+
* Request limit: 10 requests per second
|
|
3074
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3075
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
3076
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3077
|
+
*
|
|
3078
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3079
|
+
* @param {VaspListRequest} requestParameters Request parameters.
|
|
3080
|
+
* @returns {Promise<RestApiResponse<VaspListResponse>>}
|
|
3081
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3082
|
+
* @memberof TravelRuleApi
|
|
3083
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
|
|
3084
|
+
*/
|
|
3085
|
+
async vaspList(requestParameters = {}) {
|
|
3086
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.vaspList(
|
|
3087
|
+
requestParameters?.recvWindow
|
|
3088
|
+
);
|
|
3089
|
+
return sendRequest5(
|
|
3090
|
+
this.configuration,
|
|
3091
|
+
localVarAxiosArgs.endpoint,
|
|
3092
|
+
localVarAxiosArgs.method,
|
|
3093
|
+
localVarAxiosArgs.params,
|
|
3094
|
+
localVarAxiosArgs?.timeUnit,
|
|
3095
|
+
{ isSigned: true }
|
|
3096
|
+
);
|
|
3097
|
+
}
|
|
3023
3098
|
/**
|
|
3024
3099
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3025
3100
|
*
|
|
@@ -3768,6 +3843,26 @@ var RestAPI = class {
|
|
|
3768
3843
|
brokerWithdraw(requestParameters) {
|
|
3769
3844
|
return this.travelRuleApi.brokerWithdraw(requestParameters);
|
|
3770
3845
|
}
|
|
3846
|
+
/**
|
|
3847
|
+
* This API will return user-specific Travel Rule questionnaire requirement information in reference to the current API key.
|
|
3848
|
+
*
|
|
3849
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3850
|
+
*
|
|
3851
|
+
* Weight: 18000
|
|
3852
|
+
* Request limit: 10 requests per second
|
|
3853
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3854
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
3855
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3856
|
+
*
|
|
3857
|
+
* @summary Check Questionnaire Requirements (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3858
|
+
* @param {CheckQuestionnaireRequirementsRequest} requestParameters Request parameters.
|
|
3859
|
+
* @returns {Promise<RestApiResponse<CheckQuestionnaireRequirementsResponse>>}
|
|
3860
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3861
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/questionnaire-requirements Binance API Documentation}
|
|
3862
|
+
*/
|
|
3863
|
+
checkQuestionnaireRequirements(requestParameters = {}) {
|
|
3864
|
+
return this.travelRuleApi.checkQuestionnaireRequirements(requestParameters);
|
|
3865
|
+
}
|
|
3771
3866
|
/**
|
|
3772
3867
|
* Fetch deposit history for local entities that required travel rule.
|
|
3773
3868
|
*
|
|
@@ -3791,31 +3886,13 @@ var RestAPI = class {
|
|
|
3791
3886
|
* Weight: 10
|
|
3792
3887
|
*
|
|
3793
3888
|
* @summary Fetch address verification list (USER_DATA)
|
|
3889
|
+
* @param {FetchAddressVerificationListRequest} requestParameters Request parameters.
|
|
3794
3890
|
* @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
|
|
3795
3891
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3796
3892
|
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
|
|
3797
3893
|
*/
|
|
3798
|
-
fetchAddressVerificationList() {
|
|
3799
|
-
return this.travelRuleApi.fetchAddressVerificationList();
|
|
3800
|
-
}
|
|
3801
|
-
/**
|
|
3802
|
-
* Fetch the onboarded VASP list for local entities that required travel rule.
|
|
3803
|
-
*
|
|
3804
|
-
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3805
|
-
*
|
|
3806
|
-
* Weight: 18000
|
|
3807
|
-
* Request limit: 10 requests per second
|
|
3808
|
-
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3809
|
-
* limit is 180000/second. Response from the endpoint contains header
|
|
3810
|
-
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3811
|
-
*
|
|
3812
|
-
* @summary Onboarded VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3813
|
-
* @returns {Promise<RestApiResponse<OnboardedVaspListResponse>>}
|
|
3814
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3815
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Onboarded-VASP-list Binance API Documentation}
|
|
3816
|
-
*/
|
|
3817
|
-
onboardedVaspList() {
|
|
3818
|
-
return this.travelRuleApi.onboardedVaspList();
|
|
3894
|
+
fetchAddressVerificationList(requestParameters = {}) {
|
|
3895
|
+
return this.travelRuleApi.fetchAddressVerificationList(requestParameters);
|
|
3819
3896
|
}
|
|
3820
3897
|
/**
|
|
3821
3898
|
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
@@ -3855,6 +3932,26 @@ var RestAPI = class {
|
|
|
3855
3932
|
submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
3856
3933
|
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
3857
3934
|
}
|
|
3935
|
+
/**
|
|
3936
|
+
* Fetch the VASP list for local entities.
|
|
3937
|
+
*
|
|
3938
|
+
* This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3939
|
+
*
|
|
3940
|
+
* Weight: 18000
|
|
3941
|
+
* Request limit: 10 requests per second
|
|
3942
|
+
* > * This endpoint specifically uses per second IP rate limit, user's total second level IP rate
|
|
3943
|
+
* limit is 180000/second. Response from the endpoint contains header
|
|
3944
|
+
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3945
|
+
*
|
|
3946
|
+
* @summary VASP list (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3947
|
+
* @param {VaspListRequest} requestParameters Request parameters.
|
|
3948
|
+
* @returns {Promise<RestApiResponse<VaspListResponse>>}
|
|
3949
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3950
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/onboarded-vasp-list Binance API Documentation}
|
|
3951
|
+
*/
|
|
3952
|
+
vaspList(requestParameters = {}) {
|
|
3953
|
+
return this.travelRuleApi.vaspList(requestParameters);
|
|
3954
|
+
}
|
|
3858
3955
|
/**
|
|
3859
3956
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3860
3957
|
*
|