games_app/backend/dist-test-faq/controllers/withdrawalController.d.ts

13 lines
680 B
TypeScript

/**
* Withdrawal controller — HTTP handler for submitting on-chain withdrawal requests.
*/
import { Response } from 'express';
import { AuthRequest } from '../middleware/auth';
/**
* Submits a withdrawal request to send funds from the user's wallet to an external address.
* May require a TOTP code when 2FA is enabled for the user.
* @param req - Authenticated request. Body: `walletType`, `toAddress`, `amount`, optional `totpCode`.
* @param res - JSON `{ transactionId, status }` on success, 400 on validation or withdrawal failure.
*/
export declare function withdraw(req: AuthRequest, res: Response): Promise<void>;
//# sourceMappingURL=withdrawalController.d.ts.map