bwt icon indicating copy to clipboard operation
bwt copied to clipboard

Feature Request: Add tracked accounts at runtime

Open TylerJThomas opened this issue 3 years ago • 2 comments

Would it be possible to add new xpubs/wallets to be tracked during runtime via a POST request?

TylerJThomas avatar Apr 18 '21 03:04 TylerJThomas

Hi Tyler, thanks for the suggestion! This is definitely on the roadmap. I'm currently in the process of doing some major refactoring for the wallet manager and indexer (should hopefully be ready soon-ish), which would make this easier to implement.

One complication is that bwt will have to keep the xpubs/descriptors added at runtime in a persistent store, which it currently doesn't have (its stateless, with all the state is held in Bitcoin Core). But I have a possible solution for this in mind.

shesek avatar Apr 25 '21 09:04 shesek

+1 on this.

I'm currently trying to add BIP47 support in Sparrow to Bitcoin Core connections, which means adding individual addresses to BWT's config rather than descriptors or xpubs. However, restarting the server must now occur much more frequently - for example whenever a new notification transaction is received, or even an unused BIP47-generated address is received to (in order to maintain a gap limit). This is creating a number of problems practically as other requests fail during these BWT restarts. The ability to add new addresses at runtime would help greatly.

craigraw avatar Jun 02 '22 13:06 craigraw