* Link to guide if exists * Add LNbits guide * Update id to LNbits guide also update guide and add id to ADMIN_ITEMS for perpetual edits * Use button instead of link This fixes following console warning: > Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>. * Fix alignment * Fix wrong mention of super user requirement * Move guideUrl to wallets.json
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
For testing Lightning Node Connect via litd as a sending wallet protocol, you'll need a pairing phrase:
|
|
|
|
This can be done one of two ways:
|
|
|
|
# cli
|
|
|
|
We only need permissions for the uri `/lnrpc.Lightning/SendPaymentSync`
|
|
|
|
```bash
|
|
$ sndev cli litd accounts create --balance <budget>
|
|
```
|
|
|
|
Grab the `account.id` from the output and use it here:
|
|
```bash
|
|
$ sndev cli litd sessions add --type custom --label <your label> --account_id <account_id> --uri /lnrpc.Lightning/SendPaymentSync
|
|
```
|
|
|
|
Grab the `pairing_secret_mnemonic` from the output and that's your pairing phrase.
|
|
|
|
To do all of above in one line with default values:
|
|
|
|
```bash
|
|
$ sndev cli litd sessions add --type custom --label sndev --account_id $(sndev cli litd accounts create --balance 100000 | jq -r '.account.id') --uri /lnrpc.Lightning/SendPaymentSync | jq -r '.session.pairing_secret_mnemonic'
|
|
```
|
|
|
|
# gui
|
|
|
|
To open the gui, run:
|
|
|
|
```bash
|
|
sndev open litd
|
|
```
|
|
|
|
Or navigate to `http://localhost:8443` in your browser.
|
|
|
|
1. If it's not open click on the hamburger menu in the top left.
|
|
2. Click `Lightning Node Connect`
|
|
3. Click on `Create a new session`, give it a label, select `Custom` in perimissions, and click `Submit`.
|
|
4. Select `Custodial Account`, fill in the balance, and click `Submit`.
|
|
5. Copy using the copy icon in the bottom left of the session card.
|
|
|