Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New RPC Method: listsentbyaddress #10599

Closed
NicolasDorier opened this issue Jun 15, 2017 · 2 comments
Closed

New RPC Method: listsentbyaddress #10599

NicolasDorier opened this issue Jun 15, 2017 · 2 comments

Comments

@NicolasDorier
Copy link
Contributor

NicolasDorier commented Jun 15, 2017

I am posting here, because as I developped TumbleBit, it turned out that Core has been built on the assumption that you should never need to know the "from address" of a transaction.

This is definitively true for Bitcoin Layer 1. However, for Layer 2 protocol, this is not the case. (This is actually similar case as the one discussed on #10007 for the UI layer)

I'd like to know what you think about having a listsentbyaddress in Bitcoin Core, and here is why I would need it.


In TumbleBit there is a chain of transaction

[Escrow] -> [Offer] -> [Fulfill]

Escrow is confirmed. The user is interested into the [Fulfill] transaction, which reveal some important hash preimage. The user knows one scriptPubKey of Offer Transaction, but does not know its transaction ID.
[Fulfill] is spending this scriptPubKey.

If listsentbyaddress existed, then the user would be able to query offer's scriptPubKey, and retrieve [Fulfill].


Without this feature, my only workaround is to cache all wallet transactions in an internal database unrelated to Bitcoin Core, then derive the scriptPubKey from the input of those transactions, and see if it match Offer's scriptPubKey.

@maflcko
Copy link
Member

maflcko commented Nov 8, 2019

Why can't you add a label to the address and query by label?

@NicolasDorier
Copy link
Contributor Author

@MarcoFalke this is an old issue before label existed.
Your solution might work, but I ended up just depending on my own UTXO tracker rather than bitcoin core (https://github.com/dgarage/NBXplorer/).

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants