New RPC Method: listsentbyaddress #10599

issue NicolasDorier openend this issue on June 15, 2017
  1. NicolasDorier commented at 2:20 pm on June 15, 2017: contributor

    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

    0[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.

  2. fanquake added the label RPC/REST/ZMQ on Jun 15, 2017
  3. MarcoFalke commented at 8:11 pm on November 8, 2019: member
    Why can’t you add a label to the address and query by label?
  4. NicolasDorier commented at 7:55 am on November 9, 2019: contributor
    @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/).
  5. NicolasDorier closed this on Nov 9, 2019

  6. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-04 22:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me