How to use Liquid Bitcoin support?
See original GitHub issueHow to use Liquid Bitcoin support in BTCPay?
Enable it as if it was any other coin by following the official docs
Enabling LBTC also implicitly enables any Liquid assets that have been configured in BTCPay such as Liquid Tether (USDt).
We also prune the Liquid node to ~5GB in order to not break existing installs that wanted to support Liquid on a tightly constrained server( such as the ones from the LunaNode installer)
Wallet Configuration
BTCPay supports Liquid’s confidential transactions. In order to make use of this though, you’ll need to use the “Generate Wallet” feature as there are no other wallets that support our way of deriving blinding keys and would not be able to track incoming funds.
The Generate Wallet feature allows you to generate or provide a mnemonic seed to the store, and it will generate the xpub for the store to use. Furthermore, it allows you to import your keys to the bitcoin/liquid node so that you can spend any incoming funds from the node’s wallet itself via cli commands such as sendtoaddress OR a remote bitcoin node app such as FullyNoded
.
It’s important to check the Is hot wallet
& Import keys to RPC
options. Also note that while BTCPay supports Liquid’s Blech32 segwit confidential addresses, Green wallet still does not. It is recommended to use “Segwit wrapped” p2sh addresses.
Make sure you save the seed key after generating and then clicking Confirm
.
WARNING: EVEN THOUGH YOU HAVE THE SEED. IT IS NOT CURRENTLY POSSIBLE TO RESTORE SO BE CAREFUL WITH YOUR SERVER.
Skipping Confidential transactions.
You may skip the confidential transactions feature and use the traditional xpub input method. Just add -[unblinded]
at the end
xpub6DHf9nVQP6mc5FgKD4E3UuxPubv7Gf19BUMemRR73o5BRiTsgexiDmMsVv3DDeH251UdJFkUYAkneiwg5RKHn8wa3Azpkx2eVHmFLY3ErmF-[p2sh]-[unblinded]
NOTE: If you generated a wallet using the Generate wallet feature, and then added -[unblinded]
afterwards, the keys will not be imported to the node.
Configuring Assets
Liquid assets show up as if they are their own coin in BTCPay and are configured as such. I would recommend just using the same seed/xpub on liquid bitcoin & each liquid asset.
I’d like to add my own Liquid asset
It should be relatively simple. If you don’t know how to code, just contract me at kukks.org 😃
Spending Liquid
- SSH into your server
- switch to root user (
sudo su -
) - go to your btcpayserver-docker directory (
cd btcpayserver-docker
) - use
elements.cli
to do a transaction (elements-cli.sh sendtoaddress xxx
)
Issue Analytics
- State:
- Created 4 years ago
- Comments:27 (9 by maintainers)
Top GitHub Comments
I wanted to keep the altcoins faq generic and then linked to this from the docs
@Kukks where can I found more detailed informations about sending Liquid ?
And basically it would be also amzing if also a sending part available on the BTCPay Server Web GUI.