What is Nostr?
Tony
npub1t0n…jgqv
2023-04-19 03:47:11

Tony on Nostr: If there's one person in the world that understands CLN's APIs, it is ChatGPT. Just ...

If there's one person in the world that understands CLN's APIs, it is ChatGPT. Just created this one liner for me to send a bunch of funds to itself at different fee rates to simulate real activity. Only took a couple tries.

```
while true; do NEW_ADDRESS=$(./lightning-cli --network signet newaddr | jq -r '.bech32'); FEE_RATE="$(( ( RANDOM % 91 ) + 10 ))perkw"; echo "Sending to: $NEW_ADDRESS with fee rate: $FEE_RATE"; TXID=$(./lightning-cli --network signet txprepare "[{\"$NEW_ADDRESS\": 1000sat}]" "$FEE_RATE" | jq -r '.txid'); ./lightning-cli --network signet txsend "$TXID"; sleep 1; done
```
Author Public Key
npub1t0nyg64g5vwprva52wlcmt7fkdr07v5dr7s35raq9g0xgc0k4xcsedjgqv