Skip to content

Commit

Permalink
Merge pull request #311 from pratik227/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
rolznz authored Feb 17, 2025
2 parents 4b82b7d + 8db3d69 commit 1bd3dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Pass a `name` to the NWC provider describing the application.
```js
const nwc = NostrWebLNProvider.withNewSecret();
try {
await nwc.initNWC({name: 'ACME app' );
await nwc.initNWC({name: 'ACME app'});
} catch(e) {
console.warn("Prompt closed");
}
Expand Down Expand Up @@ -211,7 +211,7 @@ webln.close(); // close the websocket connection
```js
import { NostrWebLNProvider } from '@getalby/sdk';

const webln = new NostrWebLNProvider({ nostrWalletConnectUrl: 'nostr+walletconnect://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

0 comments on commit 1bd3dd1

Please sign in to comment.