September 26, 2026

Manually create a transaction to spend the output of a P2SH tx

Manually create a transaction to spend the output of a P2SH tx

I want to manually create a transaction to spend the output of a P2SH tx, but I don’t know where the redeem script should be placed in the new transaction? I followed an online tutorial Building a Transaction By Hand

In order to sign the transaction, you need to build this tx message as the picture shows. But when there is a redeem script, where should i put this redeem script?

 Transaction Message That Will Be Signed

Previous Article

How much data does it take to prove a given transaction exists on the blockchain?

Next Article

Change derive path