I am creating a wallet app using the
bitcoinj library. I have a use-case where I need to send bitcoins to multiple recipients in one transaction. Currently, I am creating multiple send requests for each address but only first send request is successful and rest of the requests failed and give me following error:
Exception in thread "AWT-EventQueue-0" org.bitcoinj.core.Wallet$DustySendRequested at org.bitcoinj.core.Wallet.completeTx(Wallet.java:3646) at org.bitcoinj.core.Wallet.sendCoinsOffline(Wallet.java:3471) at org.bitcoinj.core.Wallet.sendCoins(Wallet.java:3536) at org.bitcoinj.core.Wallet.sendCoins(Wallet.java:3506)....
Please help me to sort this out. I would be very thankful.