Manual creation of custom P2SH transaction

Thanks to:
@esteban
@maraoz
for help with my previous questions.

I wanted to wrap up some lose end forum posts I had created.

After trying to create a transaction to broadcast with Bitcore and having challenges with it (see the links below for the related forum posts) I ended up writing javascript code to put together custom P2SH transactions at the Bitcoin protocol level.

how-to-add-a-scriptsig-to-a-p2sh-transaction
labs.bitpay.com/t/error-when-serializing-and-broadcasting-transaction/406/7
labs.bitpay.com/t/issue-with-ripemd160-sha256-script-in-locking-script/409/4

Here is an example of a successful custom P2SH transaction:
ed18c0484c29794bb858d5ebc10a4ca5f1a166d14cab74ee4465c51a74932629
(this is a transaction on the testnet)

If you look at the transaction you will see I am using the same seed as previously attempted in the other forum posts:
87Pmu6Sh7L8AGg7Ee3dn

I am happy with what I have created because it is streamlined for my specific application.

I will consider using Bitcore for future projects and I think the learning from working at the Bitcoin protocol level will make it easier when I go to work with Bitcore in the future.

@tester glad to hear that, thanks for sharing your experience! :slight_smile: