2

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?

3

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.

| improve this answer | |
  • 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 '18 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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