Skip to content

PSBT create and sign and transaction hex sample #164

@bsz0206

Description

@bsz0206

I am trying a lot to create a PSBT, sign it, and get the transaction tx. It fails on finalize after signing.

File "c:\Users\behra\Python\Python312\Lib\site-packages\buidl\psbt.py", line 521, in finalize
psbt_in.finalize()
File "c:\Users\behra\Python\Python312\Lib\site-packages\buidl\psbt.py", line 1535, in finalize
script_pubkey = self.script_pubkey()
^^^^^^^^^^^^^^^^^^^^
File "c:\Users\behra\Python\Python312\Lib\site-packages\buidl\psbt.py", line 1392, in script_pubkey
return self.prev_tx.tx_outs[self.tx_in.prev_index].script_pubkey
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'bytes' object has no attribute 'tx_outs'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions