blockchain / service-my-wallet-v3

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

Not enough funds. Use *maximum* #372

Open antonioaraujob opened 6 years ago

antonioaraujob commented 6 years ago

Service v0.26.1 running on http://127.0.0.1:3000, Node v8.11.4

Dear friends of service-my-wallet-v3, I have been testing the service to send BTC and it works fine. But right now I would like to know how Blockchain.info faces the use case in which a user wants to send his whole balance.

max

Blockchain.info gives the user an option to use the maximum amount according to the selected transaction fee (regular or priority).

max2

I have tested http://localhost:3000/merchant/$guid/payment with _fee_perbytes using priority value from https://api.blockchain.info/mempool/fees successfully.

Could anyone give me any hint about how to get the maximum value available using the API?

Regards

RishabSwift commented 5 years ago

Did you figure this out?