bwt-dev / bwt

A lightweight wallet indexer for Bitcoin, available as an Electrum RPC server and a modern HTTP REST API.
https://bwt.dev
MIT License
275 stars 26 forks source link

Coin selection #3

Open shesek opened 4 years ago

shesek commented 4 years ago

Implement coin selection in bwt, to be able to fund transactions using a specific hd wallet or addresses. This is currently not possible using bitcoind's fundrawtransaction.

yancyribbens commented 4 years ago

I created a coin selection routine in Rust that might be useful: https://github.com/p2pderivatives/rust-bitcoin-coin-selection/pull/1. Its designed to return the same results as the branch and bound selection used by bitcoin-core.