Hi, I am trying to create a PSBT transaction with 2 inputs from different wallets and an output to export the tx in raw and sign it from an external wallet (Sparrow in this case). Everything is segwitt v0 (no taproot).
This gives me back the signed tx, as it should be, but I want the PSBT without the signature.
If I use .serialize() before adding the segwit data to sign it, Sparrow doesn't let me sign it. If I export using has_segwit=True but without segwit data, then Sparrow does not let me to import the tx. And if I set has_segwit=False then the tx is detected as non segwit.
I've also tried setting has_segwit=True with different data on the witness but it's not working.
Is there any previous step I should do to process the tx? I have not been able to find any example of how to create a psbt.
Hi, I am trying to create a PSBT transaction with 2 inputs from different wallets and an output to export the tx in raw and sign it from an external wallet (Sparrow in this case). Everything is segwitt v0 (no taproot).
My code is something like this:
This gives me back the signed tx, as it should be, but I want the PSBT without the signature.
If I use
.serialize()
before adding the segwit data to sign it, Sparrow doesn't let me sign it. If I export usinghas_segwit=True
but without segwit data, then Sparrow does not let me to import the tx. And if I sethas_segwit=False
then the tx is detected as non segwit. I've also tried settinghas_segwit=True
with different data on the witness but it's not working.Is there any previous step I should do to process the tx? I have not been able to find any example of how to create a psbt.