Skip to content

Create extension trait that extends Wallet to return InputCandidates #12

@evanlinjin

Description

@evanlinjin

Rationale

This is a temporary measure so that users of Wallet can more easily start using bdk_tx before the API stabilizes. Additionally, this will make it easier to build FFI bindings with this available.

Requirements

  • Introduce a feature flag wallet_ext (or something similar).
  • The extension trait should have two methods: One for RBF, one for general coin selection.
  • RBF method should take in a set of transactions to replace. If there are descendants of this set (that aren't included in the set), we should return an error. The caller must explicitly opt-in to replacing all transactions.

Helpful Tips

Inspiration can be drawn from examples/common.rs.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions