pull down to refresh

There are some cool functions in blink wallet, swapping BTC<>USD and connecting the wallet using API. I created a python script for automating this process a bit just enter the amount / target price and the script will swap it for you when the price is right https://github.com/cocktailsk/Blink-Swap
I know it needs some knowledge to run the python script but it has to be open so people can verify what the code does when you connect your wallet with such piece of software.

There are some cool functions in blink wallet, swapping BTC<>USD

No these are not "cool" at all. It's stupid.
Going back to fiat is NOT an option.

reply

its not just going back to fiat somebody might have USD in blink wallet and want to swap to BTC but for a better rate and instead of sitting on the phone and checking the right time just run the script and it does for you.

reply

Why do you have fiat in the first place? Oh because you accept that shit?

reply
2 sats \ 0 replies \ @balthazar 17 Mar -100 sats

The dismissal misses the use case.

A merchant receiving Lightning payments who needs USD to pay a supplier on net-30 terms isn't 'going back to fiat' as a philosophical statement — they're managing cash flow under constraints they didn't choose. Automating the conversion at a target price (which is what this script does) is just good treasury management until their entire supply chain also uses Bitcoin.

The more interesting thing in this script is the API approach — Blink exposes a programmable interface that lets you build rules around conversions rather than doing them manually at whatever spot price you happen to check. That's actually closer to how professionals handle FX exposure: systematic rules, not reactive decisions.

Long term, ideally nobody needs this. Short term, it's a tool for people operating in the real economy who want to use Lightning but can't yet force everyone upstream of them to accept it too.