@binance/wallet 12.0.2 → 12.1.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 +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +185 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -6110,20 +6110,22 @@ declare class RestAPI {
|
|
|
6110
6110
|
* Generic function to send a request.
|
|
6111
6111
|
* @param endpoint - The API endpoint to call.
|
|
6112
6112
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6113
|
-
* @param
|
|
6113
|
+
* @param queryParams - Query parameters for the request.
|
|
6114
|
+
* @param bodyParams - Body parameters for the request.
|
|
6114
6115
|
*
|
|
6115
6116
|
* @returns A promise resolving to the response data object.
|
|
6116
6117
|
*/
|
|
6117
|
-
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6118
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6118
6119
|
/**
|
|
6119
6120
|
* Generic function to send a signed request.
|
|
6120
6121
|
* @param endpoint - The API endpoint to call.
|
|
6121
6122
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6122
|
-
* @param
|
|
6123
|
+
* @param queryParams - Query parameters for the request.
|
|
6124
|
+
* @param bodyParams - Body parameters for the request.
|
|
6123
6125
|
*
|
|
6124
6126
|
* @returns A promise resolving to the response data object.
|
|
6125
6127
|
*/
|
|
6126
|
-
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6128
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6127
6129
|
/**
|
|
6128
6130
|
* Fetch account api trading status detail.
|
|
6129
6131
|
*
|
|
@@ -6844,5 +6846,5 @@ declare class Wallet {
|
|
|
6844
6846
|
constructor(config: ConfigurationWallet);
|
|
6845
6847
|
}
|
|
6846
6848
|
//#endregion
|
|
6847
|
-
export { BadRequestError, ConfigurationWallet, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, index_d_exports as WalletRestAPI };
|
|
6849
|
+
export { BadRequestError, type ConfigurationWallet, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, index_d_exports as WalletRestAPI };
|
|
6848
6850
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -6110,20 +6110,22 @@ declare class RestAPI {
|
|
|
6110
6110
|
* Generic function to send a request.
|
|
6111
6111
|
* @param endpoint - The API endpoint to call.
|
|
6112
6112
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6113
|
-
* @param
|
|
6113
|
+
* @param queryParams - Query parameters for the request.
|
|
6114
|
+
* @param bodyParams - Body parameters for the request.
|
|
6114
6115
|
*
|
|
6115
6116
|
* @returns A promise resolving to the response data object.
|
|
6116
6117
|
*/
|
|
6117
|
-
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6118
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6118
6119
|
/**
|
|
6119
6120
|
* Generic function to send a signed request.
|
|
6120
6121
|
* @param endpoint - The API endpoint to call.
|
|
6121
6122
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6122
|
-
* @param
|
|
6123
|
+
* @param queryParams - Query parameters for the request.
|
|
6124
|
+
* @param bodyParams - Body parameters for the request.
|
|
6123
6125
|
*
|
|
6124
6126
|
* @returns A promise resolving to the response data object.
|
|
6125
6127
|
*/
|
|
6126
|
-
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6128
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6127
6129
|
/**
|
|
6128
6130
|
* Fetch account api trading status detail.
|
|
6129
6131
|
*
|
|
@@ -6844,5 +6846,5 @@ declare class Wallet {
|
|
|
6844
6846
|
constructor(config: ConfigurationWallet);
|
|
6845
6847
|
}
|
|
6846
6848
|
//#endregion
|
|
6847
|
-
export { BadRequestError, ConfigurationWallet, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, index_d_exports as WalletRestAPI };
|
|
6849
|
+
export { BadRequestError, type ConfigurationWallet, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError, WALLET_REST_API_PROD_URL, Wallet, index_d_exports as WalletRestAPI };
|
|
6848
6850
|
//# sourceMappingURL=index.d.ts.map
|