Author

Topic: Coin stuck in Coinb.in and there is no way of getting it out (Read 119 times)

sr. member
Activity: 1820
Merit: 386
it seems like the problem is in coinb.in website not supporting bech32 addresses. use a legacy address format (base58, ie. an address starting with 1 or 3) and all should be fine!

Pooya - you're a life saver.
Thanks.
legendary
Activity: 3444
Merit: 10537
it seems like the problem is in coinb.in website not supporting bech32 addresses. use a legacy address format (base58, ie. an address starting with 1 or 3) and all should be fine!


...and in case you were interested here is the workaround Tongue
- build the transaction with any other address as its "output"
- find the script corresponding to that address. eg. if you used the same address as your input (3C1cDDt5SHyxMdiphm21Vpz1kgtb5fUwLJ) the script would be
Code:
17-a9-14-71355df1f50c1246e5bd26c2d9559d553277c9d8-87
which is (size) OP_HASH160 OP_EQUAL

- replace that with (size) OP_0
for bc1qmjq5zmnhtvt2j7tk4yxt3g75s6sdmnskw2fjr6 hash will be dc81416e775b16a97976a90cb8a3d486a0ddce16 (https://slowli.github.io/bech32-buffer/) and since the size is 1+1+(160/8) = 22 bytes the final script is:
Code:
16-00-14-dc81416e775b16a97976a90cb8a3d486a0ddce16

ps. try not to do this with large amounts of bitcoin, it is easy to make mistakes.
sr. member
Activity: 1820
Merit: 386
Thanks Pooya, the Redeem Script is:

Code:
04a4d8e85db1752102aa0e1eb0fbebf524c91d5b8498d945122a5e8929884d5da462a031b5861e8e65ac
legendary
Activity: 3444
Merit: 10537
Is it safe to provide you the Redeem Script here so you could test it as well and see for yourself it's not working?

yes, you will be revealing your redeem script as soon as you broadcast your signed transaction so there is no sensitive information in it to be worried about. just make sure what you are sharing is indeed your redeem script!

it should look like the example i posted in your other topic. let me break it down:
Code:
046869df5db175210387cbc334a467fb592bd6e467ea21d34b7226be38841469ef83424d8be2b76e5aac

04 <- it should start with a number like this (smaller than 5)
6869df5d <- since it was 0x04 the following 4 bytes are your locktime. yours can be a different value.
b175 <- this must be the same for you too (OP_CLV and OP_DROP)
2103 <- this is either 2103 or 2102 (length + public key first byte). highly unlikely: it can be 4104
<87cb...6e5a> <- this is definitely different since this is YOUR public key. length = 32 (the highly unlikely case is 64)
ac <- this must be the same.

if your redeem script doesn't follow this pattern then you are pasting the wrong thing here...
sr. member
Activity: 1820
Merit: 386
It's probanly more helpful to give us the output you were trying to spend rather than the redeem script (but I'm not entirely sure how timelovked transactions work, I assume the data is in the last output though).

I click on New --> Transaction. Then I enter the Redeem Script under "Address, WIF key or Redeem Script" and then I enter:

Output:

Address = bc1qmjq5zmnhtvt2j7tk4yxt3g75s6sdmnskw2fjr6
Amount = 0.00049

Input:

Transaction ID = ac37df3cc5d0001a646a33c0d86e50222f8de4dea7d17f8b1a40aeb1e2425544
N = 0
Script = I enter the very same Redeem Script that I used under "Address, WIF key or Redeem Script" in the page.
Amount = 0.0005

I click Submit. Then I get:

One or more input or output is invalid
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
It's probanly more helpful to give us the output you were trying to spend rather than the redeem script (but I'm not entirely sure how timelovked transactions work, I assume the data is in the last output though). The output is the thing already stored in the blockchain.
sr. member
Activity: 1820
Merit: 386
I've tested a feature called Time Lock in Coinb.in - and I cannot release the Bitcoin from there.
I have followed the instructions to lock the Bitcoin.

I received a redeem script from Coinb.in but whenever I go to Coinb.in and then click on New --> Transaction - and then cilck on Load to load the redeem script - the input is not loaded automatically, so I enter it manually and enter the output manually, and when I click on Submit I get this error:

One or more input or output is invalid

Is it safe to provide you the Redeem Script here so you could test it as well and see for yourself it's not working?

Any help would be appreciated.
Jump to: