citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

lnlink (222B)


      1 #!/usr/bin/env bash
      2 nodehost=$(lightning-cli getinfo | jq -r '. as $r | .address[0] | "\($r.id)@\(.address):\(.port)"')
      3 token=$(lightning-cli commando-rune "$@" | jq -r '.rune | @uri')
      4 echo "lnlink:$nodehost?token=$token"