Created
January 9, 2025 14:32
-
-
Save bordalix/59a375b7b001af1b0fc789be44d13565 to your computer and use it in GitHub Desktop.
Nigiri Lightning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nigiri stop --delete | |
nigiri start --ln | |
while [ true ] ; do nigiri rpc --generate 1 ; sleep 10 ; done | |
nigiri faucet lnd 0.01 | |
nigiri faucet cln 0.01 | |
nigiri cln connect `nigiri lnd getinfo | jq -r .identity_pubkey`@lnd:9735 | |
nigiri lnd openchannel --node_key=`nigiri cln getinfo | jq -r .id` --local_amt=100000 | |
nigiri cln fundchannel `nigiri lnd getinfo | jq -r .identity_pubkey` 100000 | |
nigiri lnd payinvoice `nigiri cln invoice 10000 $(date +%s) "test" | jq -r .bolt11` | |
nigiri cln pay `nigiri lnd addinvoice 21 | jq -r .payment_request` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment