Boltz Pro
Boltz Pro is a service designed to dynamically adjust swap fees based on Boltz's liquidity needs, helping to maintain wallet and Lightning channel balances.
Last updated
Boltz Pro is a service designed to dynamically adjust swap fees based on Boltz's liquidity needs, helping to maintain wallet and Lightning channel balances.
Last updated
Boltz Client is the recommended way to programmatically interact with Boltz Pro to check for fee discounts, identify earn opportunities, and trigger swaps.
To configure Boltz Client to use the Boltz Pro API, simply start the daemon with the --pro
startup flag or set the pro
. Since Boltz Pro discounts and earn opportunities are primarily available for Chain -> Lightning swaps, this guide will focus on that setup.
Boltz Client exposes a powerful , which you can integrate into your own applications. For scripted usage of boltzcli
, use the --json
flag, which is available on most commands.
The current fee rates can be retrieved using the endpoint or with the boltzcli getpairs
command.
Here is an example for querying the current service fee for a Bitcoin -> Lightning swap using boltzcli
and jq
for processing the JSON output:
Set the amount
field to automatically generate a new invoice
Example: boltzcli createswap 100000 btc
(100k sats)
Provide an existing invoice via --invoice
or the invoice
field
Example: boltzcli createswap --invoice lnbc1... btc
You can fund swaps in two ways:
Using Boltz Client's internal wallets
Using an external wallet
This choice is controlled by:
CLI: --from-wallet <wallet-name>
(internal) or --external-pay
(external). If neither is specified, the first internal wallet with the correct currency will be used for funding.
API: send_from_internal
parameter in