blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
915 stars 520 forks source link

Need to send BTC to address from total balance of all created HD wallets #288

Open PriyanshDwivedi opened 7 years ago

PriyanshDwivedi commented 7 years ago

Service v0.26.0, Node v6.10.3

Hi,

I have multiple HD accounts, each for my every customer and I generate a single address for each wallet (to make sure gap_limit is never reached). I read that these addresses never get expired, so I am not generating a new one if the previous one receives BTC. I hope this will be fine. All wallet balances are there on my own server where I manage the transactions.

The issue is, I need to send BTC to address using Make Payment API from the total BTC balance of all HD wallets of my Blockchain Account. If I specify from=0, I am able to send BTC of the amount less than or equal to the BTC in the default wallet (on index=0), but not more than that! if I skip from=0 from the API call, it returns an error.

Is there anyway to send BTC from all HD wallets combined? I don't care which one is used, but the transaction should be successful.

Looking for urgent help. Thanks.

jtormey commented 7 years ago

Hey! Right now there's no good way to do that. It's generally considered a privacy risk to mix funds from different HD accounts in a single transaction. However, sometimes it does make sense to do that. I'll look into adding a consolidation feature.

PriyanshDwivedi commented 7 years ago

Hi @jtormey, thanks for your response and looking forward to this feature. :)

caiovidaln commented 5 years ago

Hello @jtormey, any news about an implementation of this functionality? I need her right now 🤓