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?


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
    Aug 2 '16 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
    Aug 3 '16 at 1:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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