<blockquote>
  <p>Is Script also used to validate block, network, or any other data?</p>
</blockquote>

<p>No. Scripts are only included in transactions and can only read some data from the transaction and the block the transaction is included in. Scripts are only used for transaction validation as they specify the conditions required to spend an output.</p>

<blockquote>
  <p>Seem like there are a lot of OP codes not in use or deprecated. Why were they added in the first place? Am I missing something?</p>
</blockquote>

<p>To allow for scripts that can have a lot of different conditions. Those opcodes can be used to create smart contracts on Bitcoin.</p>

<p>There are some opcodes that are disabled (nothing is "deprecated") because they can be abused to perform various attacks on nodes verifying transactions containing them.</p>

CC BY-SA 4.0
2019-04-21T23:14:19.477Z
2019-04-21T23:14:19.477Z
Ava Chow
<p>Script's stack operations are used to validate signatures and scripts of transaction inputs and outputs. Is Script also used to validate block, network, or any other data?</p>

<p>Seem like there are a lot of OP codes not in use or deprecated. Why were they added in the first place? Am I missing something?</p>

<script><transaction-verification><validation>
Besides transaction validation, are there any other uses of the Script language in Bitcoin
Pedro
# Besides transaction validation, are there any other uses of the Script language in Bitcoin

(Asked by: username_0 on 2019-04-21)

Script's stack operations are used to validate signatures and scripts of transaction inputs and outputs. Is Script also used to validate block, network, or any other data?

Seem like there are a lot of OP codes not in use or deprecated. Why were they added in the first place? Am I missing something?

**Tags:** script, transaction-verification, validation


---

## 1 answers

### Answer by username_1 on 2019-04-21. Score: 3 | Accepted answer

> Is Script also used to validate block, network, or any other data?

No. Scripts are only included in transactions and can only read some data from the transaction and the block the transaction is included in. Scripts are only used for transaction validation as they specify the conditions required to spend an output.

> Seem like there are a lot of OP codes not in use or deprecated. Why were they added in the first place? Am I missing something?

To allow for scripts that can have a lot of different conditions. Those opcodes can be used to create smart contracts on Bitcoin.

There are some opcodes that are disabled (nothing is "deprecated") because they can be abused to perform various attacks on nodes verifying transactions containing them.


---

