@binance/mining 3.0.8 → 4.0.1
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 +201 -188
- package/dist/index.d.ts +201 -188
- package/dist/index.js +50 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { buildUserAgent, ConfigurationRestAPI as ConfigurationRestAPI3, MINING_R
|
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
11
|
var name = "@binance/mining";
|
|
12
|
-
var version = "
|
|
12
|
+
var version = "4.0.1";
|
|
13
13
|
|
|
14
14
|
// src/rest-api/index.ts
|
|
15
15
|
var rest_api_exports = {};
|
|
@@ -33,7 +33,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
33
33
|
* @summary Account List(USER_DATA)
|
|
34
34
|
* @param {string} algo Algorithm(sha256) sha256
|
|
35
35
|
* @param {string} userName Mining account test
|
|
36
|
-
* @param {number} [recvWindow]
|
|
36
|
+
* @param {number | bigint} [recvWindow]
|
|
37
37
|
*
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
@@ -104,9 +104,9 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
104
104
|
* Weight: 5
|
|
105
105
|
*
|
|
106
106
|
* @summary Cancel hashrate resale configuration(USER_DATA)
|
|
107
|
-
* @param {number} configId Mining ID 168
|
|
107
|
+
* @param {number | bigint} configId Mining ID 168
|
|
108
108
|
* @param {string} userName Mining account test
|
|
109
|
-
* @param {number} [recvWindow]
|
|
109
|
+
* @param {number | bigint} [recvWindow]
|
|
110
110
|
*
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
@@ -141,11 +141,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
141
141
|
* @param {string} algo Algorithm(sha256) sha256
|
|
142
142
|
* @param {string} userName Mining account test
|
|
143
143
|
* @param {string} [coin] Coin Name
|
|
144
|
-
* @param {number} [startDate] Millisecond timestamp
|
|
145
|
-
* @param {number} [endDate] Millisecond timestamp
|
|
146
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
147
|
-
* @param {number} [pageSize] Min 10,Max 200
|
|
148
|
-
* @param {number} [recvWindow]
|
|
144
|
+
* @param {number | bigint} [startDate] Millisecond timestamp
|
|
145
|
+
* @param {number | bigint} [endDate] Millisecond timestamp
|
|
146
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
147
|
+
* @param {number | bigint} [pageSize] Min 10,Max 200
|
|
148
|
+
* @param {number | bigint} [recvWindow]
|
|
149
149
|
*
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
@@ -195,11 +195,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
195
195
|
* @param {string} algo Algorithm(sha256) sha256
|
|
196
196
|
* @param {string} userName Mining account test
|
|
197
197
|
* @param {string} [coin] Coin Name
|
|
198
|
-
* @param {number} [startDate] Millisecond timestamp
|
|
199
|
-
* @param {number} [endDate] Millisecond timestamp
|
|
200
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
201
|
-
* @param {number} [pageSize] Min 10,Max 200
|
|
202
|
-
* @param {number} [recvWindow]
|
|
198
|
+
* @param {number | bigint} [startDate] Millisecond timestamp
|
|
199
|
+
* @param {number | bigint} [endDate] Millisecond timestamp
|
|
200
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
201
|
+
* @param {number | bigint} [pageSize] Min 10,Max 200
|
|
202
|
+
* @param {number | bigint} [recvWindow]
|
|
203
203
|
*
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
*/
|
|
@@ -246,11 +246,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
246
246
|
* Weight: 5
|
|
247
247
|
*
|
|
248
248
|
* @summary Hashrate Resale Detail(USER_DATA)
|
|
249
|
-
* @param {number} configId Mining ID 168
|
|
249
|
+
* @param {number | bigint} configId Mining ID 168
|
|
250
250
|
* @param {string} userName Mining account test
|
|
251
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
252
|
-
* @param {number} [pageSize] Min 10,Max 200
|
|
253
|
-
* @param {number} [recvWindow]
|
|
251
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
252
|
+
* @param {number | bigint} [pageSize] Min 10,Max 200
|
|
253
|
+
* @param {number | bigint} [recvWindow]
|
|
254
254
|
*
|
|
255
255
|
* @throws {RequiredError}
|
|
256
256
|
*/
|
|
@@ -288,9 +288,9 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
288
288
|
* Weight: 5
|
|
289
289
|
*
|
|
290
290
|
* @summary Hashrate Resale List
|
|
291
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
292
|
-
* @param {number} [pageSize] Min 10,Max 200
|
|
293
|
-
* @param {number} [recvWindow]
|
|
291
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
292
|
+
* @param {number | bigint} [pageSize] Min 10,Max 200
|
|
293
|
+
* @param {number | bigint} [recvWindow]
|
|
294
294
|
*
|
|
295
295
|
* @throws {RequiredError}
|
|
296
296
|
*/
|
|
@@ -322,11 +322,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
322
322
|
* @summary Hashrate Resale Request(USER_DATA)
|
|
323
323
|
* @param {string} userName Mining account test
|
|
324
324
|
* @param {string} algo Algorithm(sha256) sha256
|
|
325
|
-
* @param {number} endDate Resale End Time (Millisecond timestamp) 1617659086000
|
|
326
|
-
* @param {number} startDate Resale Start Time(Millisecond timestamp) 1607659086000
|
|
325
|
+
* @param {number | bigint} endDate Resale End Time (Millisecond timestamp) 1617659086000
|
|
326
|
+
* @param {number | bigint} startDate Resale Start Time(Millisecond timestamp) 1607659086000
|
|
327
327
|
* @param {string} toPoolUser Mining Account S19pro
|
|
328
|
-
* @param {number} hashRate Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000) 100000000
|
|
329
|
-
* @param {number} [recvWindow]
|
|
328
|
+
* @param {number | bigint} hashRate Resale hashrate h/s must be transferred (BTC is greater than 500000000000 ETH is greater than 500000) 100000000
|
|
329
|
+
* @param {number | bigint} [recvWindow]
|
|
330
330
|
*
|
|
331
331
|
* @throws {RequiredError}
|
|
332
332
|
*/
|
|
@@ -375,11 +375,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
375
375
|
*
|
|
376
376
|
* @summary Mining Account Earning(USER_DATA)
|
|
377
377
|
* @param {string} algo Algorithm(sha256) sha256
|
|
378
|
-
* @param {number} [startDate] Millisecond timestamp
|
|
379
|
-
* @param {number} [endDate] Millisecond timestamp
|
|
380
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
381
|
-
* @param {number} [pageSize] Min 10,Max 200
|
|
382
|
-
* @param {number} [recvWindow]
|
|
378
|
+
* @param {number | bigint} [startDate] Millisecond timestamp
|
|
379
|
+
* @param {number | bigint} [endDate] Millisecond timestamp
|
|
380
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
381
|
+
* @param {number | bigint} [pageSize] Min 10,Max 200
|
|
382
|
+
* @param {number | bigint} [recvWindow]
|
|
383
383
|
*
|
|
384
384
|
* @throws {RequiredError}
|
|
385
385
|
*/
|
|
@@ -422,7 +422,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
422
422
|
* @param {string} algo Algorithm(sha256) sha256
|
|
423
423
|
* @param {string} userName Mining account test
|
|
424
424
|
* @param {string} workerName Miner’s name(required) bhdc1.16A10404B
|
|
425
|
-
* @param {number} [recvWindow]
|
|
425
|
+
* @param {number | bigint} [recvWindow]
|
|
426
426
|
*
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
*/
|
|
@@ -460,11 +460,11 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
460
460
|
* @summary Request for Miner List(USER_DATA)
|
|
461
461
|
* @param {string} algo Algorithm(sha256) sha256
|
|
462
462
|
* @param {string} userName Mining account test
|
|
463
|
-
* @param {number} [pageIndex] Page number, empty default first page, starting from 1
|
|
464
|
-
* @param {number} [sort] sort sequence(default=0)0 positive sequence,1 negative sequence
|
|
465
|
-
* @param {number} [sortColumn] Sort by( default 1): <br></br>1: miner name, <br></br>2: real-time computing power, <br></br>3: daily average computing power, <br></br>4: real-time rejection rate, <br></br>5: last submission time
|
|
466
|
-
* @param {number} [workerStatus] miners status(default=0),0 all,1 valid,2 invalid,3 failure
|
|
467
|
-
* @param {number} [recvWindow]
|
|
463
|
+
* @param {number | bigint} [pageIndex] Page number, empty default first page, starting from 1
|
|
464
|
+
* @param {number | bigint} [sort] sort sequence(default=0)0 positive sequence,1 negative sequence
|
|
465
|
+
* @param {number | bigint} [sortColumn] Sort by( default 1): <br></br>1: miner name, <br></br>2: real-time computing power, <br></br>3: daily average computing power, <br></br>4: real-time rejection rate, <br></br>5: last submission time
|
|
466
|
+
* @param {number | bigint} [workerStatus] miners status(default=0),0 all,1 valid,2 invalid,3 failure
|
|
467
|
+
* @param {number | bigint} [recvWindow]
|
|
468
468
|
*
|
|
469
469
|
* @throws {RequiredError}
|
|
470
470
|
*/
|
|
@@ -510,7 +510,7 @@ var MiningApiAxiosParamCreator = function(configuration) {
|
|
|
510
510
|
* @summary Statistic List(USER_DATA)
|
|
511
511
|
* @param {string} algo Algorithm(sha256) sha256
|
|
512
512
|
* @param {string} userName Mining account test
|
|
513
|
-
* @param {number} [recvWindow]
|
|
513
|
+
* @param {number | bigint} [recvWindow]
|
|
514
514
|
*
|
|
515
515
|
* @throws {RequiredError}
|
|
516
516
|
*/
|
|
@@ -947,6 +947,7 @@ var RestAPI = class {
|
|
|
947
947
|
*
|
|
948
948
|
* @summary Account List(USER_DATA)
|
|
949
949
|
* @param {AccountListRequest} requestParameters Request parameters.
|
|
950
|
+
*
|
|
950
951
|
* @returns {Promise<RestApiResponse<AccountListResponse>>}
|
|
951
952
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
952
953
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Account-List Binance API Documentation}
|
|
@@ -960,6 +961,7 @@ var RestAPI = class {
|
|
|
960
961
|
* Weight: 1
|
|
961
962
|
*
|
|
962
963
|
* @summary Acquiring Algorithm(MARKET_DATA)
|
|
964
|
+
*
|
|
963
965
|
* @returns {Promise<RestApiResponse<AcquiringAlgorithmResponse>>}
|
|
964
966
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
965
967
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Acquiring-Algorithm Binance API Documentation}
|
|
@@ -973,6 +975,7 @@ var RestAPI = class {
|
|
|
973
975
|
* Weight: 1
|
|
974
976
|
*
|
|
975
977
|
* @summary Acquiring CoinName(MARKET_DATA)
|
|
978
|
+
*
|
|
976
979
|
* @returns {Promise<RestApiResponse<AcquiringCoinnameResponse>>}
|
|
977
980
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
978
981
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Acquiring-CoinName Binance API Documentation}
|
|
@@ -986,6 +989,7 @@ var RestAPI = class {
|
|
|
986
989
|
*
|
|
987
990
|
* @summary Cancel hashrate resale configuration(USER_DATA)
|
|
988
991
|
* @param {CancelHashrateResaleConfigurationRequest} requestParameters Request parameters.
|
|
992
|
+
*
|
|
989
993
|
* @returns {Promise<RestApiResponse<CancelHashrateResaleConfigurationResponse>>}
|
|
990
994
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
991
995
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Cancel-hashrate-resale-configuration Binance API Documentation}
|
|
@@ -1000,6 +1004,7 @@ var RestAPI = class {
|
|
|
1000
1004
|
*
|
|
1001
1005
|
* @summary Earnings List(USER_DATA)
|
|
1002
1006
|
* @param {EarningsListRequest} requestParameters Request parameters.
|
|
1007
|
+
*
|
|
1003
1008
|
* @returns {Promise<RestApiResponse<EarningsListResponse>>}
|
|
1004
1009
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1005
1010
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Earnings-List Binance API Documentation}
|
|
@@ -1014,6 +1019,7 @@ var RestAPI = class {
|
|
|
1014
1019
|
*
|
|
1015
1020
|
* @summary Extra Bonus List(USER_DATA)
|
|
1016
1021
|
* @param {ExtraBonusListRequest} requestParameters Request parameters.
|
|
1022
|
+
*
|
|
1017
1023
|
* @returns {Promise<RestApiResponse<ExtraBonusListResponse>>}
|
|
1018
1024
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1019
1025
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Extra-Bonus-List Binance API Documentation}
|
|
@@ -1028,6 +1034,7 @@ var RestAPI = class {
|
|
|
1028
1034
|
*
|
|
1029
1035
|
* @summary Hashrate Resale Detail(USER_DATA)
|
|
1030
1036
|
* @param {HashrateResaleDetailRequest} requestParameters Request parameters.
|
|
1037
|
+
*
|
|
1031
1038
|
* @returns {Promise<RestApiResponse<HashrateResaleDetailResponse>>}
|
|
1032
1039
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1033
1040
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Detail Binance API Documentation}
|
|
@@ -1042,6 +1049,7 @@ var RestAPI = class {
|
|
|
1042
1049
|
*
|
|
1043
1050
|
* @summary Hashrate Resale List
|
|
1044
1051
|
* @param {HashrateResaleListRequest} requestParameters Request parameters.
|
|
1052
|
+
*
|
|
1045
1053
|
* @returns {Promise<RestApiResponse<HashrateResaleListResponse>>}
|
|
1046
1054
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1047
1055
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-List Binance API Documentation}
|
|
@@ -1056,6 +1064,7 @@ var RestAPI = class {
|
|
|
1056
1064
|
*
|
|
1057
1065
|
* @summary Hashrate Resale Request(USER_DATA)
|
|
1058
1066
|
* @param {HashrateResaleRequestRequest} requestParameters Request parameters.
|
|
1067
|
+
*
|
|
1059
1068
|
* @returns {Promise<RestApiResponse<HashrateResaleRequestResponse>>}
|
|
1060
1069
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1061
1070
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Hashrate-Resale-Request Binance API Documentation}
|
|
@@ -1070,6 +1079,7 @@ var RestAPI = class {
|
|
|
1070
1079
|
*
|
|
1071
1080
|
* @summary Mining Account Earning(USER_DATA)
|
|
1072
1081
|
* @param {MiningAccountEarningRequest} requestParameters Request parameters.
|
|
1082
|
+
*
|
|
1073
1083
|
* @returns {Promise<RestApiResponse<MiningAccountEarningResponse>>}
|
|
1074
1084
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1075
1085
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Mining-Account-Earning Binance API Documentation}
|
|
@@ -1084,6 +1094,7 @@ var RestAPI = class {
|
|
|
1084
1094
|
*
|
|
1085
1095
|
* @summary Request for Detail Miner List(USER_DATA)
|
|
1086
1096
|
* @param {RequestForDetailMinerListRequest} requestParameters Request parameters.
|
|
1097
|
+
*
|
|
1087
1098
|
* @returns {Promise<RestApiResponse<RequestForDetailMinerListResponse>>}
|
|
1088
1099
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1089
1100
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Request-for-Detail-Miner-List Binance API Documentation}
|
|
@@ -1098,6 +1109,7 @@ var RestAPI = class {
|
|
|
1098
1109
|
*
|
|
1099
1110
|
* @summary Request for Miner List(USER_DATA)
|
|
1100
1111
|
* @param {RequestForMinerListRequest} requestParameters Request parameters.
|
|
1112
|
+
*
|
|
1101
1113
|
* @returns {Promise<RestApiResponse<RequestForMinerListResponse>>}
|
|
1102
1114
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1103
1115
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Request-for-Miner-List Binance API Documentation}
|
|
@@ -1112,6 +1124,7 @@ var RestAPI = class {
|
|
|
1112
1124
|
*
|
|
1113
1125
|
* @summary Statistic List(USER_DATA)
|
|
1114
1126
|
* @param {StatisticListRequest} requestParameters Request parameters.
|
|
1127
|
+
*
|
|
1115
1128
|
* @returns {Promise<RestApiResponse<StatisticListResponse>>}
|
|
1116
1129
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1117
1130
|
* @see {@link https://developers.binance.com/docs/mining/rest-api/Statistic-List Binance API Documentation}
|