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 ...
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 ...
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 ...
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 ...
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, ...
6
votes
1answer
754 views

Wallet design: What to do with dust amounts in change?

I'm working on some quirks of a wallet I'm developing, and one of the issues is what to do with change amounts that are larger than dust ~600 satoshis, but less than a practical amount to be sent ...
6
votes
1answer
441 views

Spending own generated unconfirmed change in the v.0.9.0 era

Reading about spending own generated unconfirmed change some time ago I stumbled upon this reddit thread that convinced me that doing so is a really bad idea and could prove catastrophic for any ...
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 ...
5
votes
2answers
802 views

Why is the change address for a transaction the same as the originator address?

I was under the impression that if address abc has 100 BTC assigned to it, and it pays address def 20 BTC, 80 BTC will be transferred from abc to a new address ghi. But in this transaction: https://...
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 ...
5
votes
3answers
2k views

Where does the change go in blockchain.info when using a paper wallet?

When using a paper wallet as watch only via block chain.info and you send partial amounts out from it. Where does the change go? I've read you can lose all your coins if the client doesn't handle ...
5
votes
1answer
425 views

How to turn off “change” address in bitcoind?

I would like to keep backup of my wallet on paper, but that's impossible or at least impractical when the bitcoind keeps creating new addresses for "change". I know it is possible in theory to do it ...
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 ...
4
votes
1answer
351 views

When using a paper wallet and doing partial spends via blockchain.info. Where does the change go?

I'm pretty shocked that I found out now about the change thing as I read everywhere about paper wallets being secure, but no where does it state that when you spend partial amounts from your paper ...
4
votes
1answer
656 views

Trying to create a bitcoin public/private key using bitcoin-core

I want to create a single bitcoin address to which I can send and receive funds too. Using the bitcoin-core console, I typed in the following: Input: getnewaddress Output: Address: ...
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 ...
3
votes
1answer
4k views

Sending bitcoins to same address

I am using the BitcoinJ API to create my wallet. When I create a transaction, I provide the change address to which change should be sent. For example: let there be 1 bitcoin at address A; then I ...
3
votes
2answers
1k views

PoS (Proof of Stake) what happens to the coin age of the change after I send an amount?

Ok simple scenario I have 100 'whatever' coins in a PoS wallet, they are mature and have a stake weight that is approaching the weight to stake and forge a block. I send 1 whatever coin to my freind ...
3
votes
3answers
198 views

What can be changed in signed bitcoin transaction?

What can be changed in signed bitcoin transaction? I mean how is possible to modify transaction to change its hash, but keep transaction valid, without need to have sign private keys?
3
votes
1answer
764 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 ...
3
votes
2answers
142 views

Could the creation of bitcoin change create irreversible bitcoin “dust”?

Bitcoin wallets send some change back to you if you have only large chunks of bitcoins in your wallet and try to send a small amount to someone else.Over time, could larger chunks of bitcoins ...
2
votes
2answers
1k views

“always spend all balance of paper wallets” - Then why am I using my paper-wallet for multiple transactions without any problem?

I'am very confused. I just read on the most popular services for paper wallets that "You should always spend all the funds on a paper wallet, not part of it or you will lose the rest" . It links back ...
2
votes
1answer
84 views

Why are change addresses not associated with an account in your wallet?

From what I understand change addresses are automatically generated when you use sendtoaddress but what I don't understand is why these change addresses don't become automatically associated with the ...
2
votes
2answers
99 views

Bitcoin core wallet - got 0 balance after transaction [duplicate]

I did a test lightning transaction by sending 0.00001 btc to some exchange with using bitcoin core 0.16 (downloaded from bitcoin.org and installed to dedicated pc) and... it took the rest balance of ...
2
votes
2answers
1k views

How are change addresses treated differently by Bitcoin Core?

I understand the reasons for wanting to use new change address for each transaction, but am unsure as to how they are treated by the Bitcoin core client. Is the address deleted as soon as the funds ...
2
votes
1answer
317 views

How can I define the change address of a transaction using createrawtransaction?

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?
2
votes
1answer
254 views

I noticed that sending a transaction actually means sending your entire wallet amount to the person and you get change back?

I just noticed that when you send an amount to someone. You actually send them the entire wallet amount and then it gets sent back as change. Is this true and why was it implemented in this way? Also ...
2
votes
1answer
31 views

How to distinguish between change and actual sent amount looking at transaction data

I am building analytics starting from blockchain raw data (blk**.dat files). I have read in the bitcoin wiki that once the inputs have been chosen for a transaction, they must be all used: so a ...
2
votes
1answer
498 views

First bitcoin payment, sent X BTC, but transaction amount on blockchain.info shows as more than 2X?

I sent 0.01047 BTC through coinpayments.net using electrum. First I selected minimum fee option, then I went back and selected one level higher as the fee tier. My electrum wallet and blockexplorer....
2
votes
1answer
2k views

