![]() |
|
Need Help with PSBT Decoding Error in bitcoin-cli - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Blackhat • Red Team • Offensive Security (https://hackforums.net/forumdisplay.php?fid=447) +---- Forum: Cryptography, Encryption, and Decryption (https://hackforums.net/forumdisplay.php?fid=126) +---- Thread: Need Help with PSBT Decoding Error in bitcoin-cli (/showthread.php?tid=6278981) |
Need Help with PSBT Decoding Error in bitcoin-cli - keiwn2 - Sep 1, 2024 I'm generating a PSBT using `bitcoinjs-lib` with a pseudo-signature for testing, but when I try to decode it using `bitcoin-cli decodepsbt`, I get this error: ``` error code: -22 error message: TX decode failed Outputs provided does not match the number of outputs in transaction.: iostream error ``` Steps I Took: 1. Created a raw transaction with: - Txid: - Vout: 0 - Outputs: Two outputs with specified addresses and amounts. 2. Constructed the PSBT with `bitcoinjs-lib` and added a pseudo-signature. Issue: PSBT seems fine but fails to decode in `bitcoin-cli`. Looking For: - Advice on where the PSBT creation might be wrong. - Anyone who has faced a similar issue and resolved it. - Tips on debugging or properly formatting the PSBT. Additional Info: - I have the public key and am working on the Bitcoin mainnet. Thanks in advance! |