Skip to content

Latest commit

 

History

History
 
 

tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Boltz tools

This scripts were written and are used with Python 3.10 or higher. Older versions might work too but I wouldn't rely on that.

Unlike the docker/build.py script, these ones have dependencies that have to be installed with Poetry:

poetry install

Streaming Server-Sent Events

Streaming Server-Sent Events is a little tedious to do in the browser and there are hardly any tools available for it. To make this a little more convenient there is the sse.py script that allows for stream Server-Sent Events via the CLI:

poetry run python sse.py <URL of the SSE>

Generating OTP tokens

To generate OTP tokens for the withdraw Discord command without having to setup an app the script otp.py can be used:

poetry run python otp.py <OTP seed>

Calculating the miner fee of transactions

To calculate the miner fee of a transaction miner_fee.py can be used:

poetry run python miner_fee.py <rpcport> <transaction>