- Enter the TXID for a transaction and priv keys for one address 1 in the transaction and another privkey for address 2 (does not need to be a part of TXID) and a number of rounds to repeat.
- Send a transaction A from outputs from the TXID with a normal fee to address 2.
- send another transaction B breaking up the inputs from A into 2890 0.00001 BTC outputs for address 1 as possible with a fee of 0.001
- Create 5 transactions C that spend 552 outputs from B to address 2 with the remainder going to a change output with a fee of 0.001 BTC
- Create transaction D with a fee of 0.000015 spending all of outputs from C excluding change back to address 1.
- repeat for the remaining the next round using the change from A and the output from D
- After all rounds are completed, broadcast all of the transactions at the same time
Why do you want to broadcast the transactions all at the same time?
I can probably do this in java, but please let me know if the roadmap I listed above is correct.