Skip to content

Add APIs to return WalletEvents when applying mempool transactions (or make wallet_events helper pub) #374

@tnull

Description

@tnull

Describe the bug
In #336 we added the capabilities to return WalletEvents when applying blocks. However, we now stumbled across yet another omission: there currently is no API that returns WalletEvents when apply mempool transactions (i.e., for apply_unconfirmed_txs/apply_evicted_txs).

It would be great if these variants could be added, as we now had to resort to copy over the wallet_events helper method and generate the events on our end.

Alternatively, maybe the wallet_events helper could just be made a public utility method, and then all APIs returning events could be dropped again, as they just query tips and wallet transactions before and after and update and handing both to `wallet_events?

Expected behavior
Allow to retrieve WalletEvents for mempool transaction updates.

Which backend(s) are relevant (if any)?

  • Electrum
  • Esplora
  • Bitcoin Core RPC
  • None / not backend-related (e.g. bdk_chain, bdk_core)
  • Other (please specify): ____

Is this blocking production use?

  • Yes
  • No

Project or organization (optional)
LDK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions