Is your feature request related to a problem? Please describe. See #2366 and #12538. Basically the only way to do this is using bitcoin-tx outputaddr command, but there's no native way using bitcoin-cli (RPC)
Describe the solution you'd like There're are 2 solutions to this approach:
- (non breaking) Add "addoutputaddr" method to bitcoin-cli that accepts {"address":"value"} and does the same as outputaddr command
- (breaking) Using a different syntax for JSON in createrawtransaction that comply with JSON-RPC when sending to duplicate addresses example: [{"address": "bitcoinAddress", "amount": "btcAmount"}, {..}, ..]
Describe alternatives you've considered
- Currently only alternative is using bitcoin-tx, which is not an option is one is communicating with the node using RPC only