Questions tagged [change]

Splitting a transaction and sending some of the coins back to the sender. Necessary for some currencies due to the design of the protocol.

Filter by
Sorted by
Tagged with
47
votes
3answers
9k views

How does change work in a bitcoin transaction?

It seems that when you send a bitcoin transaction, all the coins in the sending address are spent in that transaction, divided into the amount that you intended to send, and "change", which goes back ...
28
votes
2answers
21k views

Why are there two transaction outputs when sending to one address?

I did a small transaction some days ago: https://www.blockchain.com/btc/tx/4c07a07dfd9d5b79d168ec6835df876c64e82350a8f9211bf586d858a5aeb9ba Some info: 1JFWE8THcAQQRYx99c43DXSGyoPL9Zs62D is my ...
13
votes
2answers
16k views

How to get all addresses - including the “change” addresses - from bitcoind?

I want to get all my addresses - including the auto-generated "change" addresses - from a running bitcoind somehow. I haven't been able to do it in a simple way. "getaddressesbyaccount" and all the ...
13
votes
4answers
3k views

Can a Bitcoin transaction have the same address for input and output?

Can a Bitcoin transaction have the same address for input and output, i.e. spend some of the coins that are linked to an address and send the rest back to that same address? Is there some reason why ...
19
votes
1answer
4k views

How does blockchain.info calculate the “Estimated Transaction Value?”

Consider the following transaction: https://blockchain.info/tx/aa5eb27652bd85dc444ea2508bf0ff6ff1b484141e2d7e69f31976fafb21e06e Each of the output addresses has never before been used, and there is ...
3
votes
1answer
1k views

Why does Bitcoin use separate change addresses?

When you create a wallet, it creates one bitcoin address, correct? When I send funds, it sends all my funds; the person I sent it to gets what I sent, and the change from the transaction is sent to a ...
4
votes
2answers
594 views

Does the satoshi client always send the change of a transaction to a newely generated address?

Experimentally, this seems to be the case, but is it always like this or depends on some details? Also, does it generate a new address each time this is done, or first searches the wallet if there is ...
5
votes
1answer
12k views

What does change address mean inside Electrum wallet?

I am bit confused with the change label that is inside Electrum Wallet . Can I receive bitcoin if i give this address which are under change label? What is the difference between Receiving and Change ...
11
votes
4answers
2k views

If bitcoin is indivisible, where does change come from?

Let's say I want to give Alice .22 BTC. I currently have in my wallet 1 BTC. Because Bitcoin is indivisible, I have to spend the 1 BTC I have as input, and .78 BTC will be returned to me as change, ...
5
votes
3answers
5k views

How to find the change / sender address given a txid?

Suppose I'm making a service like SatoshiDice and when I receive a transaction I want to give some money back. Where can I find the sender address? If I run this, e.g.: bitcoin-cli gettransaction ...
3
votes
1answer
759 views

Using bitcore to create a transaction with two addresses and change address

I'm playing around with bitcore transactions and multi-sig transactions and was wondering how to send a transaction to more than one address, and keep the change. Currently when I try to send the ...
1
vote
1answer
296 views

Do all UTXO get moved to the newest change address?

There is one thing I do not understand about unspent outputs and change addresses. For example, let's say a person has 5BTC in a wallet, and they have 2 unspent outputs of 3BTC and 2BTC. They one ...
1
vote
1answer
1k views

Increase transaction fee with Bitcoin Core client fails because of no change output. Why?

Context I created a transaction (using the full balance of an output) with the Bitcoin Core Wallet (running as full node). The transaction got into the mempool of major nodes, as expected. I set the ...
0
votes
2answers
292 views

Determine which transaction output is a change address and which is not [duplicate]

Is there a way to determine which transaction output is a likely a change address and which is not? Looking at this transaction, there are two outputs - a change address and the output address. ...