citadel

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

lnurl-bolt11 (172B)


      1 #!/usr/bin/env bash
      2 set -e
      3 
      4 curl -sL $(bech32 -d "$1") |
      5 jq -rc .callback |
      6 xargs -I{} printf '%s?amount=%d\n' {} "$(bcalc -n "$2" to msats)" |
      7 xargs curl -sL |
      8 jq -cr .pr