Support for detecting if an address is unused #920
Replies: 2 comments 1 reply
-
a new protocol method should be added to the spec first, or implemented in some implementation specific extension (like |
Beta Was this translation helpful? Give feedback.
-
By "unused" I mean that the address has never received funds. I know that privacy minded wallets won't reuse addresses. The issue here is that I interface with the wallets of my customers, and they're not necessarily privacy minded. I therefore have no control over if my customers reuse addresses or not, but I have a need check if a given customer address has transacted before. |
Beta Was this translation helpful? Give feedback.
-
I need to determine if an address which I don't control is unused or not. These addresses belong to customers of mine, so their potential usage is completely outside of my control. If I query for the history of the script hash of the address, this quickly balloons into very slow calls. If a call is slow to return I can use that as a heuristic that the address is probably used, but it's not definite. I want to avoid using external providers, as the service I run prides itself on having as few 3rd parties as possible. I'm aware that the Blockstream fork of this project might be better suited, but I really like that this version requires so little resources.
Would it be an idea to implement a new protocol method, something along the lines of
blockchain.scripthash.is_unused
? Perhaps it's preposterous to suggest a brand new protocol method - and there's a much easier way of accomplishing this. If so, please LMK!Beta Was this translation helpful? Give feedback.
All reactions