games_app/backend/dist/services/withdrawalService.d.ts

22 lines
951 B
TypeScript

/**
* On-chain withdrawal service.
* Debits unified USDT ledger (USDT_TRC20, 6 decimals); pays from the chosen
* rail hot wallet (TRC20 or BEP20). Network need not match deposit history —
* liquidity is gated by hot float (USDT + gas), not user inventory.
*/
import { SecurityBlockedError } from './securityService';
export type WithdrawalResult = {
transactionId: string;
status: string;
amount: string;
fee: string;
totalDebited: string;
};
/**
* Submits a withdrawal: locks unified ledger, verifies hot float, pays from rail hot wallet.
* `walletTypeCode` selects the payout rail (USDT_TRC20 or USDT_BEP20).
* `amountRaw` is always in ledger micro-USDT (6 decimals).
*/
export declare function requestWithdrawal(userId: string, walletTypeCode: string, toAddress: string, amountRaw: bigint, totpCode?: string): Promise<WithdrawalResult>;
export { SecurityBlockedError };
//# sourceMappingURL=withdrawalService.d.ts.map