I'm reading up on Script, which is pretty advanced stuff for a web developer like myself. I'm wondering, is it possible to send a transaction that can only be spent to a particular address?

Example, "Alice sends 1 BTC to Bob. Bob cannot do anything with that BTC except send it back to Alice."

Is that possible and how would it be accomplished?

  • This is similar to this question: bitcoin.stackexchange.com/questions/43959/… Perhaps that can give you an idea how to accomplish what you are trying to do.
    – Jestin
    Commented Aug 2, 2016 at 13:53
  • hey! may I ask what material you are reading?
    – hartmut
    Commented Aug 31, 2016 at 20:54

1 Answer 1


You cannot specify the subsequent script used when the current script is unlocked. The script that bitcoin is sent to has only two states, locked and unlocked. Locked means it doesn't move, unlocked means it moves whereever the one who unlocked it wants.

  • I was thinking it could be possible with P2SH, where the script being needed to unlock the funds would be one that sends the funds back to the sender.
    – max
    Commented Aug 2, 2016 at 13:54
  • 2
    A script that unlocks funds only unlocks funds. It cannot make any new transactions that are dependent on it do anything.
    – Jimmy Song
    Commented Aug 3, 2016 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.