pass wallet password to electrum config on backend

This commit is contained in:
2026-09-06 21:08:13 +02:00
parent c1e28c7545
commit 8d9054b119
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -218,6 +218,7 @@ export const getElectrumWalletConfig = (): ElectrumWalletConfig => ({
rpcUrl: `http://${env('ELECTRUM_DAEMON_HOST')}:${envInt('ELECTRUM_DAEMON_PORT')}`,
username: env('ELECTRUM_DAEMON_RPC_USER'),
password: env('ELECTRUM_DAEMON_RPC_PASSWORD'),
walletPassword: env('ELECTRUM_WALLET_PASSWORD'),
rpcTimeoutMs: envInt('ELECTRUM_DAEMON_RPC_TIMEOUT_MS')
});
+4
View File
@@ -374,6 +374,10 @@ class EnvironmentVariables {
@Min(1000)
ELECTRUM_DAEMON_RPC_TIMEOUT_MS: number;
@IsNotEmpty()
@IsString()
ELECTRUM_WALLET_PASSWORD: string;
@IsNotEmpty()
@IsString()
SIMPLEX_WS_URL: string;
@@ -6,5 +6,6 @@ export interface ElectrumWalletConfig {
rpcUrl: string;
username: string;
password: string;
walletPassword: string;
rpcTimeoutMs: number;
}