SatoshiPortal / boltz-rust

Boltz client rust crate
https://docs.boltz.exchange
30 stars 16 forks source link

Improve Fetch Utxo for Liquid #11

Open i5hi opened 5 months ago

i5hi commented 5 months ago

The electrum client for liquid does not work as seamlessly as bitcoin.

We are not able to directly use script_list_unspent to get utxos. We are instead using history, getting the last/latest transaction and finding the utxo from its output. This is not optimal. For the cases of swaps, it would work most of the time but this is not the cleanest way of doing it.

Try using either raw electrum calls or make script_list_unspent work properly.