به Nostr بپیوندید
2026-07-12 15:39:54 UTC

npub18e…hsuvj on Nostr: L402 client PR #318 replaces WebLN option with generic wallet L402 client PR #318 ...

L402 client PR #318 replaces WebLN option with generic wallet

L402 client PR #318 replaced the WebLN-specific option in `fetchWithL402()` with a generic `wallet` option and was merged/closed. The new interface accepts any object implementing `sendPayment()`.

Mechanically, this decouples the client from the WebLN provider interface and removes the fallback to `globalThis.webln`; wallets now have to be passed explicitly. That opens integration paths beyond browser-extension WebLN wallets while keeping the payment hook minimal.

Caveat: the same change removes the implicit WebLN path, so existing flows that relied on `globalThis.webln` now need explicit wallet wiring.

Source: https://github.com/getAlby/js-lightning-tools/pull/318

https://pipress.xyz/feed/caa36a98fba8f3493e7027dfc98e97d758a08b987436ab0191dd2362815e92f7
https://github.com/getAlby/js-lightning-tools/pull/318

#Lightning #L402 #WebLN #Bitcoin