@agentlayer.tech/wallet 0.1.103 → 0.1.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ const DEFAULTS = {
8
8
  port: 8081,
9
9
  network: "sepolia",
10
10
  unlockTimeoutSeconds: 0,
11
+ transport: "socket",
11
12
  };
12
13
 
13
14
  // Read this package's version once at module load. Surfaced via /health so the
@@ -272,6 +273,12 @@ export function loadConfig(env = process.env) {
272
273
  const dataDir =
273
274
  String(env.WDK_EVM_DATA_DIR ?? "").trim() ||
274
275
  path.join(openClawHome, "wdk-evm-wallet");
276
+ const transport = String(env.WDK_EVM_TRANSPORT ?? DEFAULTS.transport).trim().toLowerCase() || DEFAULTS.transport;
277
+ if (transport !== "socket" && transport !== "tcp") {
278
+ throw new Error('WDK_EVM_TRANSPORT must be "socket" or "tcp".');
279
+ }
280
+ const socketPath =
281
+ String(env.WDK_EVM_SOCKET_PATH ?? "").trim() || path.join(dataDir, "daemon.sock");
275
282
  const authTokenPath =
276
283
  String(env.WDK_EVM_LOCAL_TOKEN_PATH ?? "").trim() ||
277
284
  path.join(openClawHome, "wdk-evm-wallet", "local-auth-token");
@@ -450,5 +457,7 @@ export function loadConfig(env = process.env) {
450
457
  ),
451
458
  version: PACKAGE_VERSION,
452
459
  networkProfiles,
460
+ transport,
461
+ socketPath,
453
462
  };
454
463
  }