Deleted Account 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
```
Published at
2023-04-19 03:47:11Event JSON
{
"id": "284dbba91056647dca52dfe06664916157cf999a7cbf9b6b867435dd139ea572",
"pubkey": "5be6446aa8a31c11b3b453bf8dafc9b346ff328d1fa11a0fa02a1e6461f6a9b1",
"created_at": 1681876031,
"kind": 1,
"tags": [],
"content": "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.\n\n```\nwhile 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\n```",
"sig": "ed2c2bceec1fd9b28a8aa78fc83be706660e503dd385f0595a4c321ab66cee511537a2c9f973522d98f0e6cc09e5299b294b5555758fbeb14327eaaefe397a40"
}