Bitcoin Forum
November 18, 2024, 08:23:27 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unable to sign a transaction  (Read 465 times)
bitterbit (OP)
Member
**
Offline Offline

Activity: 101
Merit: 12


View Profile
June 19, 2016, 12:50:54 PM
 #1

I'm inable to sign a transaction using Bitcoin core wallet

Code:
createrawtransaction [{\"txid\":\"38427a43ac56a660130e86a45ccba448c2030364a512fad83e9e8598dd890e1f\",\"vout\":0}] {\"1CvRg4qu35KfJy8cLEszZvrbDiRghtmvDq\":0.001793}

01000000 01 1f0e89dd98859e3ed8fa12a5640303c248a4cb5ca4860e1360a656ac437a4238 00000000 00 ffffffff 01 64bc0200 00 000000 19 76 a9 14 82c406aacfa3fc448bea007a55e7d784ba683b37 88 ac 00000000

Note that if you wanted to create such a transaction by hand, you'd need to understand how the matching colors below are related:

createrawtransaction [{"txid":"38427a43ac56a660130e86a45ccba448c2030364a512fad83e9e8598dd890e1f","vout":0}] {"1CvRg4qu35KfJy8cLEszZvrbDiRghtmvDq":0.001793}

01000000 01 1f0e89dd98859e3ed8fa12a5640303c248a4cb5ca4860e1360a656ac437a4238 00000000 00 ffffffff 01 64bc0200 00 000000 19 76 a9 14 82c406aacfa3fc448bea007a55e7d784ba683b37 88 ac 00000000



Well ok

but after this whenever I'm trying to sign the transaction I get :



signrawtransaction "0100000001bf5fb8dc3884edc6e8c4d1e028624975b5e184deda1bcd6d77b312d1547dd54800000 00000ffffffff011c170200000000001976a914857249351a591cec53e19c9bd8320370b1f4746b 88ac00000000"


{
  "hex": "0100000001bf5fb8dc3884edc6e8c4d1e028624975b5e184deda1bcd6d77b312d1547dd54800000 00000ffffffff011c170200000000001976a914857249351a591cec53e19c9bd8320370b1f4746b 88ac00000000",
  "complete": false,
  "errors": [
    {
      "txid": "48d57d54d112b3776dcd1bdade84e1b575496228e0d1c4e8c6ed8438dcb85fbf",
      "vout": 0,
      "scriptSig": "",
      "sequence": 4294967295,
      "error": "Operation not valid with the current stack size"
    }
  ]
}

Any clues?
Shawshank
Legendary
*
Offline Offline

Activity: 1623
Merit: 1608



View Profile
June 19, 2016, 02:47:01 PM
 #2

You are trying to sign this raw transaction:
0100000001bf5fb8dc3884edc6e8c4d1e028624975b5e184deda1bcd6d77b312d1547dd54800000 00000ffffffff011c170200000000001976a914857249351a591cec53e19c9bd8320370b1f4746b 88ac00000000

So you want to spend utxo with txid: 48d57d54d112b3776dcd1bdade84e1b575496228e0d1c4e8c6ed8438dcb85fbf and vout: 0 .

Can you confirm that you own the private key of address 15PYSSX8MTrmPsxkdWSZbZfoYL3JPV1BPd on wallet.dat? Otherwise you will not be able to successfully sign that raw transaction.

Lightning Address: shawshank@getalby.com
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4851



View Profile
June 19, 2016, 04:21:06 PM
 #3

This appears to be a reference to your other thread:
https://bitcointalk.org/index.php?topic=1478833.msg15185985#msg15185985

I've already answered your question over there.

Creating two threads for the same discussion is going to split the conversation and make it very difficult for you to keep track of the advice and discussion.

I'd suggest locking this thread and letting people who find it use the link to the other thread to join the conversation.

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!