<p>Bitcoin script has no way to get information about the outputs of a transaction spending it, so no, neither of those things are possible. If you want withdrawal only to a specific address, why not just send to that address the desired amount in the first place and save yourself a transaction fee?</p>

CC BY-SA 4.0
2018-10-09T22:23:51.540Z
2018-10-09T22:23:51.540Z
meshcollider
<ol>
<li><p>Is it possible to write a script that would allow withdrawal of money only to a specific address?</p></li>
<li><p>Is it possible to write a script that would allow withdrawal only specific amount?</p></li>
</ol>

<p>Any examples ? Thanks!</p>

<bitcoin-core><script>
One more question about scripting
Andrew
# One more question about scripting

(Asked by: username_0 on 2018-10-09)

1. Is it possible to write a script that would allow withdrawal of money only to a specific address?
2. Is it possible to write a script that would allow withdrawal only specific amount?

Any examples ? Thanks!

**Tags:** bitcoin-core, script


---

## 1 answers

### Answer by username_1 on 2018-10-09. Score: 3

Bitcoin script has no way to get information about the outputs of a transaction spending it, so no, neither of those things are possible. If you want withdrawal only to a specific address, why not just send to that address the desired amount in the first place and save yourself a transaction fee?


---

