Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use scantxoutset?

See original GitHub issue

There’s a Bitcoin Core PR that proposes to add scantxoutset which returns UTXOs for a given xpub.

This is obviously less powerful than the current watch-only approach, because you’d lose transaction history. Though perhaps Electrum itself can hold on to the history?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

benmacommented, Nov 23, 2018

Thinking about this some more. I think this could be most useful for restoring from old backups without waiting for a rescan.


It’s fine if this command is used to find the utxos and related transactions, and just include those in the history. Some of the tx history would be missing (related to spent coins), but that’s the trade-off with this command, and is acceptable.

Though sending fake/dummy transactions to trick electrum into behaving a certain way sounds hacky. Note that there are multiple wallets using the electrum protocol, which might not share the same behavior. It’s better to fix a sane api/protocol, and patch relevant issues upstream in Electrum.

chris-belchercommented, Sep 29, 2018

The server could also simply lie to the client and say the dummy transactions are unconfirmed. Then the Electrum client won’t ask for merkle proofs. And the users would still get information about amount and address. Electrum already doesn’t show the number of confirmations when a transaction is Not Verified.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use `scantxoutset` - Bitcoin Stack Exchange
You are trying to use a mainnet encoded address on testnet. That is not valid. You need to use a testnet encoded address....
Read more >
scantxoutset -
Scans the unspent transaction output set for entries that match certain output descriptors. Examples of output descriptors are: addr(<address>) Outputs whose ...
Read more >
How to use `scantxoutset` · Issue #99 · ruimarinho/bitcoin-core
I've looked all over the internet and can't find the proper syntax for the life of me! Note: This is also posted on...
Read more >
scantxoutset example for Bitcoin (BTC) |
scantxoutset example for Bitcoin (BTC). Technical documentation on how to connect to blockchain nodes using available methods. Read about crypto nodes on ...
Read more >
Check address balance, get unspent TX, and broadcast thru ...
I'm trying to use the command scantxoutset but without examples it's a bit harder to grasp it's usage. I'm using Bitcoin Core 0.20.1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found