Skip to content

Unified interface listing all available balances #212

Closed

Description

@tnull

We need to give the user insight into when balances are claimable / delayed outputs will be ready. A short-term solution would be to hand-through ChainMonitor::get_claimable_balances. However, this would require the user to query 2-3 different APIs go get a good overview of what is going on.

We therefore should introduce a unified interface (enum Balance ?) with variants for on-chain (possibly re-using bdk::balance), delayed/claimable (possibly wrapping LDK's Balance) and "spend in-progress" that reflects the state of outputs that are not listed as part of get_claimable_balance anymore but pending sweeping / on-chain confirmation.

Activity

  1. changed the title [-]Expose `get_claimable_balances`[/-] [+]Allow insight into claimable balances[/+] on Dec 1, 2023
  2. changed the title [-]Allow insight into claimable balances[/-] [+]Allow insight into all available balances[/+] on Dec 1, 2023
  3. added this to the 0.3 milestone on Dec 1, 2023
  4. changed the title [-]Allow insight into all available balances[/-] [+]Unified interface exposing all available balances according to their corresponding states[/+] on Dec 1, 2023
  5. changed the title [-]Unified interface exposing all available balances according to their corresponding states[/-] [+]Unified interface listing all available balances[/+] on Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions