Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
56622054
Topic
5324169
Board
Electrum
Re: How can I sign a transaction with a private key on electrum console
by
pooya87
on
22/03/2021, 03:39:39 UTC
Quote from: Ali2k on
Today
at 01:09:19 AM
How about?
After checking your transaction again, it seems like it also lacks the second part that comes after the transaction in a PSBT tx (it is all zeros 0x000000) so the parser fails to populate the txins then fails signing the transaction later one since they are empty.
https://github.com/spesmilo/electrum/blob/22e6fe09c17724cd75763306470fa46a7bb7c4e8/electrum/transaction.py#L1709
So your problem must be in the "payto" step which creates a wrong PSBT.