There was an error while loading. Please reload this page.
1 parent e24e195 commit 1a70397Copy full SHA for 1a70397
1 file changed
examples/nwc/client/get-info.js examples/nwc/client/get-info.tsexamples/nwc/client/get-info.js renamed to examples/nwc/client/get-info.ts
@@ -3,7 +3,7 @@ import "websocket-polyfill"; // required in node.js
3
import * as readline from "node:readline/promises";
4
import { stdin as input, stdout as output } from "node:process";
5
6
-import { nwc } from "../../../dist/index.module.js";
+import { NWCClient } from "@getalby/sdk/nwc";
7
8
const rl = readline.createInterface({ input, output });
9
@@ -12,7 +12,7 @@ const nwcUrl =
12
(await rl.question("Nostr Wallet Connect URL (nostr+walletconnect://...): "));
13
rl.close();
14
15
-const client = new nwc.NWCClient({
+const client = new NWCClient({
16
nostrWalletConnectUrl: nwcUrl,
17
});
18
const response = await client.getInfo();
0 commit comments