Add Bitcoin wallet admin withdraw and seed reveal API.

Expose JWT-protected withdraw-all and reveal-seed endpoints with address validation and password verification, matching Monero wallet admin behavior.
This commit is contained in:
2026-09-06 23:28:53 +02:00
parent 3a72d0521a
commit 6c894d58ba
9 changed files with 233 additions and 4 deletions
@@ -0,0 +1,20 @@
import { Transform } from 'class-transformer';
import { IsInt, IsNotEmpty, IsString, Max, Min } from 'class-validator';
import { IsBitcoinAddress } from '../../../validation/decorators/isBitcoinAddress';
export class BitcoinWalletWithdrawDto {
@Transform(({ value }: { value: unknown }) => (typeof value === 'string' ? value.trim() : value))
@IsString()
@IsNotEmpty()
@IsBitcoinAddress()
destinationAddress: string;
@IsInt()
@Min(1)
@Max(100)
feeRateSatVbyte: number;
@IsString()
@IsNotEmpty()
password: string;
}