Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decoderawtransaction error when decoding unsigned tx #1419

Open
vctt94 opened this issue Apr 17, 2019 · 2 comments
Open

decoderawtransaction error when decoding unsigned tx #1419

vctt94 opened this issue Apr 17, 2019 · 2 comments

Comments

@vctt94
Copy link

vctt94 commented Apr 17, 2019

When creating a raw transaction and trying to decode it, btcctl will fail with the following message:
-22: TX decode failed: unexpected EOF

Here is a command to test:

btcctl --testnet createrawtransaction [] '{"2NDo7puirGENK7nPaEXsjrS6DeTpqrGBPgK": 0.001}' | btcctl --testnet decoderawtransaction -
@domgolonka
Copy link

Same error for me on testnet.

@ghost
Copy link

ghost commented Jul 17, 2019

Not an issue. Unexpected EOF is because the raw transaction has no inputs:

createrawtransaction  [] '{"mxh3H416KCRoBDiweSESew5YJyAk1nxLrN": 0.001}'
01000000
00
01
a086010000000000
1976a914bc627512d57399444b101486fb839a05c16d7b2488ac
00000000

An example specifying the transaction inputs:

createrawtransaction '[{"txid" : "0cfae98c1bae87b190800f9d33cf6458a84582bbaaf54d22750ccde50235405b","vout" : 0}]' '{"mxh3H416KCRoBDiweSESew5YJyAk1nxLrN": 0.001}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants