<p>To include details from your comment: you were trying to send coins from your account at some sort of online marketplace.</p>

<p>Losing coins because of an address typo is generally not supposed to happen; however, preventing it requires that the marketplace has designed their software properly.  The fact that it got as far as it did suggests that they have screwed something up.  Whether the coins are actually lost is something you have to find out from them.</p>

<p>It will help to explain a little about the Bitcoin address mechanism.  A standard Bitcoin address (1xxxxx...)  has encoded within it a 160-bit public key hash, and a 32-bit checksum (actually computed via another hash).  When software wants to send coins to an address, it should normally:</p>

<ol>
<li><p>decode the pubkey hash and checksum</p></li>
<li><p>verify that the pubkey hash and checksum match</p></li>
<li><p>generate a transaction sending out the desired number of coins, listing the pubkey hash as the destination (the checksum is not used after this point)</p></li>
<li><p>post this transaction on the Bitcoin peer-to-peer network</p></li>
<li><p>wait for the transaction to be confirmed.</p></li>
</ol>

<p>In order for the recipient to eventually spend the coins, they have to be in possession of a private key whose corresponding public key has the same 160-bit hash as contained in the address.</p>

<p>Step 2 is where your typo should have been caught (barring extremely bad luck; see case 1 below).  After this point, no more checking is possible: there is no way for anyone to determine whether a given 160-bit string corresponds to a private key, unless they know what the private key is.  I would think any reasonable software design would perform step 2 as soon as you typed in the address, display an error, and refuse to proceed until a corrected address was given.  The fact that this didn't happen is a bad sign; it suggests that the marketplace's software is not well designed.  But we don't know what it actually did do.</p>

<p>So there are a few possibilities for what happened:</p>

<ol>
<li><p>You were extremely unlucky, and your typo'ed address decoded to a hash and checksum that matched each other.  The probability of this happening randomly is about 1 in 4 billion.  You can check whether this is the case by entering your typo'ed address in a block explorer site like <a href="http://blockchain.info">http://blockchain.info</a> and seeing if you don't get an error message.  In this case, the marketplace may have gone through the whole process described above, and sent coins to a hash that doesn't correspond to your private key.  The transaction would be valid and been confirmed, but in this case the coins are now lost and nobody will ever be able to claim them.  If so, the marketplace should be able to give you a transaction ID for the transaction they created; you would be able to independently verify that the transaction exists, was confirmed, and corresponds to your erroneous address.  There isn't anything the marketplace can do to avoid this case (except maybe asking you to type the address twice).</p></li>
<li><p>The marketplace performed step 2 at a later stage of their processing, and discovered the error in your address.  In this case, they never created a Bitcoin transaction; they still have your coins, and should be able to re-credit your account.  Ideally they would do this automatically, but you might have to ask.</p></li>
<li><p>The markeplace decoded a hash from the address you gave, but never performed the step 2 check, and instead created a transaction sending coins to the incorrect hash.  Like in case 1, the coins are now lost, and they can send you a transaction ID which proves it (you can compute for yourself what the incorrect hash is, and verify that the transaction sent coins there).  Unlike case 1, this case would clearly be the marketplace's fault, for not performing the step 2 check which would have caught the error.  The right thing for them to do in this case would be to refund your coins out of their own pocket.  Of course, they may or may not actually choose to do that (especially if they are "shady").  </p></li>
<li><p>The whole thing was a sham; the marketplace made it look like they were sending you coins, but in fact had no intention of actually doing so.    There isn't much you can do in this case except to try to pursue legal action (good luck with that).  </p></li>
</ol>

