Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: bitbaby on May 31, 2015, 04:27:35 AM



Title: How to create/send a Tx from Brainwallet.org
Post by: bitbaby on May 31, 2015, 04:27:35 AM
I am just testing it but I have no idea how to do this, is there ELI5 version of it anywhere? I have entered my private key and it shows the unspent outputs but when I enter the destination address, nothing happens, the buttons to re-sign/send are not enabled.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on May 31, 2015, 06:00:44 AM
There must have been some mistake on your part. After you enter destination address, it will auto-sign transaction. You can either send it by clicking 'Send Transaction'* or by pushing the signed raw transaction elsewhere. Try again.

It is not good to expose private keys to these websites. It is better to download a version and use it forever. There can be instances where the developer add shady codes. Be cautious!

* Brainwallet.org uses Blockchain.info/pushtx to push signed raw transaction.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: bitbaby on June 01, 2015, 05:02:34 AM
That is what I though it would do upon entering the destination address but I just tried it again to see if I made any mistake earlier but nothing, the Re-sign and Send Transaction buttons are not enabled. I am trying to "Build Transaction from Private Key" and I don't know how to do it with json or raw transaction.

I understand it is risky to use the online version which is why I am using an address which contains a very small amount of coins.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: TheButterZone on June 01, 2015, 05:31:02 AM
What's the address? Maybe there's something wrong with the unspent outputs.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: bitbaby on June 01, 2015, 06:16:59 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on June 01, 2015, 10:16:04 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: coinpr0n on June 01, 2015, 05:17:11 PM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?
Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on June 02, 2015, 10:09:44 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: coinpr0n on June 02, 2015, 06:28:24 PM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.

Aha! I see now about P2SH addresses using BitcoinJ, thanks! I thought it was completed. Still I am confused as to what BitcoinJ has to do with brainwallet.org ... but it's no big deal.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on June 03, 2015, 11:23:56 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.

Aha! I see now about P2SH addresses using BitcoinJ, thanks! I thought it was completed. Still I am confused as to what BitcoinJ has to do with brainwallet.org ... but it's no big deal.

BitcoinJ is an implementation of Bitcoin protocol in Java and Brainwallet.org uses BitcoinJ.

https://bitcointalk.org/index.php?topic=250531.0


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: coinpr0n on June 03, 2015, 11:41:12 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.

Aha! I see now about P2SH addresses using BitcoinJ, thanks! I thought it was completed. Still I am confused as to what BitcoinJ has to do with brainwallet.org ... but it's no big deal.

BitcoinJ is an implementation of Bitcoin protocol in Java and Brainwallet.org uses BitcoinJ.

https://bitcointalk.org/index.php?topic=250531.0

I know about BitcoinJ - and if you say so, I don't doubt you - but I really thought from looking at the GitHub repo that Brainwallet.org is written in JavaScript. Not Java. (Anyway, no need to go on about this.)


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on June 03, 2015, 11:47:09 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.

Aha! I see now about P2SH addresses using BitcoinJ, thanks! I thought it was completed. Still I am confused as to what BitcoinJ has to do with brainwallet.org ... but it's no big deal.

BitcoinJ is an implementation of Bitcoin protocol in Java and Brainwallet.org uses BitcoinJ.

https://bitcointalk.org/index.php?topic=250531.0

I know about BitcoinJ - and if you say so, I don't doubt you - but I really thought from looking at the GitHub repo that Brainwallet.org is written in JavaScript. Not Java. (Anyway, no need to go on about this.)

You are right. I missed it.

Brainwallet is using BitcoinJS not BitcoinJ. http://bitcoinjs.org


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: coinpr0n on June 03, 2015, 11:54:06 AM
Nothing is wrong with the unspent outputs, to check that I just pushed the Transaction from electrum to another address and it went through instantly and I'll try again with one more address/private key, again containing few mBTCs (more than the previous one) and see if I am able to push it from that one.

Edit: I think I found the problem, I was trying to push the Tx to a multisig address and as soon as I entered a normal address, the Tx got signed and is now ready to be pushed. So I guess brainwallet cannot push transactions to multisig addresses.

Uh! BitcoinJ doesn't support sending to P2SH address.

I don't get it - brainwallet.org is written in Java (doesn't look like it from the repo)?

BitcoinJ is written in Java.

Also, BitcoinJ might have implemented some P2SH features: https://bitcoinj.github.io/working-with-contracts#p2sh-pay-to-script-hash

You can send *from* P2SH address but not *to* P2SH address AFAIK. Multisig implementation of Brainwallet.org is http://ms-brainwallet.org/ but not from same developer.

Aha! I see now about P2SH addresses using BitcoinJ, thanks! I thought it was completed. Still I am confused as to what BitcoinJ has to do with brainwallet.org ... but it's no big deal.

BitcoinJ is an implementation of Bitcoin protocol in Java and Brainwallet.org uses BitcoinJ.

https://bitcointalk.org/index.php?topic=250531.0

I know about BitcoinJ - and if you say so, I don't doubt you - but I really thought from looking at the GitHub repo that Brainwallet.org is written in JavaScript. Not Java. (Anyway, no need to go on about this.)

You are right. I missed it.

Brainwallet is using BitcoinJS not BitcoinJ. http://bitcoinjs.org

Great! Nice to see we are on the same page. ;D

BitcoinJS looks really nice actually and I've never used. I will probably be giving it a try!


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: bitbaby on June 04, 2015, 04:20:45 AM
Another problem I found using brainwallet is that it creates bad transactions, for instance the one that I pushed took more than 10 hours to get confirmed (I thought it would never confirm) because instead of sending the full amount (like I told it to do) brainwallet deducted 1 satoshi from the transaction which resulted in sending that 1 satoshi back to the sender's address and then I got this warning in blockchain explorer "This transaction has a very small output and is none standard" even though it did had 0.0001 Tx fee.


Title: Re: How to create/send a Tx from Brainwallet.org
Post by: Muhammed Zakir on June 04, 2015, 09:29:01 AM
Another problem I found using brainwallet is that it creates bad transactions, for instance the one that I pushed took more than 10 hours to get confirmed (I thought it would never confirm) because instead of sending the full amount (like I told it to do) brainwallet deducted 1 satoshi from the transaction which resulted in sending that 1 satoshi back to the sender's address and then I got this warning in blockchain explorer "This transaction has a very small output and is none standard" even though it did had 0.0001 Tx fee.

You should review your transaction before pushing it. Read 'JSON Transaction' field and you will see details. After you verify, correct if there is any mistakes/errors and then push transaction.