@binance/wallet 1.0.0 → 2.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 +525 -187
- package/dist/index.d.ts +525 -187
- package/dist/index.js +294 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +294 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ var import_common7 = require("@binance/common");
|
|
|
43
43
|
|
|
44
44
|
// package.json
|
|
45
45
|
var name = "@binance/wallet";
|
|
46
|
-
var version = "
|
|
46
|
+
var version = "2.0.0";
|
|
47
47
|
|
|
48
48
|
// src/rest-api/index.ts
|
|
49
49
|
var rest_api_exports = {};
|
|
@@ -2297,6 +2297,92 @@ var OthersApi = class {
|
|
|
2297
2297
|
var import_common5 = require("@binance/common");
|
|
2298
2298
|
var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
2299
2299
|
return {
|
|
2300
|
+
/**
|
|
2301
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
2302
|
+
*
|
|
2303
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
2304
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
2305
|
+
* Questionnaire is different for each local entity, please refer to
|
|
2306
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2307
|
+
*
|
|
2308
|
+
* Weight: 600
|
|
2309
|
+
*
|
|
2310
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
2311
|
+
* @param {string} subAccountId External user ID.
|
|
2312
|
+
* @param {string} address
|
|
2313
|
+
* @param {string} coin
|
|
2314
|
+
* @param {number} amount
|
|
2315
|
+
* @param {string} withdrawOrderId withdrawID defined by the client (i.e. client's internal withdrawID)
|
|
2316
|
+
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2317
|
+
* @param {string} originatorPii JSON format originator Pii, see StandardPii section below
|
|
2318
|
+
* @param {string} signature Must be the last parameter.
|
|
2319
|
+
* @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
|
|
2320
|
+
* @param {string} [network]
|
|
2321
|
+
* @param {string} [addressName] Description of the address. Address book cap is 200, space in name should be encoded into `%20`
|
|
2322
|
+
* @param {boolean} [transactionFeeFlag] When making internal transfer, `true` for returning the fee to the destination account; `false` for returning the fee back to the departure account. Default `false`.
|
|
2323
|
+
* @param {number} [walletType] The wallet type for withdraw,0-spot wallet ,1-funding wallet. Default walletType is the current "selected wallet" under wallet->Fiat and Spot/Funding->Deposit
|
|
2324
|
+
*
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
*/
|
|
2327
|
+
brokerWithdraw: async (subAccountId, address, coin, amount, withdrawOrderId, questionnaire, originatorPii, signature, addressTag, network, addressName, transactionFeeFlag, walletType) => {
|
|
2328
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "subAccountId", subAccountId);
|
|
2329
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "address", address);
|
|
2330
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "coin", coin);
|
|
2331
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "amount", amount);
|
|
2332
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "withdrawOrderId", withdrawOrderId);
|
|
2333
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "questionnaire", questionnaire);
|
|
2334
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "originatorPii", originatorPii);
|
|
2335
|
+
(0, import_common5.assertParamExists)("brokerWithdraw", "signature", signature);
|
|
2336
|
+
const localVarQueryParameter = {};
|
|
2337
|
+
if (subAccountId !== void 0 && subAccountId !== null) {
|
|
2338
|
+
localVarQueryParameter["subAccountId"] = subAccountId;
|
|
2339
|
+
}
|
|
2340
|
+
if (address !== void 0 && address !== null) {
|
|
2341
|
+
localVarQueryParameter["address"] = address;
|
|
2342
|
+
}
|
|
2343
|
+
if (addressTag !== void 0 && addressTag !== null) {
|
|
2344
|
+
localVarQueryParameter["addressTag"] = addressTag;
|
|
2345
|
+
}
|
|
2346
|
+
if (network !== void 0 && network !== null) {
|
|
2347
|
+
localVarQueryParameter["network"] = network;
|
|
2348
|
+
}
|
|
2349
|
+
if (coin !== void 0 && coin !== null) {
|
|
2350
|
+
localVarQueryParameter["coin"] = coin;
|
|
2351
|
+
}
|
|
2352
|
+
if (addressName !== void 0 && addressName !== null) {
|
|
2353
|
+
localVarQueryParameter["addressName"] = addressName;
|
|
2354
|
+
}
|
|
2355
|
+
if (amount !== void 0 && amount !== null) {
|
|
2356
|
+
localVarQueryParameter["amount"] = amount;
|
|
2357
|
+
}
|
|
2358
|
+
if (withdrawOrderId !== void 0 && withdrawOrderId !== null) {
|
|
2359
|
+
localVarQueryParameter["withdrawOrderId"] = withdrawOrderId;
|
|
2360
|
+
}
|
|
2361
|
+
if (transactionFeeFlag !== void 0 && transactionFeeFlag !== null) {
|
|
2362
|
+
localVarQueryParameter["transactionFeeFlag"] = transactionFeeFlag;
|
|
2363
|
+
}
|
|
2364
|
+
if (walletType !== void 0 && walletType !== null) {
|
|
2365
|
+
localVarQueryParameter["walletType"] = walletType;
|
|
2366
|
+
}
|
|
2367
|
+
if (questionnaire !== void 0 && questionnaire !== null) {
|
|
2368
|
+
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2369
|
+
}
|
|
2370
|
+
if (originatorPii !== void 0 && originatorPii !== null) {
|
|
2371
|
+
localVarQueryParameter["originatorPii"] = originatorPii;
|
|
2372
|
+
}
|
|
2373
|
+
if (signature !== void 0 && signature !== null) {
|
|
2374
|
+
localVarQueryParameter["signature"] = signature;
|
|
2375
|
+
}
|
|
2376
|
+
let _timeUnit;
|
|
2377
|
+
if ("timeUnit" in configuration)
|
|
2378
|
+
_timeUnit = configuration.timeUnit;
|
|
2379
|
+
return {
|
|
2380
|
+
endpoint: "/sapi/v1/localentity/broker/withdraw/apply",
|
|
2381
|
+
method: "POST",
|
|
2382
|
+
params: localVarQueryParameter,
|
|
2383
|
+
timeUnit: _timeUnit
|
|
2384
|
+
};
|
|
2385
|
+
},
|
|
2300
2386
|
/**
|
|
2301
2387
|
* Fetch deposit history for local entities that required travel rule.
|
|
2302
2388
|
*
|
|
@@ -2392,6 +2478,77 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2392
2478
|
timeUnit: _timeUnit
|
|
2393
2479
|
};
|
|
2394
2480
|
},
|
|
2481
|
+
/**
|
|
2482
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2483
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2484
|
+
* yet onboarded with GTR.
|
|
2485
|
+
*
|
|
2486
|
+
* Questionnaire is different for each local entity, please refer
|
|
2487
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2488
|
+
*
|
|
2489
|
+
* Weight: 600
|
|
2490
|
+
*
|
|
2491
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2492
|
+
* @param {string} subAccountId External user ID.
|
|
2493
|
+
* @param {string} depositId Wallet deposit ID.
|
|
2494
|
+
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2495
|
+
* @param {string} beneficiaryPii JSON format beneficiary Pii.
|
|
2496
|
+
* @param {string} signature Must be the last parameter.
|
|
2497
|
+
* @param {string} [network]
|
|
2498
|
+
* @param {string} [coin]
|
|
2499
|
+
* @param {number} [amount]
|
|
2500
|
+
* @param {string} [address]
|
|
2501
|
+
* @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
|
|
2502
|
+
*
|
|
2503
|
+
* @throws {RequiredError}
|
|
2504
|
+
*/
|
|
2505
|
+
submitDepositQuestionnaire: async (subAccountId, depositId, questionnaire, beneficiaryPii, signature, network, coin, amount, address, addressTag) => {
|
|
2506
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaire", "subAccountId", subAccountId);
|
|
2507
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaire", "depositId", depositId);
|
|
2508
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaire", "questionnaire", questionnaire);
|
|
2509
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaire", "beneficiaryPii", beneficiaryPii);
|
|
2510
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaire", "signature", signature);
|
|
2511
|
+
const localVarQueryParameter = {};
|
|
2512
|
+
if (subAccountId !== void 0 && subAccountId !== null) {
|
|
2513
|
+
localVarQueryParameter["subAccountId"] = subAccountId;
|
|
2514
|
+
}
|
|
2515
|
+
if (depositId !== void 0 && depositId !== null) {
|
|
2516
|
+
localVarQueryParameter["depositId"] = depositId;
|
|
2517
|
+
}
|
|
2518
|
+
if (questionnaire !== void 0 && questionnaire !== null) {
|
|
2519
|
+
localVarQueryParameter["questionnaire"] = questionnaire;
|
|
2520
|
+
}
|
|
2521
|
+
if (beneficiaryPii !== void 0 && beneficiaryPii !== null) {
|
|
2522
|
+
localVarQueryParameter["beneficiaryPii"] = beneficiaryPii;
|
|
2523
|
+
}
|
|
2524
|
+
if (network !== void 0 && network !== null) {
|
|
2525
|
+
localVarQueryParameter["network"] = network;
|
|
2526
|
+
}
|
|
2527
|
+
if (coin !== void 0 && coin !== null) {
|
|
2528
|
+
localVarQueryParameter["coin"] = coin;
|
|
2529
|
+
}
|
|
2530
|
+
if (amount !== void 0 && amount !== null) {
|
|
2531
|
+
localVarQueryParameter["amount"] = amount;
|
|
2532
|
+
}
|
|
2533
|
+
if (address !== void 0 && address !== null) {
|
|
2534
|
+
localVarQueryParameter["address"] = address;
|
|
2535
|
+
}
|
|
2536
|
+
if (addressTag !== void 0 && addressTag !== null) {
|
|
2537
|
+
localVarQueryParameter["addressTag"] = addressTag;
|
|
2538
|
+
}
|
|
2539
|
+
if (signature !== void 0 && signature !== null) {
|
|
2540
|
+
localVarQueryParameter["signature"] = signature;
|
|
2541
|
+
}
|
|
2542
|
+
let _timeUnit;
|
|
2543
|
+
if ("timeUnit" in configuration)
|
|
2544
|
+
_timeUnit = configuration.timeUnit;
|
|
2545
|
+
return {
|
|
2546
|
+
endpoint: "/sapi/v1/localentity/broker/deposit/provide-info",
|
|
2547
|
+
method: "PUT",
|
|
2548
|
+
params: localVarQueryParameter,
|
|
2549
|
+
timeUnit: _timeUnit
|
|
2550
|
+
};
|
|
2551
|
+
},
|
|
2395
2552
|
/**
|
|
2396
2553
|
* Submit questionnaire for local entities that require travel rule.
|
|
2397
2554
|
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
@@ -2403,14 +2560,18 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2403
2560
|
* Weight: 600
|
|
2404
2561
|
*
|
|
2405
2562
|
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2406
|
-
* @param {number} tranId Wallet tran
|
|
2563
|
+
* @param {number} tranId Wallet tran ID
|
|
2407
2564
|
* @param {string} questionnaire JSON format questionnaire answers.
|
|
2408
2565
|
*
|
|
2409
2566
|
* @throws {RequiredError}
|
|
2410
2567
|
*/
|
|
2411
|
-
|
|
2412
|
-
(0, import_common5.assertParamExists)("
|
|
2413
|
-
(0, import_common5.assertParamExists)(
|
|
2568
|
+
submitDepositQuestionnaireTravelRule: async (tranId, questionnaire) => {
|
|
2569
|
+
(0, import_common5.assertParamExists)("submitDepositQuestionnaireTravelRule", "tranId", tranId);
|
|
2570
|
+
(0, import_common5.assertParamExists)(
|
|
2571
|
+
"submitDepositQuestionnaireTravelRule",
|
|
2572
|
+
"questionnaire",
|
|
2573
|
+
questionnaire
|
|
2574
|
+
);
|
|
2414
2575
|
const localVarQueryParameter = {};
|
|
2415
2576
|
if (tranId !== void 0 && tranId !== null) {
|
|
2416
2577
|
localVarQueryParameter["tranId"] = tranId;
|
|
@@ -2522,7 +2683,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
|
|
|
2522
2683
|
* limit is 180000/second. Response from the endpoint contains header
|
|
2523
2684
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2524
2685
|
*
|
|
2525
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2686
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2526
2687
|
* @param {string} [trId] Comma(,) separated list of travel rule record Ids.
|
|
2527
2688
|
* @param {string} [txId]
|
|
2528
2689
|
* @param {string} [withdrawOrderId]
|
|
@@ -2663,6 +2824,48 @@ var TravelRuleApi = class {
|
|
|
2663
2824
|
this.configuration = configuration;
|
|
2664
2825
|
this.localVarAxiosParamCreator = TravelRuleApiAxiosParamCreator(configuration);
|
|
2665
2826
|
}
|
|
2827
|
+
/**
|
|
2828
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
2829
|
+
*
|
|
2830
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
2831
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
2832
|
+
* Questionnaire is different for each local entity, please refer to
|
|
2833
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2834
|
+
*
|
|
2835
|
+
* Weight: 600
|
|
2836
|
+
*
|
|
2837
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
2838
|
+
* @param {BrokerWithdrawRequest} requestParameters Request parameters.
|
|
2839
|
+
* @returns {Promise<RestApiResponse<BrokerWithdrawResponse>>}
|
|
2840
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2841
|
+
* @memberof TravelRuleApi
|
|
2842
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Broker-Withdraw Binance API Documentation}
|
|
2843
|
+
*/
|
|
2844
|
+
async brokerWithdraw(requestParameters) {
|
|
2845
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.brokerWithdraw(
|
|
2846
|
+
requestParameters?.subAccountId,
|
|
2847
|
+
requestParameters?.address,
|
|
2848
|
+
requestParameters?.coin,
|
|
2849
|
+
requestParameters?.amount,
|
|
2850
|
+
requestParameters?.withdrawOrderId,
|
|
2851
|
+
requestParameters?.questionnaire,
|
|
2852
|
+
requestParameters?.originatorPii,
|
|
2853
|
+
requestParameters?.signature,
|
|
2854
|
+
requestParameters?.addressTag,
|
|
2855
|
+
requestParameters?.network,
|
|
2856
|
+
requestParameters?.addressName,
|
|
2857
|
+
requestParameters?.transactionFeeFlag,
|
|
2858
|
+
requestParameters?.walletType
|
|
2859
|
+
);
|
|
2860
|
+
return (0, import_common5.sendRequest)(
|
|
2861
|
+
this.configuration,
|
|
2862
|
+
localVarAxiosArgs.endpoint,
|
|
2863
|
+
localVarAxiosArgs.method,
|
|
2864
|
+
localVarAxiosArgs.params,
|
|
2865
|
+
localVarAxiosArgs?.timeUnit,
|
|
2866
|
+
{ isSigned: true }
|
|
2867
|
+
);
|
|
2868
|
+
}
|
|
2666
2869
|
/**
|
|
2667
2870
|
* Fetch deposit history for local entities that required travel rule.
|
|
2668
2871
|
*
|
|
@@ -2730,8 +2933,8 @@ var TravelRuleApi = class {
|
|
|
2730
2933
|
);
|
|
2731
2934
|
}
|
|
2732
2935
|
/**
|
|
2733
|
-
* Submit questionnaire for local entities that require travel rule.
|
|
2734
|
-
* The questionnaire is only applies to transactions from
|
|
2936
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
2937
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
2735
2938
|
* yet onboarded with GTR.
|
|
2736
2939
|
*
|
|
2737
2940
|
* Questionnaire is different for each local entity, please refer
|
|
@@ -2748,6 +2951,45 @@ var TravelRuleApi = class {
|
|
|
2748
2951
|
*/
|
|
2749
2952
|
async submitDepositQuestionnaire(requestParameters) {
|
|
2750
2953
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaire(
|
|
2954
|
+
requestParameters?.subAccountId,
|
|
2955
|
+
requestParameters?.depositId,
|
|
2956
|
+
requestParameters?.questionnaire,
|
|
2957
|
+
requestParameters?.beneficiaryPii,
|
|
2958
|
+
requestParameters?.signature,
|
|
2959
|
+
requestParameters?.network,
|
|
2960
|
+
requestParameters?.coin,
|
|
2961
|
+
requestParameters?.amount,
|
|
2962
|
+
requestParameters?.address,
|
|
2963
|
+
requestParameters?.addressTag
|
|
2964
|
+
);
|
|
2965
|
+
return (0, import_common5.sendRequest)(
|
|
2966
|
+
this.configuration,
|
|
2967
|
+
localVarAxiosArgs.endpoint,
|
|
2968
|
+
localVarAxiosArgs.method,
|
|
2969
|
+
localVarAxiosArgs.params,
|
|
2970
|
+
localVarAxiosArgs?.timeUnit,
|
|
2971
|
+
{ isSigned: true }
|
|
2972
|
+
);
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
2976
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
2977
|
+
* yet onboarded with GTR.
|
|
2978
|
+
*
|
|
2979
|
+
* Questionnaire is different for each local entity, please refer
|
|
2980
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
2981
|
+
*
|
|
2982
|
+
* Weight: 600
|
|
2983
|
+
*
|
|
2984
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2985
|
+
* @param {SubmitDepositQuestionnaireTravelRuleRequest} requestParameters Request parameters.
|
|
2986
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireTravelRuleResponse>>}
|
|
2987
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2988
|
+
* @memberof TravelRuleApi
|
|
2989
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info Binance API Documentation}
|
|
2990
|
+
*/
|
|
2991
|
+
async submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
2992
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.submitDepositQuestionnaireTravelRule(
|
|
2751
2993
|
requestParameters?.tranId,
|
|
2752
2994
|
requestParameters?.questionnaire
|
|
2753
2995
|
);
|
|
@@ -2824,12 +3066,12 @@ var TravelRuleApi = class {
|
|
|
2824
3066
|
* limit is 180000/second. Response from the endpoint contains header
|
|
2825
3067
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
2826
3068
|
*
|
|
2827
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3069
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
2828
3070
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|
|
2829
3071
|
* @returns {Promise<RestApiResponse<WithdrawHistoryV2Response>>}
|
|
2830
3072
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2831
3073
|
* @memberof TravelRuleApi
|
|
2832
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History Binance API Documentation}
|
|
3074
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History-V2 Binance API Documentation}
|
|
2833
3075
|
*/
|
|
2834
3076
|
async withdrawHistoryV2(requestParameters = {}) {
|
|
2835
3077
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.withdrawHistoryV2(
|
|
@@ -3476,6 +3718,25 @@ var RestAPI = class {
|
|
|
3476
3718
|
systemStatus() {
|
|
3477
3719
|
return this.othersApi.systemStatus();
|
|
3478
3720
|
}
|
|
3721
|
+
/**
|
|
3722
|
+
* Submit a withdrawal request for brokers of local entities that required travel rule.
|
|
3723
|
+
*
|
|
3724
|
+
* If `network` not send, return with default network of the coin, but if the address could not match default network, the withdraw will be rejected.
|
|
3725
|
+
* You can get `network` in `networkList` of a coin in the response
|
|
3726
|
+
* Questionnaire is different for each local entity, please refer to
|
|
3727
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
3728
|
+
*
|
|
3729
|
+
* Weight: 600
|
|
3730
|
+
*
|
|
3731
|
+
* @summary Broker Withdraw (for brokers of local entities that require travel rule) (USER_DATA)
|
|
3732
|
+
* @param {BrokerWithdrawRequest} requestParameters Request parameters.
|
|
3733
|
+
* @returns {Promise<RestApiResponse<BrokerWithdrawResponse>>}
|
|
3734
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3735
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Broker-Withdraw Binance API Documentation}
|
|
3736
|
+
*/
|
|
3737
|
+
brokerWithdraw(requestParameters) {
|
|
3738
|
+
return this.travelRuleApi.brokerWithdraw(requestParameters);
|
|
3739
|
+
}
|
|
3479
3740
|
/**
|
|
3480
3741
|
* Fetch deposit history for local entities that required travel rule.
|
|
3481
3742
|
*
|
|
@@ -3513,8 +3774,8 @@ var RestAPI = class {
|
|
|
3513
3774
|
return this.travelRuleApi.onboardedVaspList();
|
|
3514
3775
|
}
|
|
3515
3776
|
/**
|
|
3516
|
-
* Submit questionnaire for local entities that require travel rule.
|
|
3517
|
-
* The questionnaire is only applies to transactions from
|
|
3777
|
+
* Submit questionnaire for brokers of local entities that require travel rule.
|
|
3778
|
+
* The questionnaire is only applies to transactions from un-hosted wallets or VASPs that are not
|
|
3518
3779
|
* yet onboarded with GTR.
|
|
3519
3780
|
*
|
|
3520
3781
|
* Questionnaire is different for each local entity, please refer
|
|
@@ -3531,6 +3792,25 @@ var RestAPI = class {
|
|
|
3531
3792
|
submitDepositQuestionnaire(requestParameters) {
|
|
3532
3793
|
return this.travelRuleApi.submitDepositQuestionnaire(requestParameters);
|
|
3533
3794
|
}
|
|
3795
|
+
/**
|
|
3796
|
+
* Submit questionnaire for local entities that require travel rule.
|
|
3797
|
+
* The questionnaire is only applies to transactions from unhosted wallets or VASPs that are not
|
|
3798
|
+
* yet onboarded with GTR.
|
|
3799
|
+
*
|
|
3800
|
+
* Questionnaire is different for each local entity, please refer
|
|
3801
|
+
* If getting error like `Questionnaire format not valid.` or `Questionnaire must not be blank`,
|
|
3802
|
+
*
|
|
3803
|
+
* Weight: 600
|
|
3804
|
+
*
|
|
3805
|
+
* @summary Submit Deposit Questionnaire (For local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3806
|
+
* @param {SubmitDepositQuestionnaireTravelRuleRequest} requestParameters Request parameters.
|
|
3807
|
+
* @returns {Promise<RestApiResponse<SubmitDepositQuestionnaireTravelRuleResponse>>}
|
|
3808
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3809
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/deposit-provide-info Binance API Documentation}
|
|
3810
|
+
*/
|
|
3811
|
+
submitDepositQuestionnaireTravelRule(requestParameters) {
|
|
3812
|
+
return this.travelRuleApi.submitDepositQuestionnaireTravelRule(requestParameters);
|
|
3813
|
+
}
|
|
3534
3814
|
/**
|
|
3535
3815
|
* Fetch withdraw history for local entities that required travel rule.
|
|
3536
3816
|
*
|
|
@@ -3574,11 +3854,11 @@ var RestAPI = class {
|
|
|
3574
3854
|
* limit is 180000/second. Response from the endpoint contains header
|
|
3575
3855
|
* key X-SAPI-USED-IP-WEIGHT-1S, which defines weight used by the current IP.
|
|
3576
3856
|
*
|
|
3577
|
-
* @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3857
|
+
* @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
|
|
3578
3858
|
* @param {WithdrawHistoryV2Request} requestParameters Request parameters.
|
|
3579
3859
|
* @returns {Promise<RestApiResponse<WithdrawHistoryV2Response>>}
|
|
3580
3860
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3581
|
-
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History Binance API Documentation}
|
|
3861
|
+
* @see {@link https://developers.binance.com/docs/wallet/travel-rule/Withdraw-History-V2 Binance API Documentation}
|
|
3582
3862
|
*/
|
|
3583
3863
|
withdrawHistoryV2(requestParameters = {}) {
|
|
3584
3864
|
return this.travelRuleApi.withdrawHistoryV2(requestParameters);
|