bitcoindevkit / bdk

A modern, lightweight, descriptor-based wallet library written in Rust!
Other
868 stars 311 forks source link

bdk_electrum: use transaction-get verbose param #1700

Open notmandatory opened 1 week ago

notmandatory commented 1 week ago

"In populate_with_txids you state "because of restrictions of the Electrum API, we have to use the script_get_history call to get confirmation status of our transaction". But Electrum supports a verbose parameter to the transaction.get call, which appears to return the number of confirmations of the transaction. See https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html#blockchain-transaction-get"

LagginTimes commented 1 week ago

I ran into a roadblock when looking into and trying to implement this: https://github.com/Blockstream/electrs/pull/36 Blockstream electrs does not yet support the verbose feature.