Skip to content

Instantly share code, notes, and snippets.

@bordalix
Created January 9, 2025 14:32
Show Gist options
  • Save bordalix/59a375b7b001af1b0fc789be44d13565 to your computer and use it in GitHub Desktop.
Save bordalix/59a375b7b001af1b0fc789be44d13565 to your computer and use it in GitHub Desktop.
Nigiri Lightning
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