Is it safe to send to my own address from my wallet?

1

I have a wallet.dat which has so many addresses in it. Like 1, 2, 3, 4, ....., 1234324234 addresses. (Each number is address)

I backed up original wallet.dat, and I want to use this light wallet.dat from now on. This light wallet.dat has only 1, 2, 3, .... 100 addresses in it I think. (keypool size was 100)

Both wallet.dat has same address "1", so is it okay to sending all coins to address "1" and use light wallet.dat after that?

It may cause sending to address "1" from "1". Is it okay?

Euntai Kim

Posted 2014-05-28T08:03:44.550

Reputation: 21

I cannot find anything of the sort, but I suppose it will return an error when you try to send bitcoin to the same address as where it came from.Mathias711 2014-05-28T08:07:44.830

1

@Mathias711: That is not correct, nothing prevents you from sending Bitcoin to the same address it was stored on before. See Can a Bitcoin transaction have the same address for input and output?

Murch 2014-05-30T07:16:43.683

@Murch Ahh, interesting. I tried googling it, but I didn't find anything. Wrong keywords probablyMathias711 2014-05-30T11:11:10.270

Answers

1

Related question was asked at Can a Bitcoin transaction have the same address for input and output?

And the answer is "Yes" and I also tested it. Unspent transactions can be totally sent to its wallet address as well. There is no internal restriction on in and out.

It's already written at Murch's comment but I'm posting answer to accept the question.

Euntai Kim

Posted 2014-05-28T08:03:44.550

Reputation: 21

1

I think you need to understand a lot more about public and private key cryptography first. It sounds like you have no idea what the address actually is or how it's used in Bitcoin.

Yes, the standard client does generate addresses in advance, and these are used by the client when you request the "creation" of a new address. But if you (or rather your client) does not know the private key associated with the address, you will lose your bitcoins forever.

Therefore you need to know both the address that you are sending to and the private key, to be safe.

Can I recommend that you learn about your wallet and how it works by using your bitcoin client in testnet mode first.

T9b

Posted 2014-05-28T08:03:44.550

Reputation: 1 254

I think you totally misunderstood my question. I'm asking that what would happen if I send coins to wallet address which is included in sender addresses. Actually I tested it with alt coin, and it works as expected.Euntai Kim 2014-05-29T04:14:17.053

What you describe is the method by which "change" is given, in the standard client, but you are trying to circumvent this by using the generated addresses directly from wallet.dat - and this is problematic of you do not know what you are doing. My point is not about sending or receiving, it is about being able to spend the coins afterwards. Just be careful - don't jump to conclusions.T9b 2014-05-30T14:33:05.833