diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index afe3c0f..d1bbc0c 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -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') }); diff --git a/backend/src/config/validate.ts b/backend/src/config/validate.ts index 438d16e..ee06c0c 100644 --- a/backend/src/config/validate.ts +++ b/backend/src/config/validate.ts @@ -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; diff --git a/backend/src/types/ElectrumWalletConfig.ts b/backend/src/types/ElectrumWalletConfig.ts index da80fe4..b901b39 100644 --- a/backend/src/types/ElectrumWalletConfig.ts +++ b/backend/src/types/ElectrumWalletConfig.ts @@ -6,5 +6,6 @@ export interface ElectrumWalletConfig { rpcUrl: string; username: string; password: string; + walletPassword: string; rpcTimeoutMs: number; }