Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix example NWC URL prompt in examples #138

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ webln.close(); // close the websocket connection
```js
import { NostrWebLNProvider } from '@getalby/sdk';

const webln = new NostrWebLNProvider({ nostrWalletConnectUrl: 'nostrwalletconnect://69effe7b49a6dd5cf525bd0905917a5005ffe480b58eeb8e861418cf3ae760d9?relay=wss://nostr.bitcoiner.social&secret=c60320b3ecb6c15557510d1518ef41194e9f9337c82621ddef3f979f668bfebd'); // use defaults
const webln = new NostrWebLNProvider({ nostrWalletConnectUrl: 'nostr+walletconnect://69effe7b49a6dd5cf525bd0905917a5005ffe480b58eeb8e861418cf3ae760d9?relay=wss://nostr.bitcoiner.social&secret=c60320b3ecb6c15557510d1518ef41194e9f9337c82621ddef3f979f668bfebd'); // use defaults
await webln.enable(); // connect to the relay
const response = await webln.sendPayment(invoice);
console.log(response.preimage);
Expand Down
2 changes: 1 addition & 1 deletion examples/nwc/get-balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { webln as providers } from "../../dist/index.module.js";
const rl = readline.createInterface({ input, output });

const nwcUrl = await rl.question(
"Nostr Wallet Connect URL (nostrwalletconnect://...): ",
"Nostr Wallet Connect URL (nostr+walletconnect://...): ",
);
rl.close();

Expand Down
2 changes: 1 addition & 1 deletion examples/nwc/lookup-invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { webln as providers } from "../../dist/index.module.js";
const rl = readline.createInterface({ input, output });

const nwcUrl = await rl.question(
"Nostr Wallet Connect URL (nostrwalletconnect://...): ",
"Nostr Wallet Connect URL (nostr+walletconnect://...): ",
);
rl.close();

Expand Down
2 changes: 1 addition & 1 deletion examples/nwc/make-invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { webln as providers } from "../../dist/index.module.js";
const rl = readline.createInterface({ input, output });

const nwcUrl = await rl.question(
"Nostr Wallet Connect URL (nostrwalletconnect://...): ",
"Nostr Wallet Connect URL (nostr+walletconnect://...): ",
);
rl.close();

Expand Down
2 changes: 1 addition & 1 deletion examples/nwc/send-payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { webln as providers } from "../../dist/index.module.js";
const rl = readline.createInterface({ input, output });

const nwcUrl = await rl.question(
"Nostr Wallet Connect URL (nostrwalletconnect://...): ",
"Nostr Wallet Connect URL (nostr+walletconnect://...): ",
);
const invoice = await rl.question("Lightning invoice: ");
rl.close();
Expand Down