Files
guides/en/bitcoin-connect.md
T
2024-01-08 13:07:19 +01:00

4.2 KiB

Bitcoin Connnect is an easy way to connect lightning wallets to websites on any browser using WebLN. This can be especially useful on mobile browsers that do not allow you to install extensions.

nostr:nevent1qqs9h5lk24vu4ms9s873d8yvmwzs90h37zn68ck0krj886fe89vgdrcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszxthwden5te0wfjkccte9eekummjwsh8xmmrd9skctcpzamhxue69uhkzarvv9ejumn0wd68ytnvv9hxgtcpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtcppemhxue69uhkummn9ekx7mp0qythwumn8ghj7un9d3shjtnwdaehgu3wvfskuep0qywhwumn8ghj7mn0wd68ytnzd96xxmmfdejhytnnda3kjctv9uq3zamnwvaz7tmwdaehgu3wwa5kuef0qyfhwumn8ghj7ur4wfcxcetsv9njuetn9uq3yamnwvaz7tmsw4e8qmr9wpskwtn9wv4drcwx

Bitcoin Connect can connect a number of different types of Lightning wallets, from Nostr Wallet Connect (NWC, NIP-47) to using your own node.

Previously we have covered how to use Nostr Wallet Connect to connect your Mutiny wallet to websites and apps in the [Mutiny Guide], now you can connect your Bitcoin Txoko LNbits wallet to Coracle using Bitcoin Connect for one-tap zaps. Let's try it!

Create a zap wallet

If you are new to Bitcoin Txoko, first create a wallet at bitcointxoko.com.

Since there is a certain degree of trust in the website and that there are no malicious third party scripts reading the connection from storage or memory, it would be wise to configure a separate wallet for use with Bitcoin Connect with its own budget instead of linking your main wallet. Fortunately, this only takes two clicks on LNbits. Simply click on + Add a new wallet in the toolbar, name the wallet and create it. Transfer a small zapping budget into the newly created wallet.

Once you have a wallet ready, find the API docs section and make a note of your admin key. We will need it later to connect this wallet using Bitcoin Connect.

adminkey

Coracle

A number of web apps, especially in the Nostr ecosystem, have already implemented Bitcoin Connect as a wallet connection method, including Habla, Snort/Iris and Zap.stream, and more are sure to follow. However, as far as I am aware, Coracle and nostrudel are the first to allow using Bitcoin Connect with a LNbits wallet.

If you are unfamiliar with it, Coracle is a top Nostr social client supporting a wide range of NIPs and can be installed as a Progressive Web App (PWA). A killer feature is that it also supports Nostr Connect (NIP-46), which allows you to sign in using a server that signs events on your behalf like nsecbunker. This means that, paired with Bitcoin Connect, you can use it without any extensions, for example, on mobile browsers.

Trying Bitcoin Connect

  1. Navigate to coracle.social and sign in with your preferred method.
  2. Go to Settings and find the App Settings section.
  3. Tap on Connect Wallet under Bitcoin Connect.
  4. Choose LNbits as your connection method. Note that you can also use NWC, as we covered in the [Mutiny Guide] or a number of other connection methods.
  5. Enter the admin key you have noted down earlier and https://bitcointxoko.com as the LNbits URL. Connect the wallet.
  6. You should now see your wallet balance. You are now ready to zap!

coracle

💡 You can try the same on nostrudel, if you prefer.

Conclusion

We think the combination of Bitcoin Connect and Nostr Connect overcomes a big user experience hurdle when it comes to using Nostr clients on mobile. Not only are mobile users are no longer dependent on fiddly extensions like Alby, but also allows web clients to compete with native clients which often lag in development and lack certain features.

We hope you found this short guide useful. If you did, try zapping this article with your newly connected wallet!