CC BY-SA 3.0
2015-05-14T22:55:59.050Z
Wow, thank you so much for the detailed explanation, I really appreciate it.  I will try and get a point of contact with the market although it may be difficult due to the nature of the whole thing. I think it's a fair bet that the software they use isn't the best but I have a slim chance of a re debit so I'm pinning my hopes there! Hopefully the fact that I didn't receive a transaction number indicates they still have the Bitcoin but I think I'm being a bit optimistic.
Jon Donley
CC BY-SA 3.0
2015-05-14T22:56:09.807Z
I tried the messed up address I sent the coins to on the Block chain info site (thats where I have my wallet funny enough)  like you said but it said to try later as it had reached maximum requests, at least that will tell me something as well. You are a gentleman Nate, thanks again.
Jon Donley
CC BY-SA 3.0
2015-05-14T23:16:41.980Z
It comes back as an unrecognized search term so I suppose there is a chance they still have them.... getting them to re credit me is another matter tho!
Jon Donley
CC BY-SA 3.0
2015-05-14T20:22:39.773Z
2015-05-14T20:22:39.773Z
Nate Eldredge
<p>I tried to send my Bitcoins to my wallet earlier but have managed to miss the last two digits off the address when copy/pasting. The payment was sent straight away but has obviously not arrived, is there anything I can do? I have a horrible feeling I just lost all of my money to a typo, any help will be gratefully received. </p>

CC BY-SA 3.0
2015-05-14T18:33:42.720Z
What did you use to do the sending?  Bitcoin addresses contain a checksum, so at some level it should be nearly impossible to actually send to an invalid address like that.  The question is how whatever software / service you used to send the coins handled that error.  If you can be as specific as possible about the exact steps you followed when sending, that will help.  Also, on what basis did you determine that "the payment was sent straight away"?
Nate Eldredge
CC BY-SA 3.0
2015-05-14T19:28:41.567Z
I assumed it was sent straight away as the balance changed to zero when I clicked. It was a withdrawal from a TOR Market to my wallet. I'm not sure how to be more specific, I just pasted in the address and clicked withdraw. I will struggle to get any help from the Market (I assume, they seem to be pretty shady on the whole). If an  invalid address is put in the payment shouldn't send though is that correct? I wonder if it is possible to track mine down?
Jon Donley
CC BY-SA 3.0
2015-05-14T20:02:44.383Z
Did they give you a transaction ID (64-character hex string)?
Nate Eldredge
CC BY-SA 3.0
2015-05-14T21:17:18.560Z
No, all it did was confirm the address (the wrong address as it happened) and the time/date of the transaction. Thank you for taking the time to try and help me, it's been a very expensive mistake that I won't be repeating any time soon.
Jon Donley
CC BY-SA 3.0
2015-05-19T22:49:41.297Z
Your problem has nothing to do with Bitcoin and everything to do with the site. There's no way it could have made a Bitcoin payment to a truncated address. The issue is that they debited your account on their system.
David Schwartz
<wallet><lost-bitcoins>
Have I lost all my money to a typo?
Jon Donley
# Have I lost all my money to a typo?

(Asked by: username_0 on 2015-05-14)

I tried to send my Bitcoins to my wallet earlier but have managed to miss the last two digits off the address when copy/pasting. The payment was sent straight away but has obviously not arrived, is there anything I can do? I have a horrible feeling I just lost all of my money to a typo, any help will be gratefully received.

**Tags:** wallet, lost-bitcoins

> **Comments:**
> **username_1**: What did you use to do the sending?  Bitcoin addresses contain a checksum, so at some level it should be nearly impossible to actually send to an invalid address like that.  The question is how whatever software / service you used to send the coins handled that error.  If you can be as specific as possible about the exact steps you followed when sending, that will help.  Also, on what basis did you determine that "the payment was sent straight away"?  
> **username_0**: I assumed it was sent straight away as the balance changed to zero when I clicked. It was a withdrawal from a TOR Market to my wallet. I'm not sure how to be more specific, I just pasted in the address and clicked withdraw. I will struggle to get any help from the Market (I assume, they seem to be pretty shady on the whole). If an  invalid address is put in the payment shouldn't send though is that correct? I wonder if it is possible to track mine down?  
> **username_1**: Did they give you a transaction ID (64-character hex string)?  
> **username_0**: No, all it did was confirm the address (the wrong address as it happened) and the time/date of the transaction. Thank you for taking the time to try and help me, it's been a very expensive mistake that I won't be repeating any time soon.  
> **username_2**: Your problem has nothing to do with Bitcoin and everything to do with the site. There's no way it could have made a Bitcoin payment to a truncated address. The issue is that they debited your account on their system.  

