Skip to content

android service onchain monitoring watched addresses/outpoints - #10783

Draft
accumulator wants to merge 14 commits into
spesmilo:masterfrom
accumulator:android_chainwatch
Draft

android service onchain monitoring watched addresses/outpoints#10783
accumulator wants to merge 14 commits into
spesmilo:masterfrom
accumulator:android_chainwatch

Conversation

@accumulator

Copy link
Copy Markdown
Member

No description provided.

@accumulator
accumulator force-pushed the android_chainwatch branch 2 times, most recently from 16f1a5a to 45d735e Compare July 31, 2026 10:47
…te which addresses/outpoints to watch

in the background

initial implementation of just pending payment requests

service: Read watched_items.json and query the server for relevant transactions, only notify per
watched item once.
Add _get_lightning_breach_watched_items: for each live (funded, not
closing) channel, emit a WatchedItem on the funding outpoint with depth=0.
Add _get_lightning_forceclose_watched_items: for each channel (including
backups) whose closing tx is on-chain, emit a WatchedItem for our
CSV-timelocked to_local output, keyed on its address with depth=csv_delay.
Add _get_reverse_swap_watched_items: watch the lockup address with depth=1
so the background service notifies the user exactly when the funding confirms
and the swap becomes claimable.
Add _get_forward_swap_watched_items: watch our funding outpoint for a spend and
alert the instant it appears (depth=0), prompting the user to open the
wallet so it can extract the preimage from the server's claim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant