Bitcoin Forum
April 23, 2024, 08:52:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to create a raw unsigned transaction?  (Read 1851 times)
Muhammed Zakir (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
October 25, 2014, 11:42:21 AM
 #1

Hello! It is very hard for me to connect my computer to internet, I access from another computer which isn't really secure. So to send a tx, I am planning to do like this:
  • Create a raw unsigned transaction.
  • Sign it using Armory offline wallet.
  • Then push it through blockchain.info or btc.blockr.io.
To copy the raw tx, I use a mobile or I type by hand. This isn't really important here but to avoid questions about this, I just mentioned.

Suggestions are welcome! Smiley

   ~~MZ~~

1713862331
Hero Member
*
Offline Offline

Posts: 1713862331

View Profile Personal Message (Offline)

Ignore
1713862331
Reply with quote  #2

1713862331
Report to moderator
1713862331
Hero Member
*
Offline Offline

Posts: 1713862331

View Profile Personal Message (Offline)

Ignore
1713862331
Reply with quote  #2

1713862331
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713862331
Hero Member
*
Offline Offline

Posts: 1713862331

View Profile Personal Message (Offline)

Ignore
1713862331
Reply with quote  #2

1713862331
Report to moderator
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
October 25, 2014, 12:43:57 PM
 #2

I made a few to play around with feeless TXs with bitcoin core. This "guide" [1] by gavin helped a lot. IIRC one of the commands is now called slightly different. The downside for your case would be that the online computer would need to sync the blockchain first, which might take some time depending how ofter you use it. AFAIK electrum supports watch only wallets and should thus be able to make a raw unsigned TX, but I have never tried it.


[1] https://gist.github.com/gavinandresen/2839617 - Edit: sendrawtx is actually sendrawtransaction, which isnt important if you want to send via bc.i or blockr

Im not really here, its just your imagination.
Muhammed Zakir (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
October 25, 2014, 05:33:52 PM
 #3

I made a few to play around with feeless TXs with bitcoin core. This "guide" [1] by gavin helped a lot. IIRC one of the commands is now called slightly different.

[1] https://gist.github.com/gavinandresen/2839617

I read it just before I post here, if I am right. And, this too : https://people.xiph.org/~greg/signdemo.txt Wink

The downside for your case would be that the online computer would need to sync the blockchain first, which might take some time depending how ofter you use it.

That's the problem here, I can only use it for a few hours + internet speed is terrible low - ~60 KB/s . Sad

AFAIK electrum supports watch only wallets and should thus be able to make a raw unsigned TX, but I have never tried it.

Thanks! Smiley I will try it and will give a feedback! I know electrum uses a dedicated server for syncing but do you know approx. time it will take(address was generated this year)?


Any alternative way? Is there any possible way to create a unsigned raw tx without syncing? I tried brainwallet.github.io/#tx but it can only be used for signing/re-signing and if needed, pushing though it downloads unspent tx(s) using Blockchain.info API. Can I create a raw tx using *non-synced Bitcoin-qt* if I know unspent tx(s) using createrawtransaction [{"txid":txid,"vout":n],...] {address:amount,...} ? Huh

   ~~MZ~~

dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
October 25, 2014, 06:42:29 PM
 #4

Can I create a raw tx using *non-synced Bitcoin-qt* if I know unspent tx(s) using createrawtransaction [{"txid":txid,"vout":n],...] {address:amount,...} ? Huh

I don't have a non-synced bitcoin core handy but I'd expect this to fail if there were some validations in place:

Code:
bitcoin-cli createrawtransaction '[{"txid":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","vout":42}]', '{"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa":1234567.89}'
0100000001ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2a00000000ffffffff0140af0d86487000001976a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac00000000

It decodes fine:

Code:
bitcoin-cli decoderawtransaction 0100000001ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2a00000000ffffffff0140af0d86487000001976a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac00000000
{
    "txid" : "a634540f411354f449960c8b8b33ca7b3fda6002e75febb30b3759a6d6f13958",
    "version" : 1,
    "locktime" : 0,
    "vin" : [
        {
            "txid" : "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            "vout" : 42,
            "scriptSig" : {
                "asm" : "",
                "hex" : ""
            },
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 1234567.89000000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 62e907b15cbf27d5425399ebf6f0fb50ebb88f18 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a91462e907b15cbf27d5425399ebf6f0fb50ebb88f1888ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
                ]
            }
        }
    ]
}

So I guess you can create any transaction you want without syncing.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
October 25, 2014, 06:58:00 PM
 #5

-snip-

So I guess you can create any transaction you want without syncing.

Neat, I had a way more complicated way of testing in my head.

-snip-

Thanks! Smiley I will try it and will give a feedback! I know electrum uses a dedicated server for syncing but do you know approx. time it will take(address was generated this year)?


Electrum syncs very fast for me, but I only every used it for LTC and I usually have a stable and fast connection, so your results might be different Wink

Any alternative way? Is there any possible way to create a unsigned raw tx without syncing? I tried brainwallet.github.io/#tx but it can only be used for signing/re-signing and if needed, pushing though it downloads unspent tx(s) using Blockchain.info API. Can I create a raw tx using *non-synced Bitcoin-qt* if I know unspent tx(s) using createrawtransaction [{"txid":txid,"vout":n],...] {address:amount,...} ? Huh

   ~~MZ~~

You could probably write your own client or script to create a TX. hmmm I might try that...

Im not really here, its just your imagination.
Muhammed Zakir (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
October 26, 2014, 04:33:17 AM
 #6


 =snip=

So I guess you can create any transaction you want without syncing.

I will try that too! Thanks!

Electrum syncs very fast for me, but I only every used it for LTC and I usually have a stable and fast connection, so your results might be different Wink

Grin

You could probably write your own client or script to create a TX. hmmm I might try that...

I am just studying the languages now. So it may take a long time to write it. Anyway, if I do, I will post it! Wink

   ~~MZ~~

Muhammed Zakir (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
October 27, 2014, 04:33:23 PM
 #7

I tried electrum but it only supports watch-only-mode of another electrum wallet(seed). So it won't work for me as I can't sweep private key, it will cause a big head ache. Roll Eyes Armory doesn't support compressed private keys. I will now use bitcoin-qt... Smiley Thanks for all the help! Smiley

   ~~MZ~~

Muhammed Zakir (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
November 02, 2014, 03:32:44 AM
 #8

When I create rawtx, it is showing errors. Need help! Sad

Edit: Now I tried once more and it worked. I don't know why it didn't work yesterday, typed same thing, maybe some mistakes. Roll Eyes

   ~~MZ~~

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!