This question is almost the opposite of How to find the change / sender address given a txid?

If I am making a transaction using createrawtransaction how can I define the change (sender) address?

1 Answer 1


In Bitcoin, change is a normal output which sends the remaining money to one of your addresses. When creating a transaction with createrawtransaction, you have to add change output manually (just like any other output), otherwise that money would go to the miners.

  • i came with the same question because im not sure how to define the 2nd output. the example shows the output as a single object, not an array.
    – Sonic Soul
    Sep 1, 2018 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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