Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: transaction builder #31

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: transaction builder #31

wants to merge 3 commits into from

Conversation

darioAnongba
Copy link
Contributor

@darioAnongba darioAnongba commented Feb 13, 2025

This PR improves the transaction building mechanism by mimicking the BDK way of having a dynamic builder. The builder adds support for unspendable UTXOs to remove them from the coin selection. It also adds the Txid and Outpoint wrappers.

In order to implement the builder, the wallet needs to be passed by reference in a mutable way. There is no way to directly pass the reference in wasm-bindgen so we use a RefCell and Rc.

@darioAnongba darioAnongba self-assigned this Feb 13, 2025
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