Setting Up Bitcoin Tips for Streamers Video (by Conor Okus)
This project demonstrates how to instantly receive a notification when you receive Bitcoin tips while streaming using Lightning Bolt-12 payment codes.
You do not need to sign up with any 3rd party services to receive tips and can get started even if you do not currently have any Bitcoin. This project uses a phoenixd Lightning server installed on the same machine you are streaming on to receive payments.
You display a Bolt-12 QR code on your stream. When someone watching your stream scans the QR code with a Lightning wallet on their mobile phone, you receive a Bitcoin payment to your computer. When payments are received your stream will briefly show an alert (animated gif), play a sound (mp3) and show the amount of the tip and a note from the sender (if any).
Unzip the bolt12tips-1.0.zip
file to a directory of your choice.
install Python modules
python3 -m pip install --upgrade pip
python3 -m pip install qrcode asyncio esdk-obs-python websockets Pillow
tools -> scripts
Python Settings
tab and select your Python installationScripts
tab, select Add Scripts
and select bolt12tips.py from the directory where you unzipped the bolt12tips-1.0.zip
file.cat
, display: hiddenreceived
, display: hiddenbolt12qrcode
, image: bolt12qrcode.pngbin
directory where you installed phoenixd
phoenixd.bat
lno...
bolt-12 static invoice output by the phoenixd
servertools -> scripts
bolt12tips.py
script.http-password-limited-access
field from the value found in the phoenix.conf
file in the .phoenix
directory created by phoenixd.bolt12-offer
field with the lno...
bolt-12 static invoice output by the phoenixd
server.bolt12tips.py
scriptshow logs
and make sure you see Connected!
and no error messagesDONE! you can now start streaming and receiving Bitcoin tips.
See How to Configure OBS to Run Python Scripts
Install Phoenix Wallet on an Android or iOS phone, or see bolt12.org for a current list of other implementations.
phoenixd
?From the command line you can use the phoenixd-cli --help
to see how you can send your funds to pay for goods from an online merchant or to your mobile Lightning wallet for in-person purchases.
You can ask questions or submit a pull request with your improvements or suggestions at github.com/bolt12tips