The case is, I have several addresses for users to send Bitcoin in, and also I need to send Bitcoin out to many receivers at once regardless of which address(es) it would use.
From the wallet API (
https://blockchain.info/api/blockchain_wallet_api) I see the following api is close to my need:
Send Many Transactionshttps://blockchain.info/merchant/$guid/sendmany?password=$main_password&second_password=$second_password&recipients=$recipients&anonymous=$anonymous&fee=$fee
$main_password Your Main My wallet password
$second_password Your second My Wallet password if double encryption is enabled.
$recipients Is a JSON Object using Bitcoin Addresses as keys and the amounts to send as values (See below).
$from Send from a specific Bitcoin Address$anonymous "true" or "false" indicating whether the transaction should be sent through the a mixer. Fees apply. (Optional)
$fee Transaction fee value in satoshi (Must be greater than default fee) (Optional)
$note A public note to include with the transaction (Optional)
The "from" parameter is an Bitcoin "address", not an "account", or the whole "wallet". In my case, no single address would have sufficient balance to send the payment, but the whole wallet would have.
How should I deal with this case with blockchain.info? When use bitcoind, I know that I could do this by sendmany command.