<p>How to spend the output depends on the redeemscript. You have to provide a scriptSig that makes the script evaluate to True. More info on the <a href="https://en.bitcoin.it/wiki/Script" rel="nofollow noreferrer">wiki</a></p>

<p>If there are no signatures involved you can try to repeat the scriptSig that was revealed, although I doubt that would work as there are bots that do that automatically.</p>

CC BY-SA 4.0
2018-06-08T20:54:20.070Z
2018-06-08T20:54:20.070Z
Mike D
<p>Anyone knows specific instructions on how to claim an unspent P2SH TX (pay-to-script-hash) based on a redeem script? No multisig.</p>

<p>I am looking for node.js JS instructions in bitcore-lib or similar. </p>

<p>Any suggestions or help appreciated.</p>

<p>Thanks :) </p>

<p>edited:</p>

CC BY-SA 4.0
2018-06-08T22:14:49.290Z
I hope you download from bitcoin.org, and verify the checksum/integrity of files. Then there is a very good example in Andreas‘ book, or even here: https://bitcoin.org/en/developer-examples#p2sh-multisig. As you said, you are not doing multisig, not a problem... can you show the raw tax, that you used? There is no link behind „coinb.in“... and here in the answer I have done a P2SH example: https://bitcoin.stackexchange.com/questions/74753/htlc-hash-time-lock-contract-using-bitcoin-qt/74953#74953
pebwindkraft
CC BY-SA 4.0
2021-04-27T15:37:53.547Z
I have answered this in detail here https://bitcoin.stackexchange.com/questions/105796/how-to-spend-from-a-custom-p2sh-script-using-bitcore-lib/105797#105797
MCCCS
<p2sh>
How to spend an UTXO P2SH pay-to-script-hash
Robert
# How to spend an UTXO P2SH pay-to-script-hash

(Asked by: username_0 on 2018-06-08)

Anyone knows specific instructions on how to claim an unspent P2SH TX (pay-to-script-hash) based on a redeem script? No multisig.

I am looking for node.js JS instructions in bitcore-lib or similar.

Any suggestions or help appreciated.

Thanks :)

edited:

**Tags:** p2sh

> **Comments:**
> **username_1**: I hope you download from bitcoin.org, and verify the checksum/integrity of files. Then there is a very good example in Andreas‘ book, or even here: https://bitcoin.org/en/developer-examples#p2sh-multisig. As you said, you are not doing multisig, not a problem... can you show the raw tax, that you used? There is no link behind „coinb.in“... and here in the answer I have done a P2SH example: https://bitcoin.stackexchange.com/questions/74753/htlc-hash-time-lock-contract-using-bitcoin-qt/74953#74953  
> **username_2**: I have answered this in detail here https://bitcoin.stackexchange.com/questions/105796/how-to-spend-from-a-custom-p2sh-script-using-bitcore-lib/105797#105797  

---

## 1 answers

### Answer by username_3 on 2018-06-08. Score: 1 | Accepted answer

How to spend the output depends on the redeemscript. You have to provide a scriptSig that makes the script evaluate to True. More info on the [wiki](https://en.bitcoin.it/wiki/Script)

If there are no signatures involved you can try to repeat the scriptSig that was revealed, although I doubt that would work as there are bots that do that automatically.


---