---

## 1 answers

### Answer by username_1 on 2015-05-14. Score: 7

To include details from your comment: you were trying to send coins from your account at some sort of online marketplace.

Losing coins because of an address typo is generally not supposed to happen; however, preventing it requires that the marketplace has designed their software properly. The fact that it got as far as it did suggests that they have screwed something up. Whether the coins are actually lost is something you have to find out from them.

It will help to explain a little about the Bitcoin address mechanism. A standard Bitcoin address (1xxxxx...) has encoded within it a 160-bit public key hash, and a 32-bit checksum (actually computed via another hash). When software wants to send coins to an address, it should normally:

1. decode the pubkey hash and checksum
2. verify that the pubkey hash and checksum match
3. generate a transaction sending out the desired number of coins, listing the pubkey hash as the destination (the checksum is not used after this point)
4. post this transaction on the Bitcoin peer-to-peer network
5. wait for the transaction to be confirmed.

In order for the recipient to eventually spend the coins, they have to be in possession of a private key whose corresponding public key has the same 160-bit hash as contained in the address.

Step 2 is where your typo should have been caught (barring extremely bad luck; see case 1 below). After this point, no more checking is possible: there is no way for anyone to determine whether a given 160-bit string corresponds to a private key, unless they know what the private key is. I would think any reasonable software design would perform step 2 as soon as you typed in the address, display an error, and refuse to proceed until a corrected address was given. The fact that this didn't happen is a bad sign; it suggests that the marketplace's software is not well designed. But we don't know what it actually did do.

So there are a few possibilities for what happened:

1. You were extremely unlucky, and your typo'ed address decoded to a hash and checksum that matched each other. The probability of this happening randomly is about 1 in 4 billion. You can check whether this is the case by entering your typo'ed address in a block explorer site like <http://blockchain.info> and seeing if you don't get an error message. In this case, the marketplace may have gone through the whole process described above, and sent coins to a hash that doesn't correspond to your private key. The transaction would be valid and been confirmed, but in this case the coins are now lost and nobody will ever be able to claim them. If so, the marketplace should be able to give you a transaction ID for the transaction they created; you would be able to independently verify that the transaction exists, was confirmed, and corresponds to your erroneous address. There isn't anything the marketplace can do to avoid this case (except maybe asking you to type the address twice).
2. The marketplace performed step 2 at a later stage of their processing, and discovered the error in your address. In this case, they never created a Bitcoin transaction; they still have your coins, and should be able to re-credit your account. Ideally they would do this automatically, but you might have to ask.
3. The markeplace decoded a hash from the address you gave, but never performed the step 2 check, and instead created a transaction sending coins to the incorrect hash. Like in case 1, the coins are now lost, and they can send you a transaction ID which proves it (you can compute for yourself what the incorrect hash is, and verify that the transaction sent coins there). Unlike case 1, this case would clearly be the marketplace's fault, for not performing the step 2 check which would have caught the error. The right thing for them to do in this case would be to refund your coins out of their own pocket. Of course, they may or may not actually choose to do that (especially if they are "shady").
4. The whole thing was a sham; the marketplace made it look like they were sending you coins, but in fact had no intention of actually doing so. There isn't much you can do in this case except to try to pursue legal action (good luck with that).

> **Comments:**
> **username_0**: Wow, thank you so much for the detailed explanation, I really appreciate it.  I will try and get a point of contact with the market although it may be difficult due to the nature of the whole thing. I think it's a fair bet that the software they use isn't the best but I have a slim chance of a re debit so I'm pinning my hopes there! Hopefully the fact that I didn't receive a transaction number indicates they still have the Bitcoin but I think I'm being a bit optimistic.  
> **username_0**: I tried the messed up address I sent the coins to on the Block chain info site (thats where I have my wallet funny enough)  like you said but it said to try later as it had reached maximum requests, at least that will tell me something as well. You are a gentleman username_1, thanks again.  
> **username_0**: It comes back as an unrecognized search term so I suppose there is a chance they still have them.... getting them to re credit me is another matter tho!  

---

