0

The use of sendmany in a PoS coin is an obvious source for preparing stake inputs, however it historically has been prevented to send to duplicate addresses in one transaction with such an error as "Invalid parameter, duplicated address:"

It seems like a reasonable issue in BTC, but are there any good reasons to prevent this?

closed as off-topic by Jannes, Murch Oct 8 at 21:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about cryptocurrencies or projects that are not Bitcoin, and are not applicable to Bitcoin, are off-topic. For more information, see this meta-discussion." – Jannes, Murch
If this question can be reworded to fit the rules in the help center, please edit the question.

1

This is a limitation on the interface used for send many. The address,amount list is a dictionary internally within Bitcoin Core, and cannot have duplicate keys. As many other projects are forks of Bitcoin Core, the limitation applies to them as well.

You can work around this by constructing a transaction manually or with a library that doesn't not use the RPC interface, nothing at the actual protocol level prevents this.

Not the answer you're looking for? Browse other questions tagged or ask your own question.