why bitcoin daemon limit the duplicate sending address? #12538

issue passionofvc opened this issue on February 26, 2018
  1. passionofvc commented at 11:49 AM on February 26, 2018: none

    I use createrawtransaction to send bitcoin in testnet, and I want to send many ammout to the same address with json rpc, but the bitcoin-cli report me [duplicated address error]. sometime I want to divide input to many output for the same address in order to send for next time eazily.

    bitcoin-cli.exe -testnet -rpcuser=test -rpcpassword=test -rpcport=19888

    createrawtransaction "[{\"txid\":\"7a23f88b7e4d2eb9bb4a14192f9c2c44e4f573b6d8fcf772294c236c7e52f188\",\"vout\":1}]" "{\"QTbqygYQKvgCtMA8rWLARN6jpE6Ha2YYsW\":0.10000000,\"QTbqygYQKvgCtMA8rWLARN6jpE6Ha2YYsW\":0.10000000,\"Qg7DfM87ovAVfJdt4CbmjHzeLfSAetrWRx\":0.24805273}"
    error code: -8
    error message:
    Invalid parameter, duplicated address: QTbqygYQKvgCtMA8rWLARN6jpE6Ha2YYsW
    
    
  2. jonasschnelli commented at 1:24 PM on February 26, 2018: contributor

    It's currently not supported. Also, in JSON, re-using keys in an Object seems not to make sense.

    Maybe try to use bitcoin-tx?

  3. jonasschnelli added the label RPC/REST/ZMQ on Feb 26, 2018
  4. promag commented at 1:29 PM on February 26, 2018: member

    FYI #12419.

    I want to divide input to many output for the same address in order to send for next time eazily

    What do you mean?

  5. passionofvc commented at 2:17 PM on February 26, 2018: none

    hi @promag

    for example [1], send 100BTC to A below 1 send 20BTC -->A 2 send 20BTC -->A 3 send 20BTC -->A 4 send 20BTC -->A 5 send 20BTC -->A next when send 10BTC use output of A to C, I just use 5th output, and other output can use in another send.

    for example [2], send 100BTC to A below 1 send 100BTC->A

    next when send 10BTC use output of A to C, I can use 1th output, but the remain 90BTC can not use until send from A to C tx is finished.

  6. promag commented at 2:30 PM on February 26, 2018: member

    But what is the problem of using different addresses? Or why do you want to use the same address over and over?

  7. passionofvc commented at 2:47 PM on February 26, 2018: none

    hi @promag the A address is my customer address,I can not create new address every time, when send bitcoin to my customer A, because the customer address can not change.

  8. kristapsk commented at 2:24 PM on March 2, 2018: contributor

    I can use 1th output, but the remain 90BTC can not use until send from A to C tx is finished.

    That's not true. You can use outputs from unconfirmed transactions as inputs for new transactions. And then first and second transactions will be confirmed together or the second one will be confirmed at some point after the first, depending on the fees.

  9. MarcoFalke commented at 5:13 PM on March 2, 2018: member

    Usually the issue tracker is used to track technical issues related to the Bitcoin Core code base. Keep in mind that general bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange.

  10. MarcoFalke closed this on Mar 2, 2018

  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me