What happens when two transactions send to the same address?

I would like to know the consequences of sending bitcoin several times to the same address. Let us say I send 1 BTC from Address1 to Address3 and later I send 2 BTC from Address2 to Address3 again. ...
2
votes
1answer
68 views

Anonymity of Bitcoin ownership a fakery?

If John needs to send 0.1 BTC to you as payment to your product, and he wants to retain his BTC ownership confidential, and the transaction goes something like this... 1fdfsefesf..... ---> send 0....
2
votes
1answer
320 views

Why am I unable to post two transactions (the second from the change address of the first) in the same block?

I'm attempting to make a transaction on the testnet with an OP_RETURN and a change address in it, and then make a second OP_RETURN transaction from first transaction's change address in the same ...
2
votes
2answers
761 views

Are change addresses visible from the GUI in the Bitcoin-QT client?

I've seen this question pop up on reddit multiple times, and I don't know the answer. However, I do know that in my own wallet, several unlabelled addresses have appeared over time without me ...
2
votes
2answers
733 views

BIP44 and change addresses

I always wondered why BIP44 HD wallet differentiate between internal change addresses (m/44'/0'/0'/1/*) and external receiving (m/44'/0'/0'/0/*)? Why do some wallets advice me not using internal ...
2
votes
1answer
357 views

bip44 address generation

I am writing hd wallet following bip44. After each transaction, should I create a brand new change address each time? Or can I use the same change address multiple times? What is the recommended ...
2
votes
1answer
705 views

Is it possible to specify a default change address?

Is it possible to enable default change address on my bitcoin-qt (aka bitcoin-core) client? I'm using a webservice that monitors my balance (based on public keys) and whenever I send a transaction my ...
2
votes
1answer
3k views

How can I stop Electrum re-using change addresses?

I had three addresses containing BTC in my main Electrum wallet. I then performed more than three sends, to addresses not in my wallet. The first three sends used main wallet addresses to send BTC ...
1
vote
2answers
53 views
1
vote
1answer
47 views

Seemingly random transactions on testnet

I'm testing my bitcoin marketplace site using testnet. Sometimes I'll simulate a payment from a buyer to a seller. In this scenario, my site generates a payment address and the fake buyer is supposed ...
1
vote
1answer
90 views

Why did the remaining money go to another address?

I'll try to be short. I gifted 1 BTC to a friend several months ago. She is a completely non-technical person. She tried to send a small fraction of that 1 BTC to her brother, and either she seriously ...
1
vote
1answer
511 views

Why does coinbase make 2 transfers instead of one

I'm new to bitcoin in general and coinbase.com in particular. Can somebody explain what happens when I order a payment (in bitcoins) from their web interface? Say that my acount owns 1 BTC. I create ...
1
vote
1answer
158 views

How do I prevent the standard Bitcoin client from sending some of my Bitcoins to a change address?

I found somebody that imported a paper wallet with 100BTC then used 2BTC BUT the other 98BTC were sent to a change address. Why and how can I prevent this; how can I enter a custom change address?
1
vote
2answers
59 views

Transaction change calculation

I'm confused about how exactly I should compute a change for transactions. Say, for a given address I have 4 unspent outputs containing 2 BTC each and I want to send 5 BTC to other address. Here's ...
1
vote
1answer
133 views

Why doesn't a change address just point back to the address that sent the transaction? [duplicate]

Why over complicate things with additional private and public keys that are hidden from the user and make it possible for backed up wallets to go out of date? Why can't the change address just be the ...
1
vote
2answers
50 views

Get back my change [closed]

Please help. I was new to thew blockchain and did not know about getting change back. when the address to give me my change showed up on my Ledger nano wallet I hit the x instead of the check mark. I ...
1
vote
2answers
64 views

If btc change is supposed to be distributed to change addresses, can the distributed change be pooled and paid together in 1 new transaction?

Since last time I dabbled in bitcoin using a single address wallet (using fractions of coins gained from captcha faucets), I've learned about new things like change addresses. I understand when you ...
1
vote
1answer
59 views

How can I use a large input if the difference of the outputs and the inputs goes to the fee?

I'm confused by how exactly Bitcoin transaction are calculated. A transaction contains inputs and outputs, and if its inputs exceed its outputs the difference is deemed as the transaction fee. So, ...
1
vote
2answers
1k views

how to configure bitcoin-core (bitcoin-qt) to not use change addresses?

Can bitcoin-core wallet be configured to not use change addresses, but just one address? If yes, how? Thanks (PS: I know most people will try to convince me that this is not a good thing, but I have ...
1
vote
1answer
436 views

Are there an infinity of public addresses for a wallet?

If I understand correctly a private 256-bit integer determines the curvature of an EC curve corresponding to your wallet and that 256-bit integer can be consider the "private key". Now how many